From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29118 invoked by alias); 19 May 2003 14:31:52 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 29065 invoked from network); 19 May 2003 14:31:51 -0000 Received: from unknown (HELO egil.codesourcery.com) (66.92.14.122) by sources.redhat.com with SMTP; 19 May 2003 14:31:51 -0000 Received: from zack by egil.codesourcery.com with local (Exim 3.36 #1 (Debian)) id 19Hlev-0000eB-00; Mon, 19 May 2003 07:30:37 -0700 To: Paul Koning Cc: gdr@integrable-solutions.net, neil@daikokuya.co.uk, gcc@gcc.gnu.org Subject: Re: Warning for trigraphs in comment? References: <20030518193113.GC13596@daikokuya.co.uk> <16072.55751.300819.237661@pkoning.dev.equallogic.com> From: Zack Weinberg Date: Mon, 19 May 2003 14:35:00 -0000 In-Reply-To: <16072.55751.300819.237661@pkoning.dev.equallogic.com> (Paul Koning's message of "Mon, 19 May 2003 09:19:03 -0400") Message-ID: <871xyvf1pu.fsf@egil.codesourcery.com> User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-05/txt/msg01754.txt.bz2 Paul Koning writes: >>>>>> "Gabriel" == Gabriel Dos Reis writes: > >> The patch is not appropriate for 3.3. > >> The real fix is to remove trigraphs from the standard. > > Gabriel> Oh, I'm all for removing trigraphs, digraphs, quadrigraphs > Gabriel> and whatevergraphs -- I've also thought they were mistakes. > Gabriel> But, in fact, I'm skeptical that would ever happen. > > I like the notion too. Trigraphs are an utter misfeature. > > Would it make sense to have the lexer ignore trigraphs (i.e., just > treat ??/ as three characters) unless specifically enabled with > -fenable-trigraphs? In the unlikely case that anyone actually uses > trigraphs, this would enable them to continue doing so. GCC has done this for decades. See the documentation of the -trigraphs option. zw