From 323d8e7b661297d87002730d2e3f55bca134baaf Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Thu, 13 Nov 1997 23:55:08 +0000 Subject: [PATCH] lib1funcs.asm: Minor whitespace changes. * v850/lib1funcs.asm: Minor whitespace changes. * v850.c: Fix minor formatting problems in many places. (construct_restore_jr, construct_save_jarl): Remove unwanted aborts. From-SVN: r16471 --- gcc/ChangeLog | 6 ++++++ gcc/config/v850/v850.c | 36 ++++++++++++++++++------------------ 2 files changed, 24 insertions(+), 18 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 31ead4a55f6..79a5a8bbebc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +Thu Nov 13 16:56:14 1997 Jeffrey A Law (law@cygnus.com) + + * v850/lib1funcs.asm: Minor whitespace changes. + * v850.c: Fix minor formatting problems in many places. + (construct_restore_jr, construct_save_jarl): Remove unwanted aborts. + Thu Nov 13 12:53:44 1997 Jim Wilson * mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete code swapping xplus0 and diff --git a/gcc/config/v850/v850.c b/gcc/config/v850/v850.c index 79ae10f9fbe..564e8ee0988 100644 --- a/gcc/config/v850/v850.c +++ b/gcc/config/v850/v850.c @@ -399,16 +399,16 @@ print_operand (file, x, code) else if (TDA_NAME_P (name)) fprintf (file, "tdaoff"); else - abort(); + abort (); } else - abort(); + abort (); break; case 'P': if (special_symbolref_operand (x, VOIDmode)) output_addr_const (file, x); else - abort(); + abort (); break; case 'Q': if (special_symbolref_operand (x, VOIDmode)) @@ -429,10 +429,10 @@ print_operand (file, x, code) else if (TDA_NAME_P (name)) fprintf (file, "ep"); else - abort(); + abort (); } else - abort(); + abort (); break; case 'R': /* 2nd word of a double. */ switch (GET_CODE (x)) @@ -584,7 +584,7 @@ print_operand_address (file, addr) reg_name = "ep"; } else - abort(); + abort (); fprintf (file, "%s(", off_name); output_addr_const (file, addr); @@ -616,7 +616,7 @@ print_operand_address (file, addr) reg_name = "ep"; } else - abort(); + abort (); fprintf (file, "%s(", off_name); output_addr_const (file, addr); @@ -2082,11 +2082,11 @@ construct_restore_jr (op) last = 29; } - /* Paranoia */ - for (i = (first == 2 ? 20 : first + 1); i < 29; i++) - if ((mask & (1 << i)) == 0) - abort (); - + /* Note, it is possible to have gaps in the register mask. + We ignore this here, and generate a JR anyway. We will + be popping more registers thatn is strictly necessary, but + it does save code space. */ + if (first == last) sprintf (buff, "jr __return_%s", reg_names [first]); else @@ -2254,7 +2254,7 @@ construct_save_jarl (op) if (mask & (1 << 31)) { if (stack_bytes != -16) - abort(); + abort (); last = 31; } @@ -2268,11 +2268,11 @@ construct_save_jarl (op) last = 29; } - /* Paranoia */ - for (i = (first == 2 ? 20 : first + 1); i < 29; i++) - if ((mask & (1 << i)) == 0) - abort (); - + /* Note, it is possible to have gaps in the register mask. + We ignore this here, and generate a JARL anyway. We will + be pushing more registers thatn is strictly necessary, but + it does save code space. */ + if (first == last) sprintf (buff, "jarl __save_%s, r10", reg_names [first]); else -- 2.30.2