platform/upstream/gcc.git
23 years agoalpha.md (movtf_internal): Use reg_overlap_mentioned_p instead of rtx_equal_p for...
Jeff Knaggs [Fri, 25 May 2001 20:07:18 +0000 (20:07 +0000)]
alpha.md (movtf_internal): Use reg_overlap_mentioned_p instead of rtx_equal_p for early clobber test.

        * config/alpha/alpha.md (movtf_internal): Use reg_overlap_mentioned_p
        instead of rtx_equal_p for early clobber test.

From-SVN: r42585

23 years agobuiltins.def: Encode additional information, such as names and types, here.
Mark Mitchell [Fri, 25 May 2001 20:00:59 +0000 (20:00 +0000)]
builtins.def: Encode additional information, such as names and types, here.

* builtins.def: Encode additional information, such as names and
types, here.
* builtin-types.def: New file.
* builtins.c (built_in_names): Adjust use of DEF_BUILTIN.
(built_in_decls): Likewise.  Don't explicitly initialize global
data to NULL.
(expand_builtin_mathfn): Handle float and long double variants of
math builtins.
(expand_builtin): Likewise.
* c-common.c (c_common_nodes_and_builtins): Make it table-driven.
(expand_tree_builtin): Handle long, long long, float, and long
double variants of math functions.
* c-common.h (c_tree_index): Remove some unused nodes.
(void_ftype): Remove.
(void_type_ptr): Likewise.
(int_ftype_int): Likewise.
(ptr_ftype_sizetype): Likewise.
* c-decl.c (init_decl_processing): Remove creation of DWARF
builtins.
* defaults.h (MD_INIT_BUILTINS): Provide default definition.
* tree.h (built_in_function): Adjust definition of DEF_BUILTIN.
* Makefile.in (c-common.o): Depend on builtin-types.def.

* decl.c (init_decl_processing): Tweak.

From-SVN: r42583

23 years agot-darwin: Fix dependencies for darwin.o.
Dale Johannesen [Fri, 25 May 2001 19:50:50 +0000 (19:50 +0000)]
t-darwin: Fix dependencies for darwin.o.

2001-05-25  Dale Johannesen  <dalej@apple.com>

        * config/rs6000/t-darwin: Fix dependencies for darwin.o.

From-SVN: r42582

23 years ago* c-parse.in (notype_initdcl): Remove redundant line.
Neil Booth [Fri, 25 May 2001 19:44:20 +0000 (19:44 +0000)]
* c-parse.in (notype_initdcl): Remove redundant line.

From-SVN: r42581

23 years ago20010518-2.c: New file.
Diego Novillo [Fri, 25 May 2001 19:38:52 +0000 (19:38 +0000)]
20010518-2.c: New file.

2001-05-25  Diego Novillo  <dnovillo@redhat.com>

* gcc.c-torture/compile/20010518-2.c: New file.
* gcc.c-torture/execute/20010518-1.c: New file.
* gcc.c-torture/execute/20010518-2.c: New file.

From-SVN: r42580

23 years agoaclocal.m4: Fixed typo.
Rainer Orth [Fri, 25 May 2001 19:30:11 +0000 (19:30 +0000)]
aclocal.m4: Fixed typo.

        * aclocal.m4: Fixed typo.
        (gcc_AC_HEADER_STDBOOL): Define.
        (gcc_AC_C__BOOL): Define.
        * configure.in: Use them.
        (AC_CHECK_HEADERS): Remove stdbool.h
        * configure, config.in: Regenerate.

From-SVN: r42578

23 years agofunction.c (expand_function_start): Don't abort on PARALLEL returns from hard_functio...
Richard Henderson [Fri, 25 May 2001 19:05:24 +0000 (12:05 -0700)]
function.c (expand_function_start): Don't abort on PARALLEL returns from hard_function_value.

        * function.c (expand_function_start): Don't abort on PARALLEL
        returns from hard_function_value.

From-SVN: r42577

23 years agoi386.md: Revert previous change.
Richard Henderson [Fri, 25 May 2001 18:17:40 +0000 (11:17 -0700)]
i386.md: Revert previous change.

        * config/i386/i386.md: Revert previous change.  Do not apply
        the peephole if the components do not die after the sequence.

From-SVN: r42576

23 years agoc-parse.in (array_declarator): New.
Joseph Myers [Fri, 25 May 2001 11:12:47 +0000 (12:12 +0100)]
c-parse.in (array_declarator): New.

* c-parse.in (array_declarator): New.  Handle C99 constructs.
Don't restrict [*] declarators to C only.
(after_type_declarator, parm_declarator_starttypename,
parm_declarator_nostarttypename, notype_declarator,
direct_absdcl1): Use it.
* c-decl.c (build_array_declarator, set_array_declarator_type):
New functions.  Warn that [*] isn't properly implemented; pedwarn
for [*] outside C99 mode if pedantic rather than giving a hard
error.
(grokdeclarator): Handle static and type qualifiers in parameter
array declarators.
* c-tree.h (build_array_declarator, set_array_declarator_type):
Declare.
* extend.texi (Attribute Syntax): Document attributes in parameter
array declarators.

testsuite:
* gcc.dg/c90-arraydecl-1.c, gcc.dg/c99-arraydecl-1.c: New tests.

From-SVN: r42574

23 years agoNew test
Mark Mitchell [Fri, 25 May 2001 09:16:08 +0000 (09:16 +0000)]
New test

From-SVN: r42570

23 years agoi386.md: Make sure cmpstr peepholes do not affect liveness information.
Mark Mitchell [Fri, 25 May 2001 09:09:17 +0000 (09:09 +0000)]
i386.md: Make sure cmpstr peepholes do not affect liveness information.

* config/i386/i386.md: Make sure cmpstr peepholes do not
affect liveness information.

From-SVN: r42568

23 years agoDaily bump.
GCC Administrator [Fri, 25 May 2001 07:16:41 +0000 (07:16 +0000)]
Daily bump.

From-SVN: r42566

23 years agoinit.c (__objc_send_message_in_list): When setting a new entry in __objc_load_methods...
Ovidiu Predescu [Fri, 25 May 2001 07:14:10 +0000 (07:14 +0000)]
init.c (__objc_send_message_in_list): When setting a new entry in __objc_load_methods use the method name as key...

2001-05-25  Ovidiu Predescu  <ovidiu@cup.hp.com>

