Commit Graph

55452 Commits

Author SHA1 Message Date
Nathan Sidwell 30a035080e re PR c++/12774 (Type checking problems in templates)
cp:
	PR c++/12774
	* typeck.c (comp_array_types): Fold non-dependent domains for
	ABI-1.
testsuite:
	PR c++/12774
	* g++.dg/template/array1-1.C: New test.
	* g++.dg/template/array1-2.C: New test.

From-SVN: r75204
2003-12-29 17:02:03 +00:00
Roger Sayle b66906a8ff re PR fortran/12632 ([g77 only] -fbounds-check ICE)
PR fortran/12632
	* fold-const.c (fold) <COND_EXPR>: Don't fold a constant condition,
	if the type of the selected branch doesn't match its' parent.

	* com.c (ffecom_subscript_check_): Take as an extra argument the
	(possibly NULL) decl of the array.  Don't create unnecessary tree
	nodes if the array index is known to be safe at compile-time.
	If the array index is unsafe, force the array decl into memory to
	avoid RTL expansion problems.
	(ffecom_array_ref_): Update calls to ffecom_subscript_check_.
	(ffecom_char_args_x_): Likewise.

	* g77.dg/12632.f: New test case.

From-SVN: r75203
2003-12-29 16:16:39 +00:00
Kriang Lerdsuwanakij 68deab91f2 re PR c++/13289 (ICE in regenerate_decl_from_template on recursive template)
PR c++/13289
	* semantics.c (finish_id_expression): Only check if the type of
	a template argument is integral or enumeration when it is not
	dependent.

	* g++.dg/parse/nontype1.C: New test.

From-SVN: r75200
2003-12-29 11:00:36 +00:00
Kriang Lerdsuwanakij 2f9afd51aa re PR c++/12403 (ICE in push_template_decl_real on member function template specialization)
PR c++/12403
	* parser.c (cp_parser_template_declaration_after_export): Set up
	template specialization scope in case of explicit specialization.

	* g++.dg/parse/explicit1.C: New test.
	* g++.old-deja/g++.pt/explicit71.C: Adjust expected error.

From-SVN: r75199
2003-12-29 10:16:32 +00:00
Jan Hubicka 24a4a0338a coverage.c (read_counts_file): Better error messages...
* coverage.c (read_counts_file): Better error messages; cause corrupted
	profiles to produce hard errors, not just warnings
	(get_coverage_counts): Similarly.

From-SVN: r75198
2003-12-29 09:29:21 +00:00
Jan Hubicka f46a52d252 * toplev.c (rest_of_handle_loop_optimize): Enable LOOP_AUTO_UNROLL.
From-SVN: r75197
2003-12-29 09:25:45 +00:00
Phil Edwards 66ec7e6993 cppopts.texi: Use of -idirafter...
2003-12-29  Phil Edwards  <phil@codesourcery.com>

	* doc/cppopts.texi:  Use of -idirafter, -iprefix, -iwithprefix, and
	-iwithprefixbefore is not discouraged.

From-SVN: r75196
2003-12-29 06:19:07 +00:00
Mark Mitchell c11889cef5 re PR c++/13081 (forward template declarations in <complex> let inlining fail)
PR c++/13081
	* decl.c (duplicate_decls): Preserve inline-ness when redeclaring
	a function template.

	PR c++/12613
	* decl.c (reshape_init): Reject GNU colon-style designated
	initializers in arrays.

	PR c++/13081
	* g++.dg/opt/inline6.C: New test.

	PR c++/12613
	* g++.dg/parse/error9.C: New test.

From-SVN: r75192
2003-12-29 02:42:17 +00:00
Mark Mitchell 1896d29d23 * gcc.dg/const-elim-1.c: XFAIL on arm-*-*.
From-SVN: r75191
2003-12-29 02:33:15 +00:00
Mark Mitchell 4c2a4b907d re PR c++/13009 (Implicitly-defined assignment operator writes to wrong memory)
PR c++/13009
	* call.c (build_special_member_call): Do not assume that we have a
	pointer to the complete object in an assignment operator.

	PR c++/13009
	* g++.dg/init/assign1.C: New test.

From-SVN: r75189
2003-12-29 01:30:32 +00:00
GCC Administrator 6c5d63c80b Daily bump.
From-SVN: r75187
2003-12-29 00:16:07 +00:00
Roger Sayle 7072018ecf re PR c++/13070 (-Wformat option ignored in g++)
PR c++/13070
	* decl.c (duplicate_decls): When setting the type of an anticipated
	declaration, merge the existing type attributes.

	* g++.dg/warn/format3.C: New test case.

