From: Uros Bizjak Date: Sat, 6 May 2017 07:01:51 +0000 (+0200) Subject: i386.c (ext_80387_constant_init): Do not explicitly initialize to zero. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9f36390d429502f0a0dee20bda5b4870da948f6a;p=gcc.git i386.c (ext_80387_constant_init): Do not explicitly initialize to zero. * config/i386/i386.c (ext_80387_constant_init): Do not explicitly initialize to zero. (init_regs): Remove declaration. (function_arg_advance_32): Initialize error_p as boolean variable. From-SVN: r247711 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dfce7ee227a..faeac950cd3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2017-05-06 Uros Bizjak + + * config/i386/i386.c (ext_80387_constant_init): Do not explicitly + initialize to zero. + (init_regs): Remove declaration. + (function_arg_advance_32): Initialize error_p as boolean variable. + 2017-05-05 Nathan Sidwell * store-motion.c (remove_reachable_equiv_notes): Reformat long diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index dec3aee0048..de97d3c322f 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -2569,7 +2569,7 @@ enum x86_64_reg_class /* Table of constants used by fldpi, fldln2, etc.... */ static REAL_VALUE_TYPE ext_80387_constants_table [5]; -static bool ext_80387_constants_init = 0; +static bool ext_80387_constants_init; static struct machine_function * ix86_init_machine_status (void); @@ -8544,9 +8544,6 @@ ix86_asm_output_function_label (FILE *asm_out_file, const char *fname, } } -/* regclass.c */ -extern void init_regs (void); - /* Implementation of call abi switching target hook. Specific to FNDECL the specific call register sets are set. See also ix86_conditional_register_usage for more details. */ @@ -9665,7 +9662,7 @@ function_arg_advance_32 (CUMULATIVE_ARGS *cum, machine_mode mode, HOST_WIDE_INT words) { int res = 0; - bool error_p = NULL; + bool error_p = false; if (TARGET_IAMCU) { @@ -9710,13 +9707,13 @@ pass_in_reg: case DFmode: if (cum->float_in_sse == -1) - error_p = 1; + error_p = true; if (cum->float_in_sse < 2) break; /* FALLTHRU */ case SFmode: if (cum->float_in_sse == -1) - error_p = 1; + error_p = true; if (cum->float_in_sse < 1) break; /* FALLTHRU */ @@ -9927,6 +9924,7 @@ function_arg_32 (CUMULATIVE_ARGS *cum, machine_mode mode, HOST_WIDE_INT bytes, HOST_WIDE_INT words) { bool error_p = false; + /* Avoid the AL settings for the Unix64 ABI. */ if (mode == VOIDmode) return constm1_rtx; @@ -9978,13 +9976,13 @@ pass_in_reg: case DFmode: if (cum->float_in_sse == -1) - error_p = 1; + error_p = true; if (cum->float_in_sse < 2) break; /* FALLTHRU */ case SFmode: if (cum->float_in_sse == -1) - error_p = 1; + error_p = true; if (cum->float_in_sse < 1) break; /* FALLTHRU */