|
|
@ -1727,6 +1727,7 @@ if cc.compiles(''' |
|
|
|
my_label: |
|
|
|
my_label: |
|
|
|
return 1; |
|
|
|
return 1; |
|
|
|
}''', |
|
|
|
}''', |
|
|
|
|
|
|
|
name: 'computed goto', |
|
|
|
args: test_c_args) |
|
|
|
args: test_c_args) |
|
|
|
cdata.set('HAVE_COMPUTED_GOTO', 1) |
|
|
|
cdata.set('HAVE_COMPUTED_GOTO', 1) |
|
|
|
endif |
|
|
|
endif |
|
|
@ -1743,6 +1744,7 @@ if cc.compiles(''' |
|
|
|
({ _Static_assert(1, "foo"); }); |
|
|
|
({ _Static_assert(1, "foo"); }); |
|
|
|
} |
|
|
|
} |
|
|
|
''', |
|
|
|
''', |
|
|
|
|
|
|
|
name: '_Static_assert', |
|
|
|
args: test_c_args) |
|
|
|
args: test_c_args) |
|
|
|
cdata.set('HAVE__STATIC_ASSERT', 1) |
|
|
|
cdata.set('HAVE__STATIC_ASSERT', 1) |
|
|
|
endif |
|
|
|
endif |
|
|
@ -2359,6 +2361,7 @@ elif host_cpu == 'ppc' or host_cpu == 'ppc64' |
|
|
|
} |
|
|
|
} |
|
|
|
int test_adds(int x) { return addi(3, x) + addi(x, 5); } |
|
|
|
int test_adds(int x) { return addi(3, x) + addi(x, 5); } |
|
|
|
''', |
|
|
|
''', |
|
|
|
|
|
|
|
name: '@0@: "i"(x) when __builtin_constant_p(x)'.format(host_cpu), |
|
|
|
args: test_c_args) |
|
|
|
args: test_c_args) |
|
|
|
cdata.set('HAVE_I_CONSTRAINT__BUILTIN_CONSTANT_P', 1) |
|
|
|
cdata.set('HAVE_I_CONSTRAINT__BUILTIN_CONSTANT_P', 1) |
|
|
|
endif |
|
|
|
endif |
|
|
@ -2547,7 +2550,7 @@ int main(void) |
|
|
|
return y; |
|
|
|
return y; |
|
|
|
} |
|
|
|
} |
|
|
|
'''.format(kw), |
|
|
|
'''.format(kw), |
|
|
|
name: 'typeof()', |
|
|
|
name: kw, |
|
|
|
args: test_c_args, include_directories: postgres_inc) |
|
|
|
args: test_c_args, include_directories: postgres_inc) |
|
|
|
|
|
|
|
|
|
|
|
cdata.set('HAVE_TYPEOF', 1) |
|
|
|
cdata.set('HAVE_TYPEOF', 1) |
|
|
|