Commit Graph

22583 Commits

Author SHA1 Message Date
Jason Merrill
06126ca285 tree.c (lvalue_p_1): A NOP_EXPR can be an lvalue.
* tree.c (lvalue_p_1): A NOP_EXPR can be an lvalue.
	(build_cplus_new): Make sure that what we return is of the right type.

From-SVN: r27063
1999-05-20 08:17:36 -04:00
Mark Mitchell
87533b37c7 cp-tree.h (make_ptrmem_cst): New function.
* cp-tree.h (make_ptrmem_cst): New function.
	* expr.c (cplus_expand_constant): Split out from ...
	(cplus_expand_expr): Here.  Use cplus_expand_constant.
	(init_cplus_expand): Set lang_expand_constant.
	* pt.c (convert_nontype_argument): Use make_ptrmem_cst.
	* tree.c (make_ptrmem_cst): Define.
	* typeck.c (unary_complex_lvalue): Use make_ptrmem_cst.
	* typeck2.c (initializer_constant_valid_p): Use make_ptrmem_cst.

From-SVN: r27060
1999-05-20 10:44:47 +00:00
Mark Mitchell
e697e20a89 expr.h (lang_expand_constant): Declare.
* expr.h (lang_expand_constant): Declare.
	* toplev.c (lang_expand_constant): Define it.
	* varasm.c (output_constant): Use it.

From-SVN: r27058
1999-05-20 10:37:50 +00:00
Kaveh R. Ghazi
f96b337ae4 optabs.c (expand_cmplxdiv_straight, [...]): Change function definitions to K&R style.
* optabs.c (expand_cmplxdiv_straight, expand_cmplxdiv_wide):
        Change function definitions to K&R style.

From-SVN: r27057
1999-05-20 08:29:52 +00:00
Andrew Haley
554b61bb30 prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW added.
1999-05-20  Andrew Haley  <aph@cygnus.com>
        * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
        added.
        * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
        (INIT_FPE): Exception string made more informative.
        * include/sparc-signal.h (INIT_FPE): Exception string made more
        informative.
        * testsuite/libjava.lang/Divide_1.java: New file.
        * testsuite/libjava.lang/Divide_1.out: New file.

