1. 07 Oct, 2000 12 commits
    • acinclude.m4: Remove CPU_FLAGS · c81a475f
      
      2000-10-07  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>
      
      	* acinclude.m4: Remove CPU_FLAGS
      	* libio/Makefile.am: Here too.
      	* Makefile.am: Here too.
      
      	* src/Makefile.am (CONFIG_INCLUDES): Remove.
      	(INCLUDES): Remove CONFIG_INCLUDES.
      	(cpu_headers): Remove.
      	(myinstallheaders): Remove cpu_headers.
      	(generated_headers): Rename to build_headers.
      	(build_headers): Add atomicity.h, ctype_base.h,
      	ctype_specializations.h.
      
      	* config/os: New directory.
      	* config/aix: Move to...
      	* config/bsd: Move to...
      	* config/generic: Move to...
      	* config/gnu-linux: Move to...
      	* config/irix: Move to...
      	* config/newlib: Move to...
      	* config/solaris: Move to...
      	* config/os/*: Here.
      
      From-SVN: r36776
      Benjamin Kosnik committed
    • * java/util/Properties.java: Merged with Classpath version. · 43f8e390
      From-SVN: r36775
      Tom Tromey committed
    • Makefile.in ($(srcdir)/hash.h): Refer to GNU FTP site for updated gperf. · 20d431c9
      ch:
      	* Makefile.in ($(srcdir)/hash.h): Refer to GNU FTP site for
      	updated gperf.
      
      java:
      	* Makefile.in (keyword.h): Refer to GNU FTP site for updated
      	gperf.
      
      From-SVN: r36774
      Joseph Myers committed
    • Daily bump. · 5beaf8cb
      From-SVN: r36773
      Jeff Law committed
    • elf.h: Standardize the formatting. · d38d55b4
      2000-10-06  David O'Brien  <obrien@FreeBSD.org>
      * config/alpha/elf.h: Standardize the formatting.
      
      Approved by:  Richard Henderson <rth@cygnus.com>
                    Message-ID: <20001006233422.D23128@cygnus.com>
      
      From-SVN: r36772
      David O'Brien committed
    • elf.h: Protect the ASM_OUTPUT_IDENT definition with an #undef. · 94984e91
      2000-10-06  David O'Brien  <obrien@FreeBSD.org>
      * config/alpha/elf.h: Protect the ASM_OUTPUT_IDENT definition with an #undef.
      
      Approved by:  Richard Henderson <rth@cygnus.com>
                    Message-ID: <20001006231829.C23128@cygnus.com>
      
      From-SVN: r36771
      David O'Brien committed
    • cp-tree.h (struct cp_language_function): Remove x_result_rtx. · 156ce211
              * cp/cp-tree.h (struct cp_language_function): Remove x_result_rtx.
              (original_result_rtx): Remove.
              * cp/decl.c (save_function_data): Don't clear x_result_rtx.
              (mark_lang_function): Don't mark it either.
              * cp/expr.c (fixup_result_decl): Remove.
              * cp/semantics.c (genrtl_named_return_value): Frob the return decl
              before calling emit_local_var.
              (genrtl_finish_function): Don't call fixup_result_decl.
              Always emit the jump to return_label.
      
      From-SVN: r36770
      Richard Henderson committed
    • function.c (diddle_return_value): Examine current_function_return_rtx instead of the DECL_RESULT. · 3e4eac3f
              * function.c (diddle_return_value): Examine
              current_function_return_rtx instead of the DECL_RESULT.
              (expand_function_end): Handle reloading DECL_RESULT from memory
              into a hard register.  Query promote_mode for sign of mismatched
              modes.
      
      From-SVN: r36769
      Richard Henderson committed
    • crash13.C: Pass -Wreturn-type. · 15f18aac
              * g++.old-deja/g++.brendan/crash13.C: Pass -Wreturn-type.
              * g++.old-deja/g++.brendan/crash52.C: Likewise.
              * g++.old-deja/g++.jason/report.C: Likewise.
              * g++.old-deja/g++.law/friend5.C: Likewise.
              * g++.old-deja/g++.mike/p646.C: Likewise.  Adjust the spelling
              of the expected warnings.
      
      From-SVN: r36768
      Richard Henderson committed
    • Makefile.am: Remove OPTIMIZE_CXXFLAGS, WARN_CXXFLAGS, CONFIG_CXXFLAGS from here, and move to... · c7053b70
      
      2000-10-06  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>
      
      	* src/Makefile.am: Remove OPTIMIZE_CXXFLAGS, WARN_CXXFLAGS,
      	CONFIG_CXXFLAGS from here, and move to...
      	* src/Makefile.in: Regenerate.
      	* Makefile.am: ... here. Clean.
      	(OPTIMIZE_CXXFLAGS): Move up Makefile hierarchy to here.
      	(WARN_CXXFLAGS): Same.
      	(CONFIG_CXXFLAGS): Same.
      	* Makefile.in: Regenerate.
      	* libsupc++/Makefile.am: Use top-level OPTIMIZE_CXXFLAGS,
      	WARN_CXXFLAGS, CONFIG_CXXFLAGS as part of local AM_CXXFLAGS.
      	* libsupc++/Makefile.in: Regenerate.
      
      	Change math to libmath.
      	* math: Move to libmath, delete.
      	* libmath: New directory.
      	* libmath/*: Populate.
      	* src/Makefile.am (LIBMATH_INCLUDES): Change to libmath.
      	(libstdc___la_LIBADD): Same.
      	* src/Makefile.in: Regenerate.
      	* configure.in: Add AC_OUTPUT for libmath/Makefile.
      	* configure: Regenerate.
      	* Makefile.am (SUBDIRS): Add libmath.
      	* Makefile.in: Regenerate.
      	* README (file): Change name.
      
      From-SVN: r36767
      Benjamin Kosnik committed
    • Makefile.am: Remove OPTIMIZE_CXXFLAGS, WARN_CXXFLAGS, CONFIG_CXXFLAGS from here, and move to... · 5ce24954
      
      
      2000-10-06  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>
      
      	* src/Makefile.am: Remove OPTIMIZE_CXXFLAGS, WARN_CXXFLAGS,
      	CONFIG_CXXFLAGS from here, and move to...
      	* src/Makefile.in: Regenerate.
      	* Makefile.am: ... here. Clean.
      	(OPTIMIZE_CXXFLAGS): Move up Makefile hierarchy to here.
      	(WARN_CXXFLAGS): Same.
      	(CONFIG_CXXFLAGS): Same.
      	* Makefile.in: Regenerate.
      	* libsupc++/Makefile.am: Use top-level OPTIMIZE_CXXFLAGS,
      	WARN_CXXFLAGS, CONFIG_CXXFLAGS as part of local AM_CXXFLAGS.
      	* libsupc++/Makefile.in: Regenerate.
      
      	Change math to libmath.
      	* math: Move to libmath, delete.
      	* libmath: New directory.
      	* libmath/*: Populate.
      	* src/Makefile.am (LIBMATH_INCLUDES): Change to libmath.
      	(libstdc___la_LIBADD): Same.
      	* src/Makefile.in: Regenerate.
      	* configure.in: Add AC_OUTPUT for libmath/Makefile.
      	* configure: Regenerate.
      	* Makefile.am (SUBDIRS): Add libmath.
      	* Makefile.in: Regenerate.
      	* README (file): Change name.
      
      From-SVN: r36766
      Benjamin Kosnik committed
    • Makefile.am: Remove OPTIMIZE_CXXFLAGS, WARN_CXXFLAGS, CONFIG_CXXFLAGS from here, and move to... · 20ad6051
      
      2000-10-06  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>
      
      	* src/Makefile.am: Remove OPTIMIZE_CXXFLAGS, WARN_CXXFLAGS,
      	CONFIG_CXXFLAGS from here, and move to...
      	* src/Makefile.in: Regenerate.
      	* Makefile.am: ... here. Clean.
      	(OPTIMIZE_CXXFLAGS): Move up Makefile hierarchy to here.
      	(WARN_CXXFLAGS): Same.
      	(CONFIG_CXXFLAGS): Same.
      	* Makefile.in: Regenerate.
      	* libsupc++/Makefile.am: Use top-level OPTIMIZE_CXXFLAGS,
      	WARN_CXXFLAGS, CONFIG_CXXFLAGS as part of local AM_CXXFLAGS.
      	* libsupc++/Makefile.in: Regenerate.
      
      	Change math to libmath.
      	* math: Move to libmath, delete.
      	* libmath: New directory.
      	* libmath/*: Populate.
      	* src/Makefile.am (LIBMATH_INCLUDES): Change to libmath.
      	(libstdc___la_LIBADD): Same.
      	* src/Makefile.in: Regenerate.
      	* configure.in: Add AC_OUTPUT for libmath/Makefile.
      	* configure: Regenerate.
      	* Makefile.am (SUBDIRS): Add libmath.
      	* Makefile.in: Regenerate.
      	* README (file): Change name.
      
      From-SVN: r36765
      Benjamin Kosnik committed
  2. 06 Oct, 2000 28 commits
    • libsupc++: New directory. · cc9711a3
      
      2000-10-06  Benjamin Kosnik  <bkoz@cygnus.com>
                  Richard Henderson  <rth@cygnus.com>
      	    Alexandre Oliva  <aoliva@redhat.com>
      
      	* libsupc++: New directory.
      	* libsupc++/*: Populate.
      	* libsupc++/Makefile.am (INCLUDES): Add -I../../gcc for
      	eh-common.h, gansidecl.h.
      	* configure.in: Add in libsupc++/Makefile to AC_OUTPUT.
      	* configure: Regenerate.
      	* Makefile.am (SUBDIRS): Add libsupc++.
      	* Makefile.in: Regenerate.
      	* src/Makefile.am (libstdc___la_LIBADD): Add in libsupc++.la
      	* src/Makefile.in: Regenerate.
      	* libio/Makefile.am: Remove extraneous, confusing bits.
      	* libio/Makefile.in: Regenerate.
      
      From-SVN: r36764
      Benjamin Kosnik committed
    • libsupc++: New directory. · 06bd10fb
      
      2000-10-06  Benjamin Kosnik  <bkoz@cygnus.com>
                  Richard Henderson  <rth@cygnus.com>
      	    Alexandre Oliva  <aoliva@redhat.com>
      
      	* libsupc++: New directory.
      	* libsupc++/*: Populate.
      	* libsupc++/Makefile.am (INCLUDES): Add -I../../gcc for
      	eh-common.h, gansidecl.h.
      	* configure.in: Add in libsupc++/Makefile to AC_OUTPUT.
      	* configure: Regenerate.
      	* Makefile.am (SUBDIRS): Add libsupc++.
      	* Makefile.in: Regenerate.
      	* src/Makefile.am (libstdc___la_LIBADD): Add in libsupc++.la
      	* src/Makefile.in: Regenerate.
      	* libio/Makefile.am: Remove extraneous, confusing bits.
      	* libio/Makefile.in: Regeneate.
      
      From-SVN: r36763
      Benjamin Kosnik committed
    • haifa-sched.c (schedule_insns): Fix typo in freeing forward_dependency_cache. · 4071f896
      2000-10-06  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
      
      	* haifa-sched.c (schedule_insns): Fix typo in freeing
      	forward_dependency_cache.
      
      From-SVN: r36762
      Vladimir Makarov committed
    • sh.md (calli_pcrel, [...]): Add `TARGET_SH2' as a condition. · eb69f95c
      * config/sh/sh.md (calli_pcrel, call_valuei_pcrel): Add
      `TARGET_SH2' as a condition.
      
      From-SVN: r36761
      Alexandre Oliva committed
    • haifa-sched.c (anti_dependency_cache, [...]): New variables. · 178b88b9
      2000-10-06  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
      
      	* haifa-sched.c (anti_dependency_cache, output_dependency_cache,
      	forward_dependency_cache): New variables.
      	(add_dependence, remove_dependence): Use anti_dependency_cache and
      	output_dependency_cache.
      	(compute_block_forward_dependences): Use forward_dependency_cache.
      	(schedule_insns): Allocate and free memory for anti/output/forward
      	dependencies caches.
      
      From-SVN: r36760
      Vladimir Makarov committed
    • sh.md (call, call_value): Use `TARGET_SH2' instead of `! TARGET_SH1'. · 827bdee4
      * config/sh/sh.md (call, call_value): Use `TARGET_SH2' instead of
      `! TARGET_SH1'.  Reindent.
      
      From-SVN: r36759
      Alexandre Oliva committed
    • builtins.c (is_valid_printf_arglist, [...]): Move functions from here ... · c70eaeaf
      	* builtins.c (is_valid_printf_arglist, expand_builtin_printf):
      	Move functions from here ...
      
      	* c-common.c (is_valid_printf_arglist, c_expand_builtin_printf):
      	... to here.
      	(c_expand_builtin): New function.
      	(init_function_format_info): Don't set `check_function_format_ptr'.
      	(c_common_nodes_and_builtins): Set built_in_class type for
      	printf/__builtin_printf to BUILT_IN_FRONTEND.
      	(c_expand_expr): Handle CALL_EXPRs that are front-end builtins.
      
      	* c-common.h (build_function_call): Declare.
      
      	* expr.c (expand_expr): Pass builtins with class BUILT_IN_FRONTEND
      	to `lang_expand_expr' rather than `expand_builtin'.
      
      	* tree.c (check_function_format_ptr): Delete.
      
      	* tree.h (check_function_format_ptr): Likewise.
      
      From-SVN: r36758
      Kaveh R. Ghazi committed
    • dwarf2out.c (build_cfa_loc): Correct to use DW_OP_regx or DW_OP_bregx when cfa->reg > 31. · f299afab
      	* dwarf2out.c (build_cfa_loc): Correct to use DW_OP_regx or
      	DW_OP_bregx when cfa->reg > 31.
      
      	* frame-dwarf2.c (decode_stack_op) [case DW_OP_regx]: Add missing
      	break.
      
      From-SVN: r36757
      Hans-Peter Nilsson committed
    • * g++.old-deja/g++.pt/enum14.C: New test. · 903cef85
      From-SVN: r36756
      Nathan Sidwell committed
    • pt.c (lookup_template_class): Set current access for enum. · 92777ce4
      	* pt.c (lookup_template_class): Set current access for enum.
      	(tsubst_enum): Set file & line for enum decl.
      
      	* spew.c (yylex): Remove unused variable.
      
      From-SVN: r36755
      Nathan Sidwell committed
    • Daily bump. · 15af0d40
      From-SVN: r36754
      Jeff Law committed
    • README (file): Adjust directory structures. · 89e37ad7
      
      2000-10-05  Benjamin Kosnik  <bkoz@fillmore.constant.com>
      
      	* README (file): Adjust directory structures.
      	* mkcheck.in (INC_PATH): Adjust for header changes.
      
      From-SVN: r36753
      Benjamin Kosnik committed
    • istream.tcc: Removed test for _M_gcount < in_avail()... · 7c7688c7
      
      
      2000-10-05  Brent Verner  <brent@rcfile.org>
      
              * bits/istream.tcc [basic_istream::get(basic_streambuf&)]: Removed
      	test for _M_gcount < in_avail(), as in_avail() only reports info
      	for current buffer, causing method to return at end of buffer.
      	* testsuite/27_io/istream_unformatted.cc [test07()]: New test.
      	* testsuite/27_io/istream_unformatted-3.txt: New file.
      	* testsuite/27_io/istream_unformatted-3.tst: New file.
      
      From-SVN: r36752
      Brent Verner committed
    • istream.tcc: Removed test for _M_gcount < in_avail()... · 3a1ed6a1
      
      2000-10-03  Brent Verner  <brent@rcfile.org>
      
              * bits/istream.tcc [basic_istream::get(basic_streambuf&)]: Removed
      	test for _M_gcount < in_avail(), as in_avail() only reports info
      	for current buffer, causing method to return at end of buffer.
      	* testsuite/27_io/istream_unformatted.cc [test07()]: New test.
      	* testsuite/27_io/istream_unformatted-3.txt: New file.
      	* testsuite/27_io/istream_unformatted-3.tst: New file.
      
      From-SVN: r36751
      Brent Verner committed
    • c-decl.c (warn_missing_noreturn): Remove. · b313a0fe
              * c-decl.c (warn_missing_noreturn): Remove.
              (c_expand_body): Don't set or check can_reach_end.
              * c-tree.h (warn_missing_noreturn): Move ...
              * flags.h: ... here.
              (can_reach_end): Remove.
              * flow.c (check_function_return_warnings): New.
              (make_edges): No edge to exit for noreturn sibcalls.
              * function.c (expand_function_end): Save the return value
              clobber instruction.
              (mark_function_status): Mark it.
              * function.h (struct function): Add x_clobber_return_insn.
              * jump.c (can_reach_end): Remove.
              (calculate_can_reach_end): Remove.
              (jump_optimize_1): Don't call it.
              * output.h (check_function_return_warnings): Declare.
              * toplev.c (warn_missing_noreturn): Move from c-decl.c
              (rest_of_compilation): Call check_function_return_warnings.
      
      From-SVN: r36750
      Richard Henderson committed
    • semantics.c (genrtl_finish_function): Don't init or check can_reach_end; remove… · 63c16fc5
      semantics.c (genrtl_finish_function): Don't init or check can_reach_end; remove noreturn and return value checks.
      
              * semantics.c (genrtl_finish_function): Don't init or check
              can_reach_end; remove noreturn and return value checks.
      
      From-SVN: r36749
      Richard Henderson committed
    • * com.c (finish_function): Don't init can_reach_end. · 388b067f
      From-SVN: r36747
      Richard Henderson committed
    • Makefile.in (NM_FOR_TARGET): New. · 83dad10c
              * Makefile.in (NM_FOR_TARGET): New.
              (libgcc.mk): Pass SHLIB_MKMAP, SHLIB_MAPFILES.
              (libgcc.a, stmp-multilib): Pass NM_FOR_TARGET.
              * mklibgcc.in: If SHLIB_MKMAP, build libgcc.map.  Depend the
              shared library build on that and EXTRA_MULTILIB_PARTS.
              * mkmap-flat.awk: New file.
              * mkmap-symver.awk: New file.
              * libgcc-std.ver: New file.
              * config/libgcc-glibc.ver: New file.
              * config/ia64/libgcc-ia64.ver: New file.
              * config/t-linux (SHLIB_MKMAP, SHLIB_MAPFILES): New.
              (SHLIB_LINK): Add --version-script.
              * config/ia64/t-ia64 (SHLIB_MAPFILES): Add libgcc-ia64.ver.
              * config/mips/t-iris6 (SHLIB_MKMAP, SHLIB_MAPFILES): New.
              * config/sparc/t-sol2 (SHLIB_MKMAP, SHLIB_MAPFILES): New.
              (SHLIB_LINK): Add -M.
      
      From-SVN: r36746
      Richard Henderson committed
    • longlong.h [alpha] (count_leading_zeros): Use cmpbge with a zero instead of -1. · 29279975
              * longlong.h [alpha] (count_leading_zeros): Use cmpbge with
              a zero instead of -1.
              (count_trailing_zeros): Likewise.
      
      From-SVN: r36745
      Richard Henderson committed
    • Makefile.in (LIB2FUNCS): Add _clz. · d6eacd48
              * Makefile.in (LIB2FUNCS): Add _clz.
              * libgcc2.c (__ffsdi2): Use count_trailing_zeros.
              (__clz_tab): Put in its own unit, non-static.
              * libgcc2.h: Always include longlong.h.
      
      From-SVN: r36744
      Richard Henderson committed
    • alpha.c (alpha_emit_setcc): Don't swap GT tests when second op1 is const0_rtx. · c74fa144
              * config/alpha/alpha.c (alpha_emit_setcc): Don't swap GT tests
              when second op1 is const0_rtx.  Validate op0 as a register.
              * config/alpha/alpha.md (setcc_internal): Don't allow constants
              in the first argument of the compare.
              (setcc_swapped_internal): Likewise.
              (setne_internal): Likewise.
      
      From-SVN: r36743
      Richard Henderson committed
    • tree.c (tree_size): New function split out of copy_node. · c5620996
              * tree.c (tree_size): New function split out of copy_node.
              (make_node): Remove obstack handling.  Use tree_size.
              (copy_node): Use tree_size.
              * tree.h: Prototype tree_size.
      
      From-SVN: r36742
      Geoff Keating committed
    • Rebuilt Makefile.ins · 37dad58d
      From-SVN: r36741
      Tom Tromey committed
    • natField.cc (BooleanClass): Don't define. · 1d336a09
      	* java/lang/reflect/natField.cc (BooleanClass): Don't define.
      	* java/lang/reflect/natArray.cc (BooleanClass): Don't define.
      	* java/lang/Class.h (Object): Added `class$' field.
      	* java/lang/Object.h (Object): Added `class$' field.
      	* defineclass.cc (ClassClass): Use `class$' form.
      	(ClassObject): Likewise.
      	* resolve.cc (ClassObject): Use `class$' form.
      	(ObjectClass): Likewise.
      	* interpret.cc (ClassError): Removed.
      	* java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
      	`class$' form.
      	(IntegerClass): Likewise.
      	* java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
      	form.
      	* java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
      	(ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
      	SerializableClass): Likewise.
      	Include Serializable.h, Cloneable.h.
      	* java/lang/natSystem.cc (SystemClass): Removed.
      	(init_properties): Use `class$' form.
      	* java/lang/natObject.cc (CloneableClass): Removed.
      	(clone): Use `class$' form.
      	* java/lang/natClass.cc (CloneableClass): Use `class$' form.
      	(ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
      	ConstructorClass): Likewise.
      	* java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
      	(ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
      	IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
      	* java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
      	form.
      	(ClassClass): Likewise.
      	* include/jvm.h (StringClass): Use `class$' form.
      	* prims.cc (ObjectClass): Removed.
      	(_Jv_RunMain): Use `class$' form.
      	(_Jv_AllocObject): Likewise.
      	* jni.cc (ClassClass): Use `class$' form.
      	(ThrowableClass): Likewise.
      	(ObjectClass): Likewise.
      	(MethodClass): Likewise.
      	(ThreadGroupClass): Likewise.
      	(NativeThreadClass): Likewise.
      	* boehm.cc (ObjectClass): Removed.
      	(ClassClass): Removed.
      	(_Jv_MarkObj): Use `class$' form.
      	* gcj/field.h (JvFieldIsRef): Use `class$' form.
      	Include RawData.h.
      
      From-SVN: r36740
      Tom Tromey committed
    • * diagnostic.c (output_format): Add missing break. · 331fe257
      From-SVN: r36739
      Richard Henderson committed
    • jvspec.c (jvgenmain_spec): Added `-fdollars-in-identifiers'. · e0a0c416
      	* jvspec.c (jvgenmain_spec): Added `-fdollars-in-identifiers'.
      	* jvgenmain.c (class_mangling_prefix): Removed.
      	(class_mangling_suffix): New global.
      	(main): Use it.
      	* gjavah.c (cxx_keyword_subst): Mangle C++ keywords by appending
      	`$'.
      	(print_method_info): Handle overrides for static and final
      	methods.
      	(process_file): Generate declaration for class object field.
      	* class.c (cxx_keywords): New array.
      	(utf8_cmp): New function.
      	(cxx_keyword_p): New function.
      	(layout_class_method): Mangle C++ keywords by appending `$'.
      	(mangle_field): New function.
      	(mangle_class_field): Use mangle_field.  Mangle class name as
      	`class$'.
      	(mangle_static_field): Use mangle_field.
      
      From-SVN: r36738
      Tom Tromey committed
    • init.c (build_java_class_ref): Use `build_static_name' with a suffix... · d1a458c4
      	* init.c (build_java_class_ref): Use `build_static_name' with a
      	suffix, not a prefix, to build the class object's name.
      
      From-SVN: r36737
      Tom Tromey committed