diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2011-11-25 13:35:13 +0000 |
---|---|---|
committer | Andrew Macleod <amacleod@gcc.gnu.org> | 2011-11-25 13:35:13 +0000 |
commit | 0c1e7e423a9072db79fb1ce5d99d4355ae3ed258 (patch) | |
tree | b137ccbe21de5a50b1ef9d25894e931b998042b3 /gcc/varasm.c | |
parent | b5e3577030b315d4f6adda285c3d01b0b845263e (diff) | |
download | gcc-0c1e7e423a9072db79fb1ce5d99d4355ae3ed258.tar.gz |
re PR other/51011 (FAIL: gcc.dg/atomic-generic.c (test for excess errors))
2011-11-24 Andrew MacLeod <amacleod@redhat.com>
PR other/51011
* tree.h (is_builtin_name): No longer external.
* builtins.c (is_builtin_name): Make static.
* varasm.c (incorporeal_function_p): __sync and __atomic external calls
are not incorporeal and may need asm label processing.
From-SVN: r181721
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index 2c31af91b9a..a01f49af58f 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -2109,7 +2109,9 @@ incorporeal_function_p (tree decl) return true; name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl)); - if (is_builtin_name (name)) + /* Atomic or sync builtins which have survived this far will be + resolved externally and therefore are not incorporeal. */ + if (strncmp (name, "__builtin_", 10) == 0) return true; } return false; |