--- Comment #16 from jakub at gcc dot gnu dot org 2009-01-30 17:31 ---
Patch to set DECL_EXTERNAL instead:
http://gcc.gnu.org/ml/gcc-patches/2009-01/msg01525.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39013
--
jakub at gcc dot gnu dot org changed:
What|Removed |Added
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org
--- Comment #17 from jakub at gcc dot gnu dot org 2009-01-30 20:47 ---
Subject: Bug 39013
Author: jakub
Date: Fri Jan 30 20:46:32 2009
New Revision: 143803
URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=143803
Log:
PR target/39013
* c-decl.c (pop_scope): Set
--- Comment #12 from rguenth at gcc dot gnu dot org 2009-01-29 15:20
---
My testcase is
cat t2.c
void foo() {}
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
--- 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
--- Comment #14 from hjl dot tools at gmail dot com 2009-01-29 15:53
---
Created an attachment (id=17211)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17211action=view)
A patch
This patch only checks
--- gcc/varasm.c.pie2008-11-30 08:49:54.0 -0800
+++ gcc/varasm.c
--- Comment #15 from zorry at ume dot nu 2009-01-29 18:23 ---
We have this in the shared library that is compile with -fPIC
inline u_int32_t
libnet_getgre_length(u_int16_t fv)
{
code
}
And the app have
code
len = libnet_getgre_length(gre_flags);
size += len;
code
--
--- Comment #9 from hjl dot tools at gmail dot com 2009-01-29 04:04 ---
A patch is posted at
http://gcc.gnu.org/ml/gcc-patches/2009-01/msg01423.html
--
hjl dot tools at gmail dot com changed:
What|Removed |Added