X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f Date: Sun, 30 Dec 2001 13:06:04 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: djgpp-workers AT delorie DOT com Subject: Re: gcc 3.03 and libc sources In-Reply-To: <200112271404.PAA16127@father.ludd.luth.se> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Thu, 27 Dec 2001, Martin Str|mberg wrote: > According to Eli Zaretskii: > > > > On Thu, 27 Dec 2001, Martin Str|mberg wrote: > > > > > I tried to add "--std=c89" to gcc.opt and got an immense amount of > > > warnings from trying to make dosexec.o > > > > Could you post those warnings? I don't know why we should get warnings > > for the old standard. > > Ok. Here they are: > > gcc ... -c dosexec.c > dosexec.c: In function `check_talloc': > dosexec.c:140: `E2BIG' undeclared (first use in this function) > dosexec.c:140: (Each undeclared identifier is reported only once > dosexec.c:140: for each function it appears in.) > dosexec.c: In function `direct_exec_tail_1': > dosexec.c:164: `__dpmi_regs' undeclared (first use in this function) > dosexec.c:164: parse error before "r" It sounds like --std=c89 defines __STRICT_ANSI__, which masks non-standard parts of the headers. Is that true? (The GCC manual doesn't seem to say that.) If this is true, you have no hope of compiling the library with --std=c89.