This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Optimization bug with -O2 (to be exact -fforce-mem)



Hi,

   I've found that the optimization level -O2 of egcs, to more more precise
it is gcc version egcs-2.91.33 19980528 (gcc2 ss-980502 experimental),
generates wrong initex binary (web2c-6.1 and web2c-7.2a).  The scanner of
initex is broken, e.g. spaces after the keyword `to' produces an error
message:

--------------------
This is TeX, Version 3.14159 (Web2C 7.2) (INITEX)
(/usr/local/share/TeX/texmf/tex/latex/base/latex.ltx
(/usr/local/share/TeX/texmf/tex/latex/config/texsys.cfg)
! Missing control sequence inserted.
<inserted text> 
                \inaccessible 
...
l.194 ...xists{:texsys.aux}{\gdef\@currdir{:}}{}}}
                                                  
? 
! Emergency stop.
<inserted text> 
                \inaccessible 
...
l.194 ...xists{:texsys.aux}{\gdef\@currdir{:}}{}}}
-------------------

The TeX code is fully correct:

     \read\@inputcheck to \reserved@a

(removing the space after `to' is a workarounf to avoid
the error)

... current solution is to set the CFLAGS variable to

        -O2 -fno-force-mem

for the current egcs.


        Werner Fink                       <werner@suse.de>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]