1. 22 Feb, 2002 21 commits
    • re PR c++/5748 (g++ dies with optimization) · 3256b817
      	PR c++/5748
      	* stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
      	decl if any of elements was TREE_USED.
      
      	* g++.dg/opt/anonunion1.C: New test.
      
      From-SVN: r49971
      Jakub Jelinek committed
    • sol2.h: Don't include sys/mman.h. · 9e0625a3
      * config/sparc/sol2.h: Don't include sys/mman.h.
      * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
      (arith_4096_operand): Don't throw high bits away.
      (const64_operand): Take sign extension of CONST_INTs into account.
      (const64_high_operand, sparc_emit_set_const32): Likewise.
      (GEN_HIGHINT64): Likewise.
      (sparc_emit_set_const64_quick1): Likewise.
      (const64_is_2insns): Likewise.
      (print_operand): Use trunc_int_for_mode for sign extension.
      * config/sparc/sparc.h (SMALL_INT32): Likewise.
      * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
      chars.  Assume CONST_INT is already properly sign-extended.
      (movdi split): Sign-extend each SImode part.
      (andsi3 split): Don't mask high bits off, so that result
      remains properly sign-extend.
      (iorsi3 split): Likewise.
      (xorsi3 split): Likewise.
      
      From-SVN: r49970
      Alexandre Oliva committed
    • re PR other/5746 (0220 cvs crashes using undeclared type) · 25c8b645
      	PR other/5746
      	* semantics.c (finish_switch_cond): Don't call get_unwidened
      	if error_mark_node.
      
      From-SVN: r49969
      Jakub Jelinek committed
    • Allow the user to specify functions for allocating memory for splay tree roots and nodes. · 00c2f96f
      include:
      Allow the user to specify functions for allocating memory for
      splay tree roots and nodes.
      * splay-tree.h (splay_tree_allocate_fn, splay_tree_deallocate_fn):
      New types.
      (splay_tree): New fields: `allocate', `deallocate', and
      `allocate_data'.
      (splay_tree_new_with_allocator): New function declaration.
      
      libiberty:
      * splay-tree.c (splay_tree_xmalloc_allocate,
      splay_tree_xmalloc_deallocate): New functions.
      (splay_tree_new): Call splay_tree_new_with_allocator, passing the
      above functions and a dummy data pointer.
      (splay_tree_new_with_allocator): New function.
      (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
      splay_tree_remove): Use the splay tree's allocation and
      deallocation functions.
      
      From-SVN: r49968
      Jim Blandy committed
    • parse.y (patch_method_invocation): Set CAN_COMPLETE_NORMALLY on call to finit$… · 453c182f
      parse.y (patch_method_invocation): Set CAN_COMPLETE_NORMALLY on call to finit$ (otherwise generate_bytecode_insns...
      
      
      	* parse.y (patch_method_invocation): Set CAN_COMPLETE_NORMALLY on call
      	to finit$ (otherwise generate_bytecode_insns drops it). However, we
      	don't need to set it on the COMPOUND_EXPR - the caller does that.
      
      From-SVN: r49966
      Per Bothner committed
    • Connection.java (conect): Open the input and/or output streams immediately here,… · 0bf18815
      Connection.java (conect): Open the input and/or output streams immediately here, instead of using File.exists.
      
      
      	* gnu/gcj/protocol/file/Connection.java (conect):  Open the input
      	and/or output streams immediately here, instead of using File.exists.
      	(inputStream, outputStream):  New fields to save open streams.
      	(getInputStream, getOutputStream):  Use already-opened streams.
      
      From-SVN: r49965
      Per Bothner committed
    • configure.in (target_alias): Default to yes. · 696179ca
      
      2002-02-21  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* configure.in (target_alias): Default to yes.
      	* acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Add check for shared
      	libgcc to default case.
      
      From-SVN: r49962
      Benjamin Kosnik committed
    • PR c++/2645, DR 295 · 4f2b0fb2
      cp:
      	PR c++/2645, DR 295
      	* cp-tree.h (tsubst_flags_t): Add tf_ignore_bad_quals,
      	tf_keep_type_decl.
      	(make_typename_type): Use tsubst_flags_t.
      	* decl.c (make_typename_type): Adjust. Return non-artificial
      	TYPE_DECLs, if required.
      	(grokdeclarator): Simplify CVR qualification handling. Allow bad
      	qualifiers on typedef types.
      	* decl2.c (handle_class_head): Adjust make_typename_type call.
      	* parse.y (nested_name_specifier): Likewise.
      	(typename_sub0): Likewise.
      	(typename_sub1): Likewise.
      	* pt.c (convert_template_argument): Adjust make_typename_type
      	return value.
      	(tsubst): Adjust cp_build_qualified_type_real calls.
      	(check_cv_quals_for_unify): Cope with alowing bad qualifications
      	on template type parms.
      	(instantiate_decl): Recheck substitutions to give warnings on bad
      	qualifications.
      	* tree.c (cp_build_qualified_type_real): Use tf_allow_bad_quals.
      testsuite:
      	* g++.dg/template/qualttp19.C: New test.
      	* g++.dg/template/qualttp20.C: New test.
      	* g++.old-deja/g++.jason/report.C: Adjust expected errors
      	* g++.old-deja/g++.other/qual1.C: Likewise.
      
      From-SVN: r49961
      Nathan Sidwell committed
    • * fold-const.c (fold): Fix typo in comments. · 54fec3d5
      From-SVN: r49960
      Richard Sandiford committed
    • configure.in (target_alias): Default to yes. · ab3bc736
      
      2002-02-21  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* configure.in (target_alias): Default to yes.
      	* acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Add check for shared
      	libgcc to default case.
      
      From-SVN: r49959
      Benjamin Kosnik committed
    • Daily bump. · d8e7756c
      From-SVN: r49957
      GCC Administrator committed
    • * Makefile.in (langhooks.o): Update dependencies. · 667ada9b
      From-SVN: r49956
      Diego Novillo committed
    • * langhooks.c: Include flags.h. · 29ac78d5
      From-SVN: r49955
      Diego Novillo committed
    • acinclude.m4 (LIB_AC_PROG_CXX): Copied from libstdc++-v3. · a37049c1
      * acinclude.m4 (LIB_AC_PROG_CXX): Copied from libstdc++-v3.
      Use it.
      * Makefile.am (LIBLINK): Use CXX (and its tag) for linking.
      * aclocal.m4, configure, Makefile.in: Rebuilt.
      
      From-SVN: r49954
      Alexandre Oliva committed
    • configure.in (CXX_FOR_TARGET): Add -shared-libgcc for libstdc++-v3 and libjava. · fcc0a3ef
      * configure.in (CXX_FOR_TARGET): Add -shared-libgcc for
      libstdc++-v3 and libjava.
      
      From-SVN: r49953
      Alexandre Oliva committed
    • Fix typo · 4a376f91
      [[Split portion of a mixed commit.]]
      
      From-SVN: r49952.2
      Mark Mitchell committed
    • gcc_release: Correct handling of diff-generation. · b8f93352
      	* gcc_release: Correct handling of diff-generation.  Add
      	"diffs" major mode.
      
      [[Split portion of a mixed commit.]]
      
      From-SVN: r49951.2
      Mark Mitchell committed
    • cl · 87b3cd76
      From-SVN: r49949
      Aldy Hernandez committed
    • forgot cl · 8fc2ba41
      From-SVN: r49948
      Aldy Hernandez committed
    • attr-alwaysinline.c: New. · 6aa77e6c
      2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
      
              * gcc.dg/attr-alwaysinline.c: New.
      
              * c-common.c (c_common_post_options): Set inline trees by
              default.
      
              * doc/extend.texi (Function Attributes): Document always_inline
              attribute.
              Update documentation about inlining when not optimizing.
      
              * cp/decl.c (duplicate_decls): Merge always_inline attribute.
      
              * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
              unless DECL_ALWAYS_INLINE.
      
              * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
              unless DECL_ALWAYS_INLINE.
              (c_disregard_inline_limits): Disregard if always_inline set.
      
              * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
              Disregard if always_inline set.
              (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
              unless DECL_ALWAYS_INLINE.
      
              * attribs.c (handle_always_inline_attribute): New.
              (c_common_attribute_table): Add always_inline.
      
              * config/rs6000/altivec.h: Add prototypes for builtins
              requiring the always_inline attribute.
      
      From-SVN: r49947
      Aldy Hernandez committed
    • expmed.c (store_bit_field): Try to simplify the subreg before generating a new one when... · c410d49e
      2002-02-21  Eric Christopher  <echristo@redhat.com>
      
      	* expmed.c (store_bit_field): Try to simplify the subreg
      	before generating a new one when when the mode size of
      	value is less than maxmode.
      
      From-SVN: r49946
      Eric Christopher committed
  2. 21 Feb, 2002 16 commits
  3. 20 Feb, 2002 3 commits
    • gcj.texi: Option `--classpath' becomes `--CLASSPATH.'Option `--CLASSPATH' becomes... · 3babb2e3
      	* gcj.texi: Option `--classpath' becomes `--CLASSPATH.'Option
       	`--CLASSPATH' becomes `--classpath.'
      	* gjavah.c: Likewise.
      	* jcf-dump.c: Likewise.
      	* lang-options.h: Likewise.
      	* lang.c: Likewise.
      	* jcf-path.c: Updated comment.
      	(jcf_path_classpath_arg): Renamed `jcf_path_CLASSPATH_arg.'
      	(jcf_path_CLASSPATH_arg): Renamed `jcf_path_classpath_arg.'
      	* jcf.h (jcf_path_CLASSPATH_arg): Ditto.
      	(jcf_path_CLASSPATH_arg): Ditto.
      	(classpath_u): Updated leading comment.
      
      From-SVN: r49922
      Nic Ferrier committed
    • re PR debug/4461 (Invalid dawrf2 debug code) · 149d6f9e
      	PR debug/4461
      	* varasm.c (get_pool_constant_mark): New.
      	* rtl.h (get_pool_constant_mark): Add prototype.
      	* dwarf2out.c (mem_loc_descriptor): A pool constant cannot
      	be represented if it has not been output.
      
      	* gcc.dg/debug/20020220-1.c: New test.
      
      From-SVN: r49921
      Jakub Jelinek committed
    • combine.c (do_SUBST): Sanity check substitutions of CONST_INTs... · 4161da12
      * combine.c (do_SUBST): Sanity check substitutions of
      CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
      (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
      CONST_INT into its operand.
      (known_cond): Likewise, for ZERO_EXTEND.
      * simplify-rtx.c (simplify_unary_operation): Fix condition to
      allow for simplification of wide modes.  Reject CONST_INTs in
      ZERO_EXTEND when their actual mode is not given.
      
      From-SVN: r49920
      Alexandre Oliva committed