This is the mail archive of the gcc-patches@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: Fix C++ testsuite failures.



Sure, but the address needs to be passed (at least until inlining) as
the "this" pointer of C::operator int (). The wording is misleading,
but at least at -O0 a warning is correct.
I think the warning is appropriate at all optimization levels.  The
warning is telling the user that they are (implicitly) trying to take
the address of a register variable.
Wholly agreed. My comment about -O0 is because the address-of can be optimized out at higher optimization levels.

Paolo


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