* init.c (__objc_send_message_in_list): When setting a new entry
in __objc_load_methods use the method name as key, not the method
IMP (reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).

From-SVN: r42562

23 years ago(__objc_send_message_in_list): When setting a new entry in __objc_load_methods use...
Ovidiu Predescu [Fri, 25 May 2001 07:12:17 +0000 (07:12 +0000)]
(__objc_send_message_in_list): When setting a new entry in __objc_load_methods use the method name as key...

(__objc_send_message_in_list): When setting a new entry in
__objc_load_methods use the method name as key, not the method IMP
(reported by Richard Frith-Macdonald <richard@brainstorm.co.uk>).

From-SVN: r42561

23 years agoc-typeck.c (digest_init): Issue error messages about invalid constants, not warnings.
Mark Mitchell [Fri, 25 May 2001 06:34:16 +0000 (06:34 +0000)]
c-typeck.c (digest_init): Issue error messages about invalid constants, not warnings.

* c-typeck.c (digest_init): Issue error messages about
invalid constants, not warnings.

From-SVN: r42560

23 years agoinserters_extractors.cc (test09): New test.
Benjamin Kosnik [Fri, 25 May 2001 04:24:12 +0000 (04:24 +0000)]
inserters_extractors.cc (test09): New test.

2001-05-24  Benjamin Kosnik  <bkoz@redhat.com>

libstdc++/2830
* testsuite/21_strings/inserters_extractors.cc (test09): New test.
* include/bits/ostream.tcc: Format to match istream.tcc.
(operator<<(basic_ostream __out, const basic_string __s)): Fix.

From-SVN: r42557

23 years agoeh_alloc.cc (__cxa_allocate_exception): Qualify malloc with std:: .
Phil Edwards [Fri, 25 May 2001 02:10:55 +0000 (02:10 +0000)]
eh_alloc.cc (__cxa_allocate_exception): Qualify malloc with std:: .

2001-05-24  Phil Edwards  <pme@sources.redhat.com>

* libsupc++/eh_alloc.cc (__cxa_allocate_exception):  Qualify
malloc with std:: .
(__cxa_free_exception):  Likewise with free.

From-SVN: r42556

23 years agostd_cstring.h: #define away all global functions we will redeclare in namespace ...
Mark Mitchell [Fri, 25 May 2001 01:33:21 +0000 (01:33 +0000)]
std_cstring.h: #define away all global functions we will redeclare in namespace `std'.

* include/c_std/bin/std_cstring.h: #define away all global
functions we will redeclare in namespace `std'.
* libsupc++/eh_alloc.cc (__cxa_allocate_exception): Use
std::memset, instead of memset.
* testsuite/19_diagnostics/stdexceptions.cc: Use `std::strcmp',
not plain `strcmp'.
* testsuite/21_strings/c_strings.cc: Use `std::strcpy' instead of
plain `strcpy'.

From-SVN: r42555

23 years agoG++ no longer defines builtins that do not begin with __builtin.
Mark Mitchell [Fri, 25 May 2001 01:30:57 +0000 (01:30 +0000)]
G++ no longer defines builtins that do not begin with __builtin.

* g++.old-deja/g++.abi/bitfields.C: Update accordingly.
* g++.old-deja/g++.brendand/misc13.C: Likewise.
* g++.old-deja/g++.law/builtin1.C: Likewise.
* g++.old-deja/g++.law/cvt2.C: Likewise.
* g++.old-deja/g++.mike/net5.C: Likewise.
* g++.old-deja/g++.other/builtins1.C: Likewise.
* g++.old-deja/g++.other/builtins2.C: Likewise.
* g++.old-deja/g++.other/builtins3.C: Likewise.
* g++.old-deja/g++.other/builtins4.C: Likewise.
* g++.old-deja/g++.other/inline8.C: Likewise.
* g++.old-deja/g++.robertl/eb39.C: Likewise.

From-SVN: r42554

23 years agoinvoke.texi (-fno-builtin): Document that this is always on in C++.
Mark Mitchell [Fri, 25 May 2001 01:27:08 +0000 (01:27 +0000)]
invoke.texi (-fno-builtin): Document that this is always on in C++.

* invoke.texi (-fno-builtin): Document that this is always on
in C++.

* decl.c (duplicate_decls): Tidy.
(init_decl_processing): Always set flag_no_builtin.

From-SVN: r42553

23 years agobasic_ios.tcc: Small tweak.
Benjamin Kosnik [Thu, 24 May 2001 23:09:53 +0000 (23:09 +0000)]
basic_ios.tcc: Small tweak.

2001-05-24  Benjamin Kosnik  <bkoz@redhat.com>

libstdc++/2832
* include/bits/basic_ios.tcc: Small tweak.
* include/bits/std_fstream.h (ifstream): Add buffer member. Adjust
ctors and dtors, and rdbuf settings.
(ofstream): Same.
(fstream): Same.
* include/bits/std_sstream.h: Same, but for stringstream classes.
* testsuite/27_io/ostringstream_members.cc: New.
* testsuite/27_io/stringstream_members.cc: New.
* testsuite/27_io/fstream_members.cc: New.
* testsuite/27_io/ifstream_members.cc: Add test.
* testsuite/27_io/istringstream_members.cc: Add test.
* testsuite/27_io/ofstream_members.cc: Add test.

From-SVN: r42547

23 years agoinstall.texi (arm*-*-linux-gnu): Say that binutils 2.10 is required.
Phil Blundell [Thu, 24 May 2001 21:16:41 +0000 (21:16 +0000)]
install.texi (arm*-*-linux-gnu): Say that binutils 2.10 is required.

2001-05-24  Philip Blundell  <philb@gnu.org>

* doc/install.texi (arm*-*-linux-gnu): Say that binutils 2.10 is
required.

From-SVN: r42546

23 years agoinstall.texi (arm*-*-linux-gnu): Say that binutils 2.10 is required.
Phil Blundell [Thu, 24 May 2001 21:16:36 +0000 (21:16 +0000)]
install.texi (arm*-*-linux-gnu): Say that binutils 2.10 is required.

2001-05-24  Philip Blundell  <philb@gnu.org>

* doc/install.texi (arm*-*-linux-gnu): Say that binutils 2.10 is
required.

[[Split portion of a mixed commit.]]

From-SVN: r42545.2

23 years agoarm.c (output_return_instruction): Correctly handle interworking and interrupt functions.
Philip Blundell [Thu, 24 May 2001 21:09:05 +0000 (21:09 +0000)]
arm.c (output_return_instruction): Correctly handle interworking and interrupt functions.

2001-05-24  Philip Blundell  <philb@gnu.org>

* config/arm/arm.c (output_return_instruction): Correctly handle
interworking and interrupt functions.

From-SVN: r42543

23 years agoarm.h (TARGET_SWITCHES): Correct misleading help for -m{no-}sched-prolog.
Phil Blundell [Thu, 24 May 2001 21:06:36 +0000 (21:06 +0000)]
arm.h (TARGET_SWITCHES): Correct misleading help for -m{no-}sched-prolog.

2001-05-24  Philip Blundell  <philb@gnu.org>

* config/arm/arm.h (TARGET_SWITCHES): Correct misleading help for
-m{no-}sched-prolog.  Fix typos and improve formatting.

From-SVN: r42542

23 years agoarm.h (TARGET_SWITCHES): Correct misleading help for -m{no-}sched-prolog.
Phil Blundell [Thu, 24 May 2001 21:06:35 +0000 (21:06 +0000)]
arm.h (TARGET_SWITCHES): Correct misleading help for -m{no-}sched-prolog.

2001-05-24  Philip Blundell  <philb@gnu.org>

* config/arm/arm.h (TARGET_SWITCHES): Correct misleading help for
-m{no-}sched-prolog.  Fix typos and improve formatting.

[[Split portion of a mixed commit.]]

From-SVN: r42541.2

23 years agoinvoke.texi (ARM Options): Improve wording slightly.
Philip Blundell [Thu, 24 May 2001 20:54:59 +0000 (20:54 +0000)]
invoke.texi (ARM Options): Improve wording slightly.

2001-05-24  Philip Blundell  <philb@gnu.org>

* invoke.texi (ARM Options): Improve wording slightly.  Add
documentation for more options, including those for Thumb mode.
Don't mention options that don't exist or are unimplemented.
(Thumb Options): Delete; merged into above section.

From-SVN: r42539

23 years agoc++config (__NO_MATH_INLINES): Move to...
Gabriel Dos Reis [Thu, 24 May 2001 20:51:33 +0000 (20:51 +0000)]
c++config (__NO_MATH_INLINES): Move to...

      * include/bits/c++config(__NO_MATH_INLINES): Move to...
      * config/os/gnu-linux/bits/os_defines.h: ...here.

From-SVN: r42538

23 years agolinux.h (SIGNAL_FRAMESIZE): Define.
Geoffrey Keating [Thu, 24 May 2001 20:15:13 +0000 (20:15 +0000)]
linux.h (SIGNAL_FRAMESIZE): Define.

* config/rs6000/linux.h (SIGNAL_FRAMESIZE): Define.
(MD_FALLBACK_FRAME_STATE_FOR): Use it.

From-SVN: r42534

23 years agoc++config (__NO_MATH_INLINES): New macro.
Gabriel Dos Reis [Thu, 24 May 2001 18:38:20 +0000 (18:38 +0000)]
c++config (__NO_MATH_INLINES): New macro.

      * include/bits/c++config (__NO_MATH_INLINES): New macro.
      * testsuite/26_numerics/fabs_inline.cc (main): New test.

From-SVN: r42533

23 years agonatString.cc (init): Throw ArrayIndexOutOfBoundsException.
Tom Tromey [Thu, 24 May 2001 18:06:03 +0000 (18:06 +0000)]
natString.cc (init): Throw ArrayIndexOutOfBoundsException.

* java/lang/natString.cc (init): Throw
ArrayIndexOutOfBoundsException.
(getChars): Likewise.
(getBytes): Likewise.
(valueOf): Likewise.

From-SVN: r42531

23 years agoconfigure.in: Only allow hash synchronization when POSIX threads are enabled.
Tom Tromey [Thu, 24 May 2001 18:03:47 +0000 (18:03 +0000)]
configure.in: Only allow hash synchronization when POSIX threads are enabled.

* configure.in: Only allow hash synchronization when POSIX threads
are enabled.
* java/lang/natObject.cc (alloc_heavy): Properly find `init' field
of sync info object.

