diff options
author | David Edelsohn <edelsohn@gnu.org> | 2002-03-19 19:46:49 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2002-03-19 14:46:49 -0500 |
commit | 3774b567027f80123e261c5a1ceda75698c42e41 (patch) | |
tree | 1275426dcc57aea9f1234153efc966d6d32f8fa2 | |
parent | 21ef78aa2e68118fc25d53e17e33388b6083ef12 (diff) | |
download | gcc-3774b567027f80123e261c5a1ceda75698c42e41.zip gcc-3774b567027f80123e261c5a1ceda75698c42e41.tar.gz gcc-3774b567027f80123e261c5a1ceda75698c42e41.tar.bz2 |
rs6000.c (rs6000_override_options): Only warn about -fpic/-fPIC if extra_warnings set.
* config/rs6000/rs6000.c (rs6000_override_options): Only warn
about -fpic/-fPIC if extra_warnings set.
From-SVN: r51034
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e6b3fb0..af67a57 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index de4af5d..db54999 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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"); |