diff options
Diffstat (limited to 'gcc/c-pragma.c')
-rw-r--r-- | gcc/c-pragma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-pragma.c b/gcc/c-pragma.c index 71b3409..bd53c80 100644 --- a/gcc/c-pragma.c +++ b/gcc/c-pragma.c @@ -273,6 +273,7 @@ apply_pragma_weak (tree decl, tree value) } if (SUPPORTS_WEAK && DECL_EXTERNAL (decl) && TREE_USED (decl) + && !DECL_WEAK (decl) /* don't complain about a redundant #pragma */ && TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl))) warning_with_decl (decl, "applying #pragma weak `%s' after first use results in unspecified behavior"); |