AIX -fpic/-fPIC warning
David Edelsohn
dje@watson.ibm.com
Tue Mar 19 18:44:00 GMT 2002
The -fpic/-fPIC warning mostly is informational and is occurring
too often, so I am changing it to key off of extra_warnings being
enabled. check-g++ drops from 42 failures to 19 without all of the
"excess errors".
David
* config/rs6000/rs6000.c (rs6000_override_options): Only warn
about -fpic/-fPIC if extra_warnings set.
Index: rs6000.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.299
diff -c -p -r1.299 rs6000.c
*** rs6000.c 2002/03/19 18:00:41 1.299
--- rs6000.c 2002/03/19 19:32:20
*************** rs6000_override_options (default_cpu)
*** 483,489 ****
}
}
! if (flag_pic && DEFAULT_ABI == ABI_AIX)
{
warning ("-f%s ignored (all code is position independent)",
(flag_pic > 1) ? "PIC" : "pic");
--- 483,489 ----
}
}
! if (flag_pic && DEFAULT_ABI == ABI_AIX && extra_warnings)
{
warning ("-f%s ignored (all code is position independent)",
(flag_pic > 1) ? "PIC" : "pic");
More information about the Gcc-patches
mailing list