aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-09-22 18:50:27 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-09-22 18:50:27 -0400
commit1e5b2303241086a79bf7e3db7082a0cb6d72c6de (patch)
tree641ad08ffd58ebe67d6089602e8944b0ddc894c3 /gcc
parentf0c2404219afc7da27a8ea70e8b1a4c51320b033 (diff)
downloadgcc-1e5b2303241086a79bf7e3db7082a0cb6d72c6de.zip
gcc-1e5b2303241086a79bf7e3db7082a0cb6d72c6de.tar.gz
gcc-1e5b2303241086a79bf7e3db7082a0cb6d72c6de.tar.bz2
(ASM_OUTPUT_INT): Test for whether the integer being output is also a
constant so &sym - &sym2 is not fixed up. From-SVN: r10395
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/rs6000/eabi.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/rs6000/eabi.h b/gcc/config/rs6000/eabi.h
index c244843..0f8bdb5 100644
--- a/gcc/config/rs6000/eabi.h
+++ b/gcc/config/rs6000/eabi.h
@@ -96,7 +96,8 @@ do { \
&& in_section != in_dtors \
&& !recurse \
&& GET_CODE (VALUE) != CONST_INT \
- && GET_CODE (VALUE) != CONST_DOUBLE) \
+ && GET_CODE (VALUE) != CONST_DOUBLE \
+ && CONSTANT_P (VALUE)) \
{ \
static int labelno = 0; \
char buf[256], *p; \