From: Jarkko Hietaniemi Date: Sun, 16 Jul 2006 20:27:20 +0000 (+0300) Subject: perlhack: advertise Configure -Dgccansipedantic X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a8e98a71556fbd9e6c697657a31303cd3f47c4b5;p=p5sagit%2Fp5-mst-13.2.git perlhack: advertise Configure -Dgccansipedantic Message-Id: <200607161727.k6GHRKFk069579@kosh.hut.fi> p4raw-id: //depot/perl@28588 --- diff --git a/pod/perlhack.pod b/pod/perlhack.pod index e0a9807..77df549 100644 --- a/pod/perlhack.pod +++ b/pod/perlhack.pod @@ -1529,11 +1529,12 @@ keeping our coding nose clean. The C<-Wall> is by default on. -The C<-ansi> (and its sidekick, C<-pedantic>) would be nice to be -on always, but unfortunately they are not safe on all platforms, -they can for example cause fatal conflicts with the system headers -(Solaris being a prime example). The C frontend selects -C<-ansi -pedantic> for the platforms where they are known to be safe. +The C<-ansi> (and its sidekick, C<-pedantic>) would be nice to be on +always, but unfortunately they are not safe on all platforms, they can +for example cause fatal conflicts with the system headers (Solaris +being a prime example). If Configure C<-Dgccansipedantic> is used, +the C frontend selects C<-ansi -pedantic> for the platforms +where they are known to be safe. Starting from Perl 5.9.4 the following extra flags are added: @@ -2465,6 +2466,9 @@ If using gcc, starting from Perl 5.9.4 Perl core C files will be compiled with the C<-std=c89> option which will hopefully catch most of these unportabilities. +Use the Configure C<-Dgccansipedantic> flag to enable the gcc +C<-ansi -pedantic> flags which enforce stricter ANSI rules. + Also study L carefully to avoid any bad assumptions about the operating system, filesystem, and so forth.