Deleted Added
full compact
toplev.c (146908) toplev.c (161660)
1/* Top level of GCC compilers (cc1, cc1plus, etc.)
2 Copyright (C) 1987, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
3 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
4
5This file is part of GCC.
6
7GCC is free software; you can redistribute it and/or modify it under
8the terms of the GNU General Public License as published by the Free

--- 5 unchanged lines hidden (view full) ---

14FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15for more details.
16
17You should have received a copy of the GNU General Public License
18along with GCC; see the file COPYING. If not, write to the Free
19Software Foundation, 59 Temple Place - Suite 330, Boston, MA
2002111-1307, USA. */
21
1/* Top level of GCC compilers (cc1, cc1plus, etc.)
2 Copyright (C) 1987, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
3 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
4
5This file is part of GCC.
6
7GCC is free software; you can redistribute it and/or modify it under
8the terms of the GNU General Public License as published by the Free

--- 5 unchanged lines hidden (view full) ---

14FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15for more details.
16
17You should have received a copy of the GNU General Public License
18along with GCC; see the file COPYING. If not, write to the Free
19Software Foundation, 59 Temple Place - Suite 330, Boston, MA
2002111-1307, USA. */
21
22/* $FreeBSD: head/contrib/gcc/toplev.c 146908 2005-06-03 04:02:20Z kan $ */
22/* $FreeBSD: head/contrib/gcc/toplev.c 161660 2006-08-26 21:37:21Z kan $ */
23
24/* This is the top level of cc1/c++.
25 It parses command args, opens files, invokes the various passes
26 in the proper order, and counts the time used by each.
27 Error messages and low-level interface to malloc also handled here. */
28
29#include "config.h"
30#undef FLOAT /* This is for hpux. They should change hpux. */

--- 4241 unchanged lines hidden (view full) ---

4272 /* This must be done after add_params but before argument processing. */
4273 init_ggc_heuristics();
4274}
4275
4276/* Process the options that have been parsed. */
4277static void
4278process_options (void)
4279{
23
24/* This is the top level of cc1/c++.
25 It parses command args, opens files, invokes the various passes
26 in the proper order, and counts the time used by each.
27 Error messages and low-level interface to malloc also handled here. */
28
29#include "config.h"
30#undef FLOAT /* This is for hpux. They should change hpux. */

--- 4241 unchanged lines hidden (view full) ---

4272 /* This must be done after add_params but before argument processing. */
4273 init_ggc_heuristics();
4274}
4275
4276/* Process the options that have been parsed. */
4277static void
4278process_options (void)
4279{
4280 /* Just in case lang_hooks.post_options ends up calling a debug_hook.
4281 This can happen with incorrect pre-processed input. */
4282 debug_hooks = &do_nothing_debug_hooks;
4283
4280 /* Allow the front end to perform consistency checks and do further
4281 initialization based on the command line options. This hook also
4282 sets the original filename if appropriate (e.g. foo.i -> foo.c)
4283 so we can correctly initialize debug output. */
4284 no_backend = (*lang_hooks.post_options) (&main_input_filename);
4285 input_filename = main_input_filename;
4286
4287#ifdef OVERRIDE_OPTIONS

--- 113 unchanged lines hidden (view full) ---

4401 /* A lot of code assumes write_symbols == NO_DEBUG if the debugging
4402 level is 0. */
4403 if (debug_info_level == DINFO_LEVEL_NONE)
4404 write_symbols = NO_DEBUG;
4405
4406 /* Now we know write_symbols, set up the debug hooks based on it.
4407 By default we do nothing for debug output. */
4408 if (write_symbols == NO_DEBUG)
4284 /* Allow the front end to perform consistency checks and do further
4285 initialization based on the command line options. This hook also
4286 sets the original filename if appropriate (e.g. foo.i -> foo.c)
4287 so we can correctly initialize debug output. */
4288 no_backend = (*lang_hooks.post_options) (&main_input_filename);
4289 input_filename = main_input_filename;
4290
4291#ifdef OVERRIDE_OPTIONS

--- 113 unchanged lines hidden (view full) ---

4405 /* A lot of code assumes write_symbols == NO_DEBUG if the debugging
4406 level is 0. */
4407 if (debug_info_level == DINFO_LEVEL_NONE)
4408 write_symbols = NO_DEBUG;
4409
4410 /* Now we know write_symbols, set up the debug hooks based on it.
4411 By default we do nothing for debug output. */
4412 if (write_symbols == NO_DEBUG)
4409 debug_hooks = &do_nothing_debug_hooks;
4413 ;
4410#if defined(DBX_DEBUGGING_INFO)
4411 else if (write_symbols == DBX_DEBUG)
4412 debug_hooks = &dbx_debug_hooks;
4413#endif
4414#if defined(XCOFF_DEBUGGING_INFO)
4415 else if (write_symbols == XCOFF_DEBUG)
4416 debug_hooks = &xcoff_debug_hooks;
4417#endif

--- 291 unchanged lines hidden ---
4414#if defined(DBX_DEBUGGING_INFO)
4415 else if (write_symbols == DBX_DEBUG)
4416 debug_hooks = &dbx_debug_hooks;
4417#endif
4418#if defined(XCOFF_DEBUGGING_INFO)
4419 else if (write_symbols == XCOFF_DEBUG)
4420 debug_hooks = &xcoff_debug_hooks;
4421#endif

--- 291 unchanged lines hidden ---