Jonathan Lennox [Wed, 9 Oct 2002 06:32:11 +0000 (06:32 +0000)]
PR libstdc++/8071, libstdc++/8127, c++/6745
2002-10-08 Jonathan Lennox <lennox@cs.columbia.edu>
PR libstdc++/8071, libstdc++/8127, c++/6745
* streambuf.tcc (__copy_streambufs): Handle cases where
__sbin->in_avail() returns 0, or where __sbin doesn't set gptr().
* testsuite/27_io/ostream_inserter_other.cc (test05): Add.
From-SVN: r57970
David Edelsohn [Wed, 9 Oct 2002 04:28:12 +0000 (04:28 +0000)]
rs6000.md (movdf splitter): Use gen_int_mode on 64-bit hosts.
* config/rs6000/rs6000.md (movdf splitter): Use gen_int_mode on
64-bit hosts.
(movtf_internal): Reference correct displacement for second value
in memory.
(movtf splitter): Correct generation of constants in 64-bit mode.
From-SVN: r57969
Gabriel Dos Reis [Wed, 9 Oct 2002 00:13:57 +0000 (00:13 +0000)]
c-common.c (cb_register_builtins): Define __WCHAR_MAX__.
* c-common.c (cb_register_builtins): Define __WCHAR_MAX__.
* doc/cpp.texi (Common Predefined Macros): Document.
From-SVN: r57966
Alan Modra [Tue, 8 Oct 2002 23:50:56 +0000 (23:50 +0000)]
* libgcc2.c (__floatdisf): Properly cure double rounding.
From-SVN: r57965
Paolo Carlini [Tue, 8 Oct 2002 23:32:23 +0000 (01:32 +0200)]
localefwd.h (class locale): Add static member _S_num_extra_categories...
2002-10-08 Paolo Carlini <pcarlini@unitus.it>
Benjamin Kosnik <bkoz@redhat.com>
* include/bits/localefwd.h (class locale): Add static member
_S_num_extra_categories, encoding the number of additional
categories.
Change _S_num_categories to _S_categories_size.
(class locale::_Impl): Add _M_c_cats.
(class locale::_Impl::_M_names): Change to array of chars.
(class locale::_Impl::_M_check_same_name): Use
_S_extra_categories_size, tweak.
(locale::locale(const locale&, _Facet*)): Ditto.
* src/locale.cc (locale::locale(const char* )): Rewrite to deal
with the environment in a POSIX-compliant way while being thread
safe.
(locale::name()): Update to output POSIX environment strings.
* src/localename.cc
(locale::_Impl::_Impl(const _Impl&, size_t): Use
_S_categories_size_*, tweak.
(locale::_Impl::_Impl(facet**, size_t, bool)): Ditto.
(locale::_Impl::_Impl(const char*, size_t)): Name each category
individually.
(locale::_Impl::_M_replace_categories): Use strcpy.
* include/bits/locale_facets.h (numpunct::_M_initialize_numpunct):
Change default argument to NULL from _S_c_locale.
(timepunct::_M_initialize_timepunct): Same.
_S_c_locale cleanups.
* src/codecvt.c: _S_c_locale simplification.
* src/ctype.c: Same.
* src/globals.cc: Add fake_name.
* src/locale-inst.cc: Remove extra includes.
* src/locale.cc: Remove extra includes.
Add _S_extra_categories_size definition.
Correct "C" initialization.
(locale::facet::facet): Don't initialize _S_c_locale.
(locale::facet::_M_remove_reference): Adjust.
* src/localename: Use facet_vec, facet_name.
(locale::_Impl::_Impl(facet** __f, size_t __refs, bool)): Set
facet ref counts to one. Initialize _S_c_locale.
(locale::_Impl::_M_install_facet(id*, facet*)): Adjust facet ref
counts when installing unilaterally.
* config/locale/generic/c_locale.cc: Add _S_categories definition.
* config/locale/generic/c_locale.h: Add _GLIBCPP_NUM_CATEGORIES macro.
* config/locale/generic/time_members.cc: _S_c_locale cleanup.
* config/locale/gnu/c_locale.cc: Add _S_categories definition.
(_S_destroy_c_locale): Move checks against _S_c_locale here.
* config/locale/gnu/c_locale.h: Add _GLIBCPP_NUM_CATEGORIES macro.
* config/locale/gnu/ctype_members.cc: Simplify _S_destroy_c_locale
calls, _S_c_locale usage.
* config/locale/gnu/monetary_members.cc: Same, tweaks.
* config/locale/gnu/monetary_members.cc: Same.
* config/locale/gnu/time_members.cc: Same.
* config/os/gnu-linux/ctype_noninline.h: Use locale::classic().
* docs/html/22_locale/locale.html: Add bits about global locales
and "C" setlocale.
* testsuite/22_locale/facet.cc (test02): Add.
* testsuite/22_locale/static_members.cc (test02): Add.
* testsuite/22_locale/ctor_copy_dtor.cc (test04): Add.
Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com>
From-SVN: r57964
Kaveh R. Ghazi [Tue, 8 Oct 2002 23:21:40 +0000 (23:21 +0000)]
20020720-1.x: Take out sparc XFAILs.
* gcc.c-torture/execute/
20020720-1.x: Take out sparc XFAILs. For
remaining platforms, XFAIL during compile, not execute. Don't
XFAIL at -O0.
From-SVN: r57963
Mark Mitchell [Tue, 8 Oct 2002 22:52:14 +0000 (22:52 +0000)]
re PR c++/7754 (ICE SIGSEGV on union with template parameter)
PR c++/7754
* decl2.c (finish_anon_union): Do not expand anonymous unions when
procesing template functions.
* pt.c (tsubst_decl, case VAR_DECL): Try to complete the variable
type. Call layout_decl.
(tsubst_expr, case DECL_STMT): Handle anonymous unions.
From-SVN: r57961
Gabriel Dos Reis [Tue, 8 Oct 2002 22:24:14 +0000 (22:24 +0000)]
re PR c++/7484 (warning with -Wmissing-declarations)
PR doc/7484
* doc/invoke.texi (Option Summary): List
-Wmissing-declarations as a C only option.
From-SVN: r57958
Jakub Jelinek [Tue, 8 Oct 2002 21:59:45 +0000 (23:59 +0200)]
t-linux64 (MULTILIB_OPTIONS): Remove mno-app-regs|mcmodel=medany.
2002-10-08 Jakub Jelinek <jakub@redhat.com>
* config/sparc/t-linux64 (MULTILIB_OPTIONS): Remove
mno-app-regs|mcmodel=medany.
(MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES): Remove alt.
(MULTILIB_EXCEPTIONS, MULTILIB_EXCLUSIONS, MULTILIB_MATCHES): Remove.
(CRTSTUFF_T_CFLAGS): Define.
From-SVN: r57956
Roger Sayle [Tue, 8 Oct 2002 20:49:02 +0000 (20:49 +0000)]
re PR target/8087 (sparc-sun-solaris2.7 C testsuite failures in execute/
20020720-1.c w/-m64 or on sparcv9/sparc64)
PR target/8087
* simplify-rtx.c (avoid_constant_pool_reference): Allow constant
pool references that are constructed using LO_SUM.
From-SVN: r57942
Zack Weinberg [Tue, 8 Oct 2002 19:45:17 +0000 (19:45 +0000)]
system.h (GCCBUGURL): Delete.
* system.h (GCCBUGURL): Delete.
* version.c (bug_report_url): New. Add commentary about
modifying both these strings in modified distributions.
* version.h: Declare bug_report_url.
* diagnostic.c, gcc.c, gcov.c, java/gjavah.c, java/jcf-dump.c,
java/jv-scan.c: Globally replace GCCBUGURL with bug_report_url.
From-SVN: r57940
Nathan Sidwell [Tue, 8 Oct 2002 19:20:18 +0000 (19:20 +0000)]
c-opts.c (c_common_decode_option): Add warn_strict_aliasing to -Wall.
gcc:
* c-opts.c (c_common_decode_option): Add warn_strict_aliasing to
-Wall.
* c-typeck.c (build_c_cast): Use warn_strict_aliasing, tweak
message.
* flags.h (warn_strict_aliasing): Declare.
* toplev.c (warn_strict_aliasing): Define.
(lang_independent_options): Add it.
* doc/invoke.texi (-Wstrict-aliasing): Document it.
testsuite:
* gcc.dg/alias-1.c: Tweak expected warning.
From-SVN: r57938
Ulrich Weigand [Tue, 8 Oct 2002 18:12:42 +0000 (18:12 +0000)]
interpret.cc (_Jv_InterpMethod::run): Use UINT32 instead of unsigned long temporary to implement insn_iushr shifts.
* interpret.cc (_Jv_InterpMethod::run): Use UINT32 instead of
unsigned long temporary to implement insn_iushr shifts.
From-SVN: r57936
Tom Tromey [Tue, 8 Oct 2002 18:05:54 +0000 (18:05 +0000)]
re PR java/8003 (gcj segfaults on simple java line of code)
* parse.y (variable_declarator_id): Simplify error path for
array declarator error. For PR java/8003.
From-SVN: r57934
Zack Weinberg [Tue, 8 Oct 2002 17:27:39 +0000 (17:27 +0000)]
system.h (GCCBUGURL): Delete.
* system.h (GCCBUGURL): Delete.
* version.c (bug_report_url): New. Add commentary about
modifying both these strings in modified distributions.
* version.h: Declare bug_report_url.
* diagnostic.c, gcc.c, gcov.c, java/gjavah.c, java/jcf-dump.c,
java/jv-scan.c: Globally replace GCCBUGURL with bug_report_url.
From-SVN: r57932
Nick Clifton [Tue, 8 Oct 2002 16:20:05 +0000 (16:20 +0000)]
(__ev_set_acc_u64): Use __ev_create_u64 to convert uint64_t into __ev64_opaque__.
(__ev_set_acc_s64): Likewise, but using signed types.
From-SVN: r57930
Ulrich Weigand [Tue, 8 Oct 2002 16:13:24 +0000 (16:13 +0000)]
s390.md ("*doloop_si_long"): Add missing operand.
* config/s390/s390.md ("*doloop_si_long"): Add missing operand.
("*doloop_di_long"): Likewise.
From-SVN: r57929
Andrew Haley [Tue, 8 Oct 2002 15:02:30 +0000 (15:02 +0000)]
parse.y (attach_init_test_initialization_flags): Check for error_mark_node.
2002-10-08 Andrew Haley <aph@redhat.com>
* parse.y (attach_init_test_initialization_flags): Check for
error_mark_node.
From-SVN: r57928
Ulrich Weigand [Tue, 8 Oct 2002 14:57:37 +0000 (14:57 +0000)]
configure.host [s390*-*]: Enable Java interpreter.
* configure.host [s390*-*]: Enable Java interpreter.
Enable hash synchronization. Add sysdeps dir.
* sysdep/s390/locks.h: New file.
From-SVN: r57927
Ulrich Weigand [Tue, 8 Oct 2002 14:55:03 +0000 (14:55 +0000)]
java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret raw data as _Jv_word values, not ffi_raw.
* src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret
raw data as _Jv_word values, not ffi_raw.
(ffi_java_ptrarray_to_raw): Likewise.
(ffi_java_rvalue_to_raw): New function.
(ffi_java_raw_call): Call it.
(ffi_java_raw_to_rvalue): New function.
(ffi_java_translate_args): Call it.
* src/ffitest.c (closure_test_fn): Interpret return value
as ffi_arg, not int.
* src/s390/ffi.c (ffi_prep_cif_machdep): Add missing
FFI_TYPE_POINTER case.
(ffi_closure_helper_SYSV): Likewise. Also, assume return
values extended to word size.
From-SVN: r57926
Jan Hubicka [Tue, 8 Oct 2002 14:50:58 +0000 (16:50 +0200)]
Tue Oct 8 16:50:10 CEST 2002 Jan Hubicka <jh@suse.cz>
* print-rtl.c (print_rtx): Increase buffer size for real numbers.
From-SVN: r57925
Richard Sandiford [Tue, 8 Oct 2002 14:01:39 +0000 (14:01 +0000)]
* config/mips/mips.md (define_attr cpu): Add r4111.
From-SVN: r57924
Anthony Green [Tue, 8 Oct 2002 07:19:34 +0000 (07:19 +0000)]
Fix bitmap bug.
From-SVN: r57919
GCC Administrator [Tue, 8 Oct 2002 07:17:07 +0000 (07:17 +0000)]
Daily bump.
From-SVN: r57918
Anthony Green [Tue, 8 Oct 2002 07:10:49 +0000 (07:10 +0000)]
Fix string concatenation bug.
From-SVN: r57912
Michael Hayes [Mon, 7 Oct 2002 22:20:10 +0000 (22:20 +0000)]
c4x.c (c4x_print_operand): Enlarge buffer for REAL_VALUE_TO_DECIMAL output.
* config/c4x/c4x.c (c4x_print_operand): Enlarge buffer
for REAL_VALUE_TO_DECIMAL output.
From-SVN: r57908
Svein E. Seldal [Mon, 7 Oct 2002 21:07:06 +0000 (21:07 +0000)]
* configure.in: Add tic4x target.
From-SVN: r57907
Mark Wielaard [Mon, 7 Oct 2002 21:02:38 +0000 (21:02 +0000)]
Thread.java (setDaemon): Check startable_flag, not isAlive().
* java/lang/Thread.java (setDaemon): Check startable_flag,
not isAlive().
From-SVN: r57906
David Edelsohn [Mon, 7 Oct 2002 19:12:04 +0000 (19:12 +0000)]
rs6000.c (rs6000_override_options): Set real_format_for_mode for IBM extended format, if enabled.
* config/rs6000/rs6000.c (rs6000_override_options): Set
real_format_for_mode for IBM extended format, if enabled.
(easy_fp_constant): Add TFmode.
(rs6000_legitimize_address): Add TFmode.
(rs6000_legitimate_address): Same.
(function_arg_advance): TFmode uses two FPRs.
(rs6000_emit_prologue): Fix warning.
(rs6000_output_function_epilogue): Add TFmode.
(output_toc): Add TFmode.
* rs6000.h (SLOW_UNALIGNED_ACCESS): Add TFmode.
(LEGITIMATE_OFFSET_ADDRESS_P): Add TFmode.
* rs6000.md (movtf splitter): Load TFmode constant.
From-SVN: r57904
Jonathan Wakely [Mon, 7 Oct 2002 18:11:23 +0000 (18:11 +0000)]
configopts.html, [...]: Add DOCTYPEs.
2002-10-07 Jonathan Wakely <jw@kayari.org>
* docs/html/configopts.html, docs/html/documentation.html,
docs/html/explanations.html, docs/html/install.html,
docs/html/17_intro/contribute.html, docs/html/17_intro/howto.html,
docs/html/17_intro/license.html, docs/html/18_support/howto.html,
docs/html/19_diagnostics/howto.html, docs/html/20_util/howto.html,
docs/html/21_strings/howto.html, docs/html/22_locale/codecvt.html,
docs/html/22_locale/ctype.html, docs/html/22_locale/howto.html,
docs/html/22_locale/locale.html, docs/html/22_locale/messages.html,
docs/html/23_containers/howto.html, docs/html/24_iterators/howto.html,
docs/html/25_algorithms/howto.html, docs/html/26_numerics/howto.html,
docs/html/27_io/howto.html, docs/html/ext/howto.html,
docs/html/ext/sgiexts.html, docs/html/faq/index.html: Add DOCTYPEs.
From-SVN: r57903
Dale Johannesen [Mon, 7 Oct 2002 17:55:46 +0000 (17:55 +0000)]
Permit doloop treatment for preconditioned loops.
From-SVN: r57902
Michael Koch [Mon, 7 Oct 2002 13:56:38 +0000 (13:56 +0000)]
Buffer.java: New stub file.
2002-10-07 Michael Koch <konqueror@gmx.de>
* java/nio/Buffer.java: New stub file.
* java/nio/charset/spi/CharsetProvider.java: Commented out all usages
of class Charset.
* Makefile.am (java_native_source_files): Added java/nio/Buffer.java.
* Makefile.in: Regenerated.
From-SVN: r57901
Michael Koch [Mon, 7 Oct 2002 13:39:22 +0000 (13:39 +0000)]
ByteBuffer.java: removed import of not commited class.
2002-10-07 Michael Koch <konqueror@gmx.de>
* java/nio/ByteBuffer.java:
removed import of not commited class.
From-SVN: r57900
Michael Koch [Mon, 7 Oct 2002 13:12:42 +0000 (13:12 +0000)]
ByteBuffer.java, [...]: New files, forgot to add these dummies.
2002-10-07 Michael Koch <konqueror@gmx.de>
* java/nio/ByteBuffer.java,
java/nio/MappedByteBuffer.java:
New files, forgot to add these dummies.
* Makefile.am (java_native_source_files): Added new files.
* Makefile.in: Regenerated.
From-SVN: r57899
Richard Henderson [Mon, 7 Oct 2002 10:22:49 +0000 (03:22 -0700)]
i960.c (i960_setup_incoming_varargs): Create a new rtx for comparing the argument pointer against zero.
* config/i960/i960.c (i960_setup_incoming_varargs): Create a
new rtx for comparing the argument pointer against zero.
(i960_va_start): Similarly.
From-SVN: r57897
Richard Henderson [Mon, 7 Oct 2002 09:49:18 +0000 (02:49 -0700)]
* decl2.c, pt.c: Revert c++/7754 fix.
From-SVN: r57895
Richard Henderson [Mon, 7 Oct 2002 09:47:23 +0000 (02:47 -0700)]
Fix entry formatting.
From-SVN: r57894
Richard Henderson [Mon, 7 Oct 2002 08:54:09 +0000 (01:54 -0700)]
i960.md (*): Use TFmode, not XFmode.
* config/i960/i960.md (*): Use TFmode, not XFmode.
* config/i960/i960.c (*): Likewise.
(i960_arg_size_and_align): Remove XFmode alignment hack.
(i960_round_align): Merge code from ROUND_TYPE_ALIGN.
* config/i960/i960.h (LONG_DOUBLE_TYPE_SIZE): Use 128, not 96.
(MAX_LONG_DOUBLE_TYPE_SIZE): Likewise.
(DATA_ALIGNMENT, ROUND_TYPE_SIZE): Remove.
From-SVN: r57889
Richard Henderson [Mon, 7 Oct 2002 08:47:09 +0000 (01:47 -0700)]
fp-bit.c (EXTENDED_FLOAT_STUBS): Flush out all XF/TFmode entry points; use void return value and argument list.
* config/fp-bit.c (EXTENDED_FLOAT_STUBS): Flush out all XF/TFmode
entry points; use void return value and argument list.
From-SVN: r57887
Naohiko Shimizu [Mon, 7 Oct 2002 08:21:21 +0000 (17:21 +0900)]
t-pdp11: Add MULTILIB support for msoft-float.
* t-pdp11: Add MULTILIB support for msoft-float.
* pdp11.h (LEGITIMATE_CONSTANT_P): Fix soft-float case.
* t-pdp11: Add LIB2FUNCS_EXTRA.
* pdp11.c (pdp11_output_function_prologue): Restrict offset to 16bit,
add preceding 0 to the octal constant, rename 'fp' to 'r5', rename
'fldd' to 'ldd', rename 'fstd' to 'std'.
(pdp11_output_function_epilogue): Likewise.
(output_move_quad): Make the comment gas compatible.
(output_ascii): Add preceding 0 to the octal constant.
(print_operand_address): Add pre_modify, post_modify.
(output_addr_const_pdp11): Add preceding 0 to the octal constant.
* pdp11.h (GO_IF_LEGITIMATE_ADDRESS) : Add 'movb' pre_modify case
with the indication of Paul Koning.
(PRINT_OPERAND): Fix floating constant.
* pdp11.md (movdi): Restrict matching pattern.
(movqi): Generalize the matching pattern.
(movdf): Restrict matching pattern.
(zero_extendqihi2): Change constant representation.
(floatsidf2): Fix wrong operands.
(addqi3): Fix wrong instruction name.
(subqi3): Fix wrong instruction name.
(andsi3, andhi3, andqi3): Simplify and fix to use 'bic'.
(xorsi3): Fix wrong insn.
(one_cmplqi2): Add two operand pattern.
(lsrsi3): New.
(negsi2): New.
(call): Add register indirect case.
(mod): Fix wrong subreg.
From-SVN: r57886
Michael Koch [Mon, 7 Oct 2002 07:59:12 +0000 (07:59 +0000)]
AlreadyConnectedException.java, [...]: New file.
2002-10-07 Michael Koch <konqueror@gmx.de>
* java/nio/channels/AlreadyConnectedException.java,
java/nio/channels/ClosedChannelException.java,
java/nio/channels/ReadableByteChannel.java,
java/nio/channels/InterruptibleChannel.java,
java/nio/channels/Channel.java,
java/nio/channels/ByteChannel.java,
java/nio/channels/GatheringByteChannel.java,
java/nio/channels/ScatteringByteChannel.java,
java/nio/channels/WritableByteChannel.java,
java/nio/charset/CharacterCodingException.java,
java/nio/charset/IllegalCharsetNameException.java,
java/nio/charset/MalformedInputException.java,
java/nio/charset/UnmappableCharacterException.java,
java/nio/charset/UnsupportedCharsetException.java,
java/nio/charset/spi/CharsetProvider.java: New file.
These files are exceptions or interfaces,
no real or abstract classes.
* Makefile.am (java_native_source_files): Added new files.
* Makefile.in: Regenerated.
From-SVN: r57885
Eric Botcazou [Mon, 7 Oct 2002 07:37:12 +0000 (09:37 +0200)]
re PR c/7411 (cistore.c:392: Internal compiler error in instantiate_virtual_regs_1, at function.c:3974)
PR c/7411
* expr.c (expand_expr) [PLUS]: Simplify after the operands
have been expanded in EXPAND_NORMAL mode.
Co-Authored-By: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
From-SVN: r57882
GCC Administrator [Mon, 7 Oct 2002 07:19:04 +0000 (07:19 +0000)]
Daily bump.
From-SVN: r57881
D.Venkatasubramanian [Mon, 7 Oct 2002 04:38:56 +0000 (04:38 +0000)]
* gcc.dg/
20020411-1.c: Disable for 16-bit "int".
From-SVN: r57875
Richard Henderson [Mon, 7 Oct 2002 04:19:39 +0000 (21:19 -0700)]
* config/rs6000/rs6000.md (load_toc_v4_PIC_2): Fix base constraint.
From-SVN: r57871
Richard Henderson [Mon, 7 Oct 2002 03:01:39 +0000 (20:01 -0700)]
re PR rtl-optimization/2960 (Duplicate loop conditions even with -Os)
PR optimization/2960
* toplev.c (rest_of_compilation): Don't copy_loop_headers if
optimize_size.
From-SVN: r57870
Andreas Jaeger [Sun, 6 Oct 2002 19:35:34 +0000 (21:35 +0200)]
c++98-pedantic.C: Moved to g++.dg/cpp.
* gcc.dg/cpp/c++98-pedantic.C: Moved to g++.dg/cpp.
* gcc.dg/cpp/c++98.C: Likewise.
* g++.dg/cpp/c++98-pedantic.C: Moved from gcc.dg/cpp to here.
* g++.dg/cpp/c++98.C: Likewise.
* g++.dg/README (Subdirectories): Mention cpp directory.
From-SVN: r57868
Andreas Jaeger [Sun, 6 Oct 2002 19:30:37 +0000 (21:30 +0200)]
re PR target/7559 (kdelibs miscompilation)
PR target/7559
* gcc.dg/
20021006-1.c: New test.
From-SVN: r57867
Andreas Jaeger [Sun, 6 Oct 2002 19:29:24 +0000 (21:29 +0200)]
cplus-dem.c (ada_demangle): Get rid of unneeded variable and of strict-aliasing warning.
* libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
variable and of strict-aliasing warning.
(grow_vect): Use char as first parameter.
From-SVN: r57866
Alexandre Oliva [Sun, 6 Oct 2002 17:50:42 +0000 (17:50 +0000)]
mips.h (SIZE_TYPE, [...]): Override previously definitions.
* config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Override
previously definitions.
From-SVN: r57865
Frank Ch. Eigler [Sun, 6 Oct 2002 11:21:09 +0000 (11:21 +0000)]
cppinit.c (init_standard_includes, [...]): Use strncmp.
* cppinit.c (init_standard_includes, parse_option): Use strncmp.
* c-opts.c (find_opt): Similarly.
From-SVN: r57864
GCC Administrator [Sun, 6 Oct 2002 07:17:10 +0000 (07:17 +0000)]
Daily bump.
From-SVN: r57859
Bruce Korb [Sat, 5 Oct 2002 18:58:14 +0000 (18:58 +0000)]
The Linux variant of GCC has no need of defining "i386", so it doesn't.
That renders this test ineffective and the "defined( i386 )" remains
unaltered by fixinc. This test is now, generally, a noop.
From-SVN: r57847
Jakub Jelinek [Sat, 5 Oct 2002 18:55:54 +0000 (20:55 +0200)]
gcc.c (set_multilib_dir): Don't access *end.
* gcc.c (set_multilib_dir): Don't access *end.
Use memcpy instead of strncpy. Don't write beyond malloced buffer.
(print_multilib_info): Don't show paths starting with ".:".
* genmultilib: Add new option, "yes" if multilibs are enabled.
Update comments. If multilibs not enabled, print .:${osdirout}
for each directory. If multilibs are enabled, always print
${dirout}:${osdirout}, even if the two are the same.
* Makefile.in (s-mlib): Pass @enable_multilib@ to genmultilib.
Pass all MULTILIB_* variables to genmultilib even if
--disable-multilib but MULTILIB_OSDIRNAMES is not empty.
From-SVN: r57846
Bruce Korb [Sat, 5 Oct 2002 18:21:59 +0000 (18:21 +0000)]
add fixes for new hp/ux patch
From-SVN: r57845
Jan Hubicka [Sat, 5 Oct 2002 17:44:37 +0000 (19:44 +0200)]
* c-common.c (cb_register_builtins): Use really_no_inline.
From-SVN: r57844
Kriang Lerdsuwanakij [Sat, 5 Oct 2002 12:28:16 +0000 (12:28 +0000)]
re PR c++/7804 (bad printing of fp constant in warning message)
PR c++/7804
* error.c (dump_expr) [REAL_CST]: Output in decimal format.
* g++.dg/other/warning1.C: New test.
From-SVN: r57843
Michael Koch [Sat, 5 Oct 2002 07:49:08 +0000 (07:49 +0000)]
2002-10-05 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java
(getByAddress): Fixed documentation.
(getByAddress): New method.
* java/net/Inet4Address.java: New file.
* java/net/URL.java
(URL): Documentation added.
(getContent): Documentation added.
(getContent): New stubbed method.
(getQuery): New method.
(openConnection): Documentation added.
(openStream): Documentation added.
(setURLStreamHandlerFactory): Documentation added.
* java/net/URI.java: New stub file.
* Makefile.am
(java_native_source_files): Added java/net/Inet4Address.java,
java/net/Inet6Address.java and java/net/URI.java.
* Makefile.in: Regenerated.
From-SVN: r57841
GCC Administrator [Sat, 5 Oct 2002 07:17:08 +0000 (07:17 +0000)]
Daily bump.
From-SVN: r57840
David Edelsohn [Sat, 5 Oct 2002 04:06:17 +0000 (04:06 +0000)]
unroll.c (copy_loop_body): Remove REG_EQUAL note attached to copied instruction if...
* unroll.c (copy_loop_body): Remove REG_EQUAL note attached to
copied instruction if the note is not loop invariant.
From-SVN: r57834
Loren J. Rittle [Fri, 4 Oct 2002 21:16:07 +0000 (21:16 +0000)]
* gcc/ginclude/stddef.h: Support the FreeBSD 5 typedef system.
From-SVN: r57830
Mark Wielaard [Fri, 4 Oct 2002 20:17:26 +0000 (20:17 +0000)]
[multiple changes]
2002-10-04 C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>
* java/lang/ProtectionDomain.java (linesep): Remove field.
(toString): Use System.getProperty("line.separator").
2002-10-04 Michael Koch <konqueror@gmx.de>
* java/security/Identity.java: Added serialVersionUID.
* java/security/KeyPair.java: Added serialVersionUID.
* java/security/Provider.java: Added serialVersionUID.
* java/security/SecureRandom.java: Added serialVersionUID.
* java/security/SecureRandomSpi.java: Added serialVersionUID.
* java/security/SignedObject.java: Added serialVersionUID.
* java/security/cert/Certificate.java: Added serialVersionUID.
2002-10-04 Mark Wielaard <mark@klomp.org>
* java/security/Security.java: Use java.home or gnu.classpath.home
to load providers.
(loadProviders): Extra dir argument.
(getProvider): Return null when not found.
From-SVN: r57827
Steve Ellcey [Fri, 4 Oct 2002 16:58:11 +0000 (16:58 +0000)]
invoke.texi (HPPA): Add -mlinker-opt, -mgnu-ld, and -mhp-ld options to list of options.
* doc/invoke.texi (HPPA): Add -mlinker-opt, -mgnu-ld,
and -mhp-ld options to list of options. Add -mgnu-ld
and -mhp-ld option descriptions.
From-SVN: r57824
Mark Wielaard [Fri, 4 Oct 2002 16:47:36 +0000 (16:47 +0000)]
* java/lang/Throwable.java: Remerge with Classpath.
From-SVN: r57823
Roger Sayle [Fri, 4 Oct 2002 16:36:42 +0000 (16:36 +0000)]
re PR target/8087 (sparc-sun-solaris2.7 C testsuite failures in execute/
20020720-1.c w/-m64 or on sparcv9/sparc64)
* gcc.c-torture/execute/
20020720-1.x: XFAIL instead of skipping
the test on failing platforms. Mark sparcv9-*-*, sparc64-*-*
and sparc-*-* with -m64 as expected failures. See PR 8087.
From-SVN: r57822
Steve Ellcey [Fri, 4 Oct 2002 16:13:12 +0000 (16:13 +0000)]
inclhack.def (hpux11_abs): New.
* fixinc/inclhack.def (hpux11_abs): New.
(stdio_va_list): change __va_list__ to __gnuc_va_list.
* fixinc/fixincl.x: Rebuild.
From-SVN: r57821
Roger Sayle [Fri, 4 Oct 2002 16:08:18 +0000 (16:08 +0000)]
i386.h (processor_costs): Add new fields fadd, fmul, fdiv, fabs, fchs and fsqrt to costs structure.
* config/i386/i386.h (processor_costs): Add new fields fadd,
fmul, fdiv, fabs, fchs and fsqrt to costs structure.
(RTX_COSTS): Use these fields to determine the RTX costs
of floating point addition/subtraction, multiplication,
division, fabs, negation and square root respectively.
* config/i386/i386.c (size_cost): Provide instruction sizes
for these new fields.
(i386_cost, i486_cost, pentium_cost, pentiumpro_cost,
k6_cost, athlon_cost, pentium4_cost): Provide typical cycle
counts for these new fields for all x86 processor variants.
From-SVN: r57820
Michael Koch [Fri, 4 Oct 2002 15:36:12 +0000 (15:36 +0000)]
gcj.texi (Standard properties): Change default of java.awt.toolkit to gnu.awt.gtk.GtkToolkit.
2002-10-03 Michael Koch <konqueror@gmx.de>
* gcj.texi (Standard properties):
Change default of java.awt.toolkit to gnu.awt.gtk.GtkToolkit.
From-SVN: r57819
Kaveh R. Ghazi [Fri, 4 Oct 2002 13:50:40 +0000 (13:50 +0000)]
* mips.c (mips_const_double_ok): Delete unused variable.
From-SVN: r57817
Kaveh R. Ghazi [Fri, 4 Oct 2002 13:41:45 +0000 (13:41 +0000)]
* gengtype.c (rtx_next): Change type to int.
From-SVN: r57816
Michael Koch [Fri, 4 Oct 2002 08:49:26 +0000 (08:49 +0000)]
2002-10-04 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java:
(isMulticastAddress): Added documentation.
(getHostAddress): Added documentation.
(toString): Added documentation.
(getByAddress): Fixed documentation.
(getByName): Added documentation.
(getAllByName): Added documentation.
(getLocalHost): Added documentation.
From-SVN: r57814
Michael Koch [Fri, 4 Oct 2002 08:48:03 +0000 (08:48 +0000)]
BeanContextChildSupport.java: Added serialVersionUID.
2002-10-04 Michael Koch <konqueror@gmx.de>
* java/beans/beancontext/BeanContextChildSupport.java:
Added serialVersionUID.
* java/text/Collator.java: (compare): Made documentation HTML-aware.
* javax/naming/BinaryRefAddr.java: Added serialVersionUID.
* javax/naming/Name.java: Added serialVersionUID.
From-SVN: r57813
Andreas Jaeger [Fri, 4 Oct 2002 08:05:38 +0000 (10:05 +0200)]
* config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Fix value.
From-SVN: r57812
Richard Henderson [Fri, 4 Oct 2002 08:01:12 +0000 (01:01 -0700)]
real.h (SIGNIFICAND_BITS): Add one more word.
* real.h (SIGNIFICAND_BITS): Add one more word.
(CONST_DOUBLE_FORMAT): Accomodate 6 words.
* real.c (times_pten): New.
(real_to_decimal, real_from_string): Use it.
(sticky_rshift_significand): Use & to find modulus.
(rshift_significand, lshift_significand): Likewise.
(do_divide): Apply sticky bit after normalization.
(real_to_decimal, real_to_hexadecimal): Fix sign of Inf and NaN.
From-SVN: r57811
GCC Administrator [Fri, 4 Oct 2002 07:17:11 +0000 (07:17 +0000)]
Daily bump.
From-SVN: r57810
Andreas Jaeger [Fri, 4 Oct 2002 06:08:19 +0000 (08:08 +0200)]
gengtype.c (adjust_field_rtx_def): Cast variables of type size_t to unsigned long, adjust printf format string.
* gengtype.c (adjust_field_rtx_def): Cast variables of type size_t
to unsigned long, adjust printf format string.
(output_mangled_typename): Likewise.
From-SVN: r57804
Jason Thorpe [Fri, 4 Oct 2002 05:23:12 +0000 (05:23 +0000)]
vax.c (vax_output_function_prologue): Use asm_fprintf.
* config/vax/vax.c (vax_output_function_prologue): Use asm_fprintf.
* config/vax/vax.h (VAX_FUNCTION_PROFILER_NAME): New.
(FUNCTION_PROFILER): Rewrite to use ASM_GENERATE_INTERNAL_LABEL,
assemble_name, asm_fprintf, and VAX_FUNCTION_PROFILER_NAME.
(ASM_OUTPUT_MI_THUNK): Use asm_fprintf instead of REGISTER_PREFIX.
(PRINT_OPERAND_PUNCT_VALID_P): Fix comment.
* config/vax/elf.h (FUNCTION_PROFILER): Remove.
(VAX_FUNCTION_PROFILER_NAME): Redefine as "__mcount".
From-SVN: r57801
Mark Mitchell [Fri, 4 Oct 2002 05:13:59 +0000 (05:13 +0000)]
re PR c++/7931 (The compiler ices on some legal code)
PR c++/7931
* pt.c (for_each_template_parm_r): Handle BASELINKs.
PR c++/7754
* decl2.c (finish_anon_union): Do not expand anonymous unions when
procesing template functions.
* pt.c (tsubst_decl, case VAR_DECL): Try to complete the variable
type. Call layout_decl.
(tsubst_expr, case DECL_STMT): Handle anonymous unions.
PR c++/7931
* g++.dg/template/ptrmem3.C: New test.
PR c++/7754
* g++.dg/template/union1.C: New test.
From-SVN: r57800
Mark Mitchell [Fri, 4 Oct 2002 04:59:39 +0000 (04:59 +0000)]
re PR c++/8006 (ice in mangle_conv_op_name_for_type boost regression)
* doc/invoke.texi (-Wabi): Document mangling bug.
PR c++/8006
* mangle.c (CLASSTYPE_TEMPLATE_ID_P): Handle instances of template
template parameters.
(globals): Add entity and need_abi_warning.
(decl_is_template_id): Use TYPE_TEMPLATE_INFO, not
CLASSTYPE_TEMPLATE_INFO.
(is_std_substitution): Use CLASSTYPE_TI_TEMPLATE, not
TYPE_TI_TEMPLATE.
(write_prefix): Handle typename types correctly.
(write_template_prefix): Handle template template parameters
correctly.
(start_mangling): Add entity parameter.
(finish_mangling): Warn about names whose mangling will change.
(mangle_decl_string): Adjust.
(mangle_type_string): Likewise.
(mangle_special_for_type): Likewise.
(mangle_ctor_vtbl_for_type): Likewise.
(mangle_thunk): Likewise.
(mangle_guard_variable): Likewise.
(mangle_ref_init_variable): Likewise.
PR c++/8006
* g++.dg/abi/mangle9.C: New test.
* g++.dg/abi/mangle10.C: New test.
* g++.dg/abi/mangle11.C: New test.
* g++.dg/abi/mangle12.C: New test.
From-SVN: r57799
Alan Modra [Fri, 4 Oct 2002 03:19:32 +0000 (03:19 +0000)]
rs6000.c (rs6000_output_function_epilogue): Use a name for the tbtab label that depends on the function asm name.
* config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use a
name for the tbtab label that depends on the function asm name.
Don't output tbtab label unless optional_tbtab.
(output_mi_thunk): Formatting.
From-SVN: r57798
Richard Henderson [Fri, 4 Oct 2002 02:19:40 +0000 (19:19 -0700)]
m68k.h (OVERRIDE_OPTIONS): Move additional code ...
* config/m68k/m68k.h (OVERRIDE_OPTIONS): Move additional code ...
* config/m68k/m68k.c (override_options): ... here.
* config/m68k/m68kelf.h (OVERRIDE_OPTIONS): Remove.
* config/m68k/m68kv4.h (OVERRIDE_OPTIONS): Remove.
* config/m68k/linux.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
* config/m68k/netbsd-elf.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
From-SVN: r57797
Richard Henderson [Fri, 4 Oct 2002 00:50:58 +0000 (17:50 -0700)]
* real.h (struct real_value): Use ENUM_BITFIELD.
From-SVN: r57796
Richard Henderson [Fri, 4 Oct 2002 00:39:27 +0000 (17:39 -0700)]
* config/i960/i960.md (call, call_value): Use emit_call_insn.
From-SVN: r57795
Adam Megacz [Thu, 3 Oct 2002 22:54:04 +0000 (22:54 +0000)]
natNetworkInterface.cc (getRealNetworkInterfaces): ifdef out some functionality that isn't supported yet on WIN32.
2002-10-03 Adam Megacz <adam@xwt.org>
* natNetworkInterface.cc (getRealNetworkInterfaces): ifdef out
some functionality that isn't supported yet on WIN32.
From-SVN: r57794
Steve Ellcey [Thu, 3 Oct 2002 22:33:04 +0000 (22:33 +0000)]
* config/pa/pa64-hpux.h (INIT_ENVIRONMENT): New.
From-SVN: r57793
Steve Ellcey [Thu, 3 Oct 2002 21:46:59 +0000 (21:46 +0000)]
config.gcc (hppa*64*-*-hpux11*): Check gnu_ld.
* config.gcc (hppa*64*-*-hpux11*): Check gnu_ld.
* config/pa/pa.h (MASK_GNU_LD): New.
(TARGET_GNU_LD): New.
(TARGET_SWITCHES): New gnu-ld & no-gnu-ld flags.
* config/pa/pa64-hpux.h (LINK_SPEC): Set based
on gnu-ld and MASK_GNU_LD.
From-SVN: r57792
Jan Hubicka [Thu, 3 Oct 2002 21:37:17 +0000 (23:37 +0200)]
* i386.c (athlon_cost): Fix the move costs.
From-SVN: r57791
Jan Hubicka [Thu, 3 Oct 2002 21:22:12 +0000 (23:22 +0200)]
final.c (final): Use symbol name as function name for profiling.
* final.c (final): Use symbol name as function name for profiling.
* profile.c (get_exec_counts): Likewise.
(branch_prob): Likewise.
From-SVN: r57790
Jakub Jelinek [Thu, 3 Oct 2002 20:39:08 +0000 (22:39 +0200)]
* longlong.h (__udiv_qrnnd): Remove PARAMS from prototype.
From-SVN: r57787
Jakub Jelinek [Thu, 3 Oct 2002 20:35:14 +0000 (22:35 +0200)]
gcc.c (print_multi_os_directory): New variable.
* gcc.c (print_multi_os_directory): New variable.
(option_map): Support --print-multi-os-directory.
(struct prefix_list): Add os_multilib field.
(multilib_os_dir): New variable.
(static_specs): Add multilib_options.
(find_a_file): Add multilib argument. Search in GCC or OS multilib
subdirs if non-zero.
(read_specs, execute): Update callers.
(find_file): Likewise. Don't prefix name with multilib_dir, instead
pass 1 as multilib option.
(display_help): Include --print-multi-os-directory.
(add_prefix): Add os_multilib argument. Initialize pl->os_multilib.
(process_command): Update callers. Handle --print-multi-os-directory.
(do_spec_1) ['D']: Use multilib_os_directory if pl->os_multilib is
set.
(main): Update find_a_file and add_prefix callers.
Handle print_multi_os_directory.
(struct mdswitchstr): New.
(mdswitches, n_mdswitches): New variables.
(used_arg): Add MULTILIB_DEFAULT switches too if they are not
present on the command line nor their mutually incompatible
switches.
(default_arg): Optimize.
(set_multilib_dir): Compute multilib_os_dir. Initialize mdswitches
array.
(print_multilib_info): Only print GCC multilib dir name, not OS
multilib dirname.
* genmultilib: Add osdirnames parameter. Output multilib_options
variable. If osdirnames is specified, output dirnames as
dirname:osdirname.
* mklibgcc.in: Use MULTILIB_OSDIRNAMES, --print-multi-directory
and --print-multi-os-directory instead of SHLIB_SLIBDIR_SUFFIXES
to compute libgcc_s soname and install path.
* Makefile.in (libgcc.mk): Pass MULTILIB_OSDIRNAMES instead of
SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
(s_mlib): Pass MULTILIB_OSDIRNAMES or nothing as last genmultilib
argument.
* config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Set.
(SHLIB_SLIBDIR_SUFFIXES): Remove.
* config/sparc/linux64.h (STARTFILE_SPEC32, STARTFILE_SPEC64,
ENDFILE_SPEC32, ENDFILE_SPEC64, ENDFILE_COMMON): Remove.
(STARTFILE_SPEC, ENDFILE_SPEC): Don't distinguish between -m32
and -m64.
* config/sparc/t-sol2-64 (MULTILIB_OSDIRNAMES): Set.
(SHLIB_SLIBDIR_SUFFIXES): Remove.
* config/sparc/sol2-bi.h (STARTFILE_ARCH64_SPEC): Remove.
(STARTFILE_ARCH_SPEC): Remove.
* config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Set.
(SHLIB_SLIBDIR_SUFFIXES): Remove.
* config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
* config/mips/t-iris6 (MULTILIB_OSDIRNAMES): Set.
(SHLIB_SLIBDIR_SUFFIXES): Remove.
From-SVN: r57786
Jan Hubicka [Thu, 3 Oct 2002 19:43:00 +0000 (21:43 +0200)]
* predict.c (choose_function_section): Avoid choice for linkonce functions.
From-SVN: r57785
Nathanael Nerode [Thu, 3 Oct 2002 19:06:16 +0000 (19:06 +0000)]
Makefile.tpl: Make SET_LIB_PATH substitution more autoconfy.
2002-10-03 Nathanael Nerode <neroden@gcc.gnu.org>
* Makefile.tpl: Make SET_LIB_PATH substitution more autoconfy.
* configure.in: Make SET_LIB_PATH substitution more autoconfy.
* Makefile.in: Regenerate.
From-SVN: r57783
Nathanael Nerode [Thu, 3 Oct 2002 18:50:19 +0000 (18:50 +0000)]
Makefile.tpl: Make RPATH_ENVVAR substitution more autoconfy.
2002-10-03 Nathanael Nerode <neroden@gcc.gnu.org>
* Makefile.tpl: Make RPATH_ENVVAR substitution more autoconfy.
* configure.in: Make RPATH_ENVVAR substitution more autoconfy.
* Makefile.in: Regenerate.
From-SVN: r57782
Tom Tromey [Thu, 3 Oct 2002 18:22:40 +0000 (18:22 +0000)]
Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
* Makefile.am (awt_java_source_files): Added new files.
From-SVN: r57781
Michael Koch [Thu, 3 Oct 2002 17:17:39 +0000 (17:17 +0000)]
InetAddress.java (class InetAddress): Removed final keyword.
2002-10-03 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java
(class InetAddress): Removed final keyword.
(equals): Fixed typo.
(getByAddress): New method.
From-SVN: r57779
Richard Earnshaw [Thu, 3 Oct 2002 15:58:29 +0000 (15:58 +0000)]
re PR libstdc++/3584 (arm-specific atomic operations not atomic)
PR libstdc++/3584
* config/cpu/arm/atomicity.h (__exchange_and_add): Don't try to use
ASM sequences that don't give us atomic addition operations. Instead
just add a comment explaining why it doesn't work.
(__atomic_add): Just use __exchange_and_add.
(__test_and_set, __always_swap): Delete.
From-SVN: r57778
Michael Koch [Thu, 3 Oct 2002 14:40:43 +0000 (14:40 +0000)]
Autoscroll.java: New file, merge from Classpath.
2002-10-03 Michael Koch <konqueror@gmx.de>
* java/awt/dnd/Autoscroll.java:
New file, merge from Classpath.
* java/awt/dnd/DragSourceAdapter.java:
(dragExit): Fixed typos in argument type.
(dragDropEnd): Fixed typos in argument type.
* java/awt/dnd/DragSourceDropEvent.java:
New file, merge from Classpath.
* java/awt/dnd/DropTarget.java:
Added stubs, merge from Classpath.
* java/awt/dnd/DropTargetAdapter.java:
New file, merge from Classpath.
* java/awt/dnd/DropTargetContext.java:
New file, merge from Classpath.
* java/awt/dnd/DropTargetDragEvent.java:
New file, merge from Classpath.
* java/awt/dnd/DropTargetDropEvent.java:
New file, merge from Classpath.
* java/awt/dnd/DropTargetEvent.java:
New file, merge from Classpath.
* java/awt/dnd/DropTargetListener.java:
New file, merge from Classpath.
* java/awt/dnd/MouseDragGestureRecognizer.java:
New file, merge from Classpath.
* java/awt/dnd/peer/DropTargetContextPeer.java:
New file, merge from Classpath.
From-SVN: r57777
Michael Koch [Thu, 3 Oct 2002 14:30:48 +0000 (14:30 +0000)]
2002-10-03 Michael Koch <konqueror@gmx.de>
* java/net/DatagramPacket.java
(setLength): Fixed typo and be HTML-aware.
* java/net/InetSocketAddress.java
(InetSocketAddress): Correct initialization of hostname, fixed typo.
(equals): Added comment about equality of InetSocketAddress objects.
* java/net/ServerSocket.java
(accept): Added checks.
(isClosed): New stubbed method.
* java/net/SocketOptions.java: Reindention.
* java/net/SocketPermission
(SocketPermission): Documentation fixed.
From-SVN: r57776
Jan Hubicka [Thu, 3 Oct 2002 13:15:53 +0000 (15:15 +0200)]
* i386.md (lea to mul peep2): Fix condition.
From-SVN: r57775
Andrew Haley [Thu, 3 Oct 2002 13:12:01 +0000 (13:12 +0000)]
Array_3.java (baz): New.
2002-10-03 Andrew Haley <aph@redhat.com>
* libjava.lang/Array_3.java (baz): New.
(main): Call baz.
From-SVN: r57774