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
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
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
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
GCC Administrator [Sat, 29 Dec 2001 08:16:09 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r48360
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
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
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
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
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
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
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
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
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
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
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
Kazu Hirata [Fri, 28 Dec 2001 18:00:23 +0000 (18:00 +0000)]
* config/h8300/h8300.md: Fix formatting.
From-SVN: r48348
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
Richard Kenner [Fri, 28 Dec 2001 16:24:12 +0000 (11:24 -0500)]
Fix whitespace in and around comment.
From-SVN: r48346
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
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
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
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
GCC Administrator [Fri, 28 Dec 2001 08:16:10 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r48340
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
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
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
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
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
Kazu Hirata [Thu, 27 Dec 2001 22:43:59 +0000 (22:43 +0000)]
* config/h8300/h8300.md (two anonymous patterns): Remove.
From-SVN: r48334
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
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
Hans-Peter Nilsson [Thu, 27 Dec 2001 21:10:43 +0000 (21:10 +0000)]
Fix typo in 2001-12-26 entry
From-SVN: r48331
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
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
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
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
GCC Administrator [Thu, 27 Dec 2001 08:16:09 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r48325
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
Kaveh Ghazi [Thu, 27 Dec 2001 03:37:11 +0000 (03:37 +0000)]
Fix typo in ChangeLog
From-SVN: r48323
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
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
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
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
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
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
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
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
GCC Administrator [Wed, 26 Dec 2001 08:16:09 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r48313
Richard Kenner [Tue, 25 Dec 2001 17:11:35 +0000 (17:11 +0000)]
* dwarf2out.c: Reformatting and minor code rearrangement.
From-SVN: r48312
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
GCC Administrator [Tue, 25 Dec 2001 08:16:09 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r48309
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
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
Douglas B Rupp [Mon, 24 Dec 2001 17:37:36 +0000 (12:37 -0500)]
configure.in (quoted_stage_prefix_set_by_configure): Generate.
* configure.in (quoted_stage_prefix_set_by_configure): Generate.
* configure: Regenerated.
* Makefile.in (SUBDIR_FLAGS_TO_PASS): Use
quoted_stage_prefix_set_by_configure.
From-SVN: r48305