Commit 854a97f0 by Kazu Hirata Committed by Jeff Law

* toplev.c: Fix formatting.

From-SVN: r35444
parent 66ed03f8
2000-08-03 Kazu Hirata <kazu@hxi.com>
* toplev.c: Fix formatting.
Thu Aug 3 01:05:32 2000 Jeffrey A Law (law@cygnus.com)
* flow.c (find_auto_inc): Verify that we've got a REG before
......
......@@ -91,10 +91,11 @@ Boston, MA 02111-1307, USA. */
#ifdef VMS
/* The extra parameters substantially improve the I/O performance. */
static FILE *
vms_fopen (fname, type)
char * fname;
char * type;
char *fname;
char *type;
{
/* The <stdio.h> in the gcc-vms-1.42 distribution prototypes fopen with two
fixed arguments, which matches ANSI's specification but not VAXCRTL's
......@@ -107,6 +108,7 @@ vms_fopen (fname, type)
else
return (*vmslib_fopen) (fname, type, "mbc=32");
}
#define fopen vms_fopen
#endif /* VMS */
......@@ -235,7 +237,7 @@ extern int target_flags;
struct dump_file_info
{
/* The unique extension to apply, e.g. ".jump". */
const char * const extension;
const char *const extension;
/* The -d<c> character that enables this dump file. */
char const debug_switch;
......@@ -340,7 +342,7 @@ int rtl_dump_and_exit;
int flag_print_asm_name;
static int flag_print_mem;
static int version_flag;
static char * filename;
static char *filename;
enum graph_dump_types graph_dump_format;
/* Name for output file of assembly code, specified with -o. */
......@@ -445,7 +447,7 @@ int flag_branch_probabilities = 0;
int flag_reorder_blocks = 0;
/* Nonzero if registers should be renamed */
/* Nonzero if registers should be renamed. */
int flag_rename_registers = 0;
......@@ -704,7 +706,7 @@ int flag_exceptions;
int flag_new_exceptions = 1;
/* Nonzero means generate frame unwind info table when supported */
/* Nonzero means generate frame unwind info table when supported. */
int flag_unwind_tables = 0;
......@@ -792,7 +794,7 @@ int flag_ssa = 0;
/* Enable dead code elimination. */
int flag_dce = 0;
/* Tag all structures with __attribute__(packed) */
/* Tag all structures with __attribute__(packed). */
int flag_pack_struct = 0;
/* Emit code to check for stack overflow; also may cause large objects
......@@ -881,12 +883,12 @@ int align_functions_log;
/* Table of supported debugging formats. */
static struct
{
const char * arg;
const char *arg;
/* Since PREFERRED_DEBUGGING_TYPE isn't necessarily a
constant expression, we use NO_DEBUG in its place. */
enum debug_info_type debug_type;
int use_extensions_p;
const char * description;
const char *description;
} *da,
debug_args[] =
{
......@@ -917,10 +919,10 @@ debug_args[] =
typedef struct
{
const char * string;
int * variable;
const char *string;
int *variable;
int on_value;
const char * description;
const char *description;
}
lang_independent_options;
......@@ -1124,8 +1126,8 @@ lang_independent_options f_options[] =
static struct lang_opt
{
const char * option;
const char * description;
const char *option;
const char *description;
}
documented_lang_options[] =
{
......@@ -1273,9 +1275,9 @@ documented_lang_options[] =
struct
{
const char * name;
const char *name;
int value;
const char * description;
const char *description;
}
target_switches [] = TARGET_SWITCHES;
......@@ -1284,14 +1286,14 @@ target_switches [] = TARGET_SWITCHES;
#ifdef TARGET_OPTIONS
struct
{
const char * prefix;
const char ** variable;
const char * description;
const char *prefix;
const char **variable;
const char *description;
}
target_options [] = TARGET_OPTIONS;
#endif
/* Options controlling warnings */
/* Options controlling warnings. */
/* Don't print warning messages. -w. */
......@@ -1321,7 +1323,7 @@ set_Wunused (setting)
warn_unused_label = setting;
/* Unused function parameter warnings are reported when either ``-W
-Wunused'' or ``-Wunused-parameter'' is specified. Differentiate
-Wunused by setting WARN_UNUSED_PARAMETER to -1 */
-Wunused by setting WARN_UNUSED_PARAMETER to -1. */
if (!setting)
warn_unused_parameter = 0;
else if (!warn_unused_parameter)
......@@ -1500,7 +1502,7 @@ do_abort ()
void
botch (s)
const char * s ATTRIBUTE_UNUSED;
const char *s ATTRIBUTE_UNUSED;
{
abort ();
}
......@@ -1553,7 +1555,8 @@ float_signal (signo)
if (float_handled == 0)
crash_signal (signo);
#if defined (USG) || defined (hpux)
signal (SIGFPE, float_signal); /* re-enable the signal catcher */
/* Re-enable the signal catcher. */
signal (SIGFPE, float_signal);
#endif
float_handled = 0;
signal (SIGFPE, float_signal);
......@@ -1594,7 +1597,8 @@ do_float_handler (fn, data)
if (setjmp (buf))
{
/* We got here via longjmp() caused by an exception in function fn() */
/* We got here via longjmp () caused by an exception in function
fn (). */
set_float_handler (NULL);
return 0;
}
......@@ -1727,12 +1731,14 @@ output_file_directive (asm_file, input_name)
#ifdef ASM_IDENTIFY_LANGUAGE
/* Routine to build language identifier for object file. */
static void
output_lang_identify (asm_out_file)
FILE *asm_out_file;
{
int len = strlen (lang_identify ()) + sizeof ("__gnu_compiled_") + 1;
char *s = (char *) alloca (len);
sprintf (s, "__gnu_compiled_%s", lang_identify ());
ASM_OUTPUT_LABEL (asm_out_file, s);
}
......@@ -1830,6 +1836,7 @@ close_dump_file (index, func, insns)
which there are LEN. We write out inline functions and variables
that have been deferred until this point, but which are required.
Returns non-zero if anything was put out. */
int
wrapup_global_declarations (vec, len)
tree *vec;
......@@ -1924,6 +1931,7 @@ wrapup_global_declarations (vec, len)
/* Issue appropriate warnings for the global declarations in VEC (of
which there are LEN). Output debugging information for them. */
void
check_global_declarations (vec, len)
tree *vec;
......@@ -2367,7 +2375,7 @@ compile_file (name)
weak_finish ();
/* Do dbx symbols */
/* Do dbx symbols. */
timevar_push (TV_SYMOUT);
#if defined (DBX_DEBUGGING_INFO) || defined (XCOFF_DEBUGGING_INFO)
if (write_symbols == DBX_DEBUG || write_symbols == XCOFF_DEBUG)
......@@ -2977,7 +2985,7 @@ rest_of_compilation (decl)
timevar_push (TV_TO_SSA);
open_dump_file (DFI_ssa, decl);
find_basic_blocks (insns, max_reg_num(), rtl_dump_file);
find_basic_blocks (insns, max_reg_num (), rtl_dump_file);
cleanup_cfg (insns);
convert_to_ssa ();
......@@ -3030,7 +3038,7 @@ rest_of_compilation (decl)
timevar_push (TV_GCSE);
open_dump_file (DFI_gcse, decl);
find_basic_blocks (insns, max_reg_num(), rtl_dump_file);
find_basic_blocks (insns, max_reg_num (), rtl_dump_file);
cleanup_cfg (insns);
tem = gcse_main (insns, rtl_dump_file);
......@@ -3074,7 +3082,8 @@ rest_of_compilation (decl)
analysis code depends on this information. */
reg_scan (insns, max_reg_num (), 1);
}
loop_optimize (insns, rtl_dump_file, (flag_unroll_loops ? LOOP_UNROLL : 0) | LOOP_BCT);
loop_optimize (insns, rtl_dump_file,
(flag_unroll_loops ? LOOP_UNROLL : 0) | LOOP_BCT);
close_dump_file (DFI_loop, print_rtl, insns);
timevar_pop (TV_LOOP);
......@@ -3144,7 +3153,6 @@ rest_of_compilation (decl)
regclass_init ();
/* Do control and data flow analysis; wrote some of the results to
the dump file. */
......@@ -3628,7 +3636,7 @@ rest_of_compilation (decl)
/* Release all memory allocated by flow. */
free_basic_block_vars (0);
/* Release all memory held by regsets now */
/* Release all memory held by regsets now. */
regset_release_memory ();
}
timevar_pop (TV_FINAL);
......@@ -3636,7 +3644,7 @@ rest_of_compilation (decl)
if (ggc_p)
ggc_collect ();
/* Write DBX symbols if requested */
/* Write DBX symbols if requested. */
/* Note that for those inline functions where we don't initially
know for certain that we will be generating an out-of-line copy,
......@@ -3725,7 +3733,7 @@ display_help ()
{
int undoc;
unsigned long i;
const char * lang;
const char *lang;
#ifndef USE_CPPLIB
printf (_("Usage: %s input [switches]\n"), progname);
......@@ -3740,7 +3748,7 @@ display_help ()
for (i = NUM_ELEM (f_options); i--;)
{
const char * description = f_options[i].description;
const char *description = f_options[i].description;
if (description != NULL && * description != 0)
printf (" -f%-21s %s\n",
......@@ -3756,7 +3764,7 @@ display_help ()
for (i = NUM_ELEM (W_options); i--;)
{
const char * description = W_options[i].description;
const char *description = W_options[i].description;
if (description != NULL && * description != 0)
printf (" -W%-21s %s\n",
......@@ -3781,7 +3789,8 @@ display_help ()
for (i = NUM_ELEM (debug_args); i--;)
{
if (debug_args[i].description != NULL)
printf (" -g%-21s %s\n", debug_args[i].arg, debug_args[i].description);
printf (" -g%-21s %s\n",
debug_args[i].arg, debug_args[i].description);
}
printf (_(" -aux-info <file> Emit declaration info into <file>.X\n"));
......@@ -3811,8 +3820,8 @@ display_help ()
for (i = 0; i < NUM_ELEM (documented_lang_options); i++)
{
const char * description = documented_lang_options[i].description;
const char * option = documented_lang_options[i].option;
const char *description = documented_lang_options[i].description;
const char *option = documented_lang_options[i].option;
if (description == NULL)
{
......@@ -3821,7 +3830,7 @@ display_help ()
if (extra_warnings)
printf (_(" %-23.23s [undocumented]\n"), option);
}
else if (* description == 0)
else if (*description == 0)
continue;
else if (option == NULL)
{
......@@ -3841,7 +3850,8 @@ display_help ()
}
if (undoc)
printf (_("\nThere are undocumented %s specific options as well.\n"), lang);
printf (_("\nThere are undocumented %s specific options as well.\n"),
lang);
if (NUM_ELEM (target_switches) > 1
#ifdef TARGET_OPTIONS
......@@ -3857,10 +3867,10 @@ display_help ()
for (i = NUM_ELEM (target_switches); i--;)
{
const char * option = target_switches[i].name;
const char * description = target_switches[i].description;
const char *option = target_switches[i].name;
const char *description = target_switches[i].description;
if (option == NULL || * option == 0)
if (option == NULL || *option == 0)
continue;
else if (description == NULL)
{
......@@ -3876,10 +3886,10 @@ display_help ()
#ifdef TARGET_OPTIONS
for (i = NUM_ELEM (target_options); i--;)
{
const char * option = target_options[i].prefix;
const char * description = target_options[i].description;
const char *option = target_options[i].prefix;
const char *description = target_options[i].description;
if (option == NULL || * option == 0)
if (option == NULL || *option == 0)
continue;
else if (description == NULL)
{
......@@ -3906,7 +3916,7 @@ display_help ()
static void
decode_d_option (arg)
const char * arg;
const char *arg;
{
int i, c, matched;
......@@ -3960,7 +3970,7 @@ decode_d_option (arg)
static int
decode_f_option (arg)
const char * arg;
const char *arg;
{
int j;
const char *option_value = NULL;
......@@ -4058,7 +4068,7 @@ decode_f_option (arg)
static int
decode_W_option (arg)
const char * arg;
const char *arg;
{
const char *option_value = NULL;
int j;
......@@ -4115,7 +4125,7 @@ decode_W_option (arg)
static int
decode_g_option (arg)
const char * arg;
const char *arg;
{
unsigned level;
/* A lot of code assumes write_symbols == NO_DEBUG if the
......@@ -4129,7 +4139,7 @@ decode_g_option (arg)
-gdwarf -g3 is equivalent to -gdwarf3. */
static int type_explicitly_set_p = 0;
/* Indexed by enum debug_info_type. */
static const char * debug_type_names[] =
static const char *debug_type_names[] =
{
"none", "stabs", "coff", "dwarf-1", "dwarf-2", "xcoff"
};
......@@ -4145,7 +4155,7 @@ decode_g_option (arg)
if (da_len == 0 || ! strncmp (arg, da->arg, da_len))
{
enum debug_info_type type = da->debug_type;
const char * p = arg + da_len;
const char *p = arg + da_len;
if (*p && (*p < '0' || *p > '9'))
continue;
......@@ -4200,7 +4210,7 @@ ignoring option `%s' due to invalid debug level specification",
/* Does it conflict with an already selected type? */
if (type_explicitly_set_p
/* -g/-ggdb don't conflict with anything */
/* -g/-ggdb don't conflict with anything. */
&& da->debug_type != NO_DEBUG
&& type != selected_debug_type)
warning ("`%s' ignored, conflicts with `-g%s'",
......@@ -4210,7 +4220,8 @@ ignoring option `%s' due to invalid debug level specification",
/* If the format has already been set, -g/-ggdb
only change the debug level. */
if (type_explicitly_set_p && da->debug_type == NO_DEBUG)
; /* don't change debugging type */
/* Don't change debugging type. */
;
else
{
selected_debug_type = type;
......@@ -4257,7 +4268,7 @@ independent_decode_option (argc, argv, strings_processed)
return 1;
}
arg ++;
arg++;
if (!strcmp (arg, "-help"))
{
......@@ -4265,8 +4276,8 @@ independent_decode_option (argc, argv, strings_processed)
exit (0);
}
if (* arg == 'Y')
arg ++;
if (*arg == 'Y')
arg++;
switch (*arg)
{
......@@ -4499,7 +4510,7 @@ main (argc, argv)
ggc_add_tree_root (&current_function_func_begin_label, 1);
/* Initialize the diagnostics reporting machinery. */
initialize_diagnostics();
initialize_diagnostics ();
/* Perform language-specific options intialization. */
lang_init_options ();
......@@ -4626,8 +4637,8 @@ main (argc, argv)
? lang_processed : indep_processed);
else
{
const char * option = NULL;
const char * lang = NULL;
const char *option = NULL;
const char *lang = NULL;
unsigned int j;
/* It is possible that the command line switch is not valid for the
......@@ -4714,13 +4725,13 @@ main (argc, argv)
/* Set up the align_*_log variables, defaulting them to 1 if they
were still unset. */
if (align_loops <= 0) align_loops = 1;
align_loops_log = floor_log2 (align_loops*2-1);
align_loops_log = floor_log2 (align_loops * 2 - 1);
if (align_jumps <= 0) align_jumps = 1;
align_jumps_log = floor_log2 (align_jumps*2-1);
align_jumps_log = floor_log2 (align_jumps * 2 - 1);
if (align_labels <= 0) align_labels = 1;
align_labels_log = floor_log2 (align_labels*2-1);
align_labels_log = floor_log2 (align_labels * 2 - 1);
if (align_functions <= 0) align_functions = 1;
align_functions_log = floor_log2 (align_functions*2-1);
align_functions_log = floor_log2 (align_functions * 2 - 1);
if (profile_block_flag == 3)
{
......
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