From-SVN: r75185
2003-12-28 22:22:13 +00:00
Michael Koch 9f88b919e0 2003-12-28 Michael Koch <konqueror@gmx.de>
* gnu/java/net/protocol/http/Connection.java
	(inputStream): Made it a DataInputStream.
	(requestProperties): Removed.
	(hdrHash): Removed.
	(hdrVec): Removed.
	(headers): New field to store headers.
	(connect): Initialize inputStream.
	(receiveReply): Merged from classpath. The new algorithm is line based
	instead of character based.
	(getHeaderField): Use headers.
	(getHeaderFields): Use headers.
	(getKey): Removed.
	(getField): Removed.
	* gnu/java/net/HeaderFieldHelper.java: New file.
	* Makefile.am (ordinary_java_source_files):
	Added gnu/java/net/HeaderFieldHelper.java.
	* Makefile.in: Regenerated.

From-SVN: r75183
2003-12-28 21:30:45 +00:00
Mostafa Hagog 315d849ab2 sbitmap.c (sbitmap_union_of_diff_cg, [...]): Accumulate "changed" properly.
2003-12-28  Mostafa Hagog  <mustafa@il.ibm.com>

	* sbitmap.c (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg,
	sbitmap_a_xor_b_cg): Accumulate "changed" properly.
	(sbitmap_not): Zero all bits past n_bit.

From-SVN: r75182
2003-12-28 16:53:27 +00:00
Paolo Carlini b8da67fa2f pool_allocator.h (class __pool_alloc): Use operator new and operator delete.
2003-12-28  Paolo Carlini  <pcarlini@suse.de>

	* include/ext/pool_allocator.h (class __pool_alloc): Use
	operator new and operator delete.

From-SVN: r75181
2003-12-28 12:13:15 +00:00
Guilhem Lavaux 920be544c9 2003-12-28 Guilhem Lavaux <guilhem@kaffe.org>
* java/io/LineNumberReader.java
	(mark): Improved error checking.
	(read): Likewise.
	(skip): Likewise. Skip is now really eating the specified number of
	characters.
	* java/io/CharArrayReader.java (read): It should throw
	IndexOutOfBoundsException and not ArrayIndexOutOfBoundsException (see
	mauve).
	* java/io/BufferedReader.java (readLine): Make readLine() really block
	until either EOF is reached or a true error happens.

From-SVN: r75180
2003-12-28 11:54:17 +00:00
GCC Administrator 07dc48e014 Daily bump.
From-SVN: r75177
2003-12-28 00:16:06 +00:00
Michael Koch bb6d84f38e 2003-12-27 Michael Koch <konqueror@gmx.de>
* gnu/java/net/protocol/http/Connection.java
	(getRequestProperty): Removed.
	(setRequestProperty): Removed.

From-SVN: r75175
2003-12-27 20:49:12 +00:00
Zdenek Dvorak bf86d71e8a re PR rtl-optimization/13159 (FAIL: gcc.c-torture/compile/930621-1.c)
PR opt/13159
	* cfgloopanal.c (mark_irreducible_loops): Fix the strongly connected
	components detection.
	* loop-unswitch.c (unswitch_loop): Preserve simple preheaders.

	* gcc.c-torture/compile/20031227-1.c: New test.

From-SVN: r75174
2003-12-27 19:51:17 +00:00
Bernardo Innocenti 9bd85baa69 uclinux.h (LIB_SPEC): Add elf2flt magic required for correct linking of executables using id-based...
* config/m68k/uclinux.h (LIB_SPEC): Add elf2flt magic required for
	correct linking of executables using id-based shared libraries.

From-SVN: r75173
2003-12-27 19:51:58 +01:00
Michael Koch 82ebe78b9e 2003-12-27 Michael Koch <konqueror@gmx.de>
* gnu/java/net/protocol/http/Connection.java
	(connect): Call receiveReply().
	(receiveReply): Renamed from getHttpHeaders().
	(getOutputStream): Moved check on doOutput before check for connection
	state.

