Nathan Sidwell
aac1406f30
PR c++/5116, c++/764
...
cp:
PR c++/5116, c++/764
* call.c (build_new_op): Make sure template class operands are
instantiated.
testsuite:
* g++.dg/template/friend10.C: New test.
* g++.dg/template/conv5.C: New test.
From-SVN: r60514
2002-12-26 12:23:11 +00:00
GCC Administrator
223231230e
Daily bump.
...
From-SVN: r60513
2002-12-26 08:17:39 +00:00
Phil Edwards
fb7054160f
vterminate.cc: Move to...
...
2002-12-25 Phil Edwards <pme@gcc.gnu.org>
* src/vterminate.cc: Move to...
* libsupc++/vterminate.cc: ...here. New file. Replace fprintf with
writestr macro. Slight reword to explanatory text.
* libsupc++/eh_terminate.cc (__cxxabiv1::__terminate_handler,
__cxxabiv1::__unexpected_handler): Break definitions out to...
* libsupc++/eh_unex_handler.cc: ...here (new file), and...
* libsupc++/eh_term_handler.cc: ...here (new file). Initialize
__terminate_handler with __gnu_cxx::__verbose_terminate_handler
instead of std::abort.
* libsupc++/Makefile.am (sources), src/Makefile.am (sources): Update.
* libsupc++/Makefile.in, src/Makefile.in: Regenerate.
From-SVN: r60505
2002-12-26 06:10:35 +00:00
David Edelsohn
b21fb038c9
rs6000.c (rs6000_override_options): Convert to tartet_flags_explicit.
...
* config/rs6000/rs6000.c (rs6000_override_options): Convert to
tartet_flags_explicit.
* config/rs6000/rs6000.h (MASK_MULTIPLE_SET, MASK_STRING_SET): Delete.
Compact target_flags bits.
(TARGET_MULTIPLE_SET, TARGET_STRING_SET): Delete.
(TARGET_SWITCHES): Delete references to *_SET flags.
From-SVN: r60504
2002-12-25 20:30:59 -05:00
Jan Hubicka
abd2dd6d22
* i386.md (memory attribute): Fix setcc attribute.
...
From-SVN: r60503
2002-12-25 19:32:51 +00:00
Kazu Hirata
d55d8fc700
output.h: Fix comment typos.
...
* output.h: Fix comment typos.
* predict.c: Likewise.
* print-tree.c: Likewise.
* profile.c: Likewise.
* ra-build.c: Likewise.
* ra-colorize.c: Likewise.
* ra-debug.c: Likewise.
* ra-rewrite.c: Likewise.
* ra.c: Likewise.
* ra.h: Likewise.
* real.c: Likewise.
* recog.c: Likewise.
* reg-stack.c: Likewise.
* regclass.c: Likewise.
From-SVN: r60502
2002-12-25 15:15:10 +00:00
Kazu Hirata
7a770d8b10
h8300.c (print_operand_address): Do not negate a negative number when printing one.
...
* config/h8300/h8300.c (print_operand_address): Do not negate
a negative number when printing one.
From-SVN: r60501
2002-12-25 15:02:03 +00:00
Kazu Hirata
7d6ac401b6
h8300-protos.h: Add prototypes for output_plussi, compute_plussi_length, and compute_plussi_cc.
...
* config/h8300/h8300-protos.h: Add prototypes for
output_plussi, compute_plussi_length, and compute_plussi_cc.
* config/h8300/h8300.c (output_plussi): New.
(compute_plussi_length): Likewise.
(compute_plussi_cc): Likewise.
* config/h8300/h8300.md (addsi_h8300h): Call
output_plussi, compute_plussi_length, and compute_plussi_cc.
From-SVN: r60500
2002-12-25 14:54:50 +00:00
GCC Administrator
b07af07e75
Daily bump.
...
From-SVN: r60499
2002-12-25 08:18:10 +00:00
Kazu Hirata
871d6a01c3
h8300.md (two peepholes): Use match_dup instead of match_operand in the new patterns.
...
* config/h8300/h8300.md (two peepholes): Use match_dup instead
of match_operand in the new patterns.
From-SVN: r60488
2002-12-25 01:30:41 +00:00
Svein E. Seldal
315fa0f4a9
config.sub: Import from master repository
...
* config.sub: Import from master repository
* config.guess: Ditto
From-SVN: r60486
2002-12-24 23:53:51 +00:00
Nathan Sidwell
3e14cd301c
re PR c++/7964 (ICE in build_base_path)
...
cp:
PR C++/7964
* cp-tree.h (resolve_scoped_fn_name): Prototype.
* call.c (resolve_scoped_fn_name): New function. Deal with
more template expansion. Broken out of ...
* parse.y (parse_finish_call_expr): ... here. Call it.
* decl2.c (build_expr_from_tree, CALL_EXPR): Use
resolve_scoped_fn_name and build_call_from_tree.
testsuite:
* g++.dg/lookup/scoped3.C: New test.
From-SVN: r60483
2002-12-24 22:20:14 +00:00
Nathan Sidwell
b9201622ae
re PR c++/9053 (g++ confused about ambiguity of overloaded function templates)
...
cp:
PR c++/9053
* decl.c (duplicate_decls): Templates may be disambiguated by
return type.
PR c++/8702
* decl2.c (check_classfn): Use lookup_fnfield_1. List all
conversion operators on failure.
testsuite
* g++.dg/lookup/decl1.C: New test.
* g++.dg/lookup/decl2.C: New test.
From-SVN: r60482
2002-12-24 22:12:17 +00:00
Joseph Myers
40aa9d95e2
new1.C, [...]: Add tests previously added only to 3.1 or 3.2 branch.
...
* g++.dg/init/new1.C, g++.dg/template/alignof1.C,
gcc.c-torture/compile/20021015-1.c,
gcc.c-torture/compile/20021015-2.c,
gcc.c-torture/compile/20021123-1.c,
gcc.c-torture/compile/20021123-2.c,
gcc.c-torture/compile/20021123-3.c,
gcc.c-torture/compile/20021123-4.c,
gcc.c-torture/execute/20021024-1.c: Add tests previously added
only to 3.1 or 3.2 branch.
From-SVN: r60479
2002-12-24 19:08:41 +00:00
Joseph Myers
4fbf9d4ad9
* doc/include/texinfo.tex: Update to version 2002-11-25.11.
...
From-SVN: r60478
2002-12-24 19:00:33 +00:00
Joseph Myers
d6bef02d0e
* texi2pod.pl: Skip contents of @copying.
...
From-SVN: r60477
2002-12-24 18:56:21 +00:00
Nathan Sidwell
8601608f05
configure.in (enable-coverage): Add SELF_COVERAGE.
...
* configure.in (enable-coverage): Add SELF_COVERAGE.
* profile.c (end_branch_prob): Use SELF_COVERAGE.
From-SVN: r60476
2002-12-24 18:44:00 +00:00
Andreas Schwab
45aff44f04
Makefile.tpl (multilib.out): Fix missing space.
...
* Makefile.tpl (multilib.out): Fix missing space.
* Makefile.in: Regenerate.
From-SVN: r60475
2002-12-24 17:24:41 +00:00
Jim Wilson
c28b4e4097
Fix v850 PlumHall testsuite failure.
...
* alias.c (record_set): Handle multi-reg hard registers.
From-SVN: r60474
2002-12-24 07:49:24 -08:00
Kazu Hirata
14b493d64d
regmove.c: Fix comment typos.
...
* regmove.c: Fix comment typos.
* reload.c: Likewise.
* reload1.c: Likewise.
* resource.c: Likewise.
* rtl.def: Likewise.
* rtl.h: Likewise.
* rtlanal.c: Likewise.
* sched-deps.c: Likewise.
* sched-rgn.c: Likewise.
* sibcall.c: Likewise.
* simplify-rtx.c: Likewise.
* ssa-ccp.c: Likewise.
* ssa.c: Likewise.
* stmt.c: Likewise.
* stor-layout.c: Likewise.
* system.h: Likewise.
* tlink.c: Likewise.
* toplev.c: Likewise.
* tracer.c: Likewise.
* tree-inline.c: Likewise.
* tree.c: Likewise.
* tree.h: Likewise.
* unroll.c: Likewise.
* varasm.c: Likewise.
From-SVN: r60473
2002-12-24 08:30:34 +00:00
GCC Administrator
02aef83470
Daily bump.
...
From-SVN: r60472
2002-12-24 08:17:40 +00:00
Danny Smith
2ae1162e06
basic_file_stdio.cc (__basic_file::_M_open_mode): Don't use O_NONBLOCK if it is not defined.
...
* config/io/basic_file_stdio.cc (__basic_file::_M_open_mode):
Don't use O_NONBLOCK if it is not defined.
(__basic_file::open): Don't use fcntl either.
From-SVN: r60461
2002-12-24 02:48:19 +00:00
Gabriel Dos Reis
94be8403e2
* call.c (tourney, build_field_call, equal_functions, joust)
...
(compare_ics, build_over_call, build_java_interface_fn_ref)
(convert_like_real, op_error, build_object_call, resolve_args)
(build_vfield_ref, check_dtor_name, build_scoped_method_call)
(build_addr_func, build_call, build_method_call, null_ptr_cst_p)
(sufficient_parms_p, build_conv, non_reference, strip_top_quals)
(standard_conversion, reference_related_p)
(reference_compatible_p, convert_class_to_reference)
(direct_reference_binding, reference_binding)
(implicit_conversion, is_complete, promoted_arithmetic_type_p)
(add_template_conv_candidate, any_viable, any_strictly_viable)
(build_this, splice_viable, print_z_candidates)
(build_user_type_conversion, build_new_function_call)
(conditional_conversion, build_conditional_expr, build_new_op)
(build_op_delete_call, enforce_access, call_builtin_trap)
(convert_arg_to_ellipsis, build_x_va_arg, cxx_type_promotes_to)
(convert_default_arg, type_passed_as, convert_for_arg_passing)
(in_charge_arg_for_name, is_properly_derived_from)
(maybe_handle_implicit_object, maybe_handle_ref_bind)
(source_type, add_warning, can_convert, can_convert_arg)
(perform_implicit_conversion, can_convert_arg_bad)
(initialize_reference, add_conv_candidate)
(add_template_candidate_real, add_template_candidate): Ansify.
From-SVN: r60458
2002-12-23 23:44:47 +00:00
Larin Hennessy
c9693e96d4
install.texi: Remove i386-*-isc, i860-*-bsd, m68k-altos-sysv, m68k-isi-bsd, m68k-sony-bsd entries.
...
2002-12-23 Larin Hennessy <larin@science.oregonstate.edu>
* doc/install.texi: Remove i386-*-isc, i860-*-bsd,
m68k-altos-sysv, m68k-isi-bsd, m68k-sony-bsd entries.
* doc/invoke.texi: Remove AMD 29K, ARM RISC/iX, Clipper, Convex,
DG/UX entries.
* doc/md.texi: Remove AMD 29K entries.
* doc/trouble.texi: Remove Alliant, DG/UX, Iris 4.0.5F, GAS
1.38.1, NewsOS, RT PC, WE32K entries.
From-SVN: r60455
2002-12-23 23:02:49 +00:00
Aldy Hernandez
a67ed43f1f
altivec.md (mulv4sf3): Rewrite to add -0.0 vector.
...
2002-12-23 Aldy Hernandez <aldyh@redhat.com>
PR/8763
* config/rs6000/altivec.md (mulv4sf3): Rewrite to add -0.0 vector.
(altivec_vspltisw_v4sf): Name pattern.
(altivec_vslw_v4sf): New pattern.
From-SVN: r60453
2002-12-23 22:08:57 +00:00
Joseph Myers
df82908a6f
gcj.texi: Include Cover Texts in man page.
...
gcc/java:
* gcj.texi: Include Cover Texts in man page.
fastjar:
* fastjar.texi: Include Cover Texts in man page.
From-SVN: r60451
2002-12-23 21:16:23 +00:00
Jeff Sturm
4017ae6e8b
exception.cc (PERSONALITY_FUNCTION): Clear least-significant-bit of catch_type.
...
* exception.cc (PERSONALITY_FUNCTION): Clear least-significant-bit
of catch_type.
* java/lang/natClass.cc (initializeClass): Link vtable, otable,
idt tables after initializing superclass.
* java/lang/natClassLoader.cc (uaddr): New typedef.
(_Jv_PrepareCompiledClass): Resolve superclass, interfaces
if they are constant pool indicies. Don't link vtable, otable yet.
From-SVN: r60450
2002-12-23 19:59:31 +00:00
Jeff Sturm
d3ab697ba4
class.c (build_static_field_ref): Check FIELD_FINAL.
...
* class.c (build_static_field_ref): Check FIELD_FINAL.
* constants.c (alloc_class_constant): Use TYPE_CPOOL_DATA_REF
instead of current_constant_pool_data_ref.
* java-tree.h (current_constant_pool_data_ref): Undefine.
(JTI_CURRENT_CONSTANT_POOL_DATA_REF): Remove.
* jcf-parse.c (init_outgoing_cpool): Don't initialize
current_constant_pool_data_ref.
* except.c (prepare_eh_table_type ): Use DECL_NAME of class type,
not build_internal_class_name.
* parse.y (patch_incomplete_class_ref): Always emit `class$' method.
Use it when class ref isn't certain to be compiled.
From-SVN: r60448
2002-12-23 19:42:09 +00:00
Joseph Myers
46d40353c3
gcc-common.texi: Define DEVELOPMENT.
...
* doc/include/gcc-common.texi: Define DEVELOPMENT.
ada:
* gnat_rm.texi: Include gcc-common.texi. Use GCC version number
only.
* Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
$(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
$(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
$(srcdir)/doc/include/gcc-common.texi.
f:
* root.texi: Include gcc-common.texi.
* bugs.texi, news.texi: Don't include root.texi as part of full
manual.
* g77.texi: Update for use of gcc-common.texi.
* Make-lang.in ($(srcdir)/f/g77.info, f/g77.dvi): Depend on
$(srcdir)/doc/include/gcc-common.texi.
java:
* gcj.texi: Include gcc-common.texi.
* Make-lang.in ($(srcdir)/java/gcj.info, java/gcj.dvi): Depend on
$(srcdir)/doc/include/gcc-common.texi.
treelang:
* treelang.texi: Include gcc-common.texi.
* Make-lang.in ($(srcdir)/treelang/treelang.info, treelang.dvi):
Depend on gcc-common.texi. Add other missing dependencies.
(treelang.dvi): Use texi2dvi.
From-SVN: r60446
2002-12-23 19:26:48 +00:00
Sylvain Pion
9536ca346b
stl_deque.h: Fix typo.
...
2002-12-20 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
* include/bits/stl_deque.h: Fix typo.
* include/bits/stl_list.h: Same.
* include/bits/stl_map.h: Same.
* include/bits/stl_multimap.h: Same.
* include/bits/stl_queue.h: Same.
* include/bits/stl_stack.h: Same.
* include/bits/stl_vector.h: Same.
From-SVN: r60442
2002-12-23 17:36:24 +00:00
Nathanael Nerode
88b5521b03
Makefile.tpl: Use shared multilib.out.
...
* Makefile.tpl: Use shared multilib.out. Use move-if-change for it.
Convert (cd foo; make) to (cd foo && make). Clean up multilib.out.
* Makefile.in: Regenerate.
* configure.in: Remove unnecessary leftovers.
From-SVN: r60441
2002-12-23 16:54:15 +00:00
Mark Mitchell
8dc65b6e6d
stor-layout.c (update_alignment_for_field): Correct handling of unnamed bitfields on PCC_BITFIELD_TYPE_MATTERS machines.
...
* stor-layout.c (update_alignment_for_field): Correct handling of
unnamed bitfields on PCC_BITFIELD_TYPE_MATTERS machines.
* doc/tm.texi (PCC_BITFIELD_TYPE_MATTERS): Note that an unnamed
bitfield does not affect alignment.
* testsuite/gcc.dg/i386-bitfield3.c: New test.
From-SVN: r60439
2002-12-23 16:39:36 +00:00
David Edelsohn
7c02ae17fe
expr.c (expand_assignment): Apply special treatment to ARRAY_TYPE.
...
* expr.c (expand_assignment): Apply special treatment to
ARRAY_TYPE.
From-SVN: r60437
2002-12-23 10:26:13 -05:00
Kazu Hirata
317d21e95b
h8300-protos.h: Update the prototype of expand_a_shift.
...
* config/h8300/h8300-protos.h: Update the prototype of
expand_a_shift.
* config/h8300/h8300.c (expand_a_shift): Change the return
type to void.
* config/h8300/h8300.md: Update all the uses of
expand_a_shift.
From-SVN: r60436
2002-12-23 14:58:53 +00:00
Nathan Sidwell
0c685f1256
tree.c (save_expr): Allow either side of a dyadic operand to be constant.
...
* tree.c (save_expr): Allow either side of a dyadic operand to be
constant.
* doc/portability.texi (portability): Update portability goals.
From-SVN: r60435
2002-12-23 14:43:28 +00:00
GCC Administrator
1df7e439e1
Daily bump.
...
From-SVN: r60430
2002-12-23 08:17:42 +00:00
Kazu Hirata
ade53a5036
* config/h8300/h8300.c (output_a_shift): Remove unused code.
...
From-SVN: r60423
2002-12-23 07:46:32 +00:00
Mark Mitchell
d317855ebc
stor-layout.c (update_alignment_for_field): Guard use of ADJUST_FIELD_ALIGN with #ifdef.
...
* stor-layout.c (update_alignment_for_field): Guard use of
ADJUST_FIELD_ALIGN with #ifdef.
From-SVN: r60422
2002-12-23 05:10:14 +00:00
Geoffrey Keating
66b77cb083
* config/mt-aix43: Delete.
...
From-SVN: r60420
2002-12-23 02:36:23 +00:00
Mark Mitchell
d0ff2db506
stor-layout.c (update_alignment_for_field): Use ADJUST_FIELD_ALIGN when computing the alignment for a zero-width bitfield...
...
* stor-layout.c (update_alignment_for_field): Use
ADJUST_FIELD_ALIGN when computing the alignment for a zero-width
bitfield when PCC_BITFIELD_TYPE_MATTERS.
From-SVN: r60419
2002-12-23 02:10:18 +00:00
Joseph Myers
bea096ccbf
* treelang.texi: Use @ifnottex instead of @ifinfo.
...
From-SVN: r60417
2002-12-22 21:48:29 +00:00
Nathan Sidwell
081cebb27a
re PR c++/8572 (ICE with external definition of conversion operator to internal class within template class)
...
cp:
PR c++/8572
* cp-tree.h (grokoptypename): Add SCOPE parameter.
* decl2.c (grokoptypename): Add SCOPE parameter. tsubst the type
if in a template scope.
* parse.y (unoperator): Return the scope.
(operator_name): Adjust grokoptypename call.
testsuite:
* g++.dg/parse/conv_op1.C: New test.
From-SVN: r60416
2002-12-22 21:32:28 +00:00
Kazu Hirata
96e13905ad
* genautomata.c: Fix comment typos.
...
From-SVN: r60415
2002-12-22 18:30:28 +00:00
Jan Hubicka
66b4e47860
params.def (tracer-min-branch-probability-feedback): Fix default.
...
* params.def (tracer-min-branch-probability-feedback): Fix default.
* final.c (compute_alignments): Use profile to avoid code bloat.
From-SVN: r60413
2002-12-22 17:24:38 +00:00
Anthony Green
fba1caab66
gcj.texi (Limitations): Add note about org.xml.sax and org.w3c.dom.
...
2002-12-22 Anthony Green <green@redhat.com>
* gcj.texi (Limitations): Add note about org.xml.sax and
org.w3c.dom.
From-SVN: r60411
2002-12-22 16:46:02 +00:00
Anthony Green
5e0c4d1995
Makefile.am: Move org.xml.sax and org.w3c.dom into their own libraries.
...
2002-12-21 Anthony Green <green@redhat.com>
* Makefile.am: Move org.xml.sax and org.w3c.dom into their own
libraries.
* Makefile.in: Rebuilt.
From-SVN: r60410
2002-12-22 16:08:40 +00:00
Kriang Lerdsuwanakij
4f09be9143
cp-tree.h (make_unbound_class_template): Use tsubst_flags_t.
...
* cp-tree.h (make_unbound_class_template): Use tsubst_flags_t.
* decl.c (make_unbound_class_template): Adjust. Check for tf_error.
* pt.c (tsubst) [OFFSET_TYPE]: Check for tf_error.
From-SVN: r60407
2002-12-22 16:01:27 +00:00
Kazu Hirata
a7612343f3
h8300.c (get_shift_alg): Make shift insn sequences end with a valid cc0 whenever possible.
...
* config/h8300/h8300.c (get_shift_alg): Make shift insn
sequences end with a valid cc0 whenever possible.
From-SVN: r60406
2002-12-22 15:02:30 +00:00
Kazu Hirata
8fb52ad1f0
h8300.md (negsf2): New.
...
* config/h8300/h8300.md (negsf2): New.
(*negsf2_h8300): Likewise.
(*negsf2_h8300hs): Likewise.
From-SVN: r60405
2002-12-22 14:45:52 +00:00
GCC Administrator
c498ccffc7
Daily bump.
...
From-SVN: r60404
2002-12-22 08:18:02 +00:00