This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/6123: sparc-sun-solaris2.7 gcc-3.1 C testsuite failure in verify_local_live_at_start w/-fpic|-fPIC on gcc.dg/20020312-2.c
> From: "Christian Ehrhardt" <ehrhardt@mathematik.uni-ulm.de>
>
> To get this straight: These patches are about fixing the testcase to
> not produce an ICE if it is compiled with flags that it wasn't supposed
> to be compiled with. IMHO the right solution is to fix the compiler ;-)
Yes, and that "fix" is to globally define __pic__ or __PIC__ in the
compiler for all targets when using -fpic or -fPIC.
True, the testcase isn't supposed to work with -fpic/-fPIC, but we
should have a graceful way in the compiler to detect and elide this so
we can run -fpic/-fPIC testsuite passes without getting noise.
It's very important that -fpic/-fPIC be as reliable as possible given
how much GNU systems rely on shared libraries, etc.
--Kaveh
--
Kaveh R. Ghazi ghazi@caip.rutgers.edu