gcc.git
21 years agore PR ada/6558 (Wrongly reverted patches)
Geert Bosch [Wed, 30 Oct 2002 17:42:53 +0000 (18:42 +0100)]
re PR ada/6558 (Wrongly reverted patches)

PR ada/6558
* misc.c : Include optabs.h

* Make-lang.in (misc.o): Add dependency on optabs.h

From-SVN: r58656

21 years agors6000.md (load_toc_v4_PIC_1): Use preferred form for addressibility.
David Edelsohn [Wed, 30 Oct 2002 15:56:37 +0000 (15:56 +0000)]
rs6000.md (load_toc_v4_PIC_1): Use preferred form for addressibility.

        * config/rs6000/rs6000.md (load_toc_v4_PIC_1): Use preferred form
        for addressibility.
        (load_toc_v4_PIC_1b): Same.

Co-Authored-By: Torbjorn Granlund <tege@swox.com>
From-SVN: r58655

21 years agoCore issue 287, PR c++/7639
Kriang Lerdsuwanakij [Wed, 30 Oct 2002 15:54:10 +0000 (15:54 +0000)]
Core issue 287, PR c++/7639

Core issue 287, PR c++/7639
* cp-tree.h (lang_type_class): Add decl_list field.
(CLASSTYPE_DECL_LIST): New macro.
(maybe_add_class_template_decl_list): Add declaration.
* class.c (duplicate_tag_error): Initialize CLASSTYPE_DECL_LIST.
(unreverse_member_declarations): Reverse CLASSTYPE_DECL_LIST.
(maybe_add_class_template_decl_list): New function.
(add_implicitly_declared_members): Use it.
* decl.c (maybe_process_template_type_declaration): Likewise.
(pushtag): Likewise.
* friend.c (add_friend): Likewise.
(make_friend_class): Likewise.
* semantics.c (finish_member_declaration): Likewise.
(begin_class_definition): Initialize CLASSTYPE_DECL_LIST.
* pt.c (instantiate_class_template): Use CLASSTYPE_DECL_LIST
to process members and friends in the order of declaration.

Core issue 287, PR c++/7639
* g++.dg/template/instantiate1.C: Adjust error location.
* g++.dg/template/instantiate3.C: New test.
* g++.old-deja/g++.pt/crash10.C: Adjust error location.
* g++.old-deja/g++.pt/derived3.C: Adjust error location.
* g++.old-deja/g++.pt/spec28.C: Reorder declaration.

From-SVN: r58654

21 years agoh8300.c (h8300_eightbit_constant_address_p): Truncate the addresses for H8/300 using...
Kazu Hirata [Wed, 30 Oct 2002 11:21:24 +0000 (11:21 +0000)]
h8300.c (h8300_eightbit_constant_address_p): Truncate the addresses for H8/300 using HImode.

* config/h8300/h8300.c (h8300_eightbit_constant_address_p):
Truncate the addresses for H8/300 using HImode.

From-SVN: r58653

21 years agoDaily bump.
GCC Administrator [Wed, 30 Oct 2002 08:17:49 +0000 (08:17 +0000)]
Daily bump.

From-SVN: r58652

21 years ago* lib/compat.exp (compat-execute): Don't clean out a gluefile.
Hans-Peter Nilsson [Wed, 30 Oct 2002 00:27:34 +0000 (00:27 +0000)]
* lib/compat.exp (compat-execute): Don't clean out a gluefile.

From-SVN: r58646

21 years agotoplev.c (rest_of_type_compilation): Return early in case of errors.
Hans-Peter Nilsson [Wed, 30 Oct 2002 00:19:59 +0000 (00:19 +0000)]
toplev.c (rest_of_type_compilation): Return early in case of errors.

* toplev.c (rest_of_type_compilation): Return early in case of
errors.
(check_global_declarations): Don't call debug_hooks->global_decl
in case of errors.

From-SVN: r58645

21 years agore PR c++/8287 (GCC3.2: Destructor called for non-constructed local object)
Mark Mitchell [Wed, 30 Oct 2002 00:05:56 +0000 (00:05 +0000)]
re PR c++/8287 (GCC3.2: Destructor called for non-constructed local object)

PR c++/8287
* g++.dg/init/dtor2.C: New test.

From-SVN: r58644

21 years agore PR c++/8287 (GCC3.2: Destructor called for non-constructed local object)
Mark Mitchell [Wed, 30 Oct 2002 00:05:36 +0000 (00:05 +0000)]
re PR c++/8287 (GCC3.2: Destructor called for non-constructed local object)

PR c++/8287
* decl.c (finish_destructor_body): Create the label to jump to
when returning from a destructor here.
(finish_function_body): Rather than here.

PR c++/8287
* g++.dg/init/dtor2.C: New test.

From-SVN: r58643

21 years agoconfigure.in: Disable hash sync when not using threads.
Krister Walfridsson [Tue, 29 Oct 2002 23:03:17 +0000 (00:03 +0100)]
configure.in: Disable hash sync when not using threads.

        * configure.in: Disable hash sync when not using threads.
        * configure: Regenerated.

From-SVN: r58641

21 years ago* doc/c-tree.texi (Tree overview): Fix typos.
Andreas Bauer [Tue, 29 Oct 2002 22:39:49 +0000 (22:39 +0000)]
* doc/c-tree.texi (Tree overview): Fix typos.

From-SVN: r58640

21 years agore PR ada/6558 (Wrongly reverted patches)
Geert Bosch [Tue, 29 Oct 2002 22:18:07 +0000 (23:18 +0100)]
re PR ada/6558 (Wrongly reverted patches)

        PR ada/6558
* Make-lang.in (gnatbind): Depend on CONFIG_H

From-SVN: r58637

