aboutsummaryrefslogtreecommitdiffstats
path: root/lang/gcc43
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2003-04-23 01:14:43 +0800
committerobrien <obrien@FreeBSD.org>2003-04-23 01:14:43 +0800
commit5ec83c3f93a02bcab11e5a13766c15603d5de5d5 (patch)
treeb492f300c045a72196b27ad0bac48dbaeb9e0dab /lang/gcc43
parentacaf37edd61c5b48b61b50e6c4715169ddc7adac (diff)
downloadfreebsd-ports-gnome-5ec83c3f93a02bcab11e5a13766c15603d5de5d5.tar.gz
freebsd-ports-gnome-5ec83c3f93a02bcab11e5a13766c15603d5de5d5.tar.zst
freebsd-ports-gnome-5ec83c3f93a02bcab11e5a13766c15603d5de5d5.zip
Allow YACC to be used, rather than Bison, for C/C++.
Submitted by: kan
Diffstat (limited to 'lang/gcc43')
-rw-r--r--lang/gcc43/files/patch-gengtype-yacc.y29
1 files changed, 29 insertions, 0 deletions
diff --git a/lang/gcc43/files/patch-gengtype-yacc.y b/lang/gcc43/files/patch-gengtype-yacc.y
new file mode 100644
index 000000000000..cf227a4b58a6
--- /dev/null
+++ b/lang/gcc43/files/patch-gengtype-yacc.y
@@ -0,0 +1,29 @@
+--- gcc/gengtype-yacc.y.orig Fri Sep 20 00:33:24 2002
++++ gcc/gengtype-yacc.y Tue Apr 22 09:11:27 2003
+@@ -24,6 +24,9 @@
+ #include "system.h"
+ #include "gengtype.h"
+ #define YYERROR_VERBOSE
++
++#define malloc xmalloc
++#define realloc xrealloc
+ %}
+
+ %union {
+@@ -37,11 +40,11 @@
+ %token <t>ENT_STRUCT
+ %token ENT_EXTERNSTATIC
+ %token ENT_YACCUNION
+-%token GTY_TOKEN "GTY"
+-%token UNION "union"
+-%token STRUCT "struct"
+-%token ENUM "enum"
+-%token ALIAS "ptr_alias"
++%token GTY_TOKEN
++%token UNION
++%token STRUCT
++%token ENUM
++%token ALIAS
+ %token <s>PARAM_IS
+ %token NUM
+ %token PERCENTPERCENT "%%"