OSDN Git Service

* config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Sep 2009 11:13:14 +0000 (11:13 +0000)
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Sep 2009 11:13:14 +0000 (11:13 +0000)
symbols.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151685 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/bfin/bfin.c

index 930b556..f7dc8d9 100644 (file)
@@ -1,3 +1,8 @@
+2009-09-14  Bernd Schmidt  <bernd.schmidt@analog.com>
+
+       * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
+       symbols.
+
 2009-09-14  Richard Guenther  <rguenther@suse.de>
 
        PR middle-end/41350
index ed51006..0a7b149 100644 (file)
@@ -2219,6 +2219,8 @@ bool
 bfin_longcall_p (rtx op, int call_cookie)
 {
   gcc_assert (GET_CODE (op) == SYMBOL_REF);
+  if (SYMBOL_REF_WEAK (op))
+    return 1;
   if (call_cookie & CALL_SHORT)
     return 0;
   if (call_cookie & CALL_LONG)