From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27037 invoked by alias); 17 May 2009 19:10:48 -0000 Received: (qmail 26946 invoked by uid 48); 17 May 2009 19:10:26 -0000 Date: Sun, 17 May 2009 19:10:00 -0000 Message-ID: <20090517191026.26945.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/40179] Incorrectly use Built-in function to replace the normal function with flag -O1 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-05/txt/msg01473.txt.bz2 ------- Comment #1 from pinskia at gcc dot gnu dot org 2009-05-17 19:10 ------- This is expected because strlen is a reserved name in the standard (even without including string.h) except when the compiler moon is set to freestanding mode (-ffreestanding) or you turn off the builtin. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40179