From e7eec276ffe40c4e0f0ef64720240b59543b6a5b Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Mon, 20 Aug 2012 07:49:41 +0000 Subject: re PR bootstrap/54326 (GCC does not build with G++ version 3.4.0) 2012-08-20 Richard Guenther PR bootstrap/54326 * genoutput.c (note_constraint): Properly use CONST_CAST. From-SVN: r190524 --- gcc/ChangeLog | 5 +++++ gcc/genoutput.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 + + PR bootstrap/54326 + * genoutput.c (note_constraint): Properly use CONST_CAST. + 2012-08-19 Nick Clifton 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; -- cgit v1.1