OSDN Git Service

* varasm.c (decode_addr_const, case INTEGER_CST): Call
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 29 Dec 2001 21:17:50 +0000 (21:17 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 29 Dec 2001 21:17:50 +0000 (21:17 +0000)
output_constant_def instead of looking at TREE_CST_RTL.

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

gcc/ChangeLog
gcc/varasm.c

index 6b10d4c..85930d6 100644 (file)
@@ -1,5 +1,8 @@
 Sat Dec 29 15:48:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
+       * varasm.c (decode_addr_const, case INTEGER_CST): Call
+       output_constant_def instead of looking at TREE_CST_RTL.
+
        * expr.c (convert_move): If -fforce-mem, force FROM to not be memory.
 
        * stor-layout.c (layout_decl): Don't misalign field of variable size
index 6a3fb7c..aabdd17 100644 (file)
@@ -2366,7 +2366,9 @@ decode_addr_const (exp, value)
     case COMPLEX_CST:
     case CONSTRUCTOR:
     case INTEGER_CST:
-      x = TREE_CST_RTL (target);
+      /* This constant should have been output already, but we can't simply
+        use TREE_CST_RTL since INTEGER_CST doesn't have one.  */
+      x = output_constant_def (target, 1);
       break;
 
     default: