diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2010-03-22 20:12:34 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2010-03-22 20:12:34 +0000 |
commit | 7f5441df096d75d4e293d7e2062c2b962924dbdd (patch) | |
tree | 6df365bdd709eb2f8ab6b85b6a2b205669849b6d /gcc | |
parent | d4f3924a905135bbcdfab16fe704941ee3879e57 (diff) | |
download | gcc-7f5441df096d75d4e293d7e2062c2b962924dbdd.zip gcc-7f5441df096d75d4e293d7e2062c2b962924dbdd.tar.gz gcc-7f5441df096d75d4e293d7e2062c2b962924dbdd.tar.bz2 |
re PR target/38085 (gcc -m64 -pg generates invalid assembler code on Solaris 10/x86)
gcc:
PR target/38085
* config/i386/i386.c (x86_function_profiler)
[!NO_PROFILE_COUNTERS]: Fix typo.
* config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
instead of callq.
libgcc:
PR target/38085
* config/i386/t-sol2 ($(T)gmon.o): Use CFLAGS instead of
MULTILIB_CFLAGS.
($(T)gcrt1.o): Likewise.
($(T)crt1.o): Likewise.
($(T)crti.o): Likewise.
($(T)crtn.o): Likewise.
From-SVN: r157648
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/config/i386/gmon-sol2.c | 2 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 2 |
3 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 278d03f..bfca217 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + PR target/38085 + * config/i386/i386.c (x86_function_profiler) + [!NO_PROFILE_COUNTERS]: Fix typo. + * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call + instead of callq. + 2010-03-22 Janis Johnson <janis187@us.ibm.com> Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> diff --git a/gcc/config/i386/gmon-sol2.c b/gcc/config/i386/gmon-sol2.c index d207621..e0923a0 100644 --- a/gcc/config/i386/gmon-sol2.c +++ b/gcc/config/i386/gmon-sol2.c @@ -268,7 +268,7 @@ asm(".globl _mcount\n" FROMPCINDEX (via the frame pointer. */ "\tmovq\t0x38(%rsp),%rdi\n" "\tmovq\t0x8(%rbp),%rsi\n" - "\tcallq\tinternal_mcount\n" + "\tcall\tinternal_mcount\n" /* Restore the saved registers. */ "\tmovq\t0x30(%rsp),%r9\n" "\tmovq\t0x28(%rsp),%r8\n" diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 9cc6661..5620765 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -26369,7 +26369,7 @@ x86_function_profiler (FILE *file, int labelno ATTRIBUTE_UNUSED) if (TARGET_64BIT) { #ifndef NO_PROFILE_COUNTERS - fprintf (file, "\tleaq\t" LPREFIX "P%d@(%%rip),%%r11\n", labelno); + fprintf (file, "\tleaq\t" LPREFIX "P%d(%%rip),%%r11\n", labelno); #endif if (DEFAULT_ABI == SYSV_ABI && flag_pic) |