From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16429 invoked by alias); 18 Mar 2002 20:36:03 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 16393 invoked by uid 71); 18 Mar 2002 20:36:02 -0000 Resent-Date: 18 Mar 2002 20:36:02 -0000 Resent-Message-ID: <20020318203602.16392.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, mrs@wrs.com Received:(qmail 15884 invoked by uid 61); 18 Mar 2002 20:35:36 -0000 Message-Id:<20020318203536.15882.qmail@sources.redhat.com> Date: Mon, 18 Mar 2002 12:36:00 -0000 From: mrs@wrs.com Reply-To: mrs@wrs.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/5998: regression, all builtins disabled X-SW-Source: 2002-03/txt/msg00675.txt.bz2 List-Id: >Number: 5998 >Category: c++ >Synopsis: regression, all builtins disabled >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Mon Mar 18 12:36:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Mike Stump >Release: top of tree cvs >Organization: >Environment: sparc-sun-solaris2.7, affects all hosts/targets >Description: Mark recently put in: > /* In C++, we never create builtin functions whose name does not > begin with `__'. Users should be using headers to get prototypes > in C++. It would be nice if we could warn when `-fbuiltin' is > used explicitly, but we do not have that information. */ > flag_no_builtin = 1; this this is wrong. It disables all builtins, and causes performance regressions with C++ code: #include int a, b; int main() { memcpy(&a, &b, sizeof(a)); } for example. Also, alloca should not just disappear, it is a long standing extension, and disappearing it should be well thought out, not just done. See also http://gcc.gnu.org/ml/gcc/2002-03/msg00895.html for the mailing list traffic. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: