diff options
author | Richard Guenther <rguenther@suse.de> | 2012-08-20 07:49:41 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2012-08-20 07:49:41 +0000 |
commit | e7eec276ffe40c4e0f0ef64720240b59543b6a5b (patch) | |
tree | 22d0141f977b22aeb16e0c9ea6a7d246000ab990 /gcc/genoutput.c | |
parent | f657024b85d19eefb046c487a6f7e48bd4905dc9 (diff) |
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/genoutput.c')
-rw-r--r-- | gcc/genoutput.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/genoutput.c b/gcc/genoutput.c index 4e4e1edc6ac..2c6104cb25a 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; |