Mail Archives: djgpp-workers/2001/06/13/04:46:43
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 -