linux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT) for Thumb.
authorDaniel Jacobowitz <dan@codesourcery.com>
Wed, 2 Mar 2005 16:27:42 +0000 (16:27 +0000)
committerDaniel Jacobowitz <drow@gcc.gnu.org>
Wed, 2 Mar 2005 16:27:42 +0000 (16:27 +0000)
* 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

gcc/ChangeLog
gcc/config/arm/linux-elf.h
gcc/config/arm/netbsd-elf.h

index 247b1f26b9c1caa009d8c4b0db65941f516258dd..0fc8b9cbb8450deca721bd1af2b19be35b382361 100644 (file)
@@ -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,
index e85b6d035c69038cc98ea6cc37917b3c7d963439..48b0f0164014593b597e222a19cbe3b3f5182390 100644 (file)
@@ -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>
 
 #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
index cc69064c70fe54d35498f5dddc5754ce812d5e2b..9cf47c76188d4faabb19665758ab8c59433eea6e 100644 (file)
@@ -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.