Re: [PATCH] i386: Define __ILP32__ and _ILP32 for all 32-bit targets

2020-05-17 Thread Uros Bizjak via Gcc-patches
On Sun, May 17, 2020 at 6:14 PM Gerald Pfeifer wrote: > > On Fri, 8 May 2020, Uros Bizjak wrote: > >> A user reported that gcc -m32 on x86-64 does not define __ILP32__ > >> and I found the same on i686 (with gcc -x c -dM -E /dev/null). > : > >> This patch does the same for all "regular" 32-bit x86

Re: [PATCH] i386: Define __ILP32__ and _ILP32 for all 32-bit targets

2020-05-17 Thread Gerald Pfeifer
On Fri, 8 May 2020, Uros Bizjak wrote: >> A user reported that gcc -m32 on x86-64 does not define __ILP32__ >> and I found the same on i686 (with gcc -x c -dM -E /dev/null). : >> This patch does the same for all "regular" 32-bit x86 targets. >> Tested on i386-unknown-freebsd11.3 so far. > OK. Than

Re: [PATCH] i386: Define __ILP32__ and _ILP32 for all 32-bit targets

2020-05-07 Thread Uros Bizjak via Gcc-patches
On Fri, May 8, 2020 at 12:58 AM Gerald Pfeifer wrote: > > A user reported that gcc -m32 on x86-64 does not define __ILP32__ > and I found the same on i686 (with gcc -x c -dM -E /dev/null). > > The code has > > if (TARGET_X32) > { > cpp_define (parse_in, "_ILP32"); >

[PATCH] i386: Define __ILP32__ and _ILP32 for all 32-bit targets

2020-05-07 Thread Gerald Pfeifer
A user reported that gcc -m32 on x86-64 does not define __ILP32__ and I found the same on i686 (with gcc -x c -dM -E /dev/null). The code has if (TARGET_X32) { cpp_define (parse_in, "_ILP32"); cpp_define (parse_in, "__ILP32__"); } so -mx32 does define _