From-SVN: r27056
1999-05-20 08:26:55 +00:00
Bruce Korb
bf3118d04b A fix for one breaks another :( - do not ignore SIGCLD!
From-SVN: r27055
1999-05-20 08:19:05 +00:00
Alexandre Oliva
48ac9ce28c static initialization removal & K&R-ification
From-SVN: r27052
1999-05-20 07:10:41 +00:00
Jeff Law
6de94858b9 libchill, libf2c, libobjc:
* configure.in (AC_PREREQ): Update to 2.13.
        (AC_EXEEXT): Call to find possible file extension.
        (compiler_name): Use.
        * configure: Regenerate.
libio, libstdc++
        * configure.in: Test for ${compiler_name}.exe as well.

From-SVN: r27050
1999-05-19 20:27:28 -06:00
Andreas Schwab
3d3fcaef67 dbxcoff.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Use asm_fprintf and %L to generate the label name.
* config/dbxcoff.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Use
        asm_fprintf and %L to generate the label name.
        * config/dbxelf.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Likewise.
        (ASM_OUTPUT_SOURCE_LINE): Correct generation of internal labels.

From-SVN: r27048
1999-05-19 19:54:28 -06:00
Jeff Law
eacc0666b0 Daily bump.
From-SVN: r27046
1999-05-19 18:52:36 -06:00
Jeff Law
f8d41a69ee jump.c (can_reverse_comparison_p): Do not abort if the comparison insn for a conditional jump can not be found.
p
        * jump.c (can_reverse_comparison_p): Do not abort if the comparison
        insn for a conditional jump can not be found.

From-SVN: r27043
1999-05-19 18:41:26 -06:00
Jeff Law
b87bc8f3ad jump.c (can_reverse_comparison_p): Do not abort if the comparison insn for a conditional jump can not be found.
�
        * jump.c (can_reverse_comparison_p): Do not abort if the comparison
        insn for a conditional jump can not be found.

From-SVN: r27042
1999-05-19 18:41:24 -06:00
Jeff Law
13b6b42c3f mips.h (ENCODE_SECTION_INFO): Do not perform GP optimizations on variables in specific sections other than...
x
        * mips.h (ENCODE_SECTION_INFO): Do not perform GP optimizations
        on variables in specific sections other than .sbss and .sdata.

From-SVN: r27038
1999-05-19 17:06:13 -06:00
Jeff Law
1945961b39 mips.h (ENCODE_SECTION_INFO): Do not perform GP optimizations on variables in specific sections other than...
�
        * mips.h (ENCODE_SECTION_INFO): Do not perform GP optimizations
        on variables in specific sections other than .sbss and .sdata.

From-SVN: r27037
1999-05-19 17:06:09 -06:00
Mark Mitchell
11f9878883 * pt.c (build_template_decl): Copy DECL_NONCONVERTING_P.
From-SVN: r27034
1999-05-19 20:01:04 +00:00
Tom Tromey
550c249201 aclocal.m4, configure: Rebuilt.
* aclocal.m4, configure: Rebuilt.
	* acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.

From-SVN: r27033
1999-05-19 12:55:15 +00:00
Tom Tromey
2d40265fda GZIPOutputStream.java (write(byte[])): New method.
* java/util/zip/GZIPOutputStream.java (write(byte[])): New
	method.

From-SVN: r27031
1999-05-19 12:35:06 +00:00
Kaveh R. Ghazi
ab3a6dd6e2 Warning fixes:
* class.c (build_utf8_ref): Initialize variable `field'.
        * decl.c (init_decl_processing): Initialize variable `field'.
        * expr.c (build_known_method_ref): Mark parameters `method_type',
        `method_signature' and `arg_list' with ATTRIBUTE_UNUSED.
        (process_jvm_instruction): Likewise for parameter `length'.
        * jvspec.c (lang_specific_driver): Mark variables `saw_math',
        `saw_libc', `saw_gc', `saw_threadlib' and `saw_libgcj' with
        ATTRIBUTE_UNUSED.
        * parse.y (maybe_generate_clinit): Remove unused variable
        `has_non_primitive_fields'.
        (find_in_imports_on_demand): Initialize variables `node_to_use'
        and `cl'.
        (patch_binop): Likewise for variable `prom_type'.
        (patch_unaryop): Likewise for variable `prom_type'.
        * verify.c (verify_jvm_instructions): Likewise for variable `last'.
        * xref.c (xref_table): Add missing initializer.

From-SVN: r27030
1999-05-19 11:30:30 +00:00
Mark Mitchell
c472cdfd0a decl2.c (start_static_storage_duration_function): Fix comment.
* decl2.c (start_static_storage_duration_function): Fix comment.
	(finish_file): Create static storage duration functions lazily.

From-SVN: r27029
1999-05-19 11:24:18 +00:00
Tom Tromey
6ada3468d8 natInflater.cc (inflate): Cast `len' to unsigned.
* java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
	Include <stdlib.h>.
	* java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
	Include <stdlib.h>.
	(update): Fail in default case.  Always initialize `strat'.

From-SVN: r27028
1999-05-19 11:03:36 +00:00
Jason Merrill
6bdb8141ec Implement anonymous structs.
* cp-tree.h (ANON_AGGR_TYPE_P): Rename from ANON_UNION_TYPE_P.
	* class.c, decl.c, decl2.c, init.c, pt.c, search.c, typeck.c: Adjust.
	* class.c (finish_struct_1): Remove redundant check for anon struct.
	* decl.c (fixup_anonymous_aggr): Renamed from fixup_anonymous_union.
	(check_tag_decl): Check for anonymous struct here.
	* decl2.c (build_anon_union_vars): Catch anon struct at file scope.
	* init.c (sort_member_init, emit_base_init): Handle getting fields
	as well as names in current_member_init_list.
	(perform_member_init): Handle getting an anon aggr.
	* method.c (do_build_assign_ref): Don't descend into anon aggrs.
	(do_build_copy_constructor): Likewise.

From-SVN: r27027
1999-05-19 06:44:22 -04:00
Jason Merrill
cb6c8ebb73 new
From-SVN: r27026
1999-05-19 06:41:46 -04:00
Tom Tromey
3f969ec092 * mauve-libgcj: Enable java.util.zip.
From-SVN: r27025
1999-05-19 09:26:17 +00:00
Bruce Korb
c329beb0be KandR-ification of fixincl.x
From-SVN: r27024
1999-05-19 08:37:57 +00:00
Anthony Green
7ec6a04ef8 Shazam.java: New file.
* libjava.lang/Shazam.java: New file.
	libjava.lang/Shazam.out: New file.

From-SVN: r27022
1999-05-19 06:53:20 +00:00
Mark Mitchell
777004694d tree.c (cp_build_qualified_type): Don't allow qualified function types.
* tree.c (cp_build_qualified_type): Don't allow qualified function
	types.

From-SVN: r27021
1999-05-19 04:32:46 +00:00
Mark Mitchell
1483bddbc8 stmt.c (expand_return): Call start_cleanup_deferral and end_cleanup_deferral around conditional code.
* stmt.c (expand_return): Call start_cleanup_deferral and
	end_cleanup_deferral around conditional code.

From-SVN: r27018
1999-05-19 03:54:49 +00:00
Bruce Korb
5458582593 fixincl.tpl: Avoid depending on ANSI C features for filename lists.
p
        * fixinc/fixincl.tpl: Avoid depending on ANSI C features for
        filename lists.
        * fixinc/fixincl.x: Rebuilt.

From-SVN: r27017
1999-05-18 20:15:03 -06:00
Bruce Korb
c2caf52789 fixincl.tpl: Avoid depending on ANSI C features for filename lists.
�
        * fixinc/fixincl.tpl: Avoid depending on ANSI C features for
        filename lists.
        * fixinc/fixincl.x: Rebuilt.

From-SVN: r27016
1999-05-18 20:14:51 -06:00
Raja R Harinath
89b17be847 990519-1.c: New test.
X
        * gcc.c-torture/compile/990519-1.c: New test.

From-SVN: r27011
1999-05-18 20:01:52 -06:00
Raja R Harinath
ae5ccd8931 990519-1.c: New test.
�
        * gcc.c-torture/compile/990519-1.c: New test.

From-SVN: r27010
1999-05-18 20:01:50 -06:00
Jeff Law
4ccc1bb7b3 Avoid version # duplication.
From-SVN: r27009
1999-05-18 19:58:23 -06:00
Arvind Sankar
9c7668bbd4 * gxxint.texi: Fix typo.
From-SVN: r27006
1999-05-18 19:56:41 -06:00
Jan Hubicka
446ba5266e * i386.c (output_float_compare): Avoid GNU-C extensions.
From-SVN: r27005
1999-05-18 19:54:03 -06:00
Jason Merrill
829fd7e0f5 call.c (find_scoped_type, [...]): Lose.
* call.c (find_scoped_type, resolve_scope_to_name): Lose.
	* class.c (finish_struct_1): Use CLASS_TYPE_P.
	* ptree.c (print_lang_type): Likewise.
	* typeck.c (build_modify_expr, c_expand_asm_operands): Use
	IS_AGGR_TYPE_CODE.
	* typeck2.c (digest_init): Likewise.

From-SVN: r27001
1999-05-18 20:48:10 -04:00
Jeff Law
965f45361e version.c: Bump to distinguish mainline tree from the gcc-2.95 branch.
* version.c: Bump to distinguish mainline tree from the
        gcc-2.95 branch.
Also rotate the ChangeLog file.

From-SVN: r27000
1999-05-18 17:55:18 -06:00
Jason Merrill
8ac58be473 call.c (joust): Compare the types of the conv ops, not the target types of the conversions.
* call.c (joust): Compare the types of the conv ops, not the
	target types of the conversions.

From-SVN: r26999
1999-05-18 18:03:25 -04:00
Jason Merrill
780c0cb4d2 new
From-SVN: r26998
1999-05-18 14:15:08 -04:00
Warren Levy
39b1a0588f Makefile.am (ordinary_java_source_files): Added DatagramPacket.java...
* Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
	DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
	PlainDatagramSocketImpl.java, and SocketOptions.java.
	(nat_source_files): Added natPlainDatagramSocketImpl.cc.
	* Makefile.in: Rebuilt.
	* java/net/DatagramPacket.java: New file.
	* java/net/DatagramSocket.java: New file.
	* java/net/DatagramSocketImpl.java: New file.
	* java/net/MulticastSocket.java: New file.
	* java/net/PlainDatagramSocketImpl.java: New file.
	* java/net/SocketOptions.java: New file.
	* java/net/natPlainDatagramSocketImpl.cc: New file.

From-SVN: r26997
1999-05-18 18:02:01 +00:00
Tom Tromey
0ffac8322f ZipOutputStream.java (level): Initial value is Deflater.DEFAULT_COMPRESSION.
* java/util/zip/ZipOutputStream.java (level): Initial value is
	Deflater.DEFAULT_COMPRESSION.
	(close): New method.
	(closeEntry): Likewise.
	(finish): Likewise.
	(put_version): Likewise.
	(write_entry): Likewise.
	(put2, put4): Now return `int'.
	(comment): Default to empty string.
	(bytes_written): New instance variable.
	(chain): Likewise.
	* java/util/zip/ZipEntry.java (setComment): Limit length of
	comment string.
	(setCrc): Check CRC validity.
	(setExtra): Check argument validity.
	(setMethod): Likewise.
	(setSize): Likewise.
	(ZipEntry): Likewise.
	* include/javaprims.h: Updated namespace declarations.
	* Makefile.in: Rebuilt.
	* Makefile.am (ordinary_java_source_files): Mention new files.
	(nat_source_files): Likewise.
	* java/util/zip/ZipFile.java (readu2): Throw ZipException, not
	EOFException.
	(read4): Likewise.
	(getInputStream): Handle compressed entries.
	* java/util/zip/GZIPOutputStream.java: New file.
	* java/util/zip/GZIPInputStream.java: New file.
	* java/util/zip/DataFormatException.java: New file.
	* java/util/zip/CheckedInputStream.java: New file.
	* java/util/zip/CheckedOutputStream.java: New file.
	* java/util/zip/InflaterInputStream.java: Implemented.
	* java/util/zip/natInflater.cc: New file.
	* java/util/zip/Deflater.java: Implemented.
	* java/util/zip/natDeflater.cc: New file.
	* java/util/zip/DeflaterOutputStream.java: Implemented.
	* java/util/zip/ZipInputStream.java (closeZipEntry): Throw
	ZipException, not IOException.
	* java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
	not IOException.

From-SVN: r26996
1999-05-18 15:33:03 +00:00
Tom Tromey
5a9e5c6fb6 java-except.h (struct eh_range): Removed unused `next' member.
* java-except.h (struct eh_range): Removed unused `next' member.
	* verify.c (verify_jvm_instructions): Call check_nested_ranges
	after adding all exception handlers.  Sort exception ranges in
	order of start PC.
	(struct pc_index): New structure.
	(start_pc_cmp): New function.
	* except.c (add_handler): Return `void'.  Don't call link_handler;
	instead construct an ordinary linked list and do range
	coalescing.
	(check_nested_ranges): New function.
	(link_handler): Changed interface to allow merging of eh_ranges.
	Split overlapping ranges.  Return `void'.

From-SVN: r26995
1999-05-18 15:03:26 +00:00
Craig Burley
c64f913e00 improve open-coding of complex divide, use new method in g77
From-SVN: r26993
1999-05-17 21:05:14 -04:00
Jeff Law
9580a2d028 Daily bump.
From-SVN: r26992
1999-05-17 18:45:03 -06:00
Krister Walfridsson
af0ca0276c configure.in (arm*-*-netbsd*): Use collect2.
* configure.in (arm*-*-netbsd*): Use collect2.
        (i[34567]86-*-netbsd*): Likewise.
        (m68k*-*-netbsd*): Likewise.
        (ns32k-*-netbsd*): Likewise.
        (sparc-*-netbsd*): Likewise.
        (vax-*-netbsd*): Likewise.
        * configure: Rebuilt.

From-SVN: r26991
1999-05-17 17:58:15 -06:00
Zack Weinberg
eeb183e9c7 cppspec.c: Insert -no-gcc into command line unless -gcc was given by user.
* cppspec.c: Insert -no-gcc into command line unless -gcc was
        given by user.
        * gcc.c (default_compilers): Define __GNUC__ and
        __GNUC_MINOR__ only if -no-gcc was not given.
        * objc/lang-specs.h: Likewise.
        * cpp.texi: Document -x and -std options; explain that -lang
        is no longer supported.  Minor related corrections.

From-SVN: r26990
1999-05-17 17:37:19 -06:00
Zack Weinberg
49933dbade lang-specs.h: Define __GNUC__ and __GNUC_MINOR__ only if -no-gcc was not given.
X
        * lang-specs.h: Define __GNUC__ and __GNUC_MINOR__ only if -no-gcc
        was not given.

From-SVN: r26989
1999-05-17 17:35:15 -06:00
Zack Weinberg
4647121e32 lang-specs.h: Define __GNUC__ and __GNUC_MINOR__ only if -no-gcc was not given.
�
        * lang-specs.h: Define __GNUC__ and __GNUC_MINOR__ only if -no-gcc
        was not given.

From-SVN: r26988
1999-05-17 17:35:13 -06:00
Zack Weinberg
37c2a18d9d Fix ChangeLog entry.
From-SVN: r26987
1999-05-17 17:34:11 -06:00
Zack Weinberg
0e1db22605 lang-specs.h: Define __GNUC__ and __GNUC_MINOR__ only if -no-gcc was not given.
P
        * lang-specs.h: Define __GNUC__ and __GNUC_MINOR__ only if -no-gcc
        was not given.

From-SVN: r26986
1999-05-17 17:33:05 -06:00
Zack Weinberg
3e18b97b07 lang-specs.h: Define __GNUC__ and __GNUC_MINOR__ only if -no-gcc was not given.
�
        * lang-specs.h: Define __GNUC__ and __GNUC_MINOR__ only if -no-gcc
        was not given.

From-SVN: r26985
1999-05-17 17:33:04 -06:00