aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2014-07-06 01:26:47 +0800
committermarino <marino@FreeBSD.org>2014-07-06 01:26:47 +0800
commita60f990e6822adf2b286c5f6cb53106a9557f048 (patch)
treeac4dc2ded00c44f8e13136e8e65a6730b867481a
parent8d7943dd72691b2cd39c632e63e434cbfceb3832 (diff)
downloadfreebsd-ports-gnome-a60f990e6822adf2b286c5f6cb53106a9557f048.tar.gz
freebsd-ports-gnome-a60f990e6822adf2b286c5f6cb53106a9557f048.tar.zst
freebsd-ports-gnome-a60f990e6822adf2b286c5f6cb53106a9557f048.zip
devel/phptoolchain-gcc-stage1: Fix build for modern gcc (dports)
Approved by: portmgr (implicit, for NOT_STAGED)
-rw-r--r--devel/psptoolchain-gcc-stage1/files/patch-gcc_gengtype.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/devel/psptoolchain-gcc-stage1/files/patch-gcc_gengtype.c b/devel/psptoolchain-gcc-stage1/files/patch-gcc_gengtype.c
new file mode 100644
index 000000000000..00005603f049
--- /dev/null
+++ b/devel/psptoolchain-gcc-stage1/files/patch-gcc_gengtype.c
@@ -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));