Commit Graph

33743 Commits

Author SHA1 Message Date
Alexandre Petit-Bianco
064a552c29 parse.y (check_inner_class_access): Moved declaration of local `enclosing_decl_type' to the right location.
2001-02-20  Alexandre Petit-Bianco  <apbianco@redhat.com>

        * parse.y (check_inner_class_access): Moved declaration of local
        `enclosing_decl_type' to the right location.

(http://gcc.gnu.org/ml/gcc-patches/2001-02/msg01258.html)

From-SVN: r39933
2001-02-20 13:18:13 -08:00
Phil Edwards
9cfeea6e4e stl_config.h: Remove file.
2001-02-20  Phil Edwards  <pme@sources.redhat.com>

	* include/bits/stl_config.h:  Remove file.
	* src/Makefile.am (base_headers):  Remove from list.
	* configure:  Regenerate.
	* Makefile.in:  Ditto.
	* libio/Makefile.in:  Ditto.
	* libmath/Makefile.in:  Ditto.
	* libsupc++/Makefile.in:  Ditto.
	* src/Makefile.in:  Ditto.

	* include/bits/c++config:  Move relevant macros to here.
	* include/backward/alloc.h:  Include c++config.h instead.
	* include/backward/function.h:  Ditto.
	* include/backward/heap.h:  Ditto.
	* include/backward/pair.h:  Ditto.
	* include/bits/pthread_allocimpl.h:  Ditto.
	* include/bits/std_functional.h:  Ditto.
	* include/bits/std_iterator.h:  Ditto.
	* include/bits/std_numeric.h:  Ditto.
	* include/bits/std_utility.h:  Ditto.
	* include/bits/stl_algobase.h:  Ditto.
	* include/bits/type_traits.h:  Ditto.
	* src/stl-inst.cc:  Ditto.

From-SVN: r39931
2001-02-20 20:20:48 +00:00
Laurynas Biveinis
288edf4753 * MAINTAINERS: add myself to Write After Approval list.
From-SVN: r39929
2001-02-20 19:29:07 +00:00
Tom Tromey
39f90b7ce0 PipedWriter.java (flush): Throw exception if stream closed.
* java/io/PipedWriter.java (flush): Throw exception if stream
	closed.
	* java/io/OutputStreamWriter.java (write): Throw exception if
	stream closed.
	(writeChars): Don't throw exception if stream closed.
	* java/io/CharArrayWriter.java (closed): New field.
	(close): Set it.
	(flush): Throw exception if stream closed.
	(reset): Synchronize on correct lock.  Allow stream to be
	reopened.
	(toCharArray, toString, writeTo): Synchronize.
	(write): Throwe exception if stream closed.
	* java/io/BufferedWriter.java (close): Clear `buffer'.
	(flush): Throw IOException if stream is closed.
	(write): Likewise.

From-SVN: r39927
2001-02-20 19:01:55 +00:00
Mark Mitchell
c9407e4c67 stmt.c (expand_return): If an attempt is made to return the error_mar_node...
* stmt.c (expand_return): If an attempt is made to return the
	error_mar_node, treat the return like a return without a value.

From-SVN: r39924
2001-02-20 18:22:32 +00:00
Tom Tromey
0cbd398014 ThreadGroup.java (activeCount): Only include threads which are alive.
* java/lang/ThreadGroup.java (activeCount): Only include threads
	which are alive.
	(enumerate): Likewise.

From-SVN: r39922
2001-02-20 18:05:57 +00:00
Richard Kenner
2063651603 Fix spelling error
From-SVN: r39921
2001-02-20 07:01:03 -05:00
GCC Administrator
6216fddd10 Daily bump.
From-SVN: r39920
2001-02-20 08:16:40 +00:00
Zack Weinberg
cd5a58e592 sibcall.c (skip_copy_to_return_value): Call identify_call_return_value here, and return orig_insn if it returns zero.
* sibcall.c (skip_copy_to_return_value): Call
	identify_call_return_value here, and return orig_insn if it
	returns zero.  Hardret and softret arguments now unnecessary.
	(call_ends_block_p): Don't call identify_call_return_value here.

	* ggc-common.c (ggc_mark_rtx_children): No need to mark 'S' or
	's' slots in RTXen.
	* ggc-page.c, ggc-simple.c (ggc_mark_if_gcable): Delete	function.
	* ggc.h (ggc_mark_if_gcable): Delete prototype.

testsuite:
	* g77.dg: New directory.
	* g77.dg/20010216-1.f: New test case.
	* g77.dg/dg.exp: New driver.
	* lib/g77-dg.exp: New driver library.

From-SVN: r39916
2001-02-20 05:49:06 +00:00
Benjamin Kosnik
3d55d2f8dc Makefile.in (check-c++): New rule.
2001-02-19  Benjamin Kosnik  <bkoz@redhat.com>

        * Makefile.in (check-c++): New rule.

From-SVN: r39915
2001-02-20 04:13:50 +00:00
Jeffrey A Law
f8eb41cc0d pa.c (move_operand): Accept code to load the address of a symbol out of the DLT as a valid move operand.
* pa.c (move_operand): Accept code to load the address of a
        symbol out of the DLT as a valid move operand.
        (print_operand, case 'A'): New to handle generating a DLT
        reference for a LO_SUM expression.
        * pa.h (EXTRA_CONSTRAINT): Handle 'A' for DLT LO_SUM references.
        * pa.md (movsi, movdi patterns): Allow DLT LO_SUM references.

From-SVN: r39914
2001-02-19 20:29:00 -07:00
Benjamin Kosnik
4d88a68a06 configure.in (target_libs): Remove libg++.
2001-02-19  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* configure.in (target_libs): Remove libg++.
	(noconfigdirs): Remove libg++.
	(noconfigdirs): Same.
	(noconfigdirs): Same.
	(noconfigdirs): Same.

	* config-ml.in: Remove libg++ references.

	* Makefile.in (TARGET_CONFIGDIRS): Remove libio, libstdc++, libg++.
	(ALL_TARGET_MODULES): Same.
	(configure-target-libg++): Remove.
	(all-target-libg++): Remove.
	(configure-target-libio): Remove.
	(all-target-libio): Remove.
	(check-target-libio): Remove.
	(.PHONY): Remove.
	(libg++.tar.bz2): Remove.
	(all-target-cygmon): Remove libio.
	(all-target-libstdc++): Remove.
	(configure-target-libstdc++): Remove.
	(TARGET_LIB_PATH): Remove libstdc++.
	(ALL_GCC_CXX): Remove libstdc++.

From-SVN: r39911
2001-02-20 00:57:54 +00:00
Bryce McKinlay
3cb4f6fa99 Forgot this file on last check-in.
From-SVN: r39910
2001-02-19 22:52:15 +00:00
Bryce McKinlay
a648f4e4c8 parse.y (parser_check_super_interface): Don't call check_pkg_class_access for an inner interface.
* parse.y (parser_check_super_interface): Don't call
	check_pkg_class_access for an inner interface.
	(parser_check_super): Don't call check_pkg_class_access for inner
	class.
	(do_resolve_class): Simplify enclosing type loop. Don't call
	check_pkg_class_access if CL and DECL are not set.
	(find_in_imports_on_demand): Set DECL if class_type needed to be
	loaded. Don't call check_pkg_class_access for an inner class.
	(check_inner_class_access): Rewritten to implement member access
	rules as per spec 6.6.1.
	(check_pkg_class_access): Handle the empty package correctly.
	(in_same_package): New function. Determine if two classes are in the
	same package.

From-SVN: r39909
2001-02-19 22:48:16 +00:00
Mark Mitchell
2c0fc02de2 decl2.c (set_decl_namespace): Allow explicit instantiations in any namespace.
* decl2.c (set_decl_namespace): Allow explicit instantiations in
	any namespace.

From-SVN: r39907
2001-02-19 21:47:08 +00:00
Bryce McKinlay
35ab11f05f typeck.c (build_java_array_type): Don't try to poke a public `clone' method into array types.
* typeck.c (build_java_array_type): Don't try to poke a public `clone'
	method into array types.
	* parse.y (patch_method_invocation): Bypass access check on clone call
	to array instance.

From-SVN: r39906
2001-02-19 21:10:14 +00:00
Joseph Myers
7539316943 Version.c, [...]: Update G77 version number to 0.5.27.
libf2c:
	* libF77/Version.c, libI77/Version.c, libU77/Version.c: Update G77
	version number to 0.5.27.

gcc:
	* README, cpp.texi, gcc.texi, version.c: Update version number to
	3.1.
	* cpp.1, gcov.1, gcc.1: Regenerate.

gcc/f:
	* version.c, root.texi: Update GCC version number to 3.1.  Update
	G77 version number to 0.5.27.
	* BUGS, NEWS: Regenerate.

From-SVN: r39901
2001-02-19 20:03:42 +00:00
Neil Booth
51d0f328ba cppfiles.c (stack_include_file): Generate dependencies here, and manage include_count here too.
* cppfiles.c (stack_include_file): Generate dependencies
        here, and manage include_count here too.
        (PRINT_THIS_DEP): Delete.
        (_cpp_execute_include): Do not generate dependencies here,
        apart from the case of a missing header.  Do not manage
        include_count.
        (_cpp_read_file): Leave dependency generation to
        stack_include_file.

From-SVN: r39899
2001-02-19 19:50:21 +00:00
Gabriel Dos Reis
b0a85b861e Add #pragma system_header to header files.
From-SVN: r39896
2001-02-19 18:52:25 +00:00
Jeffrey A Law
c81460e465 config.gcc (hppa*64*-*-hpux11*): Add MASK_GAS to target_cpu_default.
* config.gcc (hppa*64*-*-hpux11*): Add MASK_GAS to
        target_cpu_default.  Remove dead assignment to
        target_cpu_default.

From-SVN: r39895
2001-02-19 10:15:53 -07:00
Jan Hubicka
6df26b8f23 regclass.c (contains_reg_of_mode): Make global.
* regclass.c (contains_reg_of_mode): Make global.
	(init_reg_sets): Remove contains_reg_of_mode; take into account
	CLASS_MAX_NREGS when looking for the proper mode.
	(dump_regclass): Dump only classes considered for the pseudo.
	(regclass): Use contains_reg_of_mode.

From-SVN: r39891
2001-02-19 15:50:20 +00:00
Jan Hubicka
4a88a060b7 gcc.c (do_spec_1): 'n' for printing notices.
* gcc.c (do_spec_1): 'n' for printing notices.
	* i386.h (CC1_CPU_SPEC): Notice deprecated options as deprecated.

From-SVN: r39889
2001-02-19 15:47:30 +00:00
Andreas Jaeger
c62ea79568 atomicity.h (__compare_and_swap): Fix typo.
2001-02-19  Andreas Jaeger  <aj@suse.de>

	* config/cpu/sparc/sparc64/bits/atomicity.h (__compare_and_swap):
	Fix typo.

From-SVN: r39886
2001-02-19 16:41:46 +01:00
Jan Hubicka
0eac0e81c4 reg-stack.c (next_flags_user): Use current_block->end
* reg-stack.c (next_flags_user): Use current_block->end
	(swap_rtx_condition): Look for next user if flags don't die;
	give up on CALL_INSNs; use current_block->end.

From-SVN: r39884
2001-02-19 14:59:42 +00:00
Richard Kenner
e7ca84b3a6 Tweak comments
From-SVN: r39883
2001-02-19 09:42:55 -05:00
Richard Kenner
e5c617ff16 sibcall.c (call_ends_block_p): New function.
* sibcall.c (call_ends_block_p): New function.
	(optimize_sibling_and_tail_recursive_call): Use it.

From-SVN: r39879
2001-02-19 08:27:36 -05:00
GCC Administrator
2091638a5f Daily bump.
From-SVN: r39877
2001-02-19 08:16:09 +00:00
Bryce McKinlay
be454565be CharArrayReader.java (CharArrayReader): Throw IllegalArgumentException if constructor arguments are illegal.
* java/io/CharArrayReader.java (CharArrayReader): Throw
	IllegalArgumentException if constructor arguments are illegal.
	(ready): Return false if no more characters can be read.
	* java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.

From-SVN: r39876
2001-02-19 05:37:28 +00:00
Kriang Lerdsuwanakij
612164eb46 optimize.c (expand_call_inline): Don't walk subtrees of type nodes.
* optimize.c (expand_call_inline): Don't walk subtrees of type
	nodes.

	* g++.old-deja/g++.other/inline19.c: Remove XFAIL.

From-SVN: r39873
2001-02-19 04:06:51 +00:00
Bryce McKinlay
3d1c878854 Integer.java (getInteger): Return default argument if property is not set.
* java/lang/Integer.java (getInteger): Return default argument if
	property is not set. Don't call decode with null argument.
	* java/lang/Long.java (getLong): Likewise.

From-SVN: r39870
2001-02-19 03:43:12 +00:00
Richard Kenner
8d444206b1 Fix typo in last change
From-SVN: r39869
2001-02-18 22:19:23 -05:00
Kazu Hirata
63a262f14e h8300.md: Update copyright.
2001-02-18  Kazu Hirata  <kazu@hxi.com>

	* config/h8300/h8300.md: Update copyright.

From-SVN: r39868
2001-02-19 02:26:12 +00:00
Kazu Hirata
8488b3656f h8300.md: Do not output an extra newline character.
2001-02-18  Kazu Hirata  <kazu@hxi.com>

	* config/h8300/h8300.md: Do not output an extra newline character.

From-SVN: r39866
2001-02-19 01:42:18 +00:00
Kazu Hirata
55de49e3d8 h8300.md: Do not output an extra newline character.
2001-02-18  Kazu Hirata  <kazu@hxi.com>

	* config/h8300/h8300.md: Do not output an extra newline character.

From-SVN: r39865
2001-02-19 01:37:17 +00:00
Richard Kenner
63aa1491fc Remove conflict indicator
From-SVN: r39862
2001-02-18 19:10:27 -05:00
Richard Kenner
48aba75b6b toplev.c (note_deferral_of_defined_inlined_function): Argument FNDECL may be unused.
* toplev.c (note_deferral_of_defined_inlined_function): Argument
	FNDECL may be unused.

	* toplev.c (rest_of_compilation): Don't have CSE skip blocks or
	follow jumps after first run.
	If -fexpensive-optimizations rerun CSE after GCSE and iterate until
	it doesn't change any jumps.

From-SVN: r39861
2001-02-18 19:09:28 -05:00
Jeffrey A Law
3335f1d984 Makefile.in (rtlanal.o): Depend on hard-reg-set.h.
* Makefile.in (rtlanal.o): Depend on hard-reg-set.h.
        ($HOST_PREFIX_1)rtlanal.o: Remove rules for building
        (mostlyclean): Corresponding changes.
        * rtlanal.c (hard-reg-set.h): Include.
        (rtx_unstable_p): Do not treat the argument pointer specially
        if it is not a fixed register.
        (rtx_varies_p, rtx_addr_can_trap_p): Similarly.

From-SVN: r39860
2001-02-18 17:05:49 -07:00
Richard Kenner
021921d0e4 sibcall.c (optimize_sibling_and_tail_recursive_call): Compare against last real insn in basic block.
* sibcall.c (optimize_sibling_and_tail_recursive_call): Compare
	against last real insn in basic block.
	Rework to avoid gotos.

From-SVN: r39858
2001-02-18 19:00:08 -05:00
Richard Kenner
fb0c0a1270 Makefile.in (gcse.o): Now includes ggc.h.
* Makefile.in (gcse.o): Now includes ggc.h.
	* gcse.c: Include ggc.h.
	(want_to_gcse_p): Verify expression can be in SET as valid insn.
	(try_replace_reg): Remove warning of uninitialize variable.
	(process_insert_insn): Call invalid_insn_p to validate insn.
	* recog.c (insn_invalid_p): Now global.
	See if can make valid by adding CLOBBERs of SCRATCH only and do if so.
	* recog.h (insn_invalid_p): New declaration.

From-SVN: r39857
2001-02-18 18:56:34 -05:00
Richard Kenner
d659de97e7 * jump.c (jump_optimize_1): Only define reversed_code #ifdef HAVE_trap.
From-SVN: r39856
2001-02-18 18:51:21 -05:00
Richard Kenner
3ec6f1a939 sparc.c (eligible_for_epilogue_delay): Don't put assignments from FP constants sonce 'Y' output code can't handle it.
* config/sparc/sparc.c (eligible_for_epilogue_delay): Don't put
	assignments from FP constants sonce 'Y' output code can't handle it.
	(eligible_for_sibcall_delay): Likewise.

From-SVN: r39854
2001-02-18 18:39:28 -05:00
Richard Kenner
63c499dc55 flow.c (print_rtl_and_abort_fcn): Renamed from print_rtl_and_abort.
* flow.c (print_rtl_and_abort_fcn): Renamed from print_rtl_and_abort.
	Call fancy_abort directly, passing args.
	(print_rtl_and_abort): Now a macro, like fancy_abort.

From-SVN: r39852
2001-02-18 15:56:03 -05:00
Richard Kenner
651a788e3b * final.c (output_operand_lossage): Use internal_error, not error.
From-SVN: r39850
2001-02-18 15:50:41 -05:00
Richard Henderson
71641c15a6 * mips.c (mips_expand_prologue) Add REG_MAYBE_DEAD to
structure shift insns.

From-SVN: r39848
2001-02-18 12:44:44 -08:00
Mark Mitchell
69a59a49f6 class.c (add_vcall_offset_vtbl_entries_1): Only add one entry for a destructor.
* class.c (add_vcall_offset_vtbl_entries_1): Only add one entry
	for a destructor.

From-SVN: r39847
2001-02-18 20:41:10 +00:00
Mark Mitchell
8fa33dfa93 invoke.texi (-fsquangle): Remove documentation.
* invoke.texi (-fsquangle): Remove documentation.
	(-fname-mangling-version): Likewise.

	* cp-tree.h (new_abi_rtti_p): Remove.
	(name_mangling_version): Likewise.
	(flag_do_squangling): Likewise.
	* class.c (build_rtti_vtbl_entries): Remove old ABI support.
	* decl.c (grokfndecl): Likewise.
	* decl2.c (name_mangling_version): Remove.
	(flag_do_squangling): Likewise.
	(lang_f_options): Remove `squangle'.
	(unsupported_options): Add `squangle'.
	(cxx_decode_option): Issue a warning about uses of
	-fname-mangling-version.
	(finish_file): Remove old ABI support.
	* pt.c (check_explicit_specialization): Likewise.
	(tsubst_decl): Likewise.
	* rtti.c (init_rtti_processing): Likewise.
	(build_headof): Likewise.
	(get_tinfo_decl_dynamic): Likewise.
	(tinfo_from_decl): Likewise.
	(build_dynamic_cast_1): Likewise.
	(synthesize_tinfo_var): Likewise.
	* init.c (build_new): Allow enumeration types for the array-bounds
	in a direct-new-declarator.

From-SVN: r39845
2001-02-18 20:31:44 +00:00
Lars Brinkhoff
e1078cfca6 optabs.c (expand_abs): Remove reference to HAVE_contitional_arithmetic.
* optabs.c (expand_abs): Remove reference to
        HAVE_contitional_arithmetic.
        * combine.c (simplify_set): Likewise.

From-SVN: r39844
2001-02-18 12:24:10 -08:00
Richard Henderson
3bd2411724 ifcvt.c (dead_or_predicable): Don't move code if eh regions would be disrupted.
* ifcvt.c (dead_or_predicable): Don't move code if eh regions
        would be disrupted.

From-SVN: r39843
2001-02-18 12:06:51 -08:00
Jason Merrill
e0fff4b3a7 Do put the VTT parameter in DECL_ARGUMENTS.
* cp-tree.h (struct cp_language_function): Add x_vtt_parm.
        (current_vtt_parm): New macro.
        (struct lang_decl_flags): Add has_vtt_parm_p, remove vtt_parm.
        (DECL_HAS_VTT_PARM_P): New macro.
        (DECL_VTT_PARM): Remove.
        (FUNCTION_FIRST_USER_PARMTYPE, FUNCTION_FIRST_USER_PARM): New macros.
        * decl.c (duplicate_decls): Only copy the operator code if
        appropriate.
        (start_function): Set current_vtt_parm.
        (lang_mark_tree): Don't mark vtt_parm.
        * decl2.c (maybe_retrofit_in_chrg): Do add the VTT parm to
        DECL_ARGUMENTS.  Set DECL_HAS_VTT_PARM_P.
        * class.c (build_clone): Maybe remove the VTT parm.
        * optimize.c (maybe_clone_body): Set up the VTT parm.
        * pt.c (copy_default_args_to_explicit_spec): Preserve the VTT parm.
        * call.c (build_over_call): Just allow the VTT arg.
        * method.c (make_thunk): Don't set DECL_VTT_PARM.
        (do_build_copy_constructor): Use FUNCTION_FIRST_USER_PARM.
        (synthesize_method): Use FUNCTION_FIRST_USER_PARMTYPE.
        * decl.c (grokdeclarator, copy_args_p, grok_ctor_properties): Likewise.
        * error.c (dump_function_decl): Likewise.
        * call.c (build_user_type_conversion_1, convert_like_real): Abort
        if we try to call a constructor with in-charge or VTT parms.
        * method.c (skip_artificial_parms_for): New fn.
        * call.c (add_function_candidate, build_over_call): Call it.
        * call.c (build_new_method_call): Use current_vtt_parm.
        * init.c (expand_virtual_init): Likewise.
        * class.c (same_signature_p): No longer static.
        * cp-tree.h: Declare it.
        * search.c (look_for_overrides_r): Use it.

From-SVN: r39841
2001-02-18 14:08:00 -05:00
Richard Henderson
3118975871 * config/ns32k/ns32k.h (ADJSP): Upcase arguments.
From-SVN: r39840
2001-02-18 10:40:02 -08:00