aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-08-20 07:49:41 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-08-20 07:49:41 +0000
commite7eec276ffe40c4e0f0ef64720240b59543b6a5b (patch)
tree22d0141f977b22aeb16e0c9ea6a7d246000ab990 /gcc
parentf657024b85d19eefb046c487a6f7e48bd4905dc9 (diff)
downloadgcc-e7eec276ffe40c4e0f0ef64720240b59543b6a5b.zip
gcc-e7eec276ffe40c4e0f0ef64720240b59543b6a5b.tar.gz
gcc-e7eec276ffe40c4e0f0ef64720240b59543b6a5b.tar.bz2
re PR bootstrap/54326 (GCC does not build with G++ version 3.4.0)
2012-08-20 Richard Guenther <rguenther@suse.de> PR bootstrap/54326 * genoutput.c (note_constraint): Properly use CONST_CAST. From-SVN: r190524
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/genoutput.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 236da5e..db0e94c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/genoutput.c b/gcc/genoutput.c
index 4e4e1ed..2c6104c 100644
--- a/gcc/genoutput.c
+++ b/gcc/genoutput.c
@@ -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;