Chris Demetriou [Thu, 2 Oct 2003 15:57:58 +0000 (15:57 +0000)]
f-torture.exp (search_for): Rename to...
2003-10-02 Chris Demetriou <cgd@broadcom.com>
* lib/f-torture.exp (search_for): Rename to...
(search_for_re): This. Also, clean up comments and the
"regexp" invocation.
From-SVN: r72039
Tom Tromey [Thu, 2 Oct 2003 15:34:28 +0000 (15:34 +0000)]
VMClassLoader.java (loadClass): Now native.
* java/lang/VMClassLoader.java (loadClass): Now native.
* java/lang/natClassLoader.cc (loadClass): Implement.
* prims.cc (_Jv_RunMain): Initialize ClassLoader.
From-SVN: r72038
Josef Zlomek [Thu, 2 Oct 2003 15:26:33 +0000 (17:26 +0200)]
* gcc.c-torture/compile/
20031002-1.c: New test.
From-SVN: r72035
Josef Zlomek [Thu, 2 Oct 2003 15:17:34 +0000 (17:17 +0200)]
combine.c (make_field_assignment): Check whether rtx's code is CONST_INT before using INTVAL.
PR/12292
* combine.c (make_field_assignment): Check whether rtx's code
is CONST_INT before using INTVAL.
From-SVN: r72033
Michael Koch [Thu, 2 Oct 2003 15:17:13 +0000 (15:17 +0000)]
2003-10-02 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java
(zeros): Removed.
(ANY_IF): Initalizie in static block.
(static): Load library with native methods here and initialize ANY_IF.
(isAnyLocalAddress): Check if equal to ANY_IF.
(equals): Use addr directly instead of addr1. Simplify for loop.
(toString): Rename "result" to "host" and add IP address allways.
(getLocalHost): Merged documentation from classpath.
* java/net/ServerSocket.java
(ServerSocket): New package-private constructor used by java.nio.
* java/net/URLConnection.java
(getRequestProperties): Check if already connected.
From-SVN: r72032
Josef Zlomek [Thu, 2 Oct 2003 15:11:40 +0000 (17:11 +0200)]
cgraph.c (cgraph_node): Use INSERT instead of 1 in htab_find_slot_with_hash.
* cgraph.c (cgraph_node): Use INSERT instead of 1 in
htab_find_slot_with_hash.
(cgraph_node_for_identifier): Use NO_INSERT.
(cgraph_remove_node): Use NO_INSERT.
(cgraph_varpool_node): Use INSERT.
(cgraph_varpool_node_for_identifier): Use NO_INSERT.
From-SVN: r72031
Michael Koch [Thu, 2 Oct 2003 15:02:32 +0000 (15:02 +0000)]
ByteBufferHelper.java: Rewrote all methods by suggestions from Eric Blake.
2003-10-02 Michael Koch <konqueror@gmx.de>
* java/nio/ByteBufferHelper.java:
Rewrote all methods by suggestions from Eric Blake.
From-SVN: r72030
Josef Zlomek [Thu, 2 Oct 2003 14:47:51 +0000 (16:47 +0200)]
Waldek Hebisch <hebisch@math.uni.wroc.pl> PR/12072
Waldek Hebisch <hebisch@math.uni.wroc.pl>
PR/12072
* varasm.c (compare_constant): Fix thinko.
From-SVN: r72028
Carlo Wood [Thu, 2 Oct 2003 14:29:26 +0000 (14:29 +0000)]
demangle.h (demangle<Allocator>::symbol(char const*)): Decode symbols that start with _GLOBAL_[ID]_ differently...
* include/bits/demangle.h (demangle<Allocator>::symbol(char const*)):
Decode symbols that start with _GLOBAL_[ID]_ differently: the
trailing part ends with a terminating zero and is not necessarily an
encoding.
* src/demangle.cc (): Same.
* testsuite/demangle/regression/cw-13.cc: Adjust for new output.
From-SVN: r72027
Richard Sandiford [Thu, 2 Oct 2003 12:26:39 +0000 (12:26 +0000)]
frv.c (frv_issue_rate): New function.
* config/frv/frv.c (frv_issue_rate): New function.
(frv_pack_insns): Use it.
(TARGET_SCHED_ISSUE_RATE): Define.
From-SVN: r72026
Michael Koch [Thu, 2 Oct 2003 12:16:52 +0000 (12:16 +0000)]
Fixed a little mistake that got into last commit.
From-SVN: r72025
Paolo Carlini [Thu, 2 Oct 2003 12:16:31 +0000 (14:16 +0200)]
12438.cc: Use __gnu_test::try_named_locale("").
2003-10-02 Paolo Carlini <pcarlini@unitus.it>
* testsuite/22_locale/locale/cons/12438.cc: Use
__gnu_test::try_named_locale("").
From-SVN: r72024
Michael Koch [Thu, 2 Oct 2003 12:14:44 +0000 (12:14 +0000)]
2003-10-02 Michael Koch <konqueror@gmx.de>
* java/net/URL.java
(DEFAULT_SEARCH_PATH): New static variable.
(ph_cache): Made it a HashMap.
(getURLStreamHandler): Rename propVal to ph_search_path and use
DEFAULT_SEARCH_PATH.
From-SVN: r72023
Jakub Jelinek [Thu, 2 Oct 2003 12:11:45 +0000 (14:11 +0200)]
* g++.dg/opt/cond1.C: New test.
From-SVN: r72022
Steven Bosscher [Thu, 2 Oct 2003 10:48:54 +0000 (12:48 +0200)]
mcore.c: Convert to ISO C90 function declarations and definitions.
* config/mcore/mcore.c: Convert to ISO C90 function declarations and definitions.
* config/mcore/mcore.h: Likewise.
* config/mcore/mcore-protos.h: Likewise.
From-SVN: r72020
Michael Koch [Thu, 2 Oct 2003 09:37:04 +0000 (09:37 +0000)]
2003-10-02 Michael Koch <konqueror@gmx.de>
* javax/swing/table/AbstractTableModel.java
(findColumnName): Prevent from NullPointerException if argument
columnName is null.
2003-10-02 Michael Koch <konqueror@gmx.de>
* javax/swing/table/AbstractTableModel.java:
This patch is based on a patch done by Arnaud Vandyck
<arnaud.vandyck@ulg.ac.be>.
(getColumnName): Fixed method documentation.
(findColumn): Likewise.
(getColumnClass): Likewise.
(isCellEditable): Likewise.
(setValueAt): Likewise.
(addTableModelListener): Likewise.
(removeTableModelListener): Likewise.
(getTableModelListeners): New method.
2003-10-02 Michael Koch <konqueror@gmx.de>
* javax/swing/table/AbstractTableModel.java:
Reformated.
From-SVN: r72019
Richard Sandiford [Thu, 2 Oct 2003 08:22:02 +0000 (08:22 +0000)]
frv.c (frv_use_dfa_pipeline_interface): New function.
* config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
(TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
From-SVN: r72018
Per Bothner [Thu, 2 Oct 2003 07:30:34 +0000 (07:30 +0000)]
cpplib.c (_cpp_pop_buffer): Do generate a _cpp_do_file_change callback even when popping the main file.
* cpplib.c (_cpp_pop_buffer): Do generate a _cpp_do_file_change
callback even when popping the main file.
* cpplib.c (cpp_push_buffer): Since we no longer set return_at_eof,
remove the unused return_at_eof parameter.
* cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c:
Update callers of cpp_push_buffer.
From-SVN: r72016
Per Bothner [Thu, 2 Oct 2003 07:25:03 +0000 (07:25 +0000)]
c-opts.c (c_common_post_options): Don't call cpp_find_main_file yet.
* c-opts.c (c_common_post_options): Don't call cpp_find_main_file yet.
(c_common_parse_file): No longer need to call cpp_read_main_file
when file_index > 0 (as in multi-file or server compiation).
(finish_options): Change to <built-in> is an LC_ENTER, not LC_RENAME
as this now happens before cpp_push_main_file.
(push_command_line_include): When done with options, pass LC_LEAVE
instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file.
(fe_file_change): Handle NULL new_map, and simplify.
From-SVN: r72015
Per Bothner [Thu, 2 Oct 2003 07:23:27 +0000 (07:23 +0000)]
cppinit.c (cpp_read_main_file): Split into two functions: Distribute _cpp_stack_file call over the two functions.
* cppinit.c (cpp_read_main_file): Split into two functions:
Distribute _cpp_stack_file call over the two functions.
(cpp_find_main_file): New function.
Don't call _cpp_do_file_change even if working_directory flag set.
(cpp_push_main_file): New function.
* cppfiles.c (_cpp_find_failed): New helper function.
(find_file): Made non-static and renamed to _cpp_find_file.
(_cpp_stack_file): No longer needed. But note the following.
(stack_file): Made non-static and renamed to _cpp_stack_file.
* fix-header.c (cpp_read_main_file): Replace cpp_read_main_file
call with calls to cpp_find_main_file and cpp_push_main_file.
(search_path_head): If there is no current buffer, use main_file.
* cpphash.h: Update function declarations.
* cpplib.h: Update function declarations.
From-SVN: r72014
Per Bothner [Thu, 2 Oct 2003 07:20:38 +0000 (07:20 +0000)]
cpplex.c (_cpp_get_fresh_line): Revert my no-longer-needed 08-28 change...
* cpplex.c (_cpp_get_fresh_line): Revert my no-longer-needed
08-28 change, since we're never called with a NULL buffer.
(_cpp_lex_direct): Likewise.
* cpptrad.c (_cpp_read_logical_line_trad): Likewise.
Return false if buffer is NULL at end.
* cpplex.c (_cpp_get_fresh_line): Return value now just depends on
whether pfile->buffer is NULL after pop, ignoring return_at_eof.
From-SVN: r72013
Bryce McKinlay [Thu, 2 Oct 2003 07:10:34 +0000 (07:10 +0000)]
re PR libgcj/12475 (Stack traces leak memory)
Fix PR libgcj/12475
* gnu/gcj/runtime/StackTrace.java (finalize): Declare.
* gnu/gcj/runtime/natStackTrace.cc (finalize): New. Free "addrs".
From-SVN: r72012
Per Bothner [Thu, 2 Oct 2003 07:03:42 +0000 (07:03 +0000)]
c-lex.c (fe_file_change): Handle a NULL new_map.
* c-lex.c (fe_file_change): Handle a NULL new_map.
* fix-header.c (cb_file_change): Likewise.
* c-ppoutput.c (pp_file_change): Likewise.
From-SVN: r72011
Per Bothner [Thu, 2 Oct 2003 06:54:46 +0000 (06:54 +0000)]
c-lex.c (src_line): Remove unneeded static variable.
* c-lex.c (src_line): Remove unneeded static variable.
(cb_line_change): Set input_line directly, instead of src_line.
(get_non_padding_token): We no longer need to compensate for the
"horrible things" the C++ front-end does with the current line number,
From-SVN: r72010
Zack Weinberg [Thu, 2 Oct 2003 00:44:29 +0000 (00:44 +0000)]
target.h (init_libfuncs): New hook.
* target.h (init_libfuncs): New hook.
* target-def.h: Default TARGET_INIT_BUILTINS and
TARGET_INIT_LIBFUNCS to hook_void_void. Add
TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
* builtins.c (default_init_builtins): Delete.
* expr.h (default_init_builtins): Delete prototype.
* doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
and UMODDI3_LIBCALL,
* Makefile.in (optabs.o): Depends on target.h.
* defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
* optabs.c: Include target.h.
(prepare_float_lib_cmp): No need for #ifdef around use of
FLOAT_LIB_COMPARE_RETURNS_BOOL.
(set_optab_libfunc): New function.
(init_optabs): Delete use of all *_LIBCALL defines.
Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
* optabs.h: Prototype set_optab_libfunc.
* config.gcc: Remove all references to pa/long_double.h,
ia64/hpux_longdouble.h, and gofast.h.
(mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.
* config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
* config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
* config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
* config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
* config/sparc/sparc.c, config/vax/vax.c:
Provide a definition for TARGET_INIT_LIBFUNCS. Where
necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.
* config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
* config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
* config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
* config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
* config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
* config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
* config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
* config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.
* config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
* config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
* config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.
* config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
* config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
SUN_INTEGER_MULTIPLY_64 to 0.
* config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
SUN_INTEGER_MULTIPLY_64 to 1.
* config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
SUN_INTEGER_MULTIPLY_64 to 0.
* config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
Define US_SOFTWARE_GOFAST.
* config/vax/vax.h: Default TARGET_ELF to 0.
* config/vax/elf.h: Redefine TARGET_ELF to 1.
* config/gofast.h: Don't define any macros here. Provide one
static function, gofast_maybe_init_libfuncs, which does what
INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
is already defined. Do not clear negation libfuncs. Do
not mess with HFmode, XFmode, or TFmode libfuncs.
* config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.
From-SVN: r72009
GCC Administrator [Thu, 2 Oct 2003 00:16:06 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r72007
Kelley Cook [Thu, 2 Oct 2003 00:07:50 +0000 (00:07 +0000)]
/tmp/cvs001644
From-SVN: r72005
Rainer Orth [Wed, 1 Oct 2003 23:51:10 +0000 (23:51 +0000)]
xm-iris5.h: Remove, unnecessary.
* config/mips/xm-iris5.h: Remove, unnecessary.
* config.build (mips-sgi-irix5*): Remove.
(mips-sgi-irix6*o32): Likewise.
* config.gcc (mips-sgi-irix6*o32): Remove xm_file.
(mips-sgi-irix5cross64): Likewise.
(mips-sgi-irix5*): Likewise.
* config.host (mips-sgi-irix5*): Remove.
(mips-sgi-irix6*o32): Likewise.
From-SVN: r72003
Zack Weinberg [Wed, 1 Oct 2003 23:37:30 +0000 (23:37 +0000)]
dbxout.c (dbxout_fptype_value): Delete.
* dbxout.c (dbxout_fptype_value): Delete.
(dbxout_type): Emit R3 for all COMPLEX_TYPEs.
From-SVN: r72002
Daniel Jacobowitz [Wed, 1 Oct 2003 23:12:37 +0000 (23:12 +0000)]
strerror.c: Don't provide or reference sys_errlist if strerror is available.
* strerror.c: Don't provide or reference sys_errlist if
strerror is available.
From-SVN: r72001
Alexandre Oliva [Wed, 1 Oct 2003 22:57:57 +0000 (22:57 +0000)]
output.h (compute_reloc_for_constant): Declare.
* output.h (compute_reloc_for_constant): Declare.
* varasm.c (compute_reloc_for_constant): Extract from...
(output_addressed_constants): ... here. Adjust all callers.
From-SVN: r72000
John David Anglin [Wed, 1 Oct 2003 22:52:09 +0000 (22:52 +0000)]
aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
* aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
* configure: Rebuilt.
From-SVN: r71999
Tom Tromey [Wed, 1 Oct 2003 22:41:10 +0000 (22:41 +0000)]
* gnu/gcj/runtime/FirstThread.java (getMain): Fixed indentation.
From-SVN: r71998
Richard Kenner [Wed, 1 Oct 2003 20:48:57 +0000 (20:48 +0000)]
fold-const.c (make_range): When handling unsigned, don't reverse range if high bound is zero.
* fold-const.c (make_range): When handling unsigned, don't reverse
range if high bound is zero.
From-SVN: r71991
Rainer Orth [Wed, 1 Oct 2003 20:45:59 +0000 (20:45 +0000)]
linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0): Define.
* linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0): Define.
(GLIBCXX_CHECK_STDLIB_SUPPORT): Use it to test for lrand48
instead of drand48.
* acconfig.h (HAVE_DRAND48): Renamed to HAVE_LRAND48.
* crossconfig.m4 (*-freebsd*): Define HAVE_LRAND48 instead of
HAVE_DRAND48.
* config.h.in, configure: Regenerate.
* include/bits/stl_algo.h: Use _GLIBCXX_HAVE_LRAND48 to guard
lrand48 use.
From-SVN: r71990
Alexandre Oliva [Wed, 1 Oct 2003 20:15:43 +0000 (20:15 +0000)]
config/frv/frv.h (PREDICATE_CODES): Added condexec_si_media_operator...
config/frv/frv.h (PREDICATE_CODES): Added
condexec_si_media_operator, condexec_sf_add_operator and
condexec_sf_conv_operator. Removed condexec_sf_binary_operator
and condexec_sf_unary_operator.
From-SVN: r71989
John David Anglin [Wed, 1 Oct 2003 19:25:36 +0000 (19:25 +0000)]
aclocal.m4: Add ultrix* to /dev/zero blacklist.
* aclocal.m4: Add ultrix* to /dev/zero blacklist.
* configure: Rebuilt.
From-SVN: r71987
Rainer Orth [Wed, 1 Oct 2003 18:54:46 +0000 (18:54 +0000)]
except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
* except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
Allow override.
* doc/tm.texi (MUST_USE_SJLJ_EXCEPTIONS): Document.
From-SVN: r71985
H.J. Lu [Wed, 1 Oct 2003 17:11:29 +0000 (17:11 +0000)]
configure.in: Check if $MAKEINFO is missing.
2003-10-01 H.J. Lu <hongjiu.lu@intel.com>
* configure.in: Check if $MAKEINFO is missing.
* configure: Regenerated.
From-SVN: r71983
Andreas Tobler [Wed, 1 Oct 2003 17:11:02 +0000 (19:11 +0200)]
libffi-dg.exp: Set LD_LIBRARY_PATH_64 for SPARC64.
2003-10-01 Andreas Tobler <a.tobler@schweiz.ch>
* testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_64 for
SPARC64. Cleanup whitespaces.
From-SVN: r71982
Nathan Myers [Wed, 1 Oct 2003 16:58:38 +0000 (16:58 +0000)]
locale_facets.tcc (time_put::put): Avoid expensive *__s++, in favor of *__s, ++__s.
2003-10-01 Nathan Myers <ncm@cantrip.org>
* include/bits/locale_facets.tcc (time_put::put): Avoid
expensive *__s++, in favor of *__s, ++__s.
From-SVN: r71980
Andrew Haley [Wed, 1 Oct 2003 16:22:13 +0000 (16:22 +0000)]
jcf-parse.c (java_parse_file): Write otable and atable.
2003-10-01 Andrew Haley <aph@redhat.com>
* jcf-parse.c (java_parse_file): Write otable and atable.
* java-tree.h (atable_methods): New.
(atable_decl): New.
(atable_syms_decl): New.
(enum java_tree_index): Add JTI_ATABLE_METHODS, JTI_ATABLE_DECL,
JTI_ATABLE_SYMS_DECL. Rename JTI_METHOD_SYMBOL* to JTI_SYMBOL*.
(symbol_*type): Rename method_symbol* to symbol*type.
(emit_offset_symbol_table): Delete.
(emit_symbol_table): New.
(get_symbol_table_index): New.
(atable_type): New.
* expr.c (build_field_ref): Handle flag_indirect_dispatch.
(build_known_method_ref): Likewise.
(get_symbol_table_index): Rename from get_offset_table_index.
Parameterize to allow re-use by differing types of symbol table.
(build_invokevirtual): Pass table to get_offset_table_index.
* decl.c (java_init_decl_processing): Push types and decls for
atable and atable_syyms.
* class.c (build_static_field_ref): Handle flag_indirect_dispatch.
(make_class_data): Add new fields atable and atable_syms.
(emit_symbol_table): Rename from emit_offset_symbol_table.
Parameterize to allow re-use by different types of symbol table.
(build_symbol_entry): Renamed from build_method_symbols_entry.
2003-10-01 Andrew Haley <aph@redhat.com>
* java/lang/natClass.cc (initializeClass): Check for otable and
atable.
(_Jv_LinkOffsetTable): Check for existence of atable. Rewrite
loops using for(). Search superinterfaces. Check for fields as
well as methods. Initialize atable as well as otable: check for
static methods as well as virtual methods.
* java/lang/Class.h (struct _Jv_AddressTable): New.
(atable): New.
(atable_syms): New.
* include/jvm.h (_Jv_equalUtf8Consts): constify.
* prims.cc (_Jv_equalUtf8Consts): constify.
From-SVN: r71979
Paolo Carlini [Wed, 1 Oct 2003 15:43:07 +0000 (17:43 +0200)]
locale_facets.tcc (time_put::put): Minor tweak to the previous commit.
2003-10-01 Paolo Carlini <pcarlini@unitus.it>
* include/bits/locale_facets.tcc (time_put::put): Minor
tweak to the previous commit.
From-SVN: r71977
Paolo Carlini [Wed, 1 Oct 2003 14:32:05 +0000 (16:32 +0200)]
re PR libstdc++/12439 (Problems in time_put::put)
2003-10-01 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/12439
* include/bits/locale_facets.tcc (time_put::put): Deal
with the three issues pointed out by the PR.
* testsuite/22_locale/time_put/put/char/12439_1.cc: New.
* testsuite/22_locale/time_put/put/char/12439_3.cc: New.
* testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: New.
* testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: New.
* testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: New.
From-SVN: r71976
David S. Miller [Wed, 1 Oct 2003 12:55:41 +0000 (05:55 -0700)]
linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine before redefining.
* config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine
before redefining.
* config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
From-SVN: r71973
Steven Bosscher [Wed, 1 Oct 2003 12:43:23 +0000 (12:43 +0000)]
cris-protos.h, cris.c: Convert to ISO C90 function declarations and definitions.
* config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO
C90 function declarations and definitions.
From-SVN: r71972
Nathanael Nerode [Wed, 1 Oct 2003 11:14:01 +0000 (11:14 +0000)]
* config.gcc (cris-*-linux*): Revert mistaken commit.
From-SVN: r71970
Eric Botcazou [Wed, 1 Oct 2003 06:08:35 +0000 (08:08 +0200)]
re PR rtl-optimization/11753 (%o7 register being used immediately in the delay slot before a call with -O2)
PR optimization/11753
* config/sparc/sparc.md (length attribute) [fcc branch]: Add 1 to
the length in the non-V9 case.
From-SVN: r71968
Richard Henderson [Wed, 1 Oct 2003 06:01:47 +0000 (23:01 -0700)]
dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor DWARF_ALT_FRAME_RETURN_COLUMN.
* dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor
DWARF_ALT_FRAME_RETURN_COLUMN.
* unwind-dw2.c (dwarf_reg_size_table): Expand by one.
(_Unwind_GetGR, _Unwind_SetGR): Validate lookup column.
(uw_frame_state_for): Return end-of-stack for null return address.
* doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Add.
* config/alpha/alpha.c (alpha_sa_mask): Add r31 for eh_return.
(alpha_expand_prologue): Store a zero for it.
(alpha_expand_epilogue): Don't reload it.
* config/alpha/alpha.h (DWARF_ALT_FRAME_RETURN_COLUMN): New.
* config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Use column 64
for the sigframe return address.
From-SVN: r71967
GCC Administrator [Wed, 1 Oct 2003 00:16:08 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r71963
Kaveh Ghazi [Tue, 30 Sep 2003 23:06:14 +0000 (23:06 +0000)]
Add note about PR 6222 fixed by prior patch
From-SVN: r71961
Kaveh Ghazi [Tue, 30 Sep 2003 23:01:17 +0000 (23:01 +0000)]
Add PR 9200 to prior patch
From-SVN: r71960
Richard Henderson [Tue, 30 Sep 2003 22:58:39 +0000 (15:58 -0700)]
* decl.c (duplicate_decls): Copy DECL_SAVED_INSNS too.
From-SVN: r71959
Kelley Cook [Tue, 30 Sep 2003 21:49:01 +0000 (21:49 +0000)]
Convert to ISO C90 prototypes.
From-SVN: r71957
Kelley Cook [Tue, 30 Sep 2003 21:28:09 +0000 (21:28 +0000)]
cygwin1.c: Convert to ISO C90 prototypes.
2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
* config/i386/cygwin1.c: Convert to ISO C90 prototypes.
* config/i386/winnt.c: Likewise.
* config/i386/cygming.h: Likewise.
From-SVN: r71956
Kazu Hirata [Tue, 30 Sep 2003 21:07:41 +0000 (21:07 +0000)]
fold-const.c (fold): Fold (A & ~B) - (A & B) into (A ^ B) - B for any B.
* fold-const.c (fold): Fold (A & ~B) - (A & B) into
(A ^ B) - B for any B.
From-SVN: r71953
Paolo Carlini [Tue, 30 Sep 2003 20:16:28 +0000 (22:16 +0200)]
stl_algo.h: Minor cosmetic reformattings.
2003-09-30 Paolo Carlini <pcarlini@unitus.it>
* include/bits/stl_algo.h: Minor cosmetic reformattings.
From-SVN: r71950
Roger Sayle [Tue, 30 Sep 2003 18:24:33 +0000 (18:24 +0000)]
jcf-write.c (generate_bytecode_insns): Implement evaluate-once semantics for SAVE_EXPR...
* jcf-write.c (generate_bytecode_insns): Implement evaluate-once
semantics for SAVE_EXPR, by caching the result in a temporary.
From-SVN: r71949
Nathanael Nerode [Tue, 30 Sep 2003 17:23:47 +0000 (17:23 +0000)]
config.gcc (arm*-*-kaos*, [...]): Disable fixproto.
* config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.
From-SVN: r71948
Paolo Carlini [Tue, 30 Sep 2003 17:03:52 +0000 (19:03 +0200)]
stl_algo.h (search_n): Tweak, to spare the first --__n.
2003-09-30 Paolo Carlini <pcarlini@unitus.it>
* include/bits/stl_algo.h (search_n): Tweak, to spare the
first --__n.
From-SVN: r71946
Paolo Carlini [Tue, 30 Sep 2003 15:19:33 +0000 (17:19 +0200)]
12352.cc: Explicitly qualify exception name.
2003-09-30 Paolo Carlini <pcarlini@unitus.it>
* testsuite/22_locale/locale/cons/12352.cc: Explicitly
qualify exception name.
From-SVN: r71945
Paolo Carlini [Tue, 30 Sep 2003 13:44:59 +0000 (15:44 +0200)]
re PR libstdc++/12438 (Memory leak in locale::combine())
2003-09-30 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/12438
* include/bits/locale_facets.tcc (locale::combine): Don't
leak memory if _M_replace_facet throws.
* testsuite/22_locale/locale/cons/12438.cc: New, from the PR.
* include/bits/locale_classes.h (locale::locale(const locale&,
_Facet*)): Tweak, use consistently _M_remove_reference.
From-SVN: r71943
Gabriel Dos Reis [Tue, 30 Sep 2003 11:56:25 +0000 (11:56 +0000)]
decl.c (pop_binding): Don't mess with nullifying binding->scope here.
* decl.c (pop_binding): Don't mess with nullifying binding->scope
here.
* name-lookup.c: Re-format.
(cxx_binding_free): Nullify binding->scope.
From-SVN: r71942
Richard Earnshaw [Tue, 30 Sep 2003 10:38:10 +0000 (10:38 +0000)]
* arm/ieee754-sf.S: Tidy formatting.
From-SVN: r71941
Nicolas Pitre [Tue, 30 Sep 2003 10:30:32 +0000 (10:30 +0000)]
Nicolas Pitre <nico@cam.org>
Nicolas Pitre <nico@cam.org>
* arm/lib1funcs.asm (ARM_DIV_MOD_BODY) split into ARM_DIV_BODY
and ARM_MOD_BODY.
(ARM_MOD_BODY): rewritten. added clz insns for __ARM_ARCH__ >= 5.
(ARM_DIV_BODY): added clz insns for __ARM_ARCH__ >= 5,
added better divisor alignment in the other case.
(ARM_DIV2_ORDER): added, finds the order of a single bit divisor.
(__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the
macros above, add fast exits for divisor >= dividend, etc.
From-SVN: r71940
Richard Earnshaw [Tue, 30 Sep 2003 10:21:41 +0000 (10:21 +0000)]
Nicolas Pitre <nico@cam.org>
Nicolas Pitre <nico@cam.org>
* arm/ieee754-df.S: split compilation of fixunsdfsi from
L_fixdfsi target.
* arm/t-arm-elf: add _fixunsdfsi target due to the above.
From-SVN: r71939
Nathanael Nerode [Tue, 30 Sep 2003 10:16:39 +0000 (10:16 +0000)]
* config.gcc: Default use_fixproto to 'no'.
From-SVN: r71938
Paolo Carlini [Tue, 30 Sep 2003 07:28:51 +0000 (09:28 +0200)]
PR libstdc++/12352 (cont)
2003-09-30 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/12352 (cont)
* src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
Don't leak __cloc; don't leak if any of the _M_init_facet(...)
calls fail.
(locale::_Impl::_Impl(const _Impl&, size_t)): Tweak.
(locale::_Impl::~_Impl): Don't do anything if !_M_facets,
!_M_caches, !_M_names.
From-SVN: r71936
Richard Sandiford [Tue, 30 Sep 2003 07:14:39 +0000 (07:14 +0000)]
re PR rtl-optimization/12345 (internal compiler error: verify_flow_info failed)
PR optimization/12345
* config/mips/mips-protos.h (mips_restore_gp): Remove.
(mips_gp_save_slot): Declare.
* config/mips/mips.c (mips_restore_gp): Remove in favor of...
(mips_gp_save_slot): ...this new function.
* config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
and mips_output_move to generate the output template.
(call_internal): Force splitting if TARGET_SPLIT_CALLS. Don't emit
a gp load after a noreturn call. Load the gp using a move rather
than an exception_receiver pattern.
(call_value_internal, call_value_multiple_internal): Likewise.
(call_split, call_value_split, call_value_multiple_split): Clobber $28.
From-SVN: r71935
GCC Administrator [Tue, 30 Sep 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r71929
Carlo Wood [Mon, 29 Sep 2003 23:09:12 +0000 (23:09 +0000)]
re PR debug/12319 (Wrong DW_AT_low_pc and DW_AT_high_pc for DW_TAG_inlined_subroutine)
PR debug/12319
* cfglayout.c (insn_scope): Use prologue_locator and
epilogue_locator; return the outer function scope for
pro- and epilogue insns.
From-SVN: r71926
Carlo Wood [Mon, 29 Sep 2003 22:51:00 +0000 (22:51 +0000)]
MAINTAINERS (Write After Approval): Add myself.
2003-09-30 Carlo Wood <carlo@alinoe.com>
* MAINTAINERS (Write After Approval): Add myself.
From-SVN: r71925
Zack Weinberg [Mon, 29 Sep 2003 22:28:58 +0000 (22:28 +0000)]
objc-act.c (encode_type): Encode INTEGER_TYPEs and REAL_TYPEs based on the bitsize of the type's mode...
* objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
REAL_TYPEs based on the bitsize of the type's mode, not the
mode directly.
From-SVN: r71923
Zack Weinberg [Mon, 29 Sep 2003 22:21:15 +0000 (22:21 +0000)]
target.c (FFETARGET_ATOF_): Delete.
f:
* target.c (FFETARGET_ATOF_): Delete.
(ffetarget_real1, ffetarget_real2): Use real_from_string directly.
* target.h (FFETARGET_REAL_VALUE_FROM_INT_,
FFETARGET_REAL_VALUE_FROM_LONGLONG_): Use mode_for_size,
don't refer to SFmode or DFmode directly.
From-SVN: r71922
Zack Weinberg [Mon, 29 Sep 2003 22:14:01 +0000 (22:14 +0000)]
trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to initialize dconstp5 and dconstmp5.
ada:
* trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
initialize dconstp5 and dconstmp5.
From-SVN: r71921
Rainer Orth [Mon, 29 Sep 2003 22:07:39 +0000 (22:07 +0000)]
dwarf2out.c (default_eh_frame_section): Split into ...
* dwarf2out.c (default_eh_frame_section): Split into ...
(named_section_eh_frame_section, collect2_eh_frame_section): ... new
functions.
* output.h (named_section_eh_frame_section): Declare.
(collect2_eh_frame_section): Likewise.
From-SVN: r71920
Zack Weinberg [Mon, 29 Sep 2003 21:59:58 +0000 (21:59 +0000)]
* real.c (real_sqrt): Use get_canonical_qnan directly.
From-SVN: r71919
Zack Weinberg [Mon, 29 Sep 2003 21:52:25 +0000 (21:52 +0000)]
* dwarf2out.c (add_const_value_attribute): Use real_to_target.
From-SVN: r71918
Zack Weinberg [Mon, 29 Sep 2003 21:29:11 +0000 (21:29 +0000)]
varasm.c (assemble_real): Use real_to_target directly...
* varasm.c (assemble_real): Use real_to_target directly,
calculate the number of significant elements of the result
array and write them out in a loop, instead of using a giant
switch statement to pick the correct REAL_VALUE_TO_TARGET_*
macro.
From-SVN: r71917
Jan Hubicka [Mon, 29 Sep 2003 21:19:10 +0000 (23:19 +0200)]
re PR c++/12175 (Tru64 UNIX bootstrap failure: multiply defined symbols linking libstdc++.so)
PR c++/12175
* varasm.c (notice_global_symbol): Discard external symbols.
PR optimization/12286
* gcov-io.c (gcov_read_words): Fix memmove call.
* profile.c (compute_branch_probabilities): Add extra sanity checks.
PR C++/12047
* except.c (build_eh_type_type): Call mark_used on the type.
From-SVN: r71916
Tom Tromey [Mon, 29 Sep 2003 21:13:55 +0000 (21:13 +0000)]
re PR libgcj/10596 (Reference and String.intern don't work together)
PR libgcj/10596:
* include/jvm.h (_Jv_FinalizeString,
_Jv_RegisterStringFinalizer): Declare.
* java/lang/natString.cc (_Jv_FinalizeString): Renamed from
unintern.
(intern): Updated.
(_Jv_NewStringUtf8Const): Likewise.
* java/lang/ref/natReference.cc (finalize_referred_to_object):
Add special case when finalizing a String.
(in_hash): New function.
(_Jv_RegisterStringFinalizer): Likewise.
(maybe_add_finalize): Likewise.
From-SVN: r71915
Rainer Orth [Mon, 29 Sep 2003 20:02:08 +0000 (20:02 +0000)]
configure.in: Remove wildcard from Solaris 8-9/Intel and Solaris 2.3/SPARC...
boehm-gc:
* configure.in: Remove wildcard from Solaris 8-9/Intel and Solaris
2.3/SPARC, there are no micro versions.
Treat Solaris 10 and up alike.
* configure: Regenerate.
gcc:
* config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
Solaris 7-9.
* fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
wildcards which explicitly match micro versions.
* fixinc/fixincl.x: Regenerate.
libstdc++-v3:
* configure.host: Handle Solaris 2.5 micro releases explicitly.
Remove wildcards from Solaris 2.6, 7-9: there were no
micro releases.
Treat Solaris 10 and up like 7-9.
From-SVN: r71914
Paolo Carlini [Mon, 29 Sep 2003 19:43:04 +0000 (21:43 +0200)]
stl_algo.h (search_n): Improve the previous fix as suggested by Martin.
2003-09-29 Paolo Carlini <pcarlini@unitus.it>
* include/bits/stl_algo.h (search_n): Improve the previous
fix as suggested by Martin.
From-SVN: r71913
Richard Kenner [Mon, 29 Sep 2003 17:41:47 +0000 (13:41 -0400)]
Remove extra comma in comment.
From-SVN: r71912
Paolo Carlini [Mon, 29 Sep 2003 17:36:18 +0000 (17:36 +0000)]
[multiple changes]
2003-09-29 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/12296
* include/bits/istream.tcc (peek): Set eofbit if sgetc
returns eof.
* testsuite/27_io/basic_istream/peek/char/12296.cc:
New, from the PR.
2003-09-29 Nathan Myers <ncm@cantrip.org>
Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/11400
* include/bits/stl_algo.h (search_n):
Use iterator_traits<>::difference_type for __n.
* testsuite/25_algorithms/search_n/11400.cc: New, from the PR.
From-SVN: r71911
Kazu Hirata [Mon, 29 Sep 2003 17:35:11 +0000 (17:35 +0000)]
fold-const.c (fold): Fold (A & ~B) - (A & B) into (A ^ B) - B, where B is any power of 2 minus 1.
* fold-const.c (fold): Fold (A & ~B) - (A & B) into
(A ^ B) - B, where B is any power of 2 minus 1.
From-SVN: r71910
Richard Henderson [Mon, 29 Sep 2003 17:16:09 +0000 (10:16 -0700)]
* g++.dg/init/array10.C: Add dg-options.
From-SVN: r71907
Jan Hubicka [Mon, 29 Sep 2003 17:09:36 +0000 (19:09 +0200)]
* libgcov.c (gcov_exit): Fix two pastos.
From-SVN: r71906
Kazu Hirata [Mon, 29 Sep 2003 16:34:09 +0000 (16:34 +0000)]
h8300.md (*tst_extzv_1_n): Combine with the define_split immediately below to form define_insn_and_split.
* config/h8300/h8300.md (*tst_extzv_1_n): Combine with the
define_split immediately below to form define_insn_and_split.
From-SVN: r71903
Kazu Hirata [Mon, 29 Sep 2003 16:32:28 +0000 (16:32 +0000)]
h8300.md (*tstsi_variable_bit): New.
* config/h8300/h8300.md (*tstsi_variable_bit): New.
(*tstsi_variable_bit_qi): Likewise.
From-SVN: r71902
Paul Koning [Mon, 29 Sep 2003 16:27:40 +0000 (12:27 -0400)]
MAINTAINERS: Move myself from "Write After Approval" to CPU platform maintainers for pdp11...
* MAINTAINERS: Move myself from "Write After Approval"
to CPU platform maintainers for pdp11 platform.
From-SVN: r71901
Michael Koch [Mon, 29 Sep 2003 12:05:41 +0000 (12:05 +0000)]
Fixed little typo.
From-SVN: r71900
Michael Koch [Mon, 29 Sep 2003 11:53:23 +0000 (11:53 +0000)]
2003-09-29 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java:
(isMulticastAddress): Dont use local variable to store address length.
Let the compiler optimize this.
(getHostName): Merged dcoumentation from classpath.
(getAddress): Likewise.
(getHostAddress): Likewise.
(hashCode): Likewise.
(equals): Likewise.
(toString): Likewise.
(getByName): Likewise.
(getAllByName): Likewise.
From-SVN: r71899
Michael Koch [Mon, 29 Sep 2003 11:28:58 +0000 (11:28 +0000)]
IndexColorModel.java: Reformated.
2003-09-29 Michael Koch <konqueror@gmx.de>
* java/awt/image/IndexColorModel.java: Reformated.
From-SVN: r71898
Michael Koch [Mon, 29 Sep 2003 11:24:28 +0000 (11:24 +0000)]
InetAddress.java, URL.java: Reformated.
2003-09-29 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java,
java/net/URL.java: Reformated.
From-SVN: r71897
Paolo Carlini [Mon, 29 Sep 2003 08:25:17 +0000 (10:25 +0200)]
12352.cc: Use __attribute__((unused)) for test.
2003-09-29 Paolo Carlini <pcarlini@unitus.it>
* testsuite/22_locale/locale/cons/12352.cc:
Use __attribute__((unused)) for test.
From-SVN: r71896
Bryce McKinlay [Mon, 29 Sep 2003 07:13:40 +0000 (07:13 +0000)]
boehm.cc (_Jv_BuildGCDescr): Put first word of object in most significant bit of descriptor.
* boehm.cc (_Jv_BuildGCDescr): Put first word of object in most
significant bit of descriptor. Include the vtable and sync_info
fields.
From-SVN: r71895
Phil Edwards [Mon, 29 Sep 2003 06:19:39 +0000 (06:19 +0000)]
cppopts.texi: Use 'dashMP' instead of '-MP' as a cross- reference name.
2003-09-28 Phil Edwards <phil@codesourcery.com>
* doc/cppopts.texi: Use 'dashMP' instead of '-MP' as a cross-
reference name.
From-SVN: r71894
Eric Botcazou [Mon, 29 Sep 2003 06:14:59 +0000 (08:14 +0200)]
* g++.dg/opt/unroll1.C: Change unsigned to __SIZE_TYPE__.
From-SVN: r71891
GCC Administrator [Mon, 29 Sep 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r71888