Commit Graph

41347 Commits

Author SHA1 Message Date
Ulrich Drepper
a10e3b428c 2002-03-09 Ulrich Drepper <drepper@redhat.com>
Paolo Carlini  <pcarlini@unitus.it>

        * config/locale/generic/collate_members.cc
	(collate<char,wchar_t>::_M_compare_helper): normalize
	values returned by strcoll and wcscoll.
        * config/locale/gnu/collate_members.cc
	(collate<char,wchar_t>::_M_compare_helper): ditto
	for __strcoll_l and __wcscoll_l.

Co-Authored-By: Paolo Carlini <pcarlini@unitus.it>

From-SVN: r50551
2002-03-10 23:48:25 +00:00
Richard Henderson
26b738be01 loop.c (strength_reduce): Compute number of iterations as unsigned HOST_WIDE_INT.
* loop.c (strength_reduce): Compute number of iterations as
        unsigned HOST_WIDE_INT.

From-SVN: r50550
2002-03-10 15:46:14 -08:00
Richard Henderson
8d8a083e9c sched-rgn.c (add_branch_dependences): Don't allow insns that throw to move away from the end of the block.
* sched-rgn.c (add_branch_dependences): Don't allow insns that throw
        to move away from the end of the block.

From-SVN: r50548
2002-03-10 15:01:59 -08:00
Neil Booth
32810ba3df re PR preprocessor/5899 (-M disables -dM)
PR preprocessor/5899
	* cppinit.c (init_dependency_output): Don't ignore -dM etc.

From-SVN: r50545
2002-03-10 21:10:21 +00:00
Kaveh R. Ghazi
f90c544c3c * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
From-SVN: r50544
2002-03-10 20:59:57 +00:00
Kaveh R. Ghazi
2b03d2017c * attribs.c (decl_attributes): Fix signed/unsigned warning.
From-SVN: r50543
2002-03-10 20:54:15 +00:00
Kaveh R. Ghazi
644d28d40e * cp-tree.h (stabilize_expr): Prototype.
From-SVN: r50542
2002-03-10 20:42:53 +00:00
Anthony Green
660bdf3605 Fix mingw32 cross builds.
From-SVN: r50541
2002-03-10 19:28:05 +00:00
Tom Tromey
22d5af9af4 GridLayout.java (layoutContainer): Handle case where there are no items in container.
* java/awt/GridLayout.java (layoutContainer): Handle case where
	there are no items in container.

From-SVN: r50539
2002-03-10 18:15:58 +00:00
Hans-Peter Nilsson
3ec1b4cb7e mmix.c: Improve comments.
* config/mmix/mmix.c: Improve comments.
	(mmix_target_asm_function_prologue): Drop variable
	empty_stack_frame.  Don't allocate unused slot above fp.
	(mmix_target_asm_function_epilogue): Mirror prologue changes.
	* config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
	brace in first column.
	(enum reg_class): Ditto.
	(FIRST_PARM_OFFSET): Now 0.
	(USER_LABEL_PREFIX): Remove #if 0:d definition.

From-SVN: r50538
2002-03-10 18:09:35 +00:00
Tom Tromey
0c1fcb02b1 Win32Process.java: Added comment.
* java/lang/Win32Process.java: Added comment.
	* include/posix.h (_Jv_platform_close_on_exec): New function.
	Include fcntl.h.
	* include/win32.h (_Jv_platform_close_on_exec): New function.
	* java/net/natPlainSocketImpl.cc (create): Set close-on-exec
	flag.
	(accept): Likewise.
	* java/net/natPlainDatagramSocketImpl.cc (create): Set
	close-on-exec flag.
	* java/io/natFileDescriptorPosix.cc (open): Set close-on-exec
	flag.

