aboutsummaryrefslogtreecommitdiff
path: root/gas/Makefile.am
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-01-14 01:03:54 -0500
committerMike Frysinger <vapier@gentoo.org>2021-01-14 01:07:13 -0500
commitabad28152eb82fb4dc84ed3f0bc35e685d7772d7 (patch)
tree092efce3d7e0bc8f2211cbacc8d4f6c581ad200f /gas/Makefile.am
parentadb0bd8fda7dded7ffb227481f663fdfcbfbe63a (diff)
downloadgdb-abad28152eb82fb4dc84ed3f0bc35e685d7772d7.zip
gdb-abad28152eb82fb4dc84ed3f0bc35e685d7772d7.tar.gz
gdb-abad28152eb82fb4dc84ed3f0bc35e685d7772d7.tar.bz2
gas: bfin: build lexer with -Werror
The makefile has comments about old versions of bison/yacc generating warnings, but that doesn't apply to the lexer which comes from flex. As far as I can tell, the warnings in the Blackfin lexer can be fixed with defines that have been supported back through flex in 2002. So lets turn on -Werror for it and see if anyone notices. If they do, they can report their exact tool versions so we can record that here.
Diffstat (limited to 'gas/Makefile.am')
-rw-r--r--gas/Makefile.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/Makefile.am b/gas/Makefile.am
index bf167b3..ce7da76 100644
--- a/gas/Makefile.am
+++ b/gas/Makefile.am
@@ -492,14 +492,14 @@ bfin-lex.c: $(srcdir)/config/bfin-lex.l
$(SHELL) $(YLWRAP) $(srcdir)/config/bfin-lex.l lex.yy.c bfin-lex.c -- $(LEXCOMPILE)
bfin-lex-wrapper.@OBJEXT@: $(srcdir)/config/bfin-lex-wrapper.c bfin-lex.c bfin-parse.h $(srcdir)/config/bfin-defs.h
if am__fastdepCC
- $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/config/bfin-lex-wrapper.c $(NO_WERROR)
+ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/config/bfin-lex-wrapper.c
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
else
if AMDEP
source='bfin-lex-wrapper.c' object='$@' libtool=no @AMDEPBACKSLASH@
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
endif
- $(COMPILE) -c $(srcdir)/config/bfin-lex-wrapper.c $(NO_WERROR)
+ $(COMPILE) -c $(srcdir)/config/bfin-lex-wrapper.c
endif
EXTRA_as_new_SOURCES += config/rl78-parse.y