From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26911 invoked by alias); 28 Feb 2005 14:55:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 23952 invoked by uid 48); 28 Feb 2005 14:49:49 -0000 Date: Mon, 28 Feb 2005 21:38:00 -0000 Message-ID: <20050228144949.23946.qmail@sourceware.org> From: "jakub at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050225230026.20218.hjl@lucon.org> References: <20050225230026.20218.hjl@lucon.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug middle-end/20218] Can't use __attribute__ ((visibility ("hidden"))) to hide a symbol X-Bugzilla-Reason: CC X-SW-Source: 2005-02/txt/msg03460.txt.bz2 List-Id: ------- Additional Comments From jakub at gcc dot gnu dot org 2005-02-28 14:49 ------- .hidden is intentionally emitted only at the definitions, not for the undefs. Otherwise a header with 1000 prototypes with __attribute__((visibility ("hidden"))) would result in 1000 STV_HIDDEN SHN_UNDEF symbols, even when they aren't used at all in the file at all. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20218