* [committed] Fix m68k bootstrap
@ 2020-07-01 16:12 Jeff Law
0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2020-07-01 16:12 UTC (permalink / raw)
To: gcc-patches List
[-- Attachment #1: Type: text/plain, Size: 280 bytes --]
Similar to what we've seen elsewhere. The change to c++17 by default is causing
m68k to not bootstrap due to use of the "register" keyword. This patch removes
the half-dozen or so instances I immediately saw. I'll spin up another m68k
bootstrap attempt today/tonight.
Jeff
[-- Attachment #2: P --]
[-- Type: text/plain, Size: 1744 bytes --]
commit fb43b412502fd975b5ff40aa3cb4b3fdd5d7b39a
Author: Jeff Law <law@redhat.com>
Date: Wed Jul 1 10:09:48 2020 -0600
Fix bootstrap for m68k.
gcc/
* config/m68k/m68k.c (m68k_output_btst): Drop "register" keyword.
(emit_move_sequence, output_iorsi3, output_xorsi3): Likewise.
diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c
index 67b109447b3..36a0e34fb06 100644
--- a/gcc/config/m68k/m68k.c
+++ b/gcc/config/m68k/m68k.c
@@ -1946,7 +1946,7 @@ m68k_output_btst (rtx countop, rtx dataop, rtx_code code, int signpos)
if (GET_CODE (countop) == CONST_INT)
{
- register int count = INTVAL (countop);
+ int count = INTVAL (countop);
/* If COUNT is bigger than size of storage unit in use,
advance to the containing unit of same size. */
if (count > signpos)
@@ -3850,9 +3850,9 @@ fp_reg_operand (rtx op, machine_mode mode ATTRIBUTE_UNUSED)
int
emit_move_sequence (rtx *operands, machine_mode mode, rtx scratch_reg)
{
- register rtx operand0 = operands[0];
- register rtx operand1 = operands[1];
- register rtx tem;
+ rtx operand0 = operands[0];
+ rtx operand1 = operands[1];
+ rtx tem;
if (scratch_reg
&& reload_in_progress && GET_CODE (operand0) == REG
@@ -5474,7 +5474,7 @@ output_andsi3 (rtx *operands)
const char *
output_iorsi3 (rtx *operands)
{
- register int logval;
+ int logval;
CC_STATUS_INIT;
if (GET_CODE (operands[2]) == CONST_INT
&& INTVAL (operands[2]) >> 16 == 0
@@ -5513,7 +5513,7 @@ output_iorsi3 (rtx *operands)
const char *
output_xorsi3 (rtx *operands)
{
- register int logval;
+ int logval;
CC_STATUS_INIT;
if (GET_CODE (operands[2]) == CONST_INT
&& INTVAL (operands[2]) >> 16 == 0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-07-01 16:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-01 16:12 [committed] Fix m68k bootstrap Jeff Law
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).