>>>>> "Tom" == Tom Holroyd <tomh@stripped> writes:
Tom> On Tue, 30 Nov 1999, Michael Widenius wrote:
>> >>>>> "Tom" == Tom Holroyd <tomh@stripped> writes:
Tom> build errors:
Tom> 1) sql/sql_yacc.cc and sql/sql_acl.cc still need -O0 to work around bugs
Tom> in gcc 2.95.2.
>> The only fix for now is to compile with --with-low-memory
Tom> At least for sql_acl.cc, this is a real bug in egcs. I narrowed it down
Tom> to a simple case and notified them (I can supply details if anybody is
Tom> interested). With -O0 it works.
Thanks for reporting the bug to the gcc team!
Tom> For sql_yacc.cc, -O0 also works. Without it, it consumes all of memory.
Tom> I have 1 GB of RAM, and I tend to doubt that this is really necessary. I
Tom> suspect that this too, is a bug in the egcs optimizer.
Tom> Configuring with --with-low-memory would seem to be overkill in these
Tom> cases. One choice would be to change the Makefile to always compile these
Tom> two with -O0 and then just forget about it.
Note that the effect of --with-low-memory, is only to compile
sql_yacc.cc with -O0. No other files are affected.