warning: trigraph ... ignored

From: Thorsten Kranzkowski (th@Marvin.DL8BCU.ampr.org)
Date: Wed Jun 14 2000 - 18:35:57 EST


Hi!
With a recent gcc snapshot (2.96 20000530) I see lots of those warnings.

> ----- Forwarded message from Joe Buck <jbuck@racerx.synopsys.com> -----
>
> From: Joe Buck <jbuck@racerx.synopsys.com>
> Subject: Re: warning: trigraph ... ignored
> To: dl8bcu@gmx.net
> Date: Tue, 13 Jun 2000 18:22:47 -0700 (PDT)
> Cc: gcc@gcc.gnu.org
> In-Reply-To: <20000613223216.A12898@Marvin.DL8BCU.ampr.org> from "Thorsten Kranzkowski" at Jun 13, 2000 10:32:16 PM
> X-Mailer: ELM [version 2.5 PL2]
>
> > Hi!
> > During my latest linux kernel compile I saw several of these warnings:
> >
> > gcc -D__KERNEL__ -I/usr/src/linux-2.4.0-test1-ac18-work/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mno-fp-regs -ffixed-8 -mcpu=ev4 -Wa,-mev6 -DEXPORT_SYMTAB -c md.c
> > In file included from /usr/src/linux-2.4.0-test1-ac18-work/include/linux/raid/md.h:35,
> > from md.c:32:
> > /usr/src/linux-2.4.0-test1-ac18-work/include/linux/delay.h:19:44: warning: trigraph ??/ ignored
>
> -Wall turns on -Wtrigraphs. ANSI says trigraph processing happens even
> in comments, and there are very rare cases where they could conceivably
> make a difference (though not in this one). ??/ is turned into \.
>
> Adding -Wno-trigraphs after -Wall should shut up the compiler.
>
[snip explanation]
>
> ----- End forwarded message -----

There seem to be 3 options:

1) add -Wno-trigraphs to CFLAGS until gcc won't complain about the obviously
   bogus cases any more

2) replace the character sequences in question with something harmless

3) ignore the issue until gcc is 'fixed'

What do you prefer?

Bye,
Thorsten

-- 
| Thorsten Kranzkowski        Internet: dl8bcu@gmx.net                        |
| Mobile: ++49 170 1876134       Snail: Niemannsweg 30, 49201 Dissen, Germany |
| Ampr: dl8bcu@db0lj.#rpl.deu.eu, dl8bcu@marvin.dl8bcu.ampr.org [44.130.8.19] |

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jun 15 2000 - 21:00:33 EST