Commit Graph

41368 Commits

Author SHA1 Message Date
Zack Weinberg
049b03f488 texi2pod.pl: Handle @include, @ftable, @vtable.
* contrib/texi2pod.pl: Handle @include, @ftable, @vtable.
	Reformat some code for clarity.
	* gcc/Makefile.in: Give texi2pod its input file as a command
	line argument, not on stdin.

From-SVN: r50592
2002-03-11 20:37:13 +00:00
Nathan Sidwell
999cc24c08 Revert 2000-12-01 Nathan Sidwell <nathan@codesourcery.com>, It is incorrect.
cp:
	Revert 2000-12-01  Nathan Sidwell  <nathan@codesourcery.com>,
	It is incorrect.
	* typeck.c (build_static_cast): Compare non-qualified types
	with pointer to member conversions.
testsuite:
	* testsuite/g++.dg/overload/pmf1.C: New test.

From-SVN: r50591
2002-03-11 20:34:51 +00:00
Dan Nicolaescu
61eece67a6 C++ alias analysis improvement.
2002-03-06  Dan Nicolaescu  <dann@ics.uci.edu>
            Daniel Berlin  <dan@dberlin.org>

        C++ alias analysis improvement.
	* alias.c (record_component_aliases): Record aliases for base
        classes too.
	* cp/cp-lang.c (ok_to_generate_alias_set_for_type): New function.
	(cxx_get_alias_set): Use it.

Co-Authored-By: Daniel Berlin <dberlin@dberlin.org>

From-SVN: r50587
2002-03-11 13:01:54 -05:00
Ulrich Weigand
ff080abaf5 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
From-SVN: r50586
2002-03-11 14:04:51 +00:00
Douglas B Rupp
fa2d765a47 * toplev.c (vms_fopen): Remove, not needed.
From-SVN: r50584
2002-03-11 08:27:46 -05:00
Douglas B Rupp
6f1fd286cd * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
From-SVN: r50582
2002-03-11 08:22:57 -05:00
Douglas B Rupp
b230e05768 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
From-SVN: r50580
2002-03-11 08:14:12 -05:00
Kazu Hirata
1453ec8cd6 * gcc.c-torture/execute/20020307-1.c: Use long.
From-SVN: r50578
2002-03-11 13:11:10 +00:00
Douglas B Rupp
cb9a8e9764 alpha.c (alpha_sa_size, VMS): Don't reserve space for FP, already done later.
* config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
	for FP, already done later.

From-SVN: r50577
2002-03-11 08:09:28 -05:00
Douglas B Rupp
50c7457998 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
From-SVN: r50575
2002-03-11 07:47:53 -05:00
Douglas B Rupp
1682dbb1d7 toplev.c (debug_args): Add entry for VMS_DEBUG.
* toplev.c (debug_args): Add entry for VMS_DEBUG.
	* vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.

From-SVN: r50573
2002-03-11 07:42:08 -05:00
Bryce McKinlay
884523df8d parse.y (patch_assignment): Wrap the right-hand-side with a save_expr to prevent it getting evaluated twice...
* parse.y (patch_assignment): Wrap the right-hand-side with a save_expr
	to prevent it getting evaluated twice in the store checking case.
	* expr.c (build_java_arraystore_check): Unwrap SAVE_EXPR's when
	examining OBJECT.

From-SVN: r50570
2002-03-11 11:15:10 +00:00
Richard Sandiford
3fcaac1d8c defaults.h (LARGEST_EXPONENT_IS_NORMAL, [...]): New.
* defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
	(MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
	LARGEST_EXPONENT_IS_NORMAL for the given mode.
	(MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
	* real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
	(ediv, emul, eldexp, esqrt): Likewise.
	(etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
	(e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
	(saturate): New function.
	(toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
	(make_nan): Use a saturation value instead of a NaN if
	LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
	* fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
	inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
	zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
	(unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
	(_fpmul_parts, _fpdiv_parts): Only round to nearest if
	!ROUND_TOWARDS_ZERO.
	* doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
	(ROUND_TOWARDS_ZERO): Document.

From-SVN: r50569
2002-03-11 11:13:45 +00:00
Andreas Jaeger
d25558bee8 * cfg.c (dump_flow_info): Remove unused variable.
From-SVN: r50568
2002-03-11 12:10:44 +01:00
Hans-Peter Nilsson
c71f9ae7d2 mmix.c (mmix_expand_builtin_va_arg): Do all computations on trees.
* config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
	computations on trees.

From-SVN: r50567
2002-03-11 10:44:27 +00:00
Jakub Jelinek
5ddec02e71 re PR rtl-optimization/5844 (Bad code generated for -O2 -mcpu=i586)
PR optimization/5844
	* gcc.dg/20020310-1.c: New test.

From-SVN: r50566
2002-03-11 11:12:03 +01:00
GCC Administrator
eb58b2086c Daily bump.
From-SVN: r50564
2002-03-11 08:17:16 +00:00
Bryce McKinlay
60678e476f posix.h: Add multiple include header protection.
* include/posix.h: Add multiple include header protection.
	* java/net/natPlainSocketImpl.cc: Don't #include <posix.h>.

From-SVN: r50559
2002-03-11 04:15:51 +00:00
Adam Megacz
72da3c3e58 natPlainSocketImpl.cc: Added #include <platform.h>.
2002-03-10  Adam Megacz <adam@xwt.org>

        * java/net/natPlainSocketImpl.cc: Added #include <platform.h>.

From-SVN: r50556
2002-03-11 01:34:08 +00:00
Paolo Carlini
c15892e05e locale_facets.tcc (time_put::do_put): Consider sizeof(char_type) in allocating the buffer.
2002-03-10  Paolo Carlini  <pcarlini@unitus.it>

        * include/bits/locale_facets.tcc (time_put::do_put):
	Consider sizeof(char_type) in allocating the buffer.

	* include/bits/locale_facets.tcc (collate::do_tranform):
	Remove redundant variable.

From-SVN: r50553
2002-03-10 23:51:31 +00:00
Richard Henderson
561c9153eb reload.c (copy_replacements_1): New.
* reload.c (copy_replacements_1): New.
        (copy_replacements): Use it to recurse through the rtx.

From-SVN: r50552
2002-03-10 15:51:08 -08:00
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