Commit Graph

34172 Commits

Author SHA1 Message Date
Jakub Jelinek
b3bae5e2bf cp-tree.h (struct lang_decl_inlined_fns): New.
* cp-tree.h (struct lang_decl_inlined_fns): New.
	(struct lang_decls): Add inlined_fns.
	(DECL_INLINED_FNS): New macro.
	* optimize.c (struct inline_data): Add inlined_fns.
	(declare_return_variable): Use VARRAY_ACTIVE_SIZE macro.
	(inlinable_function_p): Likewise, fix typo in comment,
	function is not inlinable if it already inlined function currently
	being optimized.
	(expand_call_inline): Add fn to inlined_fns if neccessary.
	(optimize_function): Initialize inlined_fns.
	Save inlined_fns into DECL_INLINED_FNS after expanding inlines.
	* decl.c (mark_inlined_fns): New function.
	(lang_mark_tree): Call it.

	* g++.old-deja/g++.other/inline20.C: New test.

From-SVN: r39977
2001-02-22 12:46:33 +01:00
GCC Administrator
35723595ab Daily bump.
From-SVN: r39975
2001-02-22 08:16:42 +00:00
Bryce McKinlay
7e382f0261 fix
From-SVN: r39973
2001-02-22 04:24:34 +00:00
Bryce McKinlay
5950e01622 Disable libgcjx by default.
* configure.in: Add support for --enable-java-awt configure option.
	Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
        * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
	* Makefile.in: Rebuilt.
	* configure: Rebuilt.

