platform/upstream/gcc.git
21 years ago2003-03-21 Michael Koch <konqueror@gmx.de>
Michael Koch [Fri, 21 Mar 2003 09:00:29 +0000 (09:00 +0000)]
2003-03-21  Michael Koch  <konqueror@gmx.de>

* java/rmi/activation/Activatable.java
(serialVersionUID): New member variable.
* java/rmi/activation/ActivationGroup.java
(serialVersionUID): New member variable.
* java/rmi/activation/ActivationGroupDesc.java
(serialVersionUID): New member variable.
* java/rmi/registry/Registry.java:
Reformated.
(Registry): Deprecated.
* java/rmi/server/LoaderHandler.java
Reformated.
(LoaderHandler): Deprecated.
* java/rmi/server/LogStream.java
Reformated.
(LogStream): Deprecated.
* java/rmi/server/Operation.java
(Operation): Deprecated.
* java/rmi/server/RMIFailureHandler.java:
Reformated.
* java/rmi/server/RMISocketFactory.java:
Reformated.
* java/rmi/server/RemoteCall.java
(RemoteCall): Deprecated.
* java/rmi/server/RemoteStub.java:
Reformated.
* java/rmi/server/Skeleton.java
Reformated.
(Skeleton): Deprecated.

From-SVN: r64655

21 years ago2003-03-21 Michael Koch <konqueror@gmx.de>
Michael Koch [Fri, 21 Mar 2003 08:48:27 +0000 (08:48 +0000)]
2003-03-21  Michael Koch  <konqueror@gmx.de>

* java/io/LineNumberReader.java
(LineNumberReader): Merged documentation with classpath.
(getLineNumber): Likewise.
(setLineNumber): Likewise.
(mark): Likewise.
(reset): Likewise.
(read): Likewise.
(readLine): Likewise.
(skip): Likewise.

From-SVN: r64654

21 years ago2003-03-21 Michael Koch <konqueror@gmx.de>
Michael Koch [Fri, 21 Mar 2003 08:48:14 +0000 (08:48 +0000)]
2003-03-21  Michael Koch  <konqueror@gmx.de>

* java/rmi/RMISecurityManager.java
(checkAccept): Removed.
(checkAccess): Likewise.
(checkAccess): Likewise.
(checkAwtEventQueueAccess): Likewise.
(checkConnect): Likewise.
(checkCreateClassLoader): Likewise.
(checkDelete): Likewise.
(checkExec): Likewise.
(checkExit): Likewise.
(checkLink): Likewise.
(checkListen): Likewise.
(checkMemberAccess): Likewise.
(checkMulticast): Likewise.
(checkPackageAccess): Likewise.
(checkPackageDefinition): Likewise.
(checkPermission): Likewise.
(checkPrintJobAccess): Likewise.
(checkPropertiesAccess): Likewise.
(checkPropertyAccess): Likewise.
(checkRead): Likewise.
(checkSecurityAccess): Likewise.
(checkSetFactory): Likewise.
(checkSystemClipboardAccess): Likewise.
(checkTopLevelWindow): Likewise.
(checkWrite): Likewise.

From-SVN: r64653

21 years agotreetree.c (cpp_create_reader): Follow prototype change in cpplib.h.
Andreas Jaeger [Fri, 21 Mar 2003 07:27:42 +0000 (08:27 +0100)]
treetree.c (cpp_create_reader): Follow prototype change in cpplib.h.

* treetree.c (cpp_create_reader): Follow prototype change in
cpplib.h.

From-SVN: r64652

21 years agore PR c++/9440 (error message about "non-lvalue in unary '&'" when using ?: operator)
Jason Merrill [Fri, 21 Mar 2003 07:13:53 +0000 (02:13 -0500)]
re PR c++/9440 (error message about "non-lvalue in unary '&'" when using ?: operator)

        PR c++/9440
        * call.c (build_conditional_expr): Use convert rather than an
        explicit NOP_EXPR.

From-SVN: r64651

21 years agoPR c++/8316, c++/9315, c++/10136
Jason Merrill [Fri, 21 Mar 2003 07:12:50 +0000 (02:12 -0500)]
PR c++/8316, c++/9315, c++/10136

        PR c++/8316, c++/9315, c++/10136
        * call.c (print_z_candidate): Split out from...
        (print_z_candidiates): ...here.
        (joust): Use it.

From-SVN: r64650

21 years agore PR c++/9420 (incomplete type incorrectly reported)
Jason Merrill [Fri, 21 Mar 2003 07:10:43 +0000 (02:10 -0500)]
re PR c++/9420 (incomplete type incorrectly reported)

        PR c++/9420
        * search.c (lookup_conversions): Call complete_type here.
        * call.c (implicit_conversion): Not here.

From-SVN: r64649

21 years agore PR c++/7050 (g++ segfaults on: (i ? get_string() : throw))
Jason Merrill [Fri, 21 Mar 2003 07:08:02 +0000 (02:08 -0500)]
re PR c++/7050 (g++ segfaults on: (i ? get_string() : throw))

        PR c++/7050
        * expr.c (store_expr): Don't attempt to store void-typed trees,
        just evaluate them for side effects.

From-SVN: r64646

21 years agodecl2.c (arg_assoc_class): Correct check for namespace-scope friends.
Mark Mitchell [Fri, 21 Mar 2003 07:04:07 +0000 (07:04 +0000)]
decl2.c (arg_assoc_class): Correct check for namespace-scope friends.

* cp/decl2.c (arg_assoc_class): Correct check for namespace-scope
friends.
* cp/pt.c (instantiate_class_template): Fix formatting.

* g++.dg/template/friend17.C: New test.

From-SVN: r64645

21 years agostormy16.c (xstormy16_expand_arith): Make sure we always emit at least one insn.
DJ Delorie [Fri, 21 Mar 2003 06:03:01 +0000 (01:03 -0500)]
stormy16.c (xstormy16_expand_arith): Make sure we always emit at least one insn.

* config/stormy16/stormy16.c (xstormy16_expand_arith): Make
sure we always emit at least one insn.

From-SVN: r64644

21 years agoconfig.gcc (i[34567]86-*-cygwin*): Use new common makefile stub t-cygming.
Christopher Faylor [Fri, 21 Mar 2003 03:57:09 +0000 (03:57 +0000)]
config.gcc (i[34567]86-*-cygwin*): Use new common makefile stub t-cygming.

2003-03-21  Christopher Faylor  <cgf@redhat.com>

