aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2017-05-06 09:01:51 +0200
committerUros Bizjak <uros@gcc.gnu.org>2017-05-06 09:01:51 +0200
commit9f36390d429502f0a0dee20bda5b4870da948f6a (patch)
treefa13d44582546914870153a9e39d1dd2bafb80c4
parent7ab8766a8e316026c592a2fdbcb342fef7bb887b (diff)
downloadgcc-9f36390d429502f0a0dee20bda5b4870da948f6a.zip
gcc-9f36390d429502f0a0dee20bda5b4870da948f6a.tar.gz
gcc-9f36390d429502f0a0dee20bda5b4870da948f6a.tar.bz2
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
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/i386/i386.c16
2 files changed, 14 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index dfce7ee..faeac95 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2017-05-06 Uros Bizjak <ubizjak@gmail.com>
+
+ * 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 <nathan@acm.org>
* store-motion.c (remove_reachable_equiv_notes): Reformat long
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index dec3aee..de97d3c 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 */