From-SVN: r39970
2001-02-22 04:19:58 +00:00
Bryce McKinlay
810e8b5200 re PR java/2040 (java.util.Hashtable(int,float) is stricter than sun's version)
Fix for PR java/2040:
	* java/util/HashMap.java (HashMap): Don't throw exception for
	loadFactor > 1. Add exception messages.
	* java/util/Hashtable.java (Hashtable): Likewise.

From-SVN: r39969
2001-02-22 04:16:07 +00:00
Benjamin Kosnik
7a6f729041 c_locale_gnu.h: Add clocale include.
2001-02-20  Benjamin Kosnik  <bkoz@redhat.com>

	* config/c_locale_gnu.h: Add clocale include.

From-SVN: r39968
2001-02-22 01:35:47 +00:00
Phil Edwards
c2aa93b54a tests_flags.in: Remove -n flag from call to echo.
2001-02-21  Phil Edwards  <pme@sources.redhat.com>

	* tests_flags.in:  Remove -n flag from call to echo.

From-SVN: r39966
2001-02-21 21:58:20 +00:00
David Mosberger
3f67ac08f3 Refine syscall_linkage attribute semantics to fix security hole.
* config/ia64/ia64.c (ia64_epilogue_uses): For syscall_linkage
	functions, drop current_function_args_info.words test.
	(ia64_compute_frame_size): Mark syscall_linkage functions as
	using eight input registers.

From-SVN: r39965
2001-02-21 13:50:16 -08:00
Ovidiu Predescu
e9ece3bcbc Added.
From-SVN: r39964
2001-02-21 20:40:22 +00:00
Ovidiu Predescu
50920adb6b nested-1.m: Added (contributed by Nicola Pero).
Wed Feb 21 12:38:22 2001  Ovidiu Predescu  <ovidiu@cup.hp.com>

	* objc/execute/nested-1.m: Added (contributed by Nicola Pero).

From-SVN: r39963
2001-02-21 20:39:52 +00:00
Loren J. Rittle
89647e8a23 fix freebsd version check of GCC
Co-Authored-By: Bruce Korb <bkorb@gnu.org>

From-SVN: r39961
2001-02-21 20:01:24 +00:00
Jeffrey D. Oldham
e889f41a2b gcc.c: Add comment explaining how to add a command-line option.
2001-02-21  Jeffrey D. Oldham  <oldham@codesourcery.com>

	* gcc.c: Add comment explaining how to add a command-line option.
	Add title to specs language comment.

From-SVN: r39960
2001-02-21 19:54:18 +00:00
Jeffrey Oldham
7521b91323 gcc.c (cc1_options): Add "-param".
2001-02-21  Jeffrey Oldham  <oldham@codesourcery.com>

	* gcc.c (cc1_options): Add "-param".
	(DEFAULT_WORD_SWITCH_TAKES_ARG): Likewise.
	(option_map): Likewise.
	* toplev.c (display_help): Add entry for "--param".
	(independent_decode_option): Fix typographical error.

From-SVN: r39958
2001-02-21 19:45:25 +00:00
Benjamin Kosnik
3d71e6cef0 c_locale_gnu.h: Add clocale include.
2001-02-20  Benjamin Kosnik  <bkoz@redhat.com>

	* config/c_locale_gnu.h: Add clocale include.

From-SVN: r39956
2001-02-21 19:07:33 +00:00
Catherine Moore
82a127a9ec i386.c (function_arg_advance): Pass SSE arguments in registers.
* i386.c (function_arg_advance):  Pass SSE arguments in registers.
	(function_arg): Likewise.

Co-Authored-By: Bernd Schmidt <bernds@redhat.com>
Co-Authored-By: Jan Hubicka <jh@suse.cz>

From-SVN: r39955
2001-02-21 18:49:33 +00:00
Aldy Hernandez
a43f528e5a fixed typo in last commit re REVERSE_CONDEXEC_PREDICATES_P
From-SVN: r39954
2001-02-21 18:25:34 +00:00
Jan Hubicka
2b71bf377c * i386.md (mmx_lshrdi3, mmx_ashldi3): Guard by unspec.
From-SVN: r39952
2001-02-21 18:20:17 +00:00
Kazu Hirata
eb57ffec9d h8300.md (iorsi3): Do not output an extra newline character.
2001-02-21  Kazu Hirata  <kazu@hxi.com>

	* config/h8300/h8300.md (iorsi3): Do not output an extra newline
	character.
	(xorsi3): Likewise.

From-SVN: r39950
2001-02-21 18:09:48 +00:00
Jan Hubicka
ccfce8d2ee flow.c (init_propagate_block_info): Canon address and use single_set for killing dead memory stores.
* flow.c (init_propagate_block_info): Canon address and use single_set
	for killing dead memory stores.

From-SVN: r39949
2001-02-21 16:52:40 +00:00
Jeffrey Oldham
0443f602bc Makefile.in (reorg.o): Add params.h dependence.
2001-02-21  Jeffrey Oldham  <oldham@codesourcery.com>

	* Makefile.in (reorg.o): Add params.h dependence.
	* params.def: Fix typographical error in comment.
	(MAX_DELAY_SLOT_INSN_SEARCH): New parameter.
	* params.h: Modify introductory comment.
	(MAX_DELAY_SLOT_INSN_SEARCH): New parameter.
	* reorg.c: Add dependence on params.h.
	(redundant_insn): Add parameterized throttle for search.
	(fill_simple_delay_slots): Add a comment explaining a variable.
	Move conditional out of loop, simplifying code.
	(fill_eager_delay_slots): Fix typographical error in comment.

From-SVN: r39948
2001-02-21 16:11:59 +00:00
Aldy Hernandez
7e6d8ba184 new macro REVERSE_CONDEXEC_PREDICATES_P
From-SVN: r39947
2001-02-21 15:59:30 +00:00
Jason Merrill
5daf7c0a17 tree.h (DECL_UNINLINABLE): Move from C++ frontend.
* tree.h (DECL_UNINLINABLE): Move from C++ frontend.
        (struct tree_decl): Add uninlinable bitfield.
        * c-decl.c (duplicate_decls): Set it.
        * integrate.c (function_cannot_inline_p): Check it.
        * cp-tree.h (struct lang_decl_flags): Remove uninlinable flag.
        (DECL_UNINLINABLE): Move to middle-end.

        * dwarf2out.c (add_name_and_src_coords_attributes): Don't add
        DW_AT_MIPS_linkage_name to abstract methods.
        (dwarf2out_abstract_function): Emit class context before calling
        set_decl_abstract_flags.  Don't clear DECL_ABSTRACT.
        (gen_subprogram_die): Remove obsolete code.
        (gen_member_die): Don't include clones in the member list.
        (gen_decl_die): Emit abstract info for clone origin.
        * dwarfout.c (output_type): Don't include clones in the member list.
        * dbxout.c (dbxout_type_methods): Ignore abstract methods.
        * toplev.c (note_deferral_of_defined_inline_function): Don't clear
        DECL_ABSTRACT on a function that already has it set.
        * class.c (clone_function_decl): Set DECL_ABSTRACT on original fn.
        * decl.c (duplicate_decls): Preserve DECL_ABSTRACT.
        * class.c (build_clone): Set DECL_ABSTRACT_ORIGIN for the clone.
        * optimize.c (maybe_clone_body): Set DECL_ABSTRACT_ORIGIN for the
        parms and outer BLOCK.  note_deferral_of_defined_inline_function.

        * dwarf2out.c (gen_formal_types_die): Also accept a FUNCTION_DECL.
        (get_subprogram_die): Pass it in.
        * method.c (implicitly_declare_fn): Don't set DECL_ARTIFICIAL on
        second parm of op=.

From-SVN: r39945
2001-02-21 09:42:27 -05:00
Richard Earnshaw
3c88f36654 flow.c (mark_set_1): Make not_dead unsigned long.
* flow.c (mark_set_1): Make not_dead unsigned long.  For
non-pseudos, use it as a bitmask of the hard regs that
don't die.

From-SVN: r39943
2001-02-21 12:18:11 +00:00
Gabriel Dos Reis
eccad89471 New test.
From-SVN: r39942
2001-02-21 11:48:24 +00:00
GCC Administrator
63b3c1598c Daily bump.
From-SVN: r39939
2001-02-21 08:16:08 +00:00
Neil Booth
373e217703 cppfiles.c: Update comments.
* cppfiles.c: Update comments.
        (_cpp_read_file): Don't check for NULL filenames any more.
        * cppinit.c (cpp_start_read): Don't do canonicalization of
        in_fname and out_fname.  Use the passed file name exclusively.
        (_cpp_handle_options): Don't treat "-" as a command line option,
        but as a normal filename.
        (_cpp_post_options): Canonicalize in_fname and out_fname.
        * cppmain.c (printer_init): Don't check out_fname for NULL.
        * c-lex.c (orig_filename): Rename cpp_filename for clarity.
        (init_c_lex): Update, and use "" to represent stdin to CPP.
        (yyparse): Update.

From-SVN: r39938
2001-02-21 07:29:56 +00:00
Will Cohen
75beacf885 quadlib.c (_U_Qfcnvfxt_quad_to_usgl): New function.
* config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_usgl): New function.
        * config/pa/long_double.h (FIXUNS_TRUNCTFSI2_LIBCALL): Added.
        (INIT_TARGET_OPTABS): Use FIXUNS_TRUNCTFSI2_LIBCALL for
        fixunstfsi_libfunc.

From-SVN: r39937
2001-02-20 22:05:25 -07:00
Stan Shebs
33011c358e rs6000.c (output_cbranch): Output branches on separate lines instead of using ';' to separate.
* config/rs6000/rs6000.c (output_cbranch): Output branches
        on separate lines instead of using ';' to separate.

From-SVN: r39935
2001-02-21 01:50:36 +00:00
Neil Booth
c740cee29d cppinit.c (set_lang): Move builtin handling to...
* cppinit.c (set_lang):  Move builtin handling to...
        (init_builtins): ...here.
        (_cpp_create_reader): Move call to set_lang.

From-SVN: r39934
2001-02-20 22:52:11 +00:00
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