Commit 3774b567 by David Edelsohn Committed by David Edelsohn

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
parent 21ef78aa
2002-03-19 David Edelsohn <edelsohn@gnu.org> 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 * expr.c (expand_expr): Sign-extend CONST_INT generated from
TREE_STRING_POINTER. TREE_STRING_POINTER.
......
...@@ -483,7 +483,7 @@ rs6000_override_options (default_cpu) ...@@ -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)", warning ("-f%s ignored (all code is position independent)",
(flag_pic > 1) ? "PIC" : "pic"); (flag_pic > 1) ? "PIC" : "pic");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment