delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/05/14/01:54:16

Date: Mon, 14 May 2001 08:39:55 +0300 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
To: DJ Delorie <dj AT delorie DOT com>
Cc: djgpp-workers AT delorie DOT com
Subject: Re: [PATCH] Update to compiler options for DJGPP CVS version
In-Reply-To: <Pine.A41.4.05.10105121833320.39122-100000@ieva06.lanet.lv>
Message-ID: <Pine.A41.4.05.10105140826430.37950-100000@ieva06.lanet.lv>
MIME-Version: 1.0
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


On Sat, 12 May 2001, Andris Pavenis wrote:

> 
> 
> On Sat, 12 May 2001, DJ Delorie wrote:
> 
> > 
> > > - removed -traditional. -traditional is becoming nuisance with gcc-3.0
> > 
> > Can you give specific examples of the problems it causes?
> > 
> 
> Some time ago (perhaps 15 March CVS version) I got large number of
> additional warnings we would have to deal with. As I remeber I posted
> information about this in djgpp-workers list. Now it seems that I'm not
> able to get it really working at all both for DJGPP and Linux with
> gcc-3.0 and 3.1 development versions.
> 
> To get it not compaining about command line parameters I had now to
> eliminate -remap and -imacros ... from cpp specs when -traditional is
> being used (like %{!traditional:-remap}). The latest one is significant
> for DJGPP as it's used to get macros __DJGPP__, __DJGPP_MINOR__
> 
> Maybe it's really not worth to mess with -traditional any more.
> 

Big sorry. Somehow "succeeded" to miss -W from -Wtraditional (removed
-Wtraditional but later put back -traditional for checking).

-Wtraditional (not -traditional) is generating lot of additional warnings
(interpretted as errors). Here ar examples of warnings I'm getting with
-Wtraditional:

i586-pc-msdosdjgpp-gcc -pipe ... -c doprnt.c
cc1: warnings being treated as errors
doprnt.c: In function `_doprnt':
doprnt.c:262: warning: traditional C rejects automatic aggregate
initialization
doprnt.c: At top level:
doprnt.c:474: warning: traditional C rejects the 'l' suffix
doprnt.c:474: warning: traditional C rejects the 'l' suffix
doprnt.c:474: warning: traditional C rejects the 'l' suffix
doprnt.c:474: warning: traditional C rejects the 'l' suffix
doprnt.c:474: warning: traditional C rejects the 'l' suffix
....
doprnt.c:797: warning: traditional C rejects the 'l' suffix
doprnt.c:801: warning: traditional C lacks a separate namespace for
labels, identifier `start' conflicts

make -C ansi/time
i586-pc-msdosdjgpp-gcc -pipe ... -c ctime.c
ctime.c: In function `mktime':
ctime.c:1493: warning: traditional C rejects automatic aggregate
initialization

make -C compat/mntent
i586-pc-msdosdjgpp-gcc -pipe ... -c mntent.c
mntent.c: In function `get_stacker_info':
mntent.c:208: warning: traditional C rejects the 'u' suffix
mntent.c:217: warning: traditional C rejects the 'u' suffix
mntent.c:864:2: warning: suggest not using #elif in traditional C

i586-pc-msdosdjgpp-gcc -pipe ... -c nice.c
nice.c: In function `nice':
nice.c:26: warning: traditional C rejects the unary plus operator
nice.c:26: warning: traditional C rejects the unary plus operator

i586-pc-msdosdjgpp-gcc -pipe ... -c d_strerr.c
d_strerr.c:383:4: warning: traditional C ignores #ifdef with the #
indented
d_strerr.c:385:4: warning: traditional C ignores #else with the # indented
d_strerr.c:387:4: warning: traditional C ignores #endif with the #
indented

make -C go32
i586-pc-msdosdjgpp-gcc -pipe ... -c dpmiexcp.c
dpmiexcp.c: In function `do_faulting_finish_message':
dpmiexcp.c:261: warning: traditional C rejects string concatenation



Andris






- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019