public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Trigraph warnings when compiling linux-2.4.0-prerelease1
@ 2001-01-02 13:27 dewar
  2001-01-02 15:20 ` Joe Buck
  2001-01-02 19:03 ` Fergus Henderson
  0 siblings, 2 replies; 21+ messages in thread
From: dewar @ 2001-01-02 13:27 UTC (permalink / raw)
  To: jbuck, torvalds; +Cc: gcc, per

<<Thanks for alerting us to this documentation bug.
>>

Boy, Joe, you really love the word bug don't you?

In fact the current documentation is clear and appears to match the
documentation. It is certainly reasonable to ask the question of
whether the warning should be effective even if trigraphs are enabled,
but running around shouting "BUG" is not the best policy here :-)

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Re: Trigraph warnings when compiling linux-2.4.0-prerelease1
@ 2001-01-02 12:05 dewar
  0 siblings, 0 replies; 21+ messages in thread
From: dewar @ 2001-01-02 12:05 UTC (permalink / raw)
  To: per, torvalds; +Cc: gcc

<<I read "assuming they are enabled" is a very poor way of saying "warn about
constructs that would be read as trigraphs if trigraphs were enabled."
>>

I think it is a very good way of saying "assuming they are enabled" :-)

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Re: Trigraph warnings when compiling linux-2.4.0-prerelease1
@ 2001-01-02  9:26 dewar
  0 siblings, 0 replies; 21+ messages in thread
From: dewar @ 2001-01-02  9:26 UTC (permalink / raw)
  To: jbuck, torvalds; +Cc: gcc

<<Well, at least, it's not a serious one.  And if you want to claim that
the kernel is not written in C, but rather in a language dialect called,
say, gcc258, it's not a bug.
>>

The name of the language is GNU C, and it is perfectly reasonable for
GNU tools and related software to be written in this language. The only
tools that really need to stay with in the confines of traditional C 
(ANSI C is already too large) are the compiler itself, so that everything
can be bootstrapped.

But there is really no interest in compiling the kernel with some other
compiler other than the gcc GNU C compiler as far as I can see.

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Trigraph warnings when compiling linux-2.4.0-prerelease1
@ 2001-01-01  9:56 Rich Baum
  2001-01-01 11:50 ` Tim Hollebeek
  2001-01-01 15:16 ` Joe Buck
  0 siblings, 2 replies; 21+ messages in thread
From: Rich Baum @ 2001-01-01  9:56 UTC (permalink / raw)
  To: gcc

I get the following warnings when compiling the latest linux kernel 
with the 20001225 gcc snapshot:

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-
prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -
mpreferred-stack-boundary=2 -march=k6    -c -o names.o names.c
In file included from names.c:38:
devlist.h:1278:33: warning: trigraph ??) ignored
devlist.h:6370:25: warning: trigraph ??) ignored
In file included from names.c:44:
devlist.h:1278:33: warning: trigraph ??) ignored
devlist.h:6370:25: warning: trigraph ??) ignored
In file included from names.c:50:
devlist.h:1278:33: warning: trigraph ??) ignored
devlist.h:6370:25: warning: trigraph ??) ignored

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-
prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -
mpreferred-stack-boundary=2 -march=k6 -DMODULE -
DMODVERSIONS -include 
/usr/src/linux/include/linux/modversions.h   -c -o imm.o imm.c
imm.c:929:37: warning: trigraph ??) ignored
imm.c:938:38: warning: trigraph ??) ignored

The lines are as follows:
devlist.h:
line 1278: 	DEVICE(109e,036c,"Bt879(??) Video Capture")
line 6370:   VENDOR(2a15,"3D Vision(???)")

imm.c:
line 929: 	printk("imm: parity error (???)\n");
line 938: 	printk("imm: bad interrupt (???)\n");

From looking at the code it is apparent to me that the authors of 
these files meant to print the string ??) and not the character ].  Is 
there a possible fix to remove these warnings or should I just ignore 
them?  I felt this would be the appropriate list to send this to since 
it compiles without these warnings with egcs-1.1.2.

Rich.

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2001-01-03 23:39 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <200101020654.WAA03344@neosilicon.transmeta.com>
2001-01-01 23:00 ` Trigraph warnings when compiling linux-2.4.0-prerelease1 Linus Torvalds
2001-01-02  0:23   ` Fergus Henderson
2001-01-02  9:18   ` Joe Buck
2001-01-02 10:38     ` Linus Torvalds
2001-01-02 10:58       ` Joe Buck
2001-01-02 11:15         ` Linus Torvalds
2001-01-02 11:50           ` Per Bothner
2001-01-02 11:55             ` Linus Torvalds
2001-01-02 12:40               ` Joe Buck
2001-01-02 13:50                 ` Linus Torvalds
2001-01-02 14:50             ` Toon Moene
2001-01-03 23:39             ` Zack Weinberg
2001-01-02 13:27 dewar
2001-01-02 15:20 ` Joe Buck
2001-01-02 19:03 ` Fergus Henderson
2001-01-03 11:21   ` Joe Buck
  -- strict thread matches above, loose matches on Subject: below --
2001-01-02 12:05 dewar
2001-01-02  9:26 dewar
2001-01-01  9:56 Rich Baum
2001-01-01 11:50 ` Tim Hollebeek
2001-01-01 15:16 ` Joe Buck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).