[parisc-linux] Glibc 2.2.4-2 No Optimizations = No Compliation

Carlos O'Donell Jr. carlos@megatonmonkey.net
Thu, 11 Oct 2001 07:31:01 -0400


pa-list,

I was working on glibc once again last night.

With the hopes of compiling the library with less optimizations
and tracing through some saner PARISC assembly.

I've noticed that glibc-2.2.4/config.h.in (eventually becomes
config.h) throws an error if glibc is compiled wihtout 
optimizations.

"#error glibc cannot be compiled without optimizations"

Why?

I've trolled the glibc lists, and the faq, hunted through gcc
manuals and referance documentation... to no avail.

As of last year, Drepper made -02 the stable glibc 
compilation standard.

I've compiled glibc with -O1 and it looks like saner assembly.
I have yet to do a full trace through again.

I would like to compile with -O0, but I'm not quite sure of
the ramifications. 

Any reasons why I can't? Any ideas?

c.

Note: This is only for the sake of debugging :)