]> gcc.gnu.org Git - gcc.git/commitdiff
rs6000.c (rs6000_override_options): Only warn about -fpic/-fPIC if extra_warnings...
authorDavid Edelsohn <edelsohn@gnu.org>
Tue, 19 Mar 2002 19:46:49 +0000 (19:46 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Tue, 19 Mar 2002 19:46:49 +0000 (14:46 -0500)
        * config/rs6000/rs6000.c (rs6000_override_options): Only warn
        about -fpic/-fPIC if extra_warnings set.

From-SVN: r51034

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index e6b3fb0e97c609791728c0036b87d12a6b120088..af67a5705dfc7ea6c17c368a94e755db0e19bf85 100644 (file)
@@ -1,3 +1,8 @@
+2002-03-19  David Edelsohn  <edelsohn@gnu.org>
+
+       * config/rs6000/rs6000.c (rs6000_override_options): Only warn
+       about -fpic/-fPIC if extra_warnings set.
+
 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
 
        * expr.c (expand_expr): Sign-extend CONST_INT generated from
index de4af5d1d8725e85e1b16d28cc90f4c40e454924..db5499983a2afaa27490bb0b68ce55c688949ad1 100644 (file)
@@ -483,7 +483,7 @@ rs6000_override_options (default_cpu)
        }
     }
 
-  if (flag_pic && DEFAULT_ABI == ABI_AIX)
+  if (flag_pic && DEFAULT_ABI == ABI_AIX && extra_warnings)
     {
       warning ("-f%s ignored (all code is position independent)",
               (flag_pic > 1) ? "PIC" : "pic");
This page took 0.088446 seconds and 5 git commands to generate.