Aldy Hernandez [Mon, 25 Feb 2002 07:22:37 +0000 (07:22 +0000)]
c-typeck.c (push_init_level): Handle vectors.
2002-02-25 Aldy Hernandez <aldyh@redhat.com>
* c-typeck.c (push_init_level): Handle vectors.
From-SVN: r50021
Phil Edwards [Mon, 25 Feb 2002 05:24:53 +0000 (05:24 +0000)]
index.html: Update.
2002-02-25 Phil Edwards <pme@gcc.gnu.org>
* docs/html/faq/index.html: Update.
* docs/html/faq/index.txt: Regenerate.
From-SVN: r50020
Adam Megacz [Mon, 25 Feb 2002 05:21:45 +0000 (05:21 +0000)]
natPlainDatagramSocketImpl.cc: whops; removed 'make' typo.
2002-02-24 Adam Megacz <adam@xwt.org>
* java/net/natPlainDatagramSocketImpl.cc: whops; removed 'make'
typo. Sorry.
From-SVN: r50019
Alexandre Oliva [Mon, 25 Feb 2002 04:14:45 +0000 (04:14 +0000)]
sparc.c (const64_high_operand): Zero-extend operands of SPARC_SETHI_P.
* config/sparc/sparc.c (const64_high_operand): Zero-extend
operands of SPARC_SETHI_P.
(input_operand): Likewise.
(sparc_emit_set_const32): Likewise.
* config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
(SPARC_SETHI32_P): Zero-extend operand from 32 bits.
(CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
* config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
(movdi_insn_sp64_vis): Likewise.
(movdi split, movdf split): Use SETHI32.
* doc/md.texi: Document SPARC constraints L, M and N.
From-SVN: r50018
Adam Megacz [Mon, 25 Feb 2002 04:10:53 +0000 (04:10 +0000)]
natPlainDatagramSocketImpl.cc: Updated #includes for Win32...
2002-02-24 Adam Megacz <adam@xwt.org>
* java/net/natPlainDatagramSocketImpl.cc: Updated #includes
for Win32, changed #ifdefs to check WIN32 instead of the
(now-obsolete) USE_WINSOCK, and removed support for socket
timeouts on Win32 pending further discussion.
From-SVN: r50017
Adam Megacz [Mon, 25 Feb 2002 04:04:43 +0000 (04:04 +0000)]
Makefile.am: Added win32_threads.c to sources list.
2002-02-24 Adam Megacz <adam@xwt.org>
* Makefile.am: Added win32_threads.c to sources list.
* win32_threads.c: Added two */'s which I had neglected.
From-SVN: r50016
Aldy Hernandez [Mon, 25 Feb 2002 02:30:33 +0000 (02:30 +0000)]
rs6000.md ("get_vrsave_internal"): New.
2002-02-25 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/rs6000.md ("get_vrsave_internal"): New.
("*set_vrsave_internal"): use mfspr for Darwin.
* config/rs6000/rs6000.c (rs6000_emit_prologue): Call
gen_get_vrsave_internal.
From-SVN: r50015
Adam Megacz [Mon, 25 Feb 2002 02:01:29 +0000 (02:01 +0000)]
win32-threads.cc (_Jv_ThreadInitData): _Jv_Malloc instead of new
2002-02-24 Adam Megacz <adam@xwt.org>
* win32-threads.cc (_Jv_ThreadInitData): _Jv_Malloc instead of new
* win32-threads.cc (_Jv_ThreadDestroyData): _Jv_Free instead of
delete
From-SVN: r50014
Adam Megacz [Sun, 24 Feb 2002 23:17:26 +0000 (23:17 +0000)]
Win32Process.java: Created a dummy class to allow build process to run to completion.
2002-02-24 Adam Megacz <adam@xwt.org>
* java/lang/Win32Process.java: Created a dummy class to allow
build process to run to completion.
From-SVN: r50013
Alan Modra [Sun, 24 Feb 2002 23:17:23 +0000 (23:17 +0000)]
New test.
From-SVN: r50012
Richard Kenner [Sun, 24 Feb 2002 21:43:52 +0000 (21:43 +0000)]
* optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
From-SVN: r50011
Christian Jönsson [Sun, 24 Feb 2002 20:45:15 +0000 (20:45 +0000)]
test_summary: Additional to XPASS and FAIL...
* test_summary: Additional to XPASS and FAIL, add UNRESOLVED,
WARNING and ERROR output from the *.sum files.
From-SVN: r50010
Anthony Green [Sun, 24 Feb 2002 19:59:46 +0000 (19:59 +0000)]
jar -C fix
From-SVN: r50009
Craig Rodrigues [Sun, 24 Feb 2002 18:57:38 +0000 (18:57 +0000)]
re PR c++/4093 (Return type mis-match for (a?b:c) constructs in gcc/cp/cp-tree.h)
2002-02-24 Craig Rodrigues <rodrigc@gcc.gnu.org>
PR c++/4093
* cp-tree.h (SET_BINFO_MARKED): Cast false part of condition
to void.
From-SVN: r50008
Jeff Sturm [Sun, 24 Feb 2002 17:55:44 +0000 (17:55 +0000)]
natMethod.cc (_Jv_CallAnyMethodA): Define ffi_result union for ffi_call result.
* java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA):
Define ffi_result union for ffi_call result. Cast
ffi_result members to jvalue.
From-SVN: r50007
Jeff Sturm [Sun, 24 Feb 2002 17:31:45 +0000 (17:31 +0000)]
ffi.h.in: Add typedef for ffi_arg.
* include/ffi.h.in: Add typedef for ffi_arg.
* src/ffitest.c (main): Declare rint with ffi_arg.
From-SVN: r50006
Neil Booth [Sun, 24 Feb 2002 12:52:30 +0000 (12:52 +0000)]
cpplex.c (cpp_interpret_charconst): Get signedness or otherwise of wide character constants correct.
* cpplex.c (cpp_interpret_charconst): Get signedness or
otherwise of wide character constants correct.
* cppexp.c (lex): Get signedness of wide charconsts correct.
* testsuite/gcc.dg/cpp/wchar-1.c: New test.
From-SVN: r50005
Richard Kenner [Sun, 24 Feb 2002 12:46:52 +0000 (12:46 +0000)]
optabs.c (widen_operand): Only call convert_modes for promoted SUBREG if signedness matches.
* optabs.c (widen_operand): Only call convert_modes for
promoted SUBREG if signedness matches.
* config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
From-SVN: r50004
GCC Administrator [Sun, 24 Feb 2002 08:16:22 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r50002
Jeff Sturm [Sun, 24 Feb 2002 06:45:19 +0000 (06:45 +0000)]
InvokeReturn.java: New file.
* libjava.lang/InvokeReturn.java: New file.
* libjava.lang/InvokeReturn.out: New file.
From-SVN: r50001
Joseph Myers [Sun, 24 Feb 2002 01:37:10 +0000 (01:37 +0000)]
gcc_release: Revert change to -p interface.
* gcc_release: Revert change to -p interface. Allow for local and
remote cases in creating directories. Give an error if -p
argument names a directory.
From-SVN: r50000
Neil Booth [Sat, 23 Feb 2002 20:21:39 +0000 (20:21 +0000)]
cpplib.c (glue_header_name): Use local buffer to build up header name.
* cpplib.c (glue_header_name): Use local buffer to build up
header name.
From-SVN: r49998
Neil Booth [Sat, 23 Feb 2002 17:10:34 +0000 (17:10 +0000)]
* doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
From-SVN: r49997
Kazu Hirata [Sat, 23 Feb 2002 14:17:25 +0000 (14:17 +0000)]
h8300.c (output_simode_bld): Handle H8/300 and H8/300[HS] separately.
* config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
H8/300[HS] separately.
* config/h8300/h8300.md: Remove the early clobber constraint
from bit field patterns.
From-SVN: r49995
Kazu Hirata [Sat, 23 Feb 2002 13:45:36 +0000 (13:45 +0000)]
h8300.md (mulqihi3): Tighten predicates to register_operand.
* config/h8300/h8300.md (mulqihi3): Tighten predicates to
register_operand.
(mulhisi3): Likewise.
(umulqisi3): Likewise.
(umulhisi3): Likewise.
From-SVN: r49994
Neil Booth [Sat, 23 Feb 2002 13:42:40 +0000 (13:42 +0000)]
cppinit.c (output_deps): Correct test for stdout output.
* cppinit.c (output_deps): Correct test for stdout output.
(init_dependency_output): Cure warning.
From-SVN: r49993
Richard Kenner [Sat, 23 Feb 2002 13:21:17 +0000 (08:21 -0500)]
expr.c (store_expr): When converting expression to promoted equivalent type...
* expr.c (store_expr): When converting expression to promoted
equivalent type, allow using SUBREG_REG of TARGET as the target
of the expansion of EXP.
* loop.c (basic_induction_var, case SUBREG): Always look inside.
* config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
(alpha_emit_set_const): Handle SImode when can't make new pseudos.
(alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
* config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
From-SVN: r49992
Joseph Myers [Sat, 23 Feb 2002 12:59:09 +0000 (12:59 +0000)]
contribute.texi, [...]: Remove trailing whitespace.
* doc/contribute.texi, doc/extend.texi, doc/install.texi,
doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
From-SVN: r49991
Alexandre Oliva [Sat, 23 Feb 2002 10:06:59 +0000 (10:06 +0000)]
Makefile.in (MAKEINFO): Don't assume makeinfo will be built just because its Makefile is there...
* Makefile.in (MAKEINFO): Don't assume makeinfo will be built just
because its Makefile is there; test for the executable instead.
From-SVN: r49990
Jakub Jelinek [Sat, 23 Feb 2002 08:56:22 +0000 (09:56 +0100)]
re PR rtl-optimization/5747 (ss20020218 fails to build binutils-2.11.93.0.2 on sparc-suse-linux - ICE in loop.c)
PR optimization/5747
* loop.c (scan_loop): Update reg info if move_movables created new
pseudos.
* gcc.dg/
20020222-1.c: New test.
From-SVN: r49989
GCC Administrator [Sat, 23 Feb 2002 08:16:12 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r49987
David Edelsohn [Sat, 23 Feb 2002 05:59:47 +0000 (05:59 +0000)]
* gcc.c (init_gcc_spec): Revert last change.
From-SVN: r49986
Alexandre Oliva [Sat, 23 Feb 2002 03:15:37 +0000 (03:15 +0000)]
Makefile.in, [...]: Rebuilt.
* Makefile.in, gcj/Makefile.in, include/Makefile.in: Rebuilt.
* testsuite/Makefile.in: Likewise.
From-SVN: r49985
Alan Modra [Sat, 23 Feb 2002 02:11:07 +0000 (02:11 +0000)]
- Add missing mask_operand patch.
From-SVN: r49984
David Edelsohn [Sat, 23 Feb 2002 02:07:21 +0000 (21:07 -0500)]
[multiple changes]
2002-02-23 David Edelsohn <edelsohn@gnu.org>
* config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
gpc_reg_operand constraint.
2002-02-23 Alan Modra <amodra@bigpond.net.au>
* config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
Simplify comparison of `low'.
(add_operand): Fix formatting.
(non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
(rs6000_stack_info): Remove redundant test setting push_p.
(output_toc): Fix formatting.
* config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
cc_reg_not_cr0_operand constraint.
(booldi3, boolcdi3 splitters): Same.
From-SVN: r49983
Aldy Hernandez [Sat, 23 Feb 2002 00:51:51 +0000 (00:51 +0000)]
altivec.h: Add extra level of parentheses on casts.
2002-02-23 Aldy Hernandez <aldyh@redhat.com>
* altivec.h: Add extra level of parentheses on casts.
From-SVN: r49982
Tom Tromey [Sat, 23 Feb 2002 00:42:13 +0000 (00:42 +0000)]
re PR java/2369 (--main should check the following symbol)
Fix for PR java/2369:
* jvspec.c (verify_class_name): New function.
(lang_specific_driver): Call it.
(JAVA_START_CHAR_P): New macro.
(JAVA_PART_CHAR_P): Likewise.
From-SVN: r49981
Per Bothner [Sat, 23 Feb 2002 00:15:49 +0000 (16:15 -0800)]
URL.java (getPath): New JDK 1.3 method.
* java/net/URL.java (getPath): New JDK 1.3 method.
* java/net/URLStreamHandler.java (parseURL):
It is wrong to prepend '/' to the file part of a relative url.
* java/net/URLStreamHandler.java (parseURL):
Minor optizations - append '/' rather than "/".
* java/net/URLStreamHandler.java (parseURL):
Don't canonicalize "xx/.." or "./" URLs - JDK doesn't.
We probably should canonicalize for a context-relative url, though.
* java/net/URL.java (sameFile): Delegate to URLStreamHandler.
* java/net/URLStreamHandler.java (canonicalizeFilename): New helper.
(sameFile): New method. Uses canonicalizeFilename.
From-SVN: r49980
David Edelsohn [Sat, 23 Feb 2002 00:00:27 +0000 (00:00 +0000)]
gcc.c (init_gcc_spec): Do not link with static libgcc.a if gcc invoked with -shared-libgcc.
* gcc.c (init_gcc_spec): Do not link with static libgcc.a if
gcc invoked with -shared-libgcc.
From-SVN: r49979
Per Bothner [Fri, 22 Feb 2002 23:59:39 +0000 (15:59 -0800)]
class.c: Change vtable to be more compatible with g++ v3 abi.
* class.c: Change vtable to be more compatible with g++ v3 abi.
(get_dispatch_table): Prepend offset-to-top (always 0) and
type_info pointer (currently unimplemented hence NULL) to vtable.
Specifically, prepend offset-to-top and typeinfo ptr (currently null).
(make_class_data): Variable dtable_start_offset is sizeof 2 pointers.
Adjust vtable pointers by dtable_start_offse - i.e. skip new words.
(build_dtable_decl): Add declarations for new fields.
From-SVN: r49978
Phil Edwards [Fri, 22 Feb 2002 23:45:28 +0000 (23:45 +0000)]
acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Fix comment.
2002-02-22 Phil Edwards <pme@gcc.gnu.org>
* acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Fix comment.
* aclocal.m4: Regenerate.
* docs/html/configopts.html: Document --enable-symvers.
* config/linker-map.gnu: Break libsupc++ symbols out to their own tag.
From-SVN: r49977
Tom Tromey [Fri, 22 Feb 2002 23:24:45 +0000 (23:24 +0000)]
natSystem.cc (init_properties): Include the `Inc.' in java.vendor and java.vm.vendor.
* java/lang/natSystem.cc (init_properties): Include the `Inc.' in
java.vendor and java.vm.vendor.
* gnu/java/rmi/rmic/RMIC.java (parseOptions): Only print most
recent copyright date.
* gnu/gcj/convert/Convert.java (version): Print `Inc'.
* gij.cc (version): Print `Inc'.
From-SVN: r49975
Alexandre Oliva [Fri, 22 Feb 2002 21:31:06 +0000 (21:31 +0000)]
acinclude.m4 (CXX): AC_SUBST it, instead of glibcpp_CXX.
* acinclude.m4 (CXX): AC_SUBST it, instead of glibcpp_CXX.
* aclocal.m4, configure: Rebuilt.
From-SVN: r49974
Philipp Thomas [Fri, 22 Feb 2002 21:23:09 +0000 (21:23 +0000)]
tempbuf.h: get_temporary_buffer and return_temporary_buffer are in namespace std...
2002-02-22 Philipp Thomas <pthomas@suse.de>
* include/backward/tempbuf.h: get_temporary_buffer and
return_temporary_buffer are in namespace std, not in __gnu_cxx.
From-SVN: r49973
Richard Kenner [Fri, 22 Feb 2002 21:18:25 +0000 (16:18 -0500)]
expr.c (store_expr): When converting expression to promoted equivalent type...
* expr.c (store_expr): When converting expression to promoted
equivalent type, allow using SUBREG_REG of TARGET as the target
of the expansion of EXP.
* loop.c (basic_induction_var, case SUBREG): Always look inside.
* config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
(alpha_emit_set_const): Handle SImode when can't make new pseudos.
(alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
* config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
From-SVN: r49972
Jakub Jelinek [Fri, 22 Feb 2002 21:09:09 +0000 (22:09 +0100)]
re PR c++/5748 (g++ dies with optimization)
PR c++/5748
* stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
decl if any of elements was TREE_USED.
* g++.dg/opt/anonunion1.C: New test.
From-SVN: r49971
Alexandre Oliva [Fri, 22 Feb 2002 18:43:54 +0000 (18:43 +0000)]
sol2.h: Don't include sys/mman.h.
* config/sparc/sol2.h: Don't include sys/mman.h.
* config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
(arith_4096_operand): Don't throw high bits away.
(const64_operand): Take sign extension of CONST_INTs into account.
(const64_high_operand, sparc_emit_set_const32): Likewise.
(GEN_HIGHINT64): Likewise.
(sparc_emit_set_const64_quick1): Likewise.
(const64_is_2insns): Likewise.
(print_operand): Use trunc_int_for_mode for sign extension.
* config/sparc/sparc.h (SMALL_INT32): Likewise.
* config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
chars. Assume CONST_INT is already properly sign-extended.
(movdi split): Sign-extend each SImode part.
(andsi3 split): Don't mask high bits off, so that result
remains properly sign-extend.
(iorsi3 split): Likewise.
(xorsi3 split): Likewise.
From-SVN: r49970
Jakub Jelinek [Fri, 22 Feb 2002 17:42:19 +0000 (18:42 +0100)]
re PR other/5746 (0220 cvs crashes using undeclared type)
PR other/5746
* semantics.c (finish_switch_cond): Don't call get_unwidened
if error_mark_node.
From-SVN: r49969
Jim Blandy [Fri, 22 Feb 2002 17:01:23 +0000 (17:01 +0000)]
Allow the user to specify functions for allocating memory for splay tree roots and nodes.
include:
Allow the user to specify functions for allocating memory for
splay tree roots and nodes.
* splay-tree.h (splay_tree_allocate_fn, splay_tree_deallocate_fn):
New types.
(splay_tree): New fields: `allocate', `deallocate', and
`allocate_data'.
(splay_tree_new_with_allocator): New function declaration.
libiberty:
* splay-tree.c (splay_tree_xmalloc_allocate,
splay_tree_xmalloc_deallocate): New functions.
(splay_tree_new): Call splay_tree_new_with_allocator, passing the
above functions and a dummy data pointer.
(splay_tree_new_with_allocator): New function.
(splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
splay_tree_remove): Use the splay tree's allocation and
deallocation functions.
From-SVN: r49968
Per Bothner [Fri, 22 Feb 2002 13:57:43 +0000 (05:57 -0800)]
parse.y (patch_method_invocation): Set CAN_COMPLETE_NORMALLY on call to finit$ (otherwise generate_bytecode_insns...
* parse.y (patch_method_invocation): Set CAN_COMPLETE_NORMALLY on call
to finit$ (otherwise generate_bytecode_insns drops it). However, we
don't need to set it on the COMPOUND_EXPR - the caller does that.
From-SVN: r49966
Per Bothner [Fri, 22 Feb 2002 13:53:23 +0000 (05:53 -0800)]
Connection.java (conect): Open the input and/or output streams immediately here, instead of using File.exists.
* gnu/gcj/protocol/file/Connection.java (conect): Open the input
and/or output streams immediately here, instead of using File.exists.
(inputStream, outputStream): New fields to save open streams.
(getInputStream, getOutputStream): Use already-opened streams.
From-SVN: r49965
Benjamin Kosnik [Fri, 22 Feb 2002 12:09:56 +0000 (12:09 +0000)]
configure.in (target_alias): Default to yes.
2002-02-21 Benjamin Kosnik <bkoz@redhat.com>
* configure.in (target_alias): Default to yes.
* acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Add check for shared
libgcc to default case.
From-SVN: r49962
Nathan Sidwell [Fri, 22 Feb 2002 11:57:52 +0000 (11:57 +0000)]
PR c++/2645, DR 295
cp:
PR c++/2645, DR 295
* cp-tree.h (tsubst_flags_t): Add tf_ignore_bad_quals,
tf_keep_type_decl.
(make_typename_type): Use tsubst_flags_t.
* decl.c (make_typename_type): Adjust. Return non-artificial
TYPE_DECLs, if required.
(grokdeclarator): Simplify CVR qualification handling. Allow bad
qualifiers on typedef types.
* decl2.c (handle_class_head): Adjust make_typename_type call.
* parse.y (nested_name_specifier): Likewise.
(typename_sub0): Likewise.
(typename_sub1): Likewise.
* pt.c (convert_template_argument): Adjust make_typename_type
return value.
(tsubst): Adjust cp_build_qualified_type_real calls.
(check_cv_quals_for_unify): Cope with alowing bad qualifications
on template type parms.
(instantiate_decl): Recheck substitutions to give warnings on bad
qualifications.
* tree.c (cp_build_qualified_type_real): Use tf_allow_bad_quals.
testsuite:
* g++.dg/template/qualttp19.C: New test.
* g++.dg/template/qualttp20.C: New test.
* g++.old-deja/g++.jason/report.C: Adjust expected errors
* g++.old-deja/g++.other/qual1.C: Likewise.
From-SVN: r49961
Richard Sandiford [Fri, 22 Feb 2002 11:50:47 +0000 (11:50 +0000)]
* fold-const.c (fold): Fix typo in comments.
From-SVN: r49960
Benjamin Kosnik [Fri, 22 Feb 2002 11:36:26 +0000 (11:36 +0000)]
configure.in (target_alias): Default to yes.
2002-02-21 Benjamin Kosnik <bkoz@redhat.com>
* configure.in (target_alias): Default to yes.
* acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Add check for shared
libgcc to default case.
From-SVN: r49959
GCC Administrator [Fri, 22 Feb 2002 08:19:09 +0000 (08:19 +0000)]
Daily bump.
From-SVN: r49957
Diego Novillo [Fri, 22 Feb 2002 04:42:38 +0000 (04:42 +0000)]
* Makefile.in (langhooks.o): Update dependencies.
From-SVN: r49956
Diego Novillo [Fri, 22 Feb 2002 04:23:21 +0000 (04:23 +0000)]
* langhooks.c: Include flags.h.
From-SVN: r49955
Alexandre Oliva [Fri, 22 Feb 2002 03:21:28 +0000 (03:21 +0000)]
acinclude.m4 (LIB_AC_PROG_CXX): Copied from libstdc++-v3.
* acinclude.m4 (LIB_AC_PROG_CXX): Copied from libstdc++-v3.
Use it.
* Makefile.am (LIBLINK): Use CXX (and its tag) for linking.
* aclocal.m4, configure, Makefile.in: Rebuilt.
From-SVN: r49954
Alexandre Oliva [Fri, 22 Feb 2002 03:21:02 +0000 (03:21 +0000)]
configure.in (CXX_FOR_TARGET): Add -shared-libgcc for libstdc++-v3 and libjava.
* configure.in (CXX_FOR_TARGET): Add -shared-libgcc for
libstdc++-v3 and libjava.
From-SVN: r49953
Mark Mitchell [Fri, 22 Feb 2002 01:54:44 +0000 (01:54 +0000)]
Fix typo
[[Split portion of a mixed commit.]]
From-SVN: r49952.2
Mark Mitchell [Fri, 22 Feb 2002 01:52:35 +0000 (01:52 +0000)]
gcc_release: Correct handling of diff-generation.
* gcc_release: Correct handling of diff-generation. Add
"diffs" major mode.
[[Split portion of a mixed commit.]]
From-SVN: r49951.2
Aldy Hernandez [Fri, 22 Feb 2002 00:22:33 +0000 (00:22 +0000)]
cl
From-SVN: r49949
Aldy Hernandez [Fri, 22 Feb 2002 00:21:35 +0000 (00:21 +0000)]
forgot cl
From-SVN: r49948
Aldy Hernandez [Fri, 22 Feb 2002 00:09:04 +0000 (00:09 +0000)]
attr-alwaysinline.c: New.
2002-02-21 Aldy Hernandez <aldyh@redhat.com>
* gcc.dg/attr-alwaysinline.c: New.
* c-common.c (c_common_post_options): Set inline trees by
default.
* doc/extend.texi (Function Attributes): Document always_inline
attribute.
Update documentation about inlining when not optimizing.
* cp/decl.c (duplicate_decls): Merge always_inline attribute.
* cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
unless DECL_ALWAYS_INLINE.
* c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
unless DECL_ALWAYS_INLINE.
(c_disregard_inline_limits): Disregard if always_inline set.
* langhooks.c (lhd_tree_inlining_disregard_inline_limits):
Disregard if always_inline set.
(lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
unless DECL_ALWAYS_INLINE.
* attribs.c (handle_always_inline_attribute): New.
(c_common_attribute_table): Add always_inline.
* config/rs6000/altivec.h: Add prototypes for builtins
requiring the always_inline attribute.
From-SVN: r49947
Eric Christopher [Fri, 22 Feb 2002 00:07:06 +0000 (00:07 +0000)]
expmed.c (store_bit_field): Try to simplify the subreg before generating a new one when...
2002-02-21 Eric Christopher <echristo@redhat.com>
* expmed.c (store_bit_field): Try to simplify the subreg
before generating a new one when when the mode size of
value is less than maxmode.
From-SVN: r49946
Richard Henderson [Thu, 21 Feb 2002 23:06:16 +0000 (15:06 -0800)]
emit-rtl.c (offset_address): Use simplify_gen_binary rather than gen_rtx_PLUS to form the sum.
* emit-rtl.c (offset_address): Use simplify_gen_binary rather
than gen_rtx_PLUS to form the sum.
* explow.c (force_reg): Rearrange to not allocate new pseudo
when force_operand returns a register.
* expr.c (expand_assignment): Allow offset_rtx expansion to
return a sum. Do not force addresses into registers.
(expand_expr): Likewise.
* simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
to canonicalize arithmetic that didn't simpify.
(simplify_plus_minus): New argument force; update
all callers. Don't split CONST unless we can do something with it,
and wouldn't lose the constness of the operands.
* config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
that we generated earlier.
From-SVN: r49945
Tom Tromey [Thu, 21 Feb 2002 23:03:14 +0000 (23:03 +0000)]
dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
* dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
(output_line_info): Use constant `1', with a long explanatory
comment.
* system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
From-SVN: r49944
J"orn Rennecke [Thu, 21 Feb 2002 22:48:02 +0000 (22:48 +0000)]
jump.c (redirect_jump): If old label has no UID, don't try to delete it.
* jump.c (redirect_jump): If old label has no UID, don't try to
delete it.
From-SVN: r49943
J"orn Rennecke [Thu, 21 Feb 2002 21:29:28 +0000 (21:29 +0000)]
sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
* sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
If input is constant, do shifts at compile time.
From-SVN: r49942
Joseph Myers [Thu, 21 Feb 2002 21:22:09 +0000 (21:22 +0000)]
* doc/extend.texi: Fix some more overfull hboxes.
From-SVN: r49941
Jakub Jelinek [Thu, 21 Feb 2002 21:16:22 +0000 (22:16 +0100)]
re PR rtl-optimization/4994 (ICE with "-fno-exceptions -O2 -mmmx -march=athlon")
PR optimization/4994
* config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
register moves.
* g++.dg/opt/mmx1.C: New test.
From-SVN: r49939
Jakub Jelinek [Thu, 21 Feb 2002 21:11:08 +0000 (22:11 +0100)]
re PR c++/4574 (Internal compiler error in `expand_and', at expmed.c:4055)
PR c++/4574
* expr.h (expand_and): Add mode argument.
* expmed.c (expand_and): Add mode argument.
(expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
* expr.c (store_field, expand_expr, do_store_flag): Likewise.
* except.c (expand_builtin_extract_return_addr): Likewise.
* config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
* config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
* config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
* config/c4x/c4x.md: Use GEN_INT (x) instead of
gen_rtx (CONST_INT, VOIDmode, x).
* gcc.dg/
20020220-1.c: New test.
From-SVN: r49938
Jakub Jelinek [Thu, 21 Feb 2002 20:23:48 +0000 (21:23 +0100)]
re PR c/4697 (Warning 'value computed is not used' missing)
PR c/4697:
* stmt.c (warn_if_unused_value): Move side effects test once more.
* gcc.dg/
20020220-2.c: New test.
From-SVN: r49937
Torbjorn Granlund [Thu, 21 Feb 2002 19:27:50 +0000 (19:27 +0000)]
avr.md: Add more patterns for mized-mode add and subtract (addsi3_zero_extend...
* config/avr/avr.md: Add more patterns for mized-mode add and subtract
(addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
From-SVN: r49936
Alexandre Oliva [Thu, 21 Feb 2002 19:21:35 +0000 (19:21 +0000)]
rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of SUBREG or ZERO_EXTEND.
* rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
SUBREG or ZERO_EXTEND.
From-SVN: r49935
Andreas Tobler [Thu, 21 Feb 2002 19:14:28 +0000 (20:14 +0100)]
ffi_darwin.c (ffi_prep_args): Skip appropriate number of GPRs for floating-point arguments.
2002-02-21 Andreas Tobler <toa@pop.agri.ch>
* src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate
number of GPRs for floating-point arguments.
From-SVN: r49934
J"orn Rennecke [Thu, 21 Feb 2002 16:42:28 +0000 (16:42 +0000)]
sh.h (current_function_anonymous_args): Remove.
* sh.h (current_function_anonymous_args): Remove.
(SETUP_INCOMING_VARARGS): Don't set it - just check that one
of current_function_varargs and current_function_stdarg is set.
* sh.c (sh_expand_prologue): Check current_function_varargs /
current_function_stdarg / TARGET_SH5 instead of
current_function_anonymous_args.
* sh64.h (TARGET_VERSION): Define.
Fix comments that to refer to SH architecture -
the architecture is no longer exclusive to Hitachi.
From-SVN: r49931
Nic Ferrier [Thu, 21 Feb 2002 10:58:12 +0000 (10:58 +0000)]
Makefile.am (libgcj.jar:): Change to -CLASSPATH
* Makefile.am (libgcj.jar:): Change to -CLASSPATH
(.class.h:): Ditto.
(java/lang/ClassLoader.h:): Ditto.
(java/lang/Thread.h:): Ditto.
(java/lang/String.h:): Ditto.
(java/lang/reflect/Constructor.h:): Ditto.
(java/lang/reflect/Field.h:): Ditto.
(java/lang/reflect/Method.h:): Ditto.
(gnu/gcj/runtime/VMClassLoader.h:): Ditto.
(java/io/ObjectInputStream$$GetField.h:): Ditto.
(java/io/ObjectOutputStream$$PutField.h:): Ditto.
* Makefile.in: Rebuilt with libgcj Automake.
From-SVN: r49927
GCC Administrator [Thu, 21 Feb 2002 08:16:32 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r49925
David Edelsohn [Thu, 21 Feb 2002 02:48:08 +0000 (21:48 -0500)]
- remove mistaken ChangeLog item.
From-SVN: r49924
David Edelsohn [Thu, 21 Feb 2002 02:34:20 +0000 (21:34 -0500)]
[multiple changes]
2002-02-20 David Edelsohn <edelsohn@gnu.org>
* config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
VRSAVE_REGNO on TARGET_ALTIVEC.
2002-02-20 Alan Modra <amodra@bigpond.net.au>
* config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
bits of SImode const_int.
(includes_rshift_p): Likewise.
(print_operand): Call mask_operand and mask64_operand with correct
mode.
(rs6000_output_function_epilogue): Pad traceback table to word.
* config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
(EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
mask64_operand with correct mode.
(RETURN_IN_MEMORY): Use HOST_WIDE_INT, not HOST_WIDEST_INT.
(FUNCTION_ARG_REGNO_P): Correct parentheses.
From-SVN: r49923
Nic Ferrier [Wed, 20 Feb 2002 23:22:32 +0000 (23:22 +0000)]
gcj.texi: Option `--classpath' becomes `--CLASSPATH.'Option `--CLASSPATH' becomes...
* gcj.texi: Option `--classpath' becomes `--CLASSPATH.'Option
`--CLASSPATH' becomes `--classpath.'
* gjavah.c: Likewise.
* jcf-dump.c: Likewise.
* lang-options.h: Likewise.
* lang.c: Likewise.
* jcf-path.c: Updated comment.
(jcf_path_classpath_arg): Renamed `jcf_path_CLASSPATH_arg.'
(jcf_path_CLASSPATH_arg): Renamed `jcf_path_classpath_arg.'
* jcf.h (jcf_path_CLASSPATH_arg): Ditto.
(jcf_path_CLASSPATH_arg): Ditto.
(classpath_u): Updated leading comment.
From-SVN: r49922
Jakub Jelinek [Wed, 20 Feb 2002 23:19:24 +0000 (00:19 +0100)]
re PR debug/4461 (Invalid dawrf2 debug code)
PR debug/4461
* varasm.c (get_pool_constant_mark): New.
* rtl.h (get_pool_constant_mark): Add prototype.
* dwarf2out.c (mem_loc_descriptor): A pool constant cannot
be represented if it has not been output.
* gcc.dg/debug/
20020220-1.c: New test.
From-SVN: r49921
Alexandre Oliva [Wed, 20 Feb 2002 23:15:00 +0000 (23:15 +0000)]
combine.c (do_SUBST): Sanity check substitutions of CONST_INTs...
* combine.c (do_SUBST): Sanity check substitutions of
CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
(subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
CONST_INT into its operand.
(known_cond): Likewise, for ZERO_EXTEND.
* simplify-rtx.c (simplify_unary_operation): Fix condition to
allow for simplification of wide modes. Reject CONST_INTs in
ZERO_EXTEND when their actual mode is not given.
From-SVN: r49920
Alexandre Oliva [Wed, 20 Feb 2002 23:13:17 +0000 (23:13 +0000)]
* gcc.c-torture/compile/
20020110.c: New test.
From-SVN: r49919
Nic Ferrier [Wed, 20 Feb 2002 23:12:25 +0000 (23:12 +0000)]
gcj.texi: Option `--classpath' becomes `--CLASSPATH.'Option `--CLASSPATH' becomes...
* gcj.texi: Option `--classpath' becomes `--CLASSPATH.'Option
`--CLASSPATH' becomes `--classpath.'
* gjavah.c: Likewise.
* jcf-dump.c: Likewise.
* lang-options.h: Likewise.
* lang.c: Likewise.
* jcf-path.c: Updated comment.
(jcf_path_classpath_arg): Renamed `jcf_path_CLASSPATH_arg.'
(jcf_path_CLASSPATH_arg): Renamed `jcf_path_classpath_arg.'
* jcf.h (jcf_path_CLASSPATH_arg): Ditto.
(jcf_path_CLASSPATH_arg): Ditto.
(classpath_u): Updated leading comment.
From-SVN: r49918
Alexandre Oliva [Wed, 20 Feb 2002 23:10:36 +0000 (23:10 +0000)]
c-decl.c (pushdecl): If no global declaration is found for an extern declaration in block scope...
* c-decl.c (pushdecl): If no global declaration is found for an
extern declaration in block scope, try a limbo one.
From-SVN: r49917
Jakub Jelinek [Wed, 20 Feb 2002 23:05:47 +0000 (00:05 +0100)]
re PR c++/4401 (Array subscript evaluation sometimes wrong for 64-bit architectures)
PR c++/4401
* c-common.c (pointer_int_sum): Moved from...
* c-typeck.c (pointer_int_sum): ...here.
* c-common.h (pointer_int_sum): Add prototype.
* typeck.c (cp_pointer_int_sum): Renamed from
pointer_int_sum, call pointer_int_sum.
* g++.dg/opt/ptrintsum1.C: New test.
From-SVN: r49916
Jakub Jelinek [Wed, 20 Feb 2002 22:59:35 +0000 (23:59 +0100)]
re PR c++/5713 (Redeclaration causes ice in in make_decl_rtl, at varasm.c:835)
PR c++/5713
* c-decl.c (duplicate_decls): Return 0 if issued error about
redeclaration.
* decl.c (duplicate_decls): Return 0 if issued error about
redeclaration.
* gcc.dg/noncompile/
20020220-1.c: New test.
From-SVN: r49915
Jakub Jelinek [Wed, 20 Feb 2002 22:54:35 +0000 (23:54 +0100)]
re PR c/4389 (Improper constant folding)
PR c/4389
* tree.c (host_integerp): Ensure that the constant integer is
representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
when pos is zero or non-zero respectively. Clarify comment.
* c-format.c (check_format_info_recurse): Fix host_integerp
usage; the pos argument should be zero when assigning to a
signed HOST_WIDE_INT.
* gcc.dg/
20020219-1.c: New test.
From-SVN: r49914
Phil Edwards [Wed, 20 Feb 2002 22:10:39 +0000 (22:10 +0000)]
acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES): Also check version.
2002-02-20 Phil Edwards <pme@gcc.gnu.org>
* acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES): Also check version.
(GLIBCPP_ENABLE_SYMVERS): Redo logic, use linker version.
* configure.in (GLIBCPP_ENABLE_SYMVERS): Move later in the script.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* config/linker-map.dummy: New file. Contains nothing useful.
From-SVN: r49913
Richard Henderson [Wed, 20 Feb 2002 21:57:23 +0000 (13:57 -0800)]
i386.c (ix86_expand_vector_move): Use the mode of the operand, rather than assuming TImode.
* config/i386/i386.c (ix86_expand_vector_move): Use the mode
of the operand, rather than assuming TImode.
(ix86_expand_binop_builtin): Cope with commutative patterns
using nonimmediate_operand for both operands.
(ix86_expand_timode_binop_builtin): Likewise.
(ix86_expand_store_builtin): Validate operand 1.
(ix86_expand_unop1_builtin): Likewise.
From-SVN: r49912
Philip Blundell [Wed, 20 Feb 2002 21:39:56 +0000 (21:39 +0000)]
re PR target/5705 (code generated for ARM interrupt("IRQ") attribute)
2002-02-20 Philip Blundell <philb@gnu.org>
PR 5705
* config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
From-SVN: r49911
Benjamin Kosnik [Wed, 20 Feb 2002 21:06:42 +0000 (21:06 +0000)]
money_put_members_char.cc: Fix.
2002-02-20 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/22_locale/money_put_members_char.cc: Fix.
* testsuite/22_locale/money_put_members_wchar_t.cc: Fix.
* testsuite/27_io/standard_manipulators.cc: New file.
* testsuite/27_io/ios_manip_basefield.cc: Check results, now failing.
* testsuite/27_io/ios_manip_fmtflags.cc: Use locale::classic().
From-SVN: r49910
Per Bothner [Wed, 20 Feb 2002 19:53:49 +0000 (11:53 -0800)]
builtins.c (check_for_builtin): New function.
* builtins.c (check_for_builtin): New function.
(build_call_or_builtin): Remove.
* java-tree.h: Update accordingly.
* expr.c (expand_invoke): Use build + check_for_builtin instead
of build_call_or_builtin.
* parse.y (patch_invoke): Likewise. This avoids needlessly creating
a new CALL_EXPR node, which means we don't lose the CALL_USING_SUPER
flag (which had caused jcf-write to incorrectly emit invokevirtual).
From-SVN: r49909
Jakub Jelinek [Wed, 20 Feb 2002 19:46:29 +0000 (20:46 +0100)]
* gcc.c-torture/execute/
20020219-1.c: New test.
From-SVN: r49908
Richard Henderson [Wed, 20 Feb 2002 18:34:28 +0000 (10:34 -0800)]
re PR c/5615 (ICE in size_binop, at fold-const.c:1914)
PR c/5615
* expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
From-SVN: r49904
Tom Tromey [Wed, 20 Feb 2002 18:31:24 +0000 (18:31 +0000)]
fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
* config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
* config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
* config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
* config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
* dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
unconditionally.
From-SVN: r49903
Alan Matsuoka [Wed, 20 Feb 2002 18:19:38 +0000 (18:19 +0000)]
rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look for (const_int 0) in X not just INTVAL.
Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
* config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
for (const_int 0) in X not just INTVAL.
From-SVN: r49902