Given the following program:

#define _GNU_SOURCE
#include <stdio.h>

int main ()
{
  fputs_unlocked("\n", stdout);
  return 0;
}

GCC fails to turn fputs_unlocked into fputc_unlocked.  This fails in all GCC
versions as of 3.4 through mainline, but works in gcc-3.3 so it's a regression.
 The regular "locked" stdio transformation fputs->fputc works.


-- 
           Summary: [4.2,4.1,4.0,3.4 regression] failure to transform the
                    unlocked stdio calls
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ghazi at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25022

Reply via email to