delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/06/13/04:46:43

Message-Id: <200106130845.f5D8jse03770@hal.astr.lu.lv>
From: Andris Pavenis <pavenis AT latnet DOT lv>
To: djgpp-workers AT delorie DOT com
Subject: [PATCH] Small gcc-3.0 related patch to src/libc/go32/dpmiexcp.c
Date: Wed, 13 Jun 2001 11:45:52 +0300
X-Mailer: KMail [version 1.2.2]
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

gcc-3.0 doesn't like "??>" with -Wall and interprets it's as such braindamage 
as trigraph and emits warning

C:/DJGPP/BIN/make.exe -C go32
gcc ... -c dpmiexcp.c
dpmiexcp.c:260:54: trigraph ??> ignored
make.exe[3]: *** [dpmiexcp.o] Error 1
make.exe[2]: *** [all_subs] Error 2
make.exe[1]: *** [all] Error 2
make.exe: *** [subs] Error 2

It would be possible to woraround this problem by splitting string into 2 
parts ("<??UNKNOWN??" ">") but it gives warning with -Wtraditional
(even if it's removed for now) and it would require comments explaining 
reason for such hack. But also "**" instead of "??" is perhaps  Ok (as
DJ suggested abount month ago)

Ok to commit?

Andris


Index: dpmiexcp.c
===================================================================
RCS file: /cvs/djgpp/djgpp/src/libc/go32/dpmiexcp.c,v
retrieving revision 1.7
diff -p -r1.7 dpmiexcp.c
*** dpmiexcp.c	1999/09/02 08:30:38	1.7
--- dpmiexcp.c	2001/06/13 08:33:07
*************** do_faulting_finish_message(int fake_exce
*** 257,263 ****
    err("\r\nebp="); itox(__djgpp_exception_state->__ebp, 8);
    err(" esp="); itox(__djgpp_exception_state->__esp, 8);
    err(" program=");
!   prog_name = __dos_argv0 ? __dos_argv0 : "<??UNKNOWN??>";
    for (i=0; prog_name[i]; i++);
    write(STDERR_FILENO, prog_name, i);
    err("\r\n");
--- 257,263 ----
    err("\r\nebp="); itox(__djgpp_exception_state->__ebp, 8);
    err(" esp="); itox(__djgpp_exception_state->__esp, 8);
    err(" program=");
!   prog_name = __dos_argv0 ? __dos_argv0 : "<**UNKNOWN**>";
    for (i=0; prog_name[i]; i++);
    write(STDERR_FILENO, prog_name, i);
    err("\r\n");

- Raw text -


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