FP register unknown to clang in inline asm

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.

j1.c (579 Bytes)

j2.c (701 Bytes)

Excellent, thanks for the testcases. Mind filing a couple
of bugs?

-eric

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?

10299 – clang does not know FP registers gcc does for this one.
10300 – clang does not support attribute(warning) 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. :slight_smile: