Commit Graph

45935 Commits

Author SHA1 Message Date
Dale Johannesen
cdc58a822b Correct formatting in previous patch.
From-SVN: r58692
2002-10-31 20:32:49 +00:00
Dale Johannesen
e381c27adc enable -falign-xxx flags
From-SVN: r58690
2002-10-31 19:40:12 +00:00
Jason Merrill
3b5b4904ec restore old comment
From-SVN: r58687
2002-10-31 13:57:39 -05:00
Mark Anderson
b8d5baff92 GridBagLayout.java (setConstraints): New stubbed method added
2002-10-31  Mark Anderson  <mark@panonet.net>

	* java/awt/GridBagLayout.java (setConstraints): New stubbed method
	added

From-SVN: r58686
2002-10-31 18:50:38 +00:00
Jan Hubicka
41ed223784 Fix typo in my previous commit.
From-SVN: r58684
2002-10-31 17:27:02 +00:00
Jan Hubicka
55ba61f31a i386.c (override_options): Set defaults for flag_omit_frame_pointer...
* i386.c (override_options): Set defaults for flag_omit_frame_pointer,
	flag_asynchronous_unwind_tables, flag_pcc_struct_return.
	* i386.c (optimization_options): Set flag_omit_frame_pointer,
	flag_asynchronous_unwind_tables, flag_pcc_struct_return to 2.
	Do not clear -momit-leaf-frame-pointer when profiling.
	(ix86_frame_pointer_required): Frame pointer is allways required when
	profiling.

From-SVN: r58681
2002-10-31 17:16:52 +00:00
Mark Mitchell
14b4829dfd cp-tree.h (lang_decl_flags): Remove init_priority.
* cp-tree.h (lang_decl_flags): Remove init_priority.
	(lang_decl): Add delta.
	(GLOBAL_INIT_PRIORITY): Remove.
	(THUNK_DELTA): Revise definition.
	* decl2.c (start_objects): Don't set GLOBAL_INIT_PRIORITY.
	* dump.c (cp_dump_tree): Don't dump it.

From-SVN: r58680
2002-10-31 16:07:32 +00:00
Jan Hubicka
f7e5dfbd02 * i386.md (negdf2_ifs_rex64): Don't allow GPR operand.
From-SVN: r58678
2002-10-31 15:21:22 +00:00
J"orn Rennecke
ff881d5229 sh.h (binary_logical_operator): Declare.
* sh.h (binary_logical_operator): Declare.
	* sh.c (binary_logical_operator): New function.
	* sh.md (xordi3+1): New combiner splitter pattern.

From-SVN: r58675
2002-10-31 12:53:06 +00:00
David O'Brien
e8e4c876bc freebsd.h (TRANSFER_FROM_TRAMPOLINE): Define __enable_execute_stack function.
2002-10-31  David O'Brien  <obrien@FreeBSD.org>
	* config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Define
	__enable_execute_stack function.

Approved by:  David S. Miller <davem@redhat.com>
              Message-Id: <20021031.005015.22856738.davem@redhat.com>

From-SVN: r58674
2002-10-31 09:08:11 +00:00
GCC Administrator
0d55d45aa5 Daily bump.
From-SVN: r58673
2002-10-31 08:17:11 +00:00
Aldy Hernandez
27bd7792bf c-common.c: Add GTY to vector_type_node_list.
2002-10-30  Aldy Hernandez  <aldyh@redhat.com>

        * c-common.c: Add GTY to vector_type_node_list.

From-SVN: r58666
2002-10-31 06:57:28 +00:00
John David Anglin
a02aa5b099 pa-linux.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
* pa-linux.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
	* pa-protos.h (attr_length_millicode_call, attr_length_call,
	pa_init_machine_status): Declare new global functions.
	* pa.c (void copy_fp_args, length_fp_args, get_plabel): Declare and
	implement new functions.
	(attr_length_millicode_call, attr_length_call): Implement.
	(total_code_bytes): Change type to long.
	(pa_output_function_prologue): Compute total_code_bytes on TARGET_64BIT.
	Reset counter if flag_function_sections.
	(output_deferred_plabels): Set output alignment to 3 for TARGET_64BIT.
	(output_cbranch): Move call to gen_label_rtx.
	(output_millicode_call): Rewrite adding long TARGET_64BIT call, expose
	delay slot in all variants, shorten pc-relative calls.
	(output_call): Rewrite adding long TARGET_64BIT call, improved delay
	slot usage and exposure, various new call variants, and shortened
	sequences for some variants on TARGET_PA_20.
	Miscellaneous format changes.
	* pa.h (total_code_bytes): Change type to long.
	(MASK_LONG_CALLS, TARGET_LONG_CALLS, TARGET_LONG_ABS_CALL,
	TARGET_LONG_PIC_SDIFF_CALL, TARGET_LONG_PIC_PCREL_CALL): Define.
	(TARGET_SWITCHES): Add "-mlong-calls" and "-mno-long-calls" options.
	(EXTRA_CONSTRAINT, GO_IF_LEGITIMATE_ADDRESS,
	LEGITIMIZE_RELOAD_ADDRESS): Don't use long floating point loads and
	stores on TARGET_ELF32.
	*pa.md (define_delay): Allow insns in delay on TARGET_PORTABLE_RUNTIME.
	(unnamed patterns for mulsi3, divsi3, udivsi3, modsi3, umodsi3 and
	canonicalize_funcptr_for_compare expanders): Calculate attribute length
	attr_length_millicode_call().
	(call_internal_symref, call_value_internal_symref): Clobber register 1.
	Calculate attribute length using attr_length_call().
	(call_internal_reg_64bit, call_value_internal_reg_64bit): Move gp load
	to delay slot.
	(sibcall, sibcall_value): Rewrite.
	(sibcall_internal_symref, sibcall_value_internal_symref): Clobber
	register 1.  Use attr_length_call().
	(sibcall_internal_symref_64bit, sibcall_value_internal_symref_64bit):
	New patterns.
	(unamed pattern for canonicalize_funcptr_for_compare): Rewrite.
	* som.h (MEMBER_TYPE_FORCES_BLK): Define.
	* t-pa64 (TARGET_LIBGCC2_CFLAGS): Add "-mlong-calls".
	* doc/invoke.texi (mlong-calls): Document.

From-SVN: r58665
2002-10-31 03:13:44 +00:00
Mark Mitchell
8c081e84f7 re PR c++/8160 (ICE in build_modify_expr, at cp/typeck.c:5494: Array initialization)
PR c++/8160
	* typeck2.c (process_init_constructor): Call complete_array_type.

	PR c++/8149
	* decl.c (make_typename_type): Issue errors about invalid results.

	PR c++/8160
	* g++.dg/template/complit1.C: New test.

	PR c++/8149
	* g++.dg/template/typename4.C: Likewise.

From-SVN: r58663
2002-10-31 00:04:12 +00:00
Roger Sayle
9402f6fb74 fold-const.c (fold_binary_op_with_conditional_arg): Improve handling of cases where one or both branches of the conditional have...
* fold-const.c (fold_binary_op_with_conditional_arg):  Improve
	handling of cases where one or both branches of the conditional
	have void type, i.e. throw an exception or don't return.
	(fold): Only apply (and undo) type conversion to the non-void
	branches of a COND_EXPR.

	* f/com.c (ffecom_subscript_check_): Cast the failure branch
	of the bounds check COND_EXPR to void, to indicate noreturn.
	(ffe_truthvalue_conversion): Only apply truth value conversion
	to the non-void branches of a COND_EXPR.

From-SVN: r58661
2002-10-30 23:07:48 +00:00
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