Commit Graph

39590 Commits

Author SHA1 Message Date
Richard Henderson
ef96952567 class.c (compile_resource_file): Set TREE_PUBLIC on the constructor only if the target requires collect2.
* class.c (compile_resource_file): Set TREE_PUBLIC on the constructor
        only if the target requires collect2.

From-SVN: r48252
2001-12-21 11:44:06 -08:00
Richard Henderson
f44fefca1a * class.c (build_class_ref): Mark _Jv_fooClass DECL_EXTERNAL.
From-SVN: r48251
2001-12-21 11:26:08 -08:00
Tom Tromey
e97b32d909 reverted erroneous checking -- sorry about that
From-SVN: r48250
2001-12-21 19:18:52 +00:00
Tom Tromey
82712f8b74 For PR java/4509:
* parse.y (java_complete_lhs) [COMPOUND_EXPR]: Correctly compute
	CAN_COMPLETE_NORMALLY for the node.
	* jcf-write.c (generate_bytecode_insns) [COMPOUND_EXPR]: Don't
	generate code for second branch if first branch can't complete
	normally.
	(generate_bytecode_insns) [LOOP_EXPR]: Don't generate `goto' to
	the loop head if the loop body can't complete normally.

From-SVN: r48249
2001-12-21 19:15:36 +00:00
Richard Henderson
0ba28a6d48 wtr-aggr-init-1.c: Test that __extension__ disables then re-enables the warning.
* gcc.dg/wtr-aggr-init-1.c: Test that __extension__ disables then
        re-enables the warning.

From-SVN: r48248
2001-12-21 11:14:46 -08:00
Richard Henderson
5137bd4f86 c-parse.in (SAVE_WARN_FLAGS): Save warn_traditional.
* c-parse.in (SAVE_WARN_FLAGS): Save warn_traditional.
        (RESTORE_WARN_FLAGS): Restore it.
        (extension): Zero warn_traditional.

From-SVN: r48247
2001-12-21 10:31:11 -08:00
Richard Henderson
3c0a049e58 * g++.old-deja/g++.eh/badalloc1.C (malloc): Fix typo.
From-SVN: r48246
2001-12-21 10:03:25 -08:00
Kazu Hirata
c6dcc80eb3 * doc/passes.texi: Fix a typo.
From-SVN: r48245
2001-12-21 16:19:14 +00:00
Kazu Hirata
151ad5cd3b * config/h8300/h8300.h: Fix a comment typo.
From-SVN: r48244
2001-12-21 16:15:38 +00:00
Paolo Carlini
05b8581146 stl_rope.h (_Rope_iterator): Add local typedef to fix implicit typename problems.
2001-12-21  Paolo Carlini  <pcarlini@unitus.it>

	* include/ext/stl_rope.h (_Rope_iterator):
	Add local typedef to fix implicit typename problems.

From-SVN: r48242
2001-12-21 13:08:35 +00:00
Nick Clifton
ea1c1719bf Add missing URL for message that prompted this new test
From-SVN: r48241
2001-12-21 11:46:01 +00:00
Jakub Jelinek
87b7873d9b * gcc.c-torture/compile/20011218-1.c: New test.
From-SVN: r48240
2001-12-21 12:30:47 +01:00
Jakub Jelinek
7958f3c750 combine.c (nonzero_bits): If using reg_nonzero_bits, we don't know anything about bits outside of X mode.
* combine.c (nonzero_bits): If using reg_nonzero_bits,
	we don't know anything about bits outside of X mode.
	(num_sign_bit_copies): Likewise.

From-SVN: r48239
2001-12-21 12:07:59 +01:00
Turly O'Connor
b7fb9feb71 darwin.c (machopic_classify_ident): Handle "stale" section- encoded name problem to avoid generating illegal stubs.
* darwin.c (machopic_classify_ident): Handle "stale" section-
	encoded name problem to avoid generating illegal stubs.
	(func_name_maybe_scoped): Remove, not needed for gcc3.
	(machopic_indirect_call_target): Don't use it.
	(darwin_encode_section_info): Call only one of update_stubs()
	or update_non_lazy_ptrs() as DECL cannot be both.
	(machopic_output_possible_stub_label): New.
	* darwin.h (ASM_DECLARE_FUNCTION_NAME): Use it.
	* darwin-protos.h (machopic_output_possible_stub_label): Declare.

