From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6533 invoked by alias); 23 Feb 2007 15:39:26 -0000 Received: (qmail 6499 invoked by uid 48); 23 Feb 2007 15:39:16 -0000 Date: Fri, 23 Feb 2007 15:39:00 -0000 Subject: [Bug c/30936] New: const attribute in nanf prototype causes gcc not producing correct code. X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "filippo dot arcidiacono at gmail dot com" 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: 2007-02/txt/msg02679.txt.bz2 Being nanf declared using const attribute, sh4-linux-gcc (4.1.1) doesn't produce the code to call the nanf function. Removing the 'const' attribute the generated code works fine. Using gcc (3.4.3) Red Hat EL4 the test runs fine. -- Summary: const attribute in nanf prototype causes gcc not producing correct code. Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: filippo dot arcidiacono at gmail dot com GCC host triplet: i686-pc-linux-gnu GCC target triplet: sh4-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30936