diff options
author | Franz Sirl <Franz.Sirl-kernel@lauterbach.com> | 2001-05-13 21:16:58 +0000 |
---|---|---|
committer | Franz Sirl <sirl@gcc.gnu.org> | 2001-05-13 21:16:58 +0000 |
commit | ff0b6b992118d179779efac155b3484d32a1cf0d (patch) | |
tree | 944e76343c8f93f43eedc9b683710ba03f0a6739 /gcc/rtlanal.c | |
parent | 6f22140248a891c4cdf46679cc9597f15107c5f3 (diff) | |
download | gcc-ff0b6b992118d179779efac155b3484d32a1cf0d.zip gcc-ff0b6b992118d179779efac155b3484d32a1cf0d.tar.gz gcc-ff0b6b992118d179779efac155b3484d32a1cf0d.tar.bz2 |
rtl.h (SYMBOL_REF_WEAK): New macro.
2001-05-13 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* rtl.h (SYMBOL_REF_WEAK): New macro.
* rtlanal.h (rtx_addr_can_trap): Use it, a weak SYMBOL_REF can trap.
* varasm.c (make_decl_rtl): Mark SYMBOL_REF weak if necessary.
* rtl.texi (SYMBOL_REF_WEAK): Document it.
* gcc.texi: Remove wrong description.
From-SVN: r42046
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r-- | gcc/rtlanal.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 121b879..b0e2f4e 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -207,11 +207,9 @@ rtx_addr_can_trap_p (x) switch (code) { case SYMBOL_REF: + return SYMBOL_REF_WEAK (x); + case LABEL_REF: - /* SYMBOL_REF is problematic due to the possible presence of - a #pragma weak, but to say that loads from symbols can trap is - *very* costly. It's not at all clear what's best here. For - now, we ignore the impact of #pragma weak. */ return 0; case REG: |