This is sources Bugzilla
Bugzilla Version 2.17.5
Bugzilla Bug 1299
  itbl-lex.c, no previous prototype errors on flex-generated file Last modified: 2006-03-29 05:55:55
Bug List: First Last (This bug is not in your list)   Show list      Query page      Enter new bug
Bug#: 1299   Hardware:   Reporter: James Troup <james@nocrew.org>
Host: Target: Build:
Product:     Add CC:
Component:   Version:   CC:
Remove selected CCs
Status: RESOLVED   Priority:  
Resolution: FIXED   Severity:  
Assigned To: unassigned@sources.redhat.com   Target Milestone:  
Summary:
Keywords:

Attachment Description Type Created Actions
binutils-2.16.91.0.3-flex_fix-1.patch Fixes Flex Warning in binutils patch 2005-09-12 22:06 Edit | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 1299 depends on: Show dependency tree
Show dependency graph
Bug 1299 blocks:

Additional Comments:


Leave as RESOLVED FIXED
Reopen bug
Mark bug as VERIFIED

View Bug Activity   |   Format For Printing


Description:   Last confirmed: 0000-00-00 00:00 Opened: 2005-09-05 21:05
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.

------- Additional Comment #1 From H.J. Lu 2005-09-12 20:49 -------
It could be a flex bug. I am using flex-2.5.4a-29 on RHEL 3 and have no
problem.

------- Additional Comment #2 From Jim Gifford 2005-09-12 22:06 -------
Created an attachment (id=659)
Fixes Flex Warning in binutils

------- Additional Comment #3 From Jim Gifford 2005-09-12 22:08 -------
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

------- Additional Comment #4 From Ben Elliston 2006-03-29 05:55 -------
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.

Bug List: First Last (This bug is not in your list)   Show list      Query page      Enter new bug
Actions: New | Query | bug # | Reports | Requests   New Account | Log In