| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
| |
force align the stack to the backend.
Fixes rdar://9289631
llvm-svn: 130725
|
|
|
|
| |
llvm-svn: 130723
|
|
|
|
|
|
|
|
| |
this only for
OS X, but it is probably not all that important.
llvm-svn: 130697
|
|
|
|
| |
llvm-svn: 130616
|
|
|
|
|
|
|
|
| |
to the linker.
- Only do this explicitly with the argument for now, the linker will need to
explicitly add support for this.
llvm-svn: 130594
|
|
|
|
|
|
| |
Radar 9333566. Patch by Chad Rosier!
llvm-svn: 130554
|
|
|
|
| |
llvm-svn: 130516
|
|
|
|
|
|
| |
the tool chain, instead of based on the translated arguments.
llvm-svn: 130440
|
|
|
|
|
|
| |
this feature undergoes more review and development. This is still available as a -cc1 option for testing.
llvm-svn: 130424
|
|
|
|
|
|
| |
from dgregor.
llvm-svn: 130066
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
matches GCC behavior which libstdc++ uses to limit #warning-based
messages about deprecation.
The machinery involves threading this through a new '-fdeprecated-macro'
flag for CC1. The flag defaults to "on", similarly to -Wdeprecated. We
turn the flag off in the driver when the warning is turned off (modulo
matching some GCC bugs). We record this as a language option, and key
the preprocessor on the option when introducing the define.
A separate flag rather than a '-D' flag allows us to properly represent
the difference between C and C++ builds (only C++ receives the define),
and it allows the specific behavior of following -Wdeprecated without
potentially impacting the set of user-provided macro flags.
llvm-svn: 130055
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-Wwrite-strings. First and foremost, once the positive form of the flag
was passed, it could never be disabled by passing -Wno-write-strings.
Also, the diagnostic engine couldn't in turn use -Wwrite-strings to
control diagnostics (as GCC does) because it was essentially hijacked to
drive the language semantics.
Fix this by giving CC1 a clean '-fconst-strings' flag to enable
const-qualified strings in C and ObjC compilations. Corresponding
'-fno-const-strings' is also added. Then the driver is taught to
introduce '-fconst-strings' in the CC1 command when '-Wwrite-strings'
dominates.
This entire flag is basically GCC-bug-compatibility driven, so we also
match GCC's bug where '-w' doesn't actually disable -Wwrite-strings. I'm
open to changing this though as it seems insane.
llvm-svn: 130051
|
|
|
|
|
|
|
|
|
| |
function definitions are parsed at the end of the translation unit only if it is required by an actual instantiation. As such all the symbols of the TU are available during name lookup.
Using this flag is necessary for compatibility with Microsoft template code.
This also provides some parsing speed improvement.
llvm-svn: 130022
|
|
|
|
|
|
|
|
|
| |
compile time) and .gcda emission (at runtime). --coverage enables both.
This does not yet add the profile_rt library to the link step if -fprofile-arcs
is enabled when linking.
llvm-svn: 129956
|
|
|
|
| |
llvm-svn: 129954
|
|
|
|
| |
llvm-svn: 129721
|
|
|
|
|
|
| |
Monrocq
llvm-svn: 129614
|
|
|
|
|
|
| |
Luis Felipe Strano Moraes!
llvm-svn: 129559
|
|
|
|
|
|
| |
undergoes preprocessing.
llvm-svn: 129414
|
|
|
|
|
|
| |
by Jeremy Huddleston!
llvm-svn: 129299
|
|
|
|
|
|
|
|
|
|
|
|
| |
Put the logic for deciding the default name for gcc/g++
in the only place that actually cares about it.
This also pushes an ifdef out of the generic driver code
to a little further down, when the target is actually known.
Hopefully it can be changed into just a runtime check
in the future.
llvm-svn: 129212
|
|
|
|
|
|
| |
options.
llvm-svn: 129153
|
|
|
|
| |
llvm-svn: 129145
|
|
|
|
| |
llvm-svn: 129141
|
|
|
|
| |
llvm-svn: 129108
|
|
|
|
|
|
|
| |
existing CC_PRINT_OPTIONS and CC_PRINT_HEADERS, which can be used to
transparently capture the compiler diagnostics from a build.
llvm-svn: 129082
|
|
|
|
| |
llvm-svn: 128944
|
|
|
|
| |
llvm-svn: 128738
|
|
|
|
| |
llvm-svn: 128641
|
|
|
|
| |
llvm-svn: 128433
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
These stacks are often less important than those on primary diagnostics.
As the number of notes grows, this becomes increasingly important. The
include stack printing is clever and doesn't print stacks for adjacent
diagnostics from the same file, but when a note is in between a sequence
of errors in a header file, and the notes all refer to some other file,
we end up getting a worst-case ping-pong of include stacks that take up
a great deal of vertical space.
Still, for now, the default behavior isn't changed. We can evaluate user
feedback with the flag.
Patch by Richard Trieu, a couple of style tweaks from me.
llvm-svn: 128371
|
|
|
|
|
|
|
|
|
| |
default for -fwrapv if that flag isn't specified explicitly. We always
prefer an explict setting of -fwrapv when present. Also adds support for
-fno-wrapv to allow disabling -fwrapv even when -fno-strict-overflow is
passed.
llvm-svn: 128353
|
|
|
|
| |
llvm-svn: 128187
|
|
|
|
|
|
|
|
| |
line options, instead of leveraging the blanket -mllvm option.
- This allows using the frontend itself without requiring the backend have
those options available (i.e., if the target wasn't built).
llvm-svn: 128087
|
|
|
|
| |
llvm-svn: 128018
|
|
|
|
|
|
|
|
| |
program and fallback to plain version otherwise. Use this for the NetBSD
target to make it try e.g. i486--netbsdelf-as and -ld for target
i486--netbsdelf.
llvm-svn: 127996
|
|
|
|
|
|
|
| |
and DragonFly. Use the --sysroot= form for Linux. Fix handling of =
prefix for -B.
llvm-svn: 127994
|
|
|
|
|
|
|
|
|
| |
- We don't really support the majority of the horrible -traditional-cpp
behavior, but it is unlikely that we ever will either. This allows us to
start trying to use clang as a /usr/bin/cpp replacement and see what pieces
of -traditional-cpp mode people actually care about.
llvm-svn: 127911
|
|
|
|
|
|
|
|
| |
Issue this as an IR-gen error; it's not really worthwhile doing this
"right", i.e. in Sema, because IR gen knows a lot of tricks beyond
what the constant evaluator knows.
llvm-svn: 127854
|
|
|
|
|
|
| |
disable Obj-C exceptions.
llvm-svn: 127836
|
|
|
|
| |
llvm-svn: 127820
|
|
|
|
| |
llvm-svn: 127819
|
|
|
|
| |
llvm-svn: 127815
|
|
|
|
|
|
| |
not being consistent at all with other parts of the GCC implementation.
llvm-svn: 127777
|
|
|
|
|
|
| |
DeadStores checker into the "deadcode" group.
llvm-svn: 127531
|
|
|
|
|
|
|
| |
input is specified, use stdin implicitly. Based on a patch from
Roman Divacky.
llvm-svn: 127137
|
|
|
|
| |
llvm-svn: 127128
|
|
|
|
| |
llvm-svn: 126810
|
|
|
|
| |
llvm-svn: 126767
|
|
|
|
|
|
| |
Patch by Dimitry Andric!
llvm-svn: 126763
|