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]

AW: gcc -m32 -dumpmachine


> > > 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.

Is it worth to  file a bug report for this?

Cheers,

Chris 

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