[cfe-commits] [PATCH] ‘ccc’ overhaul

Dan Villiom Podlaski Christiansen danchr at gmail.com
Sat Jan 10 15:13:18 PST 2009


On 10 Jan 2009, at 16:48, Dan Villiom Podlaski Christiansen wrote:

>> Attached below is a patch against ‘utils/ccc’. It contains the  
>> following changes:
>>
>> - Recognise many more options for passing to linker and compiler.
>> - Recognise relocation modes and pass them to compiler and linker.
>> - Use the new ability for generating native assembly code directly.
>> - Add explicit support for ‘-O4’ and ‘-flto’.
>> - Make '-print-prog-name' actually work. (‘g’ ≠ ‘t’)
>> - Implement ‘-pipe’.
>> - Like GCC, default to using ['-suppress-system-warnings', '-Wno- 
>> format-nonliteral', '-tailcallopt'].

I just discovered a bug where passing ‘-framework *whatever*’ as  
the last argument would cause an IndexError. The attached, incremental  
patch fixes this by using ensuring that option checks are exclusive.  
This bug may also be present in Subversion trunk.

--

Dan Villiom Podlaski Christiansen, stud. scient.,
danchr at cs.au.dk, danchr at gmail.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-ccc-elif.diff
Type: application/octet-stream
Size: 8898 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20090111/0a256bca/attachment.obj>


More information about the cfe-commits mailing list