Thread (3 messages) 3 messages, 3 authors, 2012-08-24

How to know default gcc flags ?

From: Mulyadi Santosa <hidden>
Date: 2012-08-23 14:20:36

Hi..

On Thu, Aug 23, 2012 at 4:37 PM, Pritam Bankar
[off-list ref] 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 - 2>&1 | grep -i cc

and find the line like below:

/usr/lib/gcc/i686-linux-gnu/4.6/cc1 -E -quiet -v -imultilib .
-imultiarch i386-linux-gnu - -mtune=generic -march=i686
-fstack-protector

(that's mine on Core Duo, Linux Mint 13 32 bit)

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help