21 years agore PR ada/6558 (Wrongly reverted patches)
Geert Bosch [Tue, 29 Oct 2002 22:01:18 +0000 (23:01 +0100)]
re PR ada/6558 (Wrongly reverted patches)

        PR ada/6558
        * misc.c: Unrevert misc.c (1.13)

From-SVN: r58636

21 years agoMakefile.in (gnucompare*): Only record bad comparisons if there really was a bad...
Phil Edwards [Tue, 29 Oct 2002 21:37:13 +0000 (21:37 +0000)]
Makefile.in (gnucompare*): Only record bad comparisons if there really was a bad comparison.

2002-10-29  Phil Edwards  <pme@gcc.gnu.org>

* Makefile.in (gnucompare*):  Only record bad comparisons
if there really was a bad comparison.

From-SVN: r58635

21 years agore PR target/8322 (SSE2 intrinsics broken?)
Jan Hubicka [Tue, 29 Oct 2002 19:41:35 +0000 (20:41 +0100)]
re PR target/8322 (SSE2 intrinsics broken?)

* i386.h (CONST_DOUBLE_OK_FOR_LETTER_P): Remove 'H'
* i386.md (movsf*, movdf*): Use 'C' instead of 'H'
* md.texi (machine dependent constraints): Document 'C'

* simplify-rtx.c (simplify_subreg): Fix const_int->vector subregging.

* i386.c (ix86_expand_vector_move): Fix.

* i386.c (ix86_expand_builtin): Use sse2_maskmovdqu_rex64.
* i386.md (sse2_maskmovdqu_rex64): New pattern

PR target/8322
* xmmintrin.h (_mm_stream_pi, _mm_stream_pd): Fix cast.
(ix86_init_mmx_sse_builtins): Fix type.

From-SVN: r58631

21 years agogthr-posix.h: Include <unistd.h> for feature tests.
Jason Thorpe [Tue, 29 Oct 2002 18:23:02 +0000 (18:23 +0000)]
gthr-posix.h: Include <unistd.h> for feature tests.

* gthr-posix.h: Include <unistd.h> for feature tests.
(sched_get_priority_max, sched_get_priority_min)
(pthread_getschedparam, pthread_setschedparam): Only use
if _POSIX_THREAD_PRIORITY_SCHEDULING is defined.
(__gthread_objc_thread_set_priority): Don't treat all non-zero
returns from sched_get_priority_max and sched_get_priority_min
as an error.

From-SVN: r58630

21 years agoh8300.h (TARGET_DEFAULT): Make it MASK_QUICKCALL.
Kazu Hirata [Tue, 29 Oct 2002 18:03:37 +0000 (18:03 +0000)]
h8300.h (TARGET_DEFAULT): Make it MASK_QUICKCALL.

* config/h8300/h8300.h (TARGET_DEFAULT): Make it
MASK_QUICKCALL.

From-SVN: r58629

21 years agoh8300.c (h8300_eightbit_constant_address_p): New.
Kazu Hirata [Tue, 29 Oct 2002 17:55:45 +0000 (17:55 +0000)]
h8300.c (h8300_eightbit_constant_address_p): New.

* config/h8300/h8300.c (h8300_eightbit_constant_address_p): New.
(h8300_tiny_constant_address_p): Likewise.
* config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Use
h8300_eightbit_constant_address_p.
(TINY_CONSTANT_ADDRESS_P): Use h8300_tiny_constant_address_p.
* config/h8300/h8300-protos.h: Add the prototypes for the two
new functions.

From-SVN: r58628

21 years agoreload1.c (update_eliminables): Unconditionally check if frame_pointer_needed has...
Kazu Hirata [Tue, 29 Oct 2002 17:47:12 +0000 (17:47 +0000)]
reload1.c (update_eliminables): Unconditionally check if frame_pointer_needed has changed.

* reload1.c (update_eliminables): Unconditionally check if
frame_pointer_needed has changed.

From-SVN: r58627

21 years agotoplev.c (rest_of_compilation): Reorganize way reg_scan is called before final pass.
Jan Hubicka [Tue, 29 Oct 2002 14:39:38 +0000 (15:39 +0100)]
toplev.c (rest_of_compilation): Reorganize way reg_scan is called before final pass.

* toplev.c (rest_of_compilation): Reorganize way reg_scan is called
before final pass.

From-SVN: r58624

21 years agoexpr.c (expand_expr): Don't use simplify_binary_operation; check for zero operands...
Eric Botcazou [Tue, 29 Oct 2002 14:20:16 +0000 (15:20 +0100)]
expr.c (expand_expr): Don't use simplify_binary_operation; check for zero operands explicitly.

        * expr.c (expand_expr) [PLUS]: Don't use simplify_binary_operation;
        check for zero operands explicitly.

From-SVN: r58623

21 years agomips.md (extv, [...]): Set size of referenced memory after adjusting to BLKmode.
Richard Sandiford [Tue, 29 Oct 2002 13:47:10 +0000 (13:47 +0000)]
mips.md (extv, [...]): Set size of referenced memory after adjusting to BLKmode.

* config/mips/mips.md (extv, extzv, insv): Set size of referenced
memory after adjusting to BLKmode.

From-SVN: r58621

21 years agoh8300.h (MASK_*): New.
Kazu Hirata [Tue, 29 Oct 2002 12:29:54 +0000 (12:29 +0000)]
h8300.h (MASK_*): New.

* config/h8300/h8300.h (MASK_*): New.
(TARGET_*): Use MASK_*.

From-SVN: r58620

21 years agoDaily bump.
GCC Administrator [Tue, 29 Oct 2002 08:17:23 +0000 (08:17 +0000)]
Daily bump.

From-SVN: r58619

