From: Rafael Garcia-Suarez Date: Mon, 17 Jul 2006 21:11:52 +0000 (+0000) Subject: Remove the C89 checking with gcc X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9aaf14db0f3c171369e4348eb60c54ad52a14a34;p=p5sagit%2Fp5-mst-13.2.git Remove the C89 checking with gcc (but leave a note in perlhack) p4raw-id: //depot/perl@28595 --- diff --git a/cflags.SH b/cflags.SH index bd25466..6c7c4c9 100755 --- a/cflags.SH +++ b/cflags.SH @@ -91,21 +91,6 @@ esac stdflags='' -# Be strict C89 for gcc (but not for g++). -case "$gccversion" in -'') ;; -Intel*) ;; # Nice try, Intel C++. -12]*) ;; # Go easy on the older versions of gcc. -*) case "$cc" in - *g++*) ;; - *) case "$osname" in - cygwin) ;; # Fails at least up to and including 1.5.20 - *) stdflags="$stdflags -std=c89" ;; - esac - esac - ;; -esac - echo "Extracting cflags (with variable substitutions)" : This section of the file will have variable substitutions done on it. : Move anything that needs config subs from !NO!SUBS! section to !GROK!THIS!. diff --git a/pod/perlhack.pod b/pod/perlhack.pod index 77df549..f2109bb 100644 --- a/pod/perlhack.pod +++ b/pod/perlhack.pod @@ -2462,9 +2462,9 @@ reading. Please test your changes with as many C compilers and platforms as possible -- we will, anyway, and it's nice to save oneself from public embarrassment. -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. +If using gcc, you can add the C<-std=c89> option which will hopefully +catch most of these unportabilities. (However it might also catch +incompatibilities in your system's header files.) Use the Configure C<-Dgccansipedantic> flag to enable the gcc C<-ansi -pedantic> flags which enforce stricter ANSI rules.