public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] m68k: don't use lea on profiling
@ 2009-11-19 13:51 Sebastian Andrzej Siewior
  2009-11-19 13:57 ` Maxim Kuvyrkov
  0 siblings, 1 reply; 12+ messages in thread
From: Sebastian Andrzej Siewior @ 2009-11-19 13:51 UTC (permalink / raw)
  To: gcc-patches; +Cc: mkuvyrkov

this will not work on large binaries:

|bigeasy@ayoka:~/cc$ echo 'int main(void) { return 0; }' > file.c
|bigeasy@ayoka:~/cc$ m68k-linux-gnu-gcc -o file file.c -static -pg
|/tmp/ccw33VYP.o: In function `main':
|file.c:(.text+0x6): relocation truncated to fit: R_68K_PC16 against `.data'
|collect2: ld returned 1 exit status

This is reported as #36047. It appears that the generated label is unused.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
 gcc/config/m68k/linux.h |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/gcc/config/m68k/linux.h b/gcc/config/m68k/linux.h
index 113f278..79e9151 100644
--- a/gcc/config/m68k/linux.h
+++ b/gcc/config/m68k/linux.h
@@ -146,7 +146,6 @@ along with GCC; see the file COPYING3.  If not see
 #undef FUNCTION_PROFILER
 #define FUNCTION_PROFILER(FILE, LABELNO) \
 {									\
-  asm_fprintf (FILE, "\tlea (%LLP%d,%Rpc),%Ra1\n", (LABELNO));		\
   if (flag_pic)								\
     fprintf (FILE, "\tbsr.l _mcount@PLTPC\n");				\
   else									\
-- 
1.6.2.5

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2009-12-11 15:36 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-19 13:51 [PATCH] m68k: don't use lea on profiling Sebastian Andrzej Siewior
2009-11-19 13:57 ` Maxim Kuvyrkov
2009-11-23 17:35   ` Jeff Law
2009-11-23 18:25     ` Maxim Kuvyrkov
2009-11-23 21:58       ` Andreas Schwab
2009-11-23 20:12     ` Sebastian Andrzej Siewior
2009-11-23 21:57   ` Andreas Schwab
2009-12-06 20:47     ` [PATCH v2] " Sebastian Andrzej Siewior
2009-12-06 21:28       ` Andreas Schwab
2009-12-11  9:53         ` Maxim Kuvyrkov
2009-12-11  9:58           ` Sebastian Andrzej Siewior
2009-12-11 15:39             ` Maxim Kuvyrkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).