Phil Edwards [Thu, 3 Jan 2002 03:21:19 +0000 (03:21 +0000)]
boost_concept_check.h: Import some changes from upsteam (Boost) version.
2002-01-02 Phil Edwards <pme@gcc.gnu.org>
* include/bits/boost_concept_check.h: Import some changes from
upsteam (Boost) version.
From-SVN: r48489
Kazu Hirata [Thu, 3 Jan 2002 00:53:36 +0000 (00:53 +0000)]
except.c: Fix comment typos.
* except.c: Fix comment typos.
* loop.c: Likewise.
* varasm.c: Likewise.
* doc/tm.texi: Fix a typo.
From-SVN: r48488
Jakub Jelinek [Wed, 2 Jan 2002 23:43:24 +0000 (00:43 +0100)]
c-typeck.c (output_init_element): Allow initializing static storage duration objects with compound literals.
* c-typeck.c (output_init_element): Allow initializing static storage
duration objects with compound literals.
* gcc.dg/gnu89-init-1.c: Added new tests.
From-SVN: r48487
Richard Henderson [Wed, 2 Jan 2002 23:22:52 +0000 (15:22 -0800)]
objc-act.c (hack_method_prototype): Clear current_function_decl after abusing it.
* objc/objc-act.c (hack_method_prototype): Clear current_function_decl
after abusing it.
From-SVN: r48486
Kaveh R. Ghazi [Wed, 2 Jan 2002 23:18:59 +0000 (23:18 +0000)]
gcc.c (default_compilers): Const-ify.
* 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 [Wed, 2 Jan 2002 23:11:30 +0000 (23:11 +0000)]
real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
* 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
Joseph Myers [Wed, 2 Jan 2002 22:50:01 +0000 (22:50 +0000)]
config.gcc (ia64-*-*): Set extra_headers.
* 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
David Edelsohn [Wed, 2 Jan 2002 21:59:29 +0000 (21:59 +0000)]
* config/rs6000/t-aix43: Revert previous change.
From-SVN: r48481
Jason Merrill [Wed, 2 Jan 2002 18:28:43 +0000 (13:28 -0500)]
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
Richard Henderson [Wed, 2 Jan 2002 18:22:13 +0000 (10:22 -0800)]
dwarf2out.c (limbo_die_node): Add created_for member.
* 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
Kaveh R. Ghazi [Wed, 2 Jan 2002 17:07:40 +0000 (17:07 +0000)]
cplus-dem.c (mystrstr): Delete.
* cplus-dem.c (mystrstr): Delete. All callers changed to use
strstr instead.
From-SVN: r48476
Tom Tromey [Wed, 2 Jan 2002 15:58:39 +0000 (15:58 +0000)]
ieeefp.h: Fix bug in my hand-application of previous patch.
* java/lang/ieeefp.h: Fix bug in my hand-application of previous
patch.
From-SVN: r48475
Nathan Sidwell [Wed, 2 Jan 2002 15:17:07 +0000 (15:17 +0000)]
PR c++/5116, c++/764 reversion
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
Andrew Pinski [Wed, 2 Jan 2002 15:07:16 +0000 (15:07 +0000)]
2002-1-1 Andrew Pinski <pinskia@physics.uc.edu>
* libjava/java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN for
PPC Darwin, not for all of Darwin.
From-SVN: r48473
Nathan Sidwell [Wed, 2 Jan 2002 13:59:10 +0000 (13:59 +0000)]
re PR c++/5089 (-Wold-style-cast warns about cast to void)
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 [Wed, 2 Jan 2002 13:55:23 +0000 (13:55 +0000)]
re PR c++/3716 (Template parameters that are pointers to member functions)
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 [Wed, 2 Jan 2002 12:50:11 +0000 (12:50 +0000)]
re PR c++/35 (template operator () lookup fails)
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 [Wed, 2 Jan 2002 12:47:26 +0000 (12:47 +0000)]
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 [Wed, 2 Jan 2002 12:44:44 +0000 (12:44 +0000)]
re PR c++/5213 (ICE on (possibly) illegal code)
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
Paolo Carlini [Wed, 2 Jan 2002 12:16:56 +0000 (13:16 +0100)]
stl_algobase.h (copy_n + helpers, [...]): Move to...
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
Nathan Sidwell [Wed, 2 Jan 2002 11:37:00 +0000 (11:37 +0000)]
re PR c++/775 (2.97 error declaring nested class a friend)
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 [Wed, 2 Jan 2002 11:32:34 +0000 (11:32 +0000)]
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 [Wed, 2 Jan 2002 11:29:15 +0000 (11:29 +0000)]
re PR c++/5132 (NaN = 0.0 * HUGE_VAL fails to compile in templates)
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 [Wed, 2 Jan 2002 11:26:12 +0000 (11:26 +0000)]
PR c++/5116, c++/764
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
GCC Administrator [Wed, 2 Jan 2002 08:16:12 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r48461
Kazu Hirata [Wed, 2 Jan 2002 07:57:15 +0000 (07:57 +0000)]
fixunssfsi.c: Update copyright.
* config/h8300/fixunssfsi.c: Update copyright.
Fix comment typos.
Fix formatting.
* config/h8300/h8300.c: Update copyright.
Eliminate warnings.
From-SVN: r48460
Kazu Hirata [Wed, 2 Jan 2002 06:47:47 +0000 (06:47 +0000)]
romp.c: Fix comment formatting.
* 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
Tom Rix [Wed, 2 Jan 2002 03:48:53 +0000 (03:48 +0000)]
Fix for rs6000_emit_allocate_stack's use of rs6000_emit_set_long_const for ppc64.
From-SVN: r48458
Kaveh R. Ghazi [Wed, 2 Jan 2002 03:35:21 +0000 (03:35 +0000)]
* warn_summary: Add -ada subdirectory flag.
From-SVN: r48457
Alexandre Oliva [Wed, 2 Jan 2002 02:31:58 +0000 (02:31 +0000)]
c-common.h (genrtl_expr_stmt_value): Declare.
* 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
Andreas Tobler [Tue, 1 Jan 2002 23:36:11 +0000 (00:36 +0100)]
ieeefp.h: Define __IEEE_BIG_ENDIAN for Darwin.
2001-12-29 Andreas Tobler <a.tobler@schweiz.ch>
* libjava/java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN for
Darwin.
From-SVN: r48455
Joseph Myers [Tue, 1 Jan 2002 23:21:01 +0000 (23:21 +0000)]
configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of ${srcdir}/ginclude/ to every...
* configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
${srcdir}/ginclude/ to every entry in extra_headers.
* configure: Regenerate.
* ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
* ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
* ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
* ginclude/proto.h: Rename to config/convex/proto.h.
From-SVN: r48454
Richard Kenner [Tue, 1 Jan 2002 22:28:36 +0000 (17:28 -0500)]
Fix corrupted hunk
From-SVN: r48453
Richard Kenner [Tue, 1 Jan 2002 22:22:25 +0000 (22:22 +0000)]
attribs.c (handle_vector_size_attribute): Use host_integerp and tree_int_cst; remove warnings.
* attribs.c (handle_vector_size_attribute): Use host_integerp
and tree_int_cst; remove warnings.
* caller-save.c (insert_restore): Add cast to get rid of warning.
(insert_save): Likewise.
* emit-rtl.c (adjust_address_1, offset_address): Likewise.
* regmove.c (find_matches): Add temporary var to kill a warning.
From-SVN: r48452
Douglas B Rupp [Tue, 1 Jan 2002 22:15:20 +0000 (17:15 -0500)]
vms.h (DWARF2_UNWIND_INFO, [...]): Define.
* config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
* config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
(vms-dwarf2eh.o): Add Makefile rule.
* config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
* config/alpha/vms-dwarf2eh.asm: New file.
From-SVN: r48451
Douglas B Rupp [Tue, 1 Jan 2002 21:48:58 +0000 (16:48 -0500)]
* gcc.c (delete_if_ordinary): Delete all versions.
From-SVN: r48450
Hans-Peter Nilsson [Tue, 1 Jan 2002 21:11:23 +0000 (21:11 +0000)]
Update copyright years list
From-SVN: r48449
Hans-Peter Nilsson [Tue, 1 Jan 2002 20:52:28 +0000 (20:52 +0000)]
mmix.md: Update FIXME to not mention define_constants.
* config/mmix/mmix.md: Update FIXME to not mention
define_constants.
(MMIX_rJ_REGNUM): New define_constants constant.
("movqi", "movsi", "movdi", "*movdicc_real_foldable",
"*movdicc_real"): Adjust contraints formatting.
("*bCC_foldable"): Add %+ for P in output format and delete FIXME
for branch prediction.
("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
output template.
("*call_real", "*call_value_real", "nonlocal_goto_receiver",
"*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
number. Delete related FIXMEs.
* config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
from number to MMIX_rJ_REGNUM.
(TARGET_MASK_BRANCH_PREDICT): New.
(TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
(TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
value. Add -mbranch-predict and -mno-branch-predict.
(TARGET_VERSION): Drop date.
(ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
* config/mmix/mmix.c (mmix_encode_section_info): Correct condition
for finding out global symbols.
(mmix_asm_output_labelref): Revert condition for global symbol.
(mmix_print_operand): <case '+'>: Emit P for a likely branch.
(mmix_print_operand_punct_valid_p): A '+' is valid.
From-SVN: r48448
Hans-Peter Nilsson [Tue, 1 Jan 2002 20:48:31 +0000 (20:48 +0000)]
* gcc.dg/mmix-1.c: New test.
From-SVN: r48447
Roger Sayle [Tue, 1 Jan 2002 19:50:16 +0000 (20:50 +0100)]
stubs.c (sinf,cosf): Implement stubs to enable the equivalent ___builtin__ versions.
2002-01-01 Roger Sayle <roger@eyesopen.com>
* libmath/stubs.c (sinf,cosf): Implement stubs to enable the
equivalent ___builtin__ versions.
* include/c_shadow/bits/std_cmath.h: All __builtin math functions
are available in libstdc++ as the necessary stub implementations
are provided by libmath/stubs.c.
From-SVN: r48445
Jason Thorpe [Tue, 1 Jan 2002 18:27:37 +0000 (18:27 +0000)]
* MAINTAINERS (Write After Approval): Add myself.
From-SVN: r48444
Jason Thorpe [Tue, 1 Jan 2002 18:12:06 +0000 (18:12 +0000)]
configure.in: Add support for NetBSD cross compiles.
* configure.in: Add support for NetBSD cross compiles.
* configure: Regenerate.
From-SVN: r48443
Douglas B Rupp [Tue, 1 Jan 2002 10:01:43 +0000 (05:01 -0500)]
configure.in (uintptr_t): Use AC_CHECK_TYPE.
* configure.in (uintptr_t): Use AC_CHECK_TYPE.
* configure: Regenerated.
From-SVN: r48442
GCC Administrator [Tue, 1 Jan 2002 08:16:26 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r48440
Tom Tromey [Tue, 1 Jan 2002 01:42:15 +0000 (01:42 +0000)]
parse.y (dump_java_tree): New function.
* parse.y (dump_java_tree): New function.
(source_end_java_method): Call it.
(end_class_declaration): Likewise.
* lang.c (java_decode_option): Call dump_switch_p.
From-SVN: r48439
Richard Henderson [Tue, 1 Jan 2002 00:23:22 +0000 (16:23 -0800)]
* config/ia64/ia64.c (mark_reg_gr_used_mask): Mind HARD_REGNO_NREGS.
From-SVN: r48437
Ira Ruben [Mon, 31 Dec 2001 23:23:49 +0000 (23:23 +0000)]
aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
* aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
* configure: Regenerated.
From-SVN: r48436
Richard Henderson [Mon, 31 Dec 2001 23:16:08 +0000 (15:16 -0800)]
regrename.c (build_def_use): Don't rename asm operands that were originally hard registers.
* regrename.c (build_def_use): Don't rename asm operands that
were originally hard registers.
(copyprop_hardreg_forward_1): Likewise.
(find_oldest_value_reg): Copy ORIGINAL_REGNO from source.
* varasm.c (make_decl_rtl): Use gen_rtx_raw_REG. Set ORIGINAL_REGNO.
* gcc.dg/asm-5.c: New.
From-SVN: r48435
Douglas B Rupp [Mon, 31 Dec 2001 23:03:52 +0000 (18:03 -0500)]
vms.h (HAS_INIT_SECTION, [...]): Remove.
* config/alpha/vms.h (HAS_INIT_SECTION, NEED_ATEXIT): Remove.
(NAME__MAIN, SYMBOL__MAIN): Define.
From-SVN: r48434
Richard Henderson [Mon, 31 Dec 2001 21:33:58 +0000 (13:33 -0800)]
alpha.c (reg_no_subreg_operand): Reject all non-registers.
* config/alpha/alpha.c (reg_no_subreg_operand): Reject all
non-registers.
From-SVN: r48433
Richard Henderson [Mon, 31 Dec 2001 21:33:36 +0000 (13:33 -0800)]
* final.c (alter_subreg): Assign REGNO after changing the rtx code.
From-SVN: r48432
Richard Henderson [Mon, 31 Dec 2001 21:33:19 +0000 (13:33 -0800)]
cfgrtl.c (delete_insn): Check for not NOTE_INSN_DELETED_LABEL before decrementing LABEL_NUSES from a...
* cfgrtl.c (delete_insn): Check for not NOTE_INSN_DELETED_LABEL
before decrementing LABEL_NUSES from a jump table.
From-SVN: r48431
Paolo Carlini [Mon, 31 Dec 2001 19:30:24 +0000 (20:30 +0100)]
iterator: Add #include <bits/std_iterator.h>, tweak.
2001-12-31 Paolo Carlini <pcarlini@unitus.it>
* include/ext/iterator: Add #include <bits/std_iterator.h>, tweak.
* testsuite/ext/headers.cc: Add <ext/iterator>.
From-SVN: r48430
Paolo Carlini [Mon, 31 Dec 2001 18:03:47 +0000 (19:03 +0100)]
algo.h: Add two more using declarations.
2001-12-31 Paolo Carlini <pcarlini@unitus.it>
* include/backward/algo.h: Add two more using declarations.
* include/backward/iterator.h: Include <ext/iterator>,
add using declaration.
* include/ext/algorithm: Add #pragma GCC system_header.
From-SVN: r48429
Phil Edwards [Mon, 31 Dec 2001 16:16:17 +0000 (16:16 +0000)]
stl_bvector.h: Change calls to 3-argument distance() into standard 2-argument version.
2001-12-31 Phil Edwards <pme@gcc.gnu.org>
* include/bits/stl_bvector.h: Change calls to 3-argument distance()
into standard 2-argument version.
* include/bits/stl_deque.h: Likewise.
* include/bits/stl_tempbuf.h: Likewise.
* include/bits/stl_tree.h: Likewise.
* include/bits/stl_vector.h: Likewise.
* include/ext/stl_hashtable.h: Likewise.
* include/bits/stl_iterator_base_funcs.h: Move distance() extension...
* include/ext/iterator: to here. New file.
* include/Makefile.am (ext_headers): Add new file, alphabatize.
* include/Makefile.in: Regenerate.
From-SVN: r48428
Paolo Carlini [Mon, 31 Dec 2001 15:27:36 +0000 (16:27 +0100)]
eb130.C: hash_set is now in namespace __gnu_cxx
2001-12-31 Paolo Carlini <pcarlini@unitus.it>
* g++.old-deja/g++.robertl/eb130.C: hash_set is now
in namespace __gnu_cxx
From-SVN: r48427
Phil Edwards [Mon, 31 Dec 2001 14:53:47 +0000 (14:53 +0000)]
stl_deque.h: Doxygenate with initial/example hooks.
2001-12-31 Phil Edwards <pme@gcc.gnu.org>
* include/bits/stl_deque.h: Doxygenate with initial/example hooks.
Clean up spacing and indentation.
From-SVN: r48426
Paolo Carlini [Mon, 31 Dec 2001 10:26:01 +0000 (11:26 +0100)]
slist: Move into __gnu_cxx, tweak, add using declarations.
2001-12-31 Paolo Carlini <pcarlini@unitus.it>
* include/ext/slist: Move into __gnu_cxx,
tweak, add using declarations.
From-SVN: r48423
Paolo Carlini [Mon, 31 Dec 2001 10:22:00 +0000 (11:22 +0100)]
hash_map: Move into __gnu_cxx, tweak, add using declarations.
2001-12-31 Paolo Carlini <pcarlini@unitus.it>
* include/ext/hash_map: Move into __gnu_cxx,
tweak, add using declarations.
* include/ext/hash_set: Ditto.
* include/ext/ropeimpl.h: Ditto.
* include/ext/stl_hash_fun.h: Ditto.
* include/ext/stl_hashtable.h: Ditto.
* include/ext/stl_rope.h: Ditto.
* src/ext-inst.cc: Tweak.
* testsuite/ext/rope.cc: Tweak.
From-SVN: r48422
Paolo Carlini [Mon, 31 Dec 2001 09:10:39 +0000 (10:10 +0100)]
algo.h: Include <ext/algorithm>, tweak using declarations.
2001-12-31 Paolo Carlini <pcarlini@unitus.it>
* include/backward/algo.h: Include <ext/algorithm>,
tweak using declarations.
From-SVN: r48421
GCC Administrator [Mon, 31 Dec 2001 08:16:10 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r48419
Graham Stott [Mon, 31 Dec 2001 06:03:23 +0000 (06:03 +0000)]
* halfpic.h: Remove foward defs of tree_node and rtx_def.
From-SVN: r48418
Graham Stott [Mon, 31 Dec 2001 05:54:02 +0000 (05:54 +0000)]
* toplev.h: Remove forward def of tree_node, rtx_def.
From-SVN: r48417
Graham Stott [Mon, 31 Dec 2001 05:44:58 +0000 (05:44 +0000)]
except.h: Remove forward def of tree_node, rtx_def and define of tree, rtx.
* except.h: Remove forward def of tree_node, rtx_def and
define of tree, rtx. Also remove undefs.
From-SVN: r48416
Graham Stott [Mon, 31 Dec 2001 05:44:08 +0000 (05:44 +0000)]
basic-block.h: Remove forward def of tree_node and define of tree.
* basic-block.h: Remove forward def of tree_node and
define of tree.
From-SVN: r48415
Graham Stott [Mon, 31 Dec 2001 05:42:52 +0000 (05:42 +0000)]
except.h: Remove forward def of tree_node, rtx_def and define of tree, rtx.
* except.h: Remove forward def of tree_node, rtx_def and
define of tree, rtx. Also remove undefs.
* basic-block.h: Remove forward def of tree_node and
define of tree.
From-SVN: r48414
Graham Stott [Mon, 31 Dec 2001 04:46:11 +0000 (04:46 +0000)]
Remove extranwous changelog header.
From-SVN: r48413
Richard Henderson [Mon, 31 Dec 2001 04:19:35 +0000 (20:19 -0800)]
cfglayout.c (scope_def, [...]): Remove.
* cfglayout.c (scope_def, scope_forest_info, forest,
relate_bbs_with_scopes, make_new_scope, build_scope_forest,
remove_scope_notes, insert_intra_before_1, insert_intra_1,
insert_intra_bb_scope_notes, insert_inter_bb_scope_notes,
rebuild_scope_notes, free_scope_forest_1, dump_scope_forest,
dump_scope_forest_1, get_next_bb_note, get_prev_bb_note): Remove.
(fixup_reorder_chain): Don't set scope for bb.
(insn_scopes, scope_to_insns_initialize, set_block_levels,
change_scope, scope_to_insns_finalize): New.
(cfg_layout_initialize, cfg_layout_finalize): Update to match.
* cfglayout.h (scope_def, scope): Remove.
(reorder_block_def): Remove scope member.
(scope_to_insns_initialize, scope_to_insns_finalize): Declare.
* haifa-sched.c: Revert reemit_other_notes change.
* sched-ebb.c (schedule_ebbs): Don't call remove_unnecessary_notes.
Use scope_to_insns_initialize and scope_to_insns_finalize.
* sched-rgn.c (schedule_insns): Likewise.
* gcc.dg/debug-6.c: New.
From-SVN: r48412
Graham Stott [Mon, 31 Dec 2001 04:13:35 +0000 (04:13 +0000)]
* c-lex.c: Include tree.h before expr.h
From-SVN: r48411
Graham Stott [Mon, 31 Dec 2001 04:10:19 +0000 (04:10 +0000)]
* c-typeck.c: Include rtl.h earlier.
From-SVN: r48410
Graham Stott [Mon, 31 Dec 2001 04:07:11 +0000 (04:07 +0000)]
tree.h (STRIP_NOPS): Remove extraneous semicolon.
* tree.h (STRIP_NOPS): Remove extraneous semicolon.
(STRIP_SIGN_NOPS): Likewise.
(STRIP_TYPE_NOPS): Likewise.
(COMPLETE_OR_UNBOUND_ARRAY_TYPE_P): Add Parenthesis around
macro paramater.
From-SVN: r48409
Graham Stott [Mon, 31 Dec 2001 03:56:16 +0000 (03:56 +0000)]
final.c (struct bb_list): Delete.
* final.c (struct bb_list): Delete.
(struct bb_str): Likewise.
From-SVN: r48408
Graham Stott [Mon, 31 Dec 2001 03:54:04 +0000 (03:54 +0000)]
cfgloop.c (flow_loop_entry_edges_find): Fix typo.
* cfgloop.c (flow_loop_entry_edges_find): Fix typo.
(flow_loop_exit_edges_find): Likewise.
From-SVN: r48407
Graham Stott [Mon, 31 Dec 2001 03:51:45 +0000 (03:51 +0000)]
gcse.c (gcse_main): Fix typos.
* gcse.c (gcse_main): Fix typos.
(alloc_gcse_mem): Likewise.
From-SVN: r48406
Graham Stott [Mon, 31 Dec 2001 03:48:46 +0000 (03:48 +0000)]
* function.h: Remove undefs for rtx and tree.
From-SVN: r48405
Richard Henderson [Mon, 31 Dec 2001 03:09:48 +0000 (19:09 -0800)]
loop.c (check_dbra_loop): Fix last change: examine both has_multiple_exit_targets and exit_count.
* loop.c (check_dbra_loop): Fix last change: examine both
has_multiple_exit_targets and exit_count.
From-SVN: r48404
Richard Henderson [Sun, 30 Dec 2001 18:01:05 +0000 (10:01 -0800)]
integrate.c (copy_rtx_and_substitute): Fix error last change: we need to unconditionally create a new mem.
* integrate.c (copy_rtx_and_substitute): Fix error last change:
we need to unconditionally create a new mem.
From-SVN: r48403
Hans-Peter Nilsson [Sun, 30 Dec 2001 16:48:59 +0000 (16:48 +0000)]
mmix.md ("*call_real"): Fix typo in comment.
* config/mmix/mmix.md ("*call_real"): Fix typo in comment.
* config/mmix/mmix.h (EXTRA_CONSTRAINT): Pass MMIX_REG_OK_STRICT
to mmix_extra_constraint.
* config/mmix/mmix.c (mmix_secondary_reload_class): Only handle
non-global register classes. Mark now unused parameters as such.
(mmix_extra_constraint, 'U'): Use new parameter strict and call
calling memory_operand_p or strict_memory_address_p, not
address_operand.
* config/mmix/mmix-protos.h (mmix_extra_constraint): Add parameter.
From-SVN: r48402
Kaveh R. Ghazi [Sun, 30 Dec 2001 15:58:42 +0000 (15:58 +0000)]
* unroll.c: Move include files above first use of `const'.
From-SVN: r48400
Jakub Jelinek [Sun, 30 Dec 2001 12:20:43 +0000 (13:20 +0100)]
cfgrtl.c (try_redirect_by_replacing_jump): Allow redirect_jump to fail if target is EXIT_BLOCK_PTR, die otherwise.
* cfgrtl.c (try_redirect_by_replacing_jump): Allow redirect_jump
to fail if target is EXIT_BLOCK_PTR, die otherwise.
(redirect_edge_and_branch): Likewise.
* cfgcleanup.c (try_forward_edge): Don't force jump redirecting
if target is EXIT_BLOCK_PTR.
* gcc.c-torture/compile/
20011229-2.c: New test.
From-SVN: r48399
GCC Administrator [Sun, 30 Dec 2001 08:16:40 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r48398
David Edelsohn [Sun, 30 Dec 2001 04:11:52 +0000 (04:11 +0000)]
gcc.c (init_gcc_spec): Do not link with static libgcc.a if gcc invoked with -shared.
* gcc.c (init_gcc_spec): Do not link with static libgcc.a if
gcc invoked with -shared.
From-SVN: r48396
Graham Stott [Sun, 30 Dec 2001 01:34:44 +0000 (01:34 +0000)]
i386.c (ix86_asm_dialect): Fix enum type.
* config/i386/i386.c (ix86_asm_dialect): Fix enum type.
(override_options): Delete abs macro unused.
(output_pic_addr_const): Use ASM_ATT/ASM_INTEL enumerations
when testing ASSEMBLER_DIALECT.
(print_reg): Likewise.
(print_operand): Likewise.
(print_operand_address): Likewise.
(print_operand): abort if ASSEMBLER_DIALECT is unknown dialect.
* config/i386/i386.h (ix86_asm_dialect): Fix enum type.
(FIND_BASE_TERM): Fix typo.
From-SVN: r48393
Richard Kenner [Sun, 30 Dec 2001 01:30:56 +0000 (20:30 -0500)]
Fix typo in last change.
From-SVN: r48392
Graham Stott [Sun, 30 Dec 2001 01:29:25 +0000 (01:29 +0000)]
i386.c (ix86_asm_dialect): Fix enum type.
* config/i386/i386.c (ix86_asm_dialect): Fix enum type.
(override_options): Delete abs macro unused.
(output_pic_addr_const): Use ASM_ATT/ASM_INTEL enumerations
when testing ASSEMBLER_DIALECT.
(print_reg): Likewise.
(print_operand): Likewise.
(print_operand_address): Likewise.
(print_operand): abort if ASSEMBLER_DIALECT is unknown dialect.
* config/i386/i386.h (ix86_asm_dialect): Fix enum type.
(FIND_BASE_TERM): Fix typo.
From-SVN: r48391
Richard Kenner [Sat, 29 Dec 2001 21:35:02 +0000 (21:35 +0000)]
expr.c (store_field): Use adjust_address, not PUT_MODE.
* expr.c (store_field): Use adjust_address, not PUT_MODE.
(expand_expr, case VIEW_CONVERT_EXPR): Likewise.
* reload1.c (eliminate_regs, case SUBREG): Likewise, but use
adjust_address_nv.
* varasm.c (make_decl_rtl): Likewise.
* integrate.c (copy_rtx_and_substitute, case MEM): Likewise, but use
replace_equiv_address_nv.
From-SVN: r48387
Richard Kenner [Sat, 29 Dec 2001 21:17:50 +0000 (21:17 +0000)]
varasm.c (decode_addr_const, [...]): Call output_constant_def instead of looking at TREE_CST_RTL.
* varasm.c (decode_addr_const, case INTEGER_CST): Call
output_constant_def instead of looking at TREE_CST_RTL.
From-SVN: r48386
Richard Kenner [Sat, 29 Dec 2001 21:05:22 +0000 (21:05 +0000)]
* expr.c (convert_move): If -fforce-mem, force FROM to not be memory.
From-SVN: r48385
Richard Kenner [Sat, 29 Dec 2001 21:00:51 +0000 (21:00 +0000)]
stor-layout.c (layout_decl): Don't misalign field of variable size for packed record.
* stor-layout.c (layout_decl): Don't misalign field of variable size
for packed record.
From-SVN: r48384
Richard Kenner [Sat, 29 Dec 2001 20:56:08 +0000 (20:56 +0000)]
dwarf2out.c (compute_section_prefix): Avoid cast warning.
* dwarf2out.c (compute_section_prefix): Avoid cast warning.
(gen_decl_die): Only check DECL_IGNORED_P on decls.
(dwarf2out_decl): Check for DECL_IGNORED_P only when needed.
From-SVN: r48382
Jakub Jelinek [Sat, 29 Dec 2001 20:01:15 +0000 (21:01 +0100)]
cfglayout.c (insert_intra_before_1): New.
* cfglayout.c (insert_intra_before_1): New.
(insert_inter_bb_scope_notes): Emit sibling block notes which don't
span multiple basic blocks.
* gcc.dg/debug-3.c: New test.
* gcc.dg/debug-4.c: New test.
* gcc.dg/debug-5.c: New test.
From-SVN: r48380
Richard Henderson [Sat, 29 Dec 2001 19:18:32 +0000 (11:18 -0800)]
os_defines.h: Don't define __glibcpp_long_bits.
* config/os/hpux/bits/os_defines.h: Don't define __glibcpp_long_bits.
* config/os/hpux/bits/cpu_limits.h: New file.
* configure.target (CPULIMITSH): Use it.
From-SVN: r48379
Richard Henderson [Sat, 29 Dec 2001 18:56:13 +0000 (10:56 -0800)]
* g++.dg/eh/loop1.C: New.
From-SVN: r48378
Richard Henderson [Sat, 29 Dec 2001 18:46:38 +0000 (10:46 -0800)]
loop.c (prescan_loop): Set has_multiple_exit_targets for exception edges.
* loop.c (prescan_loop): Set has_multiple_exit_targets for exception
edges. Rearrange jump interpretation code to use pc_set.
(check_dbra_loop): Examine has_multiple_exit_targets not exit_count.
* sched-deps.c (sched_analyze_insn): Set scheduling barrier for
all insns that can throw, not just if flag_non_call_exceptions.
From-SVN: r48377
Jan Hubicka [Sat, 29 Dec 2001 17:33:35 +0000 (17:33 +0000)]
Oops, wrong tree, sorry
From-SVN: r48374
Jan Hubicka [Sat, 29 Dec 2001 17:30:10 +0000 (17:30 +0000)]
Temoporarily disable broken verify flow info.
From-SVN: r48372
Nathan Sidwell [Sat, 29 Dec 2001 17:24:59 +0000 (17:24 +0000)]
call.c (build_user_type_conversion_1): Use my_friendly_assert rather than if ...
cp:
* call.c (build_user_type_conversion_1): Use my_friendly_assert
rather than if ... abort.
* cvt.c (convert_to_reference): Likewise.
* semantics.c (setup_vtbl_ptr): Likewise.
* pt.c (lookup_template_class): Comment typo.
From-SVN: r48371
Nathan Sidwell [Sat, 29 Dec 2001 17:12:55 +0000 (17:12 +0000)]
re PR c++/5125 (both g++ 3.0.1 and 2.95.3 crash with internal error when trying compile template method with parameter pointer to method)
cp:
PR c++/5125
* pt.c (push_template_decl_real): Make sure DECL has
DECL_LANG_SPECIFIC.
testsuite:
* g++.dg/template/crash1.C: New test.
From-SVN: r48370
Nathan Sidwell [Sat, 29 Dec 2001 17:10:10 +0000 (17:10 +0000)]
re PR c++/335 (gcc accepts assignment in read-only structures)
cp:
PR c++/335
* init.c (resolve_offset_ref): Copy cv qualifiers of this pointer
for non-reference fields.
* typeck.c (require_complete_type): Use resolve_offset_ref).
testsuite:
* g++.dg/other/const1.C: New test.
From-SVN: r48369
Stan Shebs [Sat, 29 Dec 2001 16:16:51 +0000 (16:16 +0000)]
objc-act.c (STRING_OBJECT_CLASS_NAME): Remove.
* objc/objc-act.c (STRING_OBJECT_CLASS_NAME): Remove.
(default_constant_string_class_name): New global.
(objc_init): Set it.
(synth_module_prologue): Use it.
From-SVN: r48366