]> granicus.if.org Git - clang/commit
Fix forwarding of -fpack-struct from driver to CC1, and add a test.
authorJames Molloy <james.molloy@arm.com>
Wed, 2 May 2012 07:56:14 +0000 (07:56 +0000)
committerJames Molloy <james.molloy@arm.com>
Wed, 2 May 2012 07:56:14 +0000 (07:56 +0000)
commit8049c44d972fc7266b4369e8960875c118c067e0
tree5d76699fadf73404ff04e06b60a84efea26a8236
parent3ecafe4d7d8f45da616be2ffef998c851dfb7b6b
Fix forwarding of -fpack-struct from driver to CC1, and add a test.

-fpack-struct's handling has changed in CC1 (one of only two flags that needed changing) because the driver treats "-fpack-struct" as a boolean flag, and CC1 (did) treat it as an option with a separated value.

This change causes -fpack-struct=X to be forwarded correctly to -fpack-struct=X instead of erroneously to "-fpack-struct X"

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155981 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp
test/Driver/fpack-struct.c [new file with mode: 0644]