diff options
author | Jeffrey A Law <law@cygnus.com> | 1997-11-13 23:55:08 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1997-11-13 16:55:08 -0700 |
commit | 323d8e7b661297d87002730d2e3f55bca134baaf (patch) | |
tree | 4e108be6596a671fc4cfe96474b2df8b51012f53 /gcc/config/v850 | |
parent | 5a75af62841ff3012af814f12c690e2965000496 (diff) | |
download | gcc-323d8e7b661297d87002730d2e3f55bca134baaf.zip gcc-323d8e7b661297d87002730d2e3f55bca134baaf.tar.gz gcc-323d8e7b661297d87002730d2e3f55bca134baaf.tar.bz2 |
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
Diffstat (limited to 'gcc/config/v850')
-rw-r--r-- | gcc/config/v850/v850.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/gcc/config/v850/v850.c b/gcc/config/v850/v850.c index 79ae10f..564e8ee 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 |