X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fconfigurator%2Fconfigurator.c;h=2e5b09c2b984c252c8a2bfd9a397960af057c344;hb=fc8784e07e1daada5ff1a652098628f039a62850;hp=ff9f64904bb06a7759c7c453fbf53a3dae47f5e8;hpb=8502a66a5ba8916758c67ea5b0b404386c34da24;p=ccan diff --git a/tools/configurator/configurator.c b/tools/configurator/configurator.c index ff9f6490..2e5b09c2 100644 --- a/tools/configurator/configurator.c +++ b/tools/configurator/configurator.c @@ -102,7 +102,8 @@ static struct test tests[] = { "#include \n" "static char *func(int x) {" " char *p;\n" - " if (asprintf(&p, \"%u\", x) == -1) p = NULL;" + " if (asprintf(&p, \"%u\", x) == -1) \n" + " p = NULL;\n" " return p;\n" "}" }, { "HAVE_ATTRIBUTE_COLD", DEFINES_FUNC, NULL, NULL, @@ -159,8 +160,12 @@ static struct test tests[] = { "return __builtin_ffsl(0L) == 0 ? 0 : 1;" }, { "HAVE_BUILTIN_FFSLL", INSIDE_MAIN, NULL, NULL, "return __builtin_ffsll(0LL) == 0 ? 0 : 1;" }, + { "HAVE_BUILTIN_POPCOUNT", INSIDE_MAIN, NULL, NULL, + "return __builtin_popcount(255) == 8 ? 0 : 1;" }, { "HAVE_BUILTIN_POPCOUNTL", INSIDE_MAIN, NULL, NULL, "return __builtin_popcountl(255L) == 8 ? 0 : 1;" }, + { "HAVE_BUILTIN_POPCOUNTLL", INSIDE_MAIN, NULL, NULL, + "return __builtin_popcountll(255LL) == 8 ? 0 : 1;" }, { "HAVE_BUILTIN_TYPES_COMPATIBLE_P", INSIDE_MAIN, NULL, NULL, "return __builtin_types_compatible_p(char *, int) ? 1 : 0;" }, { "HAVE_ICCARM_INTRINSICS", DEFINES_FUNC, NULL, NULL,