Moved 25 flags to clang_ignored_gcc_optimization_f_Group. Will display a warning to the user if they try to pass those optimizations.
Patch by Arthur Marble <email@example.com> in the context of Debian Google Summer of code 2014.
This isn't an optimization flag, IMO. This is the equivalent of changing all discardable (linkonce / linkonce_odr) globals to non-discardable globals (weak / weak_odr). I know it's in GCC optimization flag docs, but it's more of a correctness workaround for invalid code.
ditto, not optimization.
Actually, while you're at it, can you make this a BooleanFFlag to reduce duplication?
Hm, these are probably easy to implement in LLVM today. No action needed, though, this change is right.
These are lots of subprocess invocations. You can speed up the test significantly by making this all one compiler invocation along the lines of:
// RUN: %clang -### %s \ // RUN: -fflag \ // ... // RUN: 2>&1 | FileCheck --check-prefix=CHECK-WARNING %s // CHECK-WARNING-DAG: optimization flag '-fflag' is not supported // ...