aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/i386
diff options
context:
space:
mode:
authorJim Wilson <wilson@cygnus.com>1998-05-13 14:04:15 +0000
committerJim Wilson <wilson@gcc.gnu.org>1998-05-13 07:04:15 -0700
commit92d4501f96d2e4faaced90c19ca3b986c0875366 (patch)
tree840abe7eaa9ab57ad418f30aac580be8cbd04489 /gcc/config/i386
parentd6cc54f65926f5b8464efad260be16eddec94315 (diff)
downloadgcc-92d4501f96d2e4faaced90c19ca3b986c0875366.zip
gcc-92d4501f96d2e4faaced90c19ca3b986c0875366.tar.gz
gcc-92d4501f96d2e4faaced90c19ca3b986c0875366.tar.bz2
Patch to fix g++.other/local1.C.
* varasm.c (make_decl_rtl): Revert April 1 change. * alpha/alpha.h, alpha/win-nt.h, arm/arm.h, i386/unix.h, i960/i960.h, m68k/linux.h, pa/pa.h, sparc/sparc.h, vax/vax.h (ASM_OUTPUT_MI_THUNK): Get function name from the SYMBOL_REF in the DECL_RTL, not from DECL_ASSEMBLER_NAME. * i386/winnt.c (gen_stdcall_suffix): Comment for questionable use of DECL_ASSEMBLER_NAME. From-SVN: r19723
Diffstat (limited to 'gcc/config/i386')
-rw-r--r--gcc/config/i386/unix.h6
-rw-r--r--gcc/config/i386/winnt.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/i386/unix.h b/gcc/config/i386/unix.h
index c74911c..47440dd 100644
--- a/gcc/config/i386/unix.h
+++ b/gcc/config/i386/unix.h
@@ -179,15 +179,13 @@ do { \
output_asm_insn (AS1 (pop%L0,%0), xops); \
output_asm_insn ("addl $_GLOBAL_OFFSET_TABLE_+[.-%P1],%0", xops); \
fprintf (FILE, "\tmovl "); \
- assemble_name \
- (FILE, IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (FUNCTION))); \
+ assemble_name (FILE, XSTR (XEXP (DECL_RTL (FUNCTION), 0), 0)); \
fprintf (FILE, "@GOT(%%ebx),%%ecx\n\tpopl %%ebx\n\tjmp *%%ecx\n"); \
} \
else \
{ \
fprintf (FILE, "\tjmp "); \
- assemble_name \
- (FILE, IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (FUNCTION))); \
+ assemble_name (FILE, XSTR (XEXP (DECL_RTL (FUNCTION), 0), 0)); \
fprintf (FILE, "\n"); \
} \
} while (0)
diff --git a/gcc/config/i386/winnt.c b/gcc/config/i386/winnt.c
index 8c35f39..bb663ce 100644
--- a/gcc/config/i386/winnt.c
+++ b/gcc/config/i386/winnt.c
@@ -37,6 +37,8 @@ gen_stdcall_suffix (decl)
tree decl;
{
int total = 0;
+ /* ??? This probably should use XSTR (XEXP (DECL_RTL (decl), 0), 0) instead
+ of DECL_ASSEMBLER_NAME. */
char *asmname = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl));
char *newsym;