gcc -m32 -dumpmachine
Jonathan Wakely
jwakely.gcc@gmail.com
Wed May 9 11:48:00 GMT 2018
On 9 May 2018 at 12:47, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> On 9 May 2018 at 12:27, Warlich, Christof wrote:
>>> > > But anyhow, is there any other way to obtain the target triplet (or at least the target processor that gcc would actually build for, depending on the switches being passed?
>>
>>> > gcc -m32 -Q --help=target | fgrep -- -march
>>
>>> Many thanks, that's exactly what I was asking for. :-)
>>
>> Argh - I should have looked better: That's not really usable because it does not give the right result for 64 bit:
>>
>> $ gcc -Q --help=target | fgrep -- -march
>> -march= x86-64
>>
>> Thus, for 64 bit we get x86-64 instead of x86_64. To me, that looks like a typo that's worth to be fixed.
>
> Good point, I didn't notice that either.
>
>> Is it worth to file a bug report for this?
>
> Yes, I think so. Component=target and Target=x86_64-*-*
>
> Thanks!
Oh wait, no .. x86-64 is the right value.
More information about the Gcc-help
mailing list