Commit Graph

30164 Commits

Author SHA1 Message Date
Nix
b7ba649aeb lang-specs.h: Do not process -o or run the assembler if -fsyntax-only.
* lang-specs.h: Do not process -o or run the assembler if
        -fsyntax-only.

From-SVN: r35852
2000-08-21 12:10:29 -06:00
DJ Delorie
4f3e904e93 * MAINTAINERS: Add self as a libiberty maintainer
From-SVN: r35851
2000-08-21 14:06:49 -04:00
Jeff Law
6e447bac90 Forgot to commit with last change.
From-SVN: r35850
2000-08-21 12:05:49 -06:00
Jeff Law
49009afdf7 gcc.c (do_spec_1): Implement %j spec flag.
* gcc.c (do_spec_1): Implement %j spec flag.
	Remove dead comment.

	* gcc.texi (The Configuration File): Document HOST_BIT_BUCKET.
        * system.h (HOST_BIT_BUCKET): Default to "/dev/null".
        * config/i386/xm-dos.h (HOST_BIT_BUCKET): Define as "NUL".
        * config/i386/xm-os2.h, config/winnt/winnt.h: Likewise.
      * protoize.c (munge_compile_params): Use HOST_BIT_BUCKET (if
	writable) instead of hardcoded value.

	* toplev.c (compile_file): Output to a file even if -fsyntax-only.

        * gcc.c, config/i386/xm-dos.h, config/i386/xm-os2.h: Kill
        MKTEMP_EACH_FILE.

         * gcc.c (cc1_options): Do not process -o or
        run the assembler if -fsyntax-only.

From-SVN: r35849
2000-08-21 12:01:51 -06:00
Eli Zaretskii
dc13bad72b prevent the deletion of a file before it is read on DOS
From-SVN: r35848
2000-08-21 16:28:18 +00:00
Bruce Korb
ddd32db02d Makefile for i?86-pc-msdosdjgpp
From-SVN: r35847
2000-08-21 16:17:35 +00:00
Jakub Jelinek
cb694d2c7b i386.md (lea_general_1): Copy insn condition to split condition.
* config/i386/i386.md (lea_general_1): Copy insn condition to split
	condition.
	(lea_general_2, lea_general_3): Likewise.

From-SVN: r35846
2000-08-21 17:10:42 +02:00
Kaveh R. Ghazi
cde6e6843d c-decl.c (duplicate_decls, [...]): Restrict -Wtraditional warnings to user code.
* c-decl.c (duplicate_decls, define_label): Restrict -Wtraditional
	warnings to user code.

	* c-lex.c (readescape, yylex): Likewise.

	* c-typeck.c (store_init_value, process_init_element): Likewise
	(c_expand_start_case): Format.

From-SVN: r35845
2000-08-21 14:54:28 +00:00
Maciej W. Rozycki
120dc6cd25 linux.h (LINK_SPEC): Use %(endian_spec).
* mips/linux.h (LINK_SPEC): Use %(endian_spec).

        * mips/mips.h: Change LINKER_ENDIAN_SPEC to ENDIAN_SPEC
        and linker_endian_spec to endian_spec.
        (ENDIAN_SPEC): Add %{EB} and %{EL}.
        (LINK_SPEC): Remove %{EB} and %{EL}.
        (ASM_SPEC): Likewise.  Use %(endian_spec).

From-SVN: r35844
2000-08-21 08:35:29 -06:00
Joseph Myers
93e2382f2c c-tree.h (flag_hosted): Move declaration from here...
* c-tree.h (flag_hosted): Move declaration from here...
	* c-common.h (flag_hosted): ... to here.
	(flag_noniso_default_format_attributes): New declaration.
	* c-decl.c (flag_noniso_default_format_attributes): New variable.
	(c_decode_option): Set it appropriately for options choosing
	language standard variant.
	* c-common.c (init_function_format_info): Only provide default
	format attributes if flag_hosted.  Only provide the gettext
	formats if flag_noniso_default_format_attributes.  Update
	comments.
	(check_format_info): Disable treatment of %a as a scanf flag in
	C99 mode.

cp:
	* decl.c (flag_hosted, flag_noniso_default_format_attributes): New
	variables.
	* decl2.c (lang_decode_option): Disable gettext attributes for
	-ansi.

From-SVN: r35843
2000-08-21 15:30:38 +01:00
Joseph Myers
f3d360aad1 c-common.c (scan_char_table): Add 'w' to flags for all formats except 'n'.
* c-common.c (scan_char_table): Add 'w' to flags for all formats
	except 'n'.
	(check_format_info): Set 'wide' for scanf format widths.  Warn for
	a zero scanf width.  Make the check for writing into a constant
	object at the first level of indirection; at later levels, warn if
	any type qualifiers are encountered.

testsuite:
	* gcc.dg/c90-scanf-1.c, gcc.dg/c94-scanf-1.c: New tests.

From-SVN: r35842
2000-08-21 15:22:44 +01:00
Jeffrey A Law
e6ea3b5f99 reload.c (reload_inner_reg_of_subreg): New function broken out of push_reload.
* reload.c (reload_inner_reg_of_subreg): New function broken out of
        push_reload.
        (push_reload): Use reload_inner_reg_of_subreg.
        (combine_reloads): Do not combine reloads if the input reload
        is a SUBREG in which the inner part will need reloading.

