[cfe-dev] FP register unknown to clang in inline asm

Joel Sherrill joel.sherrill at OARcorp.com
Thu Jul 7 10:37:55 PDT 2011


On 07/07/2011 12:21 PM, Eric Christopher wrote:
> On Jul 7, 2011, at 8:57 AM, Joel Sherrill wrote:
>
>> Hi,
>>
>> Yet another couple of cases from the
>> *-*-rtems* work.  These are both
>> from inline assembly on our floating
>> point context code when SSE is enabled.
>>
>> $ gcc -c j1.c
>> $ clang -c j1.c
>>
>> clang doesn't appear to know a couple
>> of fp register names that gcc does.
> Excellent, thanks for the testcases. Mind filing a couple
> of bugs?
>
http://llvm.org/bugs/show_bug.cgi?id=10299 for this one.
http://llvm.org/bugs/show_bug.cgi?id=10300 for the
warning pragma.

We have a couple of clang things to work through
on our side.  I would appreciate a pointer on one
of them.  We need to start adding to the
standard include path.  The first directory is:

${prefix}/${target}/include

which for an install from our RPMs results in this
for i386 and rtems4.11

/opt/rtems-4.11/i386-rtems4.11/include

Any pointers on constructing that path and where
to place the code so it can be one once for all RTEMS
targets would be appreciated.

NOTE: One great thing about RTEMS is that we are
very consistent in how things are done across targets.
Differences cause us pain with 15 target architectures.
So once I battle through the i386, other targets should
be nearly complete. :)
> -eric


-- 
Joel Sherrill, Ph.D.             Director of Research&  Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
    Support Available             (256) 722-9985





More information about the cfe-dev mailing list