This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[patch] tc-*.[ch]: Fix formatting.
- To: binutils at sources dot redhat dot com
- Subject: [patch] tc-*.[ch]: Fix formatting.
- From: Kazu Hirata <kazu at hxi dot com>
Hi,
Attached is a patch to fix formatting of tc-*.[ch]. OK to apply?
Kazu Hirata
2001-07-22 Kazu Hirata <kazu@hxi.com>
* config/tc-alpha.h: Fix formatting.
* config/tc-arc.c: Likewise.
* config/tc-d10v.h: Likewise.
* config/tc-hppa.c: Likewise.
* config/tc-i370.c: Likewise.
* config/tc-i386.h: Likewise.
* config/tc-i960.h: Likewise.
* config/tc-ia64.c: Likewise.
* config/tc-ia64.h: Likewise.
* config/tc-m32r.c: Likewise.
* config/tc-m68k.c: Likewise.
* config/tc-m88k.c: Likewise.
* config/tc-ns32k.c: Likewise.
* config/tc-pdp11.c: Likewise.
* config/tc-pj.h: Likewise.
* config/tc-s390.c: Likewise.
* config/tc-sparc.c: Likewise.
* config/tc-sparc.h: Likewise.
* config/tc-tic80.c: Likewise.
* config/tc-w65.h: Likewise.
Index: tc-alpha.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-alpha.h,v
retrieving revision 1.6
diff -u -r1.6 tc-alpha.h
--- tc-alpha.h 2001/03/08 23:24:22 1.6
+++ tc-alpha.h 2001/07/22 18:27:13
@@ -64,7 +64,7 @@
#define md_convert_frag(b,s,f) as_fatal ("alpha convert_frag\n")
#define md_estimate_size_before_relax(f,s) \
- (as_fatal("estimate_size_before_relax called"),1)
+ (as_fatal ("estimate_size_before_relax called"),1)
#define md_operand(x)
#ifdef OBJ_EVAX
Index: tc-arc.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-arc.c,v
retrieving revision 1.14
diff -u -r1.14 tc-arc.c
--- tc-arc.c 2001/05/22 11:03:35 1.14
+++ tc-arc.c 2001/07/22 18:27:13
@@ -1703,7 +1703,7 @@
while (ext_oper)
{
l = strlen (ext_oper->operand.name);
- if (!strncmp (p, ext_oper->operand.name, l) && !isalnum(*(p + l)))
+ if (!strncmp (p, ext_oper->operand.name, l) && !isalnum (*(p + l)))
{
input_line_pointer += l + 1;
expressionP->X_op = O_register;
Index: tc-d10v.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-d10v.h,v
retrieving revision 1.6
diff -u -r1.6 tc-d10v.h
--- tc-d10v.h 2001/04/20 23:38:37 1.6
+++ tc-d10v.h 2001/07/22 18:27:13
@@ -51,11 +51,11 @@
#define md_number_to_chars number_to_chars_bigendian
int d10v_cleanup PARAMS ((void));
-#define md_after_pass_hook() d10v_cleanup()
-#define md_cleanup() d10v_cleanup()
-#define md_do_align(a,b,c,d,e) d10v_cleanup()
+#define md_after_pass_hook() d10v_cleanup ()
+#define md_cleanup() d10v_cleanup ()
+#define md_do_align(a,b,c,d,e) d10v_cleanup ()
#define tc_frob_label(sym) do {\
- d10v_cleanup(); \
+ d10v_cleanup (); \
symbol_set_frag (sym, frag_now); \
S_SET_VALUE (sym, (valueT) frag_now_fix ()); \
} while (0)
Index: tc-hppa.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-hppa.c,v
retrieving revision 1.85
diff -u -r1.85 tc-hppa.c
--- tc-hppa.c 2001/06/22 08:17:57 1.85
+++ tc-hppa.c 2001/07/22 18:27:15
@@ -1691,12 +1691,12 @@
while (*s == ' ' || *s == '\t')
s = s + 1;
- if (!strncasecmp(s, "%sar", 4))
+ if (!strncasecmp (s, "%sar", 4))
{
s += 4;
continue;
}
- else if (!strncasecmp(s, "%cr11", 5))
+ else if (!strncasecmp (s, "%cr11", 5))
{
s += 5;
continue;
@@ -1951,7 +1951,7 @@
/* Handle load cache hint completer. */
case 'c':
cmpltr = 0;
- if (!strncmp(s, ",sl", 3))
+ if (!strncmp (s, ",sl", 3))
{
s += 3;
cmpltr = 2;
@@ -1961,12 +1961,12 @@
/* Handle store cache hint completer. */
case 'C':
cmpltr = 0;
- if (!strncmp(s, ",sl", 3))
+ if (!strncmp (s, ",sl", 3))
{
s += 3;
cmpltr = 2;
}
- else if (!strncmp(s, ",bc", 3))
+ else if (!strncmp (s, ",bc", 3))
{
s += 3;
cmpltr = 1;
@@ -1976,7 +1976,7 @@
/* Handle load and clear cache hint completer. */
case 'd':
cmpltr = 0;
- if (!strncmp(s, ",co", 3))
+ if (!strncmp (s, ",co", 3))
{
s += 3;
cmpltr = 1;
@@ -1985,7 +1985,7 @@
/* Handle load ordering completer. */
case 'o':
- if (strncmp(s, ",o", 2) != 0)
+ if (strncmp (s, ",o", 2) != 0)
break;
s += 2;
continue;
@@ -2254,13 +2254,13 @@
else if (*s == 'l')
lr = 0;
else
- as_bad(_("Invalid left/right combination completer"));
+ as_bad (_("Invalid left/right combination completer"));
s++;
INSERT_FIELD_AND_CONTINUE (opcode, lr, 13);
}
else
- as_bad(_("Invalid left/right combination completer"));
+ as_bad (_("Invalid left/right combination completer"));
break;
/* Handle saturation at 24:25. */
@@ -2309,14 +2309,14 @@
perm = 3;
break;
default:
- as_bad(_("Invalid permutation completer"));
+ as_bad (_("Invalid permutation completer"));
}
opcode |= perm << permloc[i];
}
continue;
}
else
- as_bad(_("Invalid permutation completer"));
+ as_bad (_("Invalid permutation completer"));
break;
default:
Index: tc-i370.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-i370.c,v
retrieving revision 1.7
diff -u -r1.7 tc-i370.c
--- tc-i370.c 2001/03/08 23:24:23 1.7
+++ tc-i370.c 2001/07/22 18:27:16
@@ -347,7 +347,7 @@
/* if its alpha, look to see if it's in the register table */
if (!isalpha (name[0]))
{
- reg_number = get_single_number();
+ reg_number = get_single_number ();
c = get_symbol_end ();
}
else
@@ -1117,7 +1117,7 @@
/* Pseudo op to make file scope bss items */
static void
-i370_elf_lcomm(unused)
+i370_elf_lcomm (unused)
int unused;
{
register char *name;
@@ -1326,13 +1326,13 @@
/* start a new pool, if necessary */
if (8 == sz && NULL == longlong_poolP)
- longlong_poolP = symbol_make_empty();
+ longlong_poolP = symbol_make_empty ();
else if (4 == sz && NULL == word_poolP)
- word_poolP = symbol_make_empty();
+ word_poolP = symbol_make_empty ();
else if (2 == sz && NULL == short_poolP)
- short_poolP = symbol_make_empty();
+ short_poolP = symbol_make_empty ();
else if (1 == sz && NULL == byte_poolP)
- byte_poolP = symbol_make_empty();
+ byte_poolP = symbol_make_empty ();
/* Check if this literal value is already in the pool: */
/* hack alert -- we should probably be checking expressions
@@ -1361,7 +1361,7 @@
{
if (next_literal_pool_place > MAX_LITERAL_POOL_SIZE)
{
- as_bad("Literal Pool Overflow");
+ as_bad ("Literal Pool Overflow");
}
literals[next_literal_pool_place].exp = *exx;
@@ -1435,7 +1435,7 @@
S_SET_SEGMENT (symbolP, segment);
S_SET_VALUE (symbolP, valu);
- symbol_clear_list_pointers(symbolP);
+ symbol_clear_list_pointers (symbolP);
symbol_set_frag (symbolP, frag);
@@ -1489,11 +1489,11 @@
lab = input_line_pointer;
while (*lab && (',' != *lab) && ('(' != *lab))
{
- if (isdigit(*lab))
+ if (isdigit (*lab))
{
all_digits = 1;
}
- else if (isalpha(*lab))
+ else if (isalpha (*lab))
{
if (!all_digits)
{
@@ -1652,7 +1652,7 @@
save = input_line_pointer;
while (*save)
{
- if (isxdigit(*save))
+ if (isxdigit (*save))
hex_len++;
save++;
}
@@ -1797,7 +1797,7 @@
*/
if (literals[lit_count].sym_name)
{
- symbolS * symP = symbol_make_empty();
+ symbolS * symP = symbol_make_empty ();
symbol_locate (symP, literals[lit_count].sym_name, now_seg,
(valueT) frag_now_fix (), frag_now);
symbol_table_insert (symP);
@@ -2917,7 +2917,7 @@
default:
fprintf (stderr,
"Gas failure, reloc value %d\n", fixp->fx_r_type);
- fflush(stderr);
+ fflush (stderr);
abort ();
}
}
Index: tc-i386.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-i386.h,v
retrieving revision 1.26
diff -u -r1.26 tc-i386.h
--- tc-i386.h 2001/03/13 04:37:13 1.26
+++ tc-i386.h 2001/07/22 18:27:16
@@ -121,7 +121,7 @@
#define TC_COUNT_RELOC(x) ((x)->fx_addsy || (x)->fx_r_type==7)
#define TC_COFF_FIX2RTYPE(fixP) tc_coff_fix2rtype(fixP)
extern short tc_coff_fix2rtype PARAMS ((struct fix *));
-#define TC_COFF_SIZEMACHDEP(frag) tc_coff_sizemachdep(frag)
+#define TC_COFF_SIZEMACHDEP(frag) tc_coff_sizemachdep (frag)
extern int tc_coff_sizemachdep PARAMS ((fragS *frag));
#ifdef TE_GO32
Index: tc-i960.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-i960.h,v
retrieving revision 1.7
diff -u -r1.7 tc-i960.h
--- tc-i960.h 2001/03/08 23:24:24 1.7
+++ tc-i960.h 2001/07/22 18:27:16
@@ -63,8 +63,8 @@
#define OBJ_COFF_SECTION_HEADER_HAS_ALIGNMENT
#define OBJ_COFF_MAX_AUXENTRIES (2)
#define TC_COUNT_RELOC(FIXP) (!(FIXP)->fx_done)
-#define TC_COFF_FIX2RTYPE(FIXP) tc_coff_fix2rtype(FIXP)
-#define TC_COFF_SIZEMACHDEP(FRAGP) tc_coff_sizemachdep(FRAGP)
+#define TC_COFF_FIX2RTYPE(FIXP) tc_coff_fix2rtype (FIXP)
+#define TC_COFF_SIZEMACHDEP(FRAGP) tc_coff_sizemachdep (FRAGP)
#define TC_COFF_SET_MACHINE(HDRS) tc_headers_hook (HDRS)
extern void tc_headers_hook ();
extern short tc_coff_fix2rtype ();
Index: tc-ia64.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ia64.c,v
retrieving revision 1.54
diff -u -r1.54 tc-ia64.c
--- tc-ia64.c 2001/07/06 07:32:42 1.54
+++ tc-ia64.c 2001/07/22 18:27:18
@@ -876,8 +876,8 @@
} \
_prefix_len = strlen (_prefix), _suffix_len = strlen (_suffix); \
_result = alloca (_prefix_len + _suffix_len + 1); \
- memcpy(_result, _prefix, _prefix_len); \
- memcpy(_result + _prefix_len, _suffix, _suffix_len); \
+ memcpy (_result, _prefix, _prefix_len); \
+ memcpy (_result + _prefix_len, _suffix, _suffix_len); \
_result[_prefix_len + _suffix_len] = '\0'; \
result = _result; \
} \
@@ -2769,7 +2769,7 @@
info. */
static int
-setup_unwind_header(int size, unsigned char **mem)
+setup_unwind_header (int size, unsigned char **mem)
{
int x, extra = 0;
@@ -2816,7 +2816,7 @@
if (size > 0 || unwind.force_unwind_entry)
{
unwind.force_unwind_entry = 0;
- extra = setup_unwind_header(size, &mem);
+ extra = setup_unwind_header (size, &mem);
vbyte_mem_ptr = mem + 8;
process_unw_records (list, output_vbyte_mem);
@@ -7719,8 +7719,8 @@
{
int p1 = CURR_SLOT.opnd[0].X_add_number - REG_P;
int p2 = CURR_SLOT.opnd[1].X_add_number - REG_P;
- int or_andcm = strstr(idesc->name, "or.andcm") != NULL;
- int and_orcm = strstr(idesc->name, "and.orcm") != NULL;
+ int or_andcm = strstr (idesc->name, "or.andcm") != NULL;
+ int and_orcm = strstr (idesc->name, "and.orcm") != NULL;
if ((idesc->operands[0] == IA64_OPND_P1
|| idesc->operands[0] == IA64_OPND_P2)
@@ -7841,8 +7841,8 @@
{
int p1 = CURR_SLOT.opnd[0].X_add_number - REG_P;
int p2 = CURR_SLOT.opnd[1].X_add_number - REG_P;
- int or_andcm = strstr(idesc->name, "or.andcm") != NULL;
- int and_orcm = strstr(idesc->name, "and.orcm") != NULL;
+ int or_andcm = strstr (idesc->name, "or.andcm") != NULL;
+ int and_orcm = strstr (idesc->name, "and.orcm") != NULL;
if ((idesc->operands[0] == IA64_OPND_P1
|| idesc->operands[0] == IA64_OPND_P2)
@@ -8304,8 +8304,8 @@
{
int p1 = CURR_SLOT.opnd[0].X_add_number - REG_P;
int p2 = CURR_SLOT.opnd[1].X_add_number - REG_P;
- int or_andcm = strstr(idesc->name, "or.andcm") != NULL;
- int and_orcm = strstr(idesc->name, "and.orcm") != NULL;
+ int or_andcm = strstr (idesc->name, "or.andcm") != NULL;
+ int and_orcm = strstr (idesc->name, "and.orcm") != NULL;
if (p1 == 63
&& (idesc->operands[0] == IA64_OPND_P1
Index: tc-ia64.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ia64.h,v
retrieving revision 1.12
diff -u -r1.12 tc-ia64.h
--- tc-ia64.h 2001/04/12 07:03:10 1.12
+++ tc-ia64.h 2001/07/22 18:27:18
@@ -99,9 +99,9 @@
#define TC_FORCE_RELOCATION(f) ia64_force_relocation (f)
#define tc_fix_adjustable(f) ia64_fix_adjustable (f)
#define md_convert_frag(b,s,f) as_fatal ("ia64_convert_frag")
-#define md_create_long_jump(p,f,t,fr,s) as_fatal("ia64_create_long_jump")
+#define md_create_long_jump(p,f,t,fr,s) as_fatal ("ia64_create_long_jump")
#define md_create_short_jump(p,f,t,fr,s) \
- as_fatal("ia64_create_short_jump")
+ as_fatal ("ia64_create_short_jump")
#define md_estimate_size_before_relax(f,s) \
(as_fatal ("ia64_estimate_size_before_relax"), 1)
#define md_elf_section_flags ia64_elf_section_flags
Index: tc-m32r.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-m32r.c,v
retrieving revision 1.20
diff -u -r1.20 tc-m32r.c
--- tc-m32r.c 2001/07/06 19:09:23 1.20
+++ tc-m32r.c 2001/07/22 18:27:18
@@ -555,7 +555,7 @@
allow_m32rx (enable_m32rx);
- gas_cgen_initialize_saved_fixups_array();
+ gas_cgen_initialize_saved_fixups_array ();
}
#define OPERAND_IS_COND_BIT(operand, indices, index) \
Index: tc-m68k.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-m68k.c,v
retrieving revision 1.28
diff -u -r1.28 tc-m68k.c
--- tc-m68k.c 2001/07/18 10:25:57 1.28
+++ tc-m68k.c 2001/07/22 18:27:20
@@ -257,9 +257,9 @@
const struct m68k_incant *opcode;
{
int z;
- for(z=the_ins.numo;z>opcode->m_codenum;--z)
+ for (z=the_ins.numo;z>opcode->m_codenum;--z)
the_ins.opcode[z]=the_ins.opcode[z-1];
- for(z=0;z<the_ins.nrel;z++)
+ for (z=0;z<the_ins.nrel;z++)
the_ins.reloc[z].n+=2;
for (z = 0; z < the_ins.nfrag; z++)
the_ins.fragb[z].fragoff++;
@@ -5938,7 +5938,7 @@
*s++ = 'm';
*s++ = 'p';
if (qual != '\0')
- *s++ = tolower(qual);
+ *s++ = tolower (qual);
*s++ = ' ';
memcpy (s, leftstart, leftstop - leftstart);
s += leftstop - leftstart;
@@ -5956,7 +5956,7 @@
*s++ = cc >> 8;
*s++ = cc & 0xff;
if (extent != '\0')
- *s++ = tolower(extent);
+ *s++ = tolower (extent);
*s++ = ' ';
strcpy (s, truelab);
mri_assemble (buf);
@@ -6206,7 +6206,7 @@
mri_control_stack->else_seen = 1;
buf = (char *) xmalloc (20 + strlen (mri_control_stack->bottom));
- q[0] = tolower(qual);
+ q[0] = tolower (qual);
q[1] = '\0';
sprintf (buf, "bra%s %s", q, mri_control_stack->bottom);
mri_assemble (buf);
@@ -6279,7 +6279,7 @@
}
buf = (char *) xmalloc (20 + strlen (n->bottom));
- ex[0] = tolower(extent);
+ ex[0] = tolower (extent);
ex[1] = '\0';
sprintf (buf, "bra%s %s", ex, n->bottom);
mri_assemble (buf);
@@ -6318,7 +6318,7 @@
}
buf = (char *) xmalloc (20 + strlen (n->next));
- ex[0] = tolower(extent);
+ ex[0] = tolower (extent);
ex[1] = '\0';
sprintf (buf, "bra%s %s", ex, n->next);
mri_assemble (buf);
@@ -6502,7 +6502,7 @@
*s++ = 'v';
*s++ = 'e';
if (qual != '\0')
- *s++ = tolower(qual);
+ *s++ = tolower (qual);
*s++ = ' ';
memcpy (s, initstart, initstop - initstart);
s += initstop - initstart;
@@ -6520,7 +6520,7 @@
*s++ = 'm';
*s++ = 'p';
if (qual != '\0')
- *s++ = tolower(qual);
+ *s++ = tolower (qual);
*s++ = ' ';
memcpy (s, endstart, endstop - endstart);
s += endstop - endstart;
@@ -6531,7 +6531,7 @@
mri_assemble (buf);
/* bcc bottom */
- ex[0] = tolower(extent);
+ ex[0] = tolower (extent);
ex[1] = '\0';
if (up)
sprintf (buf, "blt%s %s", ex, n->bottom);
@@ -6547,7 +6547,7 @@
strcpy (s, "sub");
s += 3;
if (qual != '\0')
- *s++ = tolower(qual);
+ *s++ = tolower (qual);
*s++ = ' ';
memcpy (s, bystart, bystop - bystart);
s += bystop - bystart;
Index: tc-m88k.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-m88k.c,v
retrieving revision 1.12
diff -u -r1.12 tc-m88k.c
--- tc-m88k.c 2001/07/05 07:28:06 1.12
+++ tc-m88k.c 2001/07/22 18:27:20
@@ -884,7 +884,7 @@
*valp = val;
- return(param);
+ return (param);
}
#define hexval(z) \
Index: tc-ns32k.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ns32k.c,v
retrieving revision 1.10
diff -u -r1.10 tc-ns32k.c
--- tc-ns32k.c 2001/05/10 11:32:52 1.10
+++ tc-ns32k.c 2001/07/22 18:27:20
@@ -1299,7 +1299,7 @@
case 3:
case 4:
/* The final size in objectmemory is known. */
- memP = frag_more(size);
+ memP = frag_more (size);
j = iif.iifP[i].bit_fixP;
switch (type)
@@ -1449,7 +1449,7 @@
/* Size is unknown until link time so have to
allow 4 bytes. */
size = 4;
- memP = frag_more(size);
+ memP = frag_more (size);
fix_new_ns32k_exp (frag_now,
(long) (memP - frag_now->fr_literal),
size,
@@ -1474,7 +1474,7 @@
{
/* Size is not important. This gets fixed by
relax, but we assume 0 in what follows. */
- memP = frag_more(4); /* Max size. */
+ memP = frag_more (4); /* Max size. */
size = 0;
{
Index: tc-pdp11.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-pdp11.c,v
retrieving revision 1.3
diff -u -r1.3 tc-pdp11.c
--- tc-pdp11.c 2001/03/08 23:24:24 1.3
+++ tc-pdp11.c 2001/07/22 18:27:21
@@ -1157,7 +1157,7 @@
{ NULL, no_argument, NULL, 0 }
};
-size_t md_longopts_size = sizeof(md_longopts);
+size_t md_longopts_size = sizeof (md_longopts);
/*
* md_parse_option
Index: tc-pj.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-pj.h,v
retrieving revision 1.3
diff -u -r1.3 tc-pj.h
--- tc-pj.h 2001/03/08 23:24:24 1.3
+++ tc-pj.h 2001/07/22 18:27:21
@@ -46,7 +46,7 @@
((FIXP)->fx_where + (FIXP)->fx_frag->fr_address - 1)
#define TC_CONS_FIX_NEW(FRAG, WHERE, NBYTES, EXP) \
- pj_cons_fix_new_pj(FRAG, WHERE, NBYTES, EXP)
+ pj_cons_fix_new_pj (FRAG, WHERE, NBYTES, EXP)
/* Always leave vtable relocs untouched in the output. */
#define TC_FORCE_RELOCATION(FIX) \
Index: tc-s390.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-s390.c,v
retrieving revision 1.3
diff -u -r1.3 tc-s390.c
--- tc-s390.c 2001/03/26 19:38:33 1.3
+++ tc-s390.c 2001/07/22 18:27:21
@@ -196,7 +196,7 @@
};
-#define REG_NAME_CNT (sizeof(pre_defined_registers) / sizeof(struct pd_reg))
+#define REG_NAME_CNT (sizeof (pre_defined_registers) / sizeof (struct pd_reg))
/* Given NAME, find the register number associated with that name, return
the integer value associated with the given name or -1 on failure. */
@@ -304,7 +304,7 @@
struct option md_longopts[] = {
{NULL, no_argument, NULL, 0}
};
-size_t md_longopts_size = sizeof(md_longopts);
+size_t md_longopts_size = sizeof (md_longopts);
/* Initialize the default opcode arch and word size from the default
architecture name. */
@@ -314,12 +314,12 @@
if (current_arch_requested)
return;
- if (strcmp(default_arch, "s390") == 0)
+ if (strcmp (default_arch, "s390") == 0)
{
s390_arch_size = 32;
current_architecture = S390_OPCODE_ESA;
}
- else if (strcmp(default_arch, "s390x") == 0)
+ else if (strcmp (default_arch, "s390x") == 0)
{
s390_arch_size = 64;
current_architecture = S390_OPCODE_ESAME;
@@ -484,7 +484,7 @@
/* We use nop pattern 0x0707. */
if (count > 0)
{
- memset(fragP->fr_literal + fragP->fr_fix, 0x07, count);
+ memset (fragP->fr_literal + fragP->fr_fix, 0x07, count);
fragP->fr_var = count;
}
}
@@ -618,13 +618,13 @@
return ELF_SUFFIX_NONE;
ident = str;
- while (isalnum(*str))
+ while (isalnum (*str))
str++;
len = str - ident;
for (ptr = &mapping[0]; ptr->length > 0; ptr++)
if (len == ptr->length &&
- strncasecmp(ident, ptr->string, ptr->length) == 0)
+ strncasecmp (ident, ptr->string, ptr->length) == 0)
{
if (exp_p->X_add_number != 0)
as_warn (_("identifier+constant@%s means identifier@%s+constant"),
@@ -710,7 +710,7 @@
return exp1->X_add_number == exp2->X_add_number;
case O_big:
- as_bad(_("Can't handle O_big in s390_exp_compare"));
+ as_bad (_("Can't handle O_big in s390_exp_compare"));
case O_symbol: /* X_add_symbol & X_add_number must be equal. */
case O_symbol_rva:
@@ -767,10 +767,10 @@
/* We look for a suffix of the form "@lit1", "@lit2", "@lit4" or "@lit8". */
ident = str;
- while (isalnum(*str))
+ while (isalnum (*str))
str++;
len = str - ident;
- if (len != 4 || strncasecmp(ident, "lit", 3) != 0 ||
+ if (len != 4 || strncasecmp (ident, "lit", 3) != 0 ||
(ident[3]!='1' && ident[3]!='2' && ident[3]!='4' && ident[3]!='8'))
return suffix; /* no modification */
nbytes = ident[3] - '0';
@@ -838,7 +838,7 @@
}
else
{
- lpe = (struct s390_lpe *) xmalloc(sizeof(struct s390_lpe));
+ lpe = (struct s390_lpe *) xmalloc(sizeof (struct s390_lpe));
}
lpe->ex = *exp_p;
@@ -849,7 +849,7 @@
lpe->floatnum = generic_floating_point_number;
else if (exp_p->X_add_number <= 4)
memcpy (lpe->bignum, generic_bignum,
- exp_p->X_add_number*sizeof(LITTLENUM_TYPE));
+ exp_p->X_add_number*sizeof (LITTLENUM_TYPE));
else
as_bad (_("Big number is too big"));
}
@@ -859,12 +859,12 @@
/* Literal pool name defined ? */
if (lp_sym == NULL)
{
- sprintf(tmp_name, ".L\001%i", lp_count);
+ sprintf (tmp_name, ".L\001%i", lp_count);
lp_sym = symbol_make(tmp_name);
}
/* Make name for literal pool entry. */
- sprintf(tmp_name, ".L\001%i\002%i", lp_count, lpe_count);
+ sprintf (tmp_name, ".L\001%i\002%i", lp_count, lpe_count);
lpe_count++;
lpe->sym = symbol_make(tmp_name);
@@ -941,7 +941,7 @@
if (size > nbytes)
as_bad (_("%s relocations do not fit in %d bytes"),
reloc_howto->name, nbytes);
- where = frag_more(nbytes);
+ where = frag_more (nbytes);
md_number_to_chars (where, 0, size);
fix_new_exp (frag_now, where - frag_now->fr_literal,
size, &exp, reloc_howto->pc_relative, reloc);
@@ -1046,9 +1046,9 @@
else
{
if ((operand->flags & S390_OPERAND_INDEX) && ex.X_add_number == 0)
- as_warn("index register specified but zero");
+ as_warn ("index register specified but zero");
if ((operand->flags & S390_OPERAND_BASE) && ex.X_add_number == 0)
- as_warn("base register specified but zero");
+ as_warn ("base register specified but zero");
s390_insert_operand (insn, operand, ex.X_add_number, NULL, 0);
}
}
@@ -1119,7 +1119,7 @@
if (opindex_ptr[1] != '\0')
{
if (*str++ != ',')
- as_bad(_("syntax error; expected ,"));
+ as_bad (_("syntax error; expected ,"));
}
}
else
@@ -1171,7 +1171,7 @@
if (opindex_ptr[1] != '\0')
{
if (*str++ != ',')
- as_bad(_("syntax error; expected ,"));
+ as_bad (_("syntax error; expected ,"));
}
}
}
@@ -1183,7 +1183,7 @@
{
char *linefeed;
- if ((linefeed = strchr(str, '\n')) != NULL)
+ if ((linefeed = strchr (str, '\n')) != NULL)
*linefeed = '\0';
as_bad (_("junk at end of line: `%s'"), str);
if (linefeed != NULL)
@@ -1264,11 +1264,11 @@
}
else if (!(opcode->architecture & current_arch_mask))
{
- as_bad("Opcode %s not available in this architecture", str);
+ as_bad ("Opcode %s not available in this architecture", str);
return;
}
- memcpy (insn, opcode->opcode, sizeof(insn));
+ memcpy (insn, opcode->opcode, sizeof (insn));
md_gather_operands (s, insn, opcode);
}
@@ -1309,7 +1309,7 @@
/* Pseudo-op handling. */
void
-s390_insn(ignore)
+s390_insn (ignore)
int ignore ATTRIBUTE_UNUSED;
{
expressionS exp;
@@ -1341,7 +1341,7 @@
(opformat->oplen == 2 && exp.X_op < 0x10000))
md_number_to_chars (insn, exp.X_add_number, opformat->oplen);
else
- as_bad(_("Invalid .insn format\n"));
+ as_bad (_("Invalid .insn format\n"));
}
else if (exp.X_op == O_big)
{
@@ -1354,14 +1354,14 @@
md_number_to_chars (&insn[4], generic_bignum[0], 2);
}
else
- as_bad(_("Invalid .insn format\n"));
+ as_bad (_("Invalid .insn format\n"));
}
else
as_bad (_("second operand of .insn not a constant\n"));
if (*input_line_pointer++ != ',')
as_bad (_("missing comma after insn constant\n"));
- if ((s = strchr(input_line_pointer, '\n')) != NULL)
+ if ((s = strchr (input_line_pointer, '\n')) != NULL)
*s = '\0';
input_line_pointer = md_gather_operands (input_line_pointer, insn, opformat);
if (s != NULL)
@@ -1441,7 +1441,7 @@
if (size > lpe->nbytes)
as_bad (_("%s relocations do not fit in %d bytes"),
reloc_howto->name, lpe->nbytes);
- where = frag_more(lpe->nbytes);
+ where = frag_more (lpe->nbytes);
md_number_to_chars (where, 0, size);
fix_new_exp (frag_now, where - frag_now->fr_literal,
size, &lpe->ex, reloc_howto->pc_relative, lpe->reloc);
@@ -1454,7 +1454,7 @@
generic_floating_point_number = lpe->floatnum;
else
memcpy (generic_bignum, lpe->bignum,
- lpe->ex.X_add_number*sizeof(LITTLENUM_TYPE));
+ lpe->ex.X_add_number*sizeof (LITTLENUM_TYPE));
}
emit_expr (&lpe->ex, lpe->nbytes);
}
@@ -1553,12 +1553,12 @@
char *name;
{
if (*name == '_' && *(name+1) == 'G'
- && strcmp(name, "_GLOBAL_OFFSET_TABLE_") == 0)
+ && strcmp (name, "_GLOBAL_OFFSET_TABLE_") == 0)
{
- if(!GOT_symbol)
+ if (!GOT_symbol)
{
- if(symbol_find(name))
- as_bad(_("GOT already in symbol table"));
+ if (symbol_find (name))
+ as_bad (_("GOT already in symbol table"));
GOT_symbol = symbol_new (name, undefined_section,
(valueT) 0, &zero_address_frag);
}
@@ -1809,7 +1809,7 @@
case BFD_RELOC_32_GOTOFF:
if (fixp->fx_done)
- md_number_to_chars (where, value, sizeof(int));
+ md_number_to_chars (where, value, sizeof (int));
break;
case BFD_RELOC_390_GOT64:
Index: tc-sparc.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-sparc.c,v
retrieving revision 1.30
diff -u -r1.30 tc-sparc.c
--- tc-sparc.c 2001/05/28 09:23:53 1.30
+++ tc-sparc.c 2001/07/22 18:27:22
@@ -632,12 +632,12 @@
continue;
if (arch != &sparc_arch_table[0])
fprintf (stream, " | ");
- if (column + strlen(arch->name) > 70)
+ if (column + strlen (arch->name) > 70)
{
column = 0;
fputc ('\n', stream);
}
- column += 5 + 2 + strlen(arch->name);
+ column += 5 + 2 + strlen (arch->name);
fprintf (stream, "-A%s", arch->name);
}
for (arch = &sparc_arch_table[0]; arch->name; arch++)
@@ -645,12 +645,12 @@
if (!arch->user_option_p)
continue;
fprintf (stream, " | ");
- if (column + strlen(arch->name) > 65)
+ if (column + strlen (arch->name) > 65)
{
column = 0;
fputc ('\n', stream);
}
- column += 5 + 7 + strlen(arch->name);
+ column += 5 + 7 + strlen (arch->name);
fprintf (stream, "-xarch=%s", arch->name);
}
fprintf (stream, _("\n\
Index: tc-sparc.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-sparc.h,v
retrieving revision 1.12
diff -u -r1.12 tc-sparc.h
--- tc-sparc.h 2001/03/08 23:24:25 1.12
+++ tc-sparc.h 2001/07/22 18:27:22
@@ -54,7 +54,7 @@
#define md_convert_frag(b,s,f) \
as_fatal (_("sparc convert_frag\n"))
#define md_estimate_size_before_relax(f,s) \
- (as_fatal(_("estimate_size_before_relax called")), 1)
+ (as_fatal (_("estimate_size_before_relax called")), 1)
#define LISTING_HEADER "SPARC GAS "
Index: tc-tic80.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-tic80.c,v
retrieving revision 1.5
diff -u -r1.5 tc-tic80.c
--- tc-tic80.c 2001/03/08 23:24:25 1.5
+++ tc-tic80.c 2001/07/22 18:27:22
@@ -22,10 +22,10 @@
#include "opcode/tic80.h"
#define internal_error(what) \
- as_fatal(_("internal error:%s:%d: %s\n"), __FILE__, __LINE__, what)
+ as_fatal (_("internal error:%s:%d: %s\n"), __FILE__, __LINE__, what)
#define internal_error_a(what,arg) \
- as_fatal(_("internal error:%s:%d: %s %d\n"), __FILE__, __LINE__, what, arg)
+ as_fatal (_("internal error:%s:%d: %s %d\n"), __FILE__, __LINE__, what, arg)
/* Generic assembler global variables which must be defined by all
targets. */
Index: tc-w65.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-w65.h,v
retrieving revision 1.3
diff -u -r1.3 tc-w65.h
--- tc-w65.h 2001/03/08 23:24:25 1.3
+++ tc-w65.h 2001/07/22 18:27:22
@@ -29,14 +29,14 @@
#define WORKING_DOT_WORD
/* This macro translates between an internal fix and an coff reloc type */
-#define TC_COFF_FIX2RTYPE(fixP) tc_coff_fix2rtype(fixP)
+#define TC_COFF_FIX2RTYPE(fixP) tc_coff_fix2rtype (fixP)
#define BFD_ARCH bfd_arch_w65
#define COFF_MAGIC 0x6500
#define IGNORE_NONSTANDARD_ESCAPES
-#define TC_RELOC_MANGLE(s,a,b,c) tc_reloc_mangle(a,b,c)
+#define TC_RELOC_MANGLE(s,a,b,c) tc_reloc_mangle (a,b,c)
extern void tc_reloc_mangle
PARAMS ((struct fix *, struct internal_reloc *, bfd_vma));
@@ -45,7 +45,7 @@
#define NEED_FX_R_TYPE 1
#define RELOC_32 1234
-#define TC_COFF_SIZEMACHDEP(frag) tc_coff_sizemachdep(frag)
+#define TC_COFF_SIZEMACHDEP(frag) tc_coff_sizemachdep (frag)
#define TC_PARSE_CONS_EXPRESSION(EXP, NBYTES) w65_expression (EXP, NBYTES)
#define TC_COUNT_RELOC(x) (1)
#define TC_CONS_RELOC tc_cons_reloc