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: gcc -m32 -dumpmachine


On 9 May 2018 at 10:01, Warlich, Christof wrote:
> Hi,
>
> I'm surprised: On an x86_64 machine, "gcc -dumpmachine" prints  "x86_64-linux-gnu" as expected. But "gcc -m32 -dumpmachine" prints the same, whereas I'd expected it to print something like "i686-linux-gnu" instead, as indicated by gcc's usage:
>
> $ gcc -help
> ...
>   -dumpmachine             Display the compiler's target processor
>
> After all, I've explicitly told it to build for 32-bit targets.
>
> 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


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