* config.gcc (i[34567]86-*-cygwin*): Use new common makefile
stub t-cygming. Use common target header cygming.h. Add extra
c_target_obj and cxx_target_obj file. Default cygwin to posix
threading. Enforce i386 as float format.
(i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
Remove cygwin.h as target header. Use common target header
cygming.h  Enforce i386 as float format. Correct typo.
* config/i386/cygming.h: New file, containing definitions
common to mingw32 and cygwin.
* config/i386/cygwin.h: Remove definitions common to cygwin and
mingw. Simplify special spec logic.  Define "wrappers" around
certain include path defines to accommodate -mno-cygwin.
Remove some #if 0'ed code.
(STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
(LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
(GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
* config/i386/mingw32.h: Remove definitions common to cygwin and
mingw.
(EXTRA_OS_CPP_BUILTINS): Adjust.
(TARGET_VERSION): Define.
* config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
mingw32.h definitions.
(LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
* config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
Add compilation rules for cygwin1.o cygwin2.o.
* config/i386/cygwin1.c: New file.
* config/i386/cygwin2.c: New file.
* config/i386/t-cygming: New makefile stub.

From-SVN: r64643

21 years agoDaily bump.
GCC Administrator [Fri, 21 Mar 2003 00:17:09 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r64642

21 years agoNew test.
Alan Modra [Fri, 21 Mar 2003 00:13:41 +0000 (00:13 +0000)]
New test.

From-SVN: r64635

21 years agofold-const.c (extract_muldiv_1): Revert changing order of operands in case MULT_EXPR...
Richard Henderson [Fri, 21 Mar 2003 00:03:24 +0000 (16:03 -0800)]
fold-const.c (extract_muldiv_1): Revert changing order of operands in case MULT_EXPR of 2003-02-16 patch.

        * fold-const.c (extract_muldiv_1): Revert changing order of
        operands in case MULT_EXPR of 2003-02-16 patch.

From-SVN: r64632

21 years agoSomehow the indentation got screwed when i patched the commit tree on a PC with a...
Daniel Berlin [Thu, 20 Mar 2003 23:05:55 +0000 (23:05 +0000)]
Somehow the indentation got screwed when i patched the commit tree on a PC with a patch from a mac.

From-SVN: r64630

21 years ago2003-03-20 Daniel Berlin <dberlin@dberlin.org>
Daniel Berlin [Thu, 20 Mar 2003 23:02:54 +0000 (23:02 +0000)]
2003-03-20  Daniel Berlin  <dberlin@dberlin.org>
Merge changes from new-regalloc-branch

From Michael Matz  <matz@suse.de>
* df.c (df_ref_record_1): Move init of loc to safe point.
Only recurse on interesting things in parallels.
Handle CLASS_CANNOT_CHANGE_MODE smarter.
(df_uses_record): Ditto.

* df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
it's already okay to use memory operands in (IE doesn't require
adding another insn or anything).

From-SVN: r64629

21 years agore PR middle-end/6348 (internal error in allocate_dynamic_stack_space with STACK_SIZE...
Richard Henderson [Thu, 20 Mar 2003 22:51:39 +0000 (14:51 -0800)]
re PR middle-end/6348 (internal error in allocate_dynamic_stack_space with STACK_SIZE_MODE non-default)

        PR middle-end/6348
        * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
        different from word_mode.

From-SVN: r64628

21 years agoh8300.md (*insv_si_1_n_lshiftrt): Restrict the source operand to those that can be...
Kazu Hirata [Thu, 20 Mar 2003 22:22:35 +0000 (22:22 +0000)]
h8300.md (*insv_si_1_n_lshiftrt): Restrict the source operand to those that can be extracted with bld.

* config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
source operand to those that can be extracted with bld.

From-SVN: r64627

21 years agore PR target/10066 ([arm-linux] libjava build error on arm-linux)
Richard Earnshaw [Thu, 20 Mar 2003 22:04:56 +0000 (22:04 +0000)]
re PR target/10066 ([arm-linux] libjava build error on arm-linux)

PR 10066
* arm.md (UNSPEC_PIC_BASE): New constant.
(pic_add_dot_plus_four): Wrap with unspec.
(pic_add_dot_plus_eight): Likewise.

From-SVN: r64626

21 years agocp-tree.h (unemitted_tinfo_decls): Declaration of a new varray.
Matt Austern [Thu, 20 Mar 2003 21:14:30 +0000 (21:14 +0000)]
cp-tree.h (unemitted_tinfo_decls): Declaration of a new varray.

* cp-tree.h (unemitted_tinfo_decls): Declaration of a new varray.
(unemitted_tinfo_decl_p): Remove.
(emit_tinfo_decl): Change declaration to remove unused parameter.
* decl2.c (finish_file): Change tinfo emission to loop through
unemitted_tinfo_decls array instead of looping through all decls.
* rtti.c (unemitted_tinfo_decl_p): Declare as static, remove
unused second parameter.
(init_rtti_processing): initialize unemitted_tinfo_decls varray.
(get_tinfo_decls): push new tinfo decl on unemitted_tinfo_decls.
(emit_tinfo_decl): remove unused second parameter, add assertion
that decl hasn't already been emitted.

From-SVN: r64621

21 years agoh8300.md (*insv_si_1_n): New.
Kazu Hirata [Thu, 20 Mar 2003 21:12:01 +0000 (21:12 +0000)]
h8300.md (*insv_si_1_n): New.

* config/h8300/h8300.md (*insv_si_1_n): New.
(*insv_si_1_n_lshiftrt): Likewise.

From-SVN: r64620

21 years agofold-const.c (fold_mathfn_compare): New function to simplify comparisons against...
Roger Sayle [Thu, 20 Mar 2003 17:48:26 +0000 (17:48 +0000)]
fold-const.c (fold_mathfn_compare): New function to simplify comparisons against built-in math functions.

* fold-const.c (fold_mathfn_compare): New function to simplify
comparisons against built-in math functions.  Fold comparisons
of sqrt against constants.
(fold): Call fold_mathfn_compare when appropriate.

* gcc.dg/builtins-6.c: New test case.

From-SVN: r64619

21 years agoifcvt.c (find_if_case_1): If we add a new bb, update the dominance information.
Richard Earnshaw [Thu, 20 Mar 2003 16:49:24 +0000 (16:49 +0000)]
ifcvt.c (find_if_case_1): If we add a new bb, update the dominance information.

* ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
information.

From-SVN: r64618

21 years agoVarious cleanups to help compile server.
Per Bothner [Thu, 20 Mar 2003 16:46:18 +0000 (16:46 +0000)]
Various cleanups to help compile server.

* cppinit.c (cpp_create_reader):  Take extra hash_table* argument,
and pass that to _cpp_init_hashtable.
(cpp_read_main_file):  Drop hash_table* argument; don't call
_cpp_init_hashtable.
* cpplib.h:  Update declarations to match.
* c-opts.c (c_common_init_options):  Pass ident_hash to
cpp_create_reader.
(c_common_post_options):  Don't pass ident_hash to cpp_read_main_file.
* fix-header.c (read_scan_file):  Likewise pass NULL table to
cpp_create_reader rather than cpp_read_main_file.

* cppfiles.c (cpp_rename_file):  Generalized and renamed
to cpp_change_file.
* cpplib.h:  Update declaration to match.
* c-opts.c (push_command_line_line, finish_options):  Change
cpp_rename_file calls to cpp_change_file.

From-SVN: r64617

21 years agoVarious cleanups to help compile server.
Per Bothner [Thu, 20 Mar 2003 16:43:19 +0000 (16:43 +0000)]
Various cleanups to help compile server.

* line-map.c (add_line_map):  Allow leaving the outermost file.
Allowing entering an outermost-file after the initial time.

* toplev.c (pop_srcloc):  Allow popping from initial file.

From-SVN: r64616

21 years ago* fold-const.c (fold): Fold A - (A & B) into ~B & A.
Kazu Hirata [Thu, 20 Mar 2003 16:10:36 +0000 (16:10 +0000)]
* fold-const.c (fold): Fold A - (A & B) into ~B & A.

From-SVN: r64615

21 years ago* config/h8300/h8300.md (a peephole2): New.
Kazu Hirata [Thu, 20 Mar 2003 16:03:34 +0000 (16:03 +0000)]
* config/h8300/h8300.md (a peephole2): New.

From-SVN: r64614

21 years ago2003-03-20 Michael Koch <konqueror@gmx.de>
Michael Koch [Thu, 20 Mar 2003 11:14:35 +0000 (11:14 +0000)]
2003-03-20  Michael Koch  <konqueror@gmx.de>

* gnu/java/nio/FileChannelImpl.java
(address): Removed.
(map_address): New member variable.
(length): Make it package private.
(fd): Make it package private.
(buf): Make it package private.
(file_obj): Make it package private.
(FileChannelImpl): New constructor.
(nio_mmap_file): Use RawData instead of long.
(nio_munmap_file): Use RawData instead of long.
(nio_msync): Use RawData instead of long.
(implCloseChannel): New implementation using map_address.
(read): Reformated.
(map): Implemented.
(create_direct_mapped_buffer): Implemented, use RawData, throws
IOException.
(force): Use map_address instead of address.
* gnu/java/nio/MappedByteFileBuffer.java
(address): Removed.
(map_address): New member variable.
(MappedByteFileBuffer): Use map_address instead of address, reformated.
(several methods): Use map_address instead of address, replaced long
with RawData where appropriate.
* gnu/java/nio/natFileChannelImpl.cc
(nio_mmap_file): Replaced long with RawData.
(nio_munmap_file): Replaced long with RawData.
(nio_msync): Replaced long with RawData.
* gnu/java/nio/natMappedByteFileBuffer.cc
(several methods): Replaced long with RawData where appropriate.

From-SVN: r64612

21 years agoInetAddress.java, [...]: Merged copyright statements with classpath for easier merging.
Michael Koch [Thu, 20 Mar 2003 08:19:58 +0000 (08:19 +0000)]
InetAddress.java, [...]: Merged copyright statements with classpath for easier merging.

2003-03-20  Michael Koch  <konqueror@gmx.de>

* java/net/InetAddress.java,
java/net/JarURLConnection.java,
java/net/PlainDatagramSocketImpl.java,
java/net/PlainSocketImpl.java,
java/net/URLConnection.java:
Merged copyright statements with classpath for easier merging.

From-SVN: r64611

21 years ago2003-03-20 Michael Koch <konqueror@gmx.de>
Michael Koch [Thu, 20 Mar 2003 07:54:24 +0000 (07:54 +0000)]
2003-03-20  Michael Koch  <konqueror@gmx.de>

* java/io/FileInputStream.java
(getChannel): New implementation.
* java/io/FileOutputStream.java
(ch): New member variable.
(getChannel): Implemented.
* java/io/RandomAccessFile.java
(RandomAccessFile): Throws FileNotFoundException instead of
IOException.
(getChannel): New method.
(ch): New member variable.

From-SVN: r64609

21 years agoDataOutputStream.java, [...]: Merged copyright statements with classpath for easier...
Michael Koch [Thu, 20 Mar 2003 07:47:01 +0000 (07:47 +0000)]
DataOutputStream.java, [...]: Merged copyright statements with classpath for easier merging.

2003-03-20  Michael Koch  <konqueror@gmx.de>

* java/io/DataOutputStream.java,
java/io/File.java,
java/io/FileInputStream.java,
java/io/FileOutputStream.java,
java/io/InputStreamReader.java,
java/io/LineNumberReader.java,
java/io/OutputStreamWriter.java,
java/io/PrintStream.java,
java/io/RandomAccessFile.java:
Merged copyright statements with classpath for easier merging.

From-SVN: r64608

21 years agoh8300.md (*addsi3_and_r_1): New.
Kazu Hirata [Thu, 20 Mar 2003 06:43:29 +0000 (06:43 +0000)]
h8300.md (*addsi3_and_r_1): New.

* config/h8300/h8300.md (*addsi3_and_r_1): New.
(*addsi3_and_not_r_1): Likewise.

From-SVN: r64607

21 years agoMakefile.in (STRICT2_WARN): Add @WERROR@.
Loren J. Rittle [Thu, 20 Mar 2003 03:11:25 +0000 (03:11 +0000)]
Makefile.in (STRICT2_WARN): Add @WERROR@.

        * Makefile.in (STRICT2_WARN): Add @WERROR@.
        (GCC_WARN_CFLAGS): Remove $(WERROR).
        (fixinc.sh-warn): New.
        * ada/Make-lang.in (ada-warn): Add $(WERROR).
        * cp/Make-lang.in (cp-warn): Add $(WERROR).
        * f/Make-lang.in (f-warn): Add $(WERROR).
        * java/Make-lang.in (java-warn): Add $(WERROR).
        * treelang/Make-lang.in (treelang-warn): Add $(WERROR).

From-SVN: r64606

21 years agoatomicity.h (__exchange_and_add, [...]): Only .set mips2 for the o32 ABI.
Alexandre Oliva [Thu, 20 Mar 2003 02:30:42 +0000 (02:30 +0000)]
atomicity.h (__exchange_and_add, [...]): Only .set mips2 for the o32 ABI.

* config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
Only .set mips2 for the o32 ABI.

From-SVN: r64604

21 years agoDaily bump.
GCC Administrator [Thu, 20 Mar 2003 00:17:13 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r64603

21 years agoc-common.h (c_dump_tree), [...]): Change return type from 'int' to 'bool'.
Nathanael Nerode [Wed, 19 Mar 2003 20:34:10 +0000 (20:34 +0000)]
c-common.h (c_dump_tree), [...]): Change return type from 'int' to 'bool'.

(gcc)
* c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
langhooks-def.h (lhd_tree_dump_dump_tree),
langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
Change return type from 'int' to 'bool'.  Replace 0 and 1 with
true and false in return statements.
(cp)
* dump.c (cp_dump_tree), cp-tree.h (cp_dump_tree): Change return
type from 'int' to 'bool'. Replace 0 and 1 with true and false in
return statements.
(java)
* lang.c (java_dump_tree): Change return type from 'int' to 'bool'.
Replace 0 and 1 with true and false in return statements.

From-SVN: r64596

21 years agotree.c (substitute_in_expr, case 'e'): Only make recursive call on an operand if...
Richard Kenner [Wed, 19 Mar 2003 20:20:57 +0000 (15:20 -0500)]
tree.c (substitute_in_expr, case 'e'): Only make recursive call on an operand if it has a PLACEHOLDER_EXPR.

* tree.c (substitute_in_expr, case 'e'): Only make recursive call
on an operand if it has a PLACEHOLDER_EXPR.

From-SVN: r64595

21 years agofix typo
Jason Merrill [Wed, 19 Mar 2003 19:43:40 +0000 (14:43 -0500)]
fix typo

From-SVN: r64592

21 years agoPR c++/8316, c++/9315, c++/10136
Jason Merrill [Wed, 19 Mar 2003 18:19:53 +0000 (13:19 -0500)]
PR c++/8316, c++/9315, c++/10136

        PR c++/8316, c++/9315, c++/10136
        * call.c (print_z_candidate): Split out from...
        (print_z_candidiates): ...here.
        (joust): Use it.

From-SVN: r64590

21 years agoAdd support for DWARF 3 64-bit sections.
Kevin Buettner [Wed, 19 Mar 2003 18:18:36 +0000 (18:18 +0000)]
Add support for DWARF 3 64-bit sections.

From-SVN: r64589

21 years agolex.c (do_java_lex): Renamed from java_lex.
Tom Tromey [Wed, 19 Mar 2003 17:02:43 +0000 (17:02 +0000)]
lex.c (do_java_lex): Renamed from java_lex.

* lex.c (do_java_lex): Renamed from java_lex.
(java_lex): New function.
Include timevar.h.

From-SVN: r64586

21 years agoFix date of last entry.
Ulrich Weigand [Wed, 19 Mar 2003 14:58:28 +0000 (14:58 +0000)]
Fix date of last entry.

From-SVN: r64585

21 years agos390.c (s390_preferred_reload_class): Do not force constants to the pool unless neces...
Ulrich Weigand [Wed, 19 Mar 2003 14:54:26 +0000 (14:54 +0000)]
s390.c (s390_preferred_reload_class): Do not force constants to the pool unless necessary.

* config/s390/s390.c (s390_preferred_reload_class): Do not
force constants to the pool unless necessary.
(s390_decompose_address): Prefer to use pointer as base,
not index register.
* config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
Q alternative.
("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
"*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
("*extractqi", "*extracthi", "*zero_extendhisi2_31",
"*zero_extendqisi2_31", "*zero_extendqihi2_31",
"*adddi3_31", "*subdi3_31"): Do not set "type" attribute.

From-SVN: r64583

21 years agoi386.h (machine_function): New fields use_fast_prologue_epilogue.
Jan Hubicka [Wed, 19 Mar 2003 12:51:28 +0000 (13:51 +0100)]
i386.h (machine_function): New fields use_fast_prologue_epilogue.

* i386.h (machine_function): New fields use_fast_prologue_epilogue.
* i386.c (use_fast_prologue_epilogue): Remove.
(ix86_frame): New field save_regs-using_mov;
(ix86_compute_frame_layout):  Decide on fast prologues;
allocate saved registers in red zone.
(ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.

From-SVN: r64579

21 years ago1.cc: Test char not wchar_t.
Paolo Carlini [Wed, 19 Mar 2003 12:17:49 +0000 (13:17 +0100)]
1.cc: Test char not wchar_t.

2003-03-19  Paolo Carlini  <pcarlini@unitus.it>

* testsuite/21_strings/char_traits/requirements/char/1.cc:
Test char not wchar_t.

From-SVN: r64576

21 years agoProcess.java: Merged from classpath.
Michael Koch [Wed, 19 Mar 2003 12:15:04 +0000 (12:15 +0000)]
Process.java: Merged from classpath.

2003-03-19  Michael Koch  <konqueror@gmx.de>

* java/lang/Process.java:
Merged from classpath.

From-SVN: r64575

21 years ago2003-03-19 Michael Koch <konqueror@gmx.de>
Michael Koch [Wed, 19 Mar 2003 12:13:41 +0000 (12:13 +0000)]
2003-03-19  Michael Koch  <konqueror@gmx.de>

* java/io/FileOutputStream.java
(FileOutputStream): New constructor, merged from classpath.
* java/io/FileWriter.java
(FileWriter): New constructor, merged from classpath.

From-SVN: r64574

21 years ago(CPP_SPEC): Remove trailing semi-colon.
Nick Clifton [Wed, 19 Mar 2003 10:32:46 +0000 (10:32 +0000)]
(CPP_SPEC): Remove trailing semi-colon.

From-SVN: r64573

21 years agore PR target/10062 (internal compiler error: in output_cbranch, at config/pa/pa.c...
John David Anglin [Wed, 19 Mar 2003 04:41:48 +0000 (04:41 +0000)]
re PR target/10062 (internal compiler error: in output_cbranch, at config/pa/pa.c: 5515)

PR 10062
* config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
* pa-protos.h (output_lbranch): New prototype.
* pa.c (compute_frame_size): Change size of the frame marker on the
64-bit ports to 48 bytes.
(pa_output_function_prologue): Document why SAVE_SP is set.
(hppa_expand_prologue): Save previous stack pointer into frame marker
on targets which use the hpux unwind library.
(output_cbranch): Use output_lbranch.
(output_lbranch): New function to output long unconditional branches.
* pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
(STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
64-bit ports.
* pa.md (jump): Use output_lbranch.
(allocate_stack): New expander for dynamic stack allocation.

From-SVN: r64570

21 years agors6000.c (rs6000_emit_prologue): Don't clone the result of machopic_function_base_name.
Geoffrey Keating [Wed, 19 Mar 2003 03:23:44 +0000 (03:23 +0000)]
rs6000.c (rs6000_emit_prologue): Don't clone the result of machopic_function_base_name.

* config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
the result of machopic_function_base_name.
* config/darwin.c (machopic_function_base_name): Use a gc-allocated
string rather than a static array.

From-SVN: r64569

21 years agors6000.c (rs6000_stack_info): Only require a frame when debugging on XCOFF targets.
Alan Modra [Wed, 19 Mar 2003 02:51:41 +0000 (02:51 +0000)]
rs6000.c (rs6000_stack_info): Only require a frame when debugging on XCOFF targets.

* config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
when debugging on XCOFF targets.  Delete "abi" temp.

From-SVN: r64568

21 years agore PR target/10073 (powerpc cannot split insn while building rscheme)
Alan Modra [Wed, 19 Mar 2003 01:29:15 +0000 (01:29 +0000)]
re PR target/10073 (powerpc cannot split insn while building rscheme)

PR target/10073
* gcc.c-torture/compile/20030319-1.c: New.

From-SVN: r64565

21 years agore PR target/10073 (powerpc cannot split insn while building rscheme)
Alan Modra [Wed, 19 Mar 2003 01:28:12 +0000 (01:28 +0000)]
re PR target/10073 (powerpc cannot split insn while building rscheme)

PR target/10073
* combine.c (force_to_mode <NOT>): Use gen_int_mode.

From-SVN: r64564

21 years agoDaily bump.
GCC Administrator [Wed, 19 Mar 2003 00:17:16 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r64563

21 years agos390.c (s390_output_dwarf_dtprel): New.
Jakub Jelinek [Wed, 19 Mar 2003 00:13:02 +0000 (01:13 +0100)]
s390.c (s390_output_dwarf_dtprel): New.

* config/s390/s390.c (s390_output_dwarf_dtprel): New.
* config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
* config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.

* config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
* config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
* config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.

From-SVN: r64556

21 years agoMakefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
Geoffrey Keating [Tue, 18 Mar 2003 20:21:18 +0000 (20:21 +0000)]
Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.

* Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.

* gengtype.c: Include rtl.h.
(enum rtx_code): Don't define.
(rtx_format): Make declaration match rtl.h.
(rtx_next_new): Rename from rtx_next to avoid conflict.  Change all
users.
(adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
* Makefile.in (gengtype.o): Update dependencies.

From-SVN: r64554

21 years ago* function.c (next_block_index): Mark with GTY.
Geoffrey Keating [Tue, 18 Mar 2003 19:49:41 +0000 (19:49 +0000)]
* function.c (next_block_index): Mark with GTY.

From-SVN: r64551

21 years agom68k.md (iordi3): Fix setting low half to -1.
Andreas Schwab [Tue, 18 Mar 2003 19:42:34 +0000 (19:42 +0000)]
m68k.md (iordi3): Fix setting low half to -1.

* config/m68k/m68k.md (iordi3): Fix setting low half to -1.  From
martin@blom.org.

From-SVN: r64549

21 years ago* config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
Geoffrey Keating [Tue, 18 Mar 2003 19:41:52 +0000 (19:41 +0000)]
* config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.

From-SVN: r64548

21 years ago1.cc: Correct length, taking into account sizeof(wchar_t).
Paolo Carlini [Tue, 18 Mar 2003 19:16:50 +0000 (20:16 +0100)]
1.cc: Correct length, taking into account sizeof(wchar_t).

2003-03-18  Paolo Carlini  <pcarlini@unitus.it>

* testsuite/21_strings/basic_string/append/wchar_t/1.cc:
Correct length, taking into account sizeof(wchar_t).

From-SVN: r64547

21 years agoia64.md (UNSPECV_SETJMP_RECEIVER): New.
Richard Henderson [Tue, 18 Mar 2003 19:07:03 +0000 (11:07 -0800)]
ia64.md (UNSPECV_SETJMP_RECEIVER): New.

        * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
        (builtin_setjmp_receiver): Delay call to ia64_reload_gp
        until after reload.

From-SVN: r64546

21 years agobuiltins.c (expand_builtin_unop): New target_mode operand; use it to convert the...
Richard Henderson [Tue, 18 Mar 2003 19:03:59 +0000 (11:03 -0800)]
builtins.c (expand_builtin_unop): New target_mode operand; use it to convert the result to the correct mode.

        * builtins.c (expand_builtin_unop): New target_mode operand;
        use it to convert the result to the correct mode.
        (expand_builtin): Update all callers.

From-SVN: r64545

21 years agoi386.md: Fix previous commit that mistakely applied the patch twice.
Jan Hubicka [Tue, 18 Mar 2003 19:02:52 +0000 (20:02 +0100)]
i386.md: Fix previous commit that mistakely applied the patch twice.

* i386.md:  Fix previous commit that mistakely applied the patch
twice.

From-SVN: r64544

21 years ago* config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
Ulrich Weigand [Tue, 18 Mar 2003 18:28:53 +0000 (18:28 +0000)]
* config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.

From-SVN: r64542

21 years agoalias.c (rtx_equal_for_memref_p): Assume that X and Y has been canonicalized.
Jan Hubicka [Tue, 18 Mar 2003 18:24:07 +0000 (19:24 +0100)]
alias.c (rtx_equal_for_memref_p): Assume that X and Y has been canonicalized.

* alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
canonicalized.
(memrefs_conflict_p): Likewise.
(addr_side_effect_eval): Canonicalize the constructed address.

From-SVN: r64540

21 years ago2003-03-18 Michael Koch <konqueror@gmx.de>
Michael Koch [Tue, 18 Mar 2003 18:16:54 +0000 (18:16 +0000)]
2003-03-18  Michael Koch  <konqueror@gmx.de>

* java/awt/ScrollPane.java
(ScrollPane): Rewrote for new ScrollPaneAdjustable.
(getViewportSize): Likewise.
(addNotify): Likewise.
(removeNotify): Likewise.
* java/awt/ScrollPaneAdjustable.java
(ScrollPaneAdjustable): No longer extends Scrollbar.
* java/beans/beancontext/BeanContextServices.java:
Reformated.
(getService): Added throws TooManyListenersException;
* java/beans/beancontext/BeanContextServicesSupport.java:
Reformated.

From-SVN: r64538

21 years ago* i386.md (cvtts?2si peep2): New.
Jan Hubicka [Tue, 18 Mar 2003 16:32:12 +0000 (17:32 +0100)]
* i386.md (cvtts?2si peep2): New.

From-SVN: r64537

21 years ago* config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
Kazu Hirata [Tue, 18 Mar 2003 12:50:26 +0000 (12:50 +0000)]
* config/h8300/h8300.md (*iorsi3_two_qi_zext): New.

From-SVN: r64531

21 years agodwarf2out.c (output_file_names): Cast size_t to unsigned long for format.
Andreas Schwab [Tue, 18 Mar 2003 12:16:10 +0000 (12:16 +0000)]
dwarf2out.c (output_file_names): Cast size_t to unsigned long for format.

* dwarf2out.c (output_file_names): Cast size_t to unsigned long
for format.

From-SVN: r64530

21 years agoBufferedOutputStream.java, [...]: More merges from classpath.
Michael Koch [Tue, 18 Mar 2003 07:50:19 +0000 (07:50 +0000)]
BufferedOutputStream.java, [...]: More merges from classpath.

2003-03-18  Michael Koch  <konqueror@gmx.de>

* java/io/BufferedOutputStream.java,
java/io/DataInput.java,
java/io/DataInputStream.java,
java/io/DataOutput.java,
java/io/Externalizable.java:
More merges from classpath.

From-SVN: r64528

21 years agoconfigure.in: Fixed links to platform dependant java.net files.
Michael Koch [Tue, 18 Mar 2003 07:41:56 +0000 (07:41 +0000)]
configure.in: Fixed links to platform dependant java.net files.

2003-03-18  Michael Koch  <konqueror@gmx.de>

* configure.in: Fixed links to platform dependant java.net files.
* configure: Regenerated.
* java/net/natInetAddress.cc,
java/net/natNetworkInterface.cc,
java/net/natPlainDatagramSocketImpl.cc,
java/net/natPlainSocketImpl.cc:
Removed.

From-SVN: r64527

21 years agoconfigure.in: Create links to architecture dependent files...
Michael Koch [Tue, 18 Mar 2003 06:01:16 +0000 (06:01 +0000)]
configure.in: Create links to architecture dependent files...

2003-03-18  Michael Koch  <konqueror@gmx.de>

* configure.in: Create links to architecture dependent files,
introduced PLATFORMNET variable (set to NoNet for newlib usage).
* configure: Regenerated.
* java/net/natInetAddressNoNet.cc,
java/net/natInetAddressPosix.cc,
java/net/natInetAddressWin32.cc,
java/net/natNetworkInterfaceNoNet.cc,
java/net/natNetworkInterfacePosix.cc,
java/net/natNetworkInterfaceWin32.cc,
java/net/natPlainDatagramSocketImplNoNet.cc,
java/net/natPlainDatagramSocketImplPosix.cc,
java/net/natPlainDatagramSocketImplWin32.cc,
java/net/natPlainSocketImplNoNet.cc,
java/net/natPlainSocketImplPosix.cc,
java/net/natPlainSocketImplWin32.cc: New files.

From-SVN: r64526

21 years agoBufferedReader.java, [...]: Merged from classpath.
Michael Koch [Tue, 18 Mar 2003 06:00:25 +0000 (06:00 +0000)]
BufferedReader.java, [...]: Merged from classpath.

2003-03-18  Michael Koch  <konqueror@gmx.de>

* java/io/BufferedReader.java,
java/io/BufferedWriter.java,
java/io/ByteArrayOutputStream.java,
java/io/FileFilter.java,
java/io/FilePermission.java,
java/io/FileReader.java,
java/io/FileWriter.java,
java/io/FilenameFilter.java,
java/io/FilterInputStream.java,
java/io/FilterOutputStream.java,
java/io/FilterReader.java,
java/io/FilterWriter.java,
java/io/ObjectInput.java,
java/io/ObjectInputValidation.java,
java/io/ObjectOutput.java,
java/io/ObjectStreamField.java,
java/io/PipedInputStream.java,
java/io/PipedReader.java,
java/io/PrintWriter.java,
java/io/PushbackReader.java,
java/io/Reader.java,
java/io/SerializablePermission.java,
java/io/StringReader.java,
java/io/Writer.java:
Merged from classpath.

From-SVN: r64525

21 years agoReshuffle 21_strings testsuite.
Paolo Carlini [Tue, 18 Mar 2003 05:04:14 +0000 (05:04 +0000)]
Reshuffle 21_strings testsuite.

2003-03-18  Paolo Carlini  <pcarlini@unitus.it>

Reshuffle 21_strings testsuite.
* testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
element_access.cc, operations.cc, char_traits_requirements.cc,
find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
compare.cc, inserters_extractors.cc, substr.cc: Split up, add
wchar_t tests as follows.
* 21_strings/basic_string/append/char/1.cc: New.
* 21_strings/basic_string/append/wchar_t/1.cc: New.
* 21_strings/basic_string/assign/char/1.cc: New.
* 21_strings/basic_string/assign/char/2.cc: New.
* 21_strings/basic_string/assign/char/3.cc: New.
* 21_strings/basic_string/assign/wchar_t/1.cc: New.
* 21_strings/basic_string/assign/wchar_t/2.cc: New.
* 21_strings/basic_string/assign/wchar_t/3.cc: New.
* 21_strings/basic_string/capacity/1.cc: New.
* 21_strings/basic_string/capacity/char/1.cc: New.
* 21_strings/basic_string/capacity/char/2.cc: New.
* 21_strings/basic_string/capacity/wchar_t/1.cc: New.
* 21_strings/basic_string/capacity/wchar_t/2.cc: New.
* 21_strings/basic_string/compare/char/1.cc: New.
* 21_strings/basic_string/compare/wchar_t/1.cc: New.
* 21_strings/basic_string/cons/char/1.cc: New.
* 21_strings/basic_string/cons/char/2.cc: New.
* 21_strings/basic_string/cons/char/3.cc: New.
* 21_strings/basic_string/cons/char/4.cc: New.
* 21_strings/basic_string/cons/char/5.cc: New.
* 21_strings/basic_string/cons/wchar_t/1.cc: New.
* 21_strings/basic_string/cons/wchar_t/2.cc: New.
* 21_strings/basic_string/cons/wchar_t/3.cc: New.
* 21_strings/basic_string/cons/wchar_t/4.cc: New.
* 21_strings/basic_string/cons/wchar_t/5.cc: New.
* 21_strings/basic_string/element_access/char/1.cc: New.
* 21_strings/basic_string/element_access/char/2.cc: New.
* 21_strings/basic_string/element_access/char/3.cc: New.
* 21_strings/basic_string/element_access/wchar_t/1.cc: New.
* 21_strings/basic_string/element_access/wchar_t/2.cc: New.
* 21_strings/basic_string/element_access/wchar_t/3.cc: New.
* 21_strings/basic_string/find/char/1.cc: New.
* 21_strings/basic_string/find/wchar_t/1.cc: New.
* 21_strings/basic_string/insert/char/1.cc: New.
* 21_strings/basic_string/insert/char/2.cc: New.
* 21_strings/basic_string/insert/wchar_t/1.cc: New.
* 21_strings/basic_string/insert/wchar_t/2.cc: New.
* 21_strings/basic_string/inserters_extractors/char/1.cc: New.
* 21_strings/basic_string/inserters_extractors/char/4.cc: New.
* 21_strings/basic_string/inserters_extractors/char/5.cc: New.
* 21_strings/basic_string/inserters_extractors/char/6.cc: New.
* 21_strings/basic_string/inserters_extractors/char/7.cc: New.
* 21_strings/basic_string/inserters_extractors/char/8.cc: New.
* 21_strings/basic_string/inserters_extractors/char/9.cc: New.
* 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
* 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
* 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
* 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
* 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
* 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
* 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
* 21_strings/basic_string/operators/char/1.cc: New.
* 21_strings/basic_string/operators/char/2.cc: New.
* 21_strings/basic_string/operators/wchar_t/1.cc: New.
* 21_strings/basic_string/operators/wchar_t/2.cc: New.
* 21_strings/basic_string/replace/char/1.cc: New.
* 21_strings/basic_string/replace/char/2.cc: New.
* 21_strings/basic_string/replace/char/3.cc: New.
* 21_strings/basic_string/replace/char/4.cc: New.
* 21_strings/basic_string/replace/char/5.cc: New.
* 21_strings/basic_string/replace/wchar_t/1.cc: New.
* 21_strings/basic_string/replace/wchar_t/2.cc: New.
* 21_strings/basic_string/replace/wchar_t/3.cc: New.
* 21_strings/basic_string/replace/wchar_t/4.cc: New.
* 21_strings/basic_string/replace/wchar_t/5.cc: New.
* 21_strings/basic_string/rfind/char/1.cc: New.
* 21_strings/basic_string/rfind/char/2.cc: New.
* 21_strings/basic_string/rfind/char/3.cc: New.
* 21_strings/basic_string/rfind/wchar_t/1.cc: New.
* 21_strings/basic_string/rfind/wchar_t/2.cc: New.
* 21_strings/basic_string/rfind/wchar_t/3.cc: New.
* 21_strings/basic_string/substr/char/1.cc: New.
* 21_strings/basic_string/substr/wchar_t/1.cc: New.
* 21_strings/c_strings/char/1.cc: New.
* 21_strings/c_strings/char/2.cc: New.
* 21_strings/c_strings/wchar_t/1.cc: New.
* 21_strings/c_strings/wchar_t/2.cc: New.
* 21_strings/char_traits/requirements/char/1.cc: New.
* 21_strings/char_traits/requirements/wchar_t/1.cc: New.
* 21_strings/char_traits/typedefs/char/1.cc: New.

From-SVN: r64524

21 years agore PR c++/10091 ([parisc] ICE in cp_expr_size, at cp/cp-lang.c:307)
Jason Merrill [Tue, 18 Mar 2003 04:36:03 +0000 (23:36 -0500)]
re PR c++/10091 ([parisc] ICE in cp_expr_size, at cp/cp-lang.c:307)

        PR c++/10091
        * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
        an unaligned member of TREE_ADDRESSABLE type.
        * cp/typeck.c (build_class_member_access_expr): Compare
        TYPE_MAIN_VARIANTs.

From-SVN: r64523

21 years agodecl.c (duplicate_decls): Use the new type when prototyping anticipated decls, even...
Roger Sayle [Tue, 18 Mar 2003 04:31:21 +0000 (04:31 +0000)]
decl.c (duplicate_decls): Use the new type when prototyping anticipated decls, even when the types match.

* decl.c (duplicate_decls): Use the new type when prototyping
anticipated decls, even when the types match.  This defines the
exception list for the built-in function.

From-SVN: r64522

21 years agore PR c++/10091 ([parisc] ICE in cp_expr_size, at cp/cp-lang.c:307)
Jason Merrill [Tue, 18 Mar 2003 04:10:45 +0000 (23:10 -0500)]
re PR c++/10091 ([parisc] ICE in cp_expr_size, at cp/cp-lang.c:307)

        PR c++/10091
        * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
        an unaligned member of TREE_ADDRESSABLE type.
        * cp/typeck.c (build_class_member_access_expr): Compare
        TYPE_MAIN_VARIANTs.

From-SVN: r64520

21 years agolinux64.h (MASK_PROFILE_KERNEL): Define.
Alan Modra [Tue, 18 Mar 2003 02:28:46 +0000 (02:28 +0000)]
linux64.h (MASK_PROFILE_KERNEL): Define.

* config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
(TARGET_PROFILE_KERNEL): Define.
(SUBTARGET_SWITCHES): Handle -mprofile-kernel.
(PROFILE_BEFORE_PROLOGUE): Don't define.
(PROFILE_KERNEL): Remove hacks.
* config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
(rs6000_stack_info): No need to save lr if just for profiling when
TARGET_KERNEL_PROFILE.
(output_profile_hook): Output nothing when TARGET_KERNEL_PROFILE.
(output_function_profiler): Localize label generation.  Emit code
for kernel profiling.

From-SVN: r64519

21 years agoh8300-protos.h: Add a prototype for byte_accesses_mergeable_p.
Kazu Hirata [Tue, 18 Mar 2003 01:25:57 +0000 (01:25 +0000)]
h8300-protos.h: Add a prototype for byte_accesses_mergeable_p.

* config/h8300/h8300-protos.h: Add a prototype for
byte_accesses_mergeable_p.
* config/h8300/h8300.c (byte_accesses_mergeable_p): New.
* config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
(a splitter): Likewise.
(*iorsi3_ashift_16_ashift_24): Likewise.
(*iorsi3_ashift_16_ashift_24_mem): Likewise.

From-SVN: r64518

21 years agoDaily bump.
GCC Administrator [Tue, 18 Mar 2003 00:17:13 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r64517

21 years agore PR libstdc++/10097 (filebuf::underflow drops characters.)
Paolo Carlini [Mon, 17 Mar 2003 23:50:40 +0000 (00:50 +0100)]
re PR libstdc++/10097 (filebuf::underflow drops characters.)

2003-03-17  Paolo Carlini  <pcarlini@unitus.it>
    Petur Runolfsson  <peturr02@ru.is>

PR libstdc++/10097
* src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
basic_filebuf<wchar_t>::_M_underflow_common):
if (gptr() < egptr()) return *gptr().
* testsuite/27_io/filebuf_virtuals.cc (test16): Add.

* testsuite/27_io/filebuf_members.cc (test_04): Minor
changes: unlink fifo before making it, fix spelling error.

Co-Authored-By: Petur Runolfsson <peturr02@ru.is>
From-SVN: r64509

21 years agoansidecl.h (ATTRIBUTE_NONNULL, [...]): New.
Kaveh R. Ghazi [Mon, 17 Mar 2003 22:57:27 +0000 (22:57 +0000)]
ansidecl.h (ATTRIBUTE_NONNULL, [...]): New.

include:
* ansidecl.h (ATTRIBUTE_NONNULL, ATTRIBUTE_NULL_PRINTF,
ATTRIBUTE_NULL_PRINTF_1, ATTRIBUTE_NULL_PRINTF_2,
ATTRIBUTE_NULL_PRINTF_3, ATTRIBUTE_NULL_PRINTF_4,
ATTRIBUTE_NULL_PRINTF_5): New.
(ATTRIBUTE_PRINTF): Add ATTRIBUTE_NONNULL.

gcc:
* dwarf2asm.h: Delete obsolete comment.
(dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
dw2_asm_output_pcrel, dw2_asm_output_addr,
dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.

From-SVN: r64505

21 years agoc-tree.h (struct lang_identifier): Remove error_locus field.
Zack Weinberg [Mon, 17 Mar 2003 21:16:07 +0000 (21:16 +0000)]
c-tree.h (struct lang_identifier): Remove error_locus field.

* c-tree.h (struct lang_identifier): Remove error_locus field.
(IDENTIFIER_ERROR_LOCUS): Kill.
(record_function_scope_shadow): New prototype.
* c-typeck.c (build_external_ref): Don't complain if
decl is error_mark_node.  When not at file scope, bind the
decl's local value to error_mark_node to suppress further
warnings, instead of setting IDENTIFIER_ERROR_LOCUS.

* c-decl.c (get_function_binding_level): New static function.
(record_function_scope_shadow): New exported function.
(c_make_fname_decl): Use get_function_binding_level.

From-SVN: r64504

21 years agonaming-1.m: Use "(parse|syntax) error".
Zack Weinberg [Mon, 17 Mar 2003 20:58:44 +0000 (20:58 +0000)]
naming-1.m: Use "(parse|syntax) error".

        * objc.dg/naming-1.m: Use "(parse|syntax) error".
        * objc.dg/naming-2.m: Likewise.

From-SVN: r64503

21 years agostmt.c (tail_recursion_args): Call promote_mode to set unsignedp flag correctly befor...
Steve Ellcey [Mon, 17 Mar 2003 20:34:04 +0000 (20:34 +0000)]
stmt.c (tail_recursion_args): Call promote_mode to set unsignedp flag correctly before calling convert_move.

* stmt.c (tail_recursion_args): Call promote_mode to set
unsignedp flag correctly before calling convert_move.

From-SVN: r64501

21 years agoloop-unroll.c (decide_peel_completely, [...]): Set loop->has_desc.
Zdenek Dvorak [Mon, 17 Mar 2003 20:24:59 +0000 (21:24 +0100)]
loop-unroll.c (decide_peel_completely, [...]): Set loop->has_desc.

* loop-unroll.c (decide_peel_completely,
decide_unroll_constant_iterations, decide_unroll_stupid,
decide_unroll_runtime_iterations, decide_peel_simple): Set
loop->has_desc.

From-SVN: r64500

21 years ago[multiple changes]
Benjamin Kosnik [Mon, 17 Mar 2003 18:44:44 +0000 (18:44 +0000)]
[multiple changes]

2003-03-17  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/Makefile.am (CLEANFILES): Add tmp*.
* testsuite/Makefile.in: Regenerate.
* testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
Cleanups.

2003-03-17  Petur Runolfsson  <peturr02@ru.is>

        PR libstdc++/9964
        * include/bits/fstream.tcc (basic_filebuf::close):
        Always close file, even when write fails.
        * testsuite/27_io/filebuf_members.cc (test_07):  New test.

From-SVN: r64498

21 years agoUpdate comment for ggc_alloc - to match API change made 2000-6-9.
Per Bothner [Mon, 17 Mar 2003 18:42:23 +0000 (10:42 -0800)]
Update comment for ggc_alloc - to match API change made 2000-6-9.

From-SVN: r64497

21 years agoggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
Jan Hubicka [Mon, 17 Mar 2003 17:59:58 +0000 (18:59 +0100)]
ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.

* ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.

* hashtab.h (htab_traverse_noresize): Declare.

* hashtab.c (htab_traverse_noresize): Break out from ...
* hashtab.c (htab_traverse): ... here.

From-SVN: r64496

21 years agore PR c++/9639 ([New parser] Namespace std in constructor argument lists on illegal...
Mark Mitchell [Mon, 17 Mar 2003 17:36:24 +0000 (17:36 +0000)]
re PR c++/9639 ([New parser] Namespace std in constructor argument lists on illegal code causes an ICE)

PR c++/9639
* parser.c (cp_parser_declarator_id): Clear parser->scope.

PR c++/9639
* g++.dg/parse/crash1.C: New test.

From-SVN: r64495

21 years agoScrollPaneAdjustable.java: Compile fixes.
Michael Koch [Mon, 17 Mar 2003 16:40:30 +0000 (16:40 +0000)]
ScrollPaneAdjustable.java: Compile fixes.

2003-03-17  Michael Koch  <konqueror@gmx.de>

* java/awt/ScrollPaneAdjustable.java:
Compile fixes.

From-SVN: r64494

21 years agofunction.c (assign_parms): For a struct value address passed as first argument...
Olivier Hainque [Mon, 17 Mar 2003 16:23:50 +0000 (17:23 +0100)]
function.c (assign_parms): For a struct value address passed as first argument...

* function.c (assign_parms): For a struct value address passed as
first argument, delay the function's result RTL setup code until
after the emission of parameter conversions.

From-SVN: r64493

21 years ago* MAINTAINERS (Write After Approval): Add myself.
Olivier Hainque [Mon, 17 Mar 2003 16:15:25 +0000 (17:15 +0100)]
* MAINTAINERS (Write After Approval): Add myself.

From-SVN: r64492

21 years agore PR c++/9993 (destructor not called for local object created within and returned...
Jason Merrill [Mon, 17 Mar 2003 15:45:29 +0000 (10:45 -0500)]
re PR c++/9993 (destructor not called for local object created within and returned from infinite loop)

        PR c++/9993
        * decl.c (finish_function): Only allow the NRVO to use variables
        declared at function scope.

From-SVN: r64488

21 years ago2003-03-17 Michael Koch <konqueror@gmx.de>
Michael Koch [Mon, 17 Mar 2003 15:31:33 +0000 (15:31 +0000)]
2003-03-17  Michael Koch  <konqueror@gmx.de>

* java/net/DatagramSocket.java
(connect): Fixed comment.
* java/nio/ByteBuffer.java
(hasArray): Fixed comment.

From-SVN: r64487

21 years agoBeans.java: Explicitely import classes not packages.
Michael Koch [Mon, 17 Mar 2003 15:21:45 +0000 (15:21 +0000)]
Beans.java: Explicitely import classes not packages.

2003-03-17  Michael Koch  <konqueror@gmx.de>

* java/beans/Beans.java:
Explicitely import classes not packages.
* java/beans/FeatureDescriptor.java
(preferred): New member variable.
(isPreferred): New method.
(setPreferred): New method.
* java/beans/PropertyEditorManager.java:
Explicitely import used classes.
* java/beans/beancontext/BeanContextChild.java:
Added line wrapping.
* java/beans/beancontext/BeanContextChildSupport.java:
Reindented.
* java/beans/beancontext/BeanContextEvent.java:
Reindented.

From-SVN: r64486

21 years ago2003-03-17 Michael Koch <konqueror@gmx.de>
Michael Koch [Mon, 17 Mar 2003 15:20:10 +0000 (15:20 +0000)]
2003-03-17  Michael Koch  <konqueror@gmx.de>

* java/awt/Dialog.java
(Dialog): New constructor, changed implementations, added
documentation.
* java/awt/ScrollPaneAdjustable.java
(ScrollPaneAdjustable): Extends Object, implements Adjustable and
Serializable.
(serialVersionUID): New member variable.
(sp): New member variable.
(orientation): New member variable.
(value): New member variable.
(minimum): New member variable.
(maximum): New member variable.
(visibleAmount): New member variable.
(unitIncrement): New member variable.
(blockIncrement): New member variable.
(AdjustmentListener): New member variable.
(ScrollPaneAdjustable): New implementation.
(addAdjustmentListener): New method.
(removeAdjustmentListener): New method.
(getAdjustmentListeners): New method.
(getBlockIncrement): New method.
(getMaximum): New method.
(getMinimum): New method.
(getOrientation): New method.
(getUnitIncrement): New method.
(getValue): New method.
(getVisibleAmount): New method.
(setBlockIncrement): New method.
(setMaximum): Implemented.
(setMinimum): Implemented.
(setUnitIncrement): New method.
(setValue): New method.
(setVisibleAmount): Implemented.
(paramString): New stubbed method.
* java/awt/Window.java
(show): Call setVisible().
(hide): Call setVisible().
(processEvent): Add cases for WINDOW_GAINED_FOCUS, WINDOW_LOST_FOCUS
and WINDOW_STATE_CHANGED.
(processWindowFocusEvent): New method.
(processWindowStateEvent): New method.
(postEvent): Deprecated.
(applyResourceBundle): Deprecated.
* java/awt/datatransfer/DataFlavor.java
(DataFlavor): Doesn't thow ClassNotFoundException.

From-SVN: r64485

21 years agoFixed attribution of last checkin.
Dave Love [Mon, 17 Mar 2003 14:53:56 +0000 (14:53 +0000)]
Fixed attribution of last checkin.

From-SVN: r64484

21 years agoosf.h (TARGET_OS_CPP_BUILTINS): Define __digital__, __arch64__ to match Compaq cc.
Dave Love [Mon, 17 Mar 2003 14:33:50 +0000 (14:33 +0000)]
osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__, __arch64__ to match Compaq cc.

* config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
__arch64__ to match Compaq cc.

From-SVN: r64480

21 years agoMakefile.am (C_COMPILE): Remove.
Danny Smith [Mon, 17 Mar 2003 11:02:39 +0000 (11:02 +0000)]
Makefile.am (C_COMPILE): Remove.

* libsupc++/Makefile.am (C_COMPILE): Remove.
(LTCOMPILE): Likewise.
* libsupc++/Makefile.in: Regenerate.

From-SVN: r64477