https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77689

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |15.0
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #19 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
for the original testcase in comment #0, renaming main to f and changing the
return type to void, the trunk of GCC can optimize the function to just a
return now.

Note the renaming is because of inlining heurstics and the call to reserve is
not being inlined.

So we can close this as fixed.

Reply via email to