On Thu, Aug 18, 2016 at 11:32:45AM +0200, Pierre-Marie de Rodat wrote: > Currently, the VxWorks target overrides the defaults for debug info > output options (DWARF version, strictness) in a target-specific options > hook. This patch creates macros so that these defaults can be overriden
I believe that is the preferred way, rather than macros. The macros are yet another thing that would need to be undone if we ever start supporting multiple targets in the same binary. I don't see any advantages of introducing the macros. > gcc/ > * defaults.h (DWARF_STRICT_DEFAULT, DWARF_VERSION_DEFAULT): New > macros. > * common.opt (-gdwarf-, -gno-strict-dwarf): Update to use macros > for default values. Jakub