Re: [PATCH] i386: Disallow long address mode in the x32 mode. [PR 117418]

2024-11-08 Thread Hongtao Liu
On Fri, Nov 8, 2024 at 3:18 PM Uros Bizjak wrote: > > On Fri, Nov 8, 2024 at 6:52 AM Hongtao Liu wrote: > > > > > > PR target/117418 > > > > > * config/i386/i386-options.cc > > > > > (ix86_option_override_internal): raise an > > > > > error with option -mx32 -maddress-mod

Re: [PATCH] i386: Disallow long address mode in the x32 mode. [PR 117418]

2024-11-07 Thread Uros Bizjak
On Fri, Nov 8, 2024 at 6:52 AM Hongtao Liu wrote: > > > > PR target/117418 > > > > * config/i386/i386-options.cc (ix86_option_override_internal): > > > > raise an > > > > error with option -mx32 -maddress-mode=long. > > > > > > > > gcc/testsuite/ChangeLog: > > > > > > > >

Re: [PATCH] i386: Disallow long address mode in the x32 mode. [PR 117418]

2024-11-07 Thread Hongtao Liu
On Fri, Nov 8, 2024 at 1:21 PM Hongtao Liu wrote: > > On Fri, Nov 8, 2024 at 12:18 PM H.J. Lu wrote: > > > > On Fri, Nov 8, 2024 at 10:41 AM Hu, Lin1 wrote: > > > > > > Hi, all > > > > > > -maddress-mode=long will let Pmode = DI_mode, but -mx32 request x32 ABI. > > > So raise an error to avoid I

Re: [PATCH] i386: Disallow long address mode in the x32 mode. [PR 117418]

2024-11-07 Thread Hongtao Liu
On Fri, Nov 8, 2024 at 12:18 PM H.J. Lu wrote: > > On Fri, Nov 8, 2024 at 10:41 AM Hu, Lin1 wrote: > > > > Hi, all > > > > -maddress-mode=long will let Pmode = DI_mode, but -mx32 request x32 ABI. > > So raise an error to avoid ICE. > > > > Bootstrapped and regtested, OK for trunk? > > > > BRs, >

Re: [PATCH] i386: Disallow long address mode in the x32 mode. [PR 117418]

2024-11-07 Thread H.J. Lu
On Fri, Nov 8, 2024 at 10:41 AM Hu, Lin1 wrote: > > Hi, all > > -maddress-mode=long will let Pmode = DI_mode, but -mx32 request x32 ABI. > So raise an error to avoid ICE. > > Bootstrapped and regtested, OK for trunk? > > BRs, > Lin > > gcc/ChangeLog: > > PR target/117418 > * config

[PATCH] i386: Disallow long address mode in the x32 mode. [PR 117418]

2024-11-07 Thread Hu, Lin1
Hi, all -maddress-mode=long will let Pmode = DI_mode, but -mx32 request x32 ABI. So raise an error to avoid ICE. Bootstrapped and regtested, OK for trunk? BRs, Lin gcc/ChangeLog: PR target/117418 * config/i386/i386-options.cc (ix86_option_override_internal): raise an er