What Are Your GCC Flags?
blog.httrack.com
What Are Your GCC Flags?
1–10 of 117 posts
Re: What Are Your GCC Flags?
#2-Wall -Wextra -Wpedantic -Werror -std=c++11
Re: What Are Your GCC Flags?
#3-Wall -Wextra -Wpedantic -Werror -std=c++11
-Westsieeeede
Re: What Are Your GCC Flags?
#4 -fno-exceptions
I don’t like C++ exceptions. And we don’t use them where I work
And none of your code uses the STL nor third party libraries that might throw exceptions either, right [1][1] "Doing without" http://gcc.gnu.org/onlinedocs/libstdc++/manual/using_excepti...
Re: What Are Your GCC Flags?
#5Not gcc but clang:
-Weverything -Werror
That's how I roll.Re: What Are Your GCC Flags?
#6Not gcc but clang: -Weverything -Werror That's how I roll.
The GCC equivalent being, I believe,
-Wall -Wextra -WerrorRe: What Are Your GCC Flags?
#7-fno-exceptions I don’t like C++ exceptions. And we don’t use them where I work And none of your code uses the STL nor third party libraries that might throw exceptions either, right [1] [1] "Doing without" http://gcc.gnu.org/onlinedocs/libstdc++/manual/using_excepti...
Most code can use -fno-rtti
Real Time Type Info
Re: What Are Your GCC Flags?
#8Re: What Are Your GCC Flags?
#9whatever they were to build python[1].
Re: What Are Your GCC Flags?
#10 -Wl,-O1 Did you know that you also have an optimization flag for the linker ? Now you know!
Ages ago the linker on SUN used to compile templates. What is GCC doing/using this flag for?