[Bug middle-end/36282] [4.7/4.8/4.9 Regression] Spurious warning "asm declaration ignored due to conflict with previous rename"
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 13 20:56:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36282
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Mar 13 20:56:06 2014
New Revision: 208557
URL: http://gcc.gnu.org/viewcvs?rev=208557&root=gcc&view=rev
Log:
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:
trunk/gcc/testsuite/c-c++-common/pr36282-1.c
trunk/gcc/testsuite/c-c++-common/pr36282-2.c
trunk/gcc/testsuite/c-c++-common/pr36282-3.c
trunk/gcc/testsuite/c-c++-common/pr36282-4.c
Modified:
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-pragma.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list