- 02 Jan, 2002 14 commits
-
-
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 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 -
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 -
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 -
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 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 -
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 -
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 -
From-SVN: r48461
GCC Administrator committed -
* 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 -
* 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 -
From-SVN: r48458
Tom Rix committed -
From-SVN: r48457
Kaveh R. Ghazi committed -
* 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
-
- 01 Jan, 2002 16 commits
-
-
2001-12-29 Andreas Tobler <a.tobler@schweiz.ch> * libjava/java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN for Darwin. From-SVN: r48455
Andreas Tobler committed -
* 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
Joseph Myers committed -
From-SVN: r48453
Richard Kenner committed -
* 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
Richard Kenner committed -
* 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 committed -
From-SVN: r48450
Douglas B Rupp committed -
From-SVN: r48449
Hans-Peter Nilsson committed -
* 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 committed -
From-SVN: r48447
Hans-Peter Nilsson committed -
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
Roger Sayle committed -
From-SVN: r48444
Jason Thorpe committed -
* configure.in: Add support for NetBSD cross compiles. * configure: Regenerate. From-SVN: r48443
Jason Thorpe committed -
* configure.in (uintptr_t): Use AC_CHECK_TYPE. * configure: Regenerated. From-SVN: r48442
Douglas B Rupp committed -
From-SVN: r48440
GCC Administrator committed -
* 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
Tom Tromey committed -
From-SVN: r48437
Richard Henderson committed
-
- 31 Dec, 2001 10 commits
-
-
* aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try. * configure: Regenerated. From-SVN: r48436
Ira Ruben committed -
* 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
Richard Henderson committed -
* config/alpha/vms.h (HAS_INIT_SECTION, NEED_ATEXIT): Remove. (NAME__MAIN, SYMBOL__MAIN): Define. From-SVN: r48434
Douglas B Rupp committed -
* config/alpha/alpha.c (reg_no_subreg_operand): Reject all non-registers. From-SVN: r48433
Richard Henderson committed -
From-SVN: r48432
Richard Henderson committed -
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
Richard Henderson committed -
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 committed -
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
Paolo Carlini committed -
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
Phil Edwards committed -
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
Paolo Carlini committed
-