OSDN Git Service

* config/rs6000/rs6000.c (rs6000_override_options): Only warn
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Mar 2002 19:46:49 +0000 (19:46 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Mar 2002 19:46:49 +0000 (19:46 +0000)
        about -fpic/-fPIC if extra_warnings set.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51034 138bc75d-0d04-0410-961f-82ee72b054a4

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

index e6b3fb0..af67a57 100644 (file)
@@ -1,5 +1,10 @@
 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
        TREE_STRING_POINTER.
 
index de4af5d..db54999 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");