21 years agopthread5.cc: Include <unistd.h> if _GLIBCPP_HAVE_UNISTD_H is defined.
Jason Thorpe [Tue, 29 Oct 2002 01:10:52 +0000 (01:10 +0000)]
pthread5.cc: Include <unistd.h> if _GLIBCPP_HAVE_UNISTD_H is defined.

* testsuite/thread/pthread5.cc: Include <unistd.h>
if _GLIBCPP_HAVE_UNISTD_H is defined.
(main): Only use pthread_attr_setscope if
_POSIX_THREAD_PRIORITY_SCHEDULING is defined.

From-SVN: r58608

21 years agopthread1.cc: Enable on *-*-netbsd*.
Jason Thorpe [Mon, 28 Oct 2002 23:31:55 +0000 (23:31 +0000)]
pthread1.cc: Enable on *-*-netbsd*.

* testsuite/thread/pthread1.cc: Enable on *-*-netbsd*.
* testsuite/thread/pthread2.cc: Likewise.
* testsuite/thread/pthread3.cc: Likewise.
* testsuite/thread/pthread4.cc: Likewise.
* testsuite/thread/pthread5.cc: Likewise.
* testsuite/thread/pthread6.cc: Likewise.

From-SVN: r58606

21 years ago20021014-1.c: Bypass errors on solaris2 and irix6.
Kaveh R. Ghazi [Mon, 28 Oct 2002 18:10:56 +0000 (18:10 +0000)]
20021014-1.c: Bypass errors on solaris2 and irix6.

* gcc.dg/20021014-1.c: Bypass errors on solaris2 and irix6.
* gcc.dg/nest.c: Bypass errors on irix6.

From-SVN: r58600

21 years agoconfig.gcc (*-*-netbsd*): Add NETBSD_ENABLE_PTHREADS to tm_defines if pthreads are...
Jason Thorpe [Mon, 28 Oct 2002 17:20:36 +0000 (17:20 +0000)]
config.gcc (*-*-netbsd*): Add NETBSD_ENABLE_PTHREADS to tm_defines if pthreads are enabled.

* config.gcc (*-*-netbsd*): Add NETBSD_ENABLE_PTHREADS to
tm_defines if pthreads are enabled.
* config/netbsd.h (LIB_SPEC): Only support the -pthread option
if NETBSD_ENABLE_PTHREADS is defined.

From-SVN: r58599

21 years agoa-chlat9.ads [...]: Update maintainership comments.
Nathanael Nerode [Mon, 28 Oct 2002 16:19:22 +0000 (16:19 +0000)]
a-chlat9.ads [...]: Update maintainership comments.

2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>

* a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
maintainership comments.

From-SVN: r58597

21 years agoChangeLog.1: Fix typos.
Kazu Hirata [Mon, 28 Oct 2002 14:07:45 +0000 (14:07 +0000)]
ChangeLog.1: Fix typos.

* ChangeLog.1: Fix typos.
* cse.c: Fix a comment typo.
* reload1.c: Likewise.

From-SVN: r58596

21 years ago* MAINTAINERS: Remove "co-maintainer" note for web pages.
Gerald Pfeifer [Mon, 28 Oct 2002 09:26:58 +0000 (10:26 +0100)]
* MAINTAINERS: Remove "co-maintainer" note for web pages.

From-SVN: r58595

21 years agoDaily bump.
GCC Administrator [Mon, 28 Oct 2002 08:17:15 +0000 (08:17 +0000)]
Daily bump.

From-SVN: r58594

21 years agonest.c: Expect error for mmix-*-*.
Hans-Peter Nilsson [Sun, 27 Oct 2002 19:35:01 +0000 (19:35 +0000)]
nest.c: Expect error for mmix-*-*.

* gcc.dg/nest.c: Expect error for mmix-*-*.
* gcc.dg/20021014-1.c: Use dg-error, not dg-build.

From-SVN: r58586

21 years agoinclhack.def (libc1_G_va_list): Correct test_text.
Hans-Peter Nilsson [Sun, 27 Oct 2002 17:58:36 +0000 (17:58 +0000)]
inclhack.def (libc1_G_va_list): Correct test_text.

* fixinc/inclhack.def (libc1_G_va_list): Correct test_text.
* fixinc/tests/base/_G_config.h: New file.

From-SVN: r58585

21 years agoResorted the entries
Bruce Korb [Sun, 27 Oct 2002 17:02:29 +0000 (17:02 +0000)]
Resorted the entries

From-SVN: r58584

21 years agocombine.c: Fix comment formatting.
Kazu Hirata [Sun, 27 Oct 2002 14:47:55 +0000 (14:47 +0000)]
combine.c: Fix comment formatting.

* combine.c: Fix comment formatting.
* loop.c: Likewise.
* real.c: Likewise.
* regclass.c: Likewise.
* regmove.c: Likewise.
* regrename.c: Likewise.
* reg-stack.c: Likewise.
* reload1.c: Likewise.
* reload.c: Likewise.
* reload.h: Likewise.
* unroll.c: Likewise.

From-SVN: r58583

21 years ago* reload1.c (reload): Fix a comment typo.
Kazu Hirata [Sun, 27 Oct 2002 14:21:37 +0000 (14:21 +0000)]
* reload1.c (reload): Fix a comment typo.

From-SVN: r58582

21 years ago* linux64.h (DEFAULT_PCC_STRUCT_RETURN): Define.
Jan Hubicka [Sun, 27 Oct 2002 09:20:22 +0000 (10:20 +0100)]
* linux64.h (DEFAULT_PCC_STRUCT_RETURN):  Define.

From-SVN: r58579

21 years agoMakefile.in (dwarf2out.o): Add dependendcy on hashtab.h.
Zdenek Dvorak [Sun, 27 Oct 2002 09:14:04 +0000 (10:14 +0100)]
Makefile.in (dwarf2out.o): Add dependendcy on hashtab.h.