From-SVN: r75172
2003-12-27 17:24:51 +00:00
Michael Koch 5bd1d00e5c ResolutionSyntax.java, [...]: Fixed typo (s/then/than/).
2003-12-27  Michael Koch  <konqueror@gmx.de>

	* javax/print/attribute/ResolutionSyntax.java,
	javax/print/attribute/SetOfIntegerSyntax.java,
	javax/print/attribute/Size2DSyntax.java,
	javax/print/attribute/standard/Copies.java,
	javax/print/attribute/standard/JobImpressions.java,
	javax/print/attribute/standard/JobMediaSheets.java,
	javax/print/attribute/standard/NumberOfDocuments.java,
	javax/print/attribute/standard/NumberOfInterveningJobs.java,
	javax/print/attribute/standard/PagesPerMinute.java,
	javax/print/attribute/standard/PagesPerMinuteColor.java,
	javax/print/attribute/standard/QueuedJobCount.java:
	Fixed typo (s/then/than/).

From-SVN: r75171
2003-12-27 14:21:08 +00:00
Kazu Hirata 8d531ab9b1 i386-interix.h: Remove uses of "register" specifier in declarations of arguments and local...
* config/i386/i386-interix.h: Remove uses of "register"
	specifier in declarations of arguments and local variables.
	* config/i386/i386.c: Likewise.
	* config/i386/i386elf.h: Likewise.
	* config/i386/ptx4-i.h: Likewise.
	* config/i386/sysv4.h: Likewise.

From-SVN: r75170
2003-12-27 05:56:16 +00:00
GCC Administrator 632e19ec05 Daily bump.
From-SVN: r75047
2003-12-27 00:16:07 +00:00
Guilhem Lavaux a4dc20a946 Naming.java (lookup): Check if the first character of the filename returned by URL.getFile() is a '/'...
2003-12-27  Guilhem Lavaux  <guilhem@kaffe.org>

	* java/rmi/Naming.java (lookup): Check if the first character of the
	filename returned by URL.getFile() is a '/', only if it is the case
	we cut this first character and call the registry with the good name.
	(bind): Likewise.
	(rebind): Likewise.

From-SVN: r75044
2003-12-26 23:23:55 +00:00
Guilhem Lavaux 45d51d7e37 BufferedReader.java (BufferedReader): Throw IllegalArgumentException when size <= 0.
2003-12-26  Guilhem Lavaux  <guilhem@kaffe.org>
	    Mark Wielaard  <mark@klomp.org>

	* java/io/BufferedReader.java (BufferedReader):
	Throw IllegalArgumentException when size <= 0.
	(mark): Document and better exception message for negative
	readLimit IllegalArgumentException.
	(read(char[],int,int)): Throw IndexOutOfBoundsException
	if offset and count are not valid regarding buf.
	(skip): Throw IllegalArgumentException when count is negative.

Co-Authored-By: Mark Wielaard <mark@klomp.org>

From-SVN: r75041
2003-12-26 22:10:19 +00:00
Fariborz Jahanian 3364872d40 rs6000.c (legitimate_offset_address_p): Do not restrict DFmode and TFmode to word alignment.
2003-12-26  Fariborz Jahanian <fjahanian@apple.com>
            Geoffrey Keating <geoffk@apple.com>
            David Edelsohn <edelsohn@gnu.org>

        * config/rs6000/rs6000.c (legitimate_offset_address_p): Do not
        restrict DFmode and TFmode to word alignment.
        * config/rs6000/rs6000.md (movdf_hardfloat64): Use 'o' constraint
        for ld/std and order before mr.

Co-Authored-By: David Edelsohn <edelsohn@gnu.org>
Co-Authored-By: Geoffrey Keating <geoffk@apple.com>

From-SVN: r75040
2003-12-26 17:07:07 -05:00
Guilhem Lavaux 88f2e10376 2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
* java/io/FileInputStream.java
	(FileInputStream(String)): Call FileInputStream(File).
	(FileInputStream(File)): Check whether the argument is a directory.

From-SVN: r75039
2003-12-26 21:11:03 +00:00
Andrew Pinski 06fc4e4186 darwin.h (LINK_COMMAND_SPEC): Arrange -fprofile-generate to imply -lgcov.
2003-12-25  Andrew Pinski  <pinskia@physics.uc.edu>

        * config/darwin.h (LINK_COMMAND_SPEC): Arrange
        -fprofile-generate to imply -lgcov.

