From: sandmann AT clio DOT rice DOT edu (Charles Sandmann) Message-Id: <10302100511.AA22688@clio.rice.edu> Subject: Re: djgpp: djgpp/include/string.h,strings.h To: djgpp-workers AT delorie DOT com Date: Sun, 9 Feb 2003 23:11:47 -0600 (CST) In-Reply-To: <5567-Wed05Feb2003174359+0200-eliz@is.elta.co.il> from "Eli Zaretskii" at Feb 05, 2003 05:44:00 PM X-Mailer: ELM [version 2.5 PL2] Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 > > > Richard, did you try to see whether an old GCC version swallows this > > > successfully? Like compile a program with GCC 2.7.2.x or 2.8? > > > > Er, no. But I don't see why I wouldn't work. gcc 3.x currently defaults to C89 > > mode, which means it doesn't define __STDC_VERSION__. So when it comes to > > evaluating this #if/#endif, gcc 2.x and gcc 3.x should behave the same, > > which their default settings (e.g.: no -std=c or > > -std=gnu). > > We introduce this for the benefit of older versions of GCC. So I > think we should test this with those older versions, to make sure we > don't break those users who still have them installed. It seems that at least gcc 2.8.1 builds current cvs libc OK. gcc 2.7.2.1 has some problems (does surprisingly well) but this is expected with a 7 year old compiler. In particular, some of the new headers cause errors. e.g. ../../../../include/libc/fsexthlp.h:32: warning: inline declaration ignored for function with `...' (do we really need inline?) ../../../../include/stdint.h:27: parse error before `__extension__' ../../../../include/stdint.h:37: parse error before `__extension__'