gcc:
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Mar 2010 20:12:34 +0000 (20:12 +0000)
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Mar 2010 20:12:34 +0000 (20:12 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157648 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/gmon-sol2.c
gcc/config/i386/i386.c
libgcc/ChangeLog
libgcc/config/i386/t-sol2

index 278d03f..bfca217 100644 (file)
@@ -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>
 
index d207621..e0923a0 100644 (file)
@@ -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"
index 9cc6661..5620765 100644 (file)
@@ -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)
index ec9d8d2..db348ba 100644 (file)
@@ -1,3 +1,13 @@
+2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       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.
+
 2010-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        PR other/42980
index 24b7c7c..351d7fb 100644 (file)
@@ -1,6 +1,6 @@
 # gmon build rule:
 $(T)gmon.o:    $(gcc_srcdir)/config/i386/gmon-sol2.c $(GCC_PASSES) $(CONFIG_H)
-       $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) \
+       $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CFLAGS) \
                -c $(gcc_srcdir)/config/i386/gmon-sol2.c -o $(T)gmon.o
 
 # Assemble startup files.
@@ -9,16 +9,16 @@ $(T)gmon.o:   $(gcc_srcdir)/config/i386/gmon-sol2.c $(GCC_PASSES) $(CONFIG_H)
 # the comments with sed.  This bug may only be in the Early Access releases.
 $(T)gcrt1.o: $(gcc_srcdir)/config/i386/sol2-gc1.asm $(GCC_PASSES)
        sed -e '/^!/d' <$(gcc_srcdir)/config/i386/sol2-gc1.asm >gcrt1.s
-       $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)gcrt1.o gcrt1.s
+       $(GCC_FOR_TARGET) $(CFLAGS) -c -o $(T)gcrt1.o gcrt1.s
 $(T)crt1.o: $(gcc_srcdir)/config/i386/sol2-c1.asm $(GCC_PASSES)
        sed -e '/^!/d' <$(gcc_srcdir)/config/i386/sol2-c1.asm >crt1.s
-       $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crt1.o crt1.s
+       $(GCC_FOR_TARGET) $(CFLAGS) -c -o $(T)crt1.o crt1.s
 $(T)crti.o: $(gcc_srcdir)/config/i386/sol2-ci.asm $(GCC_PASSES)
        sed -e '/^!/d' <$(gcc_srcdir)/config/i386/sol2-ci.asm >crti.s
-       $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crti.o crti.s
+       $(GCC_FOR_TARGET) $(CFLAGS) -c -o $(T)crti.o crti.s
 $(T)crtn.o: $(gcc_srcdir)/config/i386/sol2-cn.asm $(GCC_PASSES)
        sed -e '/^!/d' <$(gcc_srcdir)/config/i386/sol2-cn.asm >crtn.s
-       $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crtn.o crtn.s
+       $(GCC_FOR_TARGET) $(CFLAGS) -c -o $(T)crtn.o crtn.s
 
 # We need to use -fPIC when we are using gcc to compile the routines in
 # crtstuff.c.  This is only really needed when we are going to use gcc/g++