From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21769 invoked by alias); 17 Jun 2011 07:23:37 -0000 Received: (qmail 21760 invoked by uid 22791); 17 Jun 2011 07:23:35 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 17 Jun 2011 07:23:22 +0000 From: "pcpa at mandriva dot com.br" To: gcc-bugs@gcc.gnu.org Subject: [Bug libmudflap/49449] New: -fmudflapth -lmudflapth problems with -fvisibility=hidden, missing posix_memalign wrapper and pointers in varargs X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libmudflap X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: pcpa at mandriva dot com.br X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Fri, 17 Jun 2011 07:23:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-06/txt/msg01540.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49449 Summary: -fmudflapth -lmudflapth problems with -fvisibility=hidden, missing posix_memalign wrapper and pointers in varargs Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: libmudflap AssignedTo: unassigned@gcc.gnu.org ReportedBy: pcpa@mandriva.com.br These are just issues I found when attempting to use mudflap: o Mudflap fails to find symbol main in a test application due to propagating -fvisibility=hidden in CFLAGS. o The code also uses posix_memalign to allocate memory on 16 bytes boundaries, what causes a massive amount of violation warnings. o It tells about faults when receiving pointers as arguments to a varargs function. Overall I adapted the code I did want to test, so this is just a suggestion for enhancement. At least adding a posix_memalign wrapper should be trivial, but not sure about the others. Tested on x86_64 gcc version 4.6.0 20110610.