Change 30016 by [EMAIL PROTECTED] on 2007/01/26 16:39:40

        If we have specified -Dgccansipedantic on the Configure command-line,
        assume we really want it

Affected files ...

... //depot/perl/cflags.SH#42 edit

Differences ...

==== //depot/perl/cflags.SH#42 (xtext) ====
Index: perl/cflags.SH
--- perl/cflags.SH#41~29400~    2006-11-28 02:09:01.000000000 -0800
+++ perl/cflags.SH      2007-01-26 08:39:40.000000000 -0800
@@ -142,16 +142,18 @@
 case "$gccversion" in
 '') ;;
 *)
-  # If we have -Duse64bitint (or equivalent) in effect and the quadtype
-  # has become 'long long', gcc -pedantic becomes unbearable (moreso
-  # when combined with -Wall) because long long and LL and %lld|%Ld
-  # become warn-worthy.  So let's drop the -pedantic in that case.
-  case "$quadtype:$sPRId64" in
-  "long long"*|*lld*|*Ld*)
-    ccflags="`echo $ccflags|sed 's/-pedantic/ /'`"
-    warn="`echo $warn|sed 's/-pedantic/ /'`"
-    ;;
-  esac
+  if [ "$gccansipedantic" = "" ]; then
+    # If we have -Duse64bitint (or equivalent) in effect and the quadtype
+    # has become 'long long', gcc -pedantic becomes unbearable (moreso
+    # when combined with -Wall) because long long and LL and %lld|%Ld
+    # become warn-worthy.  So let's drop the -pedantic in that case.
+    case "$quadtype:$sPRId64" in
+    "long long"*|*lld*|*Ld*)
+      ccflags="`echo $ccflags|sed 's/-pedantic/ /'`"
+      warn="`echo $warn|sed 's/-pedantic/ /'`"
+      ;;
+    esac
+  fi
   # Using certain features (like the gcc statement expressions)
   # requires knowing whether -pedantic has been specified.
   case "$warn$ccflags" in
End of Patch.

Reply via email to