Hi Pritam,
You can use -frecord-gcc-switches.
This switch causes the command line that was used to invoke the compiler to
be recorded into the object file that is being created.
$ gcc -O2 -frecord-gcc-switches -g -o test test.c
$ readelf -p .GCC.command.line test
String dump of section '.GCC.com
Hi..
On Thu, Aug 23, 2012 at 4:37 PM, Pritam Bankar
wrote:
> How to know default flags used in specific gcc version ? I am looking
> for difference between 3.4.3 and 4.1.1 These two have some difference
> regarding -nosse option but how can I find this ?
try something like:
echo "" | gcc -E -v -
How to know default flags used in specific gcc version ? I am looking
for difference between 3.4.3 and 4.1.1 These two have some difference
regarding -nosse option but how can I find this ?
--
Pritam Bankar
___
Kernelnewbies mailing list
Kernelnewbies