]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
varasm.c (initializer_constant_valid_p): Call lang_expand_constant to simplify the...
authorMark Mitchell <mark@codesourcery.com>
Mon, 21 Feb 2000 04:25:11 +0000 (04:25 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 21 Feb 2000 04:25:11 +0000 (04:25 +0000)
* varasm.c (initializer_constant_valid_p): Call
lang_expand_constant to simplify the constant.

From-SVN: r32084

gcc/ChangeLog
gcc/varasm.c

index c45eb8722ab4c611a3b4f70468f337e32d6dd26f..c3f8de6ba29c5f0e43dd251b072f67fb619589f6 100644 (file)
@@ -1,3 +1,8 @@
+2000-02-20  Mark Mitchell  <mark@codesourcery.com>
+
+       * varasm.c (initializer_constant_valid_p): Call
+       lang_expand_constant to simplify the constant.
+
 2000-02-20  Bruce Korb  <bkorb@gnu.org>
 
        * fixinc/inclhack.def(stdio_va_list):
index e71ba3afb5933aac88e3e2f997a543badfa96a54..992a3a3382ab562fdc5e6b0ac708c6b0a802eeb2 100644 (file)
@@ -4025,6 +4025,11 @@ initializer_constant_valid_p (value, endtype)
      tree value;
      tree endtype;
 {
+  /* Give the front-end a chance to convert VALUE to something that
+     looks more like a constant to the back-end.  */
+  if (lang_expand_constant)
+    value = (*lang_expand_constant) (value);
+
   switch (TREE_CODE (value))
     {
     case CONSTRUCTOR: