]> gcc.gnu.org Git - gcc.git/commitdiff
objc-act.c (build_objc_string_object): Mark the address expression as constant.
authorAndrew Pinski <apinski@apple.com>
Thu, 5 Aug 2004 18:06:23 +0000 (18:06 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Thu, 5 Aug 2004 18:06:23 +0000 (11:06 -0700)
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

gcc/ChangeLog
gcc/objc/objc-act.c

index 1794b807633e4da5d592ee8bf8da804039f3f791..1973844f93d66880a5b34b041f4c26cc4d705b5d 100644 (file)
@@ -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
index a54933dcb28786f16b3467b81f81154658e5b708..a99ee5223217e8df66c177390fb8469b07fa6e91 100644 (file)
@@ -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.  */
This page took 0.076995 seconds and 5 git commands to generate.