Does gcc define anything when -g is specified?
You can see the list of all macros gcc/g++ defines for any combination of flags like that: $ g++ -E -dD -xc++ /dev/null For example: [max@truth ~]$ g++ -E -dD -xc++ /dev/null > a [max@truth ~]$ g++ -E -dD -xc++ -g -O3 /dev/null > b [max@truth ~]$ diff a b 1a2 > # 1 “/home/max//” … Read more