diff options
author | Jakub Jelinek <jakub@redhat.com> | 2014-03-13 21:56:06 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2014-03-13 21:56:06 +0100 |
commit | 39a1ebb3ddb6b2afcc96723b0cb59dbd10be5268 (patch) | |
tree | 8f7c0d3df37b36ddc8cdb15d240d700dcfbb3b2e /libiberty/regex.c | |
parent | 3386d77eb83f3043afcc46503356165bc5ddfdba (diff) | |
download | gcc-39a1ebb3ddb6b2afcc96723b0cb59dbd10be5268.zip gcc-39a1ebb3ddb6b2afcc96723b0cb59dbd10be5268.tar.gz gcc-39a1ebb3ddb6b2afcc96723b0cb59dbd10be5268.tar.bz2 |
re PR middle-end/36282 (Spurious warning "asm declaration ignored due to conflict with previous rename")
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.
From-SVN: r208557
Diffstat (limited to 'libiberty/regex.c')
0 files changed, 0 insertions, 0 deletions