Remove the C89 checking with gcc
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Mon, 17 Jul 2006 21:11:52 +0000 (21:11 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Mon, 17 Jul 2006 21:11:52 +0000 (21:11 +0000)
(but leave a note in perlhack)

p4raw-id: //depot/perl@28595

cflags.SH
pod/perlhack.pod

index bd25466..6c7c4c9 100755 (executable)
--- 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!.
index 77df549..f2109bb 100644 (file)
@@ -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.