Mark Mitchell
9b5b7e3a8f
re PR c++/8333 (c++ emits double .globals for symbols [ regression from 3.0.4 ])
...
PR c++/8333
* varasm.c (asm_output_aligned_bss): Do not call
ASM_GLOBALIZE_LABEL.
From-SVN: r58658
2002-10-30 19:23:27 +00:00
Geert Bosch
1c4048ca8d
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
2002-10-30 18:42:53 +01:00
David Edelsohn
df7a898926
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
2002-10-30 10:56:37 -05:00
Kriang Lerdsuwanakij
7088fca941
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
2002-10-30 15:54:10 +00:00
Kazu Hirata
d2d199a3e6
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
2002-10-30 11:21:24 +00:00
GCC Administrator
964dad84b4
Daily bump.
...
From-SVN: r58652
2002-10-30 08:17:49 +00:00
Hans-Peter Nilsson
f6a9714b8a
* lib/compat.exp (compat-execute): Don't clean out a gluefile.
...
From-SVN: r58646
2002-10-30 00:27:34 +00:00
Hans-Peter Nilsson
33c21f5cc0
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
2002-10-30 00:19:59 +00:00
Mark Mitchell
59db5f7beb
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
2002-10-30 00:05:56 +00:00
Mark Mitchell
5633b37c1b
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
2002-10-30 00:05:36 +00:00
Krister Walfridsson
7deae97af8
configure.in: Disable hash sync when not using threads.
...
* configure.in: Disable hash sync when not using threads.
* configure: Regenerated.
From-SVN: r58641
2002-10-29 23:03:17 +00:00
Andreas Bauer
d1445f8d81
* doc/c-tree.texi (Tree overview): Fix typos.
...
From-SVN: r58640
2002-10-29 22:39:49 +00:00
Geert Bosch
f0d96f9c14
re PR ada/6558 (Wrongly reverted patches)
...
PR ada/6558
* Make-lang.in (gnatbind): Depend on CONFIG_H
From-SVN: r58637
2002-10-29 23:18:07 +01:00
Geert Bosch
a7512decd0
re PR ada/6558 (Wrongly reverted patches)
...
PR ada/6558
* misc.c: Unrevert misc.c (1.13)
From-SVN: r58636
2002-10-29 23:01:18 +01:00
Phil Edwards
fc556cb99d
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
2002-10-29 21:37:13 +00:00
Jan Hubicka
f8ca792302
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
2002-10-29 19:41:35 +00:00
Jason Thorpe
c95d07f893
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
2002-10-29 18:23:02 +00:00
Kazu Hirata
3950794d0a
h8300.h (TARGET_DEFAULT): Make it MASK_QUICKCALL.
...
* config/h8300/h8300.h (TARGET_DEFAULT): Make it
MASK_QUICKCALL.
From-SVN: r58629
2002-10-29 18:03:37 +00:00
Kazu Hirata
803d56f52a
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
2002-10-29 17:55:45 +00:00
Kazu Hirata
6bb8a3f75a
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
2002-10-29 17:47:12 +00:00
Jan Hubicka
fc8dfa2066
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
2002-10-29 14:39:38 +00:00
Eric Botcazou
6e7727ebee
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
2002-10-29 06:20:16 -08:00
Richard Sandiford
02c6a17aef
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
2002-10-29 13:47:10 +00:00
Kazu Hirata
1862869df9
h8300.h (MASK_*): New.
...
* config/h8300/h8300.h (MASK_*): New.
(TARGET_*): Use MASK_*.
From-SVN: r58620
2002-10-29 12:29:54 +00:00
GCC Administrator
216cd92c02
Daily bump.
...
From-SVN: r58619
2002-10-29 08:17:23 +00:00
Jason Thorpe
17a7afe04b
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
2002-10-29 01:10:52 +00:00
Jason Thorpe
761642ea46
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
2002-10-28 23:31:55 +00:00
Kaveh R. Ghazi
a80c67ca2e
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
2002-10-28 18:10:56 +00:00
Jason Thorpe
ee3c755a45
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
2002-10-28 17:20:36 +00:00
Nathanael Nerode
c6362f4ff9
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
2002-10-28 16:19:22 +00:00
Kazu Hirata
423adbb9bf
ChangeLog.1: Fix typos.
...
* ChangeLog.1: Fix typos.
* cse.c: Fix a comment typo.
* reload1.c: Likewise.
From-SVN: r58596
2002-10-28 14:07:45 +00:00
Gerald Pfeifer
42e650ae23
* MAINTAINERS: Remove "co-maintainer" note for web pages.
...
From-SVN: r58595
2002-10-28 09:26:58 +00:00
GCC Administrator
e3c2b64701
Daily bump.
...
From-SVN: r58594
2002-10-28 08:17:15 +00:00
Hans-Peter Nilsson
96a888d64d
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
2002-10-27 19:35:01 +00:00
Hans-Peter Nilsson
d7521977eb
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
2002-10-27 17:58:36 +00:00
Bruce Korb
f7cf1c7492
Resorted the entries
...
From-SVN: r58584
2002-10-27 17:02:29 +00:00
Kazu Hirata
3eae4643be
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
2002-10-27 14:47:55 +00:00
Kazu Hirata
e591c83de7
* reload1.c (reload): Fix a comment typo.
...
From-SVN: r58582
2002-10-27 14:21:37 +00:00
Jan Hubicka
a0ba837ee7
* linux64.h (DEFAULT_PCC_STRUCT_RETURN): Define.
...
From-SVN: r58579
2002-10-27 09:20:22 +00:00
Zdenek Dvorak
cc0017a983
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
2002-10-27 09:14:04 +00:00
Paolo Carlini
085825b83b
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
2002-10-27 07:35:06 +00:00
GCC Administrator
881fc35459
Daily bump.
...
From-SVN: r58576
2002-10-27 07:17:14 +00:00
Roger Sayle
45329aca77
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
2002-10-27 01:00:34 +00:00
Roger Sayle
f416dcd5bf
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
2002-10-27 00:54:50 +00:00
Andris Pavenis
980bccdd6f
lang-specs.h: Fix ratfor specs.
...
2002-10-26 Andris Pavenis <pavenis@latnet.lv>
* lang-specs.h: Fix ratfor specs.
From-SVN: r58565
2002-10-26 19:25:32 +00:00
Kazu Hirata
d7af42bcbc
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
2002-10-26 19:25:26 +00:00
Hans-Peter Nilsson
4b32269b1a
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
2002-10-26 18:06:01 +00:00
Hans-Peter Nilsson
600522f8a2
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
2002-10-26 14:03:12 +00:00
GCC Administrator
86dc768102
Daily bump.
...
From-SVN: r58561
2002-10-26 07:17:23 +00:00
Hans-Peter Nilsson
35fcca95a8
Premature commit: obvious change somehow won't work. Sorry.
...
From-SVN: r58554
2002-10-26 06:01:20 +00:00