From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26845 invoked by alias); 19 Nov 2009 13:44:22 -0000 Received: (qmail 26830 invoked by uid 22791); 19 Nov 2009 13:44:21 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from Chamillionaire.breakpoint.cc (HELO Chamillionaire.breakpoint.cc) (85.10.199.196) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 19 Nov 2009 13:43:18 +0000 Received: id: bigeasy by Chamillionaire.breakpoint.cc with local (easymta 1.00 BETA 1) id 1NB7I3-0003au-Nm; Thu, 19 Nov 2009 14:43:15 +0100 Date: Thu, 19 Nov 2009 13:51:00 -0000 From: Sebastian Andrzej Siewior To: gcc-patches@gcc.gnu.org Cc: mkuvyrkov@gcc.gnu.org Subject: [PATCH] m68k: don't use lea on profiling Message-ID: <20091119134315.GA13786@Chamillionaire.breakpoint.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline X-Key-Id: FE3F4706 X-Key-Fingerprint: FFDA BBBB 3563 1B27 75C9 925B 98D5 5C1C FE3F 4706 User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2009-11/txt/msg01011.txt.bz2 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 --- 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