Commit Graph

49049 Commits

Author SHA1 Message Date
Tom Tromey
44fc3a6f54 natClass.cc (newInstance): Put method name in exception.
* java/lang/natClass.cc (newInstance): Put method name in
	exception.
	(getConstructor): Likewise.
	(getDeclaredConstructor): Likewise.
	(getPrivateMethod): Likewise.

From-SVN: r65021
2003-03-29 20:17:02 +00:00
Kazu Hirata
39ecf30184 h8300.md (*iorsi3_and_ashift): New.
* config/h8300/h8300.md (*iorsi3_and_ashift): New.
	(*iorsi3_and_lshiftrt): Likewise.
	(*iorsi3_zero_extract): Likewise.

From-SVN: r65019
2003-03-29 18:20:23 +00:00
Kazu Hirata
d4048ff603 h8300.md (*insv_si_8_8): New.
* config/h8300/h8300.md (*insv_si_8_8): New.
	(*insv_si_8_8_lshiftrt_8): Likewise.
	(a peephole2): Likewise.

From-SVN: r65018
2003-03-29 14:39:54 +00:00
Gerald Pfeifer
60ef8bddd7 contrib.texi: Add Eric Botcazou and Roger Sayle.
* doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
	Uniformly use bugfix instead of bug fix.

From-SVN: r65016
2003-03-29 12:41:59 +00:00
Gerald Pfeifer
62d0820549 re PR other/895 (top of ONEWS needs to be merged into EGCS release notes)
PR doc/895
	* ONEWS: Remove those items that already appear in the EGCS
	release notes on our web pages.