* Makefile.in (dwarf2out.o): Add dependendcy on hashtab.h.
* dwarf2out.c: Include hashtab.h.
(is_main_source): New static variable.
(attr_checksum, die_checksum): Modified to handle die references.
(same_loc_p, same_dw_val_p, same_attr_p, same_die_p, same_die_p_wrap,
unmark_all_dies, htab_cu_hash, htab_cu_eq, htab_cu_del, check_duplicate_cu,
record_comdat_symbol_number): New static functions.
(output_comp_unit, compute_section_prefix, is_type_die, break_out_includes,
mark_dies, unmark_dies, dwarf2out_start_source_file): Modified.
* toplev.c (rest_of_decl_compilation): Call of dwarf2out_decl for type
declarations added.

From-SVN: r58578

21 years agore PR libstdc++/8347 (empty vector range used in string construction causes core...
Paolo Carlini [Sun, 27 Oct 2002 07:35:06 +0000 (08:35 +0100)]
re PR libstdc++/8347 (empty vector range used in string construction causes core dump.)

2002-10-27  Paolo Carlini  <pcarlini@unitus.it>

PR libstdc++/8347
* include/bits/basic_string.tcc
(string::_S_construct(_InIter, _InIter, const _Alloc&,
forward_iterator_tag)): Do not throw logic error if
__beg == NULL && __end == __beg.
(string::string(const _CharT*, const _Alloc&)): Tweak.
* testsuite/21_strings/ctor_copy_dtor.cc: Add test05 from PR.

From-SVN: r58577

21 years agoDaily bump.
GCC Administrator [Sun, 27 Oct 2002 07:17:14 +0000 (07:17 +0000)]
Daily bump.

From-SVN: r58576

21 years agopartition.h: Close the extern "C" scope when compiling with C++.
Roger Sayle [Sun, 27 Oct 2002 01:00:34 +0000 (01:00 +0000)]
partition.h: Close the extern "C" scope when compiling with C++.

* partition.h:  Close the extern "C" scope when compiling with C++.
* getopt.h: Update copyright year from the previous patch.

From-SVN: r58570

21 years agore PR bootstrap/8351 (3.3 20021024 (experimental) fails to bootstrap on cygwin)
Roger Sayle [Sun, 27 Oct 2002 00:54:50 +0000 (00:54 +0000)]
re PR bootstrap/8351 (3.3 20021024 (experimental) fails to bootstrap on cygwin)

PR bootstrap/8351
* getopt.h:  Avoid prototyping getopt with no arguments in C++.

Co-Authored-By: DJ Delorie <dj@redhat.com>
From-SVN: r58569

21 years agolang-specs.h: Fix ratfor specs.
Andris Pavenis [Sat, 26 Oct 2002 19:25:32 +0000 (22:25 +0300)]
lang-specs.h: Fix ratfor specs.

2002-10-26  Andris Pavenis  <pavenis@latnet.lv>

* lang-specs.h: Fix ratfor specs.

From-SVN: r58565

21 years agoh8300.c (initial_offset): Change to h8300_initial_elimination_offset.
Kazu Hirata [Sat, 26 Oct 2002 19:25:26 +0000 (19:25 +0000)]
h8300.c (initial_offset): Change to h8300_initial_elimination_offset.

* config/h8300/h8300.c (initial_offset): Change to
h8300_initial_elimination_offset.
* config/h8300/h8300.h (INITIAL_ELIMINATION_OFFSET): Use
h8300_initial_elimination_offset.
* config/h8300/h8300-protos.h: Update the prototype.

From-SVN: r58564

21 years agommix.h (LIBCALL_VALUE): Use MMIX_RETURN_VALUE_REGNUM, not MMIX_OUTGOING_RETURN_VALUE_...
Hans-Peter Nilsson [Sat, 26 Oct 2002 18:06:01 +0000 (18:06 +0000)]
mmix.h (LIBCALL_VALUE): Use MMIX_RETURN_VALUE_REGNUM, not MMIX_OUTGOING_RETURN_VALUE_REGNUM.

* config/mmix/mmix.h (LIBCALL_VALUE): Use
MMIX_RETURN_VALUE_REGNUM, not MMIX_OUTGOING_RETURN_VALUE_REGNUM.
(FUNCTION_VALUE_REGNO_P): Similar, but move code to...
* config/mmix/mmix.c (mmix_function_value_regno_p): New.
* config/mmix/mmix-protos.h: Remove needless ifdefs on TREE_CODE
and RTX_CODE.
(mmix_function_value_regno_p): Declare.

From-SVN: r58563

21 years agowint_t-1.c, [...]: Remove excess-errors markers.
Hans-Peter Nilsson [Sat, 26 Oct 2002 14:03:12 +0000 (14:03 +0000)]
wint_t-1.c, [...]: Remove excess-errors markers.

* gcc.dg/wint_t-1.c, gcc.dg/wchar_t-1.c: Remove excess-errors
markers.

From-SVN: r58562

21 years agoDaily bump.
GCC Administrator [Sat, 26 Oct 2002 07:17:23 +0000 (07:17 +0000)]
Daily bump.

From-SVN: r58561

21 years agoPremature commit: obvious change somehow won't work. Sorry.
Hans-Peter Nilsson [Sat, 26 Oct 2002 06:01:20 +0000 (06:01 +0000)]
Premature commit: obvious change somehow won't work.  Sorry.

From-SVN: r58554

21 years agonest.c, [...]: Expect build failure on mmix-*-*.
Hans-Peter Nilsson [Sat, 26 Oct 2002 05:44:18 +0000 (05:44 +0000)]
nest.c, [...]: Expect build failure on mmix-*-*.

* gcc.dg/nest.c, gcc.dg/20021014-1.c: Expect build failure on
mmix-*-*.

From-SVN: r58553

21 years agommix.md ("fixuns_truncdfdi2"): Replace unsigned_fix, invalid for floating point mode...
Hans-Peter Nilsson [Sat, 26 Oct 2002 02:27:17 +0000 (02:27 +0000)]
mmix.md ("fixuns_truncdfdi2"): Replace unsigned_fix, invalid for floating point mode result, with fix.

* config/mmix/mmix.md ("fixuns_truncdfdi2"): Replace unsigned_fix,
invalid for floating point mode result, with fix.

From-SVN: r58552

21 years agoAdd note about what it fixes.
Mike Stump [Sat, 26 Oct 2002 01:21:28 +0000 (01:21 +0000)]
Add note about what it fixes.

From-SVN: r58551

21 years agoc-typeck.c (warn_for_assignment): Don't print argument number, if zero.
Mike Stump [Sat, 26 Oct 2002 01:18:52 +0000 (01:18 +0000)]
c-typeck.c (warn_for_assignment): Don't print argument number, if zero.

* c-typeck.c (warn_for_assignment): Don't print argument number, if zero.
Fixes gcc.dg/warn-1.c.

From-SVN: r58550

21 years agoAdd gcc.dg/warn-1.c
Mike Stump [Sat, 26 Oct 2002 01:15:16 +0000 (01:15 +0000)]
Add gcc.dg/warn-1.c

From-SVN: r58549

21 years agocall.c (build_over_call): Use DECL_CONTEXT, not DECL_VIRTUAL_CONTEXT.
Mark Mitchell [Sat, 26 Oct 2002 00:44:44 +0000 (00:44 +0000)]
call.c (build_over_call): Use DECL_CONTEXT, not DECL_VIRTUAL_CONTEXT.

* call.c (build_over_call): Use DECL_CONTEXT, not
DECL_VIRTUAL_CONTEXT.
* class.c (modify_vtable_entry): Don't mess with
DECL_VIRTUAL_CONTEXT.
(set_vindex): Remove.
(set_primary_base): Remove vfuns_p parameter.
(determine_primary_base): Likewise.
(modify_all_vtables): Likewise.
(layout_class_type): Likewise.  Adjust calls to other functions
accordingly.
(finish_struct_1): Adjust calls to modified functions.  Set
DECL_VINDEX here.
* cp-tree.h (lang_type_class): Remove vsize.
(CLASSTYPE_VSIZE): Remove.
(lang_decl): Remove thunks.
(DECL_THUNKS): Adjust.
(DECL_VIRTUAL_CONTEXT): Remove.
(duplicate_decls): Don't copy it.
* pt.c (build_template_decl): Don't set it.
(tsubst_decl): Likewise.
* typeck.c (expand_ptrmemfunc_cst): Don't use it.

* g++.dg/lookup/ptrmem1.C: New test.

From-SVN: r58548

21 years agotoplev.c (dump_file_index): Add DFI_ce3.
Jan Hubicka [Fri, 25 Oct 2002 23:46:06 +0000 (01:46 +0200)]
toplev.c (dump_file_index): Add DFI_ce3.

* toplev.c (dump_file_index): Add DFI_ce3.
(dump_file_info): Likewise.
(rest_of_compilation): Run first ifcvt pass before tracer.

From-SVN: r58547

21 years agoMakefile.tpl (bootstrap): Add bubblestrap, quickstrap, cleanstrap, and restrap target...
Phil Edwards [Fri, 25 Oct 2002 22:49:58 +0000 (22:49 +0000)]
Makefile.tpl (bootstrap): Add bubblestrap, quickstrap, cleanstrap, and restrap targets to this rule.

2002-10-25  Phil Edwards  <pme@gcc.gnu.org>

* Makefile.tpl (bootstrap):  Add bubblestrap, quickstrap, cleanstrap,
and restrap targets to this rule.
* Makefile.in:  Regenerate.

From-SVN: r58545

21 years ago* config/ia64/hpux.h (BITS_BIG_ENDIAN): Remove.
Steve Ellcey [Fri, 25 Oct 2002 22:18:37 +0000 (22:18 +0000)]
* config/ia64/hpux.h (BITS_BIG_ENDIAN): Remove.

From-SVN: r58543

21 years agore PR c++/7266 (pedantic segfaults on missing typename)
Zack Weinberg [Fri, 25 Oct 2002 22:01:44 +0000 (22:01 +0000)]
re PR c++/7266 (pedantic segfaults on missing typename)

PR c++/7266
cp:
* decl.c (grokdeclarator): Check that TREE_OPERAND 0 of a
SCOPE_REF is not null before dereferencing it.
testsuite:
* g++.dg/template/typename3.C: New test.

From-SVN: r58540

21 years agoreal.c (real_to_decimal): If the >1 tens reduction loop results in a negative exponent...
Richard Henderson [Fri, 25 Oct 2002 21:58:12 +0000 (14:58 -0700)]
real.c (real_to_decimal): If the >1 tens reduction loop results in a negative exponent...

        * real.c (real_to_decimal): If the >1 tens reduction loop results
        in a negative exponent, fall into the <1 pten computation.

From-SVN: r58538

21 years agoMAINTAINERS: Add Wolfgang Bangerth and Volker Reichelt under GNATS only accounts.
Gerald Pfeifer [Fri, 25 Oct 2002 19:47:32 +0000 (21:47 +0200)]
MAINTAINERS: Add Wolfgang Bangerth and Volker Reichelt under GNATS only accounts.

* MAINTAINERS: Add Wolfgang Bangerth and Volker Reichelt under
GNATS only accounts.

From-SVN: r58537

21 years agoclass.c (build_vtbl_initializer): Don't use build_vtable_entry.
Mark Mitchell [Fri, 25 Oct 2002 19:39:47 +0000 (19:39 +0000)]
class.c (build_vtbl_initializer): Don't use build_vtable_entry.

* class.c (build_vtbl_initializer): Don't use build_vtable_entry.
(build_vtable_entry): Remove.
* cp-tree.h (BINFO_VIRTUALS): Expand documentation.
(lang_decl): Add thunks.
(DECL_THUNKS): New macro.
* decl.c (duplicate_decls): Copy it.
* method.c (make_thunk): Simplify, and add thunks to DECL_THUNKS.
* semantics.c (emit_associated_thunks): Simplify.

* g++.dg/abi/vthunk2.C: New test.

From-SVN: r58536

21 years agore PR c++/6994 (ICE in find_function_data)
Zack Weinberg [Fri, 25 Oct 2002 17:26:52 +0000 (17:26 +0000)]
re PR c++/6994 (ICE in find_function_data)

PR middle-end/6994

* c-objc-common.c (inline_forbidden_p): Can not inline
functions containing structures or unions containing VLAs.
* tree-inline.c (walk_tree): For all class 't' nodes, walk
TYPE_SIZE and TYPE_SIZE_UNIT.
(copy_tree_r): Copy types if they are variably modified.

* g++.dg/ext/vla1.C, gcc.dg/vla-2.c: New tests.

From-SVN: r58535

21 years agore PR c++/7228 (ICE when using member template and template function)
David Edelsohn [Fri, 25 Oct 2002 15:13:05 +0000 (15:13 +0000)]
re PR c++/7228 (ICE when using member template and template function)

        PR c++/7228
        * cp-tree.h (CLASSTYPE_READONLY_FIELDS_NEED_INIT): Check that
        lang_type structure exists before accessing field.
        (SET_CLASSTYPE_READONLY_FIELDS_NEED_INIT): New macro.
        (CLASSTYPE_REF_FIELDS_NEED_INIT): Similar.
        (SET_CLASSTYPE_REF_FIELDS_NEED_INIT): New macro.
        * class.c (check_field_decls): Use new macros.
        * typeck2.c (process_init_constructor): Remove redundant check for
        existence of lang_type structure.

From-SVN: r58532

21 years ago* config/s390/s390.md: Remove old-style peepholes.
Ulrich Weigand [Fri, 25 Oct 2002 12:28:17 +0000 (12:28 +0000)]
* config/s390/s390.md: Remove old-style peepholes.

From-SVN: r58531

21 years agos390.c (s390_decompose_address): Do not range check the displacement if base or index...
Ulrich Weigand [Fri, 25 Oct 2002 12:26:40 +0000 (12:26 +0000)]
s390.c (s390_decompose_address): Do not range check the displacement if base or index is the argument pointer...

* config/s390/s390.c (s390_decompose_address): Do not range check the
displacement if base or index is the argument pointer register.

From-SVN: r58530

21 years agoDaily bump.
GCC Administrator [Fri, 25 Oct 2002 07:18:27 +0000 (07:18 +0000)]
Daily bump.

From-SVN: r58527

21 years agoclass.c (end_of_base): New method.
Mark Mitchell [Fri, 25 Oct 2002 06:01:55 +0000 (06:01 +0000)]
class.c (end_of_base): New method.

* class.c (end_of_base): New method.
(end_of_class): Use it.  Check indirect virtual bases.

* g++.dg/abi/empty9.C: New test.

From-SVN: r58521

21 years agonatRuntime.cc (_Jv_SetDLLSearchPath): New function.
Tom Tromey [Fri, 25 Oct 2002 03:28:00 +0000 (03:28 +0000)]
natRuntime.cc (_Jv_SetDLLSearchPath): New function.

* java/lang/natRuntime.cc (_Jv_SetDLLSearchPath): New function.
(_Jv_FindSymbolInExecutable): Removed argument name.
(insertSystemProperties): Call _Jv_SetDLLSearchPath if
java.library.path is set.

* gij.cc (help): Document --showversion.
(version): Don't exit.
(main): Handle --showversion.  Exit if --version given.

From-SVN: r58520

21 years agogcj.texi (Invoking gij): Document --showversion.
Tom Tromey [Fri, 25 Oct 2002 03:27:02 +0000 (03:27 +0000)]
gcj.texi (Invoking gij): Document --showversion.

* gcj.texi (Invoking gij): Document --showversion.
(Standard Properties): java.library.path now set.

From-SVN: r58519

21 years ago* class.c (check_field_decls): Fix typo.
Mark Mitchell [Thu, 24 Oct 2002 23:43:48 +0000 (23:43 +0000)]
* class.c (check_field_decls): Fix typo.

From-SVN: r58517

21 years agoclass.c (check_field_decls): Fix typo.
Mark Mitchell [Thu, 24 Oct 2002 23:43:47 +0000 (23:43 +0000)]
class.c (check_field_decls): Fix typo.

* class.c (check_field_decls): Fix typo.

[[Split portion of a mixed commit.]]

From-SVN: r58516.2

21 years agore PR other/3337 (build on linux-gnulibc1 fails: no sys/ucontext.h)
Hans-Peter Nilsson [Thu, 24 Oct 2002 23:39:38 +0000 (23:39 +0000)]
re PR other/3337 (build on linux-gnulibc1 fails: no sys/ucontext.h)

PR other/3337
PR bootstrap/6763
PR bootstrap/8122
* testsuite/testsuite_hooks.cc (__set_testsuite_memlimit): Use
__typeof__ (r.rlim_cur), not rlim_t in declaration of limit.
(Forgot to add PR markers.  Doh!)

From-SVN: r58515

21 years agore PR other/3337 (build on linux-gnulibc1 fails: no sys/ucontext.h)
Hans-Peter Nilsson [Thu, 24 Oct 2002 23:38:27 +0000 (23:38 +0000)]
re PR other/3337 (build on linux-gnulibc1 fails: no sys/ucontext.h)

PR other/3337
PR bootstrap/6763
PR bootstrap/8122
* fixinc/inclhack.def (libc1_G_va_list): New fix.
* fixinc/fixincl.x: Regenerate.
* config/i386/linux.h: Move MD_FALLBACK_FRAME_STATE_FOR inside
ifndef IN_LIBGCC2.  Wrap it together with signal.h and
sys/ucontext.h inclusion in ifndef USE_GNULIBC_1.
* configure.in (gcc_AC_CHECK_DECLS): Check vasprintf too.
* config.in, configure: Regenerate.
(Forgot to add PR markers.  Doh!)

From-SVN: r58514

21 years agoansidecl.h (__STDC__): Add (__alpha && __cplusplus) to the list of platform compilers...
Nathan Tallent [Thu, 24 Oct 2002 23:36:25 +0000 (23:36 +0000)]
ansidecl.h (__STDC__): Add (__alpha && __cplusplus) to the list of platform compilers that may look...

* ansidecl.h (__STDC__): Add (__alpha && __cplusplus) to the
list of platform compilers that may look, smell and act
like __STDC__ but that may not define it.

From-SVN: r58513

21 years agotestsuite_hooks.cc (__set_testsuite_memlimit): Use __typeof__ (r.rlim_cur), not rlim_...
Hans-Peter Nilsson [Thu, 24 Oct 2002 23:27:27 +0000 (23:27 +0000)]
testsuite_hooks.cc (__set_testsuite_memlimit): Use __typeof__ (r.rlim_cur), not rlim_t in declaration of limit.

* testsuite/testsuite_hooks.cc (__set_testsuite_memlimit): Use
__typeof__ (r.rlim_cur), not rlim_t in declaration of limit.

From-SVN: r58512

21 years agoconfigure.in (i[3456]86-*-linux*): Add check to disable ${libgcj} for glibc1.
Hans-Peter Nilsson [Thu, 24 Oct 2002 23:25:07 +0000 (23:25 +0000)]
configure.in (i[3456]86-*-linux*): Add check to disable ${libgcj} for glibc1.

* configure.in (i[3456]86-*-linux*): Add check to disable
${libgcj} for glibc1.

From-SVN: r58511

21 years agoinclhack.def (libc1_G_va_list): New fix.
Hans-Peter Nilsson [Thu, 24 Oct 2002 23:22:47 +0000 (23:22 +0000)]
inclhack.def (libc1_G_va_list): New fix.

* fixinc/inclhack.def (libc1_G_va_list): New fix.
* fixinc/fixincl.x: Regenerate.
* config/i386/linux.h: Move MD_FALLBACK_FRAME_STATE_FOR inside
ifndef IN_LIBGCC2.  Wrap it together with signal.h and
sys/ucontext.h inclusion in ifndef USE_GNULIBC_1.
* configure.in (gcc_AC_CHECK_DECLS): Check vasprintf too.
* config.in, configure: Regenerate.

From-SVN: r58510

21 years ago* varasm.c (struct rtx_const): Array size 16 for V16QImode.
Igor Shevlyakov [Thu, 24 Oct 2002 23:00:32 +0000 (23:00 +0000)]
* varasm.c (struct rtx_const): Array size 16 for V16QImode.

From-SVN: r58509

21 years ago* config/i386/i386.c (x86_output_mi_thunk): Fix x86_64 pic jump.
Richard Henderson [Thu, 24 Oct 2002 22:36:25 +0000 (15:36 -0700)]
* config/i386/i386.c (x86_output_mi_thunk): Fix x86_64 pic jump.

From-SVN: r58508

21 years agoh8300.c (initial_offset): Simplify by using round_frame_size.
Kazu Hirata [Thu, 24 Oct 2002 21:58:21 +0000 (21:58 +0000)]
h8300.c (initial_offset): Simplify by using round_frame_size.

* config/h8300/h8300.c (initial_offset): Simplify by using
round_frame_size.

From-SVN: r58507

21 years agoinstall.texi (avr): Update required binutils version.
Marek Michalkiewicz [Thu, 24 Oct 2002 20:32:28 +0000 (20:32 +0000)]
install.texi (avr): Update required binutils version.

* doc/install.texi (avr): Update required binutils version.

* doc/install.texi: Point avr users at more up-to-date information.

From-SVN: r58505

21 years agos390.md (movdi, [...]): Add peepholes2 to pull operands out of the literal pool where...
Ulrich Weigand [Thu, 24 Oct 2002 20:19:10 +0000 (20:19 +0000)]
s390.md (movdi, [...]): Add peepholes2 to pull operands out of the literal pool where possible.

* config/s390/s390.md (movdi, movsi, movhi, movqi): Add peepholes2
to pull operands out of the literal pool where possible.

From-SVN: r58504

21 years ago* config/avr/avr.c (init_cumulative_args): Test fntype for zero.
Denis Chertykov [Thu, 24 Oct 2002 20:07:21 +0000 (20:07 +0000)]
* config/avr/avr.c (init_cumulative_args): Test fntype for zero.

From-SVN: r58503

21 years agoexpr.c (convert_move): If unsignedp is less then zero there is no equivalent code.
Steve Ellcey [Thu, 24 Oct 2002 19:52:23 +0000 (19:52 +0000)]
expr.c (convert_move): If unsignedp is less then zero there is no equivalent code.

* expr.c (convert_move): If unsignedp is less then zero there
is no equivalent code.

From-SVN: r58502

21 years ago* MAINTAINERS: Add myself as ip2k port maintainer.
Denis Chertykov [Thu, 24 Oct 2002 19:50:09 +0000 (19:50 +0000)]
* MAINTAINERS: Add myself as ip2k port maintainer.

From-SVN: r58501

21 years ago* tree.def: Delete mention of nonexistent ARRAY_TYPE fields.
Zack Weinberg [Thu, 24 Oct 2002 18:01:37 +0000 (18:01 +0000)]
* tree.def: Delete mention of nonexistent ARRAY_TYPE fields.

From-SVN: r58500

21 years agoRegenerated
Zack Weinberg [Thu, 24 Oct 2002 17:55:16 +0000 (17:55 +0000)]
Regenerated

From-SVN: r58499

21 years agoPrimes.java: Removed.
Tom Tromey [Thu, 24 Oct 2002 17:45:23 +0000 (17:45 +0000)]
Primes.java: Removed.

* libjava.lang/Primes.java: Removed.
* libjava.lang/Primes.out: Removed.

From-SVN: r58498

21 years agos390.h: Rework comments...
Ulrich Weigand [Thu, 24 Oct 2002 17:07:11 +0000 (17:07 +0000)]
s390.h: Rework comments...

* config/s390/s390.h: Rework comments; re-sort target macro definitions
according to the sequence they are defined in the manual.
(POINTER_BOUNDARY): Remove.

From-SVN: r58495

21 years agoh8300.c (round_frame_size): Replace 8 with BITS_PER_UNIT.
Kazu Hirata [Thu, 24 Oct 2002 14:08:23 +0000 (14:08 +0000)]
h8300.c (round_frame_size): Replace 8 with BITS_PER_UNIT.

* config/h8300/h8300.c (round_frame_size): Replace 8 with
BITS_PER_UNIT.

From-SVN: r58493

21 years agoh8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Make it 64-bit safe.
Kazu Hirata [Thu, 24 Oct 2002 10:45:19 +0000 (10:45 +0000)]
h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Make it 64-bit safe.

* config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Make it
64-bit safe.
(TINY_CONSTANT_ADDRESS_P): Likewise.

From-SVN: r58492

21 years agoia64.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): True.
Richard Henderson [Thu, 24 Oct 2002 09:16:36 +0000 (02:16 -0700)]
ia64.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): True.

        * config/ia64/ia64.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): True.
        (ia64_output_mi_thunk): Rewrite to use rtl, and to handle the
        vcall offset.
        * g++.dg/inherit/thunk1.C: Enable for ia64.

