1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00

devel/phptoolchain-gcc-stage1: Fix build for modern gcc (dports)

Approved by:	portmgr (implicit, for NOT_STAGED)
This commit is contained in:
John Marino 2014-07-05 17:26:47 +00:00
parent 13b2c83194
commit d3e714d5bd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360780

View File

@ -0,0 +1,18 @@
--- gcc/gengtype.c.orig 2010-11-25 19:03:27.000000000 +0000
+++ gcc/gengtype.c
@@ -3594,14 +3594,13 @@ write_field_root (outf_p f, pair_p v, ty
int has_length, struct fileloc *line, const char *if_marked,
bool emit_pch, type_p field_type, const char *field_name)
{
+ struct pair newv;
/* If the field reference is relative to V, rather than to some
subcomponent of V, we can mark any subarrays with a single stride.
We're effectively treating the field as a global variable in its
own right. */
if (v && type == v->type)
{
- struct pair newv;
-
newv = *v;
newv.type = field_type;
newv.name = ACONCAT ((v->name, ".", field_name, NULL));