From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19121 invoked by alias); 10 Apr 2014 07:48:36 -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 Received: (qmail 19078 invoked by uid 55); 10 Apr 2014 07:48:33 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/36282] [4.7/4.8 Regression] Spurious warning "asm declaration ignored due to conflict with previous rename" Date: Thu, 10 Apr 2014 07:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.2.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-04/txt/msg00696.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36282 --- Comment #10 from Jakub Jelinek --- Author: jakub Date: Thu Apr 10 07:47:55 2014 New Revision: 209263 URL: http://gcc.gnu.org/viewcvs?rev=209263&root=gcc&view=rev Log: Backport from mainline 2014-03-13 Jakub Jelinek PR middle-end/36282 * c-pragma.c (apply_pragma_weak): Only look at TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if DECL_ASSEMBLER_NAME_SET_P (decl). (maybe_apply_pending_pragma_weaks): Exit early if vec_safe_is_empty (pending_weaks) rather than only when !pending_weaks. (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P, set assembler name back to NULL afterwards. * c-c++-common/pr36282-1.c: New test. * c-c++-common/pr36282-2.c: New test. * c-c++-common/pr36282-3.c: New test. * c-c++-common/pr36282-4.c: New test. Added: branches/gcc-4_8-branch/gcc/testsuite/c-c++-common/pr36282-1.c branches/gcc-4_8-branch/gcc/testsuite/c-c++-common/pr36282-2.c branches/gcc-4_8-branch/gcc/testsuite/c-c++-common/pr36282-3.c branches/gcc-4_8-branch/gcc/testsuite/c-c++-common/pr36282-4.c Modified: branches/gcc-4_8-branch/gcc/c-family/ChangeLog branches/gcc-4_8-branch/gcc/c-family/c-pragma.c branches/gcc-4_8-branch/gcc/testsuite/ChangeLog