From-SVN: r35841
2000-08-21 07:46:47 -06:00
Jeffrey A Law
e04ca094de global.c (global_alloc): Avoid passing dumpfile argument to reload routines.
* global.c (global_alloc): Avoid passing dumpfile argument to
        reload routines.
        * toplev.c (rest_of_compilation): Likewise.
        * reload.h (reload): Remove dumpfile argument.  Callers changed.
        (debug_reload, debug_reload_to_stream): Move prototypes here.
        * rtl.h  (reload): Remove dumpfile argument.
        * reload.c (debug_reload): Remove prototype.
        (debug_reload_to_stream): Likewise.
        * reload1.c: Avoid passing dumpfile around, rely on rtl_dump_file
        instead.

From-SVN: r35840
2000-08-21 07:42:29 -06:00
Jakub Jelinek
029ccdb332 * g++.old-deja/g++.other/loop2.C: New test.
From-SVN: r35839
2000-08-21 15:04:38 +02:00
Gabriel Dos Reis
e66e4fa265 Fix thinko.
From-SVN: r35838
2000-08-21 11:29:16 +00:00
Gabriel Dos Reis
4b6243ef72 * bits/std_cmath.h (std::abs): Overload for int and long.
From-SVN: r35837
2000-08-21 10:45:26 +00:00
Gabriel Dos Reis
24805e803b diagnostic.c (context_as_prefix): Export.
* diagnostic.c (context_as_prefix): Export.
	(need_error_newline): Remove.
	(lang_diagnostic_starter, lang_diagnostic_finalizer): New objects.
	(error_module_changed, record_last_error_module,
	error_function_changed, record_last_error_function): New functions.
	(initialize_diagnostics): Default intialize
	lang_diagnostic_starter, lang_diagnostic_finalizer.
	(init_output_buffer): Tweak.
	(file_name_as_prefix): New function.
	(announce_function, default_print_error_function,
	report_error_function, set_diagnostic_context): Tweak.

cp/
	* lex.c (lang_init_options): Default diagnostic message maximum
	length to 80, when line-wrapping.

From-SVN: r35836
2000-08-21 10:14:18 +00:00
Richard Earnshaw
056b68414e flow.c (init_propagate_block_info): Handle SUBREG in a jump condition expression.
* flow.c (init_propagate_block_info): Handle SUBREG in a jump
condition expression.

From-SVN: r35835
2000-08-21 09:18:05 +00:00
Jakub Jelinek
46639003c8 20000606-1.c: New test.
* gcc.c-torture/compile/20000606-1.c: New test.
	* gcc.c-torture/compile/20000728-1.c: New test.
	* gcc.c-torture/execute/20000801-1.c: New test.
	* gcc.c-torture/execute/20000801-2.c: New test.
	* gcc.c-torture/execute/20000819-1.c: New test.
	* gcc.c-torture/execute/20000819-1.x: XFAIL.
	* gcc.dg/20000629-1.c: New test.
	* gcc.dg/20000724-1.c: New test.
	* gcc.dg/20000807-1.c: New test.

From-SVN: r35834
2000-08-21 10:30:38 +02:00
Jeff Law
461f200c26 Daily bump.
From-SVN: r35833
2000-08-21 01:45:08 -06:00
Jakub Jelinek
e6579d6bbc * lang-specs.h: Pass -I* options to f771.
From-SVN: r35832
2000-08-21 09:44:02 +02:00
Benjamin Kosnik
1efef5036a string-inst.cc: Tweak instantiations for new-gxx-abi.
2000-08-20  Benjamin Kosnik  <bkoz@gnu.org>

	* src/string-inst.cc: Tweak instantiations for new-gxx-abi.

From-SVN: r35831
2000-08-21 07:11:38 +00:00
Anthony Green
d832fd8147 Fixed typo in ChangeLog
From-SVN: r35830
2000-08-21 06:07:51 +00:00
Anthony Green
1a558147d1 natSystem.cc (init_properties): Change sourceware reference to sources.redhat.com.
Sun Aug 20 21:02:48 2000  Anthony Green  <green@redhat.com>

	* java/lang/natSystem.cc (init_properties): Change sourceware
	reference to sources.redhat.com.

	* include/java-props.h: Add _Jv_Jar_Class_Path.
	* prims.cc: Ditto.  Set it from	`gij -jar file' option.

	* java/lang/natSystem.cc (init_properties): Set java.class.path
	from
	{gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}

	* java/util/PropertyPermission.java: Import from GNU Classpath.
	* Makefile.in: Rebuilt.
	* Makefile.am: Add java/util/PropertyPermission.java.
	* java/lang/System.java: Add setProperty method.

	* gij.cc (main): Add -jar option to execute jar files.
	(help): Describe -jar option.
	* prims.cc (_Jv_RunMain): Add support for jar execution mode.
	* gnu/gcj/tools/Gij.java: New file.
	* include/jvm.h: Add is_jar argument to _Jv_RunMain.
	* gnu/gcj/runtime/FirstThread.java (main): New method.

	* java/util/jar/Attributes.java: Correct comment spelling.

From-SVN: r35829
2000-08-21 06:05:20 +00:00
Mark Mitchell
b485e15bf8 class.c (build_vtbl_initializer): Clear the entire vtbl_init_data.
* class.c (build_vtbl_initializer): Clear the entire
	vtbl_init_data.  Start keeping track of the functions for which we
	have created vcall offsets here.
	(dfs_build_vcall_offset_vtbl_entries): Remove.
	(build_vcall_offset_vtbl_entries): Reimplement.
	(add_vcall_offset_vtbl_entries_r): New function.
	(add_vcall_offset_vtbl_entries_1): Likewise.  Tweak logic for
	computing when vcall offsets are necessary.

From-SVN: r35828
2000-08-21 04:39:29 +00:00
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