From-SVN: r50536
2002-03-10 17:59:23 +00:00
Kaveh R. Ghazi
b29bb8325b * target.c (ffetarget_print_hex): Const-ify.
From-SVN: r50535
2002-03-10 17:39:05 +00:00
Kaveh R. Ghazi
27e486c5d9 * combine.c (make_extraction): Fix error in last change.
From-SVN: r50533
2002-03-10 17:14:02 +00:00
Kaveh Ghazi
a4334c365c Fix ChangeLog for my last entry.
From-SVN: r50532
2002-03-10 17:11:37 +00:00
GCC Administrator
156d2e0451 Daily bump.
From-SVN: r50531
2002-03-10 08:17:01 +00:00
Tom Tromey
621fba999d verify.cc (state::NO_STACK): New constant.
* verify.cc (state::NO_STACK): New constant.
	(state::is_unmerged_ret_state): Handle case where stacktop is
	NO_STACK.
	(state::merge): Handle NO_STACK merges.
	(handle_jsr_insn): Invalidate PC, and use special NO_STACK state
	for instruction following jsr.
	(stacktop, stackdepth): Removed unused variables.
	(pop_jump): Ignore case where all remaining states are skipped.

From-SVN: r50526
2002-03-10 04:50:21 +00:00
Bryce McKinlay
2c59df9935 ImageMediaEntry: Removed.
* java/awt/ImageMediaEntry: Removed.
	* java/awt/MediaEntry: Removed.

From-SVN: r50524
2002-03-10 03:56:38 +00:00
Bryce McKinlay
4559716751 Hashtable synchronization for PowerPC.
libjava:
	Hashtable synchronization for PowerPC.
	* configure.in: Define SLOW_PTHREAD_SELF if configure.host set
	slow_pthread_self. Set up symlink for sysdeps directory.
	* configure: Rebuild.
	* configure.host: Document more shell variables. Set sysdeps_dir
	for most platforms. Set slow_pthread_self for i686. Set
	enable_hash_synchronization_default and slow_pthread_self for PowerPC.
	* posix-threads.cc (_Jv_ThreadSelf_out_of_line): Use release_set so
	that memory barrier is emitted where required.
	* prims.cc: 64-bit align static primitive class instances.
	* include/posix-threads.h (_Jv_ThreadSelf for SLOW_PTHREAD_SELF): Add
	read_barrier() to enforce ordering of reads.
	* sysdep/powerpc/locks.h: New file. Implementation of synchronization
	primitives for PowerPC.
	* sysdep/i386/locks.h: New file. Synchronization primitives for i386
	moved from natObject.cc.
	* sysdep/alpha/locks.h: Likewise.
	* sysdep/ia64/locks.h: Likewise.
	* sysdep/generic/locks.h: Likewise.
	* java/lang/natObject.cc: Move thread synchronization primitives to
	system-dependent headers.
gcc/java:
	* decl.c (java_init_decl_processing): Make sure class_type_node
	alignment is not less than 64 bits if hash synchronization isenabled.

boehm-gc:
	* include/gc_priv.h: Define ALIGN_DOUBLE on 32 bit targets if GCJ
	support is enabled, for hash synchronization.

From-SVN: r50523
2002-03-10 03:53:16 +00:00
Adam Megacz
828c1ddccc natFileDescriptorWin32.cc (read): Return -1 if zero bytes read and no failure code returned.
2002-03-09  Adam Megacz  <adam@xwt.org>

        * java/io/natFileDescriptorWin32.cc (read): Return -1 if zero
        bytes read and no failure code returned.

From-SVN: r50519
2002-03-10 03:34:27 +00:00
Bryce McKinlay
aa7543832a configure.in: Define SLOW_PTHREAD_SELF if configure.host set slow_pthread_self.
libjava:
	* configure.in: Define SLOW_PTHREAD_SELF if configure.host set
	slow_pthread_self. Set up symlink for sysdeps directory.
	* configure.host: Document more shell variables. Set sysdeps_dir
	for most platforms. Set slow_pthread_self for i686. Set
	enable_hash_synchronization_default and slow_pthread_self for PowerPC.
	* posix-threads.cc (_Jv_ThreadSelf_out_of_line): Use release_set so
	that memory barrier is emitted where required.
	* include/posix-threads.h (_Jv_ThreadSelf for SLOW_PTHREAD_SELF): Add
	read_barrier() to enforce ordering of reads.
	* sysdep/powerpc/locks.h: New file. Implementation of synchronization
	primitives for PowerPC.
	* sysdep/i386/locks.h: New file. Synchronization primitives for i386
	moved from natObject.cc.
	* sysdep/alpha/locks.h: Likewise.
	* sysdep/ia64/locks.h: Likewise.
	* sysdep/generic/locks.h: Likewise.
	* java/lang/natObject.cc: Move thread synchronization primitives to
	system-dependent headers.

