tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Segmentation fault compiling broken 1-liner


From: Marcelo Jimenez
Subject: Re: [Tinycc-devel] Segmentation fault compiling broken 1-liner
Date: Tue, 30 Aug 2005 14:06:54 -0300

On 8/30/05, Antti-Juhani Kaijanaho <address@hidden> wrote:
> Antti-Juhani Kaijanaho wrote:
> > There is no declaration of printf in the file (either included or
> > otherwise), and since printf is a stdarg function, a prototype must be
> > in scope.  However, this does not explain the segfault.
> 
> Also, main should return int.
> 
> (Boy, am I embarrassed not to have spotted the missing parentheses:)

I did not too :P But hey, that is why we use compilers :)

But if I compile with -O0, it not only compiles, it runs as "expected".

Regards,
Marcelo.




reply via email to

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