1. 01 Dec, 2003 1 commit
    • zack's avatar
      * common.opt: Remove -fgnu-linker. · ae509d93
      zack authored
      	* flags.h: Remove flag_gnu_linker.
      	* opts.c: Don't handle OPT_fgnu_linker.
      	* toplev.c: Don't initialize flag_gnu_linker.
      	Remove gnu-linker entry from f_options.
      	* config/dsp16xx/dsp16xx.h (OPTIMIZATION_OPTIONS):
      	Don't reset flag_gnu_linker.
      	* config/mips/mips.c (override_options): Likewise.
      	* doc/invoke.texi: Remove all mention of -fgnu-linker.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74117 138bc75d-0d04-0410-961f-82ee72b054a4
      ae509d93
  2. 21 Nov, 2003 1 commit
    • rth's avatar
      * ssa.c, ssa-dce.c, ssa-ccp.c: Remove files. · 5ff51111
      rth authored
              * Makefile.in (OBJS-common, GTFILES): Don't reference them.
              (gtype-desc.o, toplev.o, flow.o): Remove ssa.h.
              (ssa.o, ssa-dce.o, ssa-ccp.o): Remove.
              * flow.c: Don't include ssa.h.
              (set_phi_alternative_reg): Remove.
              (calculate_global_regs_live): Don't call it.
              (mark_used_regs): Don't handle PHI.
              * gengtype.c (open_base_files): Don't reference ssa.h.
              * rtl.def (PHI): Remove.
              * timevar.def (TV_TO_SSA, TV_SSA_CCP, TV_SSA_DCE, TV_FROM_SSA): Kill.
              * common.opt: Remove -fssa, -fssa-ccp, -fssa-dce.
              * opts.c (common_handle_option): Likewise.
              * toplev.c (f_options): Likewise.
              (DFI_ssa, DFI_ssa_ccp, DFI_ssa_dce, DFI_ussa): Remove.
              (dump_file): Update to match.
              (flag_ssa, flag_ssa_ccp, flag_ssa_dce): Remove.
              (rest_of_handle_ssa): Remove.
              (rest_of_compilation): Don't call it.
              * toplev.h (flag_ssa, flag_ssa_dce, flag_ssa_ccp): Remove.
              * doc/invoke.texi: Remove -fssa, -fssa-ccp, -fssa-dce.
              * doc/passes.texi (SSA optimizations): Remove.
      
              * gcc.dg/20020201-2.c: Remove.
              * gcc.dg/20020201-4.c: Remove.
              * gcc.dg/20020304-1.c: Remove.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73789 138bc75d-0d04-0410-961f-82ee72b054a4
      5ff51111
  3. 09 Nov, 2003 1 commit
    • hubicka's avatar
      · c6808e0c
      hubicka authored
      	* cgraphunit.c (cgraph_expand_function): Use
      	cgraph_possibly_inlined_p.
      	* tree-optimize.c (tree_rest_of_compilation): Do not kill saved tree.
      
      	* opts.c (common_handle_option): Do not set max-inline-insns.
      	* params.def: Update comments.
      	(PARAM_MAX_INLINE_INSNS): Kill.
      	* invoke.texi (max-inline-insns): Kill.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73384 138bc75d-0d04-0410-961f-82ee72b054a4
      c6808e0c
  4. 20 Oct, 2003 1 commit
    • hubicka's avatar
      · 19489abd
      hubicka authored
      	* toplev.c (rest_of_compilation): Fix webizer pass ordering.
      
      	* cgraphunit.c (decide_is_function_needed):  Fix test dealing
      	with functions implicitly made inline.
      
      	* cgraphunit.c (cgraph_decide_inlining_incrementally):  New function.
      	(cgraph_finalize_function): Use it.
      	(cgraph_mark_inline): Allow incrmental decisions
      	* invoke.texi (max-inline-slope, min-inline-insns): Kill.
      	* params.def (PARAM_MAX_INLINE_SLOPE, PARAM_MIN_INLINE_INSNS): Kill.
      	* tree-inline.c (limits_allow_inlining): Kill.
      	(expand_call_inline): Always use unit-at-a-time path.
      
      	* decl.c (start_cleanup_fn):  Set DECL_DECLARED_INLINE_P to deffer
      	the expansion.
      
      	* testsuite/g++.dg/opt/inline4.C: Do not use min-inline-insns
      	parameter.
      	* testsuite/gcc.dg/inline-2.c: Likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72721 138bc75d-0d04-0410-961f-82ee72b054a4
      19489abd
  5. 19 Oct, 2003 1 commit
    • rakdver's avatar
      * Makefile.in (toplev.o): Add value-prof.h dependency. · 1c6a7b8c
      rakdver authored
      	(value-prof.o): Add REGS_H dependency.
      	* common.opt (fprofile-values, fvpt): New.
      	* flags.h (flag_value_profile_transformations): Declare.
      	* opts.c (common_handle_option): Handle -fprofile_values and
      	-fvpt.
      	* profile.c (branch_prob): Don't remove death notes here.
      	* timevar.def (TV_VPT): New.
      	* value-prof.c: Include regs.h.
      	(insn_divmod_values_to_profile, gen_divmod_fixed_value, gen_mod_pow2,
      	gen_mod_subtract, divmod_fixed_value_transform,mod_pow2_value_transform,
      	mod_subtract_transform, value_profile_transformations): New.
      	(insn_values_to_profile): Call insn_divmod_values_to_profile.
      	(find_values_to_profile): Add dumps.
      	* value-prof.h (value_profile_transformations): Declare.
      	* toplev.c: Include value-prof.h.
      	(rest_of_handle_value_profile_transformations): New.
      	(enum dump_file_index): Add DFI_vpt.
      	(dump_file): Add vpt dump.
      	(flag_value_profile_transformations): New.
      	(lang_independent_options): Add flag_profile_values and
      	flag_value_profile_transformations.
      	(rest_of_compilation): Call
      	rest_of_handle_value_profile_transformations.
      	(process_options): Let -fvpt imply -fprofile-values.
      	* doc/invoke.texi (-fvpt): Document.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72685 138bc75d-0d04-0410-961f-82ee72b054a4
      1c6a7b8c
  6. 17 Oct, 2003 2 commits
    • hubicka's avatar
      · 0c749523
      hubicka authored
      	* opts.c  (common_handle_option): Handle OPT_fweb
      	* invoke.texi (-fweb): Add missing parts of documentation.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72614 138bc75d-0d04-0410-961f-82ee72b054a4
      0c749523
    • sayle's avatar
      2003-10-17 Mostafa Hagog <mustafa@il.ibm.com> · 5c47e414
      sayle authored
      	* common.opt: Add description of the new -fgcse-las flag.
      	* flags.h (flag_gcse_las): Declaration of global flag_gcse_las.
      	* gcse.c (hash_scan_set): Handle the case of store expression and
      	insert the memory expression to the hash table, this way we make it
      	possible to discover redundant loads after stores and remove them.
      	(pre_insert_copy_insn): moved the call to update_ld_motion_stores,
      	to pre_insert_copies, it is not the correct place to call it after
      	adding stores to be in the available expression hash table.
      	(pre_insert_copies): Added the call to update_ld_motion_stores when
      	one or more copies were inserted.
      	* opts.c (common_handle_option): Handle the -fgcse-las flag.
      	* toplev.c (flag_gcse_las): Initialization of flag_gcse_las.
      
      	* doc/invoke.tex: Document new -fgcse-las flag.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72612 138bc75d-0d04-0410-961f-82ee72b054a4
      5c47e414
  7. 11 Oct, 2003 1 commit
    • hubicka's avatar
      · eeb4a70e
      hubicka authored
      	* Makefile.in (web.o): New.
      	* web.c: New file.
      	* rtl.h (web_main): Declare.
      	* timervar.def (TV_WEB): New.
      	* toplev.c (dump_file_index, dump_file_info): Add DFI_web.
      	(rest_of_hanle_web): New.
      	(flag_web): New static variable.
      	(lang_independent_options): Add "web".
      	(rest_of_compilation): Call rest_of_handle_web.
      	* invoke.texi (-fweb): Document.
      	* common.opt (fweb): New.
      	* flags.h (flag_web): New.
      	* opts.c (decode_options): Set flag_web at -O3.
      
      	* passes.texi (web construction):  Document.
      	* invoke.texi (-O3): Document that -fweb is enabled.
      
      	* regrename.c (regrename_optimize): Deal better with situation when
      	replacement failed.
      
      	* sched-ebb.c: Include params.h and profile.h
      	(schedule_ebbs):  Use tracer parameters to discover superblocks
      	* Makefile.in (sched-ebb.o):  Add dependencies.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72383 138bc75d-0d04-0410-961f-82ee72b054a4
      eeb4a70e
  8. 09 Oct, 2003 1 commit
    • dorit's avatar
      * haifa-sched.c (ok_for_early_schedule): New function. · 52c4b43f
      dorit authored
              (early_queue_to_ready): New function.
              (schedule_block): Allow early removal of insns from Q.
              (schedule_insn): Update INSN_TICK in case of premature
              issue.
              * common.opt (sched_stalled_insns): New flag.
              (sched_stalled_insns_dep): New flag.
              * flags.h: Same above flags.
              * opts.c: Same as above.
              * toplev.c: Same as above.
              * target.h (targetm.sched.is_costly_dependence): New
              hook.
              * target-def.h: Same as above.
              * config/rs6000/rs6000.h: (rs6000_sched_costly_dep):
              Support new flag -msched-costly-dep.
              (DEFAULT_SCHED_COSTLY_DEP): Define.
              * config/rs6000/rs6000.c:
              (rs6000_is_costly_dependence): New function.
              (is_load_insn, is_store_insn): New functions.
              (is_load_insn1, is_store_insn1, is_mem_ref): New
              functions.
              * doc/invoke.texi (-fsched-stalled-insns-dep)
              (-fsched-stalled-insns, -msched-costly-dep): Document
              options.
              * doc/tm.texi (is_costly_dependence): Define new
              scheduler target hook.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72261 138bc75d-0d04-0410-961f-82ee72b054a4
      52c4b43f
  9. 05 Sep, 2003 1 commit
    • hubicka's avatar
      · 0afce52e
      hubicka authored
      	* opts.c (decode_options): Enable unit-at-a-time at -O2.
      	* params.def (max-inline-insns-single): Set to 500
      	(max-inline-insns-auto): Set to 150
      	* invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71105 138bc75d-0d04-0410-961f-82ee72b054a4
      0afce52e
  10. 03 Sep, 2003 1 commit
    • sayle's avatar
      · 5466f589
      sayle authored
      	* toplev.c (flag_rounding_math): New global variable.
      	(f_options): Add to the list of language independent options.
      	* flags.h (flag_rounding_math): Prototype here.
      	(HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
      	* common.opt (frounding-math): New common command line option.
      	* opts.c (common_handle_option): Handle OPT_frounding_math.
      	(set_fast_math_flags): -ffast-math clears flag_rounding_math.
      
      	* doc/invoke.texi: Document this new command line option.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71032 138bc75d-0d04-0410-961f-82ee72b054a4
      5466f589
  11. 19 Aug, 2003 1 commit
  12. 08 Aug, 2003 1 commit
    • neil's avatar
      * common.opt: Add debug switches. · b0e56fb1
      neil authored
      	* flags.h (use_gnu_debug_info_extensions): Boolify.
      	* opts.c (write_symbols, debug_info_level,
      	use_gnu_debug_info_extensions): Move from toplev.c.
      	(set_debug_level): New.
      	(common_handle_options): Handle debug switches.
      	(print_help): Display target options directly.
      	* toplev.c (debug_hooks): Don't initialize.
      	(write_symbols, debug_info_level,
      	use_gnu_debug_info_extensions): Move to opts.c.
      	(debug_args, display_help, decode_g_option): Remove.
      	(process_options): Set no debug if level zero here,
      	and no-debug-hooks.  Error here if impossible debug format selected.
      	* toplev.h (display_help, decode_g_option): Remove.
      testsuite:
      	* lib/gcc-dg.exp: Update for diagnostic change.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70253 138bc75d-0d04-0410-961f-82ee72b054a4
      b0e56fb1
  13. 03 Aug, 2003 1 commit
  14. 31 Jul, 2003 1 commit
    • bothner's avatar
      · dcfa26d9
      bothner authored
      	* opts.c (in_fnames, num_in_fnames):  Moved here from c-opts.
      	(add_input_filename):  New function.
      	(handle_options):  Call add_input_filename directly instead of
      	with a lang hook.
      	* opts.h (in_fnames, num_in_fnames):  Moved here.
      	(add_input_filename):  Declare.
      	* c-decl.c:  Need to #include opts.h.
      	* Makefile.in (c-decl.o):  Also depends on opts.h.
      	* c-opts.c (in_fnames, num_in_fnames):  Moved to opts.c.
      	(c_common_handle_filename):  Replaced by add_input_filename.
      	* c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
      	Remove.
      	* langhooks.h (struct lang_hooks):  Remove handle_filename hook.
      	* langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
      	(LANG_HOOKS_INITIALIZER):  Remove use of LANG_HOOKS_HANDLE_FILENAME.
      	* c-lang.c (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70012 138bc75d-0d04-0410-961f-82ee72b054a4
      dcfa26d9
  15. 25 Jul, 2003 1 commit
    • gdr's avatar
      Remove pedwarn_with_decl, warning_with_decl and error_with_decl · aa6db498
      gdr authored
              from GCC.
              * calls.c (try_to_integrate): Don't use xxx_with_decl.
              (expand_call): Likewise.
              * dwarfout.c (output_reg_number): Likewise.
              * expr.c (expand_expr): Likewise.
              * function.c (assign_temp): Likewise.
              (uninitialized_vars_warning): Likewise.
              (setjmp_args_warning): Likewise.
              (expand_function_end): Likewise.
              * stmt.c (fixup_gotos): Likewise.
              (warn_about_unused_variables): Likewise.
              (expand_end_bindings): Likewise.
              * stor-layout.c (layout_decl): Likewise.
              (place_field): Likewise.
              * toplev.c (check_global_declarations): Likewise.
              (rest_of_handle_inlining): Likewise.
              (default_tree_printer): New function.
              (general_init): Initialize diagnostic machinery before routing
              signals to the ICE machinery.  Set default tree printer.
              * toplev.h (pedwarn_with_decl): Remove declaration.
              (warning_with_decl): Likewise.
              (error_with_decl): Likewise.
              (pedwarn): Remove attribute for the time being.
              * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
              * varasm.c (named_section): Likewise.
              (make_decl_rtl): Likewise.
              (assemble_variable): Likewise.
              (merge_weak): Likewise.
              (declare_weak): Likewise.
      
              * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
              * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
              (format_with_decl): Remove.
              (diagnostic_for_decl): Likewise.
              (pedwarn_with_decl): Likewise.
              (warning_with_decl): Likewise.
              (error_with_decl): Likewise.
              (diagnostic_initialize): Adjust.
              (diagnostic_count_diagnostic): Likewise.
              (announce_function): Likewise.
              (lhd_print_error_function): Likewise.
              (diagnostic_report_current_module): Likewise.
              (default_diagnostic_starter): Likewise.
              (diagnostic_report_diagnostic): Likewise.
              (default_diagnostic_finalizer): Likewise.
              (verbatim): Likewise.
              (error): Likewise.
              (warning): Likewise.
              * opts.c (common_handle_option): Likewise.
              * pretty-print.c: New file.
              * c-pretty-print.h (pp_base): Override.
              * c-pretty-print.c: Adjust use of macros throughout.
              (pp_buffer): New macro.
              (pp_newline): Likewise.
              * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
              * Makefile.in (DIAGNOSTIC_H): New variable.
              (c-errors.o): Use it.
              (c-objc-common.o): Likewise.
              (c-common.o): Likewise.
              (c-opts.o): Likewise.
              (c-format.o): Likewise.
              (diagnostic.o): Likewise.
              (opts.o): Likewise.
              (toplev.o): Likewise.
              (rtl-error.o): Likewise.
              (dwarf2out.o): Likewise.
              (jump.o): Likewise.
              (pretty-print.o): New rule.
      
      cp/
              * Make-lang.in (cp/error.o): Depend on DIAGNOSTIC_H.
              * error.c: Use the new pretty-printer fraamework.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69773 138bc75d-0d04-0410-961f-82ee72b054a4
      aa6db498
  16. 19 Jul, 2003 1 commit
    • neil's avatar
      * common.opt: Document --param. · 344c9292
      neil authored
      	* opts.c (columns, undocumented_msg): New.
      	(print_help): Get number of columns from environment.  Print
      	--param help.  Tweak newline handling.
      	(print_param_help): New.
      	(print_filtered_help): Better handling of duplicates.  Complain
      	about undocumented switches.
      	(print_switch): New.
      	(wrap_help): Improve wrapping, use COLUMNS.
      	* opts.sh: Ignore comments in records.
      	* params.def: Fix typos and remove trailing periods.
      	* toplev.c (display_help): Don't dump --param help.
      	* doc/sourcebuild.texi: Update.
      java:
      	* lang.opt: Don't show -MD_ and -MDD_.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69581 138bc75d-0d04-0410-961f-82ee72b054a4
      344c9292
  17. 17 Jul, 2003 1 commit
  18. 15 Jul, 2003 1 commit
  19. 11 Jul, 2003 1 commit
  20. 09 Jul, 2003 1 commit
  21. 08 Jul, 2003 2 commits
    • neil's avatar
      * opts.c (wrap_help): Use unsigned int, not size_t. · a8120962
      neil authored
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69106 138bc75d-0d04-0410-961f-82ee72b054a4
      a8120962
    • neil's avatar
      * Makefile.in: Update. · 53b8e5c1
      neil authored
      	* c-opts.c (c_common_handle_option): opt_text now contains the '-'.
      	* c.opt: Update documentation.
      	* common.opt: Add some help text.
      	* opts.c: Include intl.h.
      	(wrap_help, print_help): New.
      	(find_opt, handle_option, common_handle_option): opt_text now
      	contains the '-'.  Use print_help to output help.
      	* opts.h (struct cl_option): New member "help".
      	* opts.sh: Update to handle help text output and to prepend
      	options with '-'.
      	* toplev.c (display_help): Remove some help text.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69068 138bc75d-0d04-0410-961f-82ee72b054a4
      53b8e5c1
  22. 07 Jul, 2003 1 commit
  23. 06 Jul, 2003 1 commit
    • neil's avatar
      * c-common.h (c_comon_handle_filename, · 76bf7746
      neil authored
      	c_common_missing_arguement): New.
      	* c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
      	LANG_HOOKS_MISSING_ARGUMENT): New.
      	* c-opts.c (missing_arg): Rename c_common_missing_argument,
      	update to be an appropriate langhook.
      	(c_common_handle_option): Don't handle filenames.
      	(c_common_handle_filename): New.
      	* hooks.c (hook_void_constcharptr,
      	hook_bool_constcharptr_size_t_false): New.
      	* hooks.h (hook_void_constcharptr,
      	hook_bool_constcharptr_size_t_false): New.
      	* langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
      	LANG_HOOKS_MISSING_ARGUMENT): New.
      	(LANG_HOOKS_INITIALIZER): Update.
      	* langhooks.h (struct lang_hooks): Add handle_filename and
      	missing_argument.
      	* opts.c (handle_option): Don't handle filenames here, but ...
      	(handle_options): ... here.
      	(common_handle_option): Don't handle missing arguments here.
      	* objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
      	LANG_HOOKS_MISSING_ARGUMENT): New.
      ada:
      	* misc.c (gnat_handle_option): Don't handle filenames.
      cp:
      	* cp-lang.c (LANG_HOOKS_HANDLE_FILENAME,
      	LANG_HOOKS_MISSING_ARGUMENT): Override.
      f:
      	* top.c (ffe_handle_option): Don't handle filenames.
      java:
      	* lang.c (java_handle_option): Don't handle filenames.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69011 138bc75d-0d04-0410-961f-82ee72b054a4
      76bf7746
  24. 04 Jul, 2003 1 commit
  25. 02 Jul, 2003 1 commit
    • neil's avatar
      * c-common.h (c_common_init_options): New prototype. · 4838a8b6
      neil authored
      	* c-opts.c (deferred_size): Remove.
      	(defer_opt): Array is now pre-allocated.
      	(c_common_init_options): Pre-allocate deferred_opts.  Make
      	lang_flags unsigned.
      	(push_command_line_options): Free deferred_opts.
      	* hooks.c (hook_uint_uint_constcharptrptr_0): New.
      	* hooks.h (hook_uint_uint_constcharptrptr_0): New.
      	* langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
      	* langhooks.h (struct lang_hooks): New prototype for init_options.
      	* main.c (main): Cast argv.
      	* opts.c (handle_option, handle_options): Update prototypes.
      	(decode_options): save_argc, save_argv are not global.  Constify.
      	* opts.h (decode_options): New prototype.
      	* toplev.c (general_init): New protoype.
      	(save_argv): Make static.
      	(save_argc): Remove.
      	(print_switch_values, general_init): Constify.
      	(toplev_main): Save argv.
      	* toplev.h (toplev_main): Update prototype.
      	(save_argc, save_argv): Remove.
      ada:
      	* misc.c (save_argc, save_argv): Make static.
      	(gnat_init_options): New prototype.
      	(gnat_init_options): Update.
      f:
      	* top.c (ffe_init_options): Update prototype.
      	* top.h (ffe_init_options): Update prototype.
      java:
      	* lang.c (java_init_options): Update prototype.
      treelang:
      	* tree1.c (treelang_init_options): Update prototype.
      	* treelang.h (treelang_init_options): Update prototype.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68850 138bc75d-0d04-0410-961f-82ee72b054a4
      4838a8b6
  26. 29 Jun, 2003 1 commit
  27. 28 Jun, 2003 1 commit
    • neil's avatar
      * Makefile.in: Update. · f5d971c5
      neil authored
      	* opts.c: Include tm_p.h.
      	(handle_options): Make static.
      	(decode_options): Copied from toplev.c.
      	* opts.h (decode_options): New.
      	* toplev.c (parse_options_and_default_flags): Move most to opts.c,
      	some to...
      	(general_init): ...here.
      	(toplev_main): Use decode_options instead.
      	* toplev.h (save_argc, save_argv): New.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68629 138bc75d-0d04-0410-961f-82ee72b054a4
      f5d971c5
  28. 27 Jun, 2003 1 commit
    • dpatel's avatar
      * final.c (debug_flush_symbol_queue): New function. · 262444a6
      dpatel authored
              (debug_queue_symbol): New function.
              (debug_free_queue): New function.
              (debug_nesting): New variable.
              (symbol_queue): New variable.
              (symbol_queue_index): Same.
              (symbol_queue_size): Same.
              * debug.h (debug_flush_symbol_queue): New.
              (debug_queue_symbol): New.
              (debug_free_queue): New.
              (debug_nesting): New.
              (symbol_queue_index): New.
              * dbxout.c (DBXOUT_DECR_NESTING): New macro.
              (DBXOUT_DECR_NESTING_AND_RETURN): New macro.
              (dbxout_init): Delay symbol output.
              (dbxout_global_decl): Save, set and reset TREE_USED bit around dbxout_symbol()
              call.
              (dbxout_begin_function): Same.
              (dbxout_finish): Free symbol queue.
              (dbxout_type): Put appropriate symbols in queue.
              (dbxout_symbol): Put info for symbol's type in queue. Decrement/Increment
              nesting counts flush symbol queue appropriately.
              (dbxout_parms): Increment dbxout nesting.
              (dbxout_reg_parms): Same.
              * flags.h (flag_debug_only_used_symbols): New.
              * toplev.c (flag_debug_only_used_symbols): New variable.
              (lang_independent_options): Add entries for new option -feliminate-unused-debug-symbols.
              * common.opt: Add entry for -feliminate-unused-debug-symbols.
              * opts.c (common_handle_options): Same.
              * config/rs6000/darwin.h (CC1_SPEC): Interpret -gused as -feliminate-unused-debug-symbols.
              * doc/invoke.texi (Debugging Options): Document -feliminate-unused-debug-symbols.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68556 138bc75d-0d04-0410-961f-82ee72b054a4
      262444a6
  29. 26 Jun, 2003 1 commit
    • neil's avatar
      * c-opts.c (missing_arg): Make non-static. · 29689179
      neil authored
      	(c_common_handle_option): Don't check for missing arguments.
      	* opts.c (handle_option): Check for missing arguments.
      ada:
      	* misc.c (gnat_handle_option): Don't check for missing arguments.
      f:
      	* top.c (ffe_handle_option): Don't check for missing arguments.
      java:
      	* lang.c (java_handle_option): Don't check for missing arguments.
      testsuite:
      	* const-str-2.m: Update.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68517 138bc75d-0d04-0410-961f-82ee72b054a4
      29689179
  30. 25 Jun, 2003 2 commits
  31. 22 Jun, 2003 3 commits
  32. 21 Jun, 2003 2 commits
    • neil's avatar
      * Makefile.in: Update. · 1e06725a
      neil authored
      	* common.opt: New switches.
      	* opts.c: Include diagnostic.h.
      	(common_handle_option): Handle new switches.
      	* toplev.c (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
      	flag_if_conversion2, flag_delete_null_pointer_checks,
      	flag_rerun_cse_after_loop): Make extern.
      	(flag_dummy): New.
      	(f_options): Update to use flag_dummy for moved options.
      	(decode_f_option): Some switches moved to opts.c.
      	* toplev.h (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
      	flag_if_conversion2, flag_delete_null_pointer_checks,
      	flag_rerun_cse_after_loop, flag_keep_static_consts, flag_peel_loops,
      	flag_tracer, flag_thread_jumps, flag_unroll_loops,
      	flag_unroll_all_loops, flag_unswitch_loops): New.
      f:
      	* lang.opt: Add -fpreprocessed.
      	* top.c (ffe_handle_option): Handle it.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68315 138bc75d-0d04-0410-961f-82ee72b054a4
      1e06725a
    • neil's avatar
      * Makefile.in: Update. · 941a4893
      neil authored
      	* c-opts.c (c_common_handle_option): Don't return -1.
      	* common.opt: New switches.
      	* opts.c: Include rtl.h, ggc.h and output.h.
      	(find_opt): Only stop searching when input switch compares
      	less than the stored switch.  Continue searching if greater.
      	(handle_option): No need to handle negative return values.
      	(common_handle_option): Handle new switches.
      	(set_fast_math_flags, fast_math_flags_set_p): New.
      	* toplev.c (set_fast_math_flags, fast_math_flags_set_p):
      	Move to opts.c.
      	(decode_f_option): Some switches moved to opts.c.
      	(parse_options_and_default_flags): No need to cater for negative
      	return values.
      f:
      	* top.c (ffe_handle_option): No need to return -1 any more.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68307 138bc75d-0d04-0410-961f-82ee72b054a4
      941a4893
  33. 20 Jun, 2003 1 commit
    • neil's avatar
      * c-decl.c (store_parm_decls): Make saved_warn_shadow boolean. · 6f2f567f
      neil authored
      	* common.opt: Add remaining -W options and -g.
      	* diagnostic.c (warnings_are_errors): Remove.
      	* flags.h: Make most warning flags boolean.
      	* opts.c (common_handle_option): Handle remaining -W options, and -g.
      	Move many warning flags from toplev.c, making them boolean.
      	* toplev.c: Remove many warning flags.
      	(decode_W_option): Remove.
      	(decode_g_option): Make extern.  Error on unknown switch.
      	(lang_independent_W_options): Use warn_dummy.
      	(independent_decode_option): Just handle -f switches now.
      	* toplev.h (decode_g_option): New.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68287 138bc75d-0d04-0410-961f-82ee72b054a4
      6f2f567f
  34. 18 Jun, 2003 1 commit
    • neil's avatar
      * Makefile.in: Update. · da3b1bab
      neil authored
      	* common.opt: New options.
      	* opts.c (maybe_warn_unused_parameter, set_Wextra, handle_param,
      	set_Wunused): New.
      	(common_handle_option): Handle new options.
      	* toplev.c (set_target_switch): Export.
      	(set_Wextra, set_Wunused, maybe_warn_unused_parameter): Move to opts.c.
      	(decode_W_option): -Wunused and -Wextra handled in opts.c now.
      	(independent_decode_option): More options handled in opts.c now.
      	Change prototype.
      	* toplev.h (set_target_switch): New.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68138 138bc75d-0d04-0410-961f-82ee72b054a4
      da3b1bab