Re: gcc -march=nocona -mtune=nocona --help=target

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 22, 2009 at 06:30:39AM -0700, Ian Lance Taylor wrote:
> Oleg Kravchenko <oleg@xxxxxxxxxx> writes:
> 
> > Why gcc say what mmx, sse, sse2 is disabled?
> >
> > $ gcc -march=nocona -mtune=nocona --help=target
> 
> They are disabled because you didn't explicitly request them.
> 
> Ian

Sorry, Ian, but is this behaviour really intended?  These extensions are
enabled by gcc/config/i386/i386.c:override_options() for -march=nocona, and if
one uses -fverbose-asm, they are really listed as enabled there.  IMHO, in
this situation behaviour of -Q --help=target and -fverbose-asm seems
contradictory and a bit confusing to the user.

Perhaps GCC could do better by calling OVERRIDE_OPTIONS (currently in
toplev.c:process_options()) before calling decode_options()?  Is it worth a
bugzilla entry?

Thanks.

-- 
Alexander Monakov

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux