------- Comment #13 from hjl dot tools at gmail dot com  2009-01-29 15:52 
-------
(In reply to comment #12)
> My testcase is
> 
> > cat t2.c
> void foo() {}

The problem happens when t2.c is in a shared library.

> > cat t.c
> inline void foo ();
> int main ()
> {
>   foo ();
>   return 0;
> }
> 
> which works perfectly fine even with 4.3 and 4.4 if I build both t2.c and t.c
> with -fpie and fails with all compilers supporting -fpie if I only build
> t.c with -fpie but t2.c not.
> 

We can argue that this code is invalid and gcc shouldn't accept it
in the first place.  But from user perspective, gcc 4.3 doesn't work
on their codes any more silently.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39013

Reply via email to