From-SVN: r42530

23 years agosimplify-rtx.c (simplify_subreg): Fix CONCAT simplification; fix hard register simpli...
Jan Hubicka [Thu, 24 May 2001 17:48:42 +0000 (19:48 +0200)]
simplify-rtx.c (simplify_subreg): Fix CONCAT simplification; fix hard register simplification.

* simplify-rtx.c (simplify_subreg): Fix CONCAT simplification;
fix hard register simplification.

From-SVN: r42529

23 years agosol2.h (CPLUSPLUS_CPP_SPEC): Add all of CPP_SPEC instead of just copying CPP_CPU_SPEC.
Rainer Orth [Thu, 24 May 2001 15:59:43 +0000 (15:59 +0000)]
sol2.h (CPLUSPLUS_CPP_SPEC): Add all of CPP_SPEC instead of just copying CPP_CPU_SPEC.

* sparc/sol2.h (CPLUSPLUS_CPP_SPEC): Add all of CPP_SPEC instead
of just copying CPP_CPU_SPEC.

From-SVN: r42528

23 years ago* i386.c (incdec_operand): Accept only 1 and -1.
Jan Hubicka [Thu, 24 May 2001 13:59:09 +0000 (15:59 +0200)]
* i386.c (incdec_operand): Accept only 1 and -1.

From-SVN: r42527

23 years agore PR c++/2184 (using declarations for classes in function templates)
Nathan Sidwell [Thu, 24 May 2001 12:00:52 +0000 (12:00 +0000)]
re PR c++/2184 (using declarations for classes in function templates)

cp:
PR c++/2184
* decl2.c (do_local_using_decl): Push the decls, even in a
template.
testsuite:
* g++.old-deja/g++.pt/using1.C: Adjust.
* g++.old-deja/g++.pt/using2.C: New test.

From-SVN: r42526

23 years agoMakefile.am: Override gctest_OBJECTS so tests/test.c can be built.
Bryce McKinlay [Thu, 24 May 2001 07:28:39 +0000 (07:28 +0000)]
Makefile.am: Override gctest_OBJECTS so tests/test.c can be built.

* Makefile.am: Override gctest_OBJECTS so tests/test.c can be built.
(libgcjgc_la_SOURCES): Remove typo.
* tests/test.c: Fix struct names and includes for GC_GCJ_SUPPORT case.
* Makefile.in: Rebuilt.

From-SVN: r42524

