aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@apple.com>2004-08-05 18:06:23 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-08-05 11:06:23 -0700
commit21149a790b13dec2d4a9e5d0848af02d79c6617f (patch)
tree9d7792eb25abf337580cc0f6a3ec03259d8e383f
parent26be638d678e0681b8c6d6e67a7a52ab0c3c4e29 (diff)
downloadgcc-21149a790b13dec2d4a9e5d0848af02d79c6617f.zip
gcc-21149a790b13dec2d4a9e5d0848af02d79c6617f.tar.gz
gcc-21149a790b13dec2d4a9e5d0848af02d79c6617f.tar.bz2
objc-act.c (build_objc_string_object): Mark the address expression as constant.
2004-08-05 Andrew Pinski <apinski@apple.com> * objc/objc-act.c (build_objc_string_object): Mark the address expression as constant. From-SVN: r85609
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/objc/objc-act.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1794b80..1973844 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-08-05 Andrew Pinski <apinski@apple.com>
+
+ * objc/objc-act.c (build_objc_string_object): Mark the address
+ expression as constant.
+
2004-08-05 David Edelsohn <edelsohn@gnu.org>
* config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c
index a54933d..a99ee52 100644
--- a/gcc/objc/objc-act.c
+++ b/gcc/objc/objc-act.c
@@ -1453,7 +1453,9 @@ build_objc_string_object (tree string)
= objc_add_static_instance (constructor, constant_string_type);
}
- return (build_unary_op (ADDR_EXPR, constructor, 1));
+ constructor = build_unary_op (ADDR_EXPR, constructor, 1);
+ TREE_CONSTANT (constructor) = true;
+ return constructor;
}
/* Declare a static instance of CLASS_DECL initialized by CONSTRUCTOR. */