Due to the wild popularity of -Weverything (used for enabling all
warnings), we're back for round 2 (electric boogaloo) with a succinct
analog to enable all -f flags; -feverything.
This includes favorite hits like:
- -funsafe-math-optimizations
- who knew floating point math could be BOTH fun and safe, WHO KNEW?!1
- your favorite language extensions
- -fborland-extensions
- -fms-extensions
- -fheinous-gnu-extensions
- -fplan9-extensions (TODO: implement like GCC)
- flags specific to languages (whether you're using them or not) like:
- CUDA
- FORTRAN
- Objective-C
- OpenMP
- flags specific to target (whether you're targeting them or not) like:
- -faltivec
- -fcray-pointer
- -fcall-saved-*/-ffixed-* (aka "build your own calling convention!")
- I don't know what these do, but they sound nice:
- -fmudflap
- -fdollar-ok
- -fropi
- -frwpi
Can't decide between the overflow behavior of -fwrapv or -ftrapv?
¿Porque No Los Dos?
Next time you're having trouble getting your code to compile, try
-feverything.
TODO:
- unit tests (honestly afraid to run this outside a VM, though this does
enable all runtime sanitizers for extra safety).
- -fno-everything