From-SVN: r48238
2001-12-21 10:44:50 +00:00
Nick Clifton
a00b07c5e5 Use 'a' operand code for prefetch instruction.
From-SVN: r48237
2001-12-21 09:31:37 +00:00
Nick Clifton
ff7230ac61 oops - accidentally omitted from previous delta
From-SVN: r48236
2001-12-21 08:46:23 +00:00
GCC Administrator
baf158869c Daily bump.
From-SVN: r48234
2001-12-21 08:16:13 +00:00
Tom Tromey
84a944b3ca For PR java/4509:
* parse.y (java_complete_lhs) [COMPOUND_EXPR]: Correctly compute
	CAN_COMPLETE_NORMALLY for the node.
	* jcf-write.c (generate_bytecode_insns) [COMPOUND_EXPR]: Don't
	generate code for second branch if first branch can't complete
	normally.
	(generate_bytecode_insns) [LOOP_EXPR]: Don't generate `goto' to
	the loop head if the loop body can't complete normally.

From-SVN: r48233
2001-12-21 05:28:27 +00:00
Tom Tromey
2d93b92445 For PR java/4766:
* jcf-write.c (generate_bytecode_insns) [TRY_FINALLY_EXPR]: Handle
	case where `finally' clause can't complete normally.

From-SVN: r48232
2001-12-21 05:13:43 +00:00
Tom Tromey
f2af50dbcf re PR java/5057 (gcj -C erroneously omits <clinit>)
Fixes PR java/5057:
	* parse.y (analyze_clinit_body): Added this_class parameter.
	Check for more cases where we must keep <clinit>.
	(maybe_yank_clinit): Cleaned up flow control.

From-SVN: r48231
2001-12-21 04:37:24 +00:00
Kaveh R. Ghazi
7be3337037 aclocal.m4 (gcc_AC_PROG_GNAT): Run prospective ada drivers in subshells.
* aclocal.m4 (gcc_AC_PROG_GNAT): Run prospective ada drivers in
	subshells.
	* configure.in: Likewise for perl Pod::Man.

	* configure: Regenerated.

From-SVN: r48230
2001-12-21 02:46:09 +00:00
Kaveh R. Ghazi
b4c984fbec builtin-attrs.def (__builtin_printf_unlocked, [...]): Mark with the __printf__ attribute.
* builtin-attrs.def (__builtin_printf_unlocked,
	__builtin_fprintf_unlocked, printf_unlocked, fprintf_unlocked):
	Mark with the __printf__ attribute.

	* builtins.c (expand_builtin_fputs): Add an `unlocked' parameter
	and set the replacement function depending on it.
	(expand_builtin): Skip BUILT_IN_*_UNLOCKED when not optimizing.
	Handle BUILT_IN_*_UNLOCKED when optimizing.

	* builtins.def (DEF_EXT_FALLBACK_BUILTIN,
	DEF_EXT_FRONT_END_LIB_BUILTIN): New macros.
	Declare the "unlocked" stdio functions.

	* c-common.c (c_expand_builtin_printf, c_expand_builtin_fprintf):
	Add an `unlocked' parameter and set the replacement function
	depending on it.
	(c_expand_builtin): Handle BUILT_IN_PRINTF_UNLOCKED and
	BUILT_IN_FPRINTF_UNLOCKED.

	* doc/extend.texi (printf_unlocked, fprintf_unlocked,
	fputs_unlocked): Document.

testsuite:
	* gcc.dg/format/builtin-1.c: Test unlocked stdio.
	* gcc.dg/format/c90-printf-3.c: Likewise.
	* gcc.dg/format/c99-printf-3.c: Likewise.
	* gcc.dg/format/ext-1.c: Likewise.
	* gcc.dg/format/ext-6.c: Likewise.
	* gcc.dg/format/format.h: Prototype unlocked stdio.

From-SVN: r48229
2001-12-21 02:36:37 +00:00
Richard Henderson
bfa8af3e37 New test.
From-SVN: r48228
2001-12-20 18:07:09 -08:00
Josef Zlomek
b09d108b48 cfgloop.c (flow_loops_find): Use the information of the depth first search order of the CFG correctly when...
* cfgloop.c (flow_loops_find): Use the information of the depth
        first search order of the CFG correctly when finding natural loops.

From-SVN: r48227
2001-12-20 17:50:10 -08:00
Richard Henderson
f350566bf4 * config/alpha/alpha.md (prologue_mcount): Update for explicit relocs.
From-SVN: r48226
2001-12-20 16:33:29 -08:00
Richard Henderson
002d2e0b80 alpha.c (call_operand): Accept pseudos.
* config/alpha/alpha.c (call_operand) [OSF]: Accept pseudos.
        * config/alpha/alpha.md (call_osf, call_value_osf): Don't force
        operand into $27.

From-SVN: r48225
2001-12-20 16:22:39 -08:00
Richard Henderson
cf785988e0 badalloc1.C (arena_size): New.
* g++.old-deja/g++.eh/badalloc1.C (arena_size): New.
        (arena): Use it.
        (malloc): Correct allocation logic.  Abort if we fill up the
        arena before initialization complete.
        (realloc): Correct allocation logic.

From-SVN: r48224
2001-12-20 16:18:26 -08:00
Joseph Myers
5bc277026b configure.in (all_headers, [...]): Remove.
* configure.in (all_headers, all_lib2funcs): Remove.
	* configure: Regenerate.
	* Makefile.in (LANG_EXTRA_HEADERS): Remove.
	(USER_H): Don't include $(LANG_EXTRA_HEADERS).
	* config/alpha/t-interix (USER_H): Don't include
	$(LANG_EXTRA_HEADERS).
	* config/i386/t-interix: Likewise.
	* config/t-openbsd: Likewise.

From-SVN: r48222
2001-12-20 23:35:42 +00:00
Bryce McKinlay
7899e8b9f5 decl.c (java_init_decl_processing): Don't initialize finit_leg_identifier_node.
* decl.c (java_init_decl_processing): Don't initialize
	finit_leg_identifier_node.
	* java-tree.h (java_tree_index): Remove JTI_FINIT_LEG_IDENTIFIER_NODE.
	(finit_leg_identifier_node): Remove.
	(ID_FINIT_P): Don't check for JTI_FINIT_LEG_IDENTIFIER_NODE.

From-SVN: r48221
2001-12-20 22:50:21 +00:00
Bryce McKinlay
de4984af13 mangle.c (mangle_member_name): Don't special-case for NO_DOLLAR_IN_LABEL.
* mangle.c (mangle_member_name): Don't special-case for
	NO_DOLLAR_IN_LABEL.
	* mangle_name.c (unicode_mangling_length): Likewise.
	(append_unicode_mangled_name): Likewise.
	* parse.y (make_nested_class_name): Remove dead NO_DOLLAR_IN_LABEL
	code.

From-SVN: r48220
2001-12-20 22:48:52 +00:00
Bryce McKinlay
08514ae4a5 expr.c (build_java_array_length_access): Don't force null pointer check unless flag_check_references is set.
* expr.c (build_java_array_length_access): Don't force null pointer
	check unless flag_check_references is set.

From-SVN: r48219
2001-12-20 22:47:39 +00:00
Andreas Jaeger
d68c98e1d2 libgcc2.c (__bb_exit_func): Remove unused variable.
* libgcc2.c (__bb_exit_func): Remove unused variable.
	(num_digits): Remove unused function.

From-SVN: r48215
2001-12-20 21:02:43 +01:00
Nick Clifton
121308d427 Fix prologue/epilogue generation for ARM ISR routines.
Add test case to catch bugs reported in prologue/epilogue generation for ARM ISR routines.

From-SVN: r48210
2001-12-20 19:03:37 +00:00
Tom Tromey
e6a8345b03 For PR java/4766:
* libjava.compile/PR4766.java: New file.

From-SVN: r48209
2001-12-20 18:05:20 +00:00
Tom Tromey
56b8325e5b re PR java/3417 (Downcast on integral types.)
Fix for PR java/3417:
	* parse.y (patch_assignment): Added special processing for
	`return'.
	(patch_return): Don't convert booleans to integers, and don't
	special-case `null'.

From-SVN: r48208
2001-12-20 17:45:41 +00:00
Richard Henderson
82af613ff3 varasm.c (assemble_real): Use REAL_VALUE_TO_x and assemble_integer to emit floating point values.
* varasm.c (assemble_real): Use REAL_VALUE_TO_x and assemble_integer
	to emit floating point values.
	(assemble_real_1): Remove.

	* 1750a/1750a.c (real_value_to_target_single): New.
	(real_value_to_target_double): New.
	* 1750a/1750a.h (TARGET_FLOAT_FORMAT): New.
	(REAL_VALUE_TO_TARGET_SINGLE): New.
	(REAL_VALUE_TO_TARGET_DOUBLE): New.
	* 1750a/1750a-protos.h: Update.

	* 1750a/1750a.h, a29k/a29k.h, alpha/alpha.h, alpha/unicosmk.h,
	alpha/vms.h, arc/arc.h, arm/aof.h, arm/aout.h, avr/avr.c,
	avr/avr.h, c4x/c4x.h, clipper/clix.h, convex/convex.h, cris/cris.h,
	d30v/d30v.h, dsp16xx/dsp16xx.c, dsp16xx/dsp16xx.h, elxsi/elxsi.h,
	fr30/fr30.h, h8300/h8300.h, i370/i370.h, i386/i386.h, i386/i386elf.h,
	i386/next.h, i386/ptx4-i.h, i386/sysv4.h, i860/fx2800.h, i860/i860.h,
	i860/paragon.h, i860/sysv4.h, i960/i960-protos.h, i960/i960.c,
	i960/i960.h, ia64/ia64.h, m32r/m32r.h, m68hc11/m68hc11.c,
	m68hc11/m68hc11.h, m68k/3b1.h, m68k/altos3068.h, m68k/crds.h,
	m68k/dpx2.h, m68k/hp320.h, m68k/m68k.h, m68k/mot3300.h, m68k/news.h,
	m68k/next.h, m68k/next21.h, m68k/sgs.h, m68k/sun2o4.h, m68k/sun3.h,
	m68k/tower-as.h, m88k/m88k.h, mcore/mcore.h, mips/mips-protos.h,
	mips/mips.c, mips/mips.h, mmix/mmix-protos.h, mmix/mmix.c,
	mmix/mmix.h, mn10200/mn10200.h, mn10300/mn10300.h, ns32k/encore.h,
	ns32k/ns32k.h, pa/long_double.h, pa/pa.h, pdp11/pdp11.h, pj/pj.h,
	romp/romp.c, romp/romp.h, rs6000/rs6000.h, s390/linux.h, sh/sh.h,
	sparc/sparc.h, stormy16/stormy16.h, v850/v850.h, vax/vax.h,
	vax/vaxv.h, we32k/we32k.h, doc/tm.texi: Remove ASM_OUTPUT_FLOAT,
	ASM_OUTPUT_DOUBLE, ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_BYTE_FLOAT,
	ASM_OUTPUT_SHORT_FLOAT, ASM_OUTPUT_THREE_QUARTER_FLOAT, and all
	associated support routines.

From-SVN: r48207
2001-12-20 09:36:39 -08:00
Jan Hubicka
d1ee6d9bb7 cfgcleanup.c (flow_find_cross_jump): Avoid incrementing of ninsns if one of block does not contain jump.
* cfgcleanup.c (flow_find_cross_jump): Avoid incrementing of ninsns
	if one of block does not contain jump.
	(outgoing_edge_math): Revert last path; require edges to be noncomplex
	nonfake to match single exit edge; require conditional jumps to not
	have side effect.

From-SVN: r48203
2001-12-20 17:01:26 +00:00
Turly O'Connor
37bef19770 tm.texi (ASM_OUTPUT_OPERAND): Change documentation references to "recog_operand" to "recog_data.operand".
* tm.texi (ASM_OUTPUT_OPERAND): Change documentation references to
	"recog_operand" to "recog_data.operand".
	* rtl.def: Likewise.

From-SVN: r48202
2001-12-20 14:39:53 +00:00
Andrew Haley
76eceb1ec3 FileHandleGcTest.out: New file.
2001-12-20  Andrew Haley  <aph@redhat.com>

	* libjava.lang/FileHandleGcTest.out:  New file.
	* libjava.lang/FileHandleGcTest.java: New file.
	* libjava.lang/Array_3.out: New file.
	* libjava.lang/Array_3.java: New file.

From-SVN: r48201
2001-12-20 14:09:03 +00:00
Jakub Jelinek
bcdd764b27 Fix comment typo in last change.
From-SVN: r48200
2001-12-20 09:28:05 +01:00
Jakub Jelinek
a9dc868ffb simplify-rtx.c (simplifi_binary_operation): If DIV has narrower mode than op0, only return the bits in DIV's mode.
* simplify-rtx.c (simplifi_binary_operation) [DIV]: If DIV has
	narrower mode than op0, only return the bits in DIV's mode.

	* gcc.c-torture/compile/20011219-2.c: New test.

From-SVN: r48199
2001-12-20 09:26:20 +01:00
Jakub Jelinek
2a3b43b609 combine.c (distribute_notes): Avoid adding REG_LABEL notes to JUMP_INSNs with JUMP_LABEL.
* combine.c (distribute_notes): Avoid adding REG_LABEL notes
	to JUMP_INSNs with JUMP_LABEL.

	* gcc.c-torture/execute/20011219-1.c: New test.

From-SVN: r48198
2001-12-20 09:23:42 +01:00
GCC Administrator
c12b6f2a07 Daily bump.
From-SVN: r48196
2001-12-20 08:16:14 +00:00
Geert Bosch
17c5c8a5ee bindgen.adb: Minor reformatting
* bindgen.adb: Minor reformatting

	* cstand.adb: Minor reformatting

	* fmap.adb: Minor reformatting
	Change name from Add for Add_To_File_Map (Add is much too generic)
	Change Path_Name_Of to Mapped_Path_Name
	Change File_Name_Of to Mapped_File_Name
	Fix copyright dates in header

	* fmap.ads:
	Change name from Add for Add_To_File_Map (Add is much too generic)
	Change Path_Name_Of to Mapped_Path_Name
	Change File_Name_Of to Mapped_File_Name
	Fix copyright dates in header

	* fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
	Add use clause for Fmap.

	* make.adb: Minor reformatting

	* osint.adb: Minor reformatting.  Change of names in Fmap.
	Add use clause for Fmap.

	* prj-env.adb: Minor reformatting

	* prj-env.ads: Minor reformatting

	* switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
	error found (there were odd exceptions to this general rule in
	-gnatec/-gnatem processing)

	* raise.c (__gnat_eh_personality): Exception handling personality
	routine for Ada.  Still in rough state, inspired from the C++ version
	and still containing a bunch of debugging artifacts.
	(parse_lsda_header, get_ttype_entry): Local (static) helpers, also
	inspired from the C++ library.

	* raise.c (eh_personality): Add comments. Part of work for the GCC 3
	exception handling integration.

	* Makefile.in: Remove use of 5smastop.adb which is obsolete.
	(HIE_SOURCES): Add s-secsta.ad{s,b}.
	(HIE_OBJS): Add s-fat*.o
	(RAVEN_SOURCES): Remove files that are no longer required. Add
	interrupt handling files.
	(RAVEN_MOD): Removed, no longer needed.

	* a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
	Add 2001 to copyright date

	* g-regpat.adb: Change pragma Inline_Always to Inline. There is no
	need to force universal inlining for these cases.

	* s-taprob.adb: Minor clean ups so that this unit can be used in
	Ravenscar HI.

	* exp_ch7.adb: Allow use of secondary stack in HI mode.
	Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.

	* prj-tree.ads (Project_Node_Record): Add comments for components
	Pkg_Id and Case_Insensitive.

	* g-socket.adb: Minor reformatting. Found while reading code.

	* prj-tree.ads: Minor reformatting

From-SVN: r48195
2001-12-20 07:22:43 +01:00
Aldy Hernandez
a004eb826e install.texi: Add documentation for --enable-altivec.
2001-12-19  Aldy Hernandez  <aldyh@redhat.com>

        * doc/install.texi: Add documentation for --enable-altivec.

        * config.gcc: Add support for --enable-altivec.

        * config/rs6000/altivec.h: New.

        * config/rs6000/linuxaltivec.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
        Define.  Fix typo.

        * config/rs6000/rs6000.c (vrsave_operation): Change unspec to
	unspec_volatile.
        (generate_set_vrsave): Generate the unspec here instead of calling
        an .md pattern.
        (generate_set_vrsave): Use gen_rtvec.
        (rs6000_emit_prologue): Replace call to gen_get_vrsave with
        gen_rtx_SET.

        * config/rs6000/rs6000.md ("*movsi_internal1"): Add constraints
	for setting special registers.
        ("*set_vrsave_internal"): Use unspec_volatile.
        ("set_vrsave"): Remove.
        ("get_vrsave"): Remove.

        * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Add vrsave to
	SPECIAL_REGS.

From-SVN: r48194
2001-12-20 04:42:23 +00:00
Bruce Korb
b5639a499e accommodate __STDC__ == 0 tests in UW 2.1.2 Remove all the fix suppression...
accommodate __STDC__ == 0 tests in UW 2.1.2
Remove all the fix suppression "fixes"
adjust sample results for changes in fixes

From-SVN: r48193
2001-12-20 04:09:40 +00:00
David Billinghurst
871c5f6b1d re PR c/5147 ([cygwin] Failure of test gcc.dg/special/wkali-1.c)
PR c/5147
        * gcc.dg/special/ecos.exp:  wkali-1.c unsupported if
        target does not support weak symbols.

From-SVN: r48191
2001-12-19 16:32:08 -08:00
Joseph Myers
66866cda0e * po/gcc.pot: Regenerate.
From-SVN: r48190
2001-12-20 00:26:12 +00:00
Joseph Myers
38be19f603 configure.in (all_diff_excludes, [...]): Remove.
* configure.in (all_diff_excludes, diff_excludes): Remove.
	* configure: Regenerate.
	* Makefile.in (LANG_DIFF_EXCLUDES): Remove.
	* objc/config-lang.in (diff_excludes): Remove.

ada:
	* config-lang.in (diff_excludes): Remove.

ch:
	* config-lang.in (diff_excludes): Remove.

cp:
	* config-lang.in (diff_excludes): Remove.

f:
	* config-lang.in (diff_excludes): Remove.

java:
	* config-lang.in (diff_excludes): Remove.

From-SVN: r48189
2001-12-20 00:20:47 +00:00
Dan Nicolaescu
303f89334b sparc.md (ldd peephole2s): For load peepholes pass the destination register as a parameter to...
* config/sparc/sparc.md (ldd peephole2s): For load peepholes pass
        the destination register as a parameter to mems_ok_for_ldd_peep.
        For store peepholes pass NULL_RTX.  Move all volatile checks ...
        * config/sparc/sparc.c (mems_ok_for_ldd_peep): ... here.  Add a
        register parameter, check it's not the same as base for an address.
        * config/sparc/sparc-protos.h (mems_ok_for_ldd_peep): Update.

From-SVN: r48188
2001-12-19 15:00:39 -08:00