gcc/java:
	* decl.c (java_init_decl_processing): Make sure class_type_node
	alignment is not less than 64 bits if hash synchronization is enabled.

boehm-gc:
	* include/gc_priv.h: Define ALIGN_DOUBLE on 32 bit targets if GCJ
	support is enabled, for hash synchronization.

[[Split portion of a mixed commit.]]

From-SVN: r50518.2
2002-03-10 03:31:08 +00:00
Kaveh R. Ghazi
0139adcaa7 c4x.c (c4x_fp_reglist): Const-ify.
* c4x.c (c4x_fp_reglist): Const-ify.
	* cris.c (cris_print_operand): Likewise.
	* i386.c (ix86_va_arg): Likewise.
	* ia64/unwind-ia64.c (unw_decode_table): Likewise.
	* m32r.c (m32r_hard_regno_mode_ok): Likewise.
	* m32r.h (m32r_hard_regno_mode_ok): Likewise.
	* mcore.c (regno_reg_class, mcore_unique_section): Likewise.
	* mcore.h (regno_reg_class): Likewise.
	* mips.c (gen_int_relational): Likewise.
	* ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
	* ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
	* pdp11.c (pdp11_assemble_integer): Likewise.
	* pj.h (INITIALIZE_TRAMPOLINE): Likewise.
	* s390.c (s390_branch_condition_mnemonic, regclass_map):
	Likewise.
	* s390.h (regclass_map): Likewise.
	* sh.c (shift_amounts): Likewise.
	* sh.md (rot_tab): Likewise.

From-SVN: r50517
2002-03-10 01:39:04 +00:00
Joseph Myers
1c0d0c3e56 gcc_release: Build diffs for ada and chill.
* gcc_release: Build diffs for ada and chill.  Make "bzip2" a new
	major mode.

From-SVN: r50516
2002-03-10 01:08:52 +00:00
Adam Megacz
9268f1c0a6 2002-03-09 Adam Megacz <adam@xwt.org>
* win32.cc (_CRT_MT, __mingwthr_key_dtor) Added fake
        definitions to simulate -mthreads.

From-SVN: r50515
2002-03-09 22:33:49 +00:00
Adam Megacz
bb0774f330 2002-03-09 Adam Megacz <adam@xwt.org>
* win32.cc (_Jv_platform_gettimeofday) Cast 1000 to long long to
        avoid precision loss.

From-SVN: r50511
2002-03-09 22:08:35 +00:00
Geoffrey Keating
889b90a108 rs6000.md (ne0+4): Add extra CLOBBER.
* config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
	(ne0+5): Use new clobber to generate proper shift pattern.
	Patch by Michael Matz <matz@kde.org>.

