gcc.git
23 years agoacinclude.m4: Remove CPU_FLAGS
Benjamin Kosnik [Sat, 7 Oct 2000 18:39:06 +0000 (18:39 +0000)]
acinclude.m4: Remove CPU_FLAGS

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

23 years ago* java/util/Properties.java: Merged with Classpath version.
Tom Tromey [Sat, 7 Oct 2000 18:13:11 +0000 (18:13 +0000)]
* java/util/Properties.java: Merged with Classpath version.

From-SVN: r36775

23 years agoMakefile.in ($(srcdir)/hash.h): Refer to GNU FTP site for updated gperf.
Joseph Myers [Sat, 7 Oct 2000 12:39:35 +0000 (13:39 +0100)]
Makefile.in ($(srcdir)/hash.h): Refer to GNU FTP site for updated gperf.

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

23 years agoDaily bump.
Jeff Law [Sat, 7 Oct 2000 07:45:08 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r36773

23 years agoelf.h: Standardize the formatting.
David O'Brien [Sat, 7 Oct 2000 06:56:14 +0000 (06:56 +0000)]
elf.h: Standardize the formatting.

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

23 years agoelf.h: Protect the ASM_OUTPUT_IDENT definition with an #undef.
David O'Brien [Sat, 7 Oct 2000 06:37:16 +0000 (06:37 +0000)]
elf.h: Protect the ASM_OUTPUT_IDENT definition with an #undef.

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

23 years agocp-tree.h (struct cp_language_function): Remove x_result_rtx.
Richard Henderson [Sat, 7 Oct 2000 01:46:42 +0000 (18:46 -0700)]
cp-tree.h (struct cp_language_function): Remove x_result_rtx.

        * 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

23 years agofunction.c (diddle_return_value): Examine current_function_return_rtx instead of...
Richard Henderson [Sat, 7 Oct 2000 01:45:21 +0000 (18:45 -0700)]
function.c (diddle_return_value): Examine current_function_return_rtx instead of the DECL_RESULT.

        * 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

23 years agocrash13.C: Pass -Wreturn-type.
Richard Henderson [Sat, 7 Oct 2000 01:44:36 +0000 (18:44 -0700)]
crash13.C: Pass -Wreturn-type.

        * 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

23 years agoMakefile.am: Remove OPTIMIZE_CXXFLAGS, WARN_CXXFLAGS, CONFIG_CXXFLAGS from here,...
Benjamin Kosnik [Sat, 7 Oct 2000 01:05:37 +0000 (01:05 +0000)]
Makefile.am: Remove OPTIMIZE_CXXFLAGS, WARN_CXXFLAGS, CONFIG_CXXFLAGS from here, and move to...

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

23 years agoMakefile.am: Remove OPTIMIZE_CXXFLAGS, WARN_CXXFLAGS, CONFIG_CXXFLAGS from here,...
Benjamin Kosnik [Sat, 7 Oct 2000 01:01:45 +0000 (01:01 +0000)]
Makefile.am: Remove OPTIMIZE_CXXFLAGS, WARN_CXXFLAGS, CONFIG_CXXFLAGS from here, and move to...

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

23 years agoMakefile.am: Remove OPTIMIZE_CXXFLAGS, WARN_CXXFLAGS, CONFIG_CXXFLAGS from here,...
Benjamin Kosnik [Sat, 7 Oct 2000 01:00:26 +0000 (01:00 +0000)]
Makefile.am: Remove OPTIMIZE_CXXFLAGS, WARN_CXXFLAGS, CONFIG_CXXFLAGS from here, and move to...

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

23 years agolibsupc++: New directory.
Benjamin Kosnik [Fri, 6 Oct 2000 23:34:32 +0000 (23:34 +0000)]
libsupc++: New directory.

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

23 years agolibsupc++: New directory.
Benjamin Kosnik [Fri, 6 Oct 2000 23:31:22 +0000 (23:31 +0000)]
libsupc++: New directory.

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

23 years agohaifa-sched.c (schedule_insns): Fix typo in freeing forward_dependency_cache.
Vladimir Makarov [Fri, 6 Oct 2000 21:01:06 +0000 (21:01 +0000)]
haifa-sched.c (schedule_insns): Fix typo in freeing forward_dependency_cache.

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

23 years agosh.md (calli_pcrel, [...]): Add `TARGET_SH2' as a condition.
Alexandre Oliva [Fri, 6 Oct 2000 19:55:48 +0000 (19:55 +0000)]
sh.md (calli_pcrel, [...]): Add `TARGET_SH2' as a condition.

* config/sh/sh.md (calli_pcrel, call_valuei_pcrel): Add
`TARGET_SH2' as a condition.

From-SVN: r36761

23 years agohaifa-sched.c (anti_dependency_cache, [...]): New variables.
Vladimir Makarov [Fri, 6 Oct 2000 19:12:53 +0000 (19:12 +0000)]
haifa-sched.c (anti_dependency_cache, [...]): New variables.

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

23 years agosh.md (call, call_value): Use `TARGET_SH2' instead of `! TARGET_SH1'.
Alexandre Oliva [Fri, 6 Oct 2000 18:12:07 +0000 (18:12 +0000)]
sh.md (call, call_value): Use `TARGET_SH2' instead of `! TARGET_SH1'.

* config/sh/sh.md (call, call_value): Use `TARGET_SH2' instead of
`! TARGET_SH1'.  Reindent.

From-SVN: r36759

23 years agobuiltins.c (is_valid_printf_arglist, [...]): Move functions from here ...
Kaveh R. Ghazi [Fri, 6 Oct 2000 14:59:56 +0000 (14:59 +0000)]
builtins.c (is_valid_printf_arglist, [...]): Move functions from here ...

* 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

23 years agodwarf2out.c (build_cfa_loc): Correct to use DW_OP_regx or DW_OP_bregx when cfa->reg...
Hans-Peter Nilsson [Fri, 6 Oct 2000 11:37:31 +0000 (11:37 +0000)]
dwarf2out.c (build_cfa_loc): Correct to use DW_OP_regx or DW_OP_bregx when cfa->reg > 31.

* 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

23 years ago* g++.old-deja/g++.pt/enum14.C: New test.
Nathan Sidwell [Fri, 6 Oct 2000 09:13:11 +0000 (09:13 +0000)]
* g++.old-deja/g++.pt/enum14.C: New test.

From-SVN: r36756

23 years agopt.c (lookup_template_class): Set current access for enum.
Nathan Sidwell [Fri, 6 Oct 2000 09:12:44 +0000 (09:12 +0000)]
pt.c (lookup_template_class): Set current access for enum.

* 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

23 years agoDaily bump.
Jeff Law [Fri, 6 Oct 2000 07:45:10 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r36754

23 years agoREADME (file): Adjust directory structures.
Benjamin Kosnik [Fri, 6 Oct 2000 07:13:29 +0000 (07:13 +0000)]
README (file): Adjust directory structures.

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

23 years agoistream.tcc: Removed test for _M_gcount < in_avail()...
Brent Verner [Fri, 6 Oct 2000 07:12:32 +0000 (07:12 +0000)]
istream.tcc: Removed test for _M_gcount < in_avail()...

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

23 years agoistream.tcc: Removed test for _M_gcount < in_avail()...
Brent Verner [Fri, 6 Oct 2000 07:11:26 +0000 (07:11 +0000)]
istream.tcc: Removed test for _M_gcount < in_avail()...

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

23 years agoc-decl.c (warn_missing_noreturn): Remove.
Richard Henderson [Fri, 6 Oct 2000 06:01:27 +0000 (23:01 -0700)]
c-decl.c (warn_missing_noreturn): Remove.

        * 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

23 years agosemantics.c (genrtl_finish_function): Don't init or check can_reach_end; remove noret...
Richard Henderson [Fri, 6 Oct 2000 06:00:59 +0000 (23:00 -0700)]
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

23 years ago* decl.c (finish_chill_function): Don't init can_reach_end.
Richard Henderson [Fri, 6 Oct 2000 06:00:40 +0000 (23:00 -0700)]
* decl.c (finish_chill_function): Don't init can_reach_end.

From-SVN: r36748

23 years ago* com.c (finish_function): Don't init can_reach_end.
Richard Henderson [Fri, 6 Oct 2000 06:00:21 +0000 (23:00 -0700)]
* com.c (finish_function): Don't init can_reach_end.

From-SVN: r36747

23 years agoMakefile.in (NM_FOR_TARGET): New.
Richard Henderson [Fri, 6 Oct 2000 05:46:02 +0000 (22:46 -0700)]
Makefile.in (NM_FOR_TARGET): New.

        * 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

23 years agolonglong.h [alpha] (count_leading_zeros): Use cmpbge with a zero instead of -1.
Richard Henderson [Fri, 6 Oct 2000 05:32:59 +0000 (22:32 -0700)]
longlong.h [alpha] (count_leading_zeros): Use cmpbge with a zero instead of -1.

        * longlong.h [alpha] (count_leading_zeros): Use cmpbge with
        a zero instead of -1.
        (count_trailing_zeros): Likewise.

From-SVN: r36745

23 years agoMakefile.in (LIB2FUNCS): Add _clz.
Richard Henderson [Fri, 6 Oct 2000 05:29:56 +0000 (22:29 -0700)]
Makefile.in (LIB2FUNCS): Add _clz.

        * 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

23 years agoalpha.c (alpha_emit_setcc): Don't swap GT tests when second op1 is const0_rtx.
Richard Henderson [Fri, 6 Oct 2000 05:19:40 +0000 (22:19 -0700)]
alpha.c (alpha_emit_setcc): Don't swap GT tests when second op1 is const0_rtx.

        * 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

23 years agotree.c (tree_size): New function split out of copy_node.
Geoff Keating [Fri, 6 Oct 2000 04:51:47 +0000 (04:51 +0000)]
tree.c (tree_size): New function split out of copy_node.

        * 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

23 years agoRebuilt Makefile.ins
Tom Tromey [Fri, 6 Oct 2000 01:57:45 +0000 (01:57 +0000)]
Rebuilt Makefile.ins

From-SVN: r36741

23 years agonatField.cc (BooleanClass): Don't define.
Tom Tromey [Fri, 6 Oct 2000 01:49:32 +0000 (01:49 +0000)]
natField.cc (BooleanClass): Don't define.

* 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

23 years ago* diagnostic.c (output_format): Add missing break.
Richard Henderson [Fri, 6 Oct 2000 01:46:50 +0000 (18:46 -0700)]
* diagnostic.c (output_format): Add missing break.

From-SVN: r36739

23 years agojvspec.c (jvgenmain_spec): Added `-fdollars-in-identifiers'.
Tom Tromey [Fri, 6 Oct 2000 01:45:47 +0000 (01:45 +0000)]
jvspec.c (jvgenmain_spec): Added `-fdollars-in-identifiers'.

* 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

23 years agoinit.c (build_java_class_ref): Use `build_static_name' with a suffix...
Tom Tromey [Fri, 6 Oct 2000 01:44:21 +0000 (01:44 +0000)]
init.c (build_java_class_ref): Use `build_static_name' with a suffix...

* 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

23 years agoMakefile.am: Removed java/io/Replaceable.java and java/io/Resolvable.java.
Warren Levy [Thu, 5 Oct 2000 23:57:16 +0000 (23:57 +0000)]
Makefile.am: Removed java/io/Replaceable.java and java/io/Resolvable.java.

* Makefile.am: Removed java/io/Replaceable.java and
java/io/Resolvable.java.
* Makefile.in: Rebuilt.
* gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
namespace.
* java/io/ObjectInputStream.java (processResolution): Fixed typo
in method name.
(processResolution): Handle readResolve method via reflection with
removal of Resolvable interface.
* java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
method via reflection with removal of Replaceable interface.
* java/io/Replaceable.java: Removed.
* java/io/Resolvable.java: Removed.
* java/security/Key.java (serialVersionUID): New field.
* java/security/Provider.java (serialVersionUID): New field.
* java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
New field.
* java/security/interfaces/DSAPublicKey.java (serialVersionUID):
        New field.
* java/sql/DataTruncation.java (serialVersionUID): New field.
* java/sql/SQLException.java (serialVersionUID): New field.
* java/sql/SQLWarning.java (serialVersionUID): New field.
* java/util/Date.java (serialVersionUID): New field.
(millis): Made transient.
(readObject): New method.
(writeObject): New method.

Serialization mods.
Note:  The interfaces java.io.Replaceable and java.io.Resolvable were only
temporary additions to JDK 1.2 beta versions and were not included
in the JDK 1.2 final.  The Serialization spec instructs how to deal
with their methods (via reflection).

From-SVN: r36736

23 years agoFix IA-64 REG_LIBCALL dangling reference.
Jim Wilson [Thu, 5 Oct 2000 23:24:18 +0000 (23:24 +0000)]
Fix IA-64 REG_LIBCALL dangling reference.

* function.c (fixup_var_refs_1, case SET): When gen_move_insn returns a
SEQUENCE, call emit_insn_before, copy PATTERN and REG_NOTES of last
sequence insn to INSN, and delete last sequence insn.

From-SVN: r36735

23 years agoconfigure: Save configure arguments to gcc/configargs.h.
Phil Edwards [Thu, 5 Oct 2000 22:55:19 +0000 (22:55 +0000)]
configure: Save configure arguments to gcc/configargs.h.

        * configure: Save configure arguments to gcc/configargs.h.

        * gcc.c (main): Include generated configargs.h header
        and use arguments in '-v' output.

From-SVN: r36734

23 years ago* gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
Tom Tromey [Thu, 5 Oct 2000 21:32:09 +0000 (21:32 +0000)]
* gnu/gcj/convert/natIconv.cc (init): Terminate buffer.

From-SVN: r36733

23 years agoconfig.guess: Import CVS version 1.157.
Philipp Thomas [Thu, 5 Oct 2000 21:18:00 +0000 (21:18 +0000)]
config.guess: Import CVS version 1.157.

2000-10-04  Philipp Thomas  <pthomas@suse.de>

* config.guess: Import CVS version 1.157.
* config.sub: Import CVS version 1.181.

From-SVN: r36732

23 years agoacinclude.m4 (GLIBCPP_CHECK_CTYPE): Tweaks to message texts for public relations...
Phil Edwards [Thu, 5 Oct 2000 20:15:29 +0000 (20:15 +0000)]
acinclude.m4 (GLIBCPP_CHECK_CTYPE): Tweaks to message texts for public relations purposes.

2000-10-05  Phil Edwards  <pme@sources.redhat.com>

* acinclude.m4 (GLIBCPP_CHECK_CTYPE):  Tweaks to message texts
  for public relations purposes.
* aclocal.m4:  Regenerated.
* configure:  Regenerated.

* docs/ext/howto.html:  Additional explanation about hashing.

From-SVN: r36731

23 years agogcc.c: Move data on prefixes forward in file and reorganize.
Richard Kenner [Thu, 5 Oct 2000 20:07:24 +0000 (20:07 +0000)]
gcc.c: Move data on prefixes forward in file and reorganize.

* gcc.c: Move data on prefixes forward in file and reorganize.
(md_exec_prefix, md_startfile_prefix, md_startfile_prefix_1):
Always define, but make null if no value.
(static_specs): Add "md_exec_prefix", "md_startfile_prefix",
and "md_startfile_prefix_1".
(main): Check whether md_exec_prefix and the others are the
null string rather than whether the macro is defined.

From-SVN: r36730

23 years ago(convert_move): Use zero_extendpsisi2 to do an unsigned extension from PSImode to...
J"orn Rennecke [Thu, 5 Oct 2000 18:07:28 +0000 (18:07 +0000)]
(convert_move): Use zero_extendpsisi2 to do an unsigned extension from PSImode to SImode.

* (convert_move): Use zero_extendpsisi2 to do an unsigned extension
from PSImode to SImode.

From-SVN: r36729

23 years agoemit-rtl.c (gen_lowpart_common): Fix conversion from float to integral mode with...
Jakub Jelinek [Thu, 5 Oct 2000 16:53:33 +0000 (18:53 +0200)]
emit-rtl.c (gen_lowpart_common): Fix conversion from float to integral mode with HOST_BITS_PER_WIDE_INT 64.

* emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETICS]: Fix conversion
from float to integral mode with HOST_BITS_PER_WIDE_INT 64.
* dwarf2out.c (add_const_value_attribute): Divide by 4, not
sizeof(long).

From-SVN: r36728

23 years agoAdded.
Ovidiu Predescu [Thu, 5 Oct 2000 16:00:17 +0000 (16:00 +0000)]
Added.

From-SVN: r36727

23 years agofold-const.c (fold, [...]): Perform negation in proper type.a
Richard Kenner [Thu, 5 Oct 2000 13:35:07 +0000 (13:35 +0000)]
fold-const.c (fold, [...]): Perform negation in proper type.a

* fold-const.c (fold, case MINUS_EXPR, case EQ_EXPR): Perform
negation in proper type.a

From-SVN: r36726

23 years agoinclude: New directory.
Benjamin Kosnik [Thu, 5 Oct 2000 11:36:52 +0000 (11:36 +0000)]
include: New directory.

2000-10-05  Benjamin Kosnik  <bkoz@cygnus.com>

* include: New directory.
* include/backward: New directory.
* include/bits: New directory.
* include/ext: New directory.
* include/std: New directory.
* include/*/*: Populate.

* backwards: Move to include/backwards, delete.
* bits: Move to include/bits, delete.
* ext: Move to include/ext, delete.
* std: Move to include/std, delete.

* src/complex.cc: Adjust include of mathconf.

* mkc++config (BASE_H): Add include.

* src/Makefile.am: Support for topleve sources include directory.
(INCLUDES): Add LIBMATH_INCLUDE.
* src/Makefile.in: Regenerate.
* math/Makefile.am (INCLUDES): Append /include.
* math/Makefile.in: Regenerate.
* libio/Makefile.am (INCLUDES): Add glibcpp_includedir.
* libio/Makefile.in: Regenerate.

2

From-SVN: r36725

23 years agoinclude: New directory.
Benjamin Kosnik [Thu, 5 Oct 2000 11:33:23 +0000 (11:33 +0000)]
include: New directory.

2000-10-05  Benjamin Kosnik  <bkoz@cygnus.com>

* include: New directory.
* include/backward: New directory.
* include/bits: New directory.
* include/ext: New directory.
* include/std: New directory.
* include/*/*: Populate.

* backwards: Move to include/backwards, delete.
* bits: Move to include/bits, delete.
* ext: Move to include/ext, delete.
* std: Move to include/std, delete.

* src/complex.cc: Adjust include of mathconf.

* mkc++config (BASE_H): Add include.

* src/Makefile.am: Support for topleve sources include directory.
(INCLUDES): Add LIBMATH_INCLUDE.
* src/Makefile.in: Regenerate.
* math/Makefile.am (INCLUDES): Append /include.
* math/Makefile.in: Regenerate.
* libio/Makefile.am (INCLUDES): Add glibcpp_includedir.
* libio/Makefile.in: Regenerate.

From-SVN: r36724

23 years agoinclude: New directory.
Benjamin Kosnik [Thu, 5 Oct 2000 11:27:02 +0000 (11:27 +0000)]
include: New directory.

2000-10-05  Benjamin Kosnik  <bkoz@cygnus.com>

* include: New directory.
* include/backward: New directory.
* include/bits: New directory.
* include/ext: New directory.
* include/std: New directory.
* include/*/*: Populate.

* src/complex.cc: Adjust include of mathconf.

* mkc++config (BASE_H): Add include.

* src/Makefile.am: Support for topleve sources include directory.
(INCLUDES): Add LIBMATH_INCLUDE.
* src/Makefile.in: Regenerate.
* math/Makefile.am (INCLUDES): Append /include.
* math/Makefile.in: Regenerate.
* libio/Makefile.am (INCLUDES): Add glibcpp_includedir.
* libio/Makefile.in: Regenerate.

From-SVN: r36723

23 years agocp-tree.h (access_kind): Fix comment typo.
Nathan Sidwell [Thu, 5 Oct 2000 08:41:44 +0000 (08:41 +0000)]
cp-tree.h (access_kind): Fix comment typo.

* cp-tree.h (access_kind): Fix comment typo.
* decl2.c (grokfield): Fix diagnostic typo.
* semantics.c (finish_template_type): Fix comment typo.
(finish_qualified_object_call_expr): Likewise.

From-SVN: r36722

23 years ago* g++.old-deja/g++.pt/crash59.C: New test.
Nathan Sidwell [Thu, 5 Oct 2000 08:31:39 +0000 (08:31 +0000)]
* g++.old-deja/g++.pt/crash59.C: New test.

From-SVN: r36721

23 years agopt.c (tsubst_expr, [...]): Don't process if tsubsting fails.
Nathan Sidwell [Thu, 5 Oct 2000 08:31:15 +0000 (08:31 +0000)]
pt.c (tsubst_expr, [...]): Don't process if tsubsting fails.

* pt.c (tsubst_expr, DECL_STMT case): Don't process if
tsubsting fails.

From-SVN: r36720

23 years agospew.c (frob_id): New static function.
Nathan Sidwell [Thu, 5 Oct 2000 08:28:51 +0000 (08:28 +0000)]
spew.c (frob_id): New static function.

* spew.c (frob_id): New static function.
(frob_opname): Use it.
(yylex): Use it.

From-SVN: r36719

23 years agoDaily bump.
Jeff Law [Thu, 5 Oct 2000 07:45:10 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r36718

23 years ago[multiple changes]
Alexandre Petit-Bianco [Thu, 5 Oct 2000 07:17:34 +0000 (07:17 +0000)]
[multiple changes]

Tue Oct  3 13:44:37 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * decl.c (find_local_variable): Removed uncessary type check and
        fixed range check typo. From Corey Minyard.

Wed Sep 13 16:06:52 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * decl.c (give_name_to_locals): New local `code_offset'. Call
        `maybe_adjust_start_pc.'
        * expr.c (note_instructions): New function.
        (expand_byte_code): Don't collect insn starts here.
        (peek_opcode_at_pc): New function.
        (maybe_adjust_start_pc): Likewise.
        * java-tree.h (maybe_adjust_start_pc): Declare.
        (note_instructions): Likewise.
        * jcf-parse.c (parse_class_file): Call `note_instructions.'

Wed Sep 13 11:50:35 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * parse.y (field_access:): Fixed indentation.
        (qualify_ambiguous_name): Properly qualify `this.a[b].c'.

(http://gcc.gnu.org/ml/gcc-patches/2000-10/msg00067.html)

From-SVN: r36717

23 years ago_G_config.h: Re-guard the __mbstate_t declaration.
Benjamin Kosnik [Thu, 5 Oct 2000 05:54:07 +0000 (05:54 +0000)]
_G_config.h: Re-guard the __mbstate_t declaration.

2000-10-04  Benjamin Kosnik  <bkoz@gnu.org>

* libio/_G_config.h : Re-guard the __mbstate_t declaration.

From-SVN: r36716

23 years agoconfigure.in (enable-shared): New.
Richard Henderson [Wed, 4 Oct 2000 20:53:29 +0000 (13:53 -0700)]
configure.in (enable-shared): New.

        * configure.in (enable-shared): New.
        * Makefile.in (LIBGCC_DEPS): Depend on EXTRA_PARTS as well.
        (libgcc.mk): Pass SHLIB_LINK, SHLIB_LIBS, SHLIB_MULTILIB to mklibgcc.
        * mklibgcc.in: Use them to link shared a libgcc.
        * config/t-linux (SHLIB_LINK, SHLIB_LIBS): New.
        * config/alpha/t-ieee (SHLIB_MULTILIB): New.
        * config/mips/t-iris6 (SHLIB_LINK, SHLIB_LIBS): New.
        * config/sparc/t-sol2 (SHLIB_LINK, SHLIB_LIBS): New.

        * configure.in (alpha-osf*): Use t-osf and x-osf.
        * config/alpha/t-osf: New file.
        * config/alpha/t-osf4: New file.
        * config/alpha/x-osf: New file.
        * config/alpha/x-alpha: Remove file.

From-SVN: r36715

23 years agoPatched code to generate warning when trying to perform static
Will Cohen [Wed, 4 Oct 2000 18:03:33 +0000 (18:03 +0000)]
Patched code to generate warning when trying to perform static
initialization of zero-length arrays.

From-SVN: r36714

23 years agoMakefile.in (bootstrap): avoid recursion if subdir missing
Andris Pavenis [Wed, 4 Oct 2000 18:00:37 +0000 (20:00 +0200)]
Makefile.in (bootstrap): avoid recursion if subdir missing

* Makefile.in (bootstrap): avoid recursion if subdir missing
(cross): ditto
(do-proto-toplev): ditto

From-SVN: r36713

23 years agoDescribes addition of test to verify zero-length array initializers flagged
William Cohen [Wed, 4 Oct 2000 17:59:19 +0000 (17:59 +0000)]
Describes addition of test to verify zero-length array initializers flagged
with warning.

From-SVN: r36712

23 years agoA test to verify the patch to warn of initializers for zero-length
William Cohen [Wed, 4 Oct 2000 17:57:03 +0000 (17:57 +0000)]
A test to verify the patch to warn of initializers for zero-length
arrays is installed in the compiler.

From-SVN: r36711

23 years agoDummy checkin of footer.html to force web update.
Phil Edwards [Wed, 4 Oct 2000 15:52:27 +0000 (15:52 +0000)]
Dummy checkin of footer.html to force web update.

From-SVN: r36710

23 years agoDaily bump.
Jeff Law [Wed, 4 Oct 2000 07:45:12 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r36709

23 years agohowto.html: Add link to proto-documentation on locales.
Benjamin Kosnik [Wed, 4 Oct 2000 06:44:25 +0000 (06:44 +0000)]
howto.html: Add link to proto-documentation on locales.

2000-10-03  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

* docs/22_locale/howto.html: Add link to proto-documentation on
locales.
* docs/documentation.html: Rename links for clarity.

* src/Makefile.am (headers): Remove unistd.h, wrap_unistd.h. Add
fcntl.h, iolibio.h, libioP.h, pthread.h, iconv.h.
* src/Makefile.in: Regenerate.

From-SVN: r36708

23 years ago[multiple changes]
Benjamin Kosnik [Wed, 4 Oct 2000 05:06:32 +0000 (05:06 +0000)]
[multiple changes]

2000-10-02  Steven King  <sxking@uswest.net>

        * mkcshadow: Fixed script to output proper include guard.
        * bits/char_traits.h: Cleaned up types in char_traits<char> functions.
        * libio/_G_config.h: Hacked to make work with shadow heraders.
        * shadow/*: Hacked to make shadow headers work.

2000-10-02  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

Self-compile with shadow headers.
* acconfig.h (_GLIBCPP_USE_SHADOW_HEADERS): Define. Eventually,
like _GLIBCPP_USE_NAMESPACES before it, this macro will die when
it becomes the default way the library is built.
* acinclude.m4 (GLIBCPP_ENABLE_SHADOW): New macro.
* config/gnu-linux/bits/ctype_base.h (ctype_base): Use it.
* config/gnu-linux/ctype.cc (ctype): Use it.

* src/localename.cc (locale::_Impl::_M_replace_categories): Remove
call to assert.
* src/locale.cc: Explicitly cast mbstate_t to void* in calls to
memset. This should not be necessary, but an ambiguous overload
with it in.

* shadow/bits/std_cwchar.h: Fix.
* shadow/wchar.h: Fix.

* config/gnu-linux/bits/ctype_base.h (ctype_base): Inject ctype
enums into namespace std:: for ctype_base enum. Other OS types
will have to do this as well.
* config/gnu-linux/ctype.cc (ctype): Inject ctype data into
namespace std, in particular __ctype_toupper, __ctype_tolower,
__ctype_b.

* shadow/iolibio.h: New file.
* shadow/bits/wrap_iolibio.h: New file.
* shadow/libioP.h: New file.
* shadow/bits/wrap_libioP.h: New file.
* shadow/bits/wrap_fcntl.h: New file.
* shadow/fcntl.h: New file.
* shadow/iconv.h: New file. Inject iconv names into the global
namespace, unmangled for the moment.
* shadow/bits/wrap_iconv.h: New file.
* shadow/unistd.h: Remove. Useless.
* shadow/bits/wrap_unistd.h: Remove.

* src/Makefile.am: Take out machine-ansi.h, add fcntl.h unistd.h.
* src/Makefile.in: Regenerate.

* config/c_io_libio.h (_IO_codecvt): Change to normal C++ decl.

* shadow/libio.h: Fix.
* shadow/bits/wrap_libio.h: Fix.

* shadow/bits/std_clocale.h: Remove typedef struct construct,
which will not compile.
* shadow/bits/std_ctime.h: Same.

* shadow/pthread.h: New file. Put pthreads types and functions
into global scope, which is probably not the correct long-term
solution but has to be done at the moment before libio wrappers
can even be started.
* shadow/bits/wrap_pthread.h: New file.

* bits/std_ios.h: Formatting tweak.
* shadow/bits/std_cstdio.h: Format. Remove extraneous bits.

* acinclude.m4 (GLIBCPP_CHECK_COMPILER_FEATURES): Add -Werror to
tests for compiler features.
* aclocal.m4: Regenerate.
* configure: Regenerate.

* config/c_io_libio.cc: Remove fcntl.h include, as SEEK_SET
redefined.
* libio/libioP.h: Comment out fcntl.h include.

* shadow/math.h: Add in float and long declarations, as per ISO C9X.

* bits/c++config: Define _ISOC99_SOURCE.

* acinclude.m4 (GLIBCPP_ENABLE_SHADOW): Add -fno-builtins to
CSHADOWFLAGS, as well as _ISOC99_SOURCE.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* src/Makefile.am (CSHADOW_INCLUDES): Enable, again.
(CSHADOW_INCLUDES): Add -I$(top_srcdir)/std before shadow include dir.
(CXXCOMPILE): Remove $(DEFS), which searches $(top_srcdir) before
std or shadow directories.
(LTCXXCOMPILE): Same.
(INCLUDES): Add $(top_builddir) before $(top_srcdir).
(AC_CXXFLAGS): Add CSHADOWFLAGS.
* src/Makefile.in: Regenerate.

* src/complex.cc (FCT): Change ::name to name.
* src/complexl.cc (FCT): Same. Use _GLIBCPP_USE_LONG_LONG here.
* src/complexf.cc (FCT): Same.

* src/complexf.cc: Remove FCT define, as things are properly
overloaded in the std namespace with the shadow headers.
* src/complexl.cc: Same.
* src/complex.cc: Same.

From-SVN: r36707

23 years agoSelf-compile with shadow headers.
Benjamin Kosnik [Wed, 4 Oct 2000 03:09:19 +0000 (03:09 +0000)]
Self-compile with shadow headers.

2000-10-02  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

Self-compile with shadow headers.
* acconfig.h (_GLIBCPP_USE_SHADOW_HEADERS): Define. Eventually,
like _GLIBCPP_USE_NAMESPACES before it, this macro will die when
it becomes the default way the library is built.
* acinclude.m4 (GLIBCPP_ENABLE_SHADOW): New macro.
* config/gnu-linux/bits/ctype_base.h (ctype_base): Use it.
* config/gnu-linux/ctype.cc (ctype): Use it.

* src/localename.cc (locale::_Impl::_M_replace_categories): Remove
call to assert.
* src/locale.cc: Explicitly cast mbstate_t to void* in calls to
memset. This should not be necessary, but an ambiguous overload
with it in.

* shadow/bits/std_cwchar.h: Fix.
* shadow/wchar.h: Fix.

* config/gnu-linux/bits/ctype_base.h (ctype_base): Inject ctype
enums into namespace std:: for ctype_base enum. Other OS types
will have to do this as well.
* config/gnu-linux/ctype.cc (ctype): Inject ctype data into
namespace std, in particular __ctype_toupper, __ctype_tolower,
__ctype_b.

* shadow/iolibio.h: New file.
* shadow/bits/wrap_iolibio.h: New file.
* shadow/libioP.h: New file.
* shadow/bits/wrap_libioP.h: New file.
* shadow/bits/wrap_fcntl.h: New file.
* shadow/fcntl.h: New file.
* shadow/iconv.h: New file. Inject iconv names into the global
namespace, unmangled for the moment.
* shadow/bits/wrap_iconv.h: New file.
* shadow/unistd.h: Remove. Useless.
* shadow/bits/wrap_unistd.h: Remove.

* src/Makefile.am: Take out machine-ansi.h, add fcntl.h unistd.h.
* src/Makefile.in: Regenerate.

* config/c_io_libio.h (_IO_codecvt): Change to normal C++ decl.

* shadow/libio.h: Fix.
* shadow/bits/wrap_libio.h: Fix.

* shadow/bits/std_clocale.h: Remove typedef struct construct,
which will not compile.
* shadow/bits/std_ctime.h: Same.

* shadow/pthread.h: New file. Put pthreads types and functions
into global scope, which is probably not the correct long-term
solution but has to be done at the moment before libio wrappers
can even be started.
* shadow/bits/wrap_pthread.h: New file.

* bits/std_ios.h: Formatting tweak.
* shadow/bits/std_cstdio.h: Format. Remove extraneous bits.

* acinclude.m4 (GLIBCPP_CHECK_COMPILER_FEATURES): Add -Werror to
tests for compiler features.
* aclocal.m4: Regenerate.
* configure: Regenerate.

* config/c_io_libio.cc: Remove fcntl.h include, as SEEK_SET
redefined.
* libio/libioP.h: Comment out fcntl.h include.

* shadow/math.h: Add in float and long declarations, as per ISO C9X.

* bits/c++config: Define _ISOC99_SOURCE.

* acinclude.m4 (GLIBCPP_ENABLE_SHADOW): Add -fno-builtins to
CSHADOWFLAGS, as well as _ISOC99_SOURCE.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* src/Makefile.am (CSHADOW_INCLUDES): Enable, again.
(CSHADOW_INCLUDES): Add -I$(top_srcdir)/std before shadow include dir.
(CXXCOMPILE): Remove $(DEFS), which searches $(top_srcdir) before
std or shadow directories.
(LTCXXCOMPILE): Same.
(INCLUDES): Add $(top_builddir) before $(top_srcdir).
(AC_CXXFLAGS): Add CSHADOWFLAGS.
* src/Makefile.in: Regenerate.

* src/complex.cc (FCT): Change ::name to name.
* src/complexl.cc (FCT): Same. Use _GLIBCPP_USE_LONG_LONG here.
* src/complexf.cc (FCT): Same.

* src/complexf.cc: Remove FCT define, as things are properly
overloaded in the std namespace with the shadow headers.
* src/complexl.cc: Same.
* src/complex.cc: Same.

From-SVN: r36706

23 years agoconfigure.in (ia64-linux): Add ia64/t-glibc.
Richard Henderson [Wed, 4 Oct 2000 03:08:50 +0000 (20:08 -0700)]
configure.in (ia64-linux): Add ia64/t-glibc.

* configure.in (ia64-linux) [tmake_file]: Add ia64/t-glibc.
* config/ia64/crtbegin.asm (__EH_FRAME_BEGIN__): Remove.
(segrel_ofs): Remove.
(__ia64_app_header): New.
(frame_object): Remove.
(.init): Set __ia64_app_header when non-shared.
(__do_global_dtors_aux): Do not call __deregister_frame_info.
(__do_frame_setup): Remove.
* config/ia64/crtend.asm (__EH_FRAME_END__): Remove.
(__do_frame_setup_aux): Remove.
* config/ia64/frame-ia64.c (object_mutex): Remove.
(bad_record): Remove.
(init_object_mutex): Remove.
(init_object_mutex_once): Remove.
(fde_compare): Remove.
(__register_frame_info_aux): Remove.
(frame_init): Remove.
(find_fde): Remove.
(*): Use ISO function definitions.
(P3_record_types): Constify.
(P7_record_types, P7_additional_fields): Constify.
(P8_record_types, P8_additional_fields): Constify.
(read_P_record): Remove parenthesis warning.  Use structure
assignment instead of memcpy.
(execute_one_ia64_descriptor): Likewise.
(__build_ia64_frame_state): Use __ia64_find_fde.
(record_name, print_record, print_all_records): Remove.
* config/ia64/frame-ia64.h: New file.
* config/ia64/fde-glibc.c: New file.
* config/ia64/t-glibc: New file.

From-SVN: r36705

23 years agore GNATS gcj/307 (gcj allows boolean value to be returned for int method)
Tom Tromey [Tue, 3 Oct 2000 20:19:54 +0000 (20:19 +0000)]
re GNATS gcj/307 (gcj allows boolean value to be returned for int method)

Fix for PR gcj/307:
* parse.y (patch_binop): Use JNUMERIC_TYPE_P, not
JPRIMITIVE_TYPE_P, for arithmetic operators.
(patch_method_invocation): Indentation fix.
(try_builtin_assignconv): Handle boolean specially.  Fixed typo.
(valid_builtin_assignconv_identity_widening_p): Handle boolean.
(do_unary_numeric_promotion): Cleaned up code.
(valid_cast_to_p): Handle boolean correctly.

From-SVN: r36704

23 years agolex.c (java_read_unicode): Reset bs_count when finished with `\u' sequence.
Tom Tromey [Tue, 3 Oct 2000 19:10:44 +0000 (19:10 +0000)]
lex.c (java_read_unicode): Reset bs_count when finished with `\u' sequence.

* lex.c (java_read_unicode): Reset bs_count when finished with
`\u' sequence.

From-SVN: r36703

23 years agoUpdated ChangeLog to reflect patch credit
Tom Tromey [Tue, 3 Oct 2000 18:57:21 +0000 (18:57 +0000)]
Updated ChangeLog to reflect patch credit

From-SVN: r36702

23 years agomemtemp77.C (main): Update demangled function name for current C++ compiler.
Geoff Keating [Tue, 3 Oct 2000 17:30:35 +0000 (17:30 +0000)]
memtemp77.C (main): Update demangled function name for current C++ compiler.

* g++.old-deja/g++.pt/memtemp77.C (main): Update demangled
function name for current C++ compiler.
Patch from Kriang Lerdsuwanakij <lerdsuwa@scf.usc.edu>.

From-SVN: r36701

23 years agoDaily bump.
Jeff Law [Tue, 3 Oct 2000 07:45:08 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r36700

23 years agortlanal.c (single_set_1): Do not require USE and CLOBBERs to come last.
Jan Hubicka [Tue, 3 Oct 2000 07:26:42 +0000 (07:26 +0000)]
rtlanal.c (single_set_1): Do not require USE and CLOBBERs to come last.

* rtlanal.c (single_set_1): Do not require USE and CLOBBERs
to come last.

From-SVN: r36699

23 years agofloat-c4x.h: New.
Michael Hayes [Tue, 3 Oct 2000 01:08:45 +0000 (01:08 +0000)]
float-c4x.h: New.

* config/float-c4x.h: New.
* configure.in (c4x-*): Set float_format to c4x.
* configure: Regenerate.

From-SVN: r36698

23 years agoconfigure.in (sparc-*-solaris2*): Disable 32-to-64 cross compilation for solaris...
Kaveh R. Ghazi [Tue, 3 Oct 2000 00:49:41 +0000 (00:49 +0000)]
configure.in (sparc-*-solaris2*): Disable 32-to-64 cross compilation for solaris versions 2.7 and greater.

* configure.in (sparc-*-solaris2*): Disable 32-to-64 cross
compilation for solaris versions 2.7 and greater.

From-SVN: r36696

23 years agofreebsd.h (NO_PROFILE_COUNTERS): Define.
David O'Brien [Mon, 2 Oct 2000 21:53:53 +0000 (21:53 +0000)]
freebsd.h (NO_PROFILE_COUNTERS): Define.

2000-10-02  David O'Brien  <obrien@dragon.nuxi.com>
* config/i386/freebsd.h (NO_PROFILE_COUNTERS): Define.

Approved by:  Richard Henderson <rth@cygnus.com>
              <20001002132531.A16477@cygnus.com>

From-SVN: r36694

23 years agoMon Oct 2 10:20:13 CEST 2000 Marc Espie <espie@openbsd.org>
Marc Espie [Mon, 2 Oct 2000 08:21:35 +0000 (08:21 +0000)]
Mon Oct  2 10:20:13 CEST 2000 Marc Espie <espie@openbsd.org>

* config/alpha.h (WORD_SWITCH_TAKES_ARG): add -rpath to default,
instead of redefining from scratch.

From-SVN: r36693

23 years agoDaily bump.
Jeff Law [Mon, 2 Oct 2000 07:45:07 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r36692

23 years agogenix.h: Remove.
Mark Mitchell [Mon, 2 Oct 2000 06:50:52 +0000 (06:50 +0000)]
genix.h: Remove.

* config/ns32k/genix.h: Remove.
* config/ns32k/x-genix: Likewise.
* config/ns32k/xm-genix.h: Likewise.
* config/fx80: Remove all filee in directory.
* config/pyr: Likewise.
* config/tahoe: Likewise.
* config/gmicro: Likewise.
* config/spur: Likewise.
* configure.in: Remove configury bits for above targets.
* configure: Regenerated.

From-SVN: r36691

23 years agoconfigure.in: Don't configure chill by default.
Mark Mitchell [Mon, 2 Oct 2000 06:41:01 +0000 (06:41 +0000)]
configure.in: Don't configure chill by default.

* configure.in: Don't configure chill by default.
* configure: Regenerated.

From-SVN: r36690

23 years agoupdate
Bryce McKinlay [Mon, 2 Oct 2000 05:14:52 +0000 (06:14 +0100)]
update

From-SVN: r36689

23 years agoprims.cc (_Jv_argv, _Jv_argc): New fields.
Bryce McKinlay [Mon, 2 Oct 2000 05:14:25 +0000 (06:14 +0100)]
prims.cc (_Jv_argv, _Jv_argc): New fields.

2000-10-02  Bryce McKinlay  <bryce@albatross.co.nz>

* prims.cc (_Jv_argv, _Jv_argc): New fields.
(JvRunMain): Set _Jv_argv and _Jv_argc.
* java/awt/Component.java: Minor fixes.
* java/awt/Image.java (UndefinedProperty): Initialize final field.
* java/awt/Toolkit.java (systemEventQueue): Removed.
(getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
* java/awt/Window.java (getToolkit): Don't call super.
* java/awt/image/BufferedImage.java: Fix definate assignment errors.
* java/awt/peer/ContainerPeer.java (insets): Remove unused method.
* gnu/awt/gtk/GtkComponentPeer.java: New file.
* gnu/awt/gtk/GtkContainerPeer.java: New file.
* gnu/awt/gtk/GtkFramePeer.java: New file.
* gnu/awt/gtk/GtkMainThread.java: New file.
* gnu/awt/gtk/GtkToolkit.java: New file.
* gnu/awt/gtk/GtkWindowPeer.java: New file.
* gnu/awt/gtk/gtkcommon.cc: New file.
* gnu/awt/gtk/gtkcommon.h: New file.
* gnu/awt/gtk/natGtkComponentPeer.cc: New file.
* gnu/awt/gtk/natGtkContainerPeer.cc: New file.
* gnu/awt/gtk/natGtkFramePeer.cc: New file.
* gnu/awt/gtk/natGtkMainThread.cc: New file.
* gnu/awt/gtk/natGtkToolkit.cc: New file.
* gnu/awt/gtk/natGtkWindowPeer.cc: New file.

From-SVN: r36688

23 years agoc-decl.c (c_expand_body): Don't generate RTL if flag_syntax_only.
Mark Mitchell [Sun, 1 Oct 2000 19:19:30 +0000 (19:19 +0000)]
c-decl.c (c_expand_body): Don't generate RTL if flag_syntax_only.

* c-decl.c (c_expand_body): Don't generate RTL if flag_syntax_only.
(lang_mark_false_label_stack): Remove.
* c-lex.c (init_c_lex): Add file_info_tree as GC root.  Allocate
<top level> string in GC area.
(mark_splay_tree_node): New function.
(mark_splay_tree): Likewise.
* except.c (mark_eh_status): Only call lang_mark_false_label_stack
if it exists.
* ggc-callbacks.c (lang_mark_false_label_stack): Remove.
* ggc-common.c (lang_mark_false_label_stack): Change type.
* ggc.h (ggc_alloc_string): Add comment.
(ggc_strdup): New function.

* decl.c (lang_mark_false_label_stack): Remove.
* lex.c (cp_mang_lang_type): Use ggc_alloc_cleared.

* com.c (lang_mark_false_label_stack): Remove.

Convert to GC.
* Make-lang.in (s-java): Don't depend on ggc-callbacks.o.
* Makefile.in (BACKEND): Don't include ggc-callbacks.o.
(typeck.o): Depend on ggc.h.
* class.c (add_method_1): Use GC functions for allocation.
(init_class_processing): Register roots.
* decl.c (ggc_p): Set to 1.
(pending_local_decls): Make it static.
(push_jvm_slot): Use GC functions for allocation.
(init_decl_processing): Register roots.
(give_name_to_locals): Use GC functions for allocation.
(lang_mark_tree): New function.
* java-tree.h (MAYBE_CREATE_TYPE_TYPE_LANG_SPECIFIC): Use GC
functions for allocation.
* jcf-parse.c (jcf_parse_source): Use ggc_strdup.
* lex.c (java_lex): Use build_string, rather than replicating it
inline.
* parse.y (goal): Add more roots.
(mark_parser_ctxt): New function.
* typeck.c: Include ggc.h.

* splay-tree.c (splay_tree_insert): Fix formatting.

From-SVN: r36687

23 years agoavr.h (BRANCH_COST): Define as 0.
Denis Chertykov [Sun, 1 Oct 2000 15:29:06 +0000 (15:29 +0000)]
avr.h (BRANCH_COST): Define as 0.

* config/avr/avr.h (BRANCH_COST): Define as 0.

* config/pdp11/pdp11.c: #include "tree.h" added.

From-SVN: r36686

23 years agoavr.c (ashlhi3_out, [...]): Optimize more cases with known shift count.
Marek Michalkiewicz [Sun, 1 Oct 2000 14:59:35 +0000 (16:59 +0200)]
avr.c (ashlhi3_out, [...]): Optimize more cases with known shift count.

* config/avr/avr.c (ashlhi3_out, ashlsi3_out, ashrhi3_out,
ashrsi3_out, lshrhi3_out, lshrsi3_out): Optimize more cases
with known shift count.
* config/avr/avr.md (ashlsi3, ashrsi3, lshrsi3):
New alternative for shift count 2 with no scratch register.
(ashlhi3, ashlsi3): Change "cc" attribute from "clobber" to
"set_n" for shift counts 1 and 2.

From-SVN: r36685

23 years agoDaily bump.
Jeff Law [Sun, 1 Oct 2000 07:45:08 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r36684

23 years agors6000.md (movsi_to_cr): Remove the USE.
Geoff Keating [Sun, 1 Oct 2000 05:29:14 +0000 (05:29 +0000)]
rs6000.md (movsi_to_cr): Remove the USE.

* config/rs6000/rs6000.md (movsi_to_cr): Remove the USE.  Calculate
the mask value from the individual SET operations.
(return_internal_si): Move the USE after the RETURN.
(return_internal_di): Likewise.
(return_and_restore_fpregs_si): Likewise.
(return_and_restore_fpregs_di): Likewise.
(return_eh_si): Likewise.
(return_eh_di): Likewise.
* config/rs6000/rs6000.c (mtcrf_operation): Don't look for,
or check, the USE.
(rs6000_emit_prologue): Don't emit the USE for movsi_to_cr.
Don't generate a PARALLEL around a single operation movsi_to_cr.
Generate the RETURN first in any PARALLELs.

* rtlanal.c (single_set_1): Use fatal_insn to display the
invalid insn.  Check for more cases when a USE or CLOBBER occurs
before a SET.
* Makefile.in: Update dependencies for rtlanal.o.

From-SVN: r36683

23 years agoNew test
Zack Weinberg [Sun, 1 Oct 2000 01:24:02 +0000 (01:24 +0000)]
New test

From-SVN: r36682

23 years agoposix-threads.cc (_Jv_CondWait): Check to see if we are interrupted before modifying...
Tom Tromey [Sat, 30 Sep 2000 10:01:04 +0000 (10:01 +0000)]
posix-threads.cc (_Jv_CondWait): Check to see if we are interrupted before modifying the cv's wait set.

2000-09-30  Tom Tromey  <tromey@cygnus.com>

        * posix-threads.cc (_Jv_CondWait): Check to see if we are
        interrupted before modifying the cv's wait set.

From-SVN: r36680

23 years agoImplement bitmap descriptor based marking for Boehm GC.
Hans Boehm [Sat, 30 Sep 2000 09:56:58 +0000 (09:56 +0000)]
Implement bitmap descriptor based marking for Boehm GC.

2000-09-30  Hans Boehm  <boehm@acm.org>
    Bryce McKinlay  <bryce@albatross.co.nz>

Implement bitmap descriptor based marking for Boehm GC.

* configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
* configure: Rebuilt.
* libgcj.spec.in: Pass JC1GCSPEC to jc1.
* include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
method get_finalizer().
(struct _Jv_ArrayVTable): Ditto. Declare method array with
NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
(_Jv_AllocObj): Add new jclass parameter.
(_Jv_AllocArray): Ditto.
(_Jv_BuildGCDescr): New prototype.
* prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
`klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
get_finalizer() instead of direct finalizer vtable offset.
(_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
`klass' to _Jv_AllocArray. Don't set the new array's vtable.
(_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj.
Pass `klass' to _Jv_AllocObj. Don't set the new array's vtable.
* resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
(_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
(_Jv_DetermineVTableIndex): Ditto.
(_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
calculations to account for new gc_descr field.
* boehm.cc: #include gc_gcj.h.
(obj_kind_x, obj_free_list): `#if 0'-ed away.
(_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
New commentary from HB. Mark the classes vtable.
(_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
(GC_DEFAULT_DESCR): New #define.
(_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
(_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
(_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
scan conservativly if size is less than min_heap_addr. Set vtable
pointer of new object before returning.
(_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
(_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
allocation for obj_kind_x.
* nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
(_Jv_AllocObj): Set vtable on returned object.
(_Jv_AllocArray): Ditto.
* java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
(_Jv_NewPrimArray): Ditto.
(_Jv_AllocObj): Declare as a friend.
(_Jv_AllocArray): Ditto.
* java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
from &ObjectClass into new array class. Remove offset-by-one
adjustments from `method' size calculations to account for gc_descr
field.

Co-Authored-By: Bryce McKinlay <bryce@albatross.co.nz>
From-SVN: r36679

23 years agoconfigure.in: Define GC_GCJ_SUPPORT.
Bryce McKinlay [Sat, 30 Sep 2000 09:54:21 +0000 (09:54 +0000)]
configure.in: Define GC_GCJ_SUPPORT.

2000-09-30  Bryce McKinlay  <bryce@albatross.co.nz>

* configure.in: Define GC_GCJ_SUPPORT. Define NO_DEBUGGING in
cross-compile configuration only.
* Makefile.am: Build gcj_mlc.c.
* configure, Makefile.in: Rebuilt.

From-SVN: r36678

23 years ago* i386.c: Move include of "config.h" to before that of <setjmp.h>.
Joseph Myers [Sat, 30 Sep 2000 08:05:55 +0000 (09:05 +0100)]
* i386.c: Move include of "config.h" to before that of <setjmp.h>.

From-SVN: r36677

23 years agoc-tree.texi, [...]: Consistently use @email for formatting email addresses.
Joseph Myers [Sat, 30 Sep 2000 08:04:01 +0000 (09:04 +0100)]
c-tree.texi, [...]: Consistently use @email for formatting email addresses.

* c-tree.texi, contrib.texi, gcc.texi, install.texi, invoke.texi:
Consistently use @email for formatting email addresses.

cp:
* gxxint.texi: Use @email for formatting email addresses.

From-SVN: r36676

23 years agoDaily bump.
Jeff Law [Sat, 30 Sep 2000 07:45:07 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r36675

23 years agoMakefile.in (DEVO_SUPPORT): Added gettext.m4, libtool.m4, ltcf-c.sh, ltcf-cxx.sh...
Alexandre Oliva [Sat, 30 Sep 2000 06:20:24 +0000 (06:20 +0000)]
Makefile.in (DEVO_SUPPORT): Added gettext.m4, libtool.m4, ltcf-c.sh, ltcf-cxx.sh and ltcf-gcj.sh.

* Makefile.in (DEVO_SUPPORT): Added gettext.m4, libtool.m4,
ltcf-c.sh, ltcf-cxx.sh and ltcf-gcj.sh.

From-SVN: r36674