[cfe-commits] [PATCH] Preprocessor: fix __OPTIMIZE_SIZE__ and -Oz

nobled nobled at dreamwidth.org
Mon Aug 6 12:56:56 PDT 2012


Add some tests for __OPTIMIZE_SIZE__ and  __NO_INLINE__,
removing the superfluous copies in the target-specific
tests, since it's target-independent.

This uncovered a bug in the handling of -Oz: it would
attempt to store the value 2 in the 1-bit bitfield OptimizeSize,
leaving a value of 0 and never defining __OPTIMIZE_SIZE__.

OK to commit?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003b-test-Preprocessor-test-__OPTIMIZE_SIZE__-and-__NO_IN.patch
Type: application/octet-stream
Size: 8229 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120806/4a0f25ae/attachment.obj>


More information about the cfe-commits mailing list