[Top][All Lists]

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

Re: [Tinycc-devel] New fun bug! #include <regex.h>

From: Rob Landley
Subject: Re: [Tinycc-devel] New fun bug! #include <regex.h>
Date: Sat, 22 Sep 2007 02:04:55 -0500
User-agent: KMail/1.9.6

On Friday 21 September 2007 11:12:18 pm Antti-Juhani Kaijanaho wrote:
> I get identical results for the following from gcc 4.1 and gcc 3.1:
> > > $ tcc -E temp.c | gcc -xc -
> > > <stdin>:301: error: ‘restrict’ undeclared here (not in a function)
> For some reason, I can't reproduce this here (there is no "restrict" in
> the tcc output in my machine), but it doesn't matter.

You probably have a different glibc version that's producing different 
headers.  I'm using the ones that came with Ubuntu 7.04.

> You're asking gcc to compile the code as C90 with GNU extensions.  No
> wonder it barfs about "restrict", as it is a C99 thing!
> Try with -std=c99.

*shrug*  Either way I applied a patch to ignore it which fixed the problem I 
actually saw.

"One of my most productive days was throwing away 1000 lines of code."
  - Ken Thompson.

reply via email to

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