Blame SOURCES/gdb-bison-old.patch

7a6771
bison-3.0.4-4.fc24.x86_64
7a6771
vs.
7a6771
bison-2.7-4.el7.x86_64
7a6771
7a6771
bison:
7a6771
8d0b7cef7df7fead44b9574cee342de336008625 tags/v3.0.1~2
7a6771
    parsers: rename YY_NULL as YY_NULLPTR to avoid conflicts with Flex
7a6771
7a6771
ada-lex.c:113:0: error: "YY_NULL" redefined [-Werror]
7a6771
 #define YY_NULL 0
7a6771
7a6771
ada-exp.c:158:0: note: this is the location of the previous definition
7a6771
 #   define YY_NULL nullptr
7a6771
7a6771
*-exp.c cp-name-parser.c
7a6771
vs.
7a6771
ada-lex.c
7a6771
7a6771
# ifndef YY_NULL
7a6771
#  if defined __cplusplus && 201103L <= __cplusplus
7a6771
#   define YY_NULL nullptr
7a6771
#  else
7a6771
#   define YY_NULL 0
7a6771
#  endif
7a6771
# endif
7a6771
7a6771
# ifndef YY_NULLPTR
7a6771
#  if defined __cplusplus && 201103L <= __cplusplus
7a6771
#   define YY_NULLPTR nullptr
7a6771
#  else
7a6771
#   define YY_NULLPTR 0
7a6771
#  endif
7a6771
# endif
7a6771
7a6771
--- gdb-clean712/gdb/Makefile.in	2016-08-29 09:16:15.505393928 +0200
7a6771
+++ gdb-clean712/gdb/Makefile.in	2016-09-07 13:32:34.744270346 +0200
7a6771
@@ -1900,6 +1945,7 @@ po/$(PACKAGE).pot: force
7a6771
 	     -e 's/\([ \t;,(]\)free\([ \t]*[&(),]\)/\1xfree\2/g' \
7a6771
 	     -e 's/\([ \t;,(]\)free$$/\1xfree/g' \
7a6771
 	     -e '/^#line.*y.tab.c/d' \
7a6771
+	     -e 's/\<YY_NULL\>/YY_NULLPTR/g' \
7a6771
 	  < $@.tmp > $@
7a6771
 	rm -f $@.tmp
7a6771
 .l.c: