Commit Graph

29939 Commits

Author SHA1 Message Date
Richard Henderson
7171b4910c * flow.c (merge_blocks_nomove): Don't seek back past the bb note.
From-SVN: r35827
2000-08-20 15:16:32 -07:00
Mark Wielaard
8559f9bb2f Adler32.java: Make private variables really private
2000-08-20  Mark Wielaard  <mark@klomp.org>

    * java/util/zip/Adler32.java: Make private variables really private
    * java/util/zip/CRC32.java: Make private variables really private
    * java/util/zip/CheckedInputStream.java: skip() could skip to much bytes
    * java/util/zip/InflaterInputStream.java: skip() could skip to much bytes
    * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
    * java/util/zip/ZipFile.java: size() new 1.2 method
    * java/util/zip/ZipInputStream.java: Use createZipEntry not new ZipEntry.
    since 1.2 available() always returns just 1 or 0 when closed

From-SVN: r35826
2000-08-20 21:51:19 +00:00
Zack Weinberg
3cb553b468 [multiple changes]
2000-08-20  Zack Weinberg  <zack@wolery.cumb.org>

	* cppinit.c (cpp_init): Set global flag when called.
	(cpp_reader_init): Bomb out if cpp_init hasn't been called.

Sun Aug 20 01:41:35 MSD 2000 Dennis Chernoivanov <cdi@sparc.spb.su>

        * cpplex.c (cpp_scan_buffer): Move `output_line_command' just
        before `process_directive' so that newlines won't be missed
        for directives.
        (cpp_printf): Increment `print->lineno' when newline is emitted.

        * cppmain.c (cb_ident): Likewise.
        (cb_define): Likewise.
        (cb_undef): Likewise.
        (cb_include): Likewise.
        (cb_def_pragma): Likewise.
        (dump_macros_helper): Likewise.

	* gcc.dg/cpp/pragma-1.c: New test.
	* gcc.dg/cpp/pragma-2.c: New test.

From-SVN: r35825
2000-08-20 21:36:18 +00:00
Anthony Green
53e687fabb JarFile.java: Don't call java.util.zip.ZipFile.getEntry twice.
* java/util/jar/JarFile.java: Don't call
        java.util.zip.ZipFile.getEntry twice.  From Mark Wielaard
        <mark@klomp.org>.

From-SVN: r35824
2000-08-20 19:40:25 +00:00
Richard Henderson
9c66892187 ia64.c (emit_insn_group_barriers): Stop if ar.lc assigned before a loop.
* config/ia64/ia64.c (emit_insn_group_barriers): Stop if ar.lc
        assigned before a loop.

        * config/ia64/ia64.md (ashlsi3): Zero extend the shift count.
        (ashrsi3, lshrsi3): Likewise.

From-SVN: r35823
2000-08-20 12:03:03 -07:00
Anthony Green
48da46cca8 Oops. Forgot some notes.
From-SVN: r35822
2000-08-20 17:54:56 +00:00
Anthony Green
f2e541ce26 URLClassLoader.java: Find the JarEntry via the JarFile.
Sun Aug 20 09:51:48 2000  Anthony Green  <green@redhat.com>

        * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.

        * java/net/JarURLConnection.java: getEntry doesn't take any
        arguments.  Return null if element is null.

        * java/util/zip/ZipFile.java (getInputStream): Read the compressed
        size from the archive, not the inflated size.

        * java/util/jar/JarFile.java (getEntry): Don't recurse.  Call
        java.util.zip.ZipFile.getEntry.

        * gij.cc (help): Change sourceware reference to
        sources.redhat.com.

From-SVN: r35821
2000-08-20 17:49:12 +00:00
Tom Tromey
1175b9b4c5 re GNATS gcj/305 (Interface methods implementations not always checked)
* parse.y (check_abstract_method_definitions): Now return `int'.
	Check implemented interfaces.  Fixes PR gcj/305.

From-SVN: r35820
2000-08-20 16:28:48 +00:00
Tom Tromey
2e0f0affd6 re GNATS gcj/310 (illegal type "long" accepted for "switch" expression)
* parse.y (patch_switch_statement): Disallow `long' in switch
	expressions.  Fixes PR gcj/310.

From-SVN: r35819
2000-08-20 16:24:31 +00:00
Gabriel Dos Reis
4e1e6a0137 c-lang.c: #include diagnostic.h
* c-lang.c: #include diagnostic.h
	(c_tree_printer): New function.
	(lang_init): Initialize lang_printer.

	* Makefile.in (c-lang.o): Depends on diagnostic.h

From-SVN: r35818
2000-08-20 14:57:16 +00:00
Gabriel Dos Reis
e2840263c7 c-errors.c (pedwarn_c99): Adjust call to report_diagnostic.
* c-errors.c (pedwarn_c99): Adjust call to report_diagnostic.

	* diagnostic.c (default_diagnostic_starter,
	default_diagnostic_finalizer): New functions.
	(diagnostic_for_asm, diagnostic_for_decl): Tweak.
	(pedwarn, pedwarn_with_file_and_line, error,
	error_with_file_and_line, fatal, warning,
	warning_with_file_and_line): Adjust call to report_diagnostic.
	(report_diagnostic): Rework.
	(set_diagnostic_context): New function.

	* diagnostic.h (struct diagnostic_context): New data structure.
	(diagnostic_message, diagnostic_argument_list,
	diagnostic_file_location, diagnostic_line_location,
	diagnostic_is_warning, diagnostic_starter, diagnostic_finalizer,
	diagnostic_finalizer, diagnostic_auxiliary_data): New macros.
	(set_diagnostic_context): Declare.
	(report_diagnostic): Change prototype.

From-SVN: r35817
2000-08-20 09:50:12 +00:00
Neil Booth
1293daae2b * fix-header.c (read_scan_file): Initialize cpplib.
From-SVN: r35816
2000-08-20 08:33:52 +00:00
Neil Booth
574f742531 * fix-header.c (main): Initialize cpplib.
From-SVN: r35815
2000-08-20 08:28:45 +00:00
Jeff Law
bd3b6086af Daily bump.
From-SVN: r35814
2000-08-20 01:45:07 -06:00
Michael Meissner
34c9e8480c Make sure THEN block has any insns at before testing for indirect jump
From-SVN: r35813
2000-08-20 01:32:44 +00:00
Michael Meissner
f1e42c8110 Do not consider a THEN block ending in an indirect jump for conditional compilation; Fix d30v warning
From-SVN: r35812
2000-08-19 22:32:11 +00:00
Neil Booth
9d6c2770a0 * cpp.texi: Add @section for assertions.
From-SVN: r35811
2000-08-19 20:13:06 +00:00
Tom Tromey
ea70900954 ZipInputStream.java (createZipEntry): Implemented.
* java/util/zip/ZipInputStream.java (createZipEntry):
	Implemented.

From-SVN: r35810
2000-08-19 19:54:36 +00:00
Anthony Green
a729a4e9ab Attributes.java, [...]: Imported from Classpath.
Sat Aug 19 11:00:53 2000  Anthony Green  <green@redhat.com>

	* java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
	java/util/jar/JarException.java, java/util/jar/JarFile.java,
	java/util/jar/JarInputStream.java,
	java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
	java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
	java/util/AbstractSet.java, java/util/BasicMapEntry.java,
	java/security/cert/CRL.java, java/security/cert/CRLException.java,
	java/security/cert/Certificate.java,
	java/security/cert/CertificateEncodingException.java,
	java/security/cert/CertificateException.java,
	java/security/cert/CertificateExpiredException.java,
	java/security/cert/CertificateFactory.java,
	java/security/cert/CertificateFactorySpi.java,
	java/security/cert/CertificateNotYetValidException.java,
	java/security/cert/CertificateParsingException.java,
	java/security/cert/X509CRL.java,
	java/security/cert/X509CRLEntry.java,
	java/security/cert/X509Certificate.java,
	java/security/cert/X509Extension.java: Imported from Classpath.
	* java/util/Hashtable.java: Imported from Classpath.

	* java/util/zip/ZipInputStream.java: Create stub for
	createZipEntry.

	* gcj/javaprims.h: Updated class list.

	* Makefile.in, gcj/Makefile.in: Rebuilt.
	* Makefile.am (ordinary_java_source_files): Add these new classes.

From-SVN: r35809
2000-08-19 18:19:42 +00:00
John Wehle
e76d9acbe9 loop.c (scan_loop): Use CONST_CALL_P instead of checking for REG_LIBCALL / REG_RETVAL.
* loop.c (scan_loop): Use CONST_CALL_P instead of
	checking for REG_LIBCALL / REG_RETVAL.

From-SVN: r35808
2000-08-19 16:34:44 +00:00
Jeffrey A Law
850aac532e reload1.c (reload_as_needed): Accept dumpfile argument, pass it to emit_reload_insns.
* reload1.c (reload_as_needed): Accept dumpfile argument,
        pass it to emit_reload_insns.
        (emit_reload_insns): Add new dumpfile argument.  If non-null
        then dump the reloads for each insn into the dumpfile.
        (reload): Pass dumpfile to reload_as_needed.

From-SVN: r35807
2000-08-19 09:49:01 -06:00
Jeffrey A Law
f49957d671 * invoke.texi: Clean up linux-gnu vs linux comments.
From-SVN: r35806
2000-08-19 09:20:01 -06:00
Toon Moene
11d4ebb581 top.c (ffe_decode_option): Disable -fdebug-kludge and warn about it.
2000-08-19  Toon Moene  <toon@moene.indiv.nluug.nl>

	* top.c (ffe_decode_option): Disable -fdebug-kludge
	and warn about it.
	* lang-options.h: Document the fact.
	* g77.texi: Ditto.

From-SVN: r35805
2000-08-19 13:20:07 +00:00
Gabriel Dos Reis
b426bedd5d valarray_array.h (__valarray_min, [...]): Fix thinko.
* bits/valarray_array.h (__valarray_min, __valarray_max): Fix
	thinko. Diagnostic messages really need to be improved for
	template argument deduction.

From-SVN: r35804
2000-08-19 11:28:22 +00:00
Jeff Law
75d9a5e709 Daily bump.
From-SVN: r35803
2000-08-19 01:45:07 -06:00
Richard Henderson
041f25e6ff ia64.c (reg_or_5bit_operand): New.
* config/ia64/ia64.c (reg_or_5bit_operand): New.
        (ia64_depz_field_mask): New.
        * config/ia64/ia64.h (CONSTRAINT_OK_FOR_R): New.
        (PREDICATE_CODES): Update.
        * config/ia64/ia64.md: Update commentary.
        (depz_internal): New.
        (ashlsi3): Implement directly.
        (ashrsi3, lshrsi3): Simplify; rely on extv and extzv for constants.
        (ashldi3): Use shladd.
        * config/ia64/ia64-protos.h: Update.

From-SVN: r35802
2000-08-19 00:15:08 -07:00
Zack Weinberg
17ed19cb31 lexstrng.c: Don't include string.h.
* gcc.dg/cpp/lexstrng.c: Don't include string.h.
	* gcc.dg/cpp/paste2.c: Don't include string.h.  Prototype strcmp.

From-SVN: r35801
2000-08-19 05:25:00 +00:00
Zack Weinberg
319ea138fe toplev.c (independent_decode_option): Always process -g.
* toplev.c (independent_decode_option): Always process -g.
        Remove third argument, now unused.  Adjust caller to match.

From-SVN: r35800
2000-08-19 01:31:47 +00:00
Richard Henderson
8231ad949d combine.c (make_compound_operation): Break after creating the extraction.
* combine.c (make_compound_operation): Break after creating
        the extraction.

From-SVN: r35799
2000-08-18 17:45:47 -07:00
Zack Weinberg
6e19bb3853 cpplib.c (cpp_register_pragma_space): Just return if the namespace is already registered.
* cpplib.c (cpp_register_pragma_space): Just return if the
	namespace is already registered.

From-SVN: r35798
2000-08-18 22:42:14 +00:00
Ray Essick
477d303f84 Only allow allow rotations by a constant amount.
Do not generate ROTL instruction.

From-SVN: r35797
2000-08-18 21:11:23 +00:00
Richard Kenner
7d2950e523 stor-layout.c (compute_record_type): Don't use mode of single field as mode of record if not integer mode of same type.
* stor-layout.c (compute_record_type): Don't use mode of single
	field as mode of record if not integer mode of same type.

From-SVN: r35796
2000-08-18 16:52:28 -04:00
Richard Kenner
26db254445 * gcc.c-torture/compile/20000818-1.c: New test.
From-SVN: r35795
2000-08-18 16:45:02 -04:00
Richard Kenner
d1da5fd573 New test
From-SVN: r35794
2000-08-18 16:43:34 -04:00
Alexandre Oliva
ffe51c8a82 elf.h: Do not include sh/sh.h.
* config/sh/elf.h: Do not include sh/sh.h.
* config/sh/rtems.h: Likewise.
* config/sh/rtemself.h: Do not include sh/elf.h.
* configure.in: Get them included with `tm_file's.
* configure: Rebuilt.

From-SVN: r35793
2000-08-18 19:39:52 +00:00
Alexandre Oliva
8845e874be sh.md (fpu_switch0, [...]): Simplify.
* config/sh/sh.md (fpu_switch0, fpu_switch1): Simplify.
* config/sh/sh.c (fpscr_set_from_mem): Use them.

From-SVN: r35792
2000-08-18 19:10:43 +00:00
Richard Kenner
a1c1fdd010 regmove.c (perhaps_ends_bb_p): New function.
* regmove.c (perhaps_ends_bb_p): New function.
	(optimize_reg_copy_1, optimize_reg_copy_2): Call it.
	(optimize_reg_copy_3, fixup_match_2, regmove_optimize): Likewise.
	(fixup_match_1): Likewise.
	(fixup_match_1, combine_stack_adjustments_for_block): Add casts to
	avoid signed/unsigned warnings.

From-SVN: r35791
2000-08-18 14:21:33 -04:00
Richard Kenner
3f546a5319 function.c (fixup_var_refs_1, case MEM): Update CODE after updating X.
* function.c (fixup_var_refs_1, case MEM): Update CODE after
	updating X.

From-SVN: r35790
2000-08-18 14:11:02 -04:00
Neil Booth
61d0346df8 cpphash.h: Use HAVE_DESIGNATED_INITIALIZERS.
* cpphash.h: Use HAVE_DESIGNATED_INITIALIZERS.
	(_cpp_trigraph_map): Declaration moved from cpplex.c

	* cppinit.c: Define _cpp_trigraph_map.  Use UCHAR_MAX + 1
	instead	of 256.  Use consistent test for designated initializers.
	(cpp_init): Initialize trigraph_map.
	(initialize_standard_includes, parse_option):  Use memcmp
	instead of strncmp.

	* cpplex.c (init_trigraph_map): Remove.
	(trigraph_ok, trigraph_replace, lex_line): Refer to
	_cpp_trigraph_map.

	* cpplib.c (str_match, WARNING, ERROR, ICE): Delete.
	(do_unassert): Remove unused "next" local.

	* system.h (HAVE_DESIGNATED_INITIALIZERS): New prototype.

