[Bug middle-end/98070] [11 Regression] errno is not re-evaluated after clearing errno and calling realloc(ptr, SIZE_MAX)

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Dec 1 08:15:03 GMT 2020


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
            Summary|errno is not re-evaluated   |[11 Regression] errno is
                   |after clearing errno and    |not re-evaluated after
                   |calling realloc(ptr,        |clearing errno and calling
                   |SIZE_MAX)                   |realloc(ptr, SIZE_MAX)
   Target Milestone|---                         |11.0
                 CC|                            |hubicka at gcc dot gnu.org
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2020-12-01
           Keywords|                            |wrong-code

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Likely caused by

      /* Realloc serves both as allocation point and deallocation point.  */
      case BUILT_IN_REALLOC:
        return ".cw ";

which should be ".Cw "


More information about the Gcc-bugs mailing list