[fixed]Redundant compiler switches
Posted: Fri Feb 12, 2021 9:25 am
When compiling Irrlicht with GCC in release mode (NDEBUG=1), there are the following switches to GCC:
You can reduce this to since the other two are already included by -O2, which in turn is included by -O3.
See https://gcc.gnu.org/onlinedocs/gcc/Opti ... tions.html
This would have the effect that the compilation process would look cleaner:
vs
Code: Select all
-fstrict-aliasing -fexpensive-optimizations -O3
Code: Select all
-O3
See https://gcc.gnu.org/onlinedocs/gcc/Opti ... tions.html
This would have the effect that the compilation process would look cleaner:
Code: Select all
g++ -Wall -pipe -fno-exceptions -fno-rtti -fstrict-aliasing -fexpensive-optimizations -O3 -I../../include -Izlib -Ijpeglib -Ilibpng -I/usr/X11R6/include -DIRRLICHT_EXPORTS=1 -c -o CGUITabControl.o CGUITabControl.cpp
Code: Select all
g++ -Wall -pipe -fno-exceptions -fno-rtti -O3 -I../../include -Izlib -Ijpeglib -Ilibpng -I/usr/X11R6/include -DIRRLICHT_EXPORTS=1 -c -o CGUITabControl.o CGUITabControl.cpp