projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d9c51d
)
Add -ansi option to CompileOnly group
author
Timm Bäder
<tbaeder@redhat.com>
Tue, 12 Jan 2021 18:15:21 +0000
(13:15 -0500)
committer
Aaron Ballman
<aaron@aaronballman.com>
Tue, 12 Jan 2021 18:16:49 +0000
(13:16 -0500)
-ansi is documented as being the "same as -std=c89", but there are
differences when passing it to a link.
Adding -ansi to said group makes sense since it's supposed to be an
alias for -std=c89 and resolves this inconsistency.
clang/include/clang/Driver/Options.td
patch
|
blob
|
history
diff --git
a/clang/include/clang/Driver/Options.td
b/clang/include/clang/Driver/Options.td
index
d9586e0
..
b441c1b
100644
(file)
--- a/
clang/include/clang/Driver/Options.td
+++ b/
clang/include/clang/Driver/Options.td
@@
-800,7
+800,7
@@
def Z_Flag : Flag<["-"], "Z">, Group<Link_Group>;
def Z_Joined : Joined<["-"], "Z">;
def all__load : Flag<["-"], "all_load">;
def allowable__client : Separate<["-"], "allowable_client">;
-def ansi : Flag<["-", "--"], "ansi">;
+def ansi : Flag<["-", "--"], "ansi">
, Group<CompileOnly_Group>
;
def arch__errors__fatal : Flag<["-"], "arch_errors_fatal">;
def arch : Separate<["-"], "arch">, Flags<[NoXarchOption]>;
def arch__only : Separate<["-"], "arch_only">;