Hi,
I'm trying to build base without optimizations. Usually it is a matter
of saying debug=yes at make and/or setting -Ox directly in our
Library/Makefiles/config.make to be super-sure.
I lost half an afternoon and I still got gui compiled with -O2. The
command line I get is:
clang NSAffineTransform.m -c \
-MMD -MP -DGNUSTEP_TARGET_DIR=\".\" -DGNUSTEP_TARGET_CPU=\"ix86\"
-DGNUSTEP_TARGET_OS=\"freebsd\" -DLIBRARY_COMBO=\"gnu-gnu-gnu\"
-DBACKEND_BUNDLE=1 -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1
-DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1
-fno-strict-aliasing -fexceptions -fobjc-exceptions
-D_NATIVE_OBJC_EXCEPTIONS -pthread -fPIC -Wall -DGSWARN -DGSDIAGNOSE
-Wno-import -g -O0 -fgnu-runtime -Wall
-fconstant-string-class=NSConstantString -fstack-protector-all
-I/usr/local/include/libpng -O2 -pipe -march=prescott
-fno-strict-aliasing -I../Headers/Additions -I../Headers -I./. -I.
-I/usr/local/include -I/home/multix/GNUstep/Library/Headers
-I/Local/Library/Headers -I/System/Library/Headers \
-o obj/libgnustep-gui.obj/NSAffineTransform.m.o
What looks out of place is:
-fstack-protector-all -I/usr/local/include/libpng -O2 -pipe
-march=prescott -fno-strict-aliasing
I have a hint what it is coming from: i'd never optimize for "prescott"
a "core" processor.. even if it is written around that it should be the
same, it feels just wrong... internet wisdom. I never wrote "prescott".
However look here.
> libpng-config --cflags
-I/usr/local/include/libpng -O2 -pipe -march=prescott -fno-strict-aliasing
I think that our "filter out" is not working properly or should filter
out all instances of the optimization flags if there is more than one.
Riccardo
_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep