From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15223 invoked by alias); 23 Mar 2007 21:16:34 -0000 Received: (qmail 15204 invoked by uid 48); 23 Mar 2007 21:16:22 -0000 Date: Fri, 23 Mar 2007 21:16:00 -0000 Subject: [Bug c/31331] New: ICE on invalid function attribute syntax for main() X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "eweddington at cso dot atmel 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-03/txt/msg02261.txt.bz2 Program: __attribute__ ((naked)) int main(void) { return 0; } Compiled with 4.1.1 for the AVR target: Compiling C: test.c avr-gcc -c -mmcu=atmega128 -I. -gdwarf-2 -DF_CPU=8000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=./test.lst -std=gnu99 -Wundef -MMD -MP -MF .dep/test.o.d test.c -o test.o test.c:2: internal compiler error: in start_function, at c-decl.c:6014 Please submit a full bug report, A program with the proper syntax, compiles without error: int main(void) __attribute__ ((naked)); int main(void) { return 0; } -- Summary: ICE on invalid function attribute syntax for main() Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: eweddington at cso dot atmel dot com GCC build triplet: mingw GCC host triplet: mingw GCC target triplet: avr http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31331