@@ -1506,7 +1506,7 @@ c_cpp_builtins (cpp_reader *pfile)
#ifdef HAVE_adddf3
builtin_define_with_int_value ("__LIBGCC_HAVE_HWDBL__",
- HAVE_adddf3);
+ (bool) HAVE_adddf3);
#endif
}
@@ -47,6 +47,12 @@ aarch64_def_or_undef (bool def_p, const char *macro, cpp_reader *pfile)
cpp_undef (pfile, macro);
}
+static void
+aarch64_def_or_undef (aarch64_feature_flags def_p, const char *macro, cpp_reader *pfile)
+{
+ aarch64_def_or_undef ((bool) def_p, macro, pfile);
+}
+
/* Define the macros that we always expect to have on AArch64. */
static void
@@ -6561,10 +6561,10 @@ aarch64_function_value_regno_p (const unsigned int regno)
/* Up to four fp/simd registers can return a function value, e.g. a
homogeneous floating-point aggregate having four members. */
if (regno >= V0_REGNUM && regno < V0_REGNUM + HA_MAX_NUM_FLDS)
- return TARGET_FLOAT;
+ return (bool) TARGET_FLOAT;
if (regno >= P0_REGNUM && regno < P0_REGNUM + HA_MAX_NUM_FLDS)
- return TARGET_SVE;
+ return (bool) TARGET_SVE;
return false;
}
@@ -140,9 +140,9 @@ write_one_condition (void **slot, void * ARG_UNUSED (dummy))
putchar (*p);
}
- fputs ("\",\n __builtin_constant_p ", stdout);
+ fputs ("\",\n __builtin_constant_p ((bool)", stdout);
rtx_reader_ptr->print_c_condition (test->expr);
- fputs ("\n ? (int) ", stdout);
+ fputs (")\n ? (int) (bool)", stdout);
rtx_reader_ptr->print_c_condition (test->expr);
fputs ("\n : -1 },\n", stdout);
return 1;
@@ -386,7 +386,7 @@ main (int argc, const char **argv)
unsigned end = MIN (patterns.length (),
(i + 1) * patterns_per_function);
for (j = start; j < end; ++j)
- fprintf (s_file, " ena[%u] = HAVE_%s;\n", j, patterns[j].name);
+ fprintf (s_file, " ena[%u] = (bool) HAVE_%s;\n", j, patterns[j].name);
fprintf (s_file, "}\n\n");
}
@@ -402,7 +402,7 @@ main (int argc, const char **argv)
"(struct target_optabs *optabs)\n{\n");
fprintf (s_file, " bool *ena = optabs->pat_enable;\n");
for (i = 0; patterns.iterate (i, &p); ++i)
- fprintf (s_file, " ena[%u] = HAVE_%s;\n", i, p->name);
+ fprintf (s_file, " ena[%u] = (bool) HAVE_%s;\n", i, p->name);
fprintf (s_file, "}\n\n");
}
@@ -620,7 +620,7 @@ bool
default_float_exceptions_rounding_supported_p (void)
{
#ifdef HAVE_adddf3
- return HAVE_adddf3;
+ return (bool) HAVE_adddf3;
#else
return false;
#endif