From owner-freebsd-current@FreeBSD.ORG Sun Jul 20 14:34:20 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9ECBB37B401; Sun, 20 Jul 2003 14:34:20 -0700 (PDT) Received: from lifesupport.shutdown.com (dsl092-048-059.sfo2.dsl.speakeasy.net [66.92.48.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0DB043F75; Sun, 20 Jul 2003 14:34:19 -0700 (PDT) (envelope-from llewelly@lifesupport.shutdown.com) Received: (from llewelly@localhost) by lifesupport.shutdown.com (8.11.2/8.11.2) id h6KLTpi12312; Sun, 20 Jul 2003 14:29:51 -0700 (PDT) To: Peter Kadau References: <20030718191649.GB84963@freefall.freebsd.org> <1058556984.32024.24.camel@straycat> <1058607176.23615.8.camel@straycat> From: LLeweLLyn Reese Date: 20 Jul 2003 14:29:50 -0700 In-Reply-To: <1058607176.23615.8.camel@straycat> Message-ID: Lines: 41 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: "Jacques A. Vidrine" cc: freebsd-current@freebsd.org Subject: Re: gcc-3.3 issues X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jul 2003 21:34:20 -0000 Peter Kadau writes: > Hi ! > > > http://gcc.gnu.org/onlinedocs/gcc-3.3/gcc/Warning-Options.html#Warning%20Options > > Hmm, that's exactly as in the info page. > > > http://gcc.gnu.org/onlinedocs/gcc-3.3/gcc/C---Dialect-Options.html#C++%20Dialect%20Options > > > and search for permissive, to see the condition Alexander speaks of. > > Well, here it is: > -fpermissive > Downgrade messages about nonconformant code from errors to > warnings. By default, G++ effectively sets -pedantic-errors > without -pedantic; this option reverses that. This behavior and > this option are superseded by -pedantic, which works as it does > for GNU C. On second reading, I'm not sure I understand it either. (And I am a native speaker. :-) > > I admit, I'm not a native speaker, so please correct me. > Doesn't that mean, if you don't specify any pedantic, it defaults > to -pedantic-errors for C++, but if you specify -pedantic, you don't > get errors for warnings like it should be... ?? Specifying -pedantic doesn't turn errors into warnings for g++. I don't think the phrase 'this option reverses that' is intended to mean g++ swaps the meaning of -pendantic and -pendantic-errors; I think it is intended to mean -fpermissive downgrades many errors into warnings.