From-SVN: r58491

21 years agoreload.c (find_reloads_toplev): Mode of X is not important when simplifying subregs...
Richard Henderson [Thu, 24 Oct 2002 09:02:24 +0000 (02:02 -0700)]
reload.c (find_reloads_toplev): Mode of X is not important when simplifying subregs of constants.

        * reload.c (find_reloads_toplev): Mode of X is not important
        when simplifying subregs of constants.
* g++.dg/opt/reload1.C: New.

From-SVN: r58490

21 years agoconfig.gcc (mips64vr-*-elf*, [...]): Add MIPS_MARCH_CONTROLS_SOFT_FLOAT=1 to $tm_defines.
Richard Sandiford [Thu, 24 Oct 2002 08:51:00 +0000 (08:51 +0000)]
config.gcc (mips64vr-*-elf*, [...]): Add MIPS_MARCH_CONTROLS_SOFT_FLOAT=1 to $tm_defines.

* config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Add
MIPS_MARCH_CONTROLS_SOFT_FLOAT=1 to $tm_defines.
* config/mips/mips.c (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Default to 0.
(override_options): Base default setting of MASK_SOFT_FLOAT on -march
if MIPS_MARCH_CONTROLS_SOFT_FLOAT.

From-SVN: r58488

21 years agooptabs.c (expand_binop): Don't reuse the shift target in the middle of shift sequences.
Richard Sandiford [Thu, 24 Oct 2002 08:48:27 +0000 (08:48 +0000)]
optabs.c (expand_binop): Don't reuse the shift target in the middle of shift sequences.

* optabs.c (expand_binop): Don't reuse the shift target in the
middle of shift sequences.

From-SVN: r58487

21 years agoDaily bump.
GCC Administrator [Thu, 24 Oct 2002 07:17:50 +0000 (07:17 +0000)]
Daily bump.

From-SVN: r58486

21 years agoobjc-act.c (get_static_reference): Remove unneeded TYPE_BINFO initialization.
Ziemowit Laski [Thu, 24 Oct 2002 00:46:02 +0000 (00:46 +0000)]
objc-act.c (get_static_reference): Remove unneeded TYPE_BINFO initialization.

2002-10-23  Ziemowit Laski <zlaski@apple.com>

        * objc/objc-act.c (get_static_reference): Remove unneeded
        TYPE_BINFO initialization.
        (get_object-reference): Likewise.
        (build_constructor): Tighten precondition check.
        (finish_message_expr): Likewise.

From-SVN: r58480

21 years agore PR c++/8067 (g++ 3.2 internal error: Segmentation fault)
Mark Mitchell [Thu, 24 Oct 2002 00:01:37 +0000 (00:01 +0000)]
re PR c++/8067 (g++ 3.2 internal error: Segmentation fault)

PR c++/8067
* decl.c (maybe_inject_for_scope_var): Ignore __FUNCTION__ and
related variables.

PR c++/8067
* g++.dg/lookup/pretty1.C: New test.

From-SVN: r58477

21 years agojni.cc (_Jv_JNI_AllocObject): Removed old FIXME comment.
Tom Tromey [Wed, 23 Oct 2002 23:19:55 +0000 (23:19 +0000)]
jni.cc (_Jv_JNI_AllocObject): Removed old FIXME comment.

* jni.cc (_Jv_JNI_AllocObject): Removed old FIXME comment.
(array_from_valist): Correctly handle promotion for jint, jlong,
jfloat, and jdouble.

From-SVN: r58476