diff options
author | Evgeny Stupachenko <evstupac@gmail.com> | 2015-01-15 17:27:03 +0000 |
---|---|---|
committer | Ilya Verbin <iverbin@gcc.gnu.org> | 2015-01-15 17:27:03 +0000 |
commit | 40d54d24324167bf6cb16c250a0992019b8aa300 (patch) | |
tree | 2c17194814f60056fe32f038d1b94e5fb8d7442e /gcc | |
parent | 6fb5f2f5d87400e4da005c0fac9c72d1230b566f (diff) | |
download | gcc-40d54d24324167bf6cb16c250a0992019b8aa300.zip gcc-40d54d24324167bf6cb16c250a0992019b8aa300.tar.gz gcc-40d54d24324167bf6cb16c250a0992019b8aa300.tar.bz2 |
gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
* config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
* config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
From-SVN: r219671
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/i386/gnu-user.h | 8 | ||||
-rw-r--r-- | gcc/config/i386/sysv4.h | 8 |
3 files changed, 5 insertions, 17 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d82bbee..2063fd5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ -2015-01-15 Steve Ellcey <sellcey@mips.com> +2015-01-15 Evgeny Stupachenko <evstupac@gmail.com> + + * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage. + * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto. +2015-01-15 Steve Ellcey <sellcey@mips.com> * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h, cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h, builtins.def, chkp-builtins.def, and pass-instances.def. diff --git a/gcc/config/i386/gnu-user.h b/gcc/config/i386/gnu-user.h index 2465d29..751608b 100644 --- a/gcc/config/i386/gnu-user.h +++ b/gcc/config/i386/gnu-user.h @@ -131,13 +131,6 @@ along with GCC; see the file COPYING3. If not see /* Used by crtstuff.c to initialize the base of data-relative relocations. These are GOT relative on x86, so return the pic register. */ -#ifdef __PIC__ -#define CRT_GET_RFIB_DATA(BASE) \ - { \ - register void *ebx_ __asm__("ebx"); \ - BASE = ebx_; \ - } -#else #define CRT_GET_RFIB_DATA(BASE) \ __asm__ ("call\t.LPR%=\n" \ ".LPR%=:\n\t" \ @@ -148,7 +141,6 @@ along with GCC; see the file COPYING3. If not see "add{l}\t{$_GLOBAL_OFFSET_TABLE_+[.-.LPR%=],%0" \ "|%0,_GLOBAL_OFFSET_TABLE_+(.-.LPR%=)}" \ : "=d"(BASE)) -#endif #ifdef TARGET_LIBC_PROVIDES_SSP /* i386 glibc provides __stack_chk_guard in %gs:0x14. */ diff --git a/gcc/config/i386/sysv4.h b/gcc/config/i386/sysv4.h index 89b2a77..099af9b 100644 --- a/gcc/config/i386/sysv4.h +++ b/gcc/config/i386/sysv4.h @@ -52,13 +52,6 @@ along with GCC; see the file COPYING3. If not see /* Used by crtstuff.c to initialize the base of data-relative relocations. These are GOT relative on x86, so return the pic register. */ -#ifdef __PIC__ -#define CRT_GET_RFIB_DATA(BASE) \ - { \ - register void *ebx_ __asm__("ebx"); \ - BASE = ebx_; \ - } -#else #define CRT_GET_RFIB_DATA(BASE) \ __asm__ ("call\t.LPR%=\n" \ ".LPR%=:\n\t" \ @@ -69,4 +62,3 @@ along with GCC; see the file COPYING3. If not see "add{l}\t{$_GLOBAL_OFFSET_TABLE_+[.-.LPR%=],%0" \ "|%0,_GLOBAL_OFFSET_TABLE_+(.-.LPR%=)}" \ : "=d"(BASE)) -#endif |