1. 14 Dec, 2001 13 commits
  2. 13 Dec, 2001 22 commits
    • rs6000.c (rs6000_override_options): Add SUBSUBTARGET_OVERRIDE_OPTIONS. · 10baca6b
      
              * config/rs6000/rs6000.c (rs6000_override_options): Add
              SUBSUBTARGET_OVERRIDE_OPTIONS.
      
              * config/rs6000/eabialtivec.h: New file.
      
      	* config/rs6000/linuxaltivec.h: New file.
      
      	* config.gcc: Add powerpc-*-eabialtivec and
      	powerpc-*-linux-gnualtivec.
      
      From-SVN: r47981
      Aldy Hernandez committed
    • howto.html: Fix typos. · 855d2bdb
      2001-12-13  Phil Edwards  <pme@gcc.gnu.org>
      
      	* docs/html/ext/howto.html:  Fix typos.
      
      From-SVN: r47980
      Phil Edwards committed
    • toplev.c (process_options, [...]): Set flag_no_inline before the post_options hook. · a32274ad
      	* toplev.c (process_options, parse_options_and_default_flags):
      	Set flag_no_inline before the post_options hook.
      
      From-SVN: r47979
      Neil Booth committed
    • emit-rtl.c (adjust_address_1): Don't adjust address if adjust is false. · 4a78c787
              * emit-rtl.c (adjust_address_1): Don't adjust address if adjust
              is false.
      
      From-SVN: r47978
      Richard Henderson committed
    • template31.C: Remove templates for classes std::__malloc_alloc_template<0> and... · 72dd53af
      	* g++.old-deja/g++.jason/template31.C: Remove templates for classes
              std::__malloc_alloc_template<0> and
      	std::__default_alloc_template<false, 0>.
      
      From-SVN: r47977
      John David Anglin committed
    • * optimize.c (maybe_clone_body): Fix parameter updating. · 4a90862e
      From-SVN: r47976
      Jason Merrill committed
    • * collect2.c (COLLECT_SHARED_INIT_FUNC) · 414e05cf
      (COLLECT_SHARD_FINI_FUNC): Define default values.
      (write_c_file_stat): Use them to call construtor and destructor
      functions in shared libraries.
      * doc/tm.texi (COLLECT_SHARED_INIT_FUNC)
      (COLLECT_SHARD_FINI_FUNC): Document them.
      * config/netbsd.h (COLLECT_SHARED_INIT_FUNC)
      (COLLECT_SHARD_FINI_FUNC): Define.
      
      * config/netbsd.h (LINK_SPEC): Don't pull in estart if creating a
      shared library.  Pass -shared through to the linker.
      * config/arm/netbsd.h (LINK_SPEC): Likewise.
      
      * config/arm/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -fpic.
      (SHLIB_EXT, SHLIB_NAME, SHLIB_SONAME, SHLIB_OBJS, SHLIB_LINK)
      (SHLIB_INSTALL): Define.
      
      From-SVN: r47975
      Richard Earnshaw committed
    • Update whitespace. · 3a79cccb
      From-SVN: r47974
      Richard Kenner committed
    • arm.c (legitimize_pic_address): Handle LABEL_REFs in substantially the same way… · a3c48721
      arm.c (legitimize_pic_address): Handle LABEL_REFs in substantially the same way as we handle SYMBOL_REFS.
      
      * arm.c (legitimize_pic_address): Handle LABEL_REFs in substantially
      the same way as we handle SYMBOL_REFS.
      
      From-SVN: r47973
      Richard Earnshaw committed
    • loop.c (remove_constant_addition): Fix prototype and whitespace. · 62ab1caf
      	* loop.c (remove_constant_addition): Fix prototype and whitespace.
      	(emit_prefetch_instructions): Remove warnings and whitespace
      	changes.
      
      From-SVN: r47972
      Richard Kenner committed
    • New objc tests for bitfield enumeration ivars · c03bc36d
      From-SVN: r47971
      Nicola Pero committed
    • vms-cc.c (preprocess_args): Fix forward declaration. · c48f792c
      	* config/alpha/vms-cc.c (preprocess_args): Fix forward
      	declaration.
      
      From-SVN: r47970
      Douglas B Rupp committed
    • predict.c (estimate_probability): Reorganize opcode heuristics. · 0dd0e980
      	* predict.c (estimate_probability): Reorganize opcode heuristics.
      	* predict.def (PRED_OPCODE_POSITIVE, PRED_OPCODE_NONEQUAL,
      	PRED_FPOPCODE): New.
      
      	* i386.c (override_options): Recognize various CPU variants and set
      	SSE/MMX/3dNOW flags accordingly.
      	* i386.h (MASK_MMX_SET, MASK_SSE_SET, MASK_SSE2_SET, MASK_3DNOW_SET,
      	MASK_3DNOW_A_SET): New.
      	(MASK_ACCUMULATE_OUTGOING_ARGS_SET): New.
      	(MASK_NO_ACCUMULATE_OUTGOING_ARGS): Delete.
      	(MASK_*): Renumber.
      	(TARGET_FLAGS): Use new masks.
      	(CPP_CPU_SPECS): Recognize new CPU variants.
      	* invoke.texi (-mcpu): Update documentation.
      
      	* flags.h (flag_prefetch_loop_arrays): Declare.
      	* loop.h (LOOP_PREFETCH): Define new constant.
      	* loop.c (strength_reduce): Call emit_prefetch_instructions.
      	(MAX_PREFETCHES, PREFETCH_BLOCKS_BEFORE_LOOP_MAX,
      	PREFETCH_BLOCKS_BEFORE_LOOP_MIN, PREFETCH_BLOCKS_IN_LOOP_MIN): New
      	constants.
      	(check_store_data): New structure.
      	(check_store, emit_prefetch_instructions, rtx_equal_for_prefetch_p):
      	New functions.
      	* toplev.c: Include insn-flags.h.
      	(flag_prefetch_loop_arrays): New global variable.
      	(lang_independent_option): Add -fprefetch-loop-arrays.
      	(rest_of_compilation) Pass LOOP_PREFETCH when flag_prefetch_loop_arrays
              is set.
      	* Makefile.in (toplev.c): Depend on insn-flags.h.
      	* invoke.texi (-fprefetch-loop-arrays): Document.
      
      	* predict.c (estimate_probability): Distribute the loop exit
      	probability according to number of exit edges.
      
      	* cfgcleanup.c (insns_match_p): Break out from ...;
      	(flow_find_cross_jump): ... here;
      	(outgoing_edges_match): Add parameter MODE; attempt to match everything
      	except for tablejumps.
      	(try_crossjump_to_edge): Accept complex edges.
      	(try_crossjump_bb): Likewise.
      
      From-SVN: r47969
      Jan Hubicka committed
    • locale.cc (locale::locale(const char*)): Deal with locales named "". · 85230e52
      
      2001-12-13  Benjamin Kosnik  <bkoz@redhat.com>
      
      	libstdc++/3679
      	* src/locale.cc (locale::locale(const char*)): Deal with locales
      	named "".
      	* testsuite/22_locale/ctor_copy_dtor.cc (test01): Modify.
      
      From-SVN: r47968
      Benjamin Kosnik committed
    • Daily bump. · 3af44a8e
      From-SVN: r47966
      GCC Administrator committed
    • prims.cc (_Jv_RunMain): Use `using' to simplify code. · 4e41d148
      	* prims.cc (_Jv_RunMain): Use `using' to simplify code.  Set
      	_Jv_Jar_Class_Path early.
      
      From-SVN: r47965
      Tom Tromey committed
    • decl.c (store_parm_decls): Remove parms_have_cleanups cruft. · a0de9d20
              * decl.c (store_parm_decls): Remove parms_have_cleanups cruft.
              * semantics.c (genrtl_start_function): Don't pass
              parms_have_cleanups or push an extra binding level.
              (genrtl_finish_function): Lose cleanup_label cruft.
      
              * cp-tree.h (struct cp_language_function): Remove x_ctor_label.
              (ctor_label): Remove.
              * semantics.c (finish_return_stmt): Lose ctor_label support.
              * decl.c (finish_constructor_body, mark_lang_function): Likewise.
              * typeck.c (check_return_expr): Check DECL_DESTRUCTOR_P, not
              dtor_label.
      
              * call.c (build_new_method_call): Let resolves_to_fixed_type_p
              check for [cd]tors.
              * class.c (fixed_type_or_null, case INDIRECT_REF): Fix.
      
              * decl.c (finish_function): Check VMS_TARGET, not VMS.
      
              * decl.c (start_cleanup_fn): Remove redundant pushlevel.
              (end_cleanup_fn): And poplevel.
      
              * semantics.c (setup_vtbl_ptr): Always build a CTOR_INITIALIZER
              if we're in a template.
      
      From-SVN: r47962
      Jason Merrill committed
    • recog.c (validate_replace_rtx_1): Use simplify_gen_binary instead of plus_constant. · aff8a8d5
              * recog.c (validate_replace_rtx_1): Use simplify_gen_binary
              instead of plus_constant.
              * simplify-rtx.c (neg_const_int): New.
              (simplify_gen_binary, simplify_plus_minus): Use it.
      
      From-SVN: r47961
      Corey Minyard committed
    • builtins.c (expand_builtin_memset, [...]): Additional arguments TARGET and MODE. · c2bd38e8
              * builtins.c (expand_builtin_memset, expand_builtin_memcpy,
              expand_builtin_strcpy): Additional arguments TARGET and MODE.
              (expand_builtin_bzero, expand_builtin_strcpy,
              expand_builtin_strncpy, expand_builtin_bzero): Pass additional
              TARGET and MODE parameters to the above functions.
              (expand_builtin_memset, expand_builtin_memcpy): Optimize the
              case where the LEN parameter is constant zero.
              (expand_builtin_memcmp): No longer conditional on
              HAVE_cmpstrsi.  Take an additional mode parameter.  Optimize
              the cases where len is either constant zero or one.
              Optimize to call to memcpy, even if the memcpy isn't inlined.
              (expand_builtin_strncpy): Optimize to call memcpy, even if the
              memcpy isn't inlined.
              (expand_builtin_strcmp, expand_builtin_strncmp): Always attempt
              to optimize to a call to memcmp.
              (expand_builtin): expand_builtin_memcmp can always be called,
              and pass the required parameters to expand_builtin_memcmp,
              expand_builtin_memset, expand_builtin_memcpy and
              expand_builtin_strcpy.
      
              * gcc.c-torture/execute/string-opt-14.c: New test case.
              * gcc.c-torture/execute/string-opt-15.c: New test case.
      
      From-SVN: r47960
      Roger Sayle committed
    • ropeimpl.h (rope::_S_leaf_concat_char_iter, [...]): Adjust implicit typename. · 897bb55f
      2001-12-12  Paolo Carlini  <pcarlini@unitus.it>
      
      	* include/ext/ropeimpl.h (rope::_S_leaf_concat_char_iter,
      	_S_destr_leaf_concat_char_iter, _S_tree_concat, _S_concat_char_iter,
      	_S_destr_concat_char_iter, _S_concat, _S_substring, _S_balance)
      	: Adjust implicit typename.
      	* include/ext/stl_rope.h (_Rope_iterator::operator=, rope::npos):
      	Adjust implicit typename.
      	* testsuite/27_io/streambuf.cc: Adjust implicit typename.
      
      From-SVN: r47958
      Paolo Carlini committed
    • config.gcc (arm-*-freebsd*): Add target. · 5742588d
      2001-12-12  David O'Brien  <obrien@FreeBSD.org>
      	* config.gcc (arm-*-freebsd*): Add target.
      	* config/arm/freebsd.h: New file.
      	* config/arm/arm.h (CPP_PREDEFINES): Do not define.
      	(CPP_SPEC): #undef before defining.
      	(CPP_CPU_ARCH_SPEC): Add -Acpu=arm -Amachine=arm.
      	* config/arm/conix-elf.h (CPP_PREDEFINES): Remove -Acpu=arm
      	-Amachine=arm.
      	* config/arm/linux-elf.h: Likewise.
      	* config/arm/netbsd.h: Likewise.
      	* config/arm/riscix.h: Likewise.
      	* config/arm/riscix1-1.h: Likewise.
      	* config/arm/semiaof.h: Likewise.
      
      Approved by:  Richard Earnshaw <rearnsha@arm.com> (in private email)
                    Message-Id: <200112121046.KAA09097@cam-mail2.cambridge.arm.com>
      
      From-SVN: r47957
      David O'Brien committed
    • freeze.ads: Update copyright date. · e5bd5cb4
      	* freeze.ads: Update copyright date.
      
      	* g-comlin.ads: Minor reformatting.
      
      	* gnat-style.texi: Fix typo.
      
      From-SVN: r47956
      Geert Bosch committed
  3. 12 Dec, 2001 5 commits
    • * einfo.h: Regenerate. · b468d8ec
      From-SVN: r47955
      Geert Bosch committed
    • sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names on known node… · ed7da216
      sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names on known node types, rather than untyped fields.
      
      	* sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
      	on known node types, rather than untyped fields. Further cleanups.
      
      	* sem_ch12.adb:
      	(Save_Entity_Descendant): Minor comment update.
      	(Copy_Generic_Node): Deal with incorrect reference to Associated_Node
      	 of an N_Attribute_Reference node. As per note below, this does not
      	eliminate need for Associated_Node in attribute ref nodes.
      	(Associated_Node): Documentation explicitly mentions attribute
      	reference nodes, since this field is used in such nodes.
      
      	* sem_ch12.adb (Associated_Node): Minor documentation cleanup.
      
      From-SVN: r47954
      Geert Bosch committed
    • Named locale support for ctype<char>. · 9e5c7dba
      
      2001-12-12  Benjamin Kosnik  <bkoz@redhat.com>
      
      	Named locale support for ctype<char>.
      	* config/locale/c_locale_gnu.h (_GLIBCPP_C_LOCALE_GNU): New.
      	* config/os/gnu-linux/bits/ctype_noninline.h (ctype<char>): Add
      	definitions for alternate constructor.
      	* config/os/solaris/solaris2.7/bits/ctype_noninline.h (ctype): Same.
      	* config/os/solaris/solaris2.6/bits/ctype_noninline.h (ctype): Same.
      	* config/os/solaris/solaris2.5/bits/ctype_noninline.h (ctype): Same.
      	* config/os/newlib/bits/ctype_noninline.h (ctype): Same.
      	* config/os/irix/irix6.5/bits/ctype_noninline.h (ctype): Same.
      	* config/os/irix/irix5.2/bits/ctype_noninline.h (ctype): Same.
      	* config/os/hpux/bits/ctype_noninline.h (ctype): Same.
      	* config/os/generic/bits/ctype_noninline.h (ctype): Same.
      	* config/os/djgpp/bits/ctype_noninline.h (ctype): Same.
      	* config/os/bsd/netbsd/bits/ctype_noninline.h (ctype): Same.
      	* config/os/bsd/freebsd/bits/ctype_noninline.h (ctype): Same.
      	* config/os/aix/bits/ctype_noninline.h (ctype): Same.
      	* include/bits/locale_facets.h (ctype<_CharT>): Remove dummy
      	definitions for all virtual functions. These are now explicitly
      	undefined for non-required factets, ie any non-char, non-wchar_t
      	instantiations.
      	* src/localename.cc (locale::_Impl::_Impl(string, size_t): Named
      	locales use alternate constructor for ctype facet.
      	* include/bits/locale_facets.h (ctype<char>::ctype(__c_locale, const
      	mask*, bool, size_t): Add.
      	(ctype<wchar_t>::ctype(__c_locale, size_t): Add.
      	* src/locale.cc (ctype<wchar_t>::ctype(__c_locale, size_t)): Add
      	definition.
      
      	* testsuite/22_locale/ctype_members_char.cc (test02): Add, mark
      	XFAIL for non-gnu locale models.
      
      From-SVN: r47953
      Benjamin Kosnik committed
    • re PR other/2719 (demangler crash) · 63de15a4
      2001-12-12  Craig Rodrigues  <rodrigc@gcc.gnu.org>
      
              PR other/2719
              * cplus-dem.c (consume_count): Treat negative count as an error.
              * testsuite/demangle-expected: Added testcase.
      
      From-SVN: r47952
      Craig Rodrigues committed
    • regrename.c (copyprop_hardreg_forward): New optimization. · 8582c27b
              * regrename.c (copyprop_hardreg_forward): New optimization.
              (kill_value_regno, kill_value, init_value_data, kill_clobbered_value,
              kill_set_value, kill_autoinc_value, copy_value, find_oldest_value_reg,
              replace_oldest_value_reg, replace_oldest_value_addr,
              replace_oldest_value_mem, copyprop_hardreg_forward_1,
              debug_value_data, validate_value_data): New.
              * rtl.h (copyprop_hardreg_forward): Declare.
              * toplev.c (flag_cprop_registers): New.
              (f_options): Add -fcprop-registers
              (rest_of_compilation): Invoke it.
              (parse_options_and_default_flags): Set it at -O1.
              * doc/invoke.texi: Document it.
      
      From-SVN: r47951
      Richard Henderson committed