Commit Graph

29982 Commits

Author SHA1 Message Date
Benjamin Kosnik
6f322d2778 codecvt.h: Implement codecvt<wchar_t, char, mbstate_t>.
2000-08-21  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* bits/codecvt.h: Implement codecvt<wchar_t, char, mbstate_t>. Fix
	up __enc_traits template so as to be marginally useful.
	* src/codecvt.cc: And here.
	* bits/char_traits: Tweak.
	* bits/locale_facets.h: Tweak.
	* bits/locale_facets.tcc: Tweak.
	* bits/localefwd.h: Tweak.
	* src/locale-inst.cc: Add use_facet/has_facet instantiations here.
	* testsuite/22_locale/codecvt_wchar_t_cc.cc: New file.
	* testsuite/22_locale/codecvt_char_char.cc: New file.
	* testsuite/22_locale/codecvt_unicode_char.cc: New file.

From-SVN: r35871
2000-08-22 08:19:00 +00:00
Benjamin Kosnik
a5834d1b79 codecvt.h: Implement codecvt<wchar_t, char, mbstate_t>.
2000-08-21  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* bits/codecvt.h: Implement codecvt<wchar_t, char, mbstate_t>. Fix
	up __enc_traits template so as to be marginally useful.
	* src/codecvt.cc: And here.
	* bits/char_traits: Tweak.
	* bits/locale_facets.h: Tweak.
	* bits/locale_facets.tcc: Tweak.
	* bits/localefwd.h: Tweak.
	* src/locale-inst.cc: Add use_facet/has_facet instantiations here.
	* testsuite/22_locale/codecvt_wchar_t_cc.cc: New file.
	* testsuite/22_locale/codecvt_char_char.cc: New file.
	* testsuite/22_locale/codecvt_unicode_char.cc: New file.

From-SVN: r35870
2000-08-22 08:18:10 +00:00
Alexandre Oliva
199acebbef (TYPE_RETURNS_STACK_DEPRESSED): Insert blank between
`FUNCTION_TYPE_CHECK' and `(NODE)'.

From-SVN: r35869
2000-08-22 08:04:21 +00:00
Jeff Law
3b67968071 Daily bump.
From-SVN: r35868
2000-08-22 01:45:08 -06:00
Jeffrey A Law
7db9125f9d * protoize.c (munge_compile_params): Fix typo and formatting buglets.
From-SVN: r35867
2000-08-22 01:44:51 -06:00
Gabriel Dos Reis
b413d64ded diagnostic.h (report_problematic_module): Declare.
2000-08-22  Gabriel Dos Reis  <gdr@codesourcery.com>

	* diagnostic.h (report_problematic_module): Declare.
	* diagnostic.c (report_problematic_module): New function.
	(report_error_function): Tweak.

From-SVN: r35866
2000-08-22 06:54:54 +00:00
Richard Kenner
c4a6c0f353 stmt.c (expand_goto_internal, [...]): Only check TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
* stmt.c (expand_goto_internal, fixup_gotos): Only check
	TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.

From-SVN: r35865
2000-08-22 02:24:13 -04:00
Alexandre Oliva
5b0e9d296c config-ml.in (CC, CXX): Avoid trailing whitespace.
* config-ml.in (CC, CXX): Avoid trailing whitespace.
(LD_LIBRARY_PATH, SHLIB_PATH): Adjust for multilibs and export to
sub-configures.

From-SVN: r35864
2000-08-22 05:02:48 +00:00
Mark Wielaard
9adfd95980 Makefile.in: Rebuilt.
2000-08-21  Mark Wielaard  <mark@klomp.org>

	* Makefile.in: Rebuilt.
	* Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
	a `friend class'.
	(java/lang/reflect/Field.h): Likewise.
	(java/lang/reflect/Method.h): Likewise.
	(gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
	`friend class'.

From-SVN: r35863
2000-08-22 04:46:51 +00:00
Richard Henderson
770a7febda flow.c (calculate_global_regs_live): Mark frame pointer live everywhere before reload.
* flow.c (calculate_global_regs_live): Mark frame pointer live
        everywhere before reload.

From-SVN: r35862
2000-08-21 17:44:09 -07:00
Jim Wilson
280db20577 Fix x86-x-ia64 cross compiler build failure.
* real.c (ereal_from_int, ereal_from_uint, significand_size): Handle
	INTEL_EXTENDED_IEEE_FORMAT.
	(toe64): Delete INTEL_EXTENDED_IEEE_FORMAT support.  Unconditionally
	clear last two bytes of output FP value.

From-SVN: r35861
2000-08-21 17:36:44 -07:00
Graham Stott
94c21c1737 Fix typos spotted by Graham Stott.
* config/ia64/ia64.h (REDO_SECTION_INFO_P): Change decl to DECL.

From-SVN: r35860
2000-08-21 17:04:00 -07:00
Tom Tromey
6c531b0556 ResourceBundle.java (trySomeGetBundle): Removed debugging prints.
* java/util/ResourceBundle.java (trySomeGetBundle): Removed
	debugging prints.

From-SVN: r35859
2000-08-21 21:25:55 +00:00
Jakub Jelinek
6315f06806 unroll.c (loop_find_equiv_value): If ret is modified between insn and loop_start, ret might not be equivalent to reg.
* unroll.c (loop_find_equiv_value): If ret is modified between
	insn and loop_start, ret might not be equivalent to reg.

	* gcc.c-torture/execute/20000819-1.x: Remove.

From-SVN: r35857
2000-08-21 21:58:35 +02:00
Joseph Myers
5804a754e5 c-common.c (init_dollar_format_checking, [...]): New functions.
* c-common.c (init_dollar_format_checking,
	maybe_read_dollar_number, finish_dollar_format_checking): New
	functions.
	(dollar_arguments_used, dollar_arguments_count,
	dollar_first_arg_num, dollar_max_arg_used, dollar_format_warned):
	New variables.
	(check_format_info): Support $ formats for scanf and printf width
	and precision.  Always increment format_chars to advance past the
	'*' of precision, not just when the format parameters are
	available to check.

testsuite:
	* gcc.dg/c90-printf-3.c, gcc.dg/c90-scanf-2.c,
	gcc.dg/c90-scanf-3.c, gcc.dg/c90-scanf-4.c,
	gcc.dg/c90-strftime-1.c, gcc.dg/c99-printf-3.c,
	gcc.dg/c99-scanf-1.c, gcc.dg/c99-scanf-2.c, gcc.dg/c99-scanf-3.c,
	gcc.dg/format-xopen-1.c: New tests.

From-SVN: r35856
2000-08-21 20:38:35 +01:00
Kaveh R. Ghazi
95adab8e11 Warning fixes:
* mips.c (block_move_loop, expand_block_move,
	function_arg_partial_nregs, save_restore_insns, function_prologue,
	mips_expand_prologue, RA_MASK): Avoid using the `U' integer
	constant suffix.
	(function_arg_advance, function_arg): Match argument to format
	specifier `%p'.

From-SVN: r35855
2000-08-21 19:21:28 +00:00
Nix
cc0dd8af22 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.  Use %j instead of /dev/null.

From-SVN: r35854
2000-08-21 12:12:36 -06:00
Nix
05a3d06e01 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: r35853
2000-08-21 12:12:24 -06:00
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