Commit a01da83b by Kazu Hirata Committed by Kazu Hirata

toplev.c: Fix formatting.

	* toplev.c: Fix formatting.
	* tree.c: Likewise.
	* tree-dump.c: Likewise.
	* unroll.c: Likewise.
	* unwind-dw2.c: Likewise.
	* unwind-dw2-fde.c: Likewise.
	* unwind-dw2-fde-glibc.c: Likewise.
	* unwind-sjlj.c: Likewise.

From-SVN: r48749
parent 9f85bca7
2002-01-10 Kazu Hirata <kazu@hxi.com>
* toplev.c: Fix formatting.
* tree.c: Likewise.
* tree-dump.c: Likewise.
* unroll.c: Likewise.
* unwind-dw2.c: Likewise.
* unwind-dw2-fde.c: Likewise.
* unwind-dw2-fde-glibc.c: Likewise.
* unwind-sjlj.c: Likewise.
2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk> 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
* doc/invoke.texi: Document PDP-11 options. * doc/invoke.texi: Document PDP-11 options.
......
...@@ -1701,8 +1701,8 @@ set_float_handler (handler) ...@@ -1701,8 +1701,8 @@ set_float_handler (handler)
int int
do_float_handler (fn, data) do_float_handler (fn, data)
void (*fn) PARAMS ((PTR)); void (*fn) PARAMS ((PTR));
PTR data; PTR data;
{ {
jmp_buf buf; jmp_buf buf;
...@@ -2861,7 +2861,7 @@ rest_of_compilation (decl) ...@@ -2861,7 +2861,7 @@ rest_of_compilation (decl)
ggc_collect (); ggc_collect ();
flag_cse_skip_blocks = save_csb; flag_cse_skip_blocks = save_csb;
flag_cse_follow_jumps = save_cfj; flag_cse_follow_jumps = save_cfj;
} }
/* Move constant computations out of loops. */ /* Move constant computations out of loops. */
...@@ -3027,7 +3027,7 @@ rest_of_compilation (decl) ...@@ -3027,7 +3027,7 @@ rest_of_compilation (decl)
if (initialize_uninitialized_subregs ()) if (initialize_uninitialized_subregs ())
{ {
/* Insns were inserted, so things might look a bit different. */ /* Insns were inserted, so things might look a bit different. */
insns = get_insns(); insns = get_insns ();
life_analysis (insns, rtl_dump_file, life_analysis (insns, rtl_dump_file,
(PROP_LOG_LINKS | PROP_REG_INFO | PROP_DEATH_NOTES)); (PROP_LOG_LINKS | PROP_REG_INFO | PROP_DEATH_NOTES));
} }
...@@ -3704,7 +3704,7 @@ display_help () ...@@ -3704,7 +3704,7 @@ display_help ()
static void static void
display_target_options () display_target_options ()
{ {
int undoc,i; int undoc, i;
static bool displayed = false; static bool displayed = false;
/* Avoid double printing for --help --target-help. */ /* Avoid double printing for --help --target-help. */
...@@ -3853,9 +3853,9 @@ decode_f_option (arg) ...@@ -3853,9 +3853,9 @@ decode_f_option (arg)
} }
if (!strcmp (arg, "fast-math")) if (!strcmp (arg, "fast-math"))
set_fast_math_flags(); set_fast_math_flags ();
else if (!strcmp (arg, "no-fast-math")) else if (!strcmp (arg, "no-fast-math"))
set_no_fast_math_flags(); set_no_fast_math_flags ();
else if ((option_value = skip_leading_substring (arg, "inline-limit-")) else if ((option_value = skip_leading_substring (arg, "inline-limit-"))
|| (option_value = skip_leading_substring (arg, "inline-limit="))) || (option_value = skip_leading_substring (arg, "inline-limit=")))
{ {
......
/* Tree-dumping functionality for intermediate representation. /* Tree-dumping functionality for intermediate representation.
Copyright (C) 1999, 2000 Free Software Foundation, Inc. Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc.
Written by Mark Mitchell <mark@codesourcery.com> Written by Mark Mitchell <mark@codesourcery.com>
This file is part of GCC. This file is part of GCC.
...@@ -331,7 +331,7 @@ dequeue_and_dump (di) ...@@ -331,7 +331,7 @@ dequeue_and_dump (di)
break; break;
default: default:
abort(); abort ();
} }
} }
else if (DECL_P (t)) else if (DECL_P (t))
......
/* Language-independent node constructors for parse phase of GNU compiler. /* Language-independent node constructors for parse phase of GNU compiler.
Copyright (C) 1987, 1988, 1992, 1993, 1994, 1995, 1996, 1997, 1998, Copyright (C) 1987, 1988, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
1999, 2000, 2001 Free Software Foundation, Inc. 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
This file is part of GCC. This file is part of GCC.
...@@ -2911,7 +2911,7 @@ merge_dllimport_decl_attributes (old, new) ...@@ -2911,7 +2911,7 @@ merge_dllimport_decl_attributes (old, new)
if (delete_dllimport_p) if (delete_dllimport_p)
{ {
tree prev,t; tree prev, t;
/* Scan the list for dllimport and delete it. */ /* Scan the list for dllimport and delete it. */
for (prev = NULL_TREE, t = a; t; prev = t, t = TREE_CHAIN (t)) for (prev = NULL_TREE, t = a; t; prev = t, t = TREE_CHAIN (t))
...@@ -3270,7 +3270,7 @@ attribute_list_contained (l1, l2) ...@@ -3270,7 +3270,7 @@ attribute_list_contained (l1, l2)
/* Maybe the lists are equal. */ /* Maybe the lists are equal. */
if (t1 == 0 && t2 == 0) if (t1 == 0 && t2 == 0)
return 1; return 1;
for (; t2 != 0; t2 = TREE_CHAIN (t2)) for (; t2 != 0; t2 = TREE_CHAIN (t2))
{ {
...@@ -3708,7 +3708,7 @@ build_reference_type (to_type) ...@@ -3708,7 +3708,7 @@ build_reference_type (to_type)
tree tree
build_type_no_quals (t) build_type_no_quals (t)
tree t; tree t;
{ {
switch (TREE_CODE (t)) switch (TREE_CODE (t))
{ {
...@@ -3789,7 +3789,7 @@ build_range_type (type, lowval, highval) ...@@ -3789,7 +3789,7 @@ build_range_type (type, lowval, highval)
of just highval (maxval). */ of just highval (maxval). */
tree tree
build_index_2_type (lowval,highval) build_index_2_type (lowval, highval)
tree lowval, highval; tree lowval, highval;
{ {
return build_range_type (sizetype, lowval, highval); return build_range_type (sizetype, lowval, highval);
...@@ -3869,7 +3869,7 @@ build_array_type (elt_type, index_type) ...@@ -3869,7 +3869,7 @@ build_array_type (elt_type, index_type)
tree tree
get_inner_array_type (array) get_inner_array_type (array)
tree array; tree array;
{ {
tree type = TREE_TYPE (array); tree type = TREE_TYPE (array);
......
/* Try to unroll loops, and split induction variables. /* Try to unroll loops, and split induction variables.
Copyright (C) 1992, 1993, 1994, 1995, 1997, 1998, 1999, 2000, 2001 Copyright (C) 1992, 1993, 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002
Free Software Foundation, Inc. Free Software Foundation, Inc.
Contributed by James E. Wilson, Cygnus Support/UC Berkeley. Contributed by James E. Wilson, Cygnus Support/UC Berkeley.
...@@ -4053,7 +4053,7 @@ loop_iterations (loop) ...@@ -4053,7 +4053,7 @@ loop_iterations (loop)
not HOST_WIDE_INT, disregard higher bits that might have come not HOST_WIDE_INT, disregard higher bits that might have come
into the picture due to sign extension of initial and final into the picture due to sign extension of initial and final
values. */ values. */
abs_diff &= ((unsigned HOST_WIDE_INT)1 abs_diff &= ((unsigned HOST_WIDE_INT) 1
<< (GET_MODE_BITSIZE (GET_MODE (iteration_var)) - 1) << (GET_MODE_BITSIZE (GET_MODE (iteration_var)) - 1)
<< 1) - 1; << 1) - 1;
......
/* Copyright (C) 2001 Free Software Foundation, Inc. /* Copyright (C) 2001, 2002 Free Software Foundation, Inc.
Contributed by Jakub Jelinek <jakub@redhat.com>. Contributed by Jakub Jelinek <jakub@redhat.com>.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -151,7 +151,7 @@ _Unwind_IteratePhdrCallback (struct dl_phdr_info *info, size_t size, void *ptr) ...@@ -151,7 +151,7 @@ _Unwind_IteratePhdrCallback (struct dl_phdr_info *info, size_t size, void *ptr)
{ {
/* For dynamicly linked executables and shared libraries, /* For dynamicly linked executables and shared libraries,
DT_PLTGOT is the gp value for that object. */ DT_PLTGOT is the gp value for that object. */
ElfW(Dyn) *dyn = (ElfW(Dyn) *)(p_dynamic->p_vaddr + load_base); ElfW(Dyn) *dyn = (ElfW(Dyn) *) (p_dynamic->p_vaddr + load_base);
for (; dyn->d_tag != DT_NULL ; dyn++) for (; dyn->d_tag != DT_NULL ; dyn++)
if (dyn->d_tag == DT_PLTGOT) if (dyn->d_tag == DT_PLTGOT)
{ {
......
...@@ -541,16 +541,18 @@ fde_merge (struct object *ob, fde_compare_t fde_compare, ...@@ -541,16 +541,18 @@ fde_merge (struct object *ob, fde_compare_t fde_compare,
if (i2 > 0) if (i2 > 0)
{ {
i1 = v1->count; i1 = v1->count;
do { do
i2--; {
fde2 = v2->array[i2]; i2--;
while (i1 > 0 && fde_compare (ob, v1->array[i1-1], fde2) > 0) fde2 = v2->array[i2];
{ while (i1 > 0 && fde_compare (ob, v1->array[i1-1], fde2) > 0)
v1->array[i1+i2] = v1->array[i1-1]; {
i1--; v1->array[i1+i2] = v1->array[i1-1];
} i1--;
}
v1->array[i1+i2] = fde2; v1->array[i1+i2] = fde2;
} while (i2 > 0); }
while (i2 > 0);
v1->count += v2->count; v1->count += v2->count;
} }
} }
......
/* DWARF2 exception handling and frame unwind runtime interface routines. /* DWARF2 exception handling and frame unwind runtime interface routines.
Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002
Free Software Foundation, Inc.
This file is part of GCC. This file is part of GCC.
...@@ -524,14 +525,14 @@ execute_stack_op (const unsigned char *op_ptr, const unsigned char *op_end, ...@@ -524,14 +525,14 @@ execute_stack_op (const unsigned char *op_ptr, const unsigned char *op_end,
{ {
case DW_OP_deref: case DW_OP_deref:
{ {
void *ptr = (void *)(_Unwind_Ptr) result; void *ptr = (void *) (_Unwind_Ptr) result;
result = (_Unwind_Ptr) read_pointer (ptr); result = (_Unwind_Ptr) read_pointer (ptr);
} }
break; break;
case DW_OP_deref_size: case DW_OP_deref_size:
{ {
void *ptr = (void *)(_Unwind_Ptr) result; void *ptr = (void *) (_Unwind_Ptr) result;
switch (*op_ptr++) switch (*op_ptr++)
{ {
case 1: case 1:
...@@ -1096,14 +1097,16 @@ uw_update_context (struct _Unwind_Context *context, _Unwind_FrameState *fs) ...@@ -1096,14 +1097,16 @@ uw_update_context (struct _Unwind_Context *context, _Unwind_FrameState *fs)
/* Fill in CONTEXT for top-of-stack. The only valid registers at this /* Fill in CONTEXT for top-of-stack. The only valid registers at this
level will be the return address and the CFA. */ level will be the return address and the CFA. */
#define uw_init_context(CONTEXT) \ #define uw_init_context(CONTEXT) \
do { \ do \
/* Do any necessary initialization to access arbitrary stack frames. \ { \
On the SPARC, this means flushing the register windows. */ \ /* Do any necessary initialization to access arbitrary stack frames. \
__builtin_unwind_init (); \ On the SPARC, this means flushing the register windows. */ \
uw_init_context_1 (CONTEXT, __builtin_dwarf_cfa (), \ __builtin_unwind_init (); \
__builtin_return_address (0)); \ uw_init_context_1 (CONTEXT, __builtin_dwarf_cfa (), \
} while (0) __builtin_return_address (0)); \
} \
while (0)
static void static void
uw_init_context_1 (struct _Unwind_Context *context, uw_init_context_1 (struct _Unwind_Context *context,
...@@ -1137,12 +1140,14 @@ uw_init_context_1 (struct _Unwind_Context *context, ...@@ -1137,12 +1140,14 @@ uw_init_context_1 (struct _Unwind_Context *context,
macro because __builtin_eh_return must be invoked in the context of macro because __builtin_eh_return must be invoked in the context of
our caller. */ our caller. */
#define uw_install_context(CURRENT, TARGET) \ #define uw_install_context(CURRENT, TARGET) \
do { \ do \
long offset = uw_install_context_1 ((CURRENT), (TARGET)); \ { \
void *handler = __builtin_frob_return_addr ((TARGET)->ra); \ long offset = uw_install_context_1 ((CURRENT), (TARGET)); \
__builtin_eh_return (offset, handler); \ void *handler = __builtin_frob_return_addr ((TARGET)->ra); \
} while (0) __builtin_eh_return (offset, handler); \
} \
while (0)
static inline void static inline void
init_dwarf_reg_size_table (void) init_dwarf_reg_size_table (void)
......
/* DWARF2 exception handling and frame unwind runtime interface routines. /* DWARF2 exception handling and frame unwind runtime interface routines.
Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002
Free Software Foundation, Inc.
This file is part of GCC. This file is part of GCC.
...@@ -251,11 +252,13 @@ uw_init_context (struct _Unwind_Context *context) ...@@ -251,11 +252,13 @@ uw_init_context (struct _Unwind_Context *context)
/* ??? There appear to be bugs in integrate.c wrt __builtin_longjmp and /* ??? There appear to be bugs in integrate.c wrt __builtin_longjmp and
virtual-stack-vars. An inline version of this segfaults on Sparc. */ virtual-stack-vars. An inline version of this segfaults on Sparc. */
#define uw_install_context(CURRENT, TARGET) \ #define uw_install_context(CURRENT, TARGET) \
do { \ do \
_Unwind_SjLj_SetContext ((TARGET)->fc); \ { \
longjmp ((TARGET)->fc->jbuf, 1); \ _Unwind_SjLj_SetContext ((TARGET)->fc); \
} while (0) longjmp ((TARGET)->fc->jbuf, 1); \
} \
while (0)
static inline _Unwind_Ptr static inline _Unwind_Ptr
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment