From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18740 invoked by alias); 24 Nov 2005 16:47:11 -0000 Received: (qmail 18733 invoked by uid 48); 24 Nov 2005 16:47:10 -0000 Date: Thu, 24 Nov 2005 16:47:00 -0000 Subject: [Bug middle-end/25022] New: [4.2,4.1,4.0,3.4 regression] failure to transform the unlocked stdio calls X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "ghazi at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2005-11/txt/msg03374.txt.bz2 List-Id: Given the following program: #define _GNU_SOURCE #include 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