[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gccxml
Subject:    Re: [GCC-XML] gccxml_builtins.h and MMX instructions
From:       Brad King <brad.king () kitware ! com>
Date:       2010-07-25 22:49:03
Message-ID: 4C4CBF5F.6050102 () kitware ! com
[Download RAW message or body]

On 7/25/2010 3:29 PM, Jason Roelofs wrote:
> On Jul 23, 2010, at 8:50 AM, Brad King wrote:
>>  The fix may be the same either way though.  Whenever gccxml cannot handle
>>  a given compiler's headers we copy them into the Support/... directory and
>>  patch them.  In this case you can patch the header to remove the function
>>  body definition because gccxml only cares about the interface.
>
> Hmm, interesting in trying this out. What steps would I need to
 > take to get GCC-XML to use headers in Support over system headers?

It automatically prefers headers in Support.  Just put the
header under Support/GCC/4.x/ so that #include <> finds it.
Then modify the header as necessary.

If the header is platform-specific, just conditionalize
the entire file in a #if/#endif block.

-Brad
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.gccxml.org/mailman/listinfo/gccxml
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic