avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Newbie - should this work?


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] Newbie - should this work?
Date: Mon, 20 Jan 2003 10:15:37 +0100 (MET)

"Theodore A. Roth" <address@hidden> wrote:

> I don't remember correctly if this was true for older versions of
> avr-libc (pre 20030203).

It has been there in older versions, too, though implemented
differently IMHO, there was no implied exit(), but the compiler added
up an infinite loop to the end of main(), which would be removed by
the optimizer if the code was found to be unreachable.

So, falling off the end of main() was always allowable.  One should
probably declare main()'s return value to void in that case, and use
-ffreestanding so the compiler doesn't complain.
-- 
J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/
avr-gcc-list at http://avr1.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]