From-SVN: r65013
2003-03-29 11:35:07 +00:00
Alan Modra
e87a88d34c rs6000.h (FUNCTION_VALUE_REGNO_P): Respect TARGET_HARD_FLOAT.
* config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
	TARGET_HARD_FLOAT.  Reformat.
	(FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.

From-SVN: r65010
2003-03-29 14:33:07 +10:30
Kazu Hirata
12f76820b4 h8300.md (*addsi3_and_r_1): Put under plus:SI section of h8300.md
* config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
	section of h8300.md
	(*addsi3_and_nor_r_1): Likewise.

From-SVN: r65008
2003-03-29 03:14:09 +00:00
Tom Tromey
4544c3f387 Proxy.java: New version from Classpath.
* java/lang/reflect/Proxy.java: New version from Classpath.
	* java/lang/Package.java: New version from Classpath.

From-SVN: r65007
2003-03-29 01:34:23 +00:00
Jason Merrill
ff77a44171 re PR c++/10245 (?: operator requires public copy constructor of return type)
PR c++/10245
        * cvt.c (force_rvalue): New fn.
        * call.c (build_conditional_expr): Use it.
        * cp-tree.h: Declare it.

[[Split portion of a mixed commit.]]

From-SVN: r65006.2
2003-03-28 19:50:46 -05:00
Jason Merrill
f7b9026e22 re PR c++/10245 (?: operator requires public copy constructor of return type)
PR c++/10245
        * cvt.c (force_rvalue): New fn.
        * call.c (build_conditional_expr): Use it.
        * cp-tree.h: Declare it.

From-SVN: r65005
2003-03-28 19:49:34 -05:00
GCC Administrator
f7b4bc4d8f Daily bump.
From-SVN: r65004
2003-03-29 00:17:06 +00:00
Mike Stump
2d30fe535e error.c (dump_expr): Add 0x to printed hex numbers to make output match source code better.
* error.c (dump_expr): Add 0x to printed hex numbers to make
        output match source code better.

From-SVN: r64997
2003-03-28 23:48:17 +00:00
Ulrich Weigand
7d798969ff gcc/ ChangeLog:
* config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
	set up before any trapping memory access if flag_non_call_exceptions.
libjava/ ChangeLog:
	* configure.in (HAVE_BACKTRACE) [s390*-*-linux*]: Define.
	* configure: Regenerate.

From-SVN: r64995
2003-03-28 23:40:51 +00:00
Alan Modra
00dcfe8086 reload1.c (reload_as_needed): Allow a USE in asm reloads.
* reload1.c (reload_as_needed): Allow a USE in asm reloads.

	* loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.

From-SVN: r64991
2003-03-29 09:51:21 +10:30
Nathanael Nerode
d869a8c44b configure.in: Clarify comments.
2003-03-28  Nathanael Nerode  <neroden@gcc.gnu.org>

	* configure.in: Clarify comments.
	* configure: Regenerate.

From-SVN: r64990
2003-03-28 23:15:42 +00:00
Roger Sayle
84dfe365de fp-cmp-6.c: Correct test for -O0.
2003-03-28  Roger Sayle  <roger@eyesopen.com>

	* gcc.c-torture/execute/ieee/fp-cmp-6.c:  Correct test for -O0.

From-SVN: r64987
2003-03-28 22:10:18 +00:00
Mark Mitchell
316a245627 re PR c++/10218 (ICE in make_decl_rtl for invalid code)
PR c++/10218
	* decl.c (grokfndecl): Return NULL_TREE for bogus out-of-class
	definitions.

From-SVN: r64985
2003-03-28 21:18:39 +00:00
Ulrich Weigand
5c033b9feb s390.md ("literal_pool_31"): Output pool anchor label even if pool empty when generating PIC.
* config/s390/s390.md ("literal_pool_31"): Output pool anchor
	label even if pool empty when generating PIC.
	("literal_pool_31", "literal_pool_64"): Coding style cleanup.

From-SVN: r64981
2003-03-28 20:27:02 +00:00
Benjamin Kosnik
d29cc32f9d std_sstream.h (basic_istringstream): Adjust initialization.
2003-03-28  Benjamin Kosnik  <bkoz@redhat.com>

	* include/std/std_sstream.h (basic_istringstream): Adjust
	initialization.
	(basic_ostringstream): Same.
	(basic_stringstream): Same.
	* include/std/std_fstream.h (basic_ifstream): Adjust initialization.
	(basic_ofstream): Same.
	(basic_fstream): Same.
	* include/std/std_ostream.h (basic_ostrem): Add protected ctor
	that does not call init.
	* include/std/std_istream.h (basic_istream): Same.
	(basic_iostream): Construct istream, ostream uninitialized, use
	init to initialize just once. Add protected ctor that does not
	call init.

From-SVN: r64980
2003-03-28 19:45:44 +00:00
Mark Mitchell
400fbc0868 decl2.c (generate_ctor_or_dtor_function): Tolerate a non-existant ssdf_decls array.
* decl2.c (generate_ctor_or_dtor_function): Tolerate a
	non-existant ssdf_decls array.
	(finish_file): Call generator_ctor_or_dtor_function when there are
	static constructors or destructors and no other static
	initializations.

	* g++.dg/init/attrib1.C: New test.

From-SVN: r64979
2003-03-28 19:30:41 +00:00
Paolo Carlini
bbacb998c8 re PR libstdc++/9533 (Can't read from tty with ifstream)
2003-03-28  Paolo Carlini  <pcarlini@unitus.it>
	    Nathan Myers  <ncm@cantrip.org>

	PR libstdc++/9533
	* include/bits/fstream.tcc (basic_filebuf<>::open): Don't
	call underflow().
	(basic_filebuf<>::showmanyc): Use the information provided
	by codecvt and __basic_file<>::showmanyc_helper to implement
	a non-trivial showmanyc.
	* config/io/basic_file_stdio.h
	(__basic_file<>::showmanyc_helper): New, declare.
	* config/io/basic_file_stdio.cc
	(__basic_file<>::showmanyc_helper): Define.
	(__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
	(__basic_file<char>::open): Don't call fcntl().
	* acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
	GLIBCPP_CHECK_POLL): New macros.
	* configure.in: Call here.
	* acconfig.h: Add #undefs for the corresponding symbols.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.
	* config.h.in: Regenerate.

Co-Authored-By: Nathan Myers <ncm@cantrip.org>

From-SVN: r64978
2003-03-28 18:28:47 +00:00
Kazu Hirata
d18ad19175 re PR target/10205 (Incorrect code generated for H8300 "normal" mode)
PR target/10205
	* config/h8300/h8300.c (h8300_initial_elimination_offset):
	Correct the offset computation when TARGET_NORMAL.

Co-Authored-By: Dhananjay R. Deshpande <dhananjayd@kpit.com>

From-SVN: r64975
2003-03-28 15:18:11 +00:00
Michael Koch
01312d1259 File.java: Import needed classes instead of whole packages...
2003-03-28  Michael Koch  <konqueror@gmx.de>

	* java/io/File.java:
	Import needed classes instead of whole packages, merged class
	documentation with classpath, moved constants and variables to top of
	class.
	* java/io/PrintStream.java:
	Merged class documentation with classpath, moved constants and
	variables to top of class.
	* java/io/RandomAccessFile.java
	(RandomAccessFile): Merged with classpath.
	(read): Merged with classpath).
	(read*): Reformatted.

From-SVN: r64974
2003-03-28 13:07:46 +00:00
Michael Koch
bcfaead06e 2003-03-28 Michael Koch <konqueror@gmx.de>
* java/io/FileDescriptor.java
	(finalize): Throws Throwable, not IOException.
	* java/io/ObjectOutputStream.java
	(PutField.put): Doesnt throws anything.

From-SVN: r64970
2003-03-28 09:49:44 +00:00
Eric Botcazou
0c85dbfd12 re PR target/10067 (GCC-3.2.2 outputs invalid asm on sparc64)
PR target/10067
	* config/sparc/sparc.md (jump pattern): Correct order
	when issuing the annuling marker.

From-SVN: r64964
2003-03-28 09:10:43 +00:00
Michael Koch
c54390c5a1 2003�03-28 Michael Koch <konqueror@gmx.de>
* java/io/FileOutputStream.java:
	Merged class documentation and authors with classpath.
	(FileOutputStream): Partly merged with classpath.
	(write): Merged with classpath.
	(getChannel): Make it synchronized instead of explicit block in this
	method.
	* java/io/RandomAccessFile.java:
	Merged class documentation and authors with classpath.

From-SVN: r64963
2003-03-28 08:59:41 +00:00
Eric Botcazou
f7670e7ba1 re PR c/8281 ([Sparc] ICE when compiling with -O2 -fPIC for Ultrasparc)
PR c/8281
	* config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
	(movdi reg/reg split): Match only on sparc32, and v9 when int regs.

From-SVN: r64957
2003-03-28 08:25:57 +00:00
Alan Modra
c9280dfe84 elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary globalize_label.
* config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
	globalize_label.
	* config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
	* config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
	* config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
	* config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
	* config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
	* config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
	* config/v850/v850.c (v850_output_aligned_bss): Likewise.

From-SVN: r64954
2003-03-28 18:37:03 +10:30
Nathan Sidwell
433cd9c9cb re PR c++/10047 (-fno-default-inline produces bogus warnings)
cp:
	PR c++/10047
	* decl2.c (finish_file): Don't warn about explicitly instantiated
	inline decls.
testsuite:
	PR c++/10047
	* g++.dg/template/inline1.C: New test.

From-SVN: r64953
2003-03-28 08:02:15 +00:00
Alan Modra
e81eb37fc8 loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
* loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
	(replace_loop_mems): Add "written" param.  Remove invalid REG_EQUAL
	notes after hoisting.
	(load_mems): Adjust replace_loop_mems call.

From-SVN: r64950
2003-03-28 18:28:22 +10:30
Eric Botcazou
1ce324c330 PR target/10114 and PR target/10084
PR target/10114 and PR target/10084
	* dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.

Co-Authored-By: Richard Henderson <rth@redhat.com>

From-SVN: r64947
2003-03-28 07:47:57 +00:00
Richard Henderson
c6cf19a8cc * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
From-SVN: r64946
2003-03-27 21:14:36 -08:00
Roger Sayle
9ddae796cd fold-const.c (fold_inf_compare): New function to simplify FP comparisons against +Infinity or -Infinity.
* fold-const.c (fold_inf_compare):  New function to simplify FP
	comparisons against +Infinity or -Infinity.
	(fold):  Optimize floating point comparisons against Infs and NaNs.

	* gcc.c-torture/execute/ieee/fp-cmp-6.c: New test case.
	* gcc.c-torture/execute/ieee/fp-cmp-7.c: New test case.

From-SVN: r64945
2003-03-28 02:41:14 +00:00
GCC Administrator
36875565eb Daily bump.
From-SVN: r64944
2003-03-28 00:17:35 +00:00
Mark Mitchell
7ffe358480 gcov.exp (run-gcov): Add branches and calls options, rather than reading .x files.
* lib/gcov.exp (run-gcov): Add branches and calls options, rather
	than reading .x files.
	* g++.dg/gcov/gcov-1.C: Use run-gcov options, not .x files.
	* g77.dg/gcov/gcov-1.f: Likewise.
	* gcc.misc-tests/gcov-4b.c: Likewise.
	* gcc.misc-tests/gcov-5b.c: Likewise.
	* gcc.misc-tests/gcov-6.c: Likewise.
	* gcc.misc-tests/gcov-7.c: Likewise.
	* gcc.misc-tests/gcov-8.c: Likewise.
	* g++.dg/gcov/gcov-1.x: Remove.
	* g77.dg/gcov/gcov-1.x: Likewise.
	* gcc.misc-tests/gcov-4b.x: Likewise.
	* gcc.misc-tests/gcov-5b.x: Likewise.
	* gcc.misc-tests/gcov-6.x: Likewise.
	* gcc.misc-tests/gcov-7.x: Likewise.
	* gcc.misc-tests/gcov-8.x: Likewise.

From-SVN: r64937
2003-03-27 23:53:08 +00:00
Janis Johnson
01e60c33e6 libgcov.c: Provide only dummy functions if libc is not available.
2003-03-27  Janis Johnson  <janis187@us.ibm.com>

	* libgcov.c: Provide only dummy functions if libc is not available.

From-SVN: r64936
2003-03-27 23:52:02 +00:00
Richard Henderson
ad59ba209d real.h (struct real_value): Add signalling.
* real.h (struct real_value): Add signalling.
        (EXP_BITS): Decrement.
        * real.c (get_canonical_qnan): Don't set MSB-1.
        (get_canonical_snan): Likewise.  Set signalling.
        (real_identical): Compare signalling.
        (round_for_format): Remove force-one-bit on code.
        (real_nan): Likewise.  Set signalling.
        (encode_ieee_single): Add force-one-bit code; honor signalling.
        (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
        (decode_ieee_single): Set signalling.
        (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.

From-SVN: r64935
2003-03-27 14:42:02 -08:00
Olivier Hainque
940bbb7441 re PR ada/9953 (Unsatisfied symbols: U_prep_frame_rec_for_unwind (code))
PR ada/9953
	* ada/Makefile.in (gnatlib configuration for HPUX): Split
	the general section for HPUX into specific sections for
	HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
	11 case.

From-SVN: r64932
2003-03-27 21:51:23 +00:00
Janis Johnson
e57feaea9f Add files to the new contrib/reghunt directory:
2003-03-27  Janis Johnson  <janis187@us.ibm.com>

	* README: New file.
	* reg_search: New file.
	* reg_periodic: New file.
	* reg_test_template: New file.

From-SVN: r64929
2003-03-27 18:57:42 +00:00
Glen Nakamura
c7d325c803 re PR rtl-optimization/10087 (optimizer produces wrong code when indexing 2D array)
PR opt/10087
	* gcc.dg/20030324-1.c: New test.

	PR opt/10087
	* loop.c (loop_givs_reduce): Skip bivs with duplicate locations
	while incrementing giv.
	(record_biv): Check for duplicate biv locations and
	set (struct induction *) v->same if found.

From-SVN: r64928
2003-03-27 18:53:36 +00:00
David Mosberger
f18ab43711 unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind v0.9 API change...
* unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
        v0.9 API change: replace read of UNW_REG_HANDLER with
        unw_get_proc_info().
        (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
        with unw_get_proc_info().
        (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
        unw_get_proc_info().

From-SVN: r64927
2003-03-27 10:13:59 -08:00
Vladimir Makarov
eaff4b90a0 8540.md: Use presence_set instead of absence_set.
2003-03-27  Vladimir Makarov  <vmakarov@redhat.com>

	* config/rs6000/8540.md: Use presence_set instead of absence_set.

From-SVN: r64926
2003-03-27 15:09:02 +00:00
Nathan Sidwell
544aef8cc9 re PR c++/10224 (Problem with integral constants (+ICE))
cp:
	PR c++/10224
	* pt.c (lookup_template_class): Only check instantiated args if
	they do not contain template parameters.
testsuite:
	PR c++/10224
	* g++.dg/template/arg3.C: New test.

From-SVN: r64923
2003-03-27 14:04:28 +00:00
Nathan Sidwell
649fc72d26 re PR c++/10158 (ICE with templates and friends)
cp:
	PR c++/10158
	* parser.c (cp_parser_function_definition): Set
	DECL_INITIALIZED_IN_CLASS for members.
	* pt.c (instantiate_decl): Only reduce the template args for
	friends that are not defined in class.
testsuite:
	PR c++/10158
	* g++.dg/template/friend18.C: New test.

From-SVN: r64920
2003-03-27 12:19:13 +00:00
Steven Bosscher
0bcaad20fc * ffe.texi: Don't mention dead file proj.c.
From-SVN: r64919
2003-03-27 11:15:27 +00:00
GCC Administrator
57eb75f2bb Daily bump.
From-SVN: r64916
2003-03-27 00:17:08 +00:00
Roger Sayle
a24278e2fa re PR fortran/9793 (Internal compiler error in `float_signal', at toplev.c:2442)
PR fortran/9793
	* target.h (ffetarget_divide_integer1): Perform division by -1
	using negation to prevent possible overflow trap on the host.

	* g77.f-torture/compile/20030326.f: New test case.

From-SVN: r64909
2003-03-27 00:09:58 +00:00
Janis Johnson
db8627a1ec 20020227-1.x: Don't XFAIL for powerpc64.
2003-03-26  Janis Johnson  <janis187@us.ibm.com>

	* gcc.c-torture/execute/20020227-1.x: Don't XFAIL for powerpc64.

	* gcc.c-torture/compile/simd-5.x: Expect XFAIL for powerpc64.

From-SVN: r64907
2003-03-26 23:17:18 +00:00
Richard Henderson
3684a055a0 c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
* c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
	* gcc.dg/inline-4.c: New.

From-SVN: r64906
2003-03-26 14:53:37 -08:00
Tom Tromey
1c81e34352 natRuntime.cc (insertSystemProperties): Set gnu.classpath.home.url.
* java/lang/natRuntime.cc (insertSystemProperties): Set
	gnu.classpath.home.url.
	* Makefile.in: Rebuilt.
	* Makefile.am: Define LIBDIR.

From-SVN: r64905
2003-03-26 22:31:52 +00:00