1. 28 May, 2002 21 commits
    • config/sh reorganization to factor out endianness and coff: · f1a58d92
      	* config/sh/little.h: New file.
              * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
              defined, define to 0 to select big-endian.
      	(SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
              (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
              * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
              * config/sh/t-be: New file.
              * config/sh/t-le: New file.
      
      	* sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
      	(SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
      	(TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
      	(USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
      	(ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
      	(ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
      	(ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
      	(CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
      	(SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
      	(EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
      	CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
      	SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
      	(LINK_SPEC): Define to SH_LINK_SPEC.
      	(TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
      	(LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
      	(SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
      	(CPP_SPEC): Reduce to %(subtarget_cpp_spec).
      	(TARGET_ENDIAN_DEFAULT): Define if not already defined.
      	* config/sh/coff.h: New file.
      	(TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
      	(TARGET_OBJFMT_CPP_BUILTINS): Define.
      	* config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
      	(ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
      	(DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
      	(ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
      	(PTRDIFF_TYPE): Likewise.
      	("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
      	(CPP_PREDEFINES): Don't define.
      	(TARGET_OBJFMT_CPP_BUILTINS): Define.
      	(LINK_SPEC): Define to SH_LINK_SPEC.
      	(LINK_EMUL_PREFIX): Redefine.
      	* config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
      	(SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
      	(CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
      	(CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
      	(TARGET_OS_CPP_BUILTINS): Define.
      	(TARGET_DEFAULT): Redefine.
      	(SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
      	* config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
      	(LINK_SPEC): Don't redefine.
      	(LINK_DEFAULT_CPU_EMUL): Redefine.
      	(TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
      	* sh.c (sh_asm_named_section): Don't declare / define.
      	* t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
      	* config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
      	(sh64-*-elf* tm_file): Likewise.
      	(sh-*-rtemself* tm_file): Likewise.
      	(sh-*-linux* tm_file): Likewise.  Add sh/little.h.
      	(sh-*-linux* tmake_file): Add sh/t-le.
      	(sh-*-rtems* tm_file): Add sh/coff.h
      	(sh-*-* tm_file): Likewise.
      
      
      	* sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
      	CONSTANT_POOL_ADDRESS_P.
      
      	* coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
      
      Co-Authored-By: Jason R. Thorpe <thorpej@wasabisystems.com>
      
      From-SVN: r53974
      J"orn Rennecke committed
    • sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P. · 33a3dfc4
              * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
              * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
      
      Co-Authored-By: Jeff Law <law@redhat.com>
      
      From-SVN: r53973
      David Edelsohn committed
    • openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove, inherited from gas.h. · 972957ba
      	* config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
      	inherited from gas.h.
      	(ASM_QUAD):  Undef.  OpenBSD does not support it.
      
      From-SVN: r53971
      Marc Espie committed
    • install.texi (binaries): Change mingw binaries link to www.mingw.org. · cc92b8ab
      	* doc/install.texi (binaries): Change mingw binaries
      	link to www.mingw.org.
      
      From-SVN: r53968
      Danny Smith committed
    • * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i. · f8088d55
      From-SVN: r53967
      Zdenek Dvorak committed
    • i386.c (ix86_compute_frame_layout): Do not add bottom alignment for leaf functions. · 0b7ae565
              * config/i386/i386.c (ix86_compute_frame_layout): Do not add
              bottom alignment for leaf functions.
      
      From-SVN: r53965
      Richard Henderson committed
    • milli32.S, [...]: Delete unused files. · 16069d69
      	* config/pa/milli32.S, config/pa/lib1funcs.asm,
      	config/sparc/sol2-g1.asm: Delete unused files.
      
      From-SVN: r53964
      Zack Weinberg committed
    • varasm.c (default_binds_local_p): Check TREE_PUBLIC before DECL_EXTERNAL. · 923c7cdf
              * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
              DECL_EXTERNAL.
      
      From-SVN: r53963
      Richard Henderson committed
    • flow.c (calculate_global_regs_live): Rename call_used to invalidated_by_call. · f3ea5f6a
              * flow.c (calculate_global_regs_live): Rename call_used to
              invalidated_by_call.  Initialize from regs_invalidated_by_call
              instead of call_used_regs.
      
      From-SVN: r53962
      Richard Henderson committed
    • configure.in (noconfigdirs): Don't compile libiberty, libstdcxx and libgcj for AVR. · 6ff14f32
      
      	* configure.in (noconfigdirs): Don't compile libiberty, libstdcxx
      	and libgcj for AVR.
      
      From-SVN: r53960
      Marek Michalkiewicz committed
    • tree.h: Forward-declare struct realvaluetype. · 11ad4784
      	* tree.h: Forward-declare struct realvaluetype.
      	(struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
      	contain it.
      	(TREE_REAL_CST_PTR): New accessor.
      	(TREE_REAL_CST): Update.
      	* real.h: Include machmode.h.
      	(realvaluetype): Make it struct realvaluetype, not a typedef.
      	(build_real): Prototype here.
      
      	* tree.c: Include real.h.
      	(build_real): Allocate the REAL_VALUE_TYPE as a separate
      	object in GC memory, set TREE_REAL_CST_PTR to point to it.
      	(build_real_from_int_cst): Use build_real.
      	* ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
      	REAL_CST.
      
      	* builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
      	fold-const.c, print-tree.c, real.c, cp/mangle.c, cp/tree.c,
      	f/bld.c, f/com.c, f/expr.c, f/target.c, java/decl.c,
      	java/jcf-parse.c, java/parse.y, java/typeck.c: Include real.h.
      	* Makefile.in, cp/Make-lang.in, f/Make-lang.in,
      	java/Make-lang.in: Update dependency lists.
      
      From-SVN: r53959
      Zack Weinberg committed
    • basic-block.h (last_basic_block): Declare. · bf77398c
      	* basic-block.h (last_basic_block): Declare.
      	(expunge_block_nocompact): Declaration removed.
      	(compact_blocks): Declare.
      	* cfg.c (last_basic_block): New variable.
      	(expunge_block_nocompact): Removed.
      	(expunge_block): Do not compact basic blocks.
      	(compact_blocks): New.
      	* cfganal.c (flow_call_edges_add): Use the fact that bb indices no
      	longer change.
      	* cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
      	last_basic_block.
      	* cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
      	real positions of blocks.
      	(delete_unreachable_blocks): Simplified -- quadratic behavior now
      	cannot occur.
      	(cleanup_cfg): Compact blocks.
      	* cfgrtl.c (create_basic_block): Insert basic blocks to the end of
      	basic_block_info varray.
      	(flow_delete_block): Comment update.
      	(back_edge_of_syntactic_loop_p): Modify position check code.
      	(verify_flow_info): Update checking.
      	* flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
      	* ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
      	(find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
      	indices no longer change.
      	* lcm.c (optimize_mode_switching): Replace n_basic_blocks with
      	last_basic_block.
      	* predict.c (estimate_bb_frequencies): Remove unneccessary code.
      	* profile.c (branch_prob): Compact blocks.
      	* sched-rgn.c (find_rgns): Replace n_basic_blocks with
      	last_basic_block.
      
      From-SVN: r53957
      Zdenek Dvorak committed
    • * config/h8300/h8300.md (two anonymous patterns): New. · ae12a094
      From-SVN: r53955
      Kazu Hirata committed
    • sparc.md (cpu): Tidy. · c6172f14
      2002-05-28  David S. Miller  <davem@redhat.com>
      
      	* config/sparc/sparc.md (cpu): Tidy.
      	(type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
      	'trap'.
      	(in_call_delay): Delete reference to 'return' type.
      	(eligible_for_return_delay, in_return_delay, define_delay
      	referencing those): Delete.
      	(rest of file): Use new type attributes as appropriate.
      	* config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
      	* config/sparc/sparc.c (eligible_for_return_delay): Likewise.
      	* config/sparc/ultra1_2.md (us1_single): New reservation.
      	(us1_ialuX): Likewise.
      	* config/sparc/ultra3.md (us3_single): Likewise.
      	(us3_ialuX): Likewise.
      	(us3_imul, us3_idiv): Tweak.
      
      From-SVN: r53953
      David S. Miller committed
    • alpha.c (alpha_in_small_data_p): Return false for STRING_CST. · 34a6c2ec
              * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
              STRING_CST.
      
      From-SVN: r53952
      Richard Henderson committed
    • Daily bump. · 62b14292
      From-SVN: r53951
      GCC Administrator committed
    • Fix last commit. Sorry about that. · 4075db8f
      From-SVN: r53946
      Bo Thorsen committed
    • * config.gcc: Obsolete mn10200. · 9c075570
      From-SVN: r53944
      Richard Henderson committed
    • cppexp.c (interpret_number): Optimize for single-digit and less-than-half-precision cases. · 359b0bec
      	* cppexp.c (interpret_number): Optimize for single-digit
      	and less-than-half-precision cases.
      	(num_trim, num_positive, num_div_op): Cast constants.
      
      From-SVN: r53943
      Neil Booth committed
    • * src/x86/ffi.c (ffi_prep_args): Remove reference to avn. · ee4586c5
      From-SVN: r53942
      Roger Sayle committed
  2. 27 May, 2002 19 commits
    • c-common.c: Add support for __attribute__((nothrow)) to specify that a function cannot... · 39f2f3c8
      
      	* c-common.c: Add support for __attribute__((nothrow)) to specify
      	that a function cannot throw an exception (using TREE_NOTHROW).
      	(handle_nothrow_attribute): New function to process this attribute.
      
      	* doc/extend.texi: Document the new nothrow function attribute.
      
      2002-05-27  Richard Henderson  <rth@redhat.com>
      
      	* g++.dg/ext/attrib6.C: New test case.
      
      From-SVN: r53940
      Roger Sayle committed
    • cppexp.c (num_trim): Use 1UL instead of 1 for long int. · d51b0053
      2002-05-27  H.J. Lu  (hjl@gnu.org)
      
      	* cppexp.c (num_trim): Use 1UL instead of 1 for long int.
      	(num_positive): Likewise.
      	(num_div_op): Likewise.
      
      From-SVN: r53939
      H.J. Lu committed
    • * testsuite/gcc.dg/cpp/arith-3.c: Need -std=c99. · 2530d6aa
      From-SVN: r53938
      Neil Booth committed
    • * gcc.c-torture/execute/pure-1.c: New test. · ef72b1d3
      From-SVN: r53937
      Kaveh R. Ghazi committed
    • c-common.c (c_common_init): Always use intmax_t. · 630363b4
      	* c-common.c (c_common_init): Always use intmax_t.
      testsuite:
      	* gcc.dg/cpp/arith-2.c: Remove.
      	* gcc.dg/cpp/arith-3.c: Don't set std=c99.
      
      From-SVN: r53936
      Neil Booth committed
    • * c-common.c (c_common_init): Use intmax_t for now. · d94cde01
      From-SVN: r53935
      Neil Booth committed
    • misc-inst.cc: Define unnecessary algorithm instantiations. · 248a9163
      c
      2002-05-27  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* src/misc-inst.cc: Define unnecessary algorithm
      	instantiations. Break apart instantiations into groupings below.
      	* src/fstream-inst.cc: New.
      	* src/io-inst.cc: New.
      	* src/istream-inst.cc: New.
      	* src/ostream-inst.cc: New.
      	* src/streambuf-inst.cc: New.
      	* src/sstream-inst.cc: New.
      	* src/Makefile.am (sources): Add files.
      	* src/Makefile.in: Regenerate.
      
      	* acinclude.m4: Work around automake 1.4-p5 bug, change
      	AM_GNU_GETTEXT in comments to AM-GNU-GETTEXT.
      
      From-SVN: r53930
      Benjamin Kosnik committed
    • fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c if T is a boolean type. · 57f851a3
      2002-05-24  Andrew Haley  <aph@redhat.com>
      
              * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
              if T is a boolean type.
      
      From-SVN: r53929
      Andrew Haley committed
    • Add this file from last commit · 1802ffac
      From-SVN: r53928
      Bo Thorsen committed
    • libgcc-x86_64-glibc.ver: Copy this file from the 3.1 branch. · 96842bcd
      2002-05-23  Bo Thorsen  <bo@suse.de>
      
              * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
      	3.1 branch. The file was made by Jakub Jelinek.
      	* config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
      	support so multilib doesn't break. And don't define this at all
      	when -Dinhibit_libc is used.
      	(MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
      	* config/i386/t-linux64: Implement full multilib support. Patch
      	originally done by Andreas Jaeger and Jakub Jelinek.
      
      From-SVN: r53927
      Bo Thorsen committed
    • ffi.c (ffi_prep_args): Remove unused variable and fix formatting. · b86aa7b0
      2002-05-27  Bo Thorsen  <bo@suse.de>
      
      	* src/x86/ffi.c (ffi_prep_args): Remove unused variable and
      	fix formatting.
      
      From-SVN: r53926
      Bo Thorsen committed
    • basic-block.h (last_basic_block): Defined as synonym for n_basic_blocks. · d55bc081
      	* basic-block.h (last_basic_block): Defined as synonym for
      	n_basic_blocks.
      	* cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
      	flow_depth_first_order_compute, flow_preorder_transversal_compute,
      	flow_dfs_compute_reverse_init): Replaced relevant occurences of
      	n_basic_blocks with last_basic_block.
      	* cfgbuild.c (make_edges): Likewise.
      	* cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
      	* cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
      	* combine.c (combine_instructions): Likewise.
      	* df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
      	iterative_dataflow_bitmap): Likewise.
      	* dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
      	calc_idoms, idoms_to_doms): Likewise.
      	* flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
      	Likewise.
      	* gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
      	compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
      	one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
      	one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
      	delete_null_pointer_checks, compute_code_hoist_vbeinout,
      	hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
      	compute_store_table, build_store_vectors): Likewise.
      	* haifa-sched.c (sched_init): Likewise.
      	* ifcvt.c (if_convert): Likewise.
      	* lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
      	pre_edge_lcm, compute_available, compute_nearerout,
      	compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
      	Likewise.
      	* predict.c (estimate_probability, process_note_prediction,
      	note_prediction_to_br_prob): Likewise.
      	* profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
      	* recog.c (split_all_insns, peephole2_optimize): Likewise.
      	* regrename.c (copyprop_hardreg_forward): Likewise.
      	* resource.c (init_resource_info): Likewise.
      	* sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
      	init_regions, schedule_insns): Likewise.
      	* ssa-ccp.c (ssa_const_prop): Likewise.
      	* ssa-dce.c (ssa_eliminate_dead_code): Likewise.
      	* ssa.c (compute_dominance_frontiers,
      	compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
      
      	* df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
      	* gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
      	sizes consistently.
      
      From-SVN: r53924
      Zdenek Dvorak committed
    • basic-block.h (can_hoist_p, [...]): new. · 71d2c5bd
      
      	* basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
      	new.
      	* rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
      	hoist_insn_after, hoist_insn_to_edge): New.
      
      From-SVN: r53923
      Jan Hubicka committed
    • re PR libstdc++/6795 (stringbuf failure) · bed1bd8c
      
      2002-05-27  Benjamin Kosnik  <bkoz@redhat.com>
      
      	PR libstdc++/6795.
      	* config/os/solaris/solaris2.6/bits/ctype_noninline.h
      	(classic_table): Fix.
      	* config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.
      
      2002-05-27  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* testsuite/22_locale/ctype_is_wchar_t.cc: Guard with
      	_GLIBCPP_USE_WCHAR_T.
      	* testsuite/22_locale/ctype_narrow_wchar_t.cc: Same.
      	* testsuite/22_locale/ctype_to_wchar_t.cc: Same.
      	* testsuite/22_locale/ctype_widen_wchar_t.cc: Same.
      
      From-SVN: r53921
      Benjamin Kosnik committed
    • basic-block.h (PEOP_SCAN_DEAD_STORES): New. · 5149f070
      
      	* basic-block.h (PEOP_SCAN_DEAD_STORES): New.
      	(PROP_FINAL): Include.
      	* flow.c (life_analysis, update_life_info,
      	init_propagate_block_info, mark_set_1, mark_used_rgs):
      	Support SCAN_DEAD_STORE.
      
      From-SVN: r53920
      Jan Hubicka committed
    • update_version (textstring_FILES): Change gcc/ada/gnatvsn.ads to gcc/gcc/ada/gnatvsn.ads. · c9715013
      	* update_version (textstring_FILES): Change gcc/ada/gnatvsn.ads to
      	gcc/gcc/ada/gnatvsn.ads.
      
      From-SVN: r53918
      Joseph Myers committed
    • Daily bump. · f34d240e
      From-SVN: r53917
      GCC Administrator committed
    • * testsuite/gcc.dg/cpp/if-3.c: Forgot to remove. · ded419a7
      From-SVN: r53912
      Neil Booth committed
    • c-common.c (c_common_init): Set CPP arithmetic precision. · c9220e3a
      	* c-common.c (c_common_init): Set CPP arithmetic precision.
      	* cppexp.c (cpp_num_part): Move typedef ...
      	* cpphash.h: ...here; make unsigned HOST_WIDE_INT.
      	* cppinit.c (cpp_create_reader): Default to host long arithmetic.
      	(sanity_checks): Update.
      testsuite:
      	* gcc.dg/cpp/arith-2.c, gcc.dg/cpp/arith-3.c: New tests.
      	* gcc.dg/cpp/if-3.c: Remove.
      
      From-SVN: r53911
      Neil Booth committed