23 years agoDaily bump.
GCC Administrator [Thu, 24 May 2001 07:16:48 +0000 (07:16 +0000)]
Daily bump.

From-SVN: r42523

23 years agoMakefile.in: Rebuilt.
Tom Tromey [Thu, 24 May 2001 05:43:46 +0000 (05:43 +0000)]
Makefile.in: Rebuilt.

* Makefile.in: Rebuilt.
* Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.

From-SVN: r42521

23 years agoRevert patch of 2001-05-21:
Tom Tromey [Thu, 24 May 2001 05:41:53 +0000 (05:41 +0000)]
Revert patch of 2001-05-21:

* Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
(libgcj_la_LIBADD): Likewise.
(libgcjx_la_DEPENDENCIES): Removed x_nat_files.
(libgcjx_la_LIBADD): Likewise.

From-SVN: r42520

23 years ago[multiple changes]
Tom Tromey [Thu, 24 May 2001 05:40:37 +0000 (05:40 +0000)]
[multiple changes]

2001-05-23  Tom Tromey  <tromey@redhat.com>

* posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
* gcj/Makefile.in: Rebuilt.
* gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
* gcj/javaprims.h: Include gcj/libgcj-config.h.
* gcj/libgcj-config.h.in: New file.
* libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
* configure: Rebuilt.
* configure.in: Enable hash synchronization by default on some
platforms.
(HASH_SYNC_SPEC): New subst.
(AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
Correctly use `test -z' instead of `test -n' in a couple places.
(JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
LIBGCJ_CXXFLAGS.
* configure.host (enable_java_net_default): Initialize.
(enable_hash_synchronization_default): New variable.

2001-05-23  Hans Boehm <Hans_Boehm@hp.com>

* boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
synchronization in use.
(_Jv_MarkArray): Likewise.
(_Jv_AllocBytes): Don't check return result.
(handle_out_of_memory): New function.
(_Jv_InitGC): Set GC_oom_fn.
(trace_one_vtable): New global.
(_Jv_AllocTraceOne): New function.
* configure.in: Added --enable-hash-synchronization.
* defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
* nogc.cc (_Jv_AllocObj): Throw out-of-memory.
(_Jv_AllocArray): Likewise.
(_Jv_AllocBytes): Likewise.
(_Jv_AllocPtrFreeObject): New function.
(_Jv_AllocTraceOne): Likewise.
* posix-threads.cc (_Jv_ThreadRegister): Handle slow
pthread_self().
(self_cache): New global.
(_Jv_ThreadSelf_out_of_line): New function.
* prims.cc (_Jv_AllocBytesChecked): Removed.
(_Jv_ThrowNoMemory): New function.
(_Jv_AllocObject): Don't check for null return from allocator.
(_Jv_NewObjectArray): Likewise.
(_Jv_AllocPtrFreeObject): New function.
(_Jv_NewPrimArray): Allocate pointer-free object if possible.
* include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
(_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
* include/boehm-gc.h (_Jv_AllocObj): Define.
(_Jv_AllocPtrFreeObj): Define.
* include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
(_Jv_ThrowNoMemory): Declare.
(_Jv_AllocTraceOne): Declare.
(_Jv_AllocBytesChecked): Removed.
* include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
_Jv_MutexUnlock): Handle LOCK_DEBUG.
(_Jv_ThreadSelf): Handle case where system pthread_self() is
slow.
* java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
friend.
* java/lang/Object.h (sync_info): Conditional upon presence of
hash synchronization.
* java/lang/natObject.cc: Much new code to handle thin locks and
hash synchronization.
* java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
object if possible.

From-SVN: r42519

23 years agoThis is still broken. Do not use it yet
Bruce Korb [Thu, 24 May 2001 04:37:54 +0000 (04:37 +0000)]
This is still broken.  Do not use it yet

From-SVN: r42518

23 years agoMakefile.in: Move many of the *_H definitions eariler in the file...
Kelley Cook [Wed, 23 May 2001 22:58:41 +0000 (22:58 +0000)]
Makefile.in: Move many of the *_H definitions eariler in the file...

* Makefile.in: Move many of the *_H definitions eariler in the
file, so that rules in t-* files that use them for
dependencies will work in a parallel build.
* config/i386/t-cygwin (winnt.o): Depend on $(CONFIG_H).

From-SVN: r42516

23 years ago* integrate.c (expand_inline_function): Handle CONCAT DECL_RESULT.
Richard Henderson [Wed, 23 May 2001 22:53:54 +0000 (15:53 -0700)]
* integrate.c (expand_inline_function): Handle CONCAT DECL_RESULT.

From-SVN: r42515

23 years agocpp.texi: Update for handling of charconsts.
Neil Booth [Wed, 23 May 2001 22:50:28 +0000 (22:50 +0000)]
cpp.texi: Update for handling of charconsts.

* cpp.texi: Update for handling of charconsts.
* cpplex.c (maybe_read_ucs): Don't accept D800-DFFF.  Update
diagnostics.  Skip to the end if the UCS is too short.
(cpp_interpret_charconst): Long charconsts issue a warning
not an error.

* gcc.dg/cpp/charconst.c: New tests.
* gcc.dg/cpp/escape.c: New tests.
* gcc.dg/cpp/escape-1.c: New tests.
* gcc.dg/cpp/escape-2.c: New tests.
* gcc.dg/cpp/ucs.c: New tests.

From-SVN: r42514

23 years ago* doc/install.texi (alpha-linux): Require binutils 2.11.
Richard Henderson [Wed, 23 May 2001 21:33:30 +0000 (14:33 -0700)]
* doc/install.texi (alpha-linux): Require binutils 2.11.

From-SVN: r42513

23 years agolinkage.exp: Pass appropriate flags to native compiler for irix6.5.
David Billinghurst [Wed, 23 May 2001 19:53:00 +0000 (19:53 +0000)]
linkage.exp: Pass appropriate flags to native compiler for irix6.5.

* gcc.misc-tests/linkage.exp:  Pass appropriate flags to
native compiler for irix6.5.

From-SVN: r42511

23 years agoc-lex.c (read_escape, read_ucs): Delete.
Neil Booth [Wed, 23 May 2001 19:05:37 +0000 (19:05 +0000)]
c-lex.c (read_escape, read_ucs): Delete.

* c-lex.c (read_escape, read_ucs): Delete.
(lex_string): Use cpp_parse_escape.
* cpplex.c (read_ucs): Rename maybe_read_ucs.  Do nothing
if not C++ or not C99.  Warn if traditional.
(parse_escape): Rename cpp_parse_escape.  Make the bitmask
unsigned.  Warn for out-of-range escape sequences here.
Update to use maybe_read_ucs.
(cpp_interpret_charconst):  Don't warn here.
* cpplib.h (cpp_parse_escape): New exported function.

From-SVN: r42509

23 years agoextend.texi (Attribute Syntax): Clarify application of attributes to parameters decla...
Joseph Myers [Wed, 23 May 2001 18:44:13 +0000 (19:44 +0100)]
extend.texi (Attribute Syntax): Clarify application of attributes to parameters declared as functions or arrays.

* extend.texi (Attribute Syntax): Clarify application of
attributes to parameters declared as functions or arrays.

From-SVN: r42507

23 years agojv-scan.c (version): Update copyright year.
Joseph Myers [Wed, 23 May 2001 18:10:30 +0000 (19:10 +0100)]
jv-scan.c (version): Update copyright year.

gcc/java:
* jv-scan.c (version): Update copyright year.

libjava:
* gij.cc (version): Update copyright year.

From-SVN: r42505

23 years ago* dbxout.c (dbxout_type_methods): Do still group methods by name.
Jason Merrill [Wed, 23 May 2001 17:37:50 +0000 (13:37 -0400)]
* dbxout.c (dbxout_type_methods): Do still group methods by name.

From-SVN: r42504

23 years agoFix typo applying previous patch.
Anthony Green [Wed, 23 May 2001 17:24:49 +0000 (17:24 +0000)]
Fix typo applying previous patch.

From-SVN: r42503

23 years agoPOTFILES.in: Remove config/rs6000/xm-darwin.h and config/pa/pa-gas.h.
Zack Weinberg [Wed, 23 May 2001 17:22:19 +0000 (17:22 +0000)]
POTFILES.in: Remove config/rs6000/xm-darwin.h and config/pa/pa-gas.h.

* POTFILES.in: Remove config/rs6000/xm-darwin.h and
config/pa/pa-gas.h.

From-SVN: r42502

23 years agoMissed hunk from old GCJ_FOR_TARGET patch.
Anthony Green [Wed, 23 May 2001 17:19:40 +0000 (17:19 +0000)]
Missed hunk from old GCJ_FOR_TARGET patch.

From-SVN: r42501

23 years agodiagnostic.c (vnotice): Kill.
Zack Weinberg [Wed, 23 May 2001 17:15:07 +0000 (17:15 +0000)]
diagnostic.c (vnotice): Kill.

2001-05-23  Zack Weinberg  <zackw@stanford.edu>

* diagnostic.c (vnotice): Kill.
(fnotice): Call vfprintf directly.
(diagnostic_for_decl, output_do_verbatim, output_verbatim,
verbatim, set_diagnostic_context): Rename string argument to
indicate that it is run through gettext.
(vbuild_message_string, build_message_string, output_do_printf):
Rename string argument to indicate that it is NOT run through
gettext.
(output_printf, diagnostic_for_decl, fatal_io_error, sorry,
output_do_verbatim, set_diagnostic_context, fnotice, _fatal_insn):
Run msgid argument through gettext.
(default_print_error_function): Run constant strings through
gettext when nothing else will.
(fatal_error, internal_error, error_recursion): Use fnotice.
Present complete sentences to gettext.

From-SVN: r42498

23 years agoFix cross builds.
Anthony Green [Wed, 23 May 2001 17:13:27 +0000 (17:13 +0000)]
Fix cross builds.

From-SVN: r42497

23 years agoWed May 23 2001 Jeffrey D. Oldham <oldham@codesourcery.com>
Jeffrey D. Oldham [Wed, 23 May 2001 16:15:03 +0000 (16:15 +0000)]
Wed May 23 2001  Jeffrey D. Oldham  <oldham@codesourcery.com>

* lib/g++.exp (g++_include_flags): Use args to compute
  get_multilibs.
(g++_link_flags): Likewise.
(g++_init): Pass TOOL_OPTIONS as arguments to two above functions.

From-SVN: r42495

23 years ago* gcc_update (UPDATE_OPTIONS): Add -d to the default settings.
Gerald Pfeifer [Wed, 23 May 2001 12:15:03 +0000 (14:15 +0200)]
* gcc_update (UPDATE_OPTIONS): Add -d to the default settings.

From-SVN: r42493

23 years ago* jump.c (mark_jump_label): Fix thinko in 2001-05-19 change.
Mark Mitchell [Wed, 23 May 2001 07:56:45 +0000 (07:56 +0000)]
* jump.c (mark_jump_label): Fix thinko in 2001-05-19 change.

From-SVN: r42491

23 years agoDaily bump.
GCC Administrator [Wed, 23 May 2001 07:17:19 +0000 (07:17 +0000)]
Daily bump.

From-SVN: r42490

23 years agolibstdc++-v3-dg.exp (libstdc++-v3-init): Set ld_library_path.
Benjamin Kosnik [Wed, 23 May 2001 07:05:14 +0000 (07:05 +0000)]
libstdc++-v3-dg.exp (libstdc++-v3-init): Set ld_library_path.

2001-05-22  Benjamin Kosnik  <bkoz@redhat.com>

libstdc++/2841
* testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Set
ld_library_path.
(libstdc++-v3_set_ld_library_path): New, copied from g++.exp.
(libstdc++-v3-finish): Remove.
(libstdc++-v3_exit): Remove.

From-SVN: r42487

23 years agofunction.c (expand_function_start): Always use a pseudo for the function result value.
Richard Henderson [Wed, 23 May 2001 07:01:43 +0000 (00:01 -0700)]
function.c (expand_function_start): Always use a pseudo for the function result value.

        * function.c (expand_function_start): Always use a pseudo
        for the function result value.

From-SVN: r42486

23 years agoiris6.h (EH_FRAME_SECTION_ASM_OP): Give the section pointer alignment.
Richard Henderson [Wed, 23 May 2001 06:54:21 +0000 (23:54 -0700)]
iris6.h (EH_FRAME_SECTION_ASM_OP): Give the section pointer alignment.

        * config/mips/iris6.h (EH_FRAME_SECTION_ASM_OP): Give the
        section pointer alignment.

From-SVN: r42484

23 years ago* doc/install.texi (alpha-linux): Require binutils >= 2.10.
Richard Henderson [Wed, 23 May 2001 06:41:48 +0000 (23:41 -0700)]
* doc/install.texi (alpha-linux): Require binutils >= 2.10.

From-SVN: r42483

23 years agooptimize.c (initialize_inlined_parameters): Don't set TREE_READONLY for a VAR_DECL...
Mark Mitchell [Wed, 23 May 2001 02:14:51 +0000 (02:14 +0000)]
optimize.c (initialize_inlined_parameters): Don't set TREE_READONLY for a VAR_DECL taking the place of an inlined PARM_DECL.

* optimize.c (initialize_inlined_parameters): Don't set
TREE_READONLY for a VAR_DECL taking the place of an inlined
PARM_DECL.

From-SVN: r42480

23 years agodocumentation.html: Point to doxygen output.
Phil Edwards [Wed, 23 May 2001 02:00:05 +0000 (02:00 +0000)]
documentation.html: Point to doxygen output.

2001-05-22  Phil Edwards  <pme@sources.redhat.com>

* docs/html/documentation.html:  Point to doxygen output.

From-SVN: r42477

23 years agounwind-dw2-fde.c (__deregister_frame_info): Stringize use of __USER_LABEL_PREFIX__.
Richard Henderson [Wed, 23 May 2001 01:26:01 +0000 (18:26 -0700)]
unwind-dw2-fde.c (__deregister_frame_info): Stringize use of __USER_LABEL_PREFIX__.

        * unwind-dw2-fde.c (__deregister_frame_info): Stringize use
        of __USER_LABEL_PREFIX__.

From-SVN: r42475

23 years agounwind-dw2-fde.c (__deregister_frame_info): Stubbify in favour of...
Richard Henderson [Tue, 22 May 2001 23:01:33 +0000 (16:01 -0700)]
unwind-dw2-fde.c (__deregister_frame_info): Stubbify in favour of...

        * unwind-dw2-fde.c (__deregister_frame_info): Stubbify in favour of...
        (__deregister_frame_info_bases): New.
        * unwind-dw2-fde.h: Declare it.
        * libgcc-std.ver: Export it.
        * crtstuff.c (__do_global_dtors_aux): Call it if we would have
        called __register_frame_info_bases.

From-SVN: r42473

23 years agog77.texi: Update last-changed date.
Toon Moene [Tue, 22 May 2001 21:43:33 +0000 (23:43 +0200)]
g77.texi: Update last-changed date.

2001-05-22  Toon Moene  <toon@moene.indiv.nluug.nl>

* g77.texi: Update last-changed date.
* news.texi: Update copyright years, last-changed date.
* bugs.texi: Update copyright years, last-changed date.

From-SVN: r42471

23 years agofreebsd.h (FBSD_CPP_PREDEFINES): Use #endif/#if pair instead of #elif (which is OK...
Loren J. Rittle [Tue, 22 May 2001 21:33:36 +0000 (21:33 +0000)]
freebsd.h (FBSD_CPP_PREDEFINES): Use #endif/#if pair instead of #elif (which is OK for this case but not in general).

* config/freebsd.h (FBSD_CPP_PREDEFINES): Use #endif/#if pair
instead of #elif (which is OK for this case but not in general).

From-SVN: r42469

23 years agog77.texi: Update maintenance information for GNU Fortran.
Toon Moene [Tue, 22 May 2001 20:32:16 +0000 (22:32 +0200)]
g77.texi: Update maintenance information for GNU Fortran.

2001-05-22  Toon Moene  <toon@moene.indiv.nluug.nl>

* g77.texi: Update maintenance information for
GNU Fortran.  Remove all mention of -fdebug-kludge.
* news.texi: Make more news in 0.5.26 `user visible
changes'. Acknowledge work by important contributors.
* bugs.texi: Remove all mention of -fdebug-kludge.

From-SVN: r42468

23 years agobuiltins.c (expand_builtin_longjmp): A longjmp can be a call too.
Andrew MacLeod [Tue, 22 May 2001 20:04:58 +0000 (20:04 +0000)]
builtins.c (expand_builtin_longjmp): A longjmp can be a call too.

2001-05-22  Andrew MacLeod  <amacleod@redhat.com>

* builtins.c (expand_builtin_longjmp): A longjmp can be a call too.
* config/ia64/ia64.md (nonlocal_goto): Reverse label and frame pointer
parameters to __ia64_nonlocal_goto. Flag as NO_RETURN.
* config/ia64/ia64.c (ia64_expand_epilogue): Make sure we are issuing
"r2" to the assembly file. Only issue allocs with non-zero parameters.

From-SVN: r42467

23 years agoclass.c, [...]: Remove com_interface attribute support.
Jason Merrill [Tue, 22 May 2001 19:42:30 +0000 (15:42 -0400)]
class.c, [...]: Remove com_interface attribute support.

        * class.c, cp-tree.h, rtti.c: Remove com_interface attribute support.
        * tree.c (cp_valid_lang_attribute): Warn about use of com_interface
        attribute.

From-SVN: r42465

23 years agofreebsd.h (LIB_SPEC): Key the exact setting to configure-time options and target...
Loren J. Rittle [Tue, 22 May 2001 19:28:15 +0000 (19:28 +0000)]
freebsd.h (LIB_SPEC): Key the exact setting to configure-time options and target version of FreeBSD.

* config/freebsd.h (LIB_SPEC): Key the exact setting to
configure-time options and target version of FreeBSD.  Set-up
to match architectural change in threading support.  Correctly
report when -pthread option is not supported by configure-time
options.
(FBSD_CPP_PREDEFINES): Move from architecture-specific files
and extend to encode target version number in run-time setting
of __FreeBSD__ macro to match the system compiler.
(CPP_PREDEFINES): Likewise.
(PREFERRED_DEBUGGING_TYPE): Change to DWARF2_DEBUG.

* config/alpha/freebsd.h (CPP_PREDEFINES): Moved to common freebsd.h.
* config/i386/freebsd.h (CPP_PREDEFINES): Likewise.

Co-Authored-By: David O'Brien <obrien@freebsd.org>
From-SVN: r42464

23 years agoconfig.gcc (the unlabeled system switch statement): Add generic configuration section...
Loren J. Rittle [Tue, 22 May 2001 19:23:33 +0000 (19:23 +0000)]
config.gcc (the unlabeled system switch statement): Add generic configuration section to handle *-*-freebsd*.

* config.gcc (the unlabeled system switch statement): Add
generic configuration section to handle *-*-freebsd*.  Also,
to match the system compiler, default to threading support (it
may be disabled with the standard --disable-threads
configuration-time switch).
(i[34567]86-*-freebsd* in machine-specific section): Use it.
(alpha*-*-freebsd* in machine-specific section): Likewise.

* config/freebsd3.h: New file to expose FBSD_MAJOR macro (3).
* config/freebsd4.h: New file to expose FBSD_MAJOR macro (4).
* config/freebsd5.h: New file to expose FBSD_MAJOR macro (5).
* config/freebsd6.h: New file to expose FBSD_MAJOR macro (6).
* config/freebsd-nthr.h: New file to expose FBSD_NO_THREADS macro.

Co-Authored-By: David O'Brien <obrien@freebsd.org>
From-SVN: r42463

23 years agot-freebsd (TARGET_LIBGCC2_CFLAGS): Add -fPIC.
Loren J. Rittle [Tue, 22 May 2001 19:10:18 +0000 (19:10 +0000)]
t-freebsd (TARGET_LIBGCC2_CFLAGS): Add -fPIC.

* config/t-freebsd (TARGET_LIBGCC2_CFLAGS): Add -fPIC.
* config/t-freebsd-thread (TARGET_LIBGCC2_CFLAGS): Add
-pthread instead setting macro.

Co-Authored-By: David O'Brien <obrien@freebsd.org>
From-SVN: r42461

23 years agomkcheck.in (static_fail): Remove S_FLAG decoration on output.
Benjamin Kosnik [Tue, 22 May 2001 18:48:19 +0000 (18:48 +0000)]
mkcheck.in (static_fail): Remove S_FLAG decoration on output.

2001-05-21  Benjamin Kosnik  <bkoz@redhat.com>

* mkcheck.in (static_fail): Remove S_FLAG decoration on output.

* include/bits/std_sstream.h (stringbuf::setbuf): Require both
arguments to be non-null.
* include/bits/fstream.tcc (filebuf::_M_allocate_buffers): Only
try allocations if allocated size is greater than zero.
(filebuf::_M_filebuf_init): Change to
(filebuf::_M_allocate_file): Which is what it does now.
(filebuf::_M_allocate_bufers): Change to
(filebuf::_M_allocate_internal_buffer): This, and create
(filebuf::_M_allocate_pback_buffer): New.
(filebuf::_M_destroy_internal_buffer): New.
(filebuf::_M_buf_allocated): New data member.
(filebuf::setbuf): Use new logic, allow use of external buffer.
* testsuite/27_io/stringbuf_virtuals.cc: New file.
* testsuite/27_io/filebuf_virtuals.cc: New file.

From-SVN: r42458

23 years agoparse.y: Refer to compound literals as such, not as constructor-expressions.
Joseph Myers [Tue, 22 May 2001 17:58:43 +0000 (18:58 +0100)]
parse.y: Refer to compound literals as such, not as constructor-expressions.

* parse.y: Refer to compound literals as such, not as
constructor-expressions.

From-SVN: r42455

23 years agocrtstuff.c (__register_frame_info_bases): Declare.
Richard Henderson [Tue, 22 May 2001 16:57:40 +0000 (09:57 -0700)]
crtstuff.c (__register_frame_info_bases): Declare.

        * crtstuff.c (__register_frame_info_bases): Declare.
        (frame_dummy): Use it, if CRT_GET_RFIB_TEXT or CRT_GET_RFIB_DATA.
        (__do_global_dtors_aux, __do_global_dtors): Streamline.

        * config/i386/linux.h (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): New.
        (CRT_GET_RFIB_DATA): New.
        * config/i386/sysv4.h: Likewise.
        * config/i386/sco5.h: Likewise.
        (ASM_PREFERRED_EH_DATA_FORMAT): New.

From-SVN: r42453

23 years agortl.c (read_string): Break out from ...
Richard Henderson [Tue, 22 May 2001 16:42:41 +0000 (09:42 -0700)]
rtl.c (read_string): Break out from ...

        * rtl.c (read_string): Break out from ...
        (read_rtx): ... here.

From-SVN: r42452

23 years agoinstall.texi (Specific): Remove a bogus and duplicate part copied from the end of...
Gerald Pfeifer [Tue, 22 May 2001 14:54:01 +0000 (16:54 +0200)]
install.texi (Specific): Remove a bogus and duplicate part copied from the end of the document.

* doc/install.texi (Specific): Remove a bogus and duplicate part
copied from the end of the document.

From-SVN: r42450

23 years agoFix ia64 build problems
Bernd Schmidt [Tue, 22 May 2001 14:16:58 +0000 (14:16 +0000)]
Fix ia64 build problems

From-SVN: r42448

23 years agoinstall.texi: Remove obsolete information on SunOS as well as i386-sun-sunos4...
Gerald Pfeifer [Tue, 22 May 2001 13:14:11 +0000 (15:14 +0200)]
install.texi: Remove obsolete information on SunOS as well as i386-sun-sunos4...

* install.texi: Remove obsolete information on SunOS as well as
i386-sun-sunos4, i860-intel-osf1, and powerpcle-*-solaris2*.
(Installing GNU CC on the Sun): Remove section.

From-SVN: r42447

23 years agocppfiles.c (remove_component_p): Don't assume lstat/stat will keep errno unchanged...
Alexandre Oliva [Tue, 22 May 2001 11:57:21 +0000 (11:57 +0000)]
cppfiles.c (remove_component_p): Don't assume lstat/stat will keep errno unchanged on success.

* cppfiles.c (remove_component_p): Don't assume lstat/stat will
keep errno unchanged on success.

From-SVN: r42445

23 years agoMakefile.in (stamp-h): Create in $(objdir) instead of $(srcdir).
Loren J. Rittle [Tue, 22 May 2001 11:16:51 +0000 (11:16 +0000)]
Makefile.in (stamp-h): Create in $(objdir) instead of $(srcdir).

* libI77/Makefile.in (stamp-h): Create in $(objdir) instead
of $(srcdir).

From-SVN: r42442

23 years agoc-lex.c (lex_number): If pedantic and not C99...
Joseph Myers [Tue, 22 May 2001 11:02:17 +0000 (12:02 +0100)]
c-lex.c (lex_number): If pedantic and not C99...

* c-lex.c (lex_number): If pedantic and not C99, pedwarn exactly
once for hexadecimal floats, whether or not they contain a decimal
point.  Don't let the setting of pedantic otherwise affect the
parsing of hexadecimal floats.

testsuite:
* gcc.dg/c90-hexfloat-1.c: Add more tests.

From-SVN: r42440

23 years agoltcf-cxx.sh (allow_undefined_flag, [...]): Prepend blank.
Alexandre Oliva [Tue, 22 May 2001 10:40:41 +0000 (10:40 +0000)]
ltcf-cxx.sh (allow_undefined_flag, [...]): Prepend blank.

* ltcf-cxx.sh (allow_undefined_flag, no_undefined_flag)
[aix4*|aix5*]: Prepend blank.

From-SVN: r42438

23 years ago* README.ACORN: Remove obsolete file.
Gerald Pfeifer [Tue, 22 May 2001 10:07:31 +0000 (12:07 +0200)]
* README.ACORN: Remove obsolete file.

From-SVN: r42436

23 years agocombine.c (gen_binary): Use swap_commutative_operands_p
Jan Hubicka [Tue, 22 May 2001 07:40:26 +0000 (09:40 +0200)]
combine.c (gen_binary): Use swap_commutative_operands_p

        * combine.c (gen_binary): Use swap_commutative_operands_p
        (simplify_comparison): Likewise.
        * expmed.c (emit_store_flag): Likewise.
        * expr.c (compare_from_rtx): Likewise.
        (do_compare_rtx_and_jump): Likewise.
        * optabs.c (emit_cmp_and_jump_insn): Revert last patch; abort
        if not emitting a branch and operands want swapping.

From-SVN: r42433

23 years agoc-lex.c (c_lex): Just cast cpp's hashnode to gcc's one.
Neil Booth [Tue, 22 May 2001 07:23:37 +0000 (07:23 +0000)]
c-lex.c (c_lex): Just cast cpp's hashnode to gcc's one.

* c-lex.c (c_lex): Just cast cpp's hashnode to gcc's one.
* stringpool.c: (IS_FE_IDENT, make_identifier): Delete.
(maybe_get_identifier): Update.
* tree.h (make_identifier): Delete.

From-SVN: r42432

23 years agoDaily bump.
GCC Administrator [Tue, 22 May 2001 07:16:13 +0000 (07:16 +0000)]
Daily bump.

From-SVN: r42430

23 years agocombine.c (subst): Do not substitute for a register as a destination...
Richard Henderson [Tue, 22 May 2001 06:58:17 +0000 (23:58 -0700)]
combine.c (subst): Do not substitute for a register as a destination...

        * combine.c (subst): Do not substitute for a register as
        a destination subreg/strict_low_part/zero_extract.

From-SVN: r42429

23 years agoImplement invocation interface; don't create new thread for main.
Per Bothner [Tue, 22 May 2001 06:47:48 +0000 (23:47 -0700)]
Implement invocation interface; don't create new thread for main.

From-SVN: r42428

23 years agocombine.c (simplify_comparison): Update op1 after constant extension.
Richard Henderson [Tue, 22 May 2001 06:46:20 +0000 (23:46 -0700)]
combine.c (simplify_comparison): Update op1 after constant extension.

        * combine.c (simplify_comparison): Update op1 after constant
        extension.
        * recog.c (const_int_operand): Accept only constants valid
        for the given mode.
        * genrecog.c: Update comments wrt const_int_operand.

From-SVN: r42427

23 years ago* gcc_build: Use -d when invoking gcc_update.
Mark Mitchell [Tue, 22 May 2001 06:45:44 +0000 (06:45 +0000)]
* gcc_build: Use -d when invoking gcc_update.

From-SVN: r42426

23 years agoMakefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
Per Bothner [Tue, 22 May 2001 06:40:06 +0000 (23:40 -0700)]
Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).

* Makefile.am (libgcj_la_DEPENDENCIES):  Add $(nat_files).
(libgcj_la_LIBADD):  Likewise.
(libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD):  Add $(x_nat_files).

From-SVN: r42424

23 years agoemit-rtl.c (init_emit_once): Zero unused memory in a CONST_DOUBLE.
Richard Henderson [Tue, 22 May 2001 06:29:39 +0000 (23:29 -0700)]
emit-rtl.c (init_emit_once): Zero unused memory in a CONST_DOUBLE.

        * emit-rtl.c (init_emit_once): Zero unused memory in a
        CONST_DOUBLE.

From-SVN: r42423

23 years agostd_cstring.h (memchr): Define "C" functions to __glibcpp_memchr.
Benjamin Kosnik [Tue, 22 May 2001 04:58:45 +0000 (04:58 +0000)]
std_cstring.h (memchr): Define "C" functions to __glibcpp_memchr.

2001-05-21  Stephen M. Webb  <stephen@bregmasoft.com>

* include/c_std/bits/std_cstring.h (memchr): Define "C" functions to
__glibcpp_memchr.
(strchr): Same, but to __glibcpp_strchr.
(strpbrk): Same.
(strrchr): Same.
(strstr): Same.
* include/c_std/bits/std_cwchar.h (wcschr): Same.
(wcsbrk): Same.
(wcsrchr): Same.
(wcsstr): Same.
(wmemchr): Same.

From-SVN: r42421

23 years agoc_strings.cc (main): Fix.
Benjamin Kosnik [Tue, 22 May 2001 04:58:14 +0000 (04:58 +0000)]
c_strings.cc (main): Fix.

2001-05-21  Benjamin Kosnik  <bkoz@kredhat.com>

* testsuite/21_strings/c_strings.cc (main): Fix.

From-SVN: r42420

23 years agojavaprims.h (_Jv_FormatInt): New declaration.
Per Bothner [Tue, 22 May 2001 04:38:37 +0000 (21:38 -0700)]
javaprims.h (_Jv_FormatInt): New declaration.

* gcj/javaprims.h (_Jv_FormatInt):  New declaration.
* java/lang/natString.cc (_JvFormatInt):  New primitive, with logic
taken from old Integer.toString code.
(Integer::valueOf):  Use _Jv_FormatInt.
* java/lang/Integer.java (toString):  Just use call String.valueOf.
* java/lang/Long.java (toString):  Fix typo in comment.
* java/lang/String.java (valueOf(int)):  Make native.
* java/lang/StringBuffer.java (append(int)):  Make native.
* java/lang/natStringBuffer.cc:  New file, for append(jint).
* Makefile.am (ant_source_files):  Add java/lang/natStringBuffer.cc.

From-SVN: r42419