win-nt.h (TRAMPOLINE_TEMPLATE): Fix offsets.
authorRichard Henderson <rth@cygnus.com>
Mon, 17 Nov 1997 05:04:23 +0000 (21:04 -0800)
committerJeff Law <law@gcc.gnu.org>
Mon, 17 Nov 1997 05:04:23 +0000 (22:04 -0700)
        * alpha/win-nt.h (TRAMPOLINE_TEMPLATE): Fix offsets.

        * alpha.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add an L for the local label
        to correspond with the change to ASM_GENERATE_INTERNAL_LABEL.

From-SVN: r16526

gcc/ChangeLog
gcc/config/alpha/alpha.h
gcc/config/alpha/win-nt.h

index 150e720..79bbf90 100644 (file)
@@ -1,3 +1,10 @@
+Sun Nov 16 22:02:16 1997  Richard Henderson  (rth@cygnus.com)
+
+       * alpha/win-nt.h (TRAMPOLINE_TEMPLATE): Fix offsets.
+
+       * alpha.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add an L for the local label
+       to correspond with the change to ASM_GENERATE_INTERNAL_LABEL.
+
 Fri Nov 14 09:09:20 1997  Fred Fish  (fnf@cygnus.com)
 
        * dwarfout.c (byte_size_attribute):  Add local var upper_bound
index 34c96d8..e696a0e 100644 (file)
@@ -2002,8 +2002,8 @@ literal_section ()                                                \
 /* This is how to output an element of a case-vector that is relative.  */
 
 #define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, VALUE, REL) \
-  fprintf (FILE, "\t.%s $%d\n", TARGET_WINDOWS_NT ? "long" : "gprel32", \
-          (VALUE) + 32)
+  fprintf (FILE, "\t.%s $L%d\n", TARGET_WINDOWS_NT ? "long" : "gprel32", \
+          (VALUE))
 
 /* This is how to output an assembler line
    that says to advance the location counter
index 768256e..f6bb420 100644 (file)
@@ -82,8 +82,8 @@ Boston, MA 02111-1307, USA.  */
 #define TRAMPOLINE_TEMPLATE(FILE)                      \
 {                                                      \
   fprintf (FILE, "\tbr $27,$LTRAMPP\n");               \
-  fprintf (FILE, "$LTRAMPP:\n\tldl $1,12($27)\n");     \
-  fprintf (FILE, "\tldl $27,16($27)\n");               \
+  fprintf (FILE, "$LTRAMPP:\n\tldl $1,16($27)\n");     \
+  fprintf (FILE, "\tldl $27,12($27)\n");               \
   fprintf (FILE, "\tjmp $31,($27),0\n");               \
   fprintf (FILE, "\t.long 0,0\n");                     \
 }