aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2007-02-15Make-lang.in (JAVA_MANFILES): Add doc/gc-analyze.1.David Daney3-5/+103
gcc/java: 2007-02-15 David Daney <ddaney@avtrex.com> * Make-lang.in (JAVA_MANFILES): Add doc/gc-analyze.1. (java.maintainer-clean):Add gc-analyze.1. (.INTERMEDIATE): Add gc-analyze.pod. (gc-analyze.pod): New rule. (java.install-man): Install gc-analyze.1 * gcj.texi: Add new section for the gc-analyze program. libjava: 2007-02-15 Johannes Schmidt <jschmidt@avtrex.com> David Daney <ddaney@avtrex.com> * configure.ac: Create vm-tools-packages file. Add gnu/gcj/tools/gc_analyze to standard.omit and vm-tools-packages. Check for /proc/self/maps. * Makefile.am (bin_PROGRAMS): Added gc-analyze. (gc_analyze_SOURCES): New. (gc_analyze_LDFLAGS): New. (gc_analyze_LINK): New. (gc_analyze_LDADD): New. (gc_analyze_DEPENDENCIES): New. (nat_source_files): Add gnu/gcj/util/natGCInfo.cc. * Makefile.in: Regenerated. * configure: Regenerated. * include/config.h.in: Regenerated. * sources.am: Regenerated. * scripts/makemake.tcl: Don't include gc-analyze classes in libgcj. * gnu/gcj/tools/gc_analyze/SymbolLookup.java: New. * gnu/gcj/tools/gc_analyze/ObjectMap.java: New. * gnu/gcj/tools/gc_analyze/MemoryMap.java: New. * gnu/gcj/tools/gc_analyze/SymbolTable.java: New. * gnu/gcj/tools/gc_analyze/BlockMap.java: New. * gnu/gcj/tools/gc_analyze/BytePtr.java: New. * gnu/gcj/tools/gc_analyze/ItemList.java: New. * gnu/gcj/tools/gc_analyze/ToolPrefix.java: New. * gnu/gcj/tools/gc_analyze/MemoryAnalyze.java: New. * gnu/gcj/util/GCInfo.java: New. * gnu/gcj/util/GCInfo.h: New. * gnu/gcj/util/natGCInfo.cc: New. * gnu/gcj/util/UtilPermission.java: New. * gnu/gcj/util/UtilPermission.h: New. * classpath/tools/gnu/gcj/tools/gc_analyze/SymbolTable.class: New. * classpath/tools/gnu/gcj/tools/gc_analyze/ObjectMap$ObjectItem.class: New. * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap$RangeComparator.class: New. * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap$PtrMarks.class: New. * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap$Range.class: New. * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap.class: New. * classpath/tools/gnu/gcj/tools/gc_analyze/BytePtr.class: New. * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$SubstringComparator.class: New. * classpath/tools/gnu/gcj/tools/gc_analyze/ItemList.class: New. * classpath/tools/gnu/gcj/tools/gc_analyze/ToolPrefix.class: New. * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze.class: New. * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$1$Info.class: New. * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$1.class: New. * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$2.class: New. * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$3.class: New. * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$4.class: New. * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryAnalyze$OptionParser.class: New. * classpath/tools/gnu/gcj/tools/gc_analyze/BlockMap$SizeKind.class: New. * classpath/tools/gnu/gcj/tools/gc_analyze/SymbolLookup.class: New. * classpath/tools/gnu/gcj/tools/gc_analyze/ObjectMap.class: New. * classpath/tools/gnu/gcj/tools/gc_analyze/MemoryMap.class: New. * classpath/lib/gnu/gcj/util/GCInfo.class: New. * classpath/lib/gnu/gcj/util/UtilPermission.class: New. libjava/classpath: 2007-02-15 David Daney <ddaney@avtrex.com> * tools/Makefile.am (TOOLS_ZIP): Add classes from vm-tools-packages. * tools/Makefile.in: Regenerated. From-SVN: r122007
2007-02-15jump.c (get_label_after): Delete.Paolo Bonzini4-287/+268
2007-02-15 Paolo Bonzini <bonzini@gnu.org> * jump.c (get_label_after): Delete. (get_label_before, delete_computation, delete_jump, delete_prior_computation, follow_jumps): Move... * reorg.c (delete_computation, delete_prior_computation): ... here... (get_label_before, delete_jump): ... making these static ... (follow_jumps): ... and simplifying this since it only runs after reload. * rtl.h (get_label_after, get_label_before, delete_jump, follow_jumps): Delete prototypes. From-SVN: r122003
2007-02-15caller-save.c (save_call_clobbered_regs): Do not process sibcalls.Paolo Bonzini2-6/+7
2007-02-15 Paolo Bonzini <bonzini@gnu.org> * caller-save.c (save_call_clobbered_regs): Do not process sibcalls. From-SVN: r121998
2007-02-15varasm.c (default_asm_output_anchor): Prepend * to . symbol in order to ↵Nick Clifton2-1/+6
prevent it from being munged by the target. * varasm.c (default_asm_output_anchor): Prepend * to . symbol in order to prevent it from being munged by the target. From-SVN: r121992
2007-02-15* config/i386/i386.md: Remove misleading comment.Uros Bizjak2-3/+4
From-SVN: r121991
2007-02-15math.f90: Fix typo.Jerry DeLisle2-1/+5
2007-02-15 Jerry DeLisle <jvdelisle@gcc.gnu.org> * gfortran.fortran-torture/execute/math.f90: Fix typo. From-SVN: r121984
2007-02-15re PR fortran/30779 ([4.1, 4.2 only] incomplete file triggers ICE)Jerry DeLisle2-0/+14
2007-02-15 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/30779 * gfortran.dg/error_recovery_3.f90: New test. From-SVN: r121983
2007-02-15re PR fortran/30779 ([4.1, 4.2 only] incomplete file triggers ICE)Jerry DeLisle2-0/+9
2007-02-14 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/30779 * scanner.c (gfc_next_char_literal): Add check for end of file after call to advance_line. From-SVN: r121982
2007-02-15frv.md (reload_incc, [...]): Remove invalid patterns.Alexandre Oliva2-60/+6
* config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns, reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove invalid patterns. From-SVN: r121981
2007-02-15tree-sra.c (instantiate_missing_elements): Canonicalize bit-field types.Alexandre Oliva4-9/+86
gcc/ChangeLog: * tree-sra.c (instantiate_missing_elements): Canonicalize bit-field types. (sra_build_assignment): New. (generate_copy_inout, generate_element_copy, generate_element_zero, generate_one_element_init): Use it. gcc/testsuite/ChangeLog: * g++.dg/tree-ssa/sra-1.C: New. From-SVN: r121980
2007-02-15dwarf2out.c (dwarf2out_finish): Accept namespaces as context of limbo die nodes.Alexandre Oliva5-1/+33
gcc/ChangeLog: * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of limbo die nodes. gcc/testsuite/ChangeLog: * g++.dg/ext/interface4.C, g++.dg/ext/interface4.h: New. From-SVN: r121979
2007-02-15nothrow-1.C: Skip test if -fpic/-fPIC is used.Kaveh R. Ghazi2-0/+5
* g++.dg/tree-ssa/nothrow-1.C: Skip test if -fpic/-fPIC is used. From-SVN: r121976
2007-02-15primary.c (match_logical_constant): Return MATCH_ERROR on invalid kind.Steven G. Kargl4-1/+41
2007-02-14 Steven G. Kargl <kargl@gcc.gnu.org> * primary.c (match_logical_constant): Return MATCH_ERROR on invalid kind. * gfortran.dg/logical_2.f90: New test. From-SVN: r121974
2007-02-15Daily bump.GCC Administrator1-1/+1
From-SVN: r121972
2007-02-14emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex types as ↵Joseph Myers5-3/+46
aggregates not scalars. * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex types as aggregates not scalars. * function.c (assign_stack_temp_for_type): Likewise. testsuite: * gcc.dg/torture/complex-alias-1.c: New test. From-SVN: r121968
2007-02-14tree-dump.c (dump_switch_p_1): Require exact match of the option name.Zdenek Dvorak4-1/+15
* tree-dump.c (dump_switch_p_1): Require exact match of the option name. * gcc.dg/tree-prof/update-tailcall.c: Use -fdump-tree-tailc instead of -fdump-tree-tailcall. From-SVN: r121967
2007-02-14passes.c (next_pass_1): Clear the next field of the copied pass structure.Zdenek Dvorak2-2/+8
* passes.c (next_pass_1): Clear the next field of the copied pass structure. From-SVN: r121966
2007-02-14Fix a potential buffer overflow.Steven G. Kargl2-1/+6
From-SVN: r121958
2007-02-14* gfortran.dg/interface_10.f90: Fix comment typo.Brooks Moses2-1/+5
From-SVN: r121956
2007-02-14tree-sra.c (early_sra): New.Richard Henderson4-1/+56
* tree-sra.c (early_sra): New. (decl_can_be_decomposed_p): Deny va_list if early_sra. (tree_sra_early, pass_sra_early): New. * tree-pass.h (pass_sra_early): Declare. * passes.c (init_optimization_passes): Use it. From-SVN: r121953
2007-02-14flags.h (issue_strict_overflow_warning): Convert to a macro.Richard Biener2-7/+6
2007-02-14 Richard Guenther <rguenther@suse.de> * flags.h (issue_strict_overflow_warning): Convert to a macro. From-SVN: r121951
2007-02-14re PR tree-optimization/30771 (ice for legal code with -O2 -ftree-vectorize)Dorit Nuzman4-27/+100
PR tree-optimization/30771 * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse also phi nodes. (vect_analyze_operations): Induction phis can now be marked as used_in_loop. (vect_mark_stmts_to_be_vectorized): No special treatment for phis. Update documentation accordingly. From-SVN: r121950
2007-02-14builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at most 3 ↵Nick Clifton2-2/+8
arguments are supported. * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at most 3 arguments are supported. (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description. From-SVN: r121946
2007-02-14bitmap.c (bitmap_and, [...]): Ensure dst->current is valid.Seongbae Park2-0/+11
2007-02-13 Seongbae Park <seongbae.park@gmail.com> * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor): Ensure dst->current is valid. From-SVN: r121903
2007-02-14config.gcc: Add arm*-*-uclinux-*eabi.Paul Brook7-31/+134
2007-02-13 Paul Brook <paul@codesourcery.com> gcc/ * config.gcc: Add arm*-*-uclinux-*eabi. * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define. (SUBTARGET_EXTRA_LINK_SPEC): Define. (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling. (LINK_GCC_C_SEQUENCE_SPEC): Undef. (LINK_SPEC): Define. (LIB_SPEC): Define. * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC register. * config/arm/uclinux-eabi.h: New file. * config/arm/linux-eabi.h (WCHAR_TYPE): Remove. * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS based targets. From-SVN: r121902
2007-02-14Daily bump.GCC Administrator1-1/+1
From-SVN: r121900
2007-02-13common.opt: Add Wstrict-overflow and Wstrict-overflow=.Ian Lance Taylor31-179/+1139
./: * common.opt: Add Wstrict-overflow and Wstrict-overflow=. * flags.h (warn_strict_overflow): Declare. (enum warn_strict_overflow_code): Define. (issue_strict_overflow_warning): New static inline function. * opts.c (warn_strict_overflow): New variable. (common_handle_option): Handle OPT_Wstrict_overflow and OPT_Wstrict_overflow_. * c-opts.c (c_common_handle_option): Set warn_strict_overflow for OPT_Wall. * fold-const.c: Include intl.h. (fold_deferring_overflow_warnings): New static variable. (fold_deferred_overflow_warning): New static variable. (fold_deferred_overflow_code): New static variable. (fold_defer_overflow_warnings): New function. (fold_undefer_overflow_warnings): New function. (fold_undefer_and_ignore_overflow_warnings): New function. (fold_deferring_overflow_warnings_p): New function. (fold_overflow_warning): New static function. (make_range): Add strict_overflow_p parameter. Change all callers. (extract_muldiv, extract_muldiv_1): Likewise. (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling tree_expr_nonnegative_p. (fold_negate_expr): Call fold_overflow_warning. (fold_range_test): Likewise. (fold_comparison): Likewise. (fold_binary): Likewise. Call tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p. (tree_expr_nonnegative_warnv_p): Rename from tree_expr_nonnegative_p, add strict_overflow_p parameter. (tree_expr_nonnegative_p): New function. (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add strict_overflow_p parameter. (tree_expr_nonzero_p): New function. * passes.c (verify_interpass_invariants): New static function. (execute_one_pass): Call it. * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold warnings. (number_of_iterations_exit, loop_niter_by_eval): Likewise. (estimate_numbers_of_iterations): Likewise. (scev_probably_wraps_p): Likewise. * tree-ssa-ccp.c: Include "toplev.h". (evaluate_stmt): Defer fold overflow warnings until we know we are going to optimize. (struct fold_stmt_r_data): Add stmt field. (fold_stmt_r): Defer fold overflow warnings until we know we optimized. (fold_stmt): Initialize stmt field of fold_stmt_r_data. (fold_stmt_inplace): Likewise. * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h". (cleanup_control_expr_graph): Defer fold overflow warnings until we know we are going to optimize. * tree-cfg.c (fold_cond_expr_cond): Likewise. * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise. * tree-vrp.c (vrp_expr_computes_nonnegative): Call tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p. * tree-ssa-loop-manip.c (create_iv): Likewise. * c-typeck.c (build_conditional_expr): Likewise. (build_binary_op): Likewise. * tree-vrp.c (vrp_expr_computes_nonzero): Call tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p. (extract_range_from_unary_expr): Likewise. * simplify-rtx.c (simplify_const_relational_operation): Warn when assuming that signed overflow does not occur. * c-common.c (pointer_int_sum): Ignore fold overflow warnings. * tree.h (tree_expr_nonnegative_warnv_p): Declare. (fold_defer_overflow_warnings): Declare. (fold_undefer_overflow_warnings): Declare. (fold_undefer_and_ignore_overflow_warnings): Declare. (fold_deferring_overflow_warnings_p): Declare. (tree_expr_nonzero_warnv_p): Declare. * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list of warning options. (Warning Options): Document -Wstrict-overflow. * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h. (tree-ssa-ccp.o): Likewise. (tree-cfgcleanup.o): Change errors.h dependency to toplev.h. (fold-const.o): Depend on intl.h. testsuite/: * gcc.dg/Wstrict-overflow-1.c: New test. * gcc.dg/Wstrict-overflow-2.c: New test. * gcc.dg/Wstrict-overflow-3.c: New test. * gcc.dg/Wstrict-overflow-4.c: New test. * gcc.dg/Wstrict-overflow-5.c: New test. * gcc.dg/Wstrict-overflow-6.c: New test. * gcc.dg/Wstrict-overflow-7.c: New test. * gcc.dg/Wstrict-overflow-8.c: New test. * gcc.dg/Wstrict-overflow-9.c: New test. * gcc.dg/Wstrict-overflow-10.c: New test. From-SVN: r121895
2007-02-13re PR middle-end/30751 (internal compiler error: in extract_insn, at ↵Ian Lance Taylor2-1/+24
recog.c:2108) PR middle-end/30751 * lower-subreg.c (resolve_simple_move): Decompose subregs in addresses. From-SVN: r121894
2007-02-13builtin-bswap-2.c: New test case.Roger Sayle2-0/+13
* gcc.target/ia64/builtin-bswap-2.c: New test case. From-SVN: r121892
2007-02-13* gcc/config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.Stuart Hastings2-1/+5
From-SVN: r121891
2007-02-13alpha.c (alpha_stdarg_optimize_hook): Strip handled_component_p before ↵Richard Henderson2-4/+15
looking for the indirect_ref. * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip handled_component_p before looking for the indirect_ref. From-SVN: r121886
2007-02-13pr29302-1.c: Moved from...Richard Henderson2-0/+5
* gcc.c-torture/execute/ieee/pr29302-1.c: Moved from... * gcc.c-torture/execute/pr29302-1.c: ... here. From-SVN: r121885
2007-02-13i386.md (bswapsi_1): Rename from bswapsi2, remove flags clobber.Richard Henderson3-29/+129
* config/i386/i386.md (bswapsi_1): Rename from bswapsi2, remove flags clobber. (bswapsi2): New expander, emit code for !TARGET_BSWAP. (bswaphi_lowpart): New. (bswapdi2): Rename from bswapdi2_rex, remove flags clobber, remove TARGET_BSWAP test. Delete expander of the same name. * optabs.c (widen_bswap, expand_doubleword_bswap): New. (expand_unop): Use them. From-SVN: r121884
2007-02-13* config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,Uros Bizjak2-26/+37
*cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor, *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext, *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent assembler dialect choice from asm templates. From-SVN: r121883
2007-02-12i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.Richard Henderson5-45/+91
* config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn. (fixuns_trunc<SSEMODEF>si2): Use it. * config/i386/sse.md (vec_setv4sf_0): Export. * config/i386/i386.c (ix86_build_const_vector): Export. (ix86_split_convert_uns_si_sse): Rename from ix86_expand_convert_uns_si_sse and rewrite as a splitter. * config/i386/i386-protos.h: Update. From-SVN: r121877
2007-02-13re PR c/29521 (Confusing warning for return with expression in function ↵Manuel López-Ibáñez5-1/+44
returning void) 2007-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org> PR c/29521 * c-typeck.c (c_finish_return): Improve warning message. testsuite/ * gcc.dg/c90-return-1.c: Update output. * gcc.dg/c99-return-1.c: Likewise. From-SVN: r121876
2007-02-13Daily bump.GCC Administrator1-1/+1
From-SVN: r121873
2007-02-13alias.c (find_symbolic_term): Delete unused function.Manuel López-Ibáñez2-34/+4
2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org> * alias.c (find_symbolic_term): Delete unused function. From-SVN: r121869
2007-02-12friend.c (do_friend): Annotate warning about friend declarations in ↵Dirk Mueller2-6/+11
templates with... 2007-02-13 Dirk Mueller <dmueller@suse.de> * friend.c (do_friend): Annotate warning about friend declarations in templates with OPT_Wnon_template_friend. Convert informal message from warning() to inform(). From-SVN: r121867
2007-02-12[multiple changes]Paul Thomas4-6/+65
2007-02-13 Paul Thomas <pault@gcc.gnu.org> PR fortran/30554 * module.c (read_module): Set pointer_info to referenced if the symbol has no namespace. 2007-02-12 Paul Thomas <pault@gcc.gnu.org> PR fortran/30554 * gfortran.dg/used_dummy_types_7.f90: New test. From-SVN: r121865
2007-02-12re PR c++/14622 (type mismatch in explicit template instantiation not detected)Simon Martin5-2/+38
PR c++/14622 * pt.c (do_decl_instantiation): Detect type mismatches in explicit instantiations for variables. Co-Authored-By: Mark Mitchell <mark@codesourcery.com> From-SVN: r121864
2007-02-12i386.md (paritydi2, paritysi2): New expanders.Uros Bizjak5-2/+153
* config/i386/i386.md (paritydi2, paritysi2): New expanders. (paritydi2_cmp, paritydi2_cmp): New insn and split patterns. (*parityhi2_cmp, *parityqi2_cmp): New insn patterns. testsuite/ChangeLog: * gcc.target/i386/parity-1.c: New test. * gcc.target/i386/parity-2.c: New test. From-SVN: r121863
2007-02-12tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.Eric Botcazou3-1/+24
* tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL. * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on the function, temporarily point the debug interface to the null one. From-SVN: r121861
2007-02-12Remove executable bits.Richard Henderson2-0/+0
From-SVN: r121860
2007-02-12dwarf2out.c (round_up_to_align): New static function.Eric Botcazou2-6/+27
* dwarf2out.c (round_up_to_align): New static function. (field_byte_offset): Use it to round the offset. From-SVN: r121859
2007-02-12* sv.po: Update.Joseph Myers2-393/+416
From-SVN: r121857
2007-02-12alpha.md (bswapsi2, bswapdi2): New.Richard Henderson2-1/+60
* config/alpha/alpha.md (bswapsi2, bswapdi2): New. (inswl_const): Export. From-SVN: r121853
2007-02-12calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the result mode ↵Richard Henderson2-3/+23
of the libcall, convert back to outmode. * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the result mode of the libcall, convert back to outmode. From-SVN: r121852
2007-02-12i386.md (*bswapdi2_rex): Renamed from bswapdi2.Roger Sayle4-1/+38
* config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2. (bswapdi2): New define_expand to implement 32-bit implementation. * gcc.target/i386/builtin-bswap-3.c: New test case. From-SVN: r121851
2007-02-12invoke.texi (Overall Options): Document --help=.Nick Clifton11-575/+895
* doc/invoke.texi (Overall Options): Document --help=. * gcc.c (target_help_flag): Rename to print_subprocess_flag. (cc1_options): Pass --help= on to cc1. (display_help): Add description of --help=. (process_command): Add code to handle --help=. Allow translated --help and --target-help switches to be passed on to compiler sub-process. (main): Remove unused if statement. * opts.c (columns): Remove. (LEFT_COLUMN): Define. (wrap_help): Add columns argument. (print_filtered_help): Change parameters to be an include bitmask, an exclude bitmask, an any bitmask and the column width. Move the code to display the params list here. Add code to display the status of options rather than their descriptions if the quiet flag is not active. (print_specific_help): Change parameters to be an include bitmask, an exclude bitmask and an any bitmask. Move code to look up the column width here. Decide upon the title for an options listing. (common_handle_options): Add code to handle --help=. Adapt code for --help and --target-help to use the revised form of the print_specific_help function. (print_help): Delete. (print_param_help): Delete. (print_switch): Delete. * opts.h (cl_lang_count): Add prototype. (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS, CL_MAX_OPTION_CLASS): New defines. * optc-gen.awk: Add construction of cl_lang_count. * c.opt: Add Warning attribute to warning options and Optimization attribute to optimization options. * common.opt: Likewise. Add --help=. Add -fhelp and -ftarget-help as aliases for the transformed --help and --target-help options. * opt-functions.awk: Add code to handle Warning and Optimization attributes. From-SVN: r121849