This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: defaults for -march and -mtune


On Thu, 24 Nov 2011 16:10:10 +0100
Marcin MirosÅaw <marcin@mejor.pl> wrote:

> W dniu 24.11.2011 13:50, Jay Foad pisze:
> > Marcin MirosÃaw wrote:
> >> Try: gcc -Q --help=target 2>&1|grep  "march\|mtune"
> >
> > Thanks! It's a shame it doesn't work on GCC 4.1.2 as well...
> 
> If you want to know what is default target for older gcc you can do such 
> trick:
> $ touch a.c
> $ gcc -fverbose-asm -S a.c -o - |grep "march\|mtune"
> (founded on gcc mailinglist)

Or `echo "" | gcc -v -E - 2>&1 | grep cc1`


-- 
fonts, gcc-porting,                  it makes no sense how it makes no sense
toolchain, wxwidgets                           but i'll take it free anytime
@ gentoo.org                EFFD 380E 047A 4B51 D2BD C64F 8AA8 8346 F9A4 0662

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]