Re: Link-time failures from "simple" CFLAGS changes

From
David Edelsohn <hidden>
Date
2002-01-07 22:10:45
quoted
quoted
quoted
quoted
linuxppc-dev  writes:
When I change -O2 to -O0 in my CFLAGS definition in Makefile thus:
CFLAGS := -g $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O0 \
-fno-strict-aliasing -fno-common
CFLAGS := -g $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
-fno-strict-aliasing -fno-common
...I am astounded to see thousands of unresolved references
at kernel link time.  WTF?  Any ideas?
	GCC only inlines functions when optimizing and the Linux kernel
assumes inlining and other optimizations only present at -O2.  The Linux
kernel requires optimization at least, and only really is tested at -O2.

David


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Thread (1 message) 1 message, 1 author, 2002-01-07
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help