1. 02 Jan, 2002 26 commits
    • gcc.c (default_compilers): Const-ify. · 5e65297b
      	* gcc.c (default_compilers): Const-ify.
      	* mips-tdump.c (stab_names): Likewise.
      	* mips-tfile.c (map_coff_types, map_coff_storage,
      	map_coff_sym_type, map_coff_derived_type, stabs_symbol,
      	pseudo_ops_t, pseudo_ops): Likewise.
      	* protoize.c (default_include): Likewise
      
      f:
      	* com.c (clear_binding_level): Const-ify.
      	(ffecom_arglist_expr_): Likewise.
      	* info.c (ffeinfo_types_): Don't needlessly zero init.
      	* lex.c (ffelex_hash_kludge): Const-ify.
      
      java:
      	* parse.y (src_parse_roots): Don't needlessly zero init.
      
      libiberty:
      	* cp-demangle.c (long_options): Const-ify.
      	* cplus-dem.c (long_options): Likewise.
      
      From-SVN: r48485
      Kaveh R. Ghazi committed
    • real.c (GET_REAL, PUT_REAL): Don't cast away const-ness. · 0c5d8c82
      	* real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
      	(ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
      	Add array size in declaration.
      	(endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
      	emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
      	esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
      	etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
      	eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
      	efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
      	c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
      	emtens, make_nan): Const-ify.
      	(TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
      	DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
      
      From-SVN: r48484
      Kaveh R. Ghazi committed
    • config.gcc (ia64-*-*): Set extra_headers. · 817e13c4
      	* config.gcc (ia64-*-*): Set extra_headers.
      	(alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
      	* config/alpha/t-osf: Remove.
      	* config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
      
      From-SVN: r48483
      Joseph Myers committed
    • * config/rs6000/t-aix43: Revert previous change. · 98095e2b
      From-SVN: r48481
      David Edelsohn committed
    • c-decl.c (c_expand_body): Call outlining_inline_function when emitting an inline… · a4200657
      c-decl.c (c_expand_body): Call outlining_inline_function when emitting an inline function out of line.
      
              * c-decl.c (c_expand_body): Call outlining_inline_function when
              emitting an inline function out of line.
      
              * semantics.c (expand_body): Call outlining_inline_function when
              emitting an inline function out of line.
      
      From-SVN: r48479
      Jason Merrill committed
    • dwarf2out.c (limbo_die_node): Add created_for member. · 54ba1f0d
              * dwarf2out.c (limbo_die_node): Add created_for member.
              (new_die): New argument created_for.  Update all callers.
              (mark_limbo_die_list): New.
              (dwarf2out_init): Register limbo_die_list as a root.
              (dwarf2out_finish): Force insert limbo dies into their function
              context.
      
      From-SVN: r48478
      Richard Henderson committed
    • cplus-dem.c (mystrstr): Delete. · adddf5bf
      	* cplus-dem.c (mystrstr): Delete.  All callers changed to use
      	strstr instead.
      
      From-SVN: r48476
      Kaveh R. Ghazi committed
    • ieeefp.h: Fix bug in my hand-application of previous patch. · 95574a4c
      	* java/lang/ieeefp.h: Fix bug in my hand-application of previous
      	patch.
      
      From-SVN: r48475
      Tom Tromey committed
    • PR c++/5116, c++/764 reversion · 40e593d7
      cp:
      	PR c++/5116, c++/764 reversion
      	* call.c (build_new_op): Revert the instantiations. They are
      	incorrect.
      testsuite:
      	* g++.dg/template/friend2.C: Remove as patch is reverted.
      
      From-SVN: r48474
      Nathan Sidwell committed
    • 2002-1-1 Andrew Pinski <pinskia@physics.uc.edu> · 0beb74f2
      	* libjava/java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN for
      	PPC Darwin, not for all of Darwin.
      
      From-SVN: r48473
      Andrew Pinski committed
    • re PR c++/5089 (-Wold-style-cast warns about cast to void) · 323728aa
      	PR c++/5089
      	* doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
      cp:
      	PR c++/5089
      	* decl2.c (reparse_absdcl_as_casts): Don't warn about casts to void.
      testsuite:
      	* g++.dg/warn/oldcast1.C: New test.
      
      From-SVN: r48472
      Nathan Sidwell committed
    • re PR c++/3716 (Template parameters that are pointers to member functions) · 46c895ac
      cp:
      	PR c++/3716
      	* pt.c (tsubst_aggr_type): Move pmf handling into tsubst.
      	(tsubst, case POINTER_TYPE): Handle pmfs here.
      	(tsubst, case OFFSET_TYPE): Check it is not an offset to
      	reference. If it is offset to FUNCTION_TYPE, create a METHOD_TYPE.
      testsuite:
      	* g++.dg/template/ptrmem1.C: New test.
      	* g++.dg/template/ptrmem2.C: New test.
      
      From-SVN: r48471
      Nathan Sidwell committed
    • re PR c++/35 (template operator () lookup fails) · 833aa4c4
      cp:
      	PR c++/35
      	* cp-tree.h (DECL_LANG_FLAG_0): Used for PARM_DECL too.
      	(DECL_TEMPLATE_PARM_P): A PARM_DECL might be one too.
      	* pt.c (process_template_parm): SET_DECL_TEMPLATE_PARM_P on the
      	PARM_DECL.
      	(tsubst_template_parms): Break up loop statements.
      	(tsubst_decl, case PARM_DECL): Copy DECL_TEMPLATE_PARM_P. Template
      	parm PARM_DECLs don't get promoted.
      testsuite:
      	* g++.dg/template/ntp.C: New test.
      
      From-SVN: r48470
      Nathan Sidwell committed
    • re PR c++/5123 (tree check: expected identifier_node, have template_id_expr in… · 18976b21
      re PR c++/5123 (tree check: expected identifier_node, have template_id_expr in build_component_ref, at cp/typeck.c:2133)
      
      cp:
      	PR c++/5123
      	* typeck.c (build_component_ref): Cope with a TEMPLATE_ID_EXPR.
      	(build_x_function_call): Cope with a COMPONENT_REF containing a
      	TEMPLATE_ID_EXPR.
      testsuite:
      	* g++.dg/other/component1.C: New test.
      
      From-SVN: r48469
      Nathan Sidwell committed
    • re PR c++/5213 (ICE on (possibly) illegal code) · 303d1c55
      cp:
      	PR c++/5213
      	* pt.c (convert_template_argument): Be more careful determining
      	when RECORD_TYPE templates are or are not templates.
      testsuite:
      	* g++.dg/template/ttp3.C: New test.
      
      From-SVN: r48468
      Nathan Sidwell committed
    • stl_algobase.h (copy_n + helpers, [...]): Move to... · f53d0ff1
      2002-01-02  Paolo Carlini  <pcarlini@unitus.it>
      
      	* include/bits/stl_algobase.h (copy_n + helpers,
      	lexicographical_compare_3way + helpers):  Move to...
      	* include/ext/algorithm:  ...here.
              * include/bits/stl_uninitialized.h (uninitialized_copy_n +
              helpers):  Move to...
              * include/ext/memory:  ...here, new file.
              * include/Makefile.am (ext_headers):  Add new file.
              * include/Makefile.in:  Regenerate.
              * testsuite/ext/headers.cc:  Include <ext/memory>.
      	* include/backward/algobase.h:  Include <ext/memory> and
      	<ext/algorithm>, tweak.
              * include/ext/ropeimpl.h:  Include <ext/memory>, tweak.
      	* include/ext/stl_rope.h:  Include <ext/memory>, tweak.
      
      From-SVN: r48467
      Paolo Carlini committed
    • re PR c++/775 (2.97 error declaring nested class a friend) · d46a33b3
      cp:
      	PR c++/775
      	* cp-tree.h (handle_class_head): Adjust prototype.
      	* decl2.c (handle_class_head): Add DEFN_P and NEW_TYPE_P
      	parameters. Use for all class heads.
      	* parse.y (named_class_head_sans_basetype, named_class_head,
      	named_complex_class_head_sans_basetype,
      	named_class_head_sans_basetype_defn,
      	unnamed_class_head): Remove.
      	(class_head, class_head_apparent_template): Recognize class heads
      	(class_head_decl, class_head_defn): New reductions. Process class
      	heads.
      	(structsp): Adjust class definition and class declaration
      	reductions.
      	(maybe_base_class_list): Give diagnostic on empty list.
      testsuite:
      	* g++.dg/template/friend2.C: New test.
      	* g++.old-deja/g++/brendan/crash8.C: Adjust location of error.
      
      From-SVN: r48466
      Nathan Sidwell committed
    • re PR c++/4379 (Member pointer to member reference not allowed when declared… · 4542128e
      re PR c++/4379 (Member pointer to member reference not allowed when declared directly, but allowed as template parameter.)
      
      cp:
      	PR c++/4379
      	* typeck.c (build_x_unary_op): Don't destroy the OFFSET_REF on a
      	single non-static member.
      	(unary_complex_lvalue): If it cannot be a pointer to member, don't
      	make it so. Check it is not pointer to reference.
      testsuite:
      	* g++.dg/other/ptrmem1.C: New test.
      	* g++.dg/other/ptrmem2.C: New test.
      
      From-SVN: r48465
      Nathan Sidwell committed
    • re PR c++/5132 (NaN = 0.0 * HUGE_VAL fails to compile in templates) · 903c6234
      cp:
      	PR c++/5132
      	* decl2.c (reparse_absdcl_as_casts): Don't digest_init if we
      	are processing a template decl.
      testsuite:
      	* g++.dg/template/ctor1.C: New test.
      
      From-SVN: r48464
      Nathan Sidwell committed
    • PR c++/5116, c++/764 · 477558bf
      cp:
      	PR c++/5116, c++/764
      	* call.c (build_new_op): Make sure template class operands are
      	instantiated. Simplify arglist construction.
      testsuite:
      	* g++.dg/template/friend2.C: New test.
      
      From-SVN: r48463
      Nathan Sidwell committed
    • Daily bump. · dbac4247
      From-SVN: r48461
      GCC Administrator committed
    • fixunssfsi.c: Update copyright. · aefc5826
      	* config/h8300/fixunssfsi.c: Update copyright.
      	Fix comment typos.
      	Fix formatting.
      	* config/h8300/h8300.c: Update copyright.
      	Eliminate warnings.
      
      From-SVN: r48460
      Kazu Hirata committed
    • romp.c: Fix comment formatting. · b1c9bc51
      	* config/romp/romp.c: Fix comment formatting.
      	* config/romp/romp.h: Likewise.
      	* config/romp/romp.md: Likewise.
      	* config/s390/s390.c: Likewise.
      	* config/stormy16/stormy16.c: Likewise.
      	* config/stormy16/stormy16.h: Likewise.
      
      From-SVN: r48459
      Kazu Hirata committed
    • * warn_summary: Add -ada subdirectory flag. · 99e9e773
      From-SVN: r48457
      Kaveh R. Ghazi committed
    • c-common.h (genrtl_expr_stmt_value): Declare. · 1574ef13
      * c-common.h (genrtl_expr_stmt_value): Declare.
      * c-semantics.c (genrtl_goto_stmt): Redirect to...
      (genrtl_goto_stmt_value): ... this new function.  Pass new
      argument down to expand_expr_stmt_value, taking
      TREE_ADDRESSABLE into account.
      * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
      STMT_EXPR as addressable, i.e., one whose result we want.
      * expr.c (expand_expr): Don't save expression statement value
      of labeled_blocks or loop_exprs.
      * stmt.c (expand_expr_stmt): Redirect to...
      (expand_expr_stmt_value): ... this new function.  Use new
      argument to tell whether to save expression value.
      (expand_end_stmt_expr): Reset last_expr_type and
      last_expr_value if we don't have either.
      * tree-inline.c (declare_return_variable): Mark its use
      statement as addressable.
      * tree.h: Document new use of TREE_ADDRESSABLE.
      (expand_expr_stmt_value): Declare.
      
      From-SVN: r48456
      Alexandre Oliva committed
  2. 01 Jan, 2002 14 commits