Change 28588 by [EMAIL PROTECTED] on 2006/07/16 19:06:01

        Subject: [PATCH] perlhack: advertise Configure -Dgccansipedantic
        From: Jarkko Hietaniemi <[EMAIL PROTECTED]>
        Date: Sun, 16 Jul 2006 20:27:20 +0300 (EEST)
        Message-Id: <[EMAIL PROTECTED]>

Affected files ...

... //depot/perl/pod/perlhack.pod#114 edit

Differences ...

==== //depot/perl/pod/perlhack.pod#114 (text) ====
Index: perl/pod/perlhack.pod
--- perl/pod/perlhack.pod#113~28578~    2006-07-15 04:53:36.000000000 -0700
+++ perl/pod/perlhack.pod       2006-07-16 12:06:01.000000000 -0700
@@ -1529,11 +1529,12 @@
 
 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<cflags> 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<cflags> 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 @@
 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<perlport> carefully to avoid any bad assumptions
 about the operating system, filesystem, and so forth.
 
End of Patch.

Reply via email to