summaryrefslogtreecommitdiff
path: root/gcc/genoutput.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2012-08-20 07:49:41 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2012-08-20 07:49:41 +0000
commit6591efde032e36be4aabf3041191984dfe810660 (patch)
tree22d0141f977b22aeb16e0c9ea6a7d246000ab990 /gcc/genoutput.c
parent38d81530c198a7298c42d5b5cce2ff7622bb57b7 (diff)
downloadgcc-6591efde032e36be4aabf3041191984dfe810660.tar.gz
2012-08-20 Richard Guenther <rguenther@suse.de>
PR bootstrap/54326 * genoutput.c (note_constraint): Properly use CONST_CAST. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190524 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genoutput.c')
-rw-r--r--gcc/genoutput.c2
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;