Article View: gnu.gcc.bug
Article #6382gcc-2.7.2 for m68k-motorola-sysv (AKA delta): bug fix
From: Manfred Hollstein KS/EF4A 60/1F/...
Date: Fri, 08 Dec 1995 00:00
Date: Fri, 08 Dec 1995 00:00
59 lines
3119 bytes
3119 bytes
Hi there,
sorry to bother you again. But I just found a bug in my previous post
related to this particular configuration. The labels emitted for the
profiling blocks were wrong if using Motorola as and ld (how could I
have said `All this is tested and works!'... perhaps because it takes
so long on this system to build gcc...)
Nevertheless, here is another patch for gcc-2.7.2/config/m68k/mot3300.h
(it's based on my previous patches):
diff --context --recursive --new-file --show-c-function --ignore-space-change /u/b60/manfred/tmp/orig/gcc-2.7.2/ChangeLog gcc-2.7.2/ChangeLog
*** /u/b60/manfred/tmp/orig/gcc-2.7.2/ChangeLog Fri Dec 8 16:05:06 1995
--- gcc-2.7.2/ChangeLog Fri Dec 8 17:43:39 1995
***************
*** 1,3 ****
--- 1,8 ----
+ Fri Dec 8 17:43:39 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
+
+ * config/m68k/mot3300.h (FUNCTION_PROFILER): emit label references
+ corresponding to those generated by ASM_OUTPUT_INTERNAL_LABEL.
+
Fri Dec 8 14:43:13 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
* Configuration for m68k-motorola-sysv (AKA: delta): Support for
diff --context --recursive --new-file --show-c-function --ignore-space-change /u/b60/manfred/tmp/orig/gcc-2.7.2/config/m68k/mot3300.h gcc-2.7.2/config/m68k/mot3300.h
*** /u/b60/manfred/tmp/orig/gcc-2.7.2/config/m68k/mot3300.h Fri Dec 8 14:24:36 1995
--- gcc-2.7.2/config/m68k/mot3300.h Fri Dec 8 17:36:44 1995
***************
*** 146,153 ****
asm_fprintf (FILE, "\tmov.l %Ra0,%Rd0\n"); }
#undef FUNCTION_PROFILER
#define FUNCTION_PROFILER(FILE, LABEL_NO) \
! asm_fprintf (FILE, "\tmov.l %I%LP%d,%Ra0\n\tjsr mcount%%\n", (LABEL_NO))
/* This is how to output an insn to push a register on the stack.
It need not be very fast code. */
--- 146,158 ----
asm_fprintf (FILE, "\tmov.l %Ra0,%Rd0\n"); }
#undef FUNCTION_PROFILER
+ #ifndef USE_GAS
#define FUNCTION_PROFILER(FILE, LABEL_NO) \
! asm_fprintf (FILE, "\tmov.l %ILP%%%d,%Ra0\n\tjsr mcount%%\n", (LABEL_NO))
! #else /* USE_GAS */
! #define FUNCTION_PROFILER(FILE, LABEL_NO) \
! asm_fprintf (FILE, "\tmov.l %I%.LP%d,%Ra0\n\tjsr mcount%%\n", (LABEL_NO))
! #endif /* USE_GAS */
/* This is how to output an insn to push a register on the stack.
It need not be very fast code. */
Until next time,
Manfred Hollstein SEL-Alcatel, Dept. KS/EF4A
e-mail: manfred@lts.sel.alcatel.de Lorenzstrasse 10
Phone: +49 711 821 40283 70435 Stuttgart
Fax: +49 711 821 40196 Germany
Technical Details
Message-ID:
<9512081649.AA20707@lts.sel.alcatel.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113d02,eec754c221f1a0bd,start X-Google-Attributes: gid113d02,public From: manfred@lts.SEl.alcatel.DE (Manfred Hollstein KS/EF4A 60/1F/110 #40283) Subject: gcc-2.7.2 for m68k-motorola-sysv (AKA delta): bug fix Date: 1995/12/08 Message-ID: <9512081649.AA20707@lts.sel.alcatel.de> X-Deja-AN: 121283042 distribution: gnu sender: daemon@cis.ohio-state.edu organization: GNUs Not Usenet reply-to: manfred@lts.sel.alcatel.de newsgroups: gnu.gcc.bug