From-SVN: r50509
2002-03-09 21:02:13 +00:00
Michael Meissner
a012ba7327 Add memcpy/memset/strlen/strcmp/strncmp tests
From-SVN: r50507
2002-03-09 20:20:18 +00:00
Andreas Schwab
2877e0aede * gcc.c (validate_all_switches): Also handle `%W{...}'.
From-SVN: r50505
2002-03-09 19:53:22 +00:00
Geoffrey Keating
ae53d63a9e btest-gcc.sh: For crosses, assume newlib and GNU binutils.
* btest-gcc.sh: For crosses, assume newlib and GNU binutils.
	* site.exp: Correct mips-elf triplet.

From-SVN: r50504
2002-03-09 19:41:11 +00:00
Geoffrey Keating
79b51cd7d8 In gcc/:
* config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
In gcc/testsuite/:
	* gcc.dg/ppc-ldstruct.c: New test.

From-SVN: r50503
2002-03-09 19:14:15 +00:00
Paolo Carlini
32c1620024 locale_facets.tcc (collate::do_transform): Rewrite to fix problems with long transformed strings.
2002-03-09  Paolo Carlini  <pcarlini@unitus.it>

        * include/bits/locale_facets.tcc (collate::do_transform):
        Rewrite to fix problems with long transformed strings.

From-SVN: r50500
2002-03-09 16:44:34 +00:00
Per Bothner
edcc88c132 parse.y (java_complete_lhs): Check if patch_assignment returned an error-mark.
* parse.y (java_complete_lhs):  Check if patch_assignment
	returned an error-mark.

	* parse.y (try_builtin_assignconv):  Don't special-case zero.

From-SVN: r50499
2002-03-09 08:31:52 -08:00
Per Bothner
c314ee353b * gnu/gcj/xlib/WindowAttributes.java Assign null to RawData, not 0.
* gnu/gcj/xlib/XImage.java:  Likewise.
	* gnu/gcj/xlib/XColor.java:  Likewise.

From-SVN: r50498
2002-03-09 08:25:13 -08:00
Jakub Jelinek
e4a4c70b54 * gcc.c-torture/execute/va-arg-22.c: New test.
From-SVN: r50497
2002-03-09 14:27:11 +01:00
Jakub Jelinek
e0f1be5c98 re PR middle-end/5877 (negative offset to array index leads to inefficient code)
PR middle-end/5877
	* expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
	even for non-representable constants.

From-SVN: r50495
2002-03-09 14:23:44 +01:00
Richard Kenner
93fe8e9229 emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
* emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
	* function.c (fixup_var_refs): Add MAY_SHARE parameter.
	(fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
	(fixup_var_refs_insn, fixup_var_refs_1): Likewise.
	(pop_function_context): Compute MAY_SHARE parameter for
	fixup_var_refs.
	(fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
	(gen_mem_addressof): Call fixup_var_refs with new parm.

From-SVN: r50493
2002-03-09 07:53:21 -05:00
Richard Kenner
0a7ec76355 * combine.c (make_extraction): Don't make extension of CONST_INT.
From-SVN: r50491
2002-03-09 07:26:57 -05:00
Adam Megacz
abfabb9850 Win32Process.java (ConcreteProcess): Now throws an IOException so that Throwable.printStackTrace fails correctly.
2002-03-09  Adam Megacz  <adam@xwt.org>

        * java/lang/Win32Process.java (ConcreteProcess): Now throws an
        IOException so that Throwable.printStackTrace fails correctly.

From-SVN: r50488
2002-03-09 08:47:40 +00:00
GCC Administrator
52662243ef Daily bump.
From-SVN: r50486
2002-03-09 08:18:08 +00:00
Adam Megacz
0bf93ed48a natPlainSocketImpl.cc (read, [...]): Formatting fixed.
2002-03-08  Adam Megacz  <adam@xwt.org>

        * java/net/natPlainSocketImpl.cc (read, write, close): Formatting
        fixed.

From-SVN: r50481
2002-03-09 07:56:55 +00:00
Alexandre Oliva
9445b81426 mips.c (function_arg_pass_by_reference): Force to 0 in o32 and o64 ABIs.
* config/mips/mips.c (function_arg_pass_by_reference): Force to 0
in o32 and o64 ABIs.
* config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
but getting fixed-size structs passed in registers regardless of
padding in o32 and o64 ABIs.

From-SVN: r50480
2002-03-09 06:05:27 +00:00
Bryce McKinlay
f1148658f1 posix.cc (_Jv_platform_gettimeofday): Make sure result doesn't get truncated to int.
* posix.cc (_Jv_platform_gettimeofday): Make sure result doesn't get
        truncated to int.

From-SVN: r50479
2002-03-09 05:48:38 +00:00
Alexandre Oliva
a85cd40702 mips.c (mips_va_arg): Apply big-endianness address offset before loading address of argument passed...
* config/mips/mips.c (mips_va_arg): Apply big-endianness address
offset before loading address of argument passed by transparent
reference.

From-SVN: r50478
2002-03-09 05:48:21 +00:00
John David Anglin
c51fbe40b3 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
From-SVN: r50476
2002-03-09 04:08:54 +00:00
Alexandre Oliva
918e70dd19 mips.c (mips_expand_prologue): Set regno of vararg marker such that registers after it are saved.
* config/mips/mips.c (mips_expand_prologue): Set regno of vararg
marker such that registers after it are saved.

From-SVN: r50475
2002-03-09 04:03:03 +00:00
Craig Rodrigues
7e326356d8 cp-tree.h (CLEAR_BINFO_MARKED): Make both parts of conditional return void.
2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>

        * cp-tree.h (CLEAR_BINFO_MARKED): Make both parts of
        conditional return void.

From-SVN: r50473
2002-03-09 02:22:43 +00:00
Benjamin Kosnik
1fa4bed7b5 c_locale_generic.cc: Move to...
2002-03-08  Benjamin Kosnik  <bkoz@redhat.com>

	* c_locale_generic.cc: Move to...
	* generic/c_locale.cc
	* c_locale_generic.h: Move to...
	* generic/c_locale.h
	* codecvt_specializations_generic.h: Move to...
	* generic/codecvt_specializations.h
	* collate_members_generic.cc: Move to...
	* generic/collate_members.cc
	* ctype_members_generic.cc: Move to...
	* generic/ctype_members.cc
	* messages_members_generic.cc: Move to...
	* generic/messages_members.cc
	* messages_members_generic.h: Move to...
	* generic/messages_members.h
	* moneypunct_members_generic.cc: Move to...
	* generic/monetary_members.cc
	* numpunct_members_generic.cc: Move to...
	* generic/numeric_members.cc
	* time_members_generic.cc: Move to...
	* generic/time_members.cc
	* c_locale_gnu.cc: Move to...
	* gnu/c_locale.cc
	* c_locale_gnu.h: Move to...
	* gnu/c_locale.h
	* collate_members_gnu.cc: Move to...
	* gnu/collate_members.cc
	* ctype_members_gnu.cc: Move to...
	* gnu/ctype_members.cc
	* messages_members_gnu.cc: Move to...
	* gnu/messages_members.cc
	* messages_members_gnu.h: Move to...
	* gnu/messages_members.h
	* moneypunct_members_gnu.cc: Move to...
	* gnu/monetary_members.cc
	* numpunct_members_gnu.cc: Move to...
	* gnu/numeric_members.cc
	* time_members_gnu.cc: Move to...
	* gnu/time_members.cc
	* c_locale_ieee_1003.1-200x.cc: Move to...
	* ieee_1003.1-2001/c_locale.cc
	* c_locale_ieee_1003.1-200x.h: Move to...
	* ieee_1003.1-2001/c_locale.h
	* codecvt_specializations_ieee_1003.1-200x.h: Move to...
	* ieee_1003.1-2001/codecvt_specializations.h
	* messages_members_ieee_1003.1-200x.cc: Move to...
	* ieee_1003.1-2001/messages_members.cc
	* messages_members_ieee_1003.1-200x.h: Move to...
	* ieee_1003.1-2001/messages_members.h

	* acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Make consistent.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.
	* src/Makefile.am (sources): Change to monetary and numeric.
	* src/Makefile.in: Regenerate.
	* docs/html/configopts.html: Update to ieee_1003.1-2001.

From-SVN: r50472
2002-03-09 02:16:36 +00:00
Scott Snyder
44087988dc locale_facets.tcc (num_put::_M_convert_float): Allow one more digit of precision.
2002-03-08  scott snyder  <snyder@fnal.gov>

	libstdc++/5875
	* include/bits/locale_facets.tcc (num_put::_M_convert_float):
	Allow one more digit of precision.
	* testsuite/27_io/ostream_inserter_arith.cc: Test that we can

From-SVN: r50471
2002-03-09 02:12:30 +00:00
Scott Snyder
96854fe254 locale_facets.tcc (num_put::_M_convert_float): Allow one more digit of precision.
2002-03-08  scott snyder  <snyder@fnal.gov>

	libstdc++/5875
	* include/bits/locale_facets.tcc (num_put::_M_convert_float):
	Allow one more digit of precision.
	* testsuite/27_io/ostream_inserter_arith.cc: Test that we can
	write a double and read back in the same value.

From-SVN: r50470
2002-03-09 02:01:34 +00:00
Kaveh R. Ghazi
3070dd00e9 * sparc.c (arith_4096_operand): Fix error in last change.
From-SVN: r50468
2002-03-09 01:31:03 +00:00
Alexandre Oliva
e25d11b07c mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate defaults for MEABI.
* config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
defaults for MEABI.

From-SVN: r50467
2002-03-09 01:13:28 +00:00