mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 01:06:01 +02:00
Bug 456131 - Remove duplicate builtin symbol for __atomic_add_fetch
Change-Id: Icb753202c7678ec75f603edac003dbd199513b07 Signed-off-by: Nathan Ridge <zeratul976@hotmail.com> Reviewed-on: https://git.eclipse.org/r/38787 Tested-by: Hudson CI Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com> Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
This commit is contained in:
parent
9bbd8d4f3e
commit
787d0e1642
2 changed files with 8 additions and 2 deletions
|
@ -158,7 +158,6 @@ public class AST2Tests extends AST2TestBase {
|
|||
String code= getAboveComment();
|
||||
parseAndCheckBindings(code, C, useGnuExtensions);
|
||||
parseAndCheckBindings(code, CPP, useGnuExtensions);
|
||||
|
||||
}
|
||||
|
||||
protected IASTTranslationUnit parseAndCheckBindings(String code) throws Exception {
|
||||
|
@ -7567,4 +7566,12 @@ public class AST2Tests extends AST2TestBase {
|
|||
public void testExpressionLabelReference_84144() throws Exception {
|
||||
parseAndCheckBindings(true);
|
||||
}
|
||||
|
||||
// int version = 0;
|
||||
// int NextVersion() {
|
||||
// return __atomic_add_fetch(&version, 1, 5);
|
||||
// }
|
||||
public void testAtomicBuiltin_bug456131() throws Exception {
|
||||
parseAndCheckBindings(true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -153,7 +153,6 @@ public class GCCBuiltinSymbolProvider implements IBuiltinBindingsProvider {
|
|||
function("bool", "__atomic_compare_exchange", typePtr, typePtr, typePtr, "int", "int", "int");
|
||||
function(type, "__atomic_add_fetch", typePtr, type, "int");
|
||||
function(type, "__atomic_sub_fetch", typePtr, type, "int");
|
||||
function(type, "__atomic_add_fetch", typePtr, type, "int");
|
||||
function(type, "__atomic_and_fetch", typePtr, type, "int");
|
||||
function(type, "__atomic_xor_fetch", typePtr, type, "int");
|
||||
function(type, "__atomic_or_fetch", typePtr, type, "int");
|
||||
|
|
Loading…
Add table
Reference in a new issue