]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR bootstrap/54326 (GCC does not build with G++ version 3.4.0)
authorRichard Guenther <rguenther@suse.de>
Mon, 20 Aug 2012 07:49:41 +0000 (07:49 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 20 Aug 2012 07:49:41 +0000 (07:49 +0000)
2012-08-20  Richard Guenther  <rguenther@suse.de>

PR bootstrap/54326
* genoutput.c (note_constraint): Properly use CONST_CAST.

From-SVN: r190524

gcc/ChangeLog
gcc/genoutput.c

index 236da5e7db68e884851d68815f38212cd8685c9a..db0e94cf7c9d2ac3ad80250e89f436e6044dfa89 100644 (file)
@@ -1,3 +1,8 @@
+2012-08-20  Richard Guenther  <rguenther@suse.de>
+
+       PR bootstrap/54326
+       * genoutput.c (note_constraint): Properly use CONST_CAST.
+
 2012-08-19  Nick Clifton  <nickc@redhat.com>
 
        PR target/54306
index 4e4e1edc6acd565a12fff0efac700de54622bdef..2c6104cb25a9fbcbc240a89162f644c011247f98 100644 (file)
@@ -1175,7 +1175,7 @@ note_constraint (rtx exp, int lineno)
        }
     }
   new_cdata = XNEWVAR (struct constraint_data, sizeof (struct constraint_data) + namelen);
-  strcpy ((char *)new_cdata + offsetof(struct constraint_data, name), name);
+  strcpy (CONST_CAST(char *, new_cdata->name), name);
   new_cdata->namelen = namelen;
   new_cdata->lineno = lineno;
   new_cdata->next_this_letter = *slot;