public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/31331]  New: ICE on invalid function attribute syntax for main()
@ 2007-03-23 21:16 eweddington at cso dot atmel dot com
  2007-07-04 21:10 ` [Bug target/31331] [avr] ICE on " aesok at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: eweddington at cso dot atmel dot com @ 2007-03-23 21:16 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-02-16 13:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-31331-4@http.gcc.gnu.org/bugzilla/>
2014-02-16 13:13 ` [Bug target/31331] [avr] ICE on function attribute syntax for main() jackie.rosen at hushmail dot com
2007-03-23 21:16 [Bug c/31331] New: ICE on invalid " eweddington at cso dot atmel dot com
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

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).