From: kazu Date: Sun, 17 Nov 2002 14:47:07 +0000 (+0000) Subject: * builtins.c: Fix formatting. X-Git-Tag: upstream/4.9.2~83392 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f0ce3b1f0dc0a5c2410a796ee3112bff325f9ded;p=platform%2Fupstream%2Flinaro-gcc.git * builtins.c: Fix formatting. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59194 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 08725ea..bc2c88b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2002-11-17 Kazu Hirata + + * builtins.c: Fix formatting. + 2002-11-16 Kazu Hirata * config/h8300/h8300.md (two anonymous patterns): Fix typos. diff --git a/gcc/builtins.c b/gcc/builtins.c index 25fadab..7eea036 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -790,10 +790,10 @@ expand_builtin_prefetch (arglist) #ifdef HAVE_prefetch if (HAVE_prefetch) { - if ((! (*insn_data[(int)CODE_FOR_prefetch].operand[0].predicate) + if ((! (*insn_data[(int) CODE_FOR_prefetch].operand[0].predicate) (op0, - insn_data[(int)CODE_FOR_prefetch].operand[0].mode)) || - (GET_MODE(op0) != Pmode)) + insn_data[(int) CODE_FOR_prefetch].operand[0].mode)) + || (GET_MODE(op0) != Pmode)) { #ifdef POINTERS_EXTEND_UNSIGNED if (GET_MODE(op0) != Pmode) @@ -806,10 +806,10 @@ expand_builtin_prefetch (arglist) else #endif op0 = protect_from_queue (op0, 0); - /* Don't do anything with direct references to volatile memory, but - generate code to handle other side effects. */ - if (GET_CODE (op0) != MEM && side_effects_p (op0)) - emit_insn (op0); + /* Don't do anything with direct references to volatile memory, but + generate code to handle other side effects. */ + if (GET_CODE (op0) != MEM && side_effects_p (op0)) + emit_insn (op0); } /* Get a MEM rtx for expression EXP which is the address of an operand @@ -833,7 +833,7 @@ get_memory_rtx (exp) If it is an ADDR_EXPR, use the operand. Otherwise, dereference it if we can. First remove any nops. */ while ((TREE_CODE (exp) == NOP_EXPR || TREE_CODE (exp) == CONVERT_EXPR - || TREE_CODE (exp) == NON_LVALUE_EXPR) + || TREE_CODE (exp) == NON_LVALUE_EXPR) && POINTER_TYPE_P (TREE_TYPE (TREE_OPERAND (exp, 0)))) exp = TREE_OPERAND (exp, 0); @@ -887,7 +887,7 @@ apply_args_register_offset (regno) /* Arguments are always put in outgoing registers (in the argument block) if such make sense. */ #ifdef OUTGOING_REGNO - regno = OUTGOING_REGNO(regno); + regno = OUTGOING_REGNO (regno); #endif return apply_args_reg_offset[regno]; } @@ -1014,7 +1014,7 @@ apply_result_size () mode = GET_MODE_WIDER_MODE (mode)) if (HARD_REGNO_MODE_OK (regno, mode) && have_insn_for (SET, mode)) - best_mode = mode; + best_mode = mode; if (best_mode == VOIDmode) for (mode = GET_CLASS_NARROWEST_MODE (MODE_VECTOR_INT); @@ -1262,7 +1262,7 @@ expand_builtin_apply (function, arguments, argsize) emit_move_insn (value, adjust_address (arguments, Pmode, size)); emit_move_insn (struct_value_rtx, value); if (GET_CODE (struct_value_rtx) == REG) - use_reg (&call_fusage, struct_value_rtx); + use_reg (&call_fusage, struct_value_rtx); size += GET_MODE_SIZE (Pmode); } @@ -1652,7 +1652,7 @@ expand_builtin_strlen (exp, target) /* Mark the beginning of the strlen sequence so we can emit the source operand later. */ - before_strlen = get_last_insn(); + before_strlen = get_last_insn (); char_rtx = const0_rtx; char_mode = insn_data[(int) icode].operand[2].mode; @@ -2179,14 +2179,14 @@ builtin_memset_gen_str (data, offset, mode) char *p; size = GET_MODE_SIZE (mode); - if (size==1) - return (rtx)data; + if (size == 1) + return (rtx) data; p = alloca (size); memset (p, 1, size); coeff = c_readstr (p, mode); - target = convert_to_mode (mode, (rtx)data, 1); + target = convert_to_mode (mode, (rtx) data, 1); target = expand_mult (mode, target, coeff, NULL_RTX, 1); return force_reg (mode, target); } @@ -2257,7 +2257,7 @@ expand_builtin_memset (exp, target, mode) dest_mem = get_memory_rtx (dest); store_by_pieces (dest_mem, tree_low_cst (len, 1), builtin_memset_gen_str, - (PTR)val_rtx, dest_align); + (PTR) val_rtx, dest_align); dest_mem = force_operand (XEXP (dest_mem, 0), NULL_RTX); #ifdef POINTERS_EXTEND_UNSIGNED if (GET_MODE (dest_mem) != ptr_mode) @@ -3241,7 +3241,7 @@ expand_builtin_va_end (arglist) #ifdef EXPAND_BUILTIN_VA_END valist = stabilize_va_list (valist, 0); - EXPAND_BUILTIN_VA_END(arglist); + EXPAND_BUILTIN_VA_END (arglist); #else /* Evaluate for side effects, if needed. I hate macros that don't do that. */ @@ -4257,29 +4257,32 @@ validate_arglist VPARAMS ((tree arglist, ...)) VA_OPEN (ap, arglist); VA_FIXEDARG (ap, tree, arglist); - do { - code = va_arg (ap, enum tree_code); - switch (code) + do { - case 0: - /* This signifies an ellipses, any further arguments are all ok. */ - res = 1; - goto end; - case VOID_TYPE: - /* This signifies an endlink, if no arguments remain, return - true, otherwise return false. */ - res = arglist == 0; - goto end; - default: - /* If no parameters remain or the parameter's code does not - match the specified code, return false. Otherwise continue - checking any remaining arguments. */ - if (arglist == 0 || code != TREE_CODE (TREE_TYPE (TREE_VALUE (arglist)))) - goto end; - break; + code = va_arg (ap, enum tree_code); + switch (code) + { + case 0: + /* This signifies an ellipses, any further arguments are all ok. */ + res = 1; + goto end; + case VOID_TYPE: + /* This signifies an endlink, if no arguments remain, return + true, otherwise return false. */ + res = arglist == 0; + goto end; + default: + /* If no parameters remain or the parameter's code does not + match the specified code, return false. Otherwise continue + checking any remaining arguments. */ + if (arglist == 0 + || code != TREE_CODE (TREE_TYPE (TREE_VALUE (arglist)))) + goto end; + break; + } + arglist = TREE_CHAIN (arglist); } - arglist = TREE_CHAIN (arglist); - } while (1); + while (1); /* We need gotos here since we can only have one VA_CLOSE in a function. */