> * config/tc-hppa.c: Fix formatting.

This commit is contained in:
Jeff Law 2000-09-07 01:34:02 +00:00
parent 3bb04bddc3
commit a28a3ccf6a
2 changed files with 19 additions and 35 deletions

View file

@ -1,5 +1,7 @@
2000-09-06 Kazu Hirata <kazu@hxi.com> 2000-09-06 Kazu Hirata <kazu@hxi.com>
* config/tc-hppa.c: Fix formatting.
* ecoff.c: Fix formatting. * ecoff.c: Fix formatting.
2000-09-06 Alexandre Oliva <aoliva@redhat.com> 2000-09-06 Alexandre Oliva <aoliva@redhat.com>

View file

@ -19,7 +19,6 @@
Software Foundation, 59 Temple Place - Suite 330, Boston, MA Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */ 02111-1307, USA. */
/* HP PA-RISC support was contributed by the Center for Software Science /* HP PA-RISC support was contributed by the Center for Software Science
at the University of Utah. */ at the University of Utah. */
@ -232,7 +231,6 @@ struct pa_it
/* PA-89 floating point registers are arranged like this: /* PA-89 floating point registers are arranged like this:
+--------------+--------------+ +--------------+--------------+
| 0 or 16L | 16 or 16R | | 0 or 16L | 16 or 16R |
+--------------+--------------+ +--------------+--------------+
@ -696,7 +694,7 @@ const pseudo_typeS md_pseudo_table[] =
first line of the input file. This is because the compiler outputs first line of the input file. This is because the compiler outputs
#NO_APP at the beginning of its output. #NO_APP at the beginning of its output.
Also note that C style comments will always work. */ Also note that C style comments will always work. */
const char line_comment_chars[] = "#"; const char line_comment_chars[] = "#";
/* This array holds the chars that always start a comment. If the /* This array holds the chars that always start a comment. If the
@ -787,7 +785,7 @@ static int print_errors = 1;
Almost every control register has a synonym; they are not listed Almost every control register has a synonym; they are not listed
here for brevity. here for brevity.
The table is sorted. Suitable for searching by a binary search. */ The table is sorted. Suitable for searching by a binary search. */
static const struct pd_reg pre_defined_registers[] = static const struct pd_reg pre_defined_registers[] =
{ {
@ -1260,7 +1258,6 @@ pa_undefine_label ()
} }
} }
/* An HPPA-specific version of fix_new. This is required because the HPPA /* An HPPA-specific version of fix_new. This is required because the HPPA
code needs to keep track of some extra stuff. Each call to fix_new_hppa code needs to keep track of some extra stuff. Each call to fix_new_hppa
results in the creation of an instance of an hppa_fix_struct. An results in the creation of an instance of an hppa_fix_struct. An
@ -1424,7 +1421,7 @@ md_begin ()
#ifdef OBJ_SOM #ifdef OBJ_SOM
dummy_symbol = symbol_find_or_make ("L$dummy"); dummy_symbol = symbol_find_or_make ("L$dummy");
S_SET_SEGMENT (dummy_symbol, text_section); S_SET_SEGMENT (dummy_symbol, text_section);
/* Force the symbol to be converted to a real symbol. */ /* Force the symbol to be converted to a real symbol. */
(void) symbol_get_bfdsym (dummy_symbol); (void) symbol_get_bfdsym (dummy_symbol);
#endif #endif
} }
@ -1484,7 +1481,7 @@ md_assemble (str)
/* Get somewhere to put the assembled instrution. */ /* Get somewhere to put the assembled instrution. */
to = frag_more (4); to = frag_more (4);
/* Output the opcode. */ /* Output the opcode. */
md_number_to_chars (to, the_insn.opcode, 4); md_number_to_chars (to, the_insn.opcode, 4);
/* If necessary output more stuff. */ /* If necessary output more stuff. */
@ -1948,7 +1945,7 @@ pa_ip (str)
} }
INSERT_FIELD_AND_CONTINUE (opcode, cmpltr, 10); INSERT_FIELD_AND_CONTINUE (opcode, cmpltr, 10);
/* Handle load ordering completer. */ /* Handle load ordering completer. */
case 'o': case 'o':
if (strncmp(s, ",o", 2) != 0) if (strncmp(s, ",o", 2) != 0)
break; break;
@ -2408,7 +2405,7 @@ pa_ip (str)
} }
else else
{ {
/* Negated condition requires an opcode change. */ /* Negated condition requires an opcode change. */
opcode |= (cmpltr & 8) << 24; opcode |= (cmpltr & 8) << 24;
} }
INSERT_FIELD_AND_CONTINUE (opcode, cmpltr & 7, 13); INSERT_FIELD_AND_CONTINUE (opcode, cmpltr & 7, 13);
@ -2429,7 +2426,7 @@ pa_ip (str)
} }
else else
{ {
/* Negated condition requires an opcode change. */ /* Negated condition requires an opcode change. */
opcode |= 1 << 27; opcode |= 1 << 27;
} }
} }
@ -2582,7 +2579,7 @@ pa_ip (str)
} }
else else
{ {
/* Negated condition requires an opcode change. */ /* Negated condition requires an opcode change. */
opcode |= 1 << 27; opcode |= 1 << 27;
} }
} }
@ -2594,11 +2591,11 @@ pa_ip (str)
cmpltr = pa_parse_cmpb_64_cmpltr (&s); cmpltr = pa_parse_cmpb_64_cmpltr (&s);
if (cmpltr >= 0) if (cmpltr >= 0)
{ {
/* Negated condition requires an opcode change. */ /* Negated condition requires an opcode change. */
opcode |= (cmpltr & 8) << 26; opcode |= (cmpltr & 8) << 26;
} }
else else
/* Not a 64 bit cond. Give 32 bit a chance. */ /* Not a 64 bit cond. Give 32 bit a chance. */
break; break;
INSERT_FIELD_AND_CONTINUE (opcode, cmpltr & 7, 13); INSERT_FIELD_AND_CONTINUE (opcode, cmpltr & 7, 13);
@ -2607,7 +2604,7 @@ pa_ip (str)
case 'Q': case 'Q':
cmpltr = pa_parse_cmpib_64_cmpltr (&s); cmpltr = pa_parse_cmpib_64_cmpltr (&s);
if (cmpltr < 0) if (cmpltr < 0)
/* Not a 64 bit cond. Give 32 bit a chance. */ /* Not a 64 bit cond. Give 32 bit a chance. */
break; break;
INSERT_FIELD_AND_CONTINUE (opcode, cmpltr, 13); INSERT_FIELD_AND_CONTINUE (opcode, cmpltr, 13);
@ -3192,7 +3189,7 @@ pa_ip (str)
break; break;
} }
CHECK_FIELD (num, 8199, -8184, 0); CHECK_FIELD (num, 8199, -8184, 0);
opcode |= re_assemble_12 ((num - 8) >> 2); opcode |= re_assemble_12 ((num - 8) >> 2);
continue; continue;
} }
@ -4226,7 +4223,7 @@ md_convert_frag (abfd, sec, fragP)
} }
} }
/* Round up a section size to the appropriate boundary. */ /* Round up a section size to the appropriate boundary. */
valueT valueT
md_section_align (segment, size) md_section_align (segment, size)
@ -4659,7 +4656,7 @@ pa_parse_number (s, is_float)
c = *p; c = *p;
/* Tege hack: Special case for general registers as the general /* Tege hack: Special case for general registers as the general
code makes a binary search with case translation, and is VERY code makes a binary search with case translation, and is VERY
slow. */ slow. */
if (c == 'r') if (c == 'r')
{ {
p++; p++;
@ -4800,7 +4797,6 @@ reg_name_search (name)
return -1; return -1;
} }
/* Return nonzero if the given INSN and L/R information will require /* Return nonzero if the given INSN and L/R information will require
a new PA-1.1 opcode. */ a new PA-1.1 opcode. */
@ -5104,7 +5100,7 @@ get_expression (str)
return 0; return 0;
} }
/* Mark (via expr_end) the end of an absolute expression. FIXME. */ /* Mark (via expr_end) the end of an absolute expression. FIXME. */
static int static int
pa_get_absolute_expression (insn, strp) pa_get_absolute_expression (insn, strp)
struct pa_it *insn; struct pa_it *insn;
@ -5286,7 +5282,6 @@ pa_parse_nonneg_cmpsub_cmpltr (s, isbranch)
c = **s; c = **s;
**s = 0x00; **s = 0x00;
if (strcmp (name, "=") == 0) if (strcmp (name, "=") == 0)
{ {
cmpltr = 1; cmpltr = 1;
@ -5333,7 +5328,6 @@ pa_parse_nonneg_cmpsub_cmpltr (s, isbranch)
if (nullify) if (nullify)
*s = save_s; *s = save_s;
return cmpltr; return cmpltr;
} }
@ -5364,7 +5358,6 @@ pa_parse_neg_cmpsub_cmpltr (s, isbranch)
c = **s; c = **s;
**s = 0x00; **s = 0x00;
if (strcasecmp (name, "tr") == 0) if (strcasecmp (name, "tr") == 0)
{ {
cmpltr = 0; cmpltr = 0;
@ -5415,11 +5408,9 @@ pa_parse_neg_cmpsub_cmpltr (s, isbranch)
if (nullify) if (nullify)
*s = save_s; *s = save_s;
return cmpltr; return cmpltr;
} }
/* Parse a 64 bit compare and branch completer returning the number (for /* Parse a 64 bit compare and branch completer returning the number (for
encoding in instrutions) of the given completer. encoding in instrutions) of the given completer.
@ -5514,7 +5505,6 @@ pa_parse_cmpb_64_cmpltr (s)
**s = c; **s = c;
} }
return cmpltr; return cmpltr;
} }
@ -5577,7 +5567,6 @@ pa_parse_cmpib_64_cmpltr (s)
**s = c; **s = c;
} }
return cmpltr; return cmpltr;
} }
@ -6063,7 +6052,6 @@ pa_build_unwind_subspace (call_info)
subseg_set (seg, 0); subseg_set (seg, 0);
/* Get some space to hold relocation information for the unwind /* Get some space to hold relocation information for the unwind
descriptor. */ descriptor. */
p = frag_more (4); p = frag_more (4);
@ -6091,7 +6079,7 @@ pa_build_unwind_subspace (call_info)
(expressionS *) NULL, 0, reloc, (expressionS *) NULL, 0, reloc,
e_fsel, 32, 0, NULL); e_fsel, 32, 0, NULL);
/* Dump it. */ /* Dump it. */
unwind = (char *) &call_info->ci_unwind; unwind = (char *) &call_info->ci_unwind;
for (i = 8; i < sizeof (struct unwind_table); i++) for (i = 8; i < sizeof (struct unwind_table); i++)
{ {
@ -6561,7 +6549,7 @@ pa_export (unused)
else else
{ {
/* OK. Set the external bits and process argument relocations. /* OK. Set the external bits and process argument relocations.
For the HP, weak and global are not mutually exclusive. For the HP, weak and global are not mutually exclusive.
S_SET_EXTERNAL will not set BSF_GLOBAL if WEAK is set. S_SET_EXTERNAL will not set BSF_GLOBAL if WEAK is set.
Call S_SET_EXTERNAL to get the other processing. Manually Call S_SET_EXTERNAL to get the other processing. Manually
set BSF_GLOBAL when we get back. */ set BSF_GLOBAL when we get back. */
@ -7069,7 +7057,6 @@ pa_procend (unused)
pa_undefine_label (); pa_undefine_label ();
} }
#ifdef OBJ_SOM #ifdef OBJ_SOM
/* If VALUE is an exact power of two between zero and 2^31, then /* If VALUE is an exact power of two between zero and 2^31, then
return log2 (VALUE). Else return -1. */ return log2 (VALUE). Else return -1. */
@ -7598,7 +7585,6 @@ pa_subspace (create_new)
SUBSPACE_DEFINED (current_subspace) = 1; SUBSPACE_DEFINED (current_subspace) = 1;
} }
/* Create default space and subspace dictionaries. */ /* Create default space and subspace dictionaries. */
static void static void
@ -7641,7 +7627,6 @@ pa_spaces_begin ()
/* Create the new section. */ /* Create the new section. */
segment = subseg_new (name, subsegment); segment = subseg_new (name, subsegment);
/* For SOM we want to replace the standard .text, .data, and .bss /* For SOM we want to replace the standard .text, .data, and .bss
sections with our own. We also want to set BFD flags for sections with our own. We also want to set BFD flags for
all the built-in subspaces. */ all the built-in subspaces. */
@ -7664,7 +7649,6 @@ pa_spaces_begin ()
| SEC_RELOC | SEC_RELOC
| SEC_HAS_CONTENTS)); | SEC_HAS_CONTENTS));
} }
else if (!strcmp (pa_def_subspaces[i].name, "$BSS$")) else if (!strcmp (pa_def_subspaces[i].name, "$BSS$"))
{ {
@ -7726,8 +7710,6 @@ pa_spaces_begin ()
} }
} }
/* Create a new space NAME, with the appropriate flags as defined /* Create a new space NAME, with the appropriate flags as defined
by the given parameters. */ by the given parameters. */