Commit Graph

34973 Commits

Author SHA1 Message Date
Zack Weinberg
641b2721c4 cp-demangle.c (demangle_v3_with_details, [...]): Use K+R style function definition.
* cp-demangle.c (demangle_v3_with_details,
	is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
	function definition.
	* ternary.c: Use K+R style function definitions.  Use PTR, not
	void *.  Make arguments constant where possible.
	* demangle.h: Use PARAMS for all prototypes.
	* ternary.h: Use PARAMS for all prototypes.  Use PTR, not void *.
	Make arguments constant where possible.

From-SVN: r41910
2001-05-08 06:13:58 +00:00
Benjamin Kosnik
ee2f20b9c5 std_fstream.h (basic_filebuf): Change signature.
2001-05-07  Benjamin Kosnik  <bkoz@redhat.com>

	libstdc++/2523
	* include/bits/std_fstream.h (basic_filebuf): Change signature.
	* include/bits/fstream.tcc (basic_filebuf): Change bool argument
	to int_type, pass in buffer size info.
	* include/bits/std_streambuf.h (_M_is_indeterminate): Check for
	unbuffered situation.
	(underflow): Remove codecvt bits for the time being.
	* include/bits/istream.tcc (istream::sentry): Avoid sputbackc call.
	* include/bits/locale_facets.tcc (_M_extract): Cache dereference
	values from iterators, clean.
	* src/locale.cc: Ditto.
	* include/bits/sbuf_iter.h: Format.
	* src/ios.cc: Explicitly pass in buffer sizes at creation time.
	* testsuite/27_io/narrow_stream_objects.cc: Add tests.
	* testsuite/27_io/filebuf.cc: Tweaks.
	* testsuite/27_io/filebuf_members.cc: Tweaks.

From-SVN: r41909
2001-05-08 03:39:50 +00:00
Benjamin Kosnik
39003c9902 std_fstream.h (basic_filebuf): Change signature.
2001-05-07  Benjamin Kosnik  <bkoz@redhat.com>

	libstdc++/2523
	* include/bits/std_fstream.h (basic_filebuf): Change signature.
	* include/bits/fstream.tcc (basic_filebuf): Change bool argument
	to int_type, pass in buffer size info.
	* include/bits/std_streambuf.h (_M_is_indeterminate): Check for
	unbuffered situation.
	(underflow): Remove codecvt bits for the time being.
	* include/bits/istream.tcc (istream::sentry): Avoid sputbackc call.
	* include/bits/locale_facets.tcc (_M_extract): Cache dereference
	values from iterators, clean.
	* src/locale.cc: Ditto.
	* include/bits/sbuf_iter.h: Format.
	* src/ios.cc: Explicitly pass in buffer sizes at creation time.
	* testsuite/27_io/narrow_stream_objects.cc: Add tests.
	* testsuite/27_io/filebuf.cc: Tweaks.
	* testsuite/27_io/filebuf_members.cc: Tweaks.

From-SVN: r41908
2001-05-08 03:07:56 +00:00
Mark Mitchell
eefd41e318 * config/os/solaris/solaris2.7/bits/os_defines.h
(_LARGEFILE_SOURCE): Define it.

From-SVN: r41907
2001-05-08 03:02:05 +00:00
Alexandre Petit-Bianco
41ee087715 re PR java/2598 (Runtime crash regression accessing field from enclosing class from inner class)
2001-05-07  Alexandre Petit-Bianco  <apbianco@redhat.com>

        * parse.y (fix_constructors): Removed unecessary assignment to
        local. Moved assignment to `this$<n>', fixed comments and
        indentation.
        (build_wfl_wrap): Fixed indentation.
        Fixes PR java/2598, java/2579 and java/2658.

(http://gcc.gnu.org/ml/gcc-patches/2001-05/msg00412.html )

From-SVN: r41905
2001-05-07 12:53:15 -07:00
John David Anglin
5c8cfcd63d pa.md (interspace_jump): Revise comment.
* pa.md (interspace_jump): Revise comment.
	(builtin_longjmp): Block initial setup insns from delay slot of
	interspace branch.
	(builtin_setjmp_receiver): New expander to save and restore PIC
	register.

	* som.h (NM_FLAGS): Remove `-n' sort option.  Revise comment.

From-SVN: r41902
2001-05-07 19:22:28 +00:00
Mark Mitchell
1a560c3a48 op2.C: Don't use `glob' as a variable.
* g++.old-deja/g++.other/op2.C: Don't use `glob' as a variable.
	* g++.old-deja/g++.other/op3.C: Likewise.

From-SVN: r41901
2001-05-07 18:03:52 +00:00
Jeffrey A Law
1a02aff499 toplev.c (compile_file): Set up the output file before we call the various initializers for the compiler.
* toplev.c (compile_file): Set up the output file before we call
        the various initializers for the compiler.

From-SVN: r41897
2001-05-07 09:51:21 -06:00
Jeffrey A Law
cb0bb87d89 except.c (sjlj_mark_call_sites): Do not search for assignments to non-argumment registers that are mentioned in...
* except.c (sjlj_mark_call_sites): Do not search for assignments to
        non-argumment registers that are mentioned in CALL_INSN_FUNCTION_USAGE.

From-SVN: r41896
2001-05-07 09:45:47 -06:00
Mark Mitchell
5cdba4ff5f splay-tree.h (splay_tree_max): New function.
* splay-tree.h (splay_tree_max): New function.
	(splay_tree_min): Likewise.

From-SVN: r41895
2001-05-07 15:45:24 +00:00
Jeffrey A Law
b73bff7e3f pa.h (MAX_LONG_TYPE_SIZE): Should be 32, not 64.
* pa.h (MAX_LONG_TYPE_SIZE): Should be 32, not 64.
        * pa-64.h (*_TYPE_SIZE): Undefine before redefining.

From-SVN: r41893
2001-05-07 09:28:50 -06:00
GCC Administrator
e51becf539 Daily bump.
From-SVN: r41892
2001-05-07 07:16:38 +00:00
Zack Weinberg
3745946688 * Makefile.in (tradcpp0): Correct typo in dependency list.
From-SVN: r41889
2001-05-07 04:30:01 +00:00
Geoffrey Keating
d5fa86ba42 rs6000.c (rs6000_emit_prologue): Don't save the link register if we're not going to use it.
* config/rs6000/rs6000.c (rs6000_emit_prologue): Don't save
	the link register if we're not going to use it.

	* config/rs6000/rs6000.c (output_profile_hook): Fix a warning.
	(output_function_profiler): Likewise.

From-SVN: r41888
2001-05-07 02:54:29 +00:00
Alan Modra
ff5a340ad5 * pa.c (compute_frame_size): 64-bit frame marker is 16 bytes.
From-SVN: r41887
2001-05-07 11:20:52 +09:30
Alexandre Oliva
b8ebd779d5 unroll.c (loop_iterations): Don't sign-extend abs_diff; zero-extend it.
* unroll.c (loop_iterations): Don't sign-extend abs_diff;
zero-extend it.  Make abs_inc unsigned.

From-SVN: r41886
2001-05-06 19:51:19 +00:00
Alexandre Oliva
3c04502e2b optabs.c (expand_binop): Sign-extend xop0 and xop1 from the widest mode in narrowing and widening operations.
* optabs.c (expand_binop): Sign-extend xop0 and xop1 from the
widest mode in narrowing and widening operations.

From-SVN: r41885
2001-05-06 19:47:15 +00:00
Alexandre Oliva
7cbdf57537 Whitespace change
From-SVN: r41884
2001-05-06 19:44:37 +00:00
Alexandre Oliva
024c02b178 * config/mips/mips.md: Sign extend CONST_INTs.
From-SVN: r41883
2001-05-06 19:35:41 +00:00
Andreas Jaeger
762e166bf4 invoke.texi (Option Summary): Add -momit-leaf-frame-pointer (i386 Options): Document -momit-leaf-frame-pointer.
* invoke.texi (Option Summary): Add -momit-leaf-frame-pointer
	(i386 Options): Document -momit-leaf-frame-pointer.

From-SVN: r41881
2001-05-06 19:10:53 +02:00
Neil Booth
714a0864cc c-typeck.c (internal_build_compound_expr): Check for array to pointer conversion just once.
* c-typeck.c (internal_build_compound_expr): Check for
	array to pointer conversion just once.

From-SVN: r41879
2001-05-06 16:38:56 +00:00
Bryce McKinlay
7026707d15 Class.h (_Jv_Self): New union type.
* java/lang/Class.h (_Jv_Self): New union type.
	(Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
	Jeff Sturm and Fergus Henderson.

	* java/lang/ClassLoader.java: Remove dead code fragment.

From-SVN: r41876
2001-05-06 14:42:11 +01:00
Bryce McKinlay
2a7f63c436 configure.in: Remove warning about beta code.
* configure.in: Remove warning about beta code.
	* configure: Rebuilt.

From-SVN: r41875
2001-05-06 13:55:28 +01:00
Neil Booth
7f75752bd9 syshdr.h: New file.
* gcc.dg/cpp/syshdr.h: New file.
	* gcc.dg/cpp/sysmac1.c: Update.
	* gcc.dg/cpp/sysmac2.c: Update.

From-SVN: r41873
2001-05-06 09:48:28 +00:00
GCC Administrator
3364a73981 Daily bump.
From-SVN: r41871
2001-05-06 07:16:07 +00:00
Neil Booth
7120a6fed7 * gcc.dg/cpp/sysmac1.c,sysmac2.c: Return to original file.
From-SVN: r41870
2001-05-05 19:18:38 +00:00
Richard Henderson
e00c13387a * integrate.c (copy_insn_list): Substitute NOTE_EXPECTED_VALUE.
From-SVN: r41868
2001-05-05 09:55:48 -07:00
Richard Henderson
45053eaf0b except.c (remove_fixup_regions): Adjust REG_EH_REGION notes to the parent of the fixup region.
* except.c (remove_fixup_regions): Adjust REG_EH_REGION notes
        to the parent of the fixup region.

From-SVN: r41867
2001-05-05 09:38:25 -07:00
Jakub Jelinek
2a9071bb2f gcc.c (cpp_options): Define __NO_INLINE__ unless we are honoring "inline" keyword.
* gcc.c (cpp_options): Define __NO_INLINE__ unless we are honoring
	"inline" keyword.
	* cpp.texi (__NO_INLINE): Document it.

From-SVN: r41866
2001-05-05 14:29:39 +02:00
Neil Booth
f277b5e03b cppfiles.c (struct include_file): New member err_no.
* cppfiles.c (struct include_file): New member err_no.
	(find_or_create_entry): Set it.
	(open_file): Don't set fds to -2.  Instead, use err_no to
	remember previous errors, if any.

From-SVN: r41865
2001-05-05 11:12:19 +00:00
GCC Administrator
5dc6bfd7da Daily bump.
From-SVN: r41863
2001-05-05 07:16:08 +00:00
Stephane Carrez
ce8882e65f m68hc11.c (m68hc11_gen_movhi): Optimize moves between X and Y by using sequences of xgdx and xgdy.
* config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Optimize moves
	between X and Y by using sequences of xgdx and xgdy.

From-SVN: r41861
2001-05-05 08:59:32 +02:00
Stephane Carrez
a1fdc802bb m68hc11.md ("*logicalsi3_silshr16"): Use '?' instead of '!' for the 'D' alternative ('!' is too strong).
* config/m68hc11/m68hc11.md ("*logicalsi3_silshr16"): Use '?' instead
	of '!' for the 'D' alternative ('!' is too strong).
	("*logicalsi3_silshl16"): Likewise.
	("movstricthi"): Accept 'A' when 'd' constraint, remove spurious '+'.
	("movstrictsi"): Remove spurious '+'.
	("movstrictqi"): Don't accept 'A' and remove spurious '+'.
	("tstqi_1", "*lshrqi3_const1"): Put 'm' constraint before 'd'.
	("subqi3"): Disparage with '!' the 'x' and 'y' registers to avoid
	a reload to them.

From-SVN: r41859
2001-05-05 08:51:23 +02:00
David Edelsohn
a92644e78a 20001227-1.c: Remove duplicate of gcc.c-torture/execute/20000412-3.c with no ChangeLog entry.
* gcc.c-torture/execute/20001227-1.c: Remove duplicate of
        gcc.c-torture/execute/20000412-3.c with no ChangeLog entry.

From-SVN: r41858
2001-05-04 21:50:06 -04:00
David Edelsohn
4f380204a2 * calls.c (store_one_arg): Don't divide align by BITS_PER_UNIT.
From-SVN: r41856
2001-05-04 21:30:51 -04:00
Lars Brinkhoff
c52c9a9cee simplify-rtx.c (simplify_binary_operation): Simplify ~a + 1 into -a.
2001-05-04  Lars Brinkhoff  <lars@nocrew.org>

	* simplify-rtx.c (simplify_binary_operation): Simplify ~a + 1
	into -a.

From-SVN: r41854
2001-05-05 00:32:19 +00:00
Franz Sirl
4264cf59cf rs6000.md (ashldi3 splits): Guard with TARGET_POWERPC64.
2000-05-04  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

        * config/rs6000/rs6000.md (ashldi3 splits): Guard with TARGET_POWERPC64.

From-SVN: r41852
2001-05-04 23:28:00 +00:00
Stephane Carrez
39cc8df7a9 m68hc11.md (lshrhi3_const1): Fix shift of soft register, use ror instead of rol.
* config/m68hc11/m68hc11.md (lshrhi3_const1): Fix shift of
	soft register, use ror instead of rol.

From-SVN: r41850
2001-05-04 23:04:04 +02:00
Stephane Carrez
3c2f40009a m68hc11.c (m68hc11_check_z_replacement): Take into account pre/post increment decrement for 68HC12.
* config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Take
	into account pre/post increment decrement for 68HC12.
	Fix other problems in replacement and fix call to reg_mentioned_p.

From-SVN: r41848
2001-05-04 23:00:37 +02:00
Stephane Carrez
c5c2ca1677 larith.asm (L_regs_frame): New for _.frame.
* config/m68hc11/larith.asm (L_regs_frame): New for _.frame.
	Put the soft registers in bss for 68HC12.
	(L_regs_d3_4): New for _.d3 and _.d4.
	(L_regs_d5_6): Likewise.
	(L_regs_d1_2): Likewise.
	* config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Compile new parts.

From-SVN: r41846
2001-05-04 22:55:27 +02:00
Loren J. Rittle
62aa6b06ab configure.in: Add support for --enable-threads=posix on FreeBSD.
* configure.in: Add support for --enable-threads=posix on FreeBSD.
        * configure: Rebuilt.

From-SVN: r41845
2001-05-04 20:19:36 +00:00
Stephane Carrez
3750bc816d m68hc11.h (CPP_SPEC): Pass -D__HAVE_SHORT_DOUBLE__ to the pre-processor when -fshort-double is specified.
* config/m68hc11/m68hc11.h (CPP_SPEC): Pass -D__HAVE_SHORT_DOUBLE__
	to the pre-processor when -fshort-double is specified.
	* config/m68hc11/m68hc11.2 (CPP_SPEC): Likewise.

From-SVN: r41843
2001-05-04 21:49:25 +02:00
Stephane Carrez
3d0746bacb larith.asm (divmodhi4): Empty for 68HC12.
* config/m68hc11/larith.asm (divmodhi4): Empty for 68HC12.
	(__mulsi3): Rewrite for 68HC12.
	* config/m68hc11/m68hc11.md (divmodhi4): Use idivs for 68HC12.
	Mark 'x' constraint with earlyclobber to prevent a
	RELOAD_FOR_OTHER_ADDRESS to go in it.
	(mulhi3_m68hc12): New pattern.
	(mulhi3_m68hc11): Rename of mulhi3.
	(mulhi3): New expand for 68HC12 optimisation.
	(umulhisi3, mulhisi3): New patterns for 68HC12.

From-SVN: r41841
2001-05-04 21:42:50 +02:00
Tom Tromey
8559523974 Thread_Wait_Interrupt.xfail: New file.
* libjava.lang/Thread_Wait_Interrupt.xfail: New file.
	* libjava.lang/Thread_Wait_2.xfail: New file.
	* libjava.lang/Thread_Wait.xfail: New file.
	* libjava.lang/Thread_Sleep.xfail: New file.
	* libjava.lang/Thread_Monitor.xfail: New file.
	* libjava.lang/Thread_Join.xfail: New file.
	* libjava.lang/Thread_Interrupt.xfail: New file.
	* libjava.lang/Thread_Alive.xfail: New file.
	* lib/libjava.exp (libjava_init): Set global
	libjava_uses_threads.
	(test_libjava): Document `need-threads' tag.
	(test_libjava_from_source): handle need-threads tag.
	(test_libjava_from_javac): Likewise.

From-SVN: r41840
2001-05-04 19:33:10 +00:00
Neil Booth
1fc77d36ad * gcc.c-torture/execute/longlong.c: Update for 16 bit int issues.
From-SVN: r41838
2001-05-04 18:40:35 +00:00
Stephane Carrez
dc3c68066b m68hc11.md (*tbne, *tbeq): New patterns for 68HC12.
* config/m68hc11/m68hc11.md (*tbne, *tbeq): New patterns for 68HC12.
	(extendqisi2, extendqihi2, extendhisi2): Use sex for 68HC12.
	(uminqi3, umaxqi3, uminhi3, umaxhi3): New pattern for 68HC12.

From-SVN: r41836
2001-05-04 20:22:00 +02:00
Stephane Carrez
5a62a69372 m68hc11.h (CONST_COSTS): Make the cost of constants cheap after reload.
* config/m68hc11/m68hc11.h (CONST_COSTS): Make the cost of
	constants cheap after reload.
	* config/m68hc11/m68hc11.c (m68hc11_shift_cost): Shift by 16 and 32
	are cheap.
	(m68hc11_rtx_costs): Cost of multiplication by 65536 is expensive
	so that gcc prefers a shift by 16.
	(m6811_cost, m6812_cost): Make the shift cheap compared to an add.

From-SVN: r41834
2001-05-04 20:08:36 +02:00
Nick Clifton
30506ece75 Add alignment parameter to .comm directives for ELF targets.
From-SVN: r41832
2001-05-04 16:16:43 +00:00
Kaveh R. Ghazi
df4ae16082 alpha.h: NULL_PTR -> NULL.
* alpha.h: NULL_PTR -> NULL.
	* arm.c: Likewise.
	* arm.h: Likewise.
	* avr.h: Likewise.
	* c4x.c: Likewise.
	* c4x.h: Likewise.
	* i386.c: Likewise.
	* i386.md: Likewise.
	* i860.c: Likewise.
	* ia64.c: Likewise.
	* m68hc11.h: Likewise.
	* rs6000.h: Likewise.
	* sh.c: Likewise.
	* sh.h: Likewise.
	* sparc.h: Likewise.
	* v850.c: Likewise.

	* expr.c: Likewise.
	* final.c: Likewise.
	* gcc.c: Likewise.
	* recog.c: Likewise.

From-SVN: r41831
2001-05-04 15:06:41 +00:00
Kaveh R. Ghazi
37a580360c i386.c (ix86_emit_restore_regs_using_mov, [...]): Change bool' parameter to int'.
* i386.c (ix86_emit_restore_regs_using_mov, ix86_save_reg): Change
	`bool' parameter to `int'.

	* hash.c (hash_lookup): Likewise.

	* hash.h (hash_lookup): Likewise.

	* tlink.c (symbol_hash_lookup, demangled_hash_lookup): Likewise.

From-SVN: r41829
2001-05-04 14:36:39 +00:00