Bug 1299 - itbl-lex.c, no previous prototype errors on flex-generated file
Summary: itbl-lex.c, no previous prototype errors on flex-generated file
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: 2.17
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-05 21:05 UTC by James Troup
Modified: 2006-03-29 05:55 UTC (History)
1 user (show)

See Also:
Host: mips-linux-gnu
Target: mips-linux-gnu
Build: mips-linux-gnu
Last reconfirmed:


Attachments
Fixes Flex Warning in binutils (501 bytes, patch)
2005-09-12 22:06 UTC, Jim Gifford
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Troup 2005-09-05 21:05:40 UTC
When compiling CVS HEAD on mips-linux-gnu, I get the following errors:

gcc -DHAVE_CONFIG_H -I. -I../../gas -I. -D_GNU_SOURCE -I. -I../../gas -I../bfd
-I../../gas/config -I../../gas/../include -I../../gas/.. -I../../gas/../bfd
-I../../gas/../intl -I../intl -DLOCALEDIR="\"/usr/share/locale\""   -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c itbl-lex.c
cc1: warnings being treated as errors
itbl-lex.c:1694: warning: no previous prototype for 'yyget_lineno'
itbl-lex.c:1703: warning: no previous prototype for 'yyget_in'
itbl-lex.c:1711: warning: no previous prototype for 'yyget_out'

This is a regression from 2.16.1.

The compiler is: gcc (GCC) 4.0.2 20050821 (prerelease) (Debian 4.0.1-6)
This is on Debian unstable.
Comment 1 H.J. Lu 2005-09-12 20:49:59 UTC
It could be a flex bug. I am using flex-2.5.4a-29 on RHEL 3 and have no
problem.
Comment 2 Jim Gifford 2005-09-12 22:06:25 UTC
Created attachment 659 [details]
Fixes Flex Warning in binutils
Comment 3 Jim Gifford 2005-09-12 22:08:02 UTC
I have attached a patch I just sent HJL to fix the issue. This issue is 
similar to the one reported before.
http://sources.redhat.com/ml/binutils/2005-03/msg00694.html
Comment 4 Ben Elliston 2006-03-29 05:55:55 UTC
Fixed by:

2005-11-01  Thiemo Seufer  <ths@networkno.de>

        PR gas/1299
        * Makefile.am: Disable -Werror for the itbl-lex.o rule.
        * Makefile.in: Regenerate.

If there are continued problems with the code generated by flex, we should work
to get those corrected in flex itself.