Re: [PATCH] Fix handling of OPT_mgeneral_regs_only in attribute.

2020-05-21 Thread Martin Liška
Ah, you are right. Please forget about this patch mgeneral-regs-only Target Report RejectNegative Mask(GENERAL_REGS_ONLY) Save also contains the RejectNegative keyword. Martin

RE: [PATCH] Fix handling of OPT_mgeneral_regs_only in attribute.

2020-05-21 Thread Sudakshina Das
Hi Martin > -Original Message- > From: Martin Liška > Sent: 21 May 2020 16:01 > To: gcc-patches@gcc.gnu.org > Cc: Sudakshina Das > Subject: [PATCH] Fix handling of OPT_mgeneral_regs_only in attribute. > > Hi. > > Similarly to: > > case

Re: [PATCH] Fix handling of OPT_mgeneral_regs_only in attribute.

2020-05-21 Thread H.J. Lu via Gcc-patches
On Thu, May 21, 2020 at 9:22 AM Martin Liška wrote: > > Hi. > > Similarly to: > > case OPT_mstrict_align: >if (val) > opts->x_target_flags |= MASK_STRICT_ALIGN; >else > opts->x_target_flags &= ~MASK_STRICT_ALIGN; >return true; > > the MASK_GENERAL_REGS_

[PATCH] Fix handling of OPT_mgeneral_regs_only in attribute.

2020-05-21 Thread Martin Liška
Hi. Similarly to: case OPT_mstrict_align: if (val) opts->x_target_flags |= MASK_STRICT_ALIGN; else opts->x_target_flags &= ~MASK_STRICT_ALIGN; return true; the MASK_GENERAL_REGS_ONLY mask should be handled the same way. @Sudakshina: The 'opts->x_target_fla