Paul Robinson
0855695159
Instead of having -Os/-Oz add OptimizeForSize/MinSize first, and later
...
having OptimizeNone remove them again, just don't add them in the
first place if the function already has OptimizeNone.
Note that MinSize can still appear due to attributes on different
declarations; a future patch will address that.
llvm-svn: 224047
2014-12-11 20:14:04 +00:00
Paul Robinson
aae2fba540
Diagnose attributes 'optnone' and 'minsize' on the same declaration.
...
Eventually we'll diagnose them on different declarations, but let's
get this part out of the way first.
llvm-svn: 223985
2014-12-10 23:34:36 +00:00
Paul Robinson
621b6d3bf7
Revert r223980 as it had wrong commit message.
...
llvm-svn: 223984
2014-12-10 23:32:57 +00:00
Paul Robinson
2936851426
Rename a couple of preprocessor symbols to be more descriptive. NFC.
...
Review feedback from recent changes to GetSVN.cmake.
llvm-svn: 223980
2014-12-10 23:12:37 +00:00
Paul Robinson
4ece682586
Correctly remove OptimizeForSize from functions marked OptimizeNone.
...
This allows using __attribute__((optnone)) and the -Os/-Oz options.
Fixes PR21604.
llvm-svn: 222683
2014-11-24 20:51:42 +00:00
Nico Rieck
4da7debf7d
Fix broken FileCheck prefix
...
llvm-svn: 209541
2014-05-23 19:07:25 +00:00
Paul Robinson
f067435026
Implement the 'optnone' attribute, which suppresses most optimizations
...
on a function.
llvm-svn: 205255
2014-03-31 22:29:15 +00:00