reformat a little to match GNU coding standards.
From-SVN: r14023
This commit is contained in:
parent
c718078fad
commit
e3da301da3
|
@ -536,8 +536,8 @@ deduce_conversion (from, to)
|
||||||
|
|
||||||
obstack_init (&recipe_obstack);
|
obstack_init (&recipe_obstack);
|
||||||
curr.next = (struct rl *) obstack_alloc (&recipe_obstack, sizeof (struct rl));
|
curr.next = (struct rl *) obstack_alloc (&recipe_obstack, sizeof (struct rl));
|
||||||
curr.next->list =
|
curr.next->list
|
||||||
(struct conversion_list *) obstack_alloc (&recipe_obstack,
|
= (struct conversion_list *) obstack_alloc (&recipe_obstack,
|
||||||
sizeof (struct conversion_list));
|
sizeof (struct conversion_list));
|
||||||
curr.next->list->opcode = -1;
|
curr.next->list->opcode = -1;
|
||||||
curr.next->list->to = from;
|
curr.next->list->to = from;
|
||||||
|
@ -638,9 +638,9 @@ bc_init_mode_to_code_map ()
|
||||||
|
|
||||||
for (mode = 0; mode < MAX_MACHINE_MODE + 1; mode++)
|
for (mode = 0; mode < MAX_MACHINE_MODE + 1; mode++)
|
||||||
{
|
{
|
||||||
signed_mode_to_code_map[mode] =
|
signed_mode_to_code_map[mode]
|
||||||
unsigned_mode_to_code_map[mode] =
|
= unsigned_mode_to_code_map[mode]
|
||||||
LAST_AND_UNUSED_TYPECODE;
|
= LAST_AND_UNUSED_TYPECODE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define DEF_MODEMAP(SYM, CODE, UCODE, CONST, LOAD, STORE) \
|
#define DEF_MODEMAP(SYM, CODE, UCODE, CONST, LOAD, STORE) \
|
||||||
|
|
|
@ -178,10 +178,10 @@ gen_formal_list_for_type (fntype, style)
|
||||||
formal_list = concat (formal_list, ", ");
|
formal_list = concat (formal_list, ", ");
|
||||||
|
|
||||||
this_type = gen_type ("", TREE_VALUE (formal_type), ansi);
|
this_type = gen_type ("", TREE_VALUE (formal_type), ansi);
|
||||||
formal_list =
|
formal_list
|
||||||
(strlen (this_type))
|
= ((strlen (this_type))
|
||||||
? concat (formal_list, affix_data_type (this_type))
|
? concat (formal_list, affix_data_type (this_type))
|
||||||
: concat (formal_list, data_type);
|
: concat (formal_list, data_type));
|
||||||
|
|
||||||
formal_type = TREE_CHAIN (formal_type);
|
formal_type = TREE_CHAIN (formal_type);
|
||||||
}
|
}
|
||||||
|
|
12
gcc/calls.c
12
gcc/calls.c
|
@ -452,8 +452,8 @@ emit_call_1 (funexp, fndecl, funtype, stack_size, struct_value_size,
|
||||||
if (stack_size != 0 && RETURN_POPS_ARGS (fndecl, funtype, stack_size) > 0)
|
if (stack_size != 0 && RETURN_POPS_ARGS (fndecl, funtype, stack_size) > 0)
|
||||||
{
|
{
|
||||||
if (!already_popped)
|
if (!already_popped)
|
||||||
CALL_INSN_FUNCTION_USAGE (call_insn) =
|
CALL_INSN_FUNCTION_USAGE (call_insn)
|
||||||
gen_rtx (EXPR_LIST, VOIDmode,
|
= gen_rtx (EXPR_LIST, VOIDmode,
|
||||||
gen_rtx (CLOBBER, VOIDmode, stack_pointer_rtx),
|
gen_rtx (CLOBBER, VOIDmode, stack_pointer_rtx),
|
||||||
CALL_INSN_FUNCTION_USAGE (call_insn));
|
CALL_INSN_FUNCTION_USAGE (call_insn));
|
||||||
stack_size -= RETURN_POPS_ARGS (fndecl, funtype, stack_size);
|
stack_size -= RETURN_POPS_ARGS (fndecl, funtype, stack_size);
|
||||||
|
@ -812,16 +812,16 @@ expand_call (exp, target, ignore)
|
||||||
/* Unless it's a call to a specific function that isn't alloca,
|
/* Unless it's a call to a specific function that isn't alloca,
|
||||||
if it has one argument, we must assume it might be alloca. */
|
if it has one argument, we must assume it might be alloca. */
|
||||||
|
|
||||||
may_be_alloca =
|
may_be_alloca
|
||||||
(!(fndecl != 0 && strcmp (name, "alloca"))
|
= (!(fndecl != 0 && strcmp (name, "alloca"))
|
||||||
&& actparms != 0
|
&& actparms != 0
|
||||||
&& TREE_CHAIN (actparms) == 0);
|
&& TREE_CHAIN (actparms) == 0);
|
||||||
#else
|
#else
|
||||||
/* We assume that alloca will always be called by name. It
|
/* We assume that alloca will always be called by name. It
|
||||||
makes no sense to pass it as a pointer-to-function to
|
makes no sense to pass it as a pointer-to-function to
|
||||||
anything that does not understand its behavior. */
|
anything that does not understand its behavior. */
|
||||||
may_be_alloca =
|
may_be_alloca
|
||||||
(name && ((IDENTIFIER_LENGTH (DECL_NAME (fndecl)) == 6
|
= (name && ((IDENTIFIER_LENGTH (DECL_NAME (fndecl)) == 6
|
||||||
&& name[0] == 'a'
|
&& name[0] == 'a'
|
||||||
&& ! strcmp (name, "alloca"))
|
&& ! strcmp (name, "alloca"))
|
||||||
|| (IDENTIFIER_LENGTH (DECL_NAME (fndecl)) == 16
|
|| (IDENTIFIER_LENGTH (DECL_NAME (fndecl)) == 16
|
||||||
|
|
23
gcc/cccp.c
23
gcc/cccp.c
|
@ -1489,8 +1489,8 @@ main (argc, argv)
|
||||||
if (i + 1 == argc)
|
if (i + 1 == argc)
|
||||||
fatal ("Filename missing after -pcp option");
|
fatal ("Filename missing after -pcp option");
|
||||||
pcp_fname = argv[++i];
|
pcp_fname = argv[++i];
|
||||||
pcp_outfile =
|
pcp_outfile
|
||||||
((pcp_fname[0] != '-' || pcp_fname[1] != '\0')
|
= ((pcp_fname[0] != '-' || pcp_fname[1] != '\0')
|
||||||
? fopen (pcp_fname, "w")
|
? fopen (pcp_fname, "w")
|
||||||
: stdout);
|
: stdout);
|
||||||
if (pcp_outfile == 0)
|
if (pcp_outfile == 0)
|
||||||
|
@ -5546,8 +5546,8 @@ create_definition (buf, limit, op)
|
||||||
while (is_idchar[*bp]) {
|
while (is_idchar[*bp]) {
|
||||||
bp++;
|
bp++;
|
||||||
/* do we have a "special" rest-args extension here? */
|
/* do we have a "special" rest-args extension here? */
|
||||||
if (limit - bp > REST_EXTENSION_LENGTH &&
|
if (limit - bp > REST_EXTENSION_LENGTH
|
||||||
bcmp (rest_extension, bp, REST_EXTENSION_LENGTH) == 0) {
|
&& bcmp (rest_extension, bp, REST_EXTENSION_LENGTH) == 0) {
|
||||||
rest_args = 1;
|
rest_args = 1;
|
||||||
temp->rest_args = 1;
|
temp->rest_args = 1;
|
||||||
break;
|
break;
|
||||||
|
@ -5579,8 +5579,8 @@ create_definition (buf, limit, op)
|
||||||
struct arglist *otemp;
|
struct arglist *otemp;
|
||||||
|
|
||||||
for (otemp = temp->next; otemp != NULL; otemp = otemp->next)
|
for (otemp = temp->next; otemp != NULL; otemp = otemp->next)
|
||||||
if (temp->length == otemp->length &&
|
if (temp->length == otemp->length
|
||||||
bcmp (temp->name, otemp->name, temp->length) == 0) {
|
&& bcmp (temp->name, otemp->name, temp->length) == 0) {
|
||||||
error ("duplicate argument name `%.*s' in `#define'",
|
error ("duplicate argument name `%.*s' in `#define'",
|
||||||
temp->length, temp->name);
|
temp->length, temp->name);
|
||||||
goto nope;
|
goto nope;
|
||||||
|
@ -6657,8 +6657,7 @@ do_line (buf, limit, op, keyword)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
hash_bucket =
|
hash_bucket = &fname_table[hashf (fname, fname_length, FNAME_HASHSIZE)];
|
||||||
&fname_table[hashf (fname, fname_length, FNAME_HASHSIZE)];
|
|
||||||
for (hp = *hash_bucket; hp != NULL; hp = hp->next)
|
for (hp = *hash_bucket; hp != NULL; hp = hp->next)
|
||||||
if (hp->length == fname_length &&
|
if (hp->length == fname_length &&
|
||||||
bcmp (hp->value.cpval, fname, fname_length) == 0) {
|
bcmp (hp->value.cpval, fname, fname_length) == 0) {
|
||||||
|
@ -6947,8 +6946,8 @@ do_elif (buf, limit, op, keyword)
|
||||||
if (if_stack->type != T_IF && if_stack->type != T_ELIF) {
|
if (if_stack->type != T_IF && if_stack->type != T_ELIF) {
|
||||||
error ("`#elif' after `#else'");
|
error ("`#elif' after `#else'");
|
||||||
fprintf (stderr, " (matches line %d", if_stack->lineno);
|
fprintf (stderr, " (matches line %d", if_stack->lineno);
|
||||||
if (if_stack->fname != NULL && ip->fname != NULL &&
|
if (if_stack->fname != NULL && ip->fname != NULL
|
||||||
strcmp (if_stack->fname, ip->nominal_fname) != 0)
|
&& strcmp (if_stack->fname, ip->nominal_fname) != 0)
|
||||||
fprintf (stderr, ", file %s", if_stack->fname);
|
fprintf (stderr, ", file %s", if_stack->fname);
|
||||||
fprintf (stderr, ")\n");
|
fprintf (stderr, ")\n");
|
||||||
}
|
}
|
||||||
|
@ -7066,8 +7065,8 @@ do_xifdef (buf, limit, op, keyword)
|
||||||
|
|
||||||
if (pcp_outfile) {
|
if (pcp_outfile) {
|
||||||
/* Output a precondition for this macro. */
|
/* Output a precondition for this macro. */
|
||||||
if (hp &&
|
if (hp
|
||||||
(hp->type == T_CONST
|
&& (hp->type == T_CONST
|
||||||
|| (hp->type == T_MACRO && hp->value.defn->predefined)))
|
|| (hp->type == T_MACRO && hp->value.defn->predefined)))
|
||||||
fprintf (pcp_outfile, "#define %s\n", hp->name);
|
fprintf (pcp_outfile, "#define %s\n", hp->name);
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -7358,8 +7358,8 @@ nonzero_bits (x, mode)
|
||||||
if (GET_MODE (XEXP (x, 0)) != VOIDmode)
|
if (GET_MODE (XEXP (x, 0)) != VOIDmode)
|
||||||
{
|
{
|
||||||
inner_nz &= GET_MODE_MASK (GET_MODE (XEXP (x, 0)));
|
inner_nz &= GET_MODE_MASK (GET_MODE (XEXP (x, 0)));
|
||||||
if (inner_nz &
|
if (inner_nz
|
||||||
(((HOST_WIDE_INT) 1
|
& (((HOST_WIDE_INT) 1
|
||||||
<< (GET_MODE_BITSIZE (GET_MODE (XEXP (x, 0))) - 1))))
|
<< (GET_MODE_BITSIZE (GET_MODE (XEXP (x, 0))) - 1))))
|
||||||
inner_nz |= (GET_MODE_MASK (mode)
|
inner_nz |= (GET_MODE_MASK (mode)
|
||||||
& ~ GET_MODE_MASK (GET_MODE (XEXP (x, 0))));
|
& ~ GET_MODE_MASK (GET_MODE (XEXP (x, 0))));
|
||||||
|
|
|
@ -1362,8 +1362,8 @@ demangle_prefix (work, mangled, declp)
|
||||||
success = 0;
|
success = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ((scan == *mangled) &&
|
else if ((scan == *mangled)
|
||||||
(isdigit (scan[2]) || (scan[2] == 'Q') || (scan[2] == 't')))
|
&& (isdigit (scan[2]) || (scan[2] == 'Q') || (scan[2] == 't')))
|
||||||
{
|
{
|
||||||
/* The ARM says nothing about the mangling of local variables.
|
/* The ARM says nothing about the mangling of local variables.
|
||||||
But cfront mangles local variables by prepending __<nesting_level>
|
But cfront mangles local variables by prepending __<nesting_level>
|
||||||
|
@ -2349,14 +2349,14 @@ remember_type (work, start, len)
|
||||||
if (work -> typevec_size == 0)
|
if (work -> typevec_size == 0)
|
||||||
{
|
{
|
||||||
work -> typevec_size = 3;
|
work -> typevec_size = 3;
|
||||||
work -> typevec =
|
work -> typevec
|
||||||
(char **) xmalloc (sizeof (char *) * work -> typevec_size);
|
= (char **) xmalloc (sizeof (char *) * work -> typevec_size);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
work -> typevec_size *= 2;
|
work -> typevec_size *= 2;
|
||||||
work -> typevec =
|
work -> typevec
|
||||||
(char **) xrealloc ((char *)work -> typevec,
|
= (char **) xrealloc ((char *)work -> typevec,
|
||||||
sizeof (char *) * work -> typevec_size);
|
sizeof (char *) * work -> typevec_size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
18
gcc/cpplib.c
18
gcc/cpplib.c
|
@ -1542,8 +1542,8 @@ create_definition (buf, limit, pfile, predefinition)
|
||||||
while (is_idchar[*bp]) {
|
while (is_idchar[*bp]) {
|
||||||
bp++;
|
bp++;
|
||||||
/* do we have a "special" rest-args extension here? */
|
/* do we have a "special" rest-args extension here? */
|
||||||
if (limit - bp > REST_EXTENSION_LENGTH &&
|
if (limit - bp > REST_EXTENSION_LENGTH
|
||||||
strncmp (rest_extension, bp, REST_EXTENSION_LENGTH) == 0) {
|
&& strncmp (rest_extension, bp, REST_EXTENSION_LENGTH) == 0) {
|
||||||
rest_args = 1;
|
rest_args = 1;
|
||||||
temp->rest_args = 1;
|
temp->rest_args = 1;
|
||||||
break;
|
break;
|
||||||
|
@ -1570,8 +1570,8 @@ create_definition (buf, limit, pfile, predefinition)
|
||||||
struct arglist *otemp;
|
struct arglist *otemp;
|
||||||
|
|
||||||
for (otemp = temp->next; otemp != NULL; otemp = otemp->next)
|
for (otemp = temp->next; otemp != NULL; otemp = otemp->next)
|
||||||
if (temp->length == otemp->length &&
|
if (temp->length == otemp->length
|
||||||
strncmp (temp->name, otemp->name, temp->length) == 0) {
|
&& strncmp (temp->name, otemp->name, temp->length) == 0) {
|
||||||
U_CHAR *name;
|
U_CHAR *name;
|
||||||
|
|
||||||
name = (U_CHAR *) alloca (temp->length + 1);
|
name = (U_CHAR *) alloca (temp->length + 1);
|
||||||
|
@ -3798,11 +3798,10 @@ do_line (pfile, keyword)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
hash_bucket =
|
hash_bucket = &fname_table[hashf (fname, fname_length, FNAME_HASHSIZE)];
|
||||||
&fname_table[hashf (fname, fname_length, FNAME_HASHSIZE)];
|
|
||||||
for (hp = *hash_bucket; hp != NULL; hp = hp->next)
|
for (hp = *hash_bucket; hp != NULL; hp = hp->next)
|
||||||
if (hp->length == fname_length &&
|
if (hp->length == fname_length
|
||||||
strncmp (hp->value.cpval, fname, fname_length) == 0) {
|
&& strncmp (hp->value.cpval, fname, fname_length) == 0) {
|
||||||
ip->nominal_fname = hp->value.cpval;
|
ip->nominal_fname = hp->value.cpval;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -6430,8 +6429,7 @@ cpp_handle_options (pfile, argc, argv)
|
||||||
#if 0
|
#if 0
|
||||||
else if (!strcmp (argv[i], "-pcp")) {
|
else if (!strcmp (argv[i], "-pcp")) {
|
||||||
char *pcp_fname = argv[++i];
|
char *pcp_fname = argv[++i];
|
||||||
pcp_outfile =
|
pcp_outfile = ((pcp_fname[0] != '-' || pcp_fname[1] != '\0')
|
||||||
((pcp_fname[0] != '-' || pcp_fname[1] != '\0')
|
|
||||||
? fopen (pcp_fname, "w")
|
? fopen (pcp_fname, "w")
|
||||||
: fdopen (dup (fileno (stdout)), "w"));
|
: fdopen (dup (fileno (stdout)), "w"));
|
||||||
if (pcp_outfile == 0)
|
if (pcp_outfile == 0)
|
||||||
|
|
12
gcc/dbxout.c
12
gcc/dbxout.c
|
@ -1013,8 +1013,8 @@ dbxout_type (type, full, show_arg_types)
|
||||||
|
|
||||||
if (next_type_number == typevec_len)
|
if (next_type_number == typevec_len)
|
||||||
{
|
{
|
||||||
typevec =
|
typevec
|
||||||
(struct typeinfo *) xrealloc (typevec,
|
= (struct typeinfo *) xrealloc (typevec,
|
||||||
typevec_len * 2 * sizeof typevec[0]);
|
typevec_len * 2 * sizeof typevec[0]);
|
||||||
bzero ((char *) (typevec + typevec_len),
|
bzero ((char *) (typevec + typevec_len),
|
||||||
typevec_len * sizeof typevec[0]);
|
typevec_len * sizeof typevec[0]);
|
||||||
|
@ -1022,10 +1022,10 @@ dbxout_type (type, full, show_arg_types)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DBX_USE_BINCL
|
#ifdef DBX_USE_BINCL
|
||||||
typevec[TYPE_SYMTAB_ADDRESS (type)].file_number =
|
typevec[TYPE_SYMTAB_ADDRESS (type)].file_number
|
||||||
current_file->file_number;
|
= current_file->file_number;
|
||||||
typevec[TYPE_SYMTAB_ADDRESS (type)].type_number =
|
typevec[TYPE_SYMTAB_ADDRESS (type)].type_number
|
||||||
current_file->next_type_number++;
|
= current_file->next_type_number++;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue