gcc.git
22 years agoalgo.h: Add two more using declarations.
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

22 years agostl_bvector.h: Change calls to 3-argument distance() into standard 2-argument version.
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

22 years agoeb130.C: hash_set is now in namespace __gnu_cxx
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

22 years agostl_deque.h: Doxygenate with initial/example hooks.
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

22 years agoslist: Move into __gnu_cxx, tweak, add using declarations.
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

22 years agohash_map: Move into __gnu_cxx, tweak, add using declarations.
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

22 years agoalgo.h: Include <ext/algorithm>, tweak using declarations.
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

22 years agoDaily bump.
GCC Administrator [Mon, 31 Dec 2001 08:16:10 +0000 (08:16 +0000)]
Daily bump.

From-SVN: r48419

22 years ago* halfpic.h: Remove foward defs of tree_node and rtx_def.
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

22 years ago* toplev.h: Remove forward def of tree_node, rtx_def.
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

22 years agoexcept.h: Remove forward def of tree_node, rtx_def and define of tree, rtx.
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

22 years agobasic-block.h: Remove forward def of tree_node and define of tree.
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

22 years agoexcept.h: Remove forward def of tree_node, rtx_def and define of tree, rtx.
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

22 years agoRemove extranwous changelog header.
Graham Stott [Mon, 31 Dec 2001 04:46:11 +0000 (04:46 +0000)]
Remove extranwous changelog header.

From-SVN: r48413

22 years agocfglayout.c (scope_def, [...]): Remove.
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

22 years ago* c-lex.c: Include tree.h before expr.h
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

22 years ago* c-typeck.c: Include rtl.h earlier.
Graham Stott [Mon, 31 Dec 2001 04:10:19 +0000 (04:10 +0000)]
* c-typeck.c: Include rtl.h earlier.

From-SVN: r48410

22 years agotree.h (STRIP_NOPS): Remove extraneous semicolon.
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

22 years agofinal.c (struct bb_list): Delete.
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

22 years agocfgloop.c (flow_loop_entry_edges_find): Fix typo.
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

22 years agogcse.c (gcse_main): Fix typos.
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

22 years ago* function.h: Remove undefs for rtx and tree.
Graham Stott [Mon, 31 Dec 2001 03:48:46 +0000 (03:48 +0000)]
* function.h: Remove undefs for rtx and tree.

From-SVN: r48405

22 years agoloop.c (check_dbra_loop): Fix last change: examine both has_multiple_exit_targets...
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

22 years agointegrate.c (copy_rtx_and_substitute): Fix error last change: we need to unconditiona...
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

22 years agommix.md ("*call_real"): Fix typo in comment.
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

22 years ago* unroll.c: Move include files above first use of `const'.
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

22 years agocfgrtl.c (try_redirect_by_replacing_jump): Allow redirect_jump to fail if target...
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

22 years agoDaily bump.
GCC Administrator [Sun, 30 Dec 2001 08:16:40 +0000 (08:16 +0000)]
Daily bump.

From-SVN: r48398

22 years agogcc.c (init_gcc_spec): Do not link with static libgcc.a if gcc invoked with -shared.
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

22 years agoi386.c (ix86_asm_dialect): Fix enum type.
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

22 years agoFix typo in last change.
Richard Kenner [Sun, 30 Dec 2001 01:30:56 +0000 (20:30 -0500)]
Fix typo in last change.

From-SVN: r48392

22 years agoi386.c (ix86_asm_dialect): Fix enum type.
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

22 years agoexpr.c (store_field): Use adjust_address, not PUT_MODE.
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

22 years agovarasm.c (decode_addr_const, [...]): Call output_constant_def instead of looking...
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

22 years ago* expr.c (convert_move): If -fforce-mem, force FROM to not be memory.
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

22 years agostor-layout.c (layout_decl): Don't misalign field of variable size for packed record.
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

22 years agodwarf2out.c (compute_section_prefix): Avoid cast warning.
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

22 years agocfglayout.c (insert_intra_before_1): New.
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

22 years agoos_defines.h: Don't define __glibcpp_long_bits.
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

22 years ago* g++.dg/eh/loop1.C: New.
Richard Henderson [Sat, 29 Dec 2001 18:56:13 +0000 (10:56 -0800)]
* g++.dg/eh/loop1.C: New.

From-SVN: r48378

22 years agoloop.c (prescan_loop): Set has_multiple_exit_targets for exception edges.
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

22 years agoOops, wrong tree, sorry
Jan Hubicka [Sat, 29 Dec 2001 17:33:35 +0000 (17:33 +0000)]
Oops, wrong tree, sorry

From-SVN: r48374

22 years agoTemoporarily disable broken verify flow info.
Jan Hubicka [Sat, 29 Dec 2001 17:30:10 +0000 (17:30 +0000)]
Temoporarily disable broken verify flow info.

From-SVN: r48372

22 years agocall.c (build_user_type_conversion_1): Use my_friendly_assert rather than if ...
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

22 years agore PR c++/5125 (both g++ 3.0.1 and 2.95.3 crash with internal error when trying compi...
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

22 years agore PR c++/335 (gcc accepts assignment in read-only structures)
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

22 years agoobjc-act.c (STRING_OBJECT_CLASS_NAME): Remove.
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

22 years ago* objc/objc-act.c: Apply various cosmetic and formatting changes.
Stan Shebs [Sat, 29 Dec 2001 14:56:36 +0000 (14:56 +0000)]
* objc/objc-act.c: Apply various cosmetic and formatting changes.

From-SVN: r48365

22 years ago* gcc.c-torture/compile/20011229-1.c: New test.
Hans-Peter Nilsson [Sat, 29 Dec 2001 10:36:50 +0000 (10:36 +0000)]
* gcc.c-torture/compile/20011229-1.c: New test.

From-SVN: r48363

22 years agodarwin-tramp.asm: Fix comment formatting.
Kazu Hirata [Sat, 29 Dec 2001 09:07:56 +0000 (09:07 +0000)]
darwin-tramp.asm: Fix comment formatting.

* config/rs6000/darwin-tramp.asm: Fix comment formatting.
* config/rs6000/freebsd.h: Likewise.
* config/rs6000/rs6000.c: Likewise.
* config/sh/sh.c: Likewise.
* config/sh/sh.h: Likewise.

From-SVN: r48362

22 years agoDaily bump.
GCC Administrator [Sat, 29 Dec 2001 08:16:09 +0000 (08:16 +0000)]
Daily bump.

From-SVN: r48360

22 years agogen-table.pl: Don't process characters after \uffff.
Tom Tromey [Sat, 29 Dec 2001 04:31:10 +0000 (04:31 +0000)]
gen-table.pl: Don't process characters after \uffff.

* gen-table.pl: Don't process characters after \uffff.  Added
comment pointing to input file.

From-SVN: r48359

22 years agocpu_limits.h: New file.
Richard Henderson [Sat, 29 Dec 2001 01:19:51 +0000 (17:19 -0800)]
cpu_limits.h: New file.

        * config/cpu/ia64/bits/cpu_limits.h: New file.
        * config/os/osf/osf5.0/bits/cpu_limits.h: New file.
        * configure.target (CPULIMITSH): Use them.

From-SVN: r48358

22 years agoobjc-torture.exp: Resync with c-torture.exp.
Stan Shebs [Fri, 28 Dec 2001 23:33:57 +0000 (23:33 +0000)]
objc-torture.exp: Resync with c-torture.exp.

* lib/objc-torture.exp: Resync with c-torture.exp.
* lib/objc.exp: Load standard libraries.

From-SVN: r48357

22 years agoobjc-act.c (build_module_descriptor): Make sure the init function is not deferred.
Stan Shebs [Fri, 28 Dec 2001 23:22:05 +0000 (23:22 +0000)]
objc-act.c (build_module_descriptor): Make sure the init function is not deferred.

* objc/objc-act.c (build_module_descriptor): Make sure the init
function is not deferred.
(build_dispatch_table_initializer): Compute the method encoding if
not already done.

From-SVN: r48356

22 years ago* doc/md.texi: Add @findex define_insn_and_split.
Kazu Hirata [Fri, 28 Dec 2001 23:03:33 +0000 (23:03 +0000)]
* doc/md.texi: Add @findex define_insn_and_split.

From-SVN: r48355

22 years agogen-table.pl: Const-ify output.
Kaveh R. Ghazi [Fri, 28 Dec 2001 22:27:29 +0000 (22:27 +0000)]
gen-table.pl: Const-ify output.

* gen-table.pl: Const-ify output.  Document the location of a
suitable unicode input file.

* chartables.h: Regenerate.

From-SVN: r48354

22 years agoc++config: Move doxygen hook comment...
Phil Edwards [Fri, 28 Dec 2001 22:23:55 +0000 (22:23 +0000)]
c++config: Move doxygen hook comment...

2001-12-28  Phil Edwards  <pme@gcc.gnu.org>

* include/bits/c++config:  Move doxygen hook comment...
* docs/doxygen/doxygroups.cc:  ...to here.

From-SVN: r48353

22 years agolinux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
Hans Boehm [Fri, 28 Dec 2001 22:15:41 +0000 (14:15 -0800)]
linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.

        * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
        * config/ia64/unwind-ia64.c (uw_init_context_1): Redo sp, psp,
        bsp setup.  Set pri_unat_loc to something reasonable.
        (uw_install_context): Add missing cast.
        (unw_access_gr): Fix off-by-1 indexing error.

From-SVN: r48352

22 years agore PR libstdc++/2054 (g++-3 rejects legal code, accepted by g++-2.95.2 (functors))
Phil Edwards [Fri, 28 Dec 2001 21:57:47 +0000 (21:57 +0000)]
re PR libstdc++/2054 (g++-3 rejects legal code, accepted by g++-2.95.2 (functors))

2001-12-28  Phil Edwards  <pme@gcc.gnu.org>

PR libstdc++/2054
* include/bits/stl_algo.h (lower_bound):  Relax concept checks.
* testsuite/ext/concept_checks.cc:  New file.

From-SVN: r48351

22 years agostl_algo.h (count returning void, [...]): Move to...
Paolo Carlini [Fri, 28 Dec 2001 18:46:54 +0000 (19:46 +0100)]
stl_algo.h (count returning void, [...]): Move to...

2001-12-28  Paolo Carlini  <pcarlini@unitus.it>

        * include/bits/stl_algo.h (count returning void,
        count_if returning void, __random_sample, random_sample,
        random_sample_n, __is_heap, is_heap, is_sorted):  Move to...
        * include/ext/algorithm:  ...here, new file.
* include/Makefile.am (ext_headers):  Add new file.
        * include/Makefile.in:  Regenerate.
* testsuite/ext/headers.cc:  Include <ext/algorithm>.

From-SVN: r48350

22 years agoexcept.c: Fix comment formatting.
Kazu Hirata [Fri, 28 Dec 2001 18:17:54 +0000 (18:17 +0000)]
except.c: Fix comment formatting.

* except.c: Fix comment formatting.
* flags.h: Likewise.
* flow.c: Likewise.
* predict.c: Likewise.
* simplify-rtx.c: Likewise.
* system.h: Likewise.
* vmsdbg.h: Likewise.
* vmsdbgout.c: Likewise.

From-SVN: r48349

22 years ago* config/h8300/h8300.md: Fix formatting.
Kazu Hirata [Fri, 28 Dec 2001 18:00:23 +0000 (18:00 +0000)]
* config/h8300/h8300.md: Fix formatting.

From-SVN: r48348

22 years agovarasm.c (record_constant_1): Correct parameter to recursive call in default case.
Geoffrey Keating [Fri, 28 Dec 2001 17:57:50 +0000 (17:57 +0000)]
varasm.c (record_constant_1): Correct parameter to recursive call in default case.

* varasm.c (record_constant_1): Correct parameter to recursive
call in default case.

From-SVN: r48347

22 years agoFix whitespace in and around comment.
Richard Kenner [Fri, 28 Dec 2001 16:24:12 +0000 (11:24 -0500)]
Fix whitespace in and around comment.

From-SVN: r48346

22 years agobasic_string.h (insert(__pos, __s, __n)): Optimize by avoiding temporaries and workin...
Paolo Carlini [Fri, 28 Dec 2001 14:00:18 +0000 (15:00 +0100)]
basic_string.h (insert(__pos, __s, __n)): Optimize by avoiding temporaries and working in-place when possible.

2001-12-28  Paolo Carlini  <pcarlini@unitus.it>
            Nathan Myers  <ncm@cantrip.org>

* include/bits/basic_string.h (insert(__pos, __s, __n)):
Optimize by avoiding temporaries and working in-place when possible.
(insert(__pos1, __str)): Call insert(__pos1, __str, __pos2, __n).
(insert(__pos1, __str, __pos2, __n)): Call insert(__pos, __s, __n).
* testsuite/21_strings/insert.cc (test02): New testcases.

Co-Authored-By: Nathan Myers <ncm@cantrip.org>
From-SVN: r48345

22 years agosparc.h (ASM_PREFERRED_EH_DATA_FORMAT, [...]): Define.
Jakub Jelinek [Fri, 28 Dec 2001 09:55:14 +0000 (10:55 +0100)]
sparc.h (ASM_PREFERRED_EH_DATA_FORMAT, [...]): Define.

* config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT,
ASM_OUTPUT_DWARF_PCREL): Define.
* config/sparc/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
* configure.in (HAVE_AS_SPARC_UA_PCREL): Check whether as supports
.uaword %r_disp32() and linker handles it correctly.
* configure, config.in: Rebuilt.

From-SVN: r48344

22 years agoc-typeck.c (store_init_value): If initializing object with array type of unknown...
Jakub Jelinek [Fri, 28 Dec 2001 09:51:20 +0000 (10:51 +0100)]
c-typeck.c (store_init_value): If initializing object with array type of unknown size by a compound literal...

* c-typeck.c (store_init_value): If initializing object with array
type of unknown size by a compound literal, set object's size from
compound literal size.
* doc/extend.texi (Compound Literals): Adjust documentation.

* gcc.dg/gnu89-init-1.c: Adjust for the new behaviour, add some
additional tests.

From-SVN: r48343

22 years agoreal.c (etoe113, toe113): Ifndef INTEL_EXTENDED_IEEE_FORMAT.
Richard Henderson [Fri, 28 Dec 2001 09:23:05 +0000 (01:23 -0800)]
real.c (etoe113, toe113): Ifndef INTEL_EXTENDED_IEEE_FORMAT.

        * real.c (etoe113, toe113): Ifndef INTEL_EXTENDED_IEEE_FORMAT.
        (endian): Clear word 3 for INTEL_EXTENDED_IEEE_FORMAT.
        (etartdouble): Invoke etoe64 for INTEL_EXTENDED_IEEE_FORMAT.
        * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Don't special case
        INTEL_EXTENDED_IEEE_FORMAT.

From-SVN: r48342

22 years agoDaily bump.
GCC Administrator [Fri, 28 Dec 2001 08:16:10 +0000 (08:16 +0000)]
Daily bump.

From-SVN: r48340

22 years agocombine.c (try_combine): Mask off sign bits when combining stores to the low and...
Geoffrey Keating [Fri, 28 Dec 2001 07:52:44 +0000 (07:52 +0000)]
combine.c (try_combine): Mask off sign bits when combining stores to the low and high parts of a...

* combine.c (try_combine): Mask off sign bits when combining
stores to the low and high parts of a two-word value.

From-SVN: r48339

22 years agoexpr.c (expand_expr): Don't mark memory for non-constants as constant.
Geoffrey Keating [Fri, 28 Dec 2001 07:51:59 +0000 (07:51 +0000)]
expr.c (expand_expr): Don't mark memory for non-constants as constant.

* expr.c (expand_expr): Don't mark memory for non-constants as
constant.

From-SVN: r48338

22 years agointegrate.c (copy_rtx_and_substitute, case MEM): If inlining and not for LHS, clear...
Richard Kenner [Fri, 28 Dec 2001 01:46:22 +0000 (01:46 +0000)]
integrate.c (copy_rtx_and_substitute, case MEM): If inlining and not for LHS, clear RTX_UNCHANGING_P.

* integrate.c (copy_rtx_and_substitute, case MEM): If inlining
and not for LHS, clear RTX_UNCHANGING_P.

From-SVN: r48337

22 years agocppfiles.c (stack_include_files): Don't translate <stdin>.
Philipp Thomas [Fri, 28 Dec 2001 00:09:47 +0000 (00:09 +0000)]
cppfiles.c (stack_include_files): Don't translate <stdin>.

From-SVN: r48336

22 years agore PR rtl-optimization/3508 (builtin memcmp() could be optimised)
Roger Sayle [Thu, 27 Dec 2001 23:34:31 +0000 (23:34 +0000)]
re PR rtl-optimization/3508 (builtin memcmp() could be optimised)

        * builtins.c (expand_builtin_memcmp): Optimize memcmp built-in
        when all arguments are known constant.  Fixes PR opt/3508.

        * gcc.c-torture/execute/string-opt-16.c: New testcase.

From-SVN: r48335

22 years ago* config/h8300/h8300.md (two anonymous patterns): Remove.
Kazu Hirata [Thu, 27 Dec 2001 22:43:59 +0000 (22:43 +0000)]
* config/h8300/h8300.md (two anonymous patterns): Remove.

From-SVN: r48334

22 years agohaifa-sched.c (reemit_other_notes): New.
Richard Henderson [Thu, 27 Dec 2001 22:19:59 +0000 (14:19 -0800)]
haifa-sched.c (reemit_other_notes): New.

        * haifa-sched.c (reemit_other_notes): New.
        (schedule_block): Use it.
        * sched-ebb.c (schedule_ebbs): Call remove_unnecessary_notes.
        * sched-rgn.c (schedule_insns): Likewise.
        * cfglayout.c (remove_scope_notes): Handle removing note at
        the end of the insn chain.
        * function.c (debug_find_var_in_block_tree): New.

        * gcc.dg/debug-1.c, gcc.dg/debug-2.c: New.

From-SVN: r48333

22 years agotestsuite_hooks.h (gnu_counting_struct): Add.
Phil Edwards [Thu, 27 Dec 2001 21:51:28 +0000 (21:51 +0000)]
testsuite_hooks.h (gnu_counting_struct): Add.

2001-12-27  Phil Edwards  <pme@gcc.gnu.org>

* testsuite/testsuite_hooks.h (gnu_counting_struct):  Add.
* testsuite/23_containers/deque_ctor.cc:  New file.

From-SVN: r48332

22 years agoFix typo in 2001-12-26 entry
Hans-Peter Nilsson [Thu, 27 Dec 2001 21:10:43 +0000 (21:10 +0000)]
Fix typo in 2001-12-26 entry

From-SVN: r48331

22 years agolinux64.h (ASM_DECLARE_FUNCTION_NAME): Simplify.
Alan Modra [Thu, 27 Dec 2001 17:59:21 +0000 (17:59 +0000)]
linux64.h (ASM_DECLARE_FUNCTION_NAME): Simplify.

2001-12-27  Alan Modra  <amodra@bigpond.net.au>
            David Edelsohn  <edelsohn@gnu.org>

        * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Simplify.

Co-Authored-By: David Edelsohn <edelsohn@gnu.org>
From-SVN: r48330

22 years agotoplev.c (independent_decode_option): Re-add -aux-info option handling.
Jakub Jelinek [Thu, 27 Dec 2001 17:22:00 +0000 (18:22 +0100)]
toplev.c (independent_decode_option): Re-add -aux-info option handling.

* toplev.c (independent_decode_option): Re-add -aux-info option
handling.

From-SVN: r48329

22 years agointegrate.c (copy_insn_notes): Don't adjust REG_EH_REGION note if special value.
Richard Kenner [Thu, 27 Dec 2001 14:57:17 +0000 (14:57 +0000)]
integrate.c (copy_insn_notes): Don't adjust REG_EH_REGION note if special value.

* integrate.c (copy_insn_notes): Don't adjust REG_EH_REGION note
if special value.

From-SVN: r48328

22 years agolocale_facets.tcc (collate::do_transform): Adjust implicit typename.
Paolo Carlini [Thu, 27 Dec 2001 12:13:23 +0000 (13:13 +0100)]
locale_facets.tcc (collate::do_transform): Adjust implicit typename.

2001-12-27  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/locale_facets.tcc (collate::do_transform):
Adjust implicit typename.
* config/locale/messages_members_generic.h (messages::open,
messages::do_open, messages::do_get): Adjust implicit typename.
* config/locale/messages_members_gnu.h (messages::open,
messages::do_open, messages::do_get): Adjust Implicit typename.
* config/locale/messages_members_ieee_1003.1-200x.h (messages::open,
messages::do_open, messages::do_get): Adjust implicit typename.

From-SVN: r48327

22 years agoDaily bump.
GCC Administrator [Thu, 27 Dec 2001 08:16:09 +0000 (08:16 +0000)]
Daily bump.

From-SVN: r48325

22 years agore PR libstdc++/3829 (missing template instantiations)
Phil Edwards [Thu, 27 Dec 2001 07:26:00 +0000 (07:26 +0000)]
re PR libstdc++/3829 (missing template instantiations)

2001-12-27  Phil Edwards  <pme@gcc.gnu.org>

PR libstdc++/3829
* src/misc-inst.cc:  Many additional I/O-related instantiations.
* testsuite/27_io/instantiations.cc:  New file.

From-SVN: r48324

22 years agoFix typo in ChangeLog
Kaveh Ghazi [Thu, 27 Dec 2001 03:37:11 +0000 (03:37 +0000)]
Fix typo in ChangeLog

From-SVN: r48323

22 years agocollect2.c (is_ctor_dtor): Const-ify.
Kaveh R. Ghazi [Thu, 27 Dec 2001 03:35:21 +0000 (03:35 +0000)]
collect2.c (is_ctor_dtor): Const-ify.

* collect2.c (is_ctor_dtor): Const-ify.
* m88k-protos.c (output_file_start): Likewise.
* m88k.c (m88k_lang_independent_options, output_options,
output_file_start): Likewise.
* fix-header.c (files_to_ignore, std_include_entry, include_entry,
std_include_table, main): Likewise.
* protoize.c (longopts): Likewise.
* regclass.c (int_reg_class_contents): Likewise.
* toplev.c (dump_file, f_options, W_options): Make static.
(lang_independent_options, f_options, W_options): Const-ify.
* tree-dump.c (dump_file_info): Likewise.
* unroll.c (_factor): Make static.

java:
* chartables.h: Const-ify.
* gjavah.c (options): Likewise.
* jcf-dump.c (options): Likewise.
* jv-scan.c (options): Likewise.
* lex.c (java_start_char_p, java_part_char_p): Likewise.
* parse.y (binop_lookup): Likewise.

From-SVN: r48322

22 years ago* config/alpha/alpha.c (alpha_align_insns): Remove warning.
Richard Kenner [Wed, 26 Dec 2001 23:10:56 +0000 (23:10 +0000)]
* config/alpha/alpha.c (alpha_align_insns): Remove warning.

From-SVN: r48321

22 years agosparc.md (call struct patterns): Show starting at two words long.
Richard Kenner [Wed, 26 Dec 2001 23:03:42 +0000 (23:03 +0000)]
sparc.md (call struct patterns): Show starting at two words long.

* config/sparc/sparc.md (call struct patterns): Show starting
at two words long.

From-SVN: r48320

22 years agors6000.h (ASM_CPU_SPEC, [...]): Add mcpu=405.
David Edelsohn [Wed, 26 Dec 2001 22:53:46 +0000 (22:53 +0000)]
rs6000.h (ASM_CPU_SPEC, [...]): Add mcpu=405.

        * rs6000.h (ASM_CPU_SPEC, CPP_CPU_SPEC): Add mcpu=405.
        * sysv4.h (CPP_SYSV_SPEC, CPP_OS_VXWORKS_SPEC): Add mcpu=405.

From-SVN: r48319

22 years agoinsert_iterator.cc (test02): Add.
Benjamin Kosnik [Wed, 26 Dec 2001 21:56:17 +0000 (21:56 +0000)]
insert_iterator.cc (test02): Add.

2001-12-26  Benjamin Kosnik  <bkoz@waller.constant.com>

* testsuite/24_iterators/insert_iterator.cc (test02): Add.
* testsuite/24_iterators/front_insert_iterator.cc (test02): Add.
* testsuite/24_iterators/back_insert_iterator.cc (test02): Add.
* testsuite/24_iterators/reverse_iterator.cc (test02): Add.

* include/bits/stl_iterator.h (reverse_iterator): Uglify member
current to _M_current.
(back_insert_iterator): Ulify member container to _M_container.
(front_insert_iterator): Same.
(insert_iterator): Same.

From-SVN: r48318

22 years agore PR c++/196 (problem with: namespace N { class N {...}; })
Nathan Sidwell [Wed, 26 Dec 2001 20:33:37 +0000 (20:33 +0000)]
re PR c++/196 (problem with:  namespace N { class N {...}; })

cp:
PR c++/196
* cp/parse.y (bad_parm): Better diagnostic when given a SCOPE_REF.
testsuite:
* g++.dg/eh/ctor1.C: New test.
* g++.dg/other/error2.C: New test.

From-SVN: r48317

22 years agofunction.c (expand_main_function): Make sure stack adjustments happen before sjlj...
DJ Delorie [Wed, 26 Dec 2001 19:54:44 +0000 (14:54 -0500)]
function.c (expand_main_function): Make sure stack adjustments happen before sjlj exception setup.

* function.c (expand_main_function): Make sure stack adjustments
happen before sjlj exception setup.

From-SVN: r48316

22 years agors6000.md (indirect_jump): Prefer CTR over LR.
David Edelsohn [Wed, 26 Dec 2001 18:02:17 +0000 (18:02 +0000)]
rs6000.md (indirect_jump): Prefer CTR over LR.

        * rs6000.md (indirect_jump): Prefer CTR over LR.
        * xcoff.h (ASM_DECLARE_FUNCTION_NAME): Handle weak function.

From-SVN: r48315

22 years agoDaily bump.
GCC Administrator [Wed, 26 Dec 2001 08:16:09 +0000 (08:16 +0000)]
Daily bump.

From-SVN: r48313

22 years ago* dwarf2out.c: Reformatting and minor code rearrangement.
Richard Kenner [Tue, 25 Dec 2001 17:11:35 +0000 (17:11 +0000)]
* dwarf2out.c: Reformatting and minor code rearrangement.

From-SVN: r48312

22 years agostd_limits.h (__glibcpp_xxx_is_modulo): New macros for signed types; default value...
Gabriel Dos Reis [Tue, 25 Dec 2001 13:53:56 +0000 (13:53 +0000)]
std_limits.h (__glibcpp_xxx_is_modulo): New macros for signed types; default value is true.

* include/bits/std_limits.h (__glibcpp_xxx_is_modulo): New
macros for signed types; default value is true.
(numeric_limits<>::is_modulo): Get value from corresponding
__glibcpp_xxx_is_modulo macro.

From-SVN: r48311

22 years agoDaily bump.
GCC Administrator [Tue, 25 Dec 2001 08:16:09 +0000 (08:16 +0000)]
Daily bump.

From-SVN: r48309

22 years agore PR c++/160 (Reference variables not initialized correctly in constructor initializ...
Nathan Sidwell [Mon, 24 Dec 2001 20:52:36 +0000 (20:52 +0000)]
re PR c++/160 (Reference variables not initialized correctly in constructor initializer list using , operator)

cp:
PR c++/160
* typeck.c (build_modify_expr): Remove old unreachable code & tidy
up. Don't stabilize_references when initializing a reference.
testsuite:
* g++.dg/other/init2.C: New test.

From-SVN: r48307

22 years agoconfigure.in (uintptr_t): Use AC_CHECK_TYPE.
Douglas B Rupp [Mon, 24 Dec 2001 17:51:40 +0000 (12:51 -0500)]
configure.in (uintptr_t): Use AC_CHECK_TYPE.

* configure.in (uintptr_t): Use AC_CHECK_TYPE.
* configure: Regenerated.

From-SVN: r48306