[Bug c++/107729] unhelpful handling for PMF on Itanium ABI for inline asm

2022-11-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107729

Andrew Pinski  changed:

   What|Removed |Added

 Resolution|--- |WONTFIX
 Status|UNCONFIRMED |RESOLVED

--- Comment #4 from Andrew Pinski  ---
GCC does have an extension to do something you want already I think:
https://gcc.gnu.org/onlinedocs/gcc-12.2.0/gcc/Bound-member-functions.html#Bound-member-functions

[Bug c++/107729] unhelpful handling for PMF on Itanium ABI for inline asm

2022-11-16 Thread compnerd at compnerd dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107729

--- Comment #3 from Saleem Abdulrasool  ---
(In reply to Andrew Pinski from comment #2)
> (In reply to Andrew Pinski from comment #1)
> > :6:1: warning: unsupported size for integer register
> 
> I get that when I use:
> #%0 %1

This totally makes sense - the value is a pointer pair, so it does detect that
will overflow.  IMO that is a positive and hopefully will deter people from
doing this in practice at least.

[Bug c++/107729] unhelpful handling for PMF on Itanium ABI for inline asm

2022-11-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107729

--- Comment #2 from Andrew Pinski  ---
(In reply to Andrew Pinski from comment #1)
> :6:1: warning: unsupported size for integer register

I get that when I use:
#%0 %1

[Bug c++/107729] unhelpful handling for PMF on Itanium ABI for inline asm

2022-11-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107729

--- Comment #1 from Andrew Pinski  ---
:6:1: warning: unsupported size for integer register