From-SVN: r75038
2003-12-26 11:13:35 -08:00
Michael Koch 65ae26660a Makefile.am (rmi_java_source_files): Added gnu/java/rmi/server/RMIVoidValue.java.
2003-12-26  Michael Koch  <konqueror@gmx.de>

	* Makefile.am (rmi_java_source_files):
	Added gnu/java/rmi/server/RMIVoidValue.java.
	* Makefile.in: Regenerated.

From-SVN: r75037
2003-12-26 16:25:57 +00:00
Kazu Hirata 8825ae5045 h8300.md (ldm_h8300s_2_normal): Use HImode for addresses.
* config/h8300/h8300.md (ldm_h8300s_2_normal): Use HImode for
	addresses.

From-SVN: r75036
2003-12-26 16:15:24 +00:00
Guilhem Lavaux 38910ebb1b 2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
Mark Wielaard  <mark@klomp.org>

	* gnu/java/rmi/server/UnicastConnectionManager.java
	(startScavenger): Set the client connection manager to daemon
	state because it may block clients until TIMEOUT is reached
	when they are exiting.

	* gnu/java/rmi/RMIVoidValue.java: New file for a class representing
	a void return.

	* gnu/java/rmi/server/UnicastRemoteCall.java
	(DummyOutputStream): Add a boolean before each written field to
	know whether it is a primitive.
	(releaseOutputStream): Flush parameters at write time.

	* gnu/java/rmi/server/UnicastServerRef.java
	(incomingMessageCall): Return a RMIVoidValue if no value is to be
	returned.

	* gnu/java/rmi/server/UnicastServer.java
	(incomingMessageCall): Do not write a returned object if it is
	a RMIVoidValue.

Co-Authored-By: Mark Wielaard <mark@klomp.org>

From-SVN: r75033
2003-12-26 16:13:01 +00:00
Kaveh R. Ghazi 4d42522958 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
From-SVN: r75030
2003-12-26 01:54:43 +00:00
GCC Administrator 590a23507c Daily bump.
From-SVN: r75028
2003-12-26 00:16:07 +00:00
Kazu Hirata a98dd5bb2d * config/m32r/m32r.md: Remove a constraint from a splitter.
From-SVN: r75026
2003-12-25 21:58:13 +00:00
Andrew Pinski 19a4e5b7e2 parse.y (catch_clause_parameter): Fix typo.
2003-12-25  Andrew Pinski  <pinskia@physics.uc.edu>

        * parse.y (catch_clause_parameter): Fix typo.

From-SVN: r75025
2003-12-25 13:01:17 -08:00
Andreas Tobler 365fc27612 ltdl.c (HAVE_DYLD): Remove ifdef conditional for darwin.
2003-12-25  Andreas Tobler  <a.tobler@schweiz.ch>

	* libltdl/ltdl.c (HAVE_DYLD): Remove ifdef conditional for
	darwin. Fixed by fixinclude now.

From-SVN: r75024
2003-12-25 20:33:06 +01:00
Michael Koch d9a81e87b6 ServerSocket.java bind (): If InetSocketAddress.getAddress() returns "null" use "0.0.0.0" as address to...
2003-12-25  Michael Koch  <konqueror@gmx.de>

	* java/net/ServerSocket.java bind():
	If InetSocketAddress.getAddress() returns "null" use "0.0.0.0" as
	address to bind to.

From-SVN: r75023
2003-12-25 17:31:13 +00:00
Andrew Pinski ac2b322259 PR c++/13268, c++/13339
PR c++/13268, c++/13339
        * class.c (add_method): Return early when method is error_mark_node.
        * pt.c (tsubst_friend_function): Return early when new_friend is
        error_mark_node.

From-SVN: r75022
2003-12-25 08:28:50 -08:00
Andrew Pinski 5a6159ddb9 PR C++/13429, C/11944
2003-12-25  Andrew Pinski  <pinskia@physics.uc.edu>

        PR C++/13429, C/11944
        * c-common.c (c_build_qualified_type): Return early when type is
        error_mark_node.
        (c_apply_type_quals_to_decl): Likewise.

From-SVN: r75021
2003-12-25 08:21:34 -08:00
Andrew Pinski df9fe6e576 re PR java/13404 (ICE when Missing identifier on catch clause)
2003-12-25  Andrew Pinski  <pinskia@physics.uc.edu>

        PR java/13404
        * parse.y: (catch_clause_parameter): Return early if $3, aka
        formal_parameter, is null.

