Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109633 - Additional symbol visibility fixes for gcc 4.
Summary: Additional symbol visibility fixes for gcc 4.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard: 4.0.2-r3
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-17 14:22 UTC by Simon Strandman
Modified: 2005-12-16 18:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Strandman 2005-10-17 14:22:14 UTC
There are still some symbol visibility problems with 4.0.2-r1. Libusb and
subversion fails with link errors when using -fvisibility-inlines-hidden in the
CXXFLAGS while it works with gcc 3.4. These problems can be fixed with patches
from the gcc bugzilla.

These are the patches i propose for inclusion in the patchset:

The other patch from pr 19664: Don't change visibility if set by user:
http://gcc.gnu.org/ml/gcc-patches/2005-02/msg00180.html
It's already included in the gcc 3.4 patchset so I think it would be a good idea
to add it to 4.0 too.

pr 20297: #pragma GCC visibility isn't properly handled for builtin functions:
http://gcc.gnu.org/bugzilla/attachment.cgi?id=9035&action=view
This one is needed to build firefox 1.5 with visibility support.
Comment 1 Simon Strandman 2005-10-18 13:52:14 UTC
Apparently the patch for 20297 doesn't completely solve the problem. Firefox
still fails to build on amd64. Check my comment in that bug for more info.
Comment 2 Simon Strandman 2005-12-06 10:34:28 UTC
Ignore the patch for #20297, it doesn't work.
Comment 3 Mark Loeser (RETIRED) gentoo-dev 2005-12-15 01:46:45 UTC
Once the patches are accepted upstream, I'll add them.  Last time I took some of
these visibility fixes, they introduced ICEs, so I'd rather avoid that just to
fix -fvisibility.
Comment 4 Simon Strandman 2005-12-15 03:19:33 UTC
This patch is already accepted upstream for 4.1 and it's included in the 3.4
patchset (23_all_gcc34-visibility4.patch). Here is the commit:

Subject: Bug 19664

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	hjl@gcc.gnu.org	2005-05-17 21:47:13

Modified files:
	gcc/cp         : ChangeLog decl2.c 

Log message:
	2005-05-17  H.J. Lu  <hongjiu.lu@intel.com>
	
	PR C++/19664
	* decl2.c (determine_visibility): Don't set visibility to
	hidden if it has been set explicitly by user.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4745&r2=1.4746
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl2.c.diff?cvsroot=gcc&r1=1.781&r2=1.782
Comment 5 Mark Loeser (RETIRED) gentoo-dev 2005-12-16 18:33:48 UTC
That patch will be included in the next patch tarball.  Thanks.