John David Anglin [Tue, 30 Jan 2001 17:25:29 +0000 (17:25 +0000)]
pa.c (pa_init_machine_status): Initialize pic_offset_table_save_rtx to NULL_RTX.
* pa.c (pa_init_machine_status): Initialize pic_offset_table_save_rtx
to NULL_RTX.
(hppa_expand_prologue): Delete code to save pic offset table register
in the function prologue.
* pa.h (PIC_OFFSET_TABLE_SAVE_RTX): Correct type in comment.
* pa.md (call, call_value, sibcall, sibcall_value): Save the pic offset
table register at the beginning of the function after the prologue.
From-SVN: r39351
Jeff Law [Tue, 30 Jan 2001 17:25:12 +0000 (10:25 -0700)]
Daily bump.
From-SVN: r39350
Benjamin Kosnik [Tue, 30 Jan 2001 17:21:50 +0000 (17:21 +0000)]
c_locale_generic.cc: Remove langinfo include.
2001-01-30 Benjamin Kosnik <bkoz@redhat.com>
* config/c_locale_generic.cc: Remove langinfo include.
From-SVN: r39349
Benjamin Kosnik [Tue, 30 Jan 2001 09:18:51 +0000 (09:18 +0000)]
Preliminary named locales.
2001-01-29 Benjamin Kosnik <bkoz@redhat.com>
Preliminary named locales.
* acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): New macro.
* aclocal.m4: Regenerate.
* configure.in: Use it.
* configure: Regerate.
* src/Makefile.am (sources): Add c++locale.cc.
(build_headers): Add c++locale.h.
* src/Makefile.in: Regenerate.
* config/c_locale_gnu.h: New file.
* config/c_locale_gnu.cc: New file. Non-inline member functions
for named locales, gnu-specific.
* config/c_locale_generic.h: New file.
* config/c_locale_generic.cc: New file. Non-inline member
functions for named locales, generic version.
* docs/html/configopts.html: Add documentation on new options.
* include/bits/locale_facets.h (class _Messages): Remove.
(class _Moneypunct): Remove.
* src/locale-inst.cc: Remove.
* include/bits/locale_facets.h (class _Collate): Remove.
* src/locale-inst.cc (std): Remove.
* src/locale.cc: And here.
* include/bits/localefwd.h (locale::_M_coalesce): New
function. Correctly put together multi-name locales.
(_Impl(const _Impl&, category, size_t)): Remove.
* include/bits/localefwd.h (locale::_Impl): Remove _M_construct_*
member functions.
(_M_normalize_category_names): Remove.
(_M_replace_categories): Fix.
* src/localename.cc (locale::_Impl::_M_construct_collate): Remove.
(locale::_Impl::_M_construct_ctype): Remove.
(locale::_Impl::_M_construct_monetary): Remove.
(locale::_Impl::_M_construct_numeric): Remove.
(locale::_Impl::_M_construct_time): Remove.
(locale::_Impl::_M_construct_messages): Remove.
* include/bits/locale_facets.h (_Bad_use_facet): Remove.
(_Use_facet_failure_handle): Remove.
* src/locale.cc: Remove definitions.
* src/locale-inst.cc: And here.
* testsuite/22_locale/ctor_copy_dtor.cc (test01): Fixup. Add tests.
* src/localename.cc (locale::facet::_S_create_c_locale): Properly
create and error-check underlying locale object.
(locale::facet::_S_destroy_c_locale): Add, take care of properly
tearing down underlying locale object.
* include/bits/localefwd.h (locale::facet): Declare.
* testsuite/22_locale/members.cc: Don't test "fr_FR" locale for
correctness, as glibc apparently has incorrect info in it. Test
with it when it works again.....
* include/bits/localefwd.h (locale::_Impl::__vec_string):
Remove. Number of categories is fixed at six, so just simplify and
make this an array of strings.
(locale::_Impl::_M_has_name): Remove.
(locale::_Impl::_M_name): Remove.
(locale::_Impl::_M_category_names): Turns into...
(locale::_Impl::_M_names): ...this.
(locale::_Impl::_M_has_same_name()): New function.
* src/localename.cc (locale::_Impl::~_Impl()): Remove here.
(locale::_Impl::_Impl(size_t __refs, string __str)): Simplify
signature.
* src/locale.cc (locale::name()): Construct mangled name
accurately reflecting combined locale categories.
* src/locale.cc (locale::classic()): Don't initialize here.
* src/localename.cc (locale::_Impl::_Impl(size_t __num, size_t
__refs, bool __has_name, string __str): Do it here.
* include/bits/localefwd.h: _S_categories_num to
_S_num_categories. _S_facets_num to _S_num_facets.
(locale::id::id()): Explicitly set _M_index to zero.
* src/locale.cc: Same.
* src/locale.cc: (locale::locale(const char*)): Construct named
locales uniquely.
* src/locale.cc: Remove numpunct_byname ctors.
* testsuite/22_locale/numpunct_byname.cc: New file.
* testsuite/22_locale/numpunct.cc: New file.
* include/bits/localefwd.h (class locale): Change data members to
protected, from private.
(_Impl::_M_get_c_locale): Add member function.
(locale::facet::_M_get_global_impl()): Add member function.
* include/bits/locale_facets.h (numpunct::_M_init): Change to take
a __c_locale pointer.
(numpunct::numpunct( __c_locale*, size_t)): Add additonal ctor for
named locales.
* testsuite/22_locale/members.cc: New file, test name and combine.
* include/bits/locale_facets.h (class numpunct): Remove class
_Punct and _Numpunct. Rewrite class numpunct to be correct for
named locales.
* include/bits/localefwd.h (locale::_Imp::_M_c_locale): Add.
* src/localename.cc (_Impl::~_Impl()): Call __frelocale.
(_Imp::_Impl(size_t, size_t, bool, string)) Initialize _M_c_locale.
* src/locale-inst.cc: Remove _Numpunct, _Punct instantiations.
* testsuite/22_locale/numpunct_char_members.cc: New file.
From-SVN: r39347
Lars Brinkhoff [Tue, 30 Jan 2001 05:42:06 +0000 (22:42 -0700)]
* tm.texi (PUSH_ROUNDING): Remove duplicate lines.
From-SVN: r39346
John David Anglin [Tue, 30 Jan 2001 05:18:50 +0000 (05:18 +0000)]
pa.md (return): Revise comment for trivial return.
* pa.md (return): Revise comment for trivial return.
(return_internal): Non-trivial return pattern for non-PIC code.
(return_internal_pic): Non-trivial return pattern for PIC code.
It uses the PIC register to ensure it is restored after
function calls.
(epilogue): Generate appropriate return for PIC and non-PIC code.
Co-Authored-By: Jeff Law <law@redhat.com>
From-SVN: r39345
Christopher Faylor [Tue, 30 Jan 2001 04:56:08 +0000 (04:56 +0000)]
* config/i386/cygwin.h: Fix -mno-cygwin search path for link.
From-SVN: r39344
DJ Delorie [Tue, 30 Jan 2001 02:34:22 +0000 (21:34 -0500)]
combine.c (if_then_else_cond): Pass the correct mode to operand_subword() for constants.
* combine.c (if_then_else_cond): Pass the correct mode to
operand_subword() for constants.
From-SVN: r39342
Christopher Faylor [Tue, 30 Jan 2001 01:41:27 +0000 (01:41 +0000)]
cygwin.h: Add w32api to include search.
* config/i386/cygwin.h: Add w32api to include search. Search different
directories in a cross-build environment.
From-SVN: r39341
Richard Henderson [Tue, 30 Jan 2001 01:38:41 +0000 (17:38 -0800)]
* tree.h (TYPE_STUB_DECL): Add documentation.
From-SVN: r39340
Laurynas Biveinis [Tue, 30 Jan 2001 01:26:25 +0000 (01:26 +0000)]
sdbout.c (sdbout_one_type): Skip types with indeterminate size.
* sdbout.c (sdbout_one_type): Skip types with indeterminate size.
(sdbout_field_types): Likwise. Fix use of host_integerp.
From-SVN: r39339
Bryce McKinlay [Tue, 30 Jan 2001 00:37:21 +0000 (00:37 +0000)]
java-tree.h: Remove JTI_INTEGER_NEGATIVE_ONE_NODE.
* java-tree.h: Remove JTI_INTEGER_NEGATIVE_ONE_NODE.
* decl.c (init_decl_processing): Use integer_minus_one_node, not
integer_negative_one_node.
* expr.c (build_java_binop): Likewise.
From-SVN: r39337
Thomas Pfaff [Mon, 29 Jan 2001 21:41:46 +0000 (21:41 +0000)]
mingw32.h: Override STARTFILE_SPEC and LINK_SPEC declared in cygwin.h.
* mingw32.h: Override STARTFILE_SPEC and LINK_SPEC declared in
cygwin.h.
From-SVN: r39336
Jeffrey Oldham [Mon, 29 Jan 2001 19:36:52 +0000 (19:36 +0000)]
iris6.h (SUPPORTS_INIT_PRIORITY): Revise definition to use flag_gnu_linker.
2001-01-29 Jeffrey Oldham <oldham@codesourcery.com>
* config/mips/iris6.h (SUPPORTS_INIT_PRIORITY): Revise definition
to use flag_gnu_linker.
From-SVN: r39335
Neil Booth [Mon, 29 Jan 2001 19:20:12 +0000 (19:20 +0000)]
cpplib.c (T_BAD_DIRECTIVE): Remove.
* cpplib.c (T_BAD_DIRECTIVE): Remove.
(_cpp_init_stacks): Loop from 0 to N_DIRECTIVES - 1.
From-SVN: r39334
Neil Booth [Mon, 29 Jan 2001 18:58:38 +0000 (18:58 +0000)]
* gcc.dg/cpp/avoidpaste1.c: Fix typos.
From-SVN: r39333
Joseph Myers [Mon, 29 Jan 2001 18:57:24 +0000 (18:57 +0000)]
tree.c, tree.h (build_parse_node): Remove; was identical to build_nt.
* tree.c, tree.h (build_parse_node): Remove; was identical to
build_nt.
* c-lang.c (start_cdtor), objc/objc-act.c
(build_module_descriptor): Use build_nt instead of
build_parse_node.
cp:
* decl2.c (build_expr_from_tree), lex.c (make_pointer_declarator,
make_reference_declarator, make_call_declarator), method.c
(implicitly_declare_fn), parse.y (namespace_using_decl,
notype_unqualified_id, expr_or_declarator, new_type_id,
after_type_declarator, direct_after_type_declarator,
notype_declarator, complex_notype_declarator,
complex_direct_notype_declarator, qualified_id,
notype_qualified_id, overqualified_id, direct_new_declarator,
absdcl, direct_abstract_declarator, conversion_declarator), pt.c
(tsubst), semantics.c (begin_constructor_declarator): Use build_nt
instead of build_parse_node.
From-SVN: r39332
Jakub Jelinek [Mon, 29 Jan 2001 18:31:35 +0000 (19:31 +0100)]
i386.md (addqi_1_lea): Fix mode (QI instead of HI).
* config/i386/i386.md (addqi_1_lea): Fix mode (QI instead of HI).
(testqi_1, andqi_2): If widening to SImode, make sure CONST_INT does
not have any upper bits set.
* gcc.c-torture/execute/
20010129-1.c: New test.
* gcc.c-torture/execute/
20010129-1.x: Add -mcpu=i686 on ia32.
From-SVN: r39331
Phil Edwards [Mon, 29 Jan 2001 13:32:47 +0000 (13:32 +0000)]
COPYING.LIB: Update to LGPL 2.1 from the FSF.
2001-01-29 Phil Edwards <pme@sources.redhat.com>
* COPYING.LIB: Update to LGPL 2.1 from the FSF.
From-SVN: r39330
Jeff Law [Mon, 29 Jan 2001 08:45:07 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r39329
Jeff Sturm [Mon, 29 Jan 2001 08:43:46 +0000 (08:43 +0000)]
zextract.c (read_zip_archive): Read file_offset before writing zipd and consequently clobbering the header...
2000-01-24 Jeff Sturm <jeff.sturm@commerceone.com>
* zextract.c (read_zip_archive): Read file_offset before writing
zipd and consequently clobbering the header contents.
(http://gcc.gnu.org/ml/gcc-patches/2001-01/msg02129.html)
From-SVN: r39328
Kaveh R. Ghazi [Mon, 29 Jan 2001 02:46:30 +0000 (02:46 +0000)]
stmt.c (estimate_case_costs): Use integer_minus_one_node.
* stmt.c (estimate_case_costs): Use integer_minus_one_node.
* tree.c (build_common_tree_nodes_2): Set integer_minus_one_node.
* tree.h (tree_index): Add new element TI_INTEGER_MINUS_ONE.
(integer_minus_one_node): Define.
ch:
* ch-tree.h (integer_minus_one_node): Moved to top level gcc
directory.
* decl.c (integer_minus_one_node): Likewise.
(init_decl_processing): Don't set integer_minus_one_node.
cp:
* cp-tree.h (cp_tree_index): Delete CPTI_MINUS_ONE.
(minus_one_node): Moved to top level gcc directory. Renamed
to integer_minus_one_node.
* init.c (init_init_processing): Don't set minus_one_node.
(build_vec_init): Use integer_minus_one_node.
* rtti.c (get_tinfo_decl_dynamic): Likewise.
From-SVN: r39325
Alexandre Oliva [Mon, 29 Jan 2001 01:48:06 +0000 (01:48 +0000)]
* Makefile.in (bootstrap2-lean): Fix typo.
From-SVN: r39324
Gabriel Dos Reis [Sun, 28 Jan 2001 15:13:08 +0000 (15:13 +0000)]
README: Add more comment.
2001-01-28 Gabriel Dos Reis <gdr@codesourcery.com>
* testsuite/README: Add more comment.
* testsuite/lib/libstdc++.exp: Tweak comment.
From-SVN: r39321
Jakub Jelinek [Sun, 28 Jan 2001 14:04:19 +0000 (15:04 +0100)]
Clarify comment.
From-SVN: r39320
Neil Booth [Sun, 28 Jan 2001 11:27:22 +0000 (11:27 +0000)]
* gcc.dg/cpp/avoidpaste1.c: Test case.
From-SVN: r39319
Neil Booth [Sun, 28 Jan 2001 11:22:23 +0000 (11:22 +0000)]
cpphash.c (_cpp_cleanup_hashtable, [...]): Don't set fe_value.
* cpphash.c (_cpp_cleanup_hashtable, _cpp_lookup_with_hash)
: Don't set fe_value.
* cpplib.h (AVOID_LPASTE): New flag.
(struct cpp_hashnode): Remove fe_value.
* cpplex.c (cpp_avoid_paste): Don't paste '.' with a number.
* cppmacro.c (builtin_macro): Don't set flags here.
(replace_args): Set AVOID_LPASTE flag on first token of an
argument, and the token following it.
(cpp_get_token): Set AVOID_LPASTE flag on first token of a
macro expansion, and on the token following it. Do it for
builtins too.
* cppmain.c (scan_buffer): Avoid pasting only flagged tokens.
From-SVN: r39318
Jakub Jelinek [Sun, 28 Jan 2001 10:35:45 +0000 (11:35 +0100)]
optimize.c (copy_body_r): If MODIFY_EXPR has both arguments identical and they would be replaced with...
* optimize.c (copy_body_r): If MODIFY_EXPR has both arguments
identical and they would be replaced with constant, remove
MODIFY_EXPR from the tree.
* g++.old-deja/g++.other/inline18.C: New test.
From-SVN: r39317
Jeff Law [Sun, 28 Jan 2001 08:45:08 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r39316
Richard Henderson [Sun, 28 Jan 2001 06:59:00 +0000 (22:59 -0800)]
configure.in (target_makefile_frag): Use mt-alphaieee.
* configure.in (target_makefile_frag) [alpha*-*]: Use mt-alphaieee.
* mt-alphaieee: New file.
* config/alpha/t-ieee: Remove multilibbing.
(TARGET_LIBGCC2_CFLAGS): Add -mieee.
* configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
From-SVN: r39309
Kaveh R. Ghazi [Sun, 28 Jan 2001 01:50:22 +0000 (01:50 +0000)]
configure.in: Arrange to include defaults.h in [ht]config.h/tm.h.
* configure.in: Arrange to include defaults.h in [ht]config.h/tm.h.
* Makefile.in: Remove all dependencies on defaults.h.
* builtins.c: Don't include defaults.h.
* c-common.c: Likewise.
* c-decl.c: Likewise.
* c-pragma.c: Likewise.
* c-typeck.c: Likewise.
* combine.c: Likewise.
* i386.c: Likewise.
* frame-ia64.c: Likewise.
* cppexp.c: Likewise.
* crtstuff.c: Likewise.
* dbxout.c: Likewise.
* dwarf2out.c: Likewise.
* dwarfout.c: Likewise.
* emit-rtl.c: Likewise.
* except.c: Likewise.
* expr.c: Likewise.
* final.c: Likewise.
* frame-dwarf2.c: Likewise.
* libgcc2.c: Likewise.
* optabs.c: Likewise.
* profile.c: Likewise.
* sdbout.c: Likewise.
* toplev.c: Likewise.
* tradcif.y: Likewise.
* tree.c: Likewise.
* varasm.c: Likewise.
ch:
* Makefile.in: Remove all dependencies on defaults.h.
* decl.c: Don't include defaults.h.
* timing.c: Likewise.
cp:
* Make-lang.in: Remove all dependencies on defaults.h.
* call.c: Don't include defaults.h.
* decl.c: Likewise.
* decl2.c: Likewise.
* except.c: Likewise.
* pt.c: Likewise.
* rtti.c: Likewise.
* tree.c: Likewise.
* typeck.c: Likewise.
f:
* Make-lang.in: Remove all dependencies on defaults.h.
* com.c: Don't include defaults.h.
java:
* Make-lang.in: Remove all dependencies on defaults.h.
* decl.c: Don't include defaults.h.
* expr.c: Likewise.
* parse.y: Likewise.
From-SVN: r39308
Kaveh R. Ghazi [Sun, 28 Jan 2001 01:27:25 +0000 (01:27 +0000)]
stdio-opt-2.c: Also test __builtin_puts and __builtin_putchar.
* gcc.c-torture/execute/stdio-opt-2.c: Also test __builtin_puts
and __builtin_putchar.
From-SVN: r39307
Kaveh R. Ghazi [Sun, 28 Jan 2001 01:06:15 +0000 (01:06 +0000)]
builtins.c (expand_builtin_fputs): Use size_one_node when transforming into fwrite.
* builtins.c (expand_builtin_fputs): Use size_one_node when
transforming into fwrite.
From-SVN: r39306
Joseph Myers [Sat, 27 Jan 2001 21:29:53 +0000 (21:29 +0000)]
* extend.texi (Attribute Syntax): New section.
From-SVN: r39305
Michael Sokolov [Sat, 27 Jan 2001 21:07:57 +0000 (21:07 +0000)]
fixproto: Correctly install synthesised unistd.h and stdlib.h when they didn't need fixing.
* fixproto: Correctly install synthesised unistd.h and stdlib.h when
they didn't need fixing.
From-SVN: r39304
Richard Henderson [Sat, 27 Jan 2001 20:50:52 +0000 (12:50 -0800)]
[multiple changes]
2001-01-27 Janis Johnson <janis@us.ibm.com>
* config.gcc (i[34567]86-sequent-{ptx4*,sysv4*}): Use usegas.h
if appropriate.
* config/ptx4.h: Several fixes to build on DYNIX/ptx v4.[456], and
to remove macro definitions that are duplicated from elfos.h.
2001-01-27 Richard Henderson <rth@redhat.com>
* config/i386/sco5gas.h: Move ...
* config/usegas.h: ... here.
* config.gcc (i[34567]86-*-sco3.2v5) [tm_file]: Update.
From-SVN: r39303
Jakub Jelinek [Sat, 27 Jan 2001 20:33:54 +0000 (21:33 +0100)]
c-typeck.c (struct constructor_stack): Add range_stack member.
* c-typeck.c (struct constructor_stack): Add range_stack member.
(really_start_incremental_init): Clear it.
(push_init_level): Save constructor_range_stack and clear it if
pushing explicit braces.
(pop_init_level): abort if constructor_range_stack is non-zero at
explicit closing brace. Restore saved constructor_range_stack if
not implicit.
* gcc.dg/gnu99-init-1.c: Add 3 more designated range initializer
tests.
From-SVN: r39302
Alexandre Oliva [Sat, 27 Jan 2001 20:24:34 +0000 (20:24 +0000)]
expr.c (emit_move_insn): Add REG_EQUAL note when constant loaded into register was forced into memory.
* expr.c (emit_move_insn): Add REG_EQUAL note when constant loaded
into register was forced into memory.
From-SVN: r39301
Michael Sokolov [Sat, 27 Jan 2001 19:51:13 +0000 (19:51 +0000)]
ltcf-cxx.sh (ac_cv_prog_cc_pic_works, [...]): Don't unset, it's non-portable and no longer necessary, set to empty instead.
* ltcf-cxx.sh (ac_cv_prog_cc_pic_works, ac_cv_prog_cc_static_works):
Don't unset, it's non-portable and no longer necessary, set to empty
instead.
From-SVN: r39300
Michael Sokolov [Sat, 27 Jan 2001 19:48:46 +0000 (19:48 +0000)]
* ltconfig: Shell portability fix for the tagname validity check.
From-SVN: r39299
Tom Tromey [Sat, 27 Jan 2001 19:30:31 +0000 (19:30 +0000)]
jni.cc (_Jv_JNIFunctions): Added comment for each entry in native interface structure.
* jni.cc (_Jv_JNIFunctions): Added comment for each entry in
native interface structure.
From-SVN: r39298
Alexandre Oliva [Sat, 27 Jan 2001 19:12:14 +0000 (19:12 +0000)]
ltcf-c.sh (ld_shlibs): Disable on unknown CPU types.
* ltcf-c.sh (ld_shlibs) [aix5*]: Disable on unknown CPU types.
* ltcf-cxx.sh, ltcf-gcj.sh: Likewise.
From-SVN: r39297
Benjamin Kosnik [Sat, 27 Jan 2001 19:00:09 +0000 (19:00 +0000)]
pure.cc (writestr): Just use cstdio and std::fputs.
2001-01-26 Benjamin Kosnik <bkoz@kredhat.com>
* libsupc++/pure.cc (writestr): Just use cstdio and std::fputs.
From-SVN: r39296
Alexandre Oliva [Sat, 27 Jan 2001 18:47:16 +0000 (18:47 +0000)]
* Makefile.in: Remove uses of + before $(MAKE).
From-SVN: r39295
Jeff Law [Sat, 27 Jan 2001 08:45:08 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r39294
Bryce McKinlay [Sat, 27 Jan 2001 06:04:29 +0000 (06:04 +0000)]
ObjectInputStream.java (read): AND byte with 0xff to make result unsigned.
* java/io/ObjectInputStream.java (read): AND byte with 0xff to make
result unsigned.
(read (byte[], int, int)): Only call readNextBlock() if the block
buffer would actually be overrun. Increment blockDataPosition.
(callReadMethod): Propagate exceptions from invocation target.
* java/io/ObjectOutputStream.java (callWriteMethod): Propagate
exceptions from invocation target.
From-SVN: r39293
Loren J. Rittle [Fri, 26 Jan 2001 23:31:57 +0000 (23:31 +0000)]
inserters_extractors.cc: Remove explicit reference to 'testsuite/'.
2001-01-25 Loren J. Rittle <ljrittle@acm.org>
* testsuite/21_strings/inserters_extractors.cc: Remove
explicit reference to 'testsuite/'.
From-SVN: r39292
Richard Henderson [Fri, 26 Jan 2001 23:24:38 +0000 (15:24 -0800)]
stmt.c (cost_table): Remove.
* stmt.c (cost_table): Remove.
(COST_TABLE, cost_table_initialized): New.
(estimate_case_costs): Use the later instead of the former.
(balance_case_nodes): Likewise.
From-SVN: r39291
Richard Henderson [Fri, 26 Jan 2001 23:07:38 +0000 (15:07 -0800)]
atomicity.h: Remove tricky .subsetion bits.
2001-01-25 Richard Henderson <rth@redhat.com>
* config/cpu/alpha/bits/atomicity.h: Remove tricky .subsetion
bits. Fixes Tru64 build issues.
From-SVN: r39290
Tom Tromey [Fri, 26 Jan 2001 23:00:19 +0000 (23:00 +0000)]
jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external to internal representation.
* jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
to internal representation.
(_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
_Jv_FindClassFromSignature.
From-SVN: r39289
Michael Sokolov [Fri, 26 Jan 2001 22:55:12 +0000 (22:55 +0000)]
* ltcf-cxx.sh: Use parentheses around eval $ac_compile.
From-SVN: r39288
Tom Tromey [Fri, 26 Jan 2001 22:52:19 +0000 (22:52 +0000)]
* libjava.jni/martin.c (Java_martin_myNative): Flush stdout.
From-SVN: r39287
Tom Tromey [Fri, 26 Jan 2001 22:41:41 +0000 (22:41 +0000)]
martin.out: New file.
* libjava.jni/martin.out: New file.
* libjava.jni/martin.c: New file.
* libjava.jni/martin.java: New file.
From-SVN: r39286
Richard Henderson [Fri, 26 Jan 2001 22:32:51 +0000 (14:32 -0800)]
alias.c (objects_must_conflict_p): Read-only slots may not conflict despite having the same type.
* alias.c (objects_must_conflict_p): Read-only slots may not
conflict despite having the same type.
From-SVN: r39285
Michael Hayes [Fri, 26 Jan 2001 22:06:45 +0000 (22:06 +0000)]
loop.c (loop_giv_reduce_benefit): Copy mode size into int variable.
* loop.c (loop_giv_reduce_benefit): Copy mode size into
int variable.
(check_ext_dependant_givs): Initialise u_start_val and
u_end_val.
(load_mems): Make last_max_reg unsigned.
(try_swap_copy_prop): Use INSN_P and initialise set.
From-SVN: r39284
Warren Levy [Fri, 26 Jan 2001 21:57:08 +0000 (21:57 +0000)]
natSystem.cc (getSystemTimeZone): Only use tm_gmtoff and timezone if they are available on the system.
* java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
and timezone if they are available on the system.
From-SVN: r39283
Denis Chertykov [Fri, 26 Jan 2001 20:40:32 +0000 (23:40 +0300)]
* README.AVR : Removed.
From-SVN: r39282
Denis Chertykov [Fri, 26 Jan 2001 20:35:04 +0000 (23:35 +0300)]
* README.AVR : Removed.
From-SVN: r39281
Jeffrey A Law [Fri, 26 Jan 2001 18:37:26 +0000 (18:37 +0000)]
pa-64.h (text_section): Remove declaration.
* pa-64.h (text_section): Remove declaration.
* pa.md (return_internal): Remove mode on PIC register use.
From-SVN: r39280
Tom Tromey [Fri, 26 Jan 2001 18:10:07 +0000 (18:10 +0000)]
* configure.in: Allow libgcj to be built on Sparc Solaris.
From-SVN: r39279
Jeff Law [Fri, 26 Jan 2001 08:45:09 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r39278
Michael Sokolov [Fri, 26 Jan 2001 06:19:52 +0000 (06:19 +0000)]
acinclude.m4 (GLIBCPP_CHECK_GNU_MAKE): Bourne shell portability bug (use ${MAKE-make}, not ${MAKE:-make}).
* acinclude.m4 (GLIBCPP_CHECK_GNU_MAKE): Bourne shell portability bug
(use ${MAKE-make}, not ${MAKE:-make}).
* aclocal.m4, configure: Regenerate.
From-SVN: r39277
Mark Mitchell [Fri, 26 Jan 2001 02:25:13 +0000 (02:25 +0000)]
ios.cc: Remove accidental inclusion of <stdio.h> in last checkin.
* src/ios.cc: Remove accidental inclusion of <stdio.h> in last
checkin.
From-SVN: r39276
Mark Mitchell [Thu, 25 Jan 2001 22:39:29 +0000 (22:39 +0000)]
Makefile.am (sources): Add globals.cc.
* src/Makefile.am (sources): Add globals.cc.
* src/Makefile.in: Regenerated.
* src/globals.cc: New file.
* src/ios.cc (cin): Don't define here, just declare extern.
(cout): Likewise.
(cerr): Likewise.
(clog): Likewise.
(wcin): Likewise.
(wcout): Likewise.
(wcerr): Likewise.
(wclog): Likewise.
From-SVN: r39275
Alexandre Petit-Bianco [Thu, 25 Jan 2001 22:25:22 +0000 (14:25 -0800)]
ChangeLog (2001-01-21): Fixed typo.
2001-01-25 Alexandre Petit-Bianco <apbianco@cygnus.com>
* ChangeLog (2001-01-21): Fixed typo.
* class.c (layout_class_method): Code accounting for WFLed
method DECL_NAMEs deleted.
* constant.c (find_methodref_index): Likewise.
* decl.c (lang_mark_tree): Mark `wfl' field in struct lang_decl.
* java-tree.h (DECL_FUNCTION_WFL): New macro.
(struct lang_decl): New field `wfl'.
(java_get_real_method_name): Prototype deleted.
* mangle.c (mangle_method_decl): Code accounting for WFLed
method DECL_NAMEs deleted.
* parse.h (GET_METHOD_NAME): Macro deleted.
* parse.y (reset_method_name): Deleted.
(method_header): Set DECL_FUNCTION_WFL.
(check_abstract_method_header): Code accounting for WFLed method
DECL_NAMEs deleted.
(java_get_real_method_name): Deleted.
(check_method_redefinition): Code accounting for WFLed method
DECL_NAMEs deleted. Use DECL_FUNCTION_WFL.
(java_check_regular_methods): Likewise.
(java_check_abstract_methods): Likewise.
(java_expand_classes): Don't call `reset_method_name.'
(search_applicable_method_list): Use DECL_NAMEs instead of
GET_METHOD_NAME.
* typeck.c (lookup_do): Code accounting for WFLed method
DECL_NAMEs deleted.
(http://gcc.gnu.org/ml/gcc-patches/2001-01/msg01954.html)
From-SVN: r39274
Lars Brinkhoff [Thu, 25 Jan 2001 22:18:16 +0000 (22:18 +0000)]
tm.texi (DATA_ALIGNMENT, [...]): fix typos.
* tm.texi (DATA_ALIGNMENT, LOCAL_ALIGNMENT, ASM_OPEN_PAREN,
ASM_CLOSE_PAREN): fix typos.
From-SVN: r39273
Mark Mitchell [Thu, 25 Jan 2001 21:56:21 +0000 (21:56 +0000)]
acconfig.h: Define `const' to the empty string if neither __STDC__ nor __cplusplus is defined.
* acconfig.h: Define `const' to the empty string if neither
__STDC__ nor __cplusplus is defined.
* config.in: Regenerated.
From-SVN: r39272
David Edelsohn [Thu, 25 Jan 2001 20:12:30 +0000 (20:12 +0000)]
config.gcc (rs6000-ibm-aix[5-9]*): Change to aix51.h.
* config.gcc (rs6000-ibm-aix[5-9]*): Change to aix51.h.
* collect2.c (main): Delete importf. Add ".obj" file extension.
(GCC_CHECK_HDR): Handle AIX V5 new magic number.
(aix_std_libs): Add additional AIX libraries to skip.
* config/rs6000/aix.h (MY_ISCOFF): Add AIX V5 new magic number.
* config/rs6000/aix51.h: New file.
From-SVN: r39271
David Edelsohn [Thu, 25 Jan 2001 19:11:34 +0000 (19:11 +0000)]
- Add AIX 5 support following AIX 4.
From-SVN: r39270
Tom Tromey [Thu, 25 Jan 2001 19:07:18 +0000 (19:07 +0000)]
* java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
From-SVN: r39269
Jeffrey Oldham [Thu, 25 Jan 2001 17:58:26 +0000 (17:58 +0000)]
20000320-1.c (main): For MIPS...
2001-01-25 Jeffrey Oldham <oldham@codesourcery.com>
* gcc.c-torture/execute/ieee/
20000320-1.c (main): For MIPS, change
floating point number rounding mode to round to the nearest
representable mode.
From-SVN: r39268
Phil Edwards [Thu, 25 Jan 2001 15:35:10 +0000 (15:35 +0000)]
std_iterator.h: Do not include stl_relops.h.
2001-01-25 Phil Edwards <pme@sources.redhat.com>
* include/bits/std_iterator.h: Do not include stl_relops.h.
* include/bits/std_numeric.h: Ditto.
* include/bits/stl_algobase.h: Ditto.
* include/bits/stl_relops.h: Add comment warning about problems.
From-SVN: r39267
Richard Earnshaw [Thu, 25 Jan 2001 10:35:09 +0000 (10:35 +0000)]
* lex.c (java_read_char): Check for EOF from getc first.
From-SVN: r39261
Michael Hayes [Thu, 25 Jan 2001 09:28:55 +0000 (09:28 +0000)]
loop.c (loop_call_insn_emit_before, [...]): New.
* loop.c (loop_call_insn_emit_before, loop_call_insn_hoist): New.
(loop_insn_emit_before): No longer static.
(move_movables): Replace emit_insn_after with loop_insn_emit_after.
(loop_givs_rescan, load_mems): Likewise.
(check_dbra_loop): Replace emit_insn_before with loop_insn_emit_before.
(maybe_eliminate_biv_1):
(move_movables): Replace emit_call_insn_before with
loop_call_insn_hoist.
* loop.h (loop_insn_emit_before): Add.
* unroll.c (copy_loop_body): Replace emit_insn_before with
loop_insn_emit_before.
From-SVN: r39260
Jeff Law [Thu, 25 Jan 2001 08:45:17 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r39259
Neil Booth [Thu, 25 Jan 2001 07:39:50 +0000 (07:39 +0000)]
* diagnostic.c (fatal): Request preprocessed source.
From-SVN: r39258
Jakub Jelinek [Thu, 25 Jan 2001 07:35:21 +0000 (08:35 +0100)]
mangle.c (write_mangled_name, [...]): Mangle overloaded operators even in "C" linkage.
* mangle.c (write_mangled_name, write_encoding): Mangle overloaded
operators even in "C" linkage.
* method.c (set_mangled_name_for_decl): Likewise.
* decl.c (grokfndecl): Call set_mangled_name_for_decl even for
overloaded operators in "C" linkage.
* g++.old-deja/g++.other/mangle2.C: New test.
From-SVN: r39257
Michael Sokolov [Thu, 25 Jan 2001 05:11:38 +0000 (05:11 +0000)]
alarm_.c: Separate the #ifdef KR_headers logic from the G77_alarm_0 function definition.
* libU77/alarm_.c: Separate the #ifdef KR_headers logic from the
G77_alarm_0 function definition. Check for SIG_ERR and provide our own
if missing.
From-SVN: r39256
Gabriel Dos Reis [Thu, 25 Jan 2001 04:09:22 +0000 (04:09 +0000)]
*.cc: Remove explicit reference to 'testsuite/' in testcases.
* testsuite/27_io/*.cc: Remove explicit reference to 'testsuite/'
in testcases. Prepare for the DejaGnu based framework.
* mkcheck.in: Adjust call to tests_flags. Don't mmkdir testsuite
directory -- it is now mkcheck working directory.
* tests_flags.in: Remove reference to $(top_srcdir). Use
${SRC_DIR} instead.
* Makefile.am (check, check-install): Change mkcheck invocation
logic.
* Makefile.in: Regenerate.
From-SVN: r39255
J"orn Rennecke [Thu, 25 Jan 2001 02:03:14 +0000 (02:03 +0000)]
c-decl.c (duplicate_decls): If different_binding_level is nonzero...
* c-decl.c (duplicate_decls): If different_binding_level is nonzero,
olddecl has argument types and newdecl has none, use the argument
types from olddecl.
From-SVN: r39254
Ulrich Drepper [Thu, 25 Jan 2001 00:18:16 +0000 (00:18 +0000)]
dwarf2out.c (prefix_of): New function.
* dwarf2out.c (prefix_of): New function. Determine longest common
prefix of the two arguments. The units are whole path components.
(output_file_names): When adding a new directory find the one entry
with the longest common prefix already in the list. Artificially
generate entry if there is none for this prefix.
Fix test to check whether the zeroth directory entry is used.
: ----------------------------------------------------------------------
From-SVN: r39253
Richard Henderson [Thu, 25 Jan 2001 00:16:42 +0000 (16:16 -0800)]
New test.
From-SVN: r39252
J"orn Rennecke [Thu, 25 Jan 2001 00:02:49 +0000 (00:02 +0000)]
reload1.c (reload_reg_free_for_value_p): New parameter start_regno.
* reload1.c (reload_reg_free_for_value_p): New parameter start_regno.
Changed all callers. Take it into account when deciding if a
previously loaded value matches.
From-SVN: r39251
Richard Henderson [Wed, 24 Jan 2001 23:50:56 +0000 (15:50 -0800)]
reload.c (find_reloads_subreg_address): Fail the substitution if the resulting address is insufficiently aligned.
* reload.c (find_reloads_subreg_address): Fail the substitution
if the resulting address is insufficiently aligned.
From-SVN: r39250
David Billinghurst [Wed, 24 Jan 2001 22:24:48 +0000 (22:24 +0000)]
Makefile.in: Explicitly generate a.out for check.
2001-01-24 David Billinghurst <David.Billinghurst@riotinto.com>
* libU77/Makefile.in: Explicitly generate a.out for check.
From-SVN: r39249
DJ Delorie [Wed, 24 Jan 2001 21:43:11 +0000 (16:43 -0500)]
Fix obvious bug in previous commit
From-SVN: r39248
DJ Delorie [Wed, 24 Jan 2001 21:10:06 +0000 (16:10 -0500)]
combine.c (combine_simplify_rtx): If the modes are all VOIDmode, check the original operand's mode also.
* combine.c (combine_simplify_rtx): If the modes are all VOIDmode,
check the original operand's mode also.
* simplify-rtx.c (simplify_ternary_operation): Ditto.
From-SVN: r39247
Joseph Myers [Wed, 24 Jan 2001 20:41:49 +0000 (20:41 +0000)]
c-parse.in (cast_expr): Move compound literals from here ...
* c-parse.in (cast_expr): Move compound literals from here ...
(primary): ... to here. Use standard terminology "compound
literal" instead of "constructor expression".
testsuite:
* gcc.c-torture/compile/
20010124-1.c: New test.
From-SVN: r39246
Alexandre Oliva [Wed, 24 Jan 2001 20:08:50 +0000 (20:08 +0000)]
ltmain.sh (TAG disable-shared, [...]): Make sure we keep at least one of build_libtool_libs or build_old_libs set to yes.
* ltmain.sh (TAG disable-shared, TAG disable-static): Make sure we
keep at least one of build_libtool_libs or build_old_libs set to
yes.
From-SVN: r39245
Joseph Myers [Wed, 24 Jan 2001 19:47:47 +0000 (19:47 +0000)]
texi2pod.pl: Handle "\,".
contrib:
* texi2pod.pl: Handle "\,".
gcc:
* gcc.1, cpp.1: Regenerate.
From-SVN: r39244
Mark Mitchell [Wed, 24 Jan 2001 19:19:26 +0000 (19:19 +0000)]
atomicity.h (__compare_and_swap): Remove.
* config/os/aix/bits/atomicity.h (__compare_and_swap): Remove.
(__always_swap): Likewise.
From-SVN: r39243
Alexandre Oliva [Wed, 24 Jan 2001 19:00:58 +0000 (19:00 +0000)]
calls.c (emit_library_call_value_1): Memory slot for pass-by-reference argument should have the mode of the argument...
* calls.c (emit_library_call_value_1): Memory slot for
pass-by-reference argument should have the mode of the argument,
not of the pointer to it.
From-SVN: r39242
Tom Tromey [Wed, 24 Jan 2001 18:47:35 +0000 (18:47 +0000)]
gcc.texi (G++ and GCC): Mention gcj manual.
* gcc.texi (G++ and GCC): Mention gcj manual.
(Standards): Link to section of manual mentioning gcj/Java
compatibility.
From-SVN: r39241
Jakub Jelinek [Wed, 24 Jan 2001 18:44:40 +0000 (19:44 +0100)]
cppfiles.c (_cpp_read_file): Add to dependencies if requested.
* cppfiles.c (_cpp_read_file): Add to dependencies if requested.
* cppinit.c (cpp_start_read): Remove deps_add_dep call.
* tradcpp.c (main): Add -imacros or -include'd dependencies
for -M*.
* cpp.texi (-M, -MM): Document -M -include behaviour.
From-SVN: r39240
Roger Collins [Wed, 24 Jan 2001 18:40:46 +0000 (18:40 +0000)]
* config/i386/xm-i386.h: Make __i386__ a boolean macro.
From-SVN: r39239
Tom Tromey [Wed, 24 Jan 2001 17:43:25 +0000 (17:43 +0000)]
Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
* Makefile.am (c_source_files): Added sf_fabs.c.
* java/lang/sf_fabs.c: New file.
From-SVN: r39238
Will Cohen [Wed, 24 Jan 2001 14:01:26 +0000 (14:01 +0000)]
abi64.h (RETURN_IN_MEMORY): Always take into account whether registers are 32 bits or 64 bits in size.
2001-01-24 Will Cohen <wcohen@redhat.com>
* config/mips/abi64.h (RETURN_IN_MEMORY): Always take into account
whether registers are 32 bits or 64 bits in size.
From-SVN: r39237
Ben Elliston [Wed, 24 Jan 2001 12:47:45 +0000 (12:47 +0000)]
m32r.h (PREDICATE_CODES): Remove m32r_not_same_reg.
2001-01-24 Ben Elliston <bje@redhat.com>
* config/m32r/m32r.h (PREDICATE_CODES): Remove m32r_not_same_reg.
From-SVN: r39236
Nathan Sidwell [Wed, 24 Jan 2001 11:31:40 +0000 (11:31 +0000)]
missed in
missed in
* call.c (add_builtin_candidate): Quote std properly, from
previous change.
commit
From-SVN: r39235
Nathan Sidwell [Wed, 24 Jan 2001 11:25:28 +0000 (11:25 +0000)]
pt.c (tsubst_decl): Remove IN_DECL parameter.
cp:
* pt.c (tsubst_decl): Remove IN_DECL parameter.
(tsubst_arg_types): Check parameter is not void.
(tsubst): Adjust tsubst_decl call.
testsuite:
* g++.old-deja/g++.pt/spec38.C: New test.
From-SVN: r39234