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
This commit is contained in:
Kazu Hirata 2002-01-10 20:12:57 +00:00 committed by Kazu Hirata
parent 9f85bca76f
commit a01da83b22
9 changed files with 72 additions and 51 deletions

View File

@ -1,3 +1,14 @@
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>
* doc/invoke.texi: Document PDP-11 options.

View File

@ -1701,8 +1701,8 @@ set_float_handler (handler)
int
do_float_handler (fn, data)
void (*fn) PARAMS ((PTR));
PTR data;
void (*fn) PARAMS ((PTR));
PTR data;
{
jmp_buf buf;
@ -2861,7 +2861,7 @@ rest_of_compilation (decl)
ggc_collect ();
flag_cse_skip_blocks = save_csb;
flag_cse_follow_jumps = save_cfj;
}
}
/* Move constant computations out of loops. */
@ -3027,7 +3027,7 @@ rest_of_compilation (decl)
if (initialize_uninitialized_subregs ())
{
/* Insns were inserted, so things might look a bit different. */
insns = get_insns();
insns = get_insns ();
life_analysis (insns, rtl_dump_file,
(PROP_LOG_LINKS | PROP_REG_INFO | PROP_DEATH_NOTES));
}
@ -3704,7 +3704,7 @@ display_help ()
static void
display_target_options ()
{
int undoc,i;
int undoc, i;
static bool displayed = false;
/* Avoid double printing for --help --target-help. */
@ -3853,9 +3853,9 @@ decode_f_option (arg)
}
if (!strcmp (arg, "fast-math"))
set_fast_math_flags();
set_fast_math_flags ();
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-"))
|| (option_value = skip_leading_substring (arg, "inline-limit=")))
{

View File

@ -1,5 +1,5 @@
/* 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>
This file is part of GCC.
@ -331,7 +331,7 @@ dequeue_and_dump (di)
break;
default:
abort();
abort ();
}
}
else if (DECL_P (t))

View File

@ -1,6 +1,6 @@
/* Language-independent node constructors for parse phase of GNU compiler.
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.
@ -2911,7 +2911,7 @@ merge_dllimport_decl_attributes (old, new)
if (delete_dllimport_p)
{
tree prev,t;
tree prev, t;
/* Scan the list for dllimport and delete it. */
for (prev = NULL_TREE, t = a; t; prev = t, t = TREE_CHAIN (t))
@ -3270,7 +3270,7 @@ attribute_list_contained (l1, l2)
/* Maybe the lists are equal. */
if (t1 == 0 && t2 == 0)
return 1;
return 1;
for (; t2 != 0; t2 = TREE_CHAIN (t2))
{
@ -3708,7 +3708,7 @@ build_reference_type (to_type)
tree
build_type_no_quals (t)
tree t;
tree t;
{
switch (TREE_CODE (t))
{
@ -3789,7 +3789,7 @@ build_range_type (type, lowval, highval)
of just highval (maxval). */
tree
build_index_2_type (lowval,highval)
build_index_2_type (lowval, highval)
tree lowval, highval;
{
return build_range_type (sizetype, lowval, highval);
@ -3869,7 +3869,7 @@ build_array_type (elt_type, index_type)
tree
get_inner_array_type (array)
tree array;
tree array;
{
tree type = TREE_TYPE (array);

View File

@ -1,5 +1,5 @@
/* 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.
Contributed by James E. Wilson, Cygnus Support/UC Berkeley.
@ -4053,7 +4053,7 @@ loop_iterations (loop)
not HOST_WIDE_INT, disregard higher bits that might have come
into the picture due to sign extension of initial and final
values. */
abs_diff &= ((unsigned HOST_WIDE_INT)1
abs_diff &= ((unsigned HOST_WIDE_INT) 1
<< (GET_MODE_BITSIZE (GET_MODE (iteration_var)) - 1)
<< 1) - 1;

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2001 Free Software Foundation, Inc.
/* Copyright (C) 2001, 2002 Free Software Foundation, Inc.
Contributed by Jakub Jelinek <jakub@redhat.com>.
This file is part of GNU CC.
@ -151,7 +151,7 @@ _Unwind_IteratePhdrCallback (struct dl_phdr_info *info, size_t size, void *ptr)
{
/* For dynamicly linked executables and shared libraries,
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++)
if (dyn->d_tag == DT_PLTGOT)
{

View File

@ -541,16 +541,18 @@ fde_merge (struct object *ob, fde_compare_t fde_compare,
if (i2 > 0)
{
i1 = v1->count;
do {
i2--;
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--;
}
do
{
i2--;
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] = fde2;
} while (i2 > 0);
}
while (i2 > 0);
v1->count += v2->count;
}
}

View File

@ -1,5 +1,6 @@
/* 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.
@ -524,14 +525,14 @@ execute_stack_op (const unsigned char *op_ptr, const unsigned char *op_end,
{
case DW_OP_deref:
{
void *ptr = (void *)(_Unwind_Ptr) result;
void *ptr = (void *) (_Unwind_Ptr) result;
result = (_Unwind_Ptr) read_pointer (ptr);
}
break;
case DW_OP_deref_size:
{
void *ptr = (void *)(_Unwind_Ptr) result;
void *ptr = (void *) (_Unwind_Ptr) result;
switch (*op_ptr++)
{
case 1:
@ -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
level will be the return address and the CFA. */
#define uw_init_context(CONTEXT) \
do { \
/* Do any necessary initialization to access arbitrary stack frames. \
On the SPARC, this means flushing the register windows. */ \
__builtin_unwind_init (); \
uw_init_context_1 (CONTEXT, __builtin_dwarf_cfa (), \
__builtin_return_address (0)); \
} while (0)
#define uw_init_context(CONTEXT) \
do \
{ \
/* Do any necessary initialization to access arbitrary stack frames. \
On the SPARC, this means flushing the register windows. */ \
__builtin_unwind_init (); \
uw_init_context_1 (CONTEXT, __builtin_dwarf_cfa (), \
__builtin_return_address (0)); \
} \
while (0)
static void
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
our caller. */
#define uw_install_context(CURRENT, TARGET) \
do { \
long offset = uw_install_context_1 ((CURRENT), (TARGET)); \
void *handler = __builtin_frob_return_addr ((TARGET)->ra); \
__builtin_eh_return (offset, handler); \
} while (0)
#define uw_install_context(CURRENT, TARGET) \
do \
{ \
long offset = uw_install_context_1 ((CURRENT), (TARGET)); \
void *handler = __builtin_frob_return_addr ((TARGET)->ra); \
__builtin_eh_return (offset, handler); \
} \
while (0)
static inline void
init_dwarf_reg_size_table (void)

View File

@ -1,5 +1,6 @@
/* 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.
@ -251,11 +252,13 @@ uw_init_context (struct _Unwind_Context *context)
/* ??? There appear to be bugs in integrate.c wrt __builtin_longjmp and
virtual-stack-vars. An inline version of this segfaults on Sparc. */
#define uw_install_context(CURRENT, TARGET) \
do { \
_Unwind_SjLj_SetContext ((TARGET)->fc); \
longjmp ((TARGET)->fc->jbuf, 1); \
} while (0)
#define uw_install_context(CURRENT, TARGET) \
do \
{ \
_Unwind_SjLj_SetContext ((TARGET)->fc); \
longjmp ((TARGET)->fc->jbuf, 1); \
} \
while (0)
static inline _Unwind_Ptr