From-SVN: r35789
2000-08-18 17:35:58 +00:00
Manfred Hollstein
90d14f40a9 20000818-1.c: New test.
2000-08-18  Manfred Hollstein  <manfredh@redhat.com>

	* gcc.c-torture/execute/20000818-1.c: New test.

From-SVN: r35788
2000-08-18 16:54:39 +00:00
Benjamin Kosnik
9744ff7d80 valarray_meta.h: Fix typos...
2000-08-18  Benjamin Kosnik  <bkoz@gnu.org>

	* bits/valarray_meta.h: Fix typos...

From-SVN: r35787
2000-08-18 16:29:18 +00:00
Joseph Myers
0d60c2e752 * gcc.dg/format-va-1.c: New test.
From-SVN: r35786
2000-08-18 17:14:32 +01:00
Gabriel Dos Reis
e825bf4aa7 valarray_meta.h (_Expr<>::shift, [...]): Implement.
* bits/valarray_meta.h (_Expr<>::shift, _Expr::cshift,
	_Expr<>::apply): Implement.

From-SVN: r35785
2000-08-18 11:01:22 +00:00
Nathan Sidwell
2ae7bada94 decl.c (member_function_or_else): Use cp_error ...
* decl.c (member_function_or_else): Use cp_error ... %T.
	(grokdeclarator): Likewise.
	(start_method): Likewise.
	* friend.c (make_friend_class): Use cp_pedwarn ... %T.

From-SVN: r35784
2000-08-18 10:49:17 +00:00
Gabriel Dos Reis
e3b4d2e9a6 valarray_meta.h (_Expr<>::min, [...]): Implement.
* bits/valarray_meta.h (_Expr<>::min, _Expr<>::max): Implement.

	* bits/valarray_array.h (__valarray_min, __valarray_max): New
	function.

From-SVN: r35783
2000-08-18 10:40:23 +00:00
Gabriel Dos Reis
f5c979243f editbuf.h (edit_streambuf): Fix syntax error in friend-declaration.
* editbuf.h (edit_streambuf): Fix syntax error in
	friend-declaration.

From-SVN: r35782
2000-08-18 10:20:52 +00:00
Emmanuel Marty
ef42b1ddae From Emmanuel Marty <emarty@suntech.fr>
* arm/lib1funcs.asm (_umodsi3 THUMB VARIANT): Restore deleted return
insn.

From-SVN: r35781
2000-08-18 10:18:14 +00:00
Nathan Sidwell
074900c50e * g++.old-deja/g++.other/typedef8.C: New test.
From-SVN: r35780
2000-08-18 09:49:40 +00:00
Nathan Sidwell
7a8b13758c decl2.c (grokfield): Set CLASSTYPE_GOT_SEMICOLON on class TYPE_DECLs.
* decl2.c (grokfield): Set CLASSTYPE_GOT_SEMICOLON on class
	TYPE_DECLs.

From-SVN: r35779
2000-08-18 09:49:06 +00:00
Nathan Sidwell
8e4f1b30f4 13478.C: Mark candidate.
* g++.old-deja/g++.benjamin/13478.C: Mark candidate.
	* g++.old-deja/g++.mike/net36.C: Mark candidate.
	* g++.old-deja/g++.robertl/eb131.C: Mark candidate.
	* g++.old-deja/g++.oliva/overload1.C: Remove XFAIL.
	* g++.old-deja/g++.other/ptrmem7.C: New test.
	* g++.old-deja/g++.pt/ptrmem10.C: New test.

From-SVN: r35778
2000-08-18 09:31:48 +00:00