diff options
author | Daniel Jacobowitz <dan@codesourcery.com> | 2005-03-02 16:27:42 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@gcc.gnu.org> | 2005-03-02 16:27:42 +0000 |
commit | f92ba6d11092737d05c2b08e403c1f7e2d55d62d (patch) | |
tree | d30d4bff6483bb865ccd51268acdebe0679bb2b2 /gcc | |
parent | 659d8efa540dfd87570b568e93e2629ce9a45771 (diff) | |
download | gcc-f92ba6d11092737d05c2b08e403c1f7e2d55d62d.zip gcc-f92ba6d11092737d05c2b08e403c1f7e2d55d62d.tar.gz gcc-f92ba6d11092737d05c2b08e403c1f7e2d55d62d.tar.bz2 |
linux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT) for Thumb.
* config/arm/linux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT)
for Thumb.
* config/arm/netbsd-elf.h (ARM_FUNCTION_PROFILER): Likewise.
From-SVN: r95785
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/arm/linux-elf.h | 6 | ||||
-rw-r--r-- | gcc/config/arm/netbsd-elf.h | 5 |
3 files changed, 13 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 247b1f2..0fc8b9c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2005-03-02 Daniel Jacobowitz <dan@codesourcery.com> + + * config/arm/linux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT) + for Thumb. + * config/arm/netbsd-elf.h (ARM_FUNCTION_PROFILER): Likewise. + 2005-03-02 Kazu Hirata <kazu@cs.umass.edu> * cfgloop.h, cfgloopanal.c, cfgloopmanip.c, conflict.c, diff --git a/gcc/config/arm/linux-elf.h b/gcc/config/arm/linux-elf.h index e85b6d0..48b0f01 100644 --- a/gcc/config/arm/linux-elf.h +++ b/gcc/config/arm/linux-elf.h @@ -1,5 +1,6 @@ /* Definitions for ARM running Linux-based GNU systems using ELF - Copyright (C) 1993, 1994, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 + Copyright (C) 1993, 1994, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, + 2005 Free Software Foundation, Inc. Contributed by Philip Blundell <philb@gnu.org> @@ -123,7 +124,8 @@ #undef ARM_FUNCTION_PROFILER #define ARM_FUNCTION_PROFILER(STREAM, LABELNO) \ { \ - fprintf (STREAM, "\tbl\tmcount%s\n", NEED_PLT_RELOC ? "(PLT)" : ""); \ + fprintf (STREAM, "\tbl\tmcount%s\n", \ + (TARGET_ARM && NEED_PLT_RELOC) ? "(PLT)" : ""); \ } /* The linux profiler clobbers the link register. Make sure the diff --git a/gcc/config/arm/netbsd-elf.h b/gcc/config/arm/netbsd-elf.h index cc69064..9cf47c7 100644 --- a/gcc/config/arm/netbsd-elf.h +++ b/gcc/config/arm/netbsd-elf.h @@ -1,5 +1,5 @@ /* Definitions of target machine for GNU compiler, NetBSD/arm ELF version. - Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. + Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. Contributed by Wasabi Systems, Inc. This file is part of GCC. @@ -97,7 +97,8 @@ { \ asm_fprintf (STREAM, "\tmov\t%Rip, %Rlr\n"); \ asm_fprintf (STREAM, "\tbl\t__mcount%s\n", \ - NEED_PLT_RELOC ? "(PLT)" : ""); \ + (TARGET_ARM && NEED_PLT_RELOC) \ + ? "(PLT)" : ""); \ } /* VERY BIG NOTE: Change of structure alignment for NetBSD/arm. |