OpenSolaris

Printable Version Enter a New Search
Bug ID 6267482
Synopsis lex generates code gcc doesn't like
State 10-Fix Delivered (Fix available in build)
Category:Subcategory compiler:misc-tools
Keywords tonic-gcc
Responsible Engineer Mike Sullivan
Reported Against snv_14
Duplicate Of
Introduced In solaris_2.0
Commit to Fix snv_17
Fixed In snv_17
Release Fixed solaris_nevada(snv_17) , solaris_10u1(s10u1_11) (Bug ID:2127282)
Related Bugs
Submit Date 9-May-2005
Last Update Date 14-June-2005
Description
When building ON with gcc  I found that lex likes to upset gcc
(and probably studio in c99 mode). 

It's mostly the form thing that it includes that has problems with
implicit ints, and then if one fixes that it needs to generate a function
prototype in header as well. I'm a bit worried because the generated code
has a few ifdefs so whoever fixes this should worry about that too :)

The suggested fix builds cleanly with both cc and gcc and seems to work
but I haven't done a lot of testing really (and I suppose there could be
more issues in what it generates that we don't see in ON. At least on x86).
 xxxxx@xxxxx.com 2005-05-09 20:28:49 GMT
Work Around
N/A
Comments
N/A