linux.h (CRT_GET_RFIB_DATA): Add Intel syntax inline asm to macro.

* config/i386/linux.h (CRT_GET_RFIB_DATA): Add Intel syntax inline
	asm to macro.
	* config/i386/sco5.h (CRT_GET_RFIB_DATA): Likewise.
	* config/i386/sysv4.h (CRT_GET_RFIB_DATA): Likewise.

From-SVN: r130485
This commit is contained in:
Rask Ingemann Lambertsen 2007-11-28 02:04:27 +01:00 committed by Rask Ingemann Lambertsen
parent d46e0870c0
commit 296ea027d2
4 changed files with 16 additions and 6 deletions

View File

@ -1,3 +1,10 @@
2007-11-28 Rask Ingemann Lambertsen <rask@sygehus.dk>
* config/i386/linux.h (CRT_GET_RFIB_DATA): Add Intel syntax inline
asm to macro.
* config/i386/sco5.h (CRT_GET_RFIB_DATA): Likewise.
* config/i386/sysv4.h (CRT_GET_RFIB_DATA): Likewise.
2007-11-28 Ben Elliston <bje@au.ibm.com>
* config/rs6000/aix64.opt (maix64): Add Negative(maix32).

View File

@ -180,11 +180,12 @@ along with GCC; see the file COPYING3. If not see
#define CRT_GET_RFIB_DATA(BASE) \
__asm__ ("call\t.LPR%=\n" \
".LPR%=:\n\t" \
"popl\t%0\n\t" \
"pop{l}\t%0\n\t" \
/* Due to a GAS bug, this cannot use EAX. That encodes \
smaller than the traditional EBX, which results in the \
offset being off by one. */ \
"addl\t$_GLOBAL_OFFSET_TABLE_+[.-.LPR%=],%0" \
"add{l}\t{$_GLOBAL_OFFSET_TABLE_+[.-.LPR%=],%0" \
"|%0,_GLOBAL_OFFSET_TABLE_+(.-.LPR%=)}" \
: "=d"(BASE))
#endif

View File

@ -300,11 +300,12 @@ along with GCC; see the file COPYING3. If not see
#define CRT_GET_RFIB_DATA(BASE) \
__asm__ ("call\t.LPR%=\n" \
".LPR%=:\n\t" \
"popl\t%0\n\t" \
"pop{l}\t%0\n\t" \
/* Due to a GAS bug, this cannot use EAX. That encodes \
smaller than the traditional EBX, which results in the \
offset being off by one. */ \
"addl\t$_GLOBAL_OFFSET_TABLE_+[.-.LPR%=],%0" \
"add{l}\t{$_GLOBAL_OFFSET_TABLE_+[.-.LPR%=],%0" \
"|%0,_GLOBAL_OFFSET_TABLE_+(.-.LPR%=)}" \
: "=d"(BASE))
#endif

View File

@ -123,10 +123,11 @@ along with GCC; see the file COPYING3. If not see
#define CRT_GET_RFIB_DATA(BASE) \
__asm__ ("call\t.LPR%=\n" \
".LPR%=:\n\t" \
"popl\t%0\n\t" \
"pop{l}\t%0\n\t" \
/* Due to a GAS bug, this cannot use EAX. That encodes \
smaller than the traditional EBX, which results in the \
offset being off by one. */ \
"addl\t$_GLOBAL_OFFSET_TABLE_+[.-.LPR%=],%0" \
"add{l}\t{$_GLOBAL_OFFSET_TABLE_+[.-.LPR%=],%0" \
"|%0,_GLOBAL_OFFSET_TABLE_+(.-.LPR%=)}" \
: "=d"(BASE))
#endif