aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1999-04-06 20:19:35 -0700
committerRichard Henderson <rth@gcc.gnu.org>1999-04-06 20:19:35 -0700
commit5e62dee5a3ae4980296bb91a19579352277d97a0 (patch)
treec4edf1372c07d0dfecce0594206c6cb0c37a8e7f /gcc
parent67070f5c92f0ce0c3d65f2af0ed22001fcb1c5e8 (diff)
downloadgcc-5e62dee5a3ae4980296bb91a19579352277d97a0.zip
gcc-5e62dee5a3ae4980296bb91a19579352277d97a0.tar.gz
gcc-5e62dee5a3ae4980296bb91a19579352277d97a0.tar.bz2
* alpha.c (alpha_end_function): Don't flag weak functions.
From-SVN: r26233
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config/alpha/alpha.c6
2 files changed, 11 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ef26274..e13b8ee 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+Wed Apr 7 03:16:45 1999 Richard Henderson <rth@cygnus.com>
+
+ * alpha.c (reg_no_subreg_operand): New function.
+ * alpha.h (PREDICATE_CODES): Add it.
+ * alpha.md (floatdi?f patterns): Use it for op1.
+
+ * alpha.c (alpha_end_function): Don't flag weak functions.
+
Wed Apr 7 02:11:55 1999 Richard Henderson <rth@cygnus.com>
* expr.c (expand_builtin) [BUILT_IN_RETURN_ADDRESS]: Use
diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c
index 39e11f7..8565836 100644
--- a/gcc/config/alpha/alpha.c
+++ b/gcc/config/alpha/alpha.c
@@ -3948,10 +3948,10 @@ alpha_end_function (file, fnname, decl)
Don't do this for global functions in object files destined for a
shared library because the function may be overridden by the application
- or other libraries.
- ??? Is this just ELF? */
+ or other libraries. Similarly, don't do this for weak functions. */
- if (!flag_pic || !TREE_PUBLIC (current_function_decl))
+ if (!DECL_WEAK (current_function_decl)
+ && (!flag_pic || !TREE_PUBLIC (current_function_decl)))
SYMBOL_REF_FLAG (XEXP (DECL_RTL (current_function_decl), 0)) = 1;
}