public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "eweddington at cso dot atmel dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/31331] New: ICE on invalid function attribute syntax for main() Date: Fri, 23 Mar 2007 21:16:00 -0000 [thread overview] Message-ID: <bug-31331-6095@http.gcc.gnu.org/bugzilla/> (raw) 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
next reply other threads:[~2007-03-23 21:16 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-03-23 21:16 eweddington at cso dot atmel dot com [this message] 2007-04-12 15:32 ` [Bug c/31331] " j at uriah dot heep dot sax dot de 2007-06-18 22:00 ` eweddington at cso dot atmel dot com 2007-06-18 22:01 ` eweddington at cso dot atmel dot com 2007-06-26 19:32 ` pinskia at gcc dot gnu dot org 2007-07-04 21:10 ` [Bug target/31331] [avr] ICE on " aesok at gcc dot gnu dot org 2007-07-07 19:31 ` aesok at gcc dot gnu dot org 2007-07-07 19:37 ` aesok at gcc dot gnu dot org 2007-07-07 19:39 ` aesok at gcc dot gnu dot org 2007-07-08 14:35 ` eweddington at cso dot atmel dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-31331-6095@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).