From-SVN: r75020
2003-12-25 08:08:25 -08:00
Kazu Hirata d6b4baa4a5 alpha-modes.def: Fix comment formatting.
* config/alpha/alpha-modes.def: Fix comment formatting.
	* config/alpha/alpha.c: Likewise.
	* config/alpha/alpha.h: Likewise.
	* config/alpha/elf.h: Likewise.
	* config/alpha/lib1funcs.asm: Likewise.
	* config/alpha/openbsd.h: Likewise.
	* config/alpha/vms-cc.c: Likewise.
	* config/alpha/vms-crt0-64.c: Likewise.
	* config/alpha/vms-crt0.c: Likewise.
	* config/alpha/vms-ld.c: Likewise.
	* config/alpha/vms-psxcrt0-64.c: Likewise.
	* config/alpha/vms-psxcrt0.c: Likewise.
	* config/alpha/vms.h: Likewise.
	* config/arc/arc.c: Likewise.
	* config/arm/aof.h: Likewise.
	* config/arm/arm-modes.def: Likewise.
	* config/arm/arm.c: Likewise.
	* config/arm/arm.h: Likewise.
	* config/arm/arm.md: Likewise.
	* config/arm/linux-elf.h: Likewise.
	* config/arm/vxworks.h: Likewise.
	* config/avr/avr.c: Likewise.
	* config/avr/avr.h: Likewise.

From-SVN: r75019
2003-12-25 15:17:37 +00:00
Kazu Hirata 3bbc2af6e7 elf.h: Fix comment formatting.
* config/xtensa/elf.h: Fix comment formatting.
	* config/xtensa/xtensa-protos.h: Likewise.
	* config/xtensa/xtensa.c: Likewise.
	* config/xtensa/xtensa.h: Likewise.

From-SVN: r75018
2003-12-25 04:49:32 +00:00
Andrew Pinski be88628621 atomicity.h (__exchange_and_add): Fix output constraint.
* config/cpu/i386/atomicity.h (__exchange_and_add): Fix output
        constraint.

From-SVN: r75017
2003-12-24 20:27:58 -08:00
Andrew Pinski a51c409779 re PR libstdc++/13480 (bits/atomicity.h:56: warning: read-write constraint does not allow a register)
2003-12-24  Andrew Pinski  <pinskia@physics.uc.edu>

        PR libstdc++/13480
        * config/cpu/i486/atomicity.h: Split up read-write memory operand.

From-SVN: r75016
2003-12-24 18:04:06 -08:00
GCC Administrator 015fde0ae5 Daily bump.
From-SVN: r75014
2003-12-25 00:16:06 +00:00
Kazu Hirata 2c338472ba avr.c: Fix comment formatting.
* config/avr/avr.c: Fix comment formatting.
	* config/avr/avr.md: Likewise.

From-SVN: r75011
2003-12-24 22:12:32 +00:00
Kazu Hirata baac771ac4 re PR target/12721 (ICE when building a cross compiler for avr-elf)
PR target/12721.
	* config/avr/avr.c: Include ggc.h.
	(tmp_reg_rtx): Declare with GTY.
	(zero_reg_rtx): Likewise.
	(ldi_reg_rtx): Remove.
	(avr_override_options): Initialize zero_reg_rtx and
	ldi_reg_rtx.
	(avr_init): Remove.
	Include gt-avr.h.
	* config/avr/avr.h (LDI_REG_REGNO): Remove.
	Remove externs for tmp_reg_rtx, zero_reg_rtx, and ldi_reg_rtx.

From-SVN: r75010
2003-12-24 20:39:30 +00:00
David Edelsohn 2dcfc29d81 * doc/md.texi: Document PowerPC vector register constraint letter.
From-SVN: r75009
2003-12-24 11:19:16 -05:00
Mark Mitchell 8f23fc8185 calls.c (expand_call): Recognize calls to "sqrt" and create corresponding notes.
* calls.c (expand_call): Recognize calls to "sqrt" and create
	corresponding notes.

	* g++.dg/bprob/bprob.exp: Load target-supports.exp
	* g77.dg/bprob/bprob.exp: Likewise.
	* gcc.misc-tests/bprob.exp: Likewise.
	* gcc.dg/builtins-18.c: Use builtins-config.h.  Do not test float
	variants on systems where the library does not provide that
	functionality.
	* gcc.dg/builtins-20.c: Use builtins-config.h.
	* gcc.dg/builtins-config.h: New file.

From-SVN: r75003
2003-12-24 06:52:27 +00:00