Commit Graph

45835 Commits

Author SHA1 Message Date
Geoffrey Keating
b4d8dbcfa1 * objs-gcc.sh: On (non-linux) native hosts, use 'make bootstrap'.
From-SVN: r57993
2002-10-09 21:00:54 +00:00
Kaveh R. Ghazi
44a5565d43 loop.c: Revert 2002-08-15 change.
* loop.c: Revert 2002-08-15 change.
	(LOOP_REGNO_NREGS): Ensure type is int.

From-SVN: r57992
2002-10-09 20:58:12 +00:00
Kaveh R. Ghazi
c6449a1dbc * parse.y (merge_string_cste): Add parentheses around & within |.
From-SVN: r57991
2002-10-09 20:54:37 +00:00
David Edelsohn
a2419b9670 rs6000.md (extenddftf2): Change to define_insn which copies first FPR and clears second.
* config/rs6000/rs6000.md (extenddftf2): Change to define_insn
        which copies first FPR and clears second.
        (extendsftf2): Same.
        (floatditf2): Fix typo.
        (floatsitf2): Same.
        (fix_trunctfdi2): Same.
        (fix_trunctfsi2): Same.

From-SVN: r57990
2002-10-09 16:54:05 -04:00
Kaveh R. Ghazi
fb7e6024db conflict.c (arc_hash): Change return type to hashval_t.
* conflict.c (arc_hash): Change return type to hashval_t.
	* cselib.c (get_value_hash): Likewise.
	* genautomata.c (automaton_decl_hash, insn_decl_hash, decl_hash,
	state_hash, automata_list_hash): Likewise.
	* read-rtl.c (def_hash): Likewise.
	* tree.c (type_hash_hash): Likewise.

From-SVN: r57987
2002-10-09 17:26:27 +00:00
Aldy Hernandez
36f7e96410 rs6000.c (rs6000_ra_ever_killed): Call prologue_epilogue_contains instead of using REG_MAYBE_DEAD notes.
2002-10-08  Aldy Hernandez  <aldyh@redhat.com>

	* config/rs6000/rs6000.c (rs6000_ra_ever_killed): Call
	prologue_epilogue_contains instead of using REG_MAYBE_DEAD notes.

From-SVN: r57985
2002-10-09 15:54:55 +00:00
J"orn Rennecke
e3c6252002 * sh.md (ffssi2): Fix emitted code.
From-SVN: r57984
2002-10-09 16:07:19 +01:00
Paolo Carlini
0c479bf5ca 2002-10-09 Paolo Carlini <pcarlini@unitus.it>
Fix trivial typo in the last ChangeLog entry.

From-SVN: r57983
2002-10-09 11:59:59 +00:00
Ulrich Weigand
a3745024fa cse.c (insn_live_p): Pass insn pattern, not full insn to may_trap_p.
* cse.c (insn_live_p): Pass insn pattern, not full insn
	to may_trap_p.

From-SVN: r57982
2002-10-09 11:29:57 +00:00
Neil Booth
5cc6732359 cppmacro.c (paste_tokens): Only allow / to paste with =.
* cppmacro.c (paste_tokens): Only allow / to paste with =.
testsuite:
	* gcc.dg/cpp/paste13.c: New test.

From-SVN: r57978
2002-10-09 09:56:09 +00:00
GCC Administrator
6e0ac545dd Daily bump.
From-SVN: r57976
2002-10-09 07:17:31 +00:00
Jonathan Lennox
3279e88a45 PR libstdc++/8071, libstdc++/8127, c++/6745
2002-10-08  Jonathan Lennox  <lennox@cs.columbia.edu>

	PR libstdc++/8071, libstdc++/8127, c++/6745
	* streambuf.tcc (__copy_streambufs): Handle cases where
	__sbin->in_avail() returns 0, or where __sbin doesn't set gptr().
	* testsuite/27_io/ostream_inserter_other.cc (test05): Add.

From-SVN: r57970
2002-10-09 06:32:11 +00:00
David Edelsohn
f5264b52cf rs6000.md (movdf splitter): Use gen_int_mode on 64-bit hosts.
* config/rs6000/rs6000.md (movdf splitter): Use gen_int_mode on
        64-bit hosts.
        (movtf_internal): Reference correct displacement for second value
        in memory.
        (movtf splitter): Correct generation of constants in 64-bit mode.

From-SVN: r57969
2002-10-09 00:28:12 -04:00
Gabriel Dos Reis
8d15eebcb0 c-common.c (cb_register_builtins): Define __WCHAR_MAX__.
* c-common.c (cb_register_builtins): Define __WCHAR_MAX__.
	* doc/cpp.texi (Common Predefined Macros): Document.

From-SVN: r57966
2002-10-09 00:13:57 +00:00
Alan Modra
cef1c1bac1 * libgcc2.c (__floatdisf): Properly cure double rounding.
From-SVN: r57965
2002-10-09 09:20:56 +09:30
Paolo Carlini
aa53f832ac localefwd.h (class locale): Add static member _S_num_extra_categories...
2002-10-08  Paolo Carlini  <pcarlini@unitus.it>
	    Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/localefwd.h (class locale): Add static member
	_S_num_extra_categories, encoding the number of additional
	categories.
	Change _S_num_categories to _S_categories_size.
	(class locale::_Impl): Add _M_c_cats.
	(class locale::_Impl::_M_names): Change to array of chars.
	(class locale::_Impl::_M_check_same_name): Use
	_S_extra_categories_size, tweak.
	(locale::locale(const locale&, _Facet*)): Ditto.
    	* src/locale.cc (locale::locale(const char* )): Rewrite to deal
	with the environment in a POSIX-compliant way while being thread
	safe.
	(locale::name()): Update to output POSIX environment strings.
	* src/localename.cc
	(locale::_Impl::_Impl(const _Impl&, size_t): Use
	_S_categories_size_*, tweak.
	(locale::_Impl::_Impl(facet**, size_t, bool)): Ditto.
	(locale::_Impl::_Impl(const char*, size_t)): Name each category
	individually.
	(locale::_Impl::_M_replace_categories): Use strcpy.

	* include/bits/locale_facets.h (numpunct::_M_initialize_numpunct):
	Change default argument to NULL from _S_c_locale.
	(timepunct::_M_initialize_timepunct): Same.
	_S_c_locale cleanups.
	* src/codecvt.c: _S_c_locale simplification.
	* src/ctype.c: Same.
	* src/globals.cc: Add fake_name.
	* src/locale-inst.cc: Remove extra includes.
	* src/locale.cc: Remove extra includes.
	Add _S_extra_categories_size definition.
	Correct "C" initialization.
	(locale::facet::facet): Don't initialize _S_c_locale.
	(locale::facet::_M_remove_reference): Adjust.
	* src/localename: Use facet_vec, facet_name.
	(locale::_Impl::_Impl(facet** __f, size_t __refs, bool)): Set
	facet ref counts to one. Initialize _S_c_locale.
	(locale::_Impl::_M_install_facet(id*, facet*)): Adjust facet ref
	counts when installing unilaterally.

	* config/locale/generic/c_locale.cc: Add _S_categories definition.
	* config/locale/generic/c_locale.h: Add _GLIBCPP_NUM_CATEGORIES macro.
	* config/locale/generic/time_members.cc: _S_c_locale cleanup.

	* config/locale/gnu/c_locale.cc: Add _S_categories definition.
	(_S_destroy_c_locale): Move checks against _S_c_locale here.
	* config/locale/gnu/c_locale.h: Add _GLIBCPP_NUM_CATEGORIES macro.
	* config/locale/gnu/ctype_members.cc: Simplify _S_destroy_c_locale
	calls, _S_c_locale usage.
	* config/locale/gnu/monetary_members.cc: Same, tweaks.
	* config/locale/gnu/monetary_members.cc: Same.
	* config/locale/gnu/time_members.cc: Same.
	* config/os/gnu-linux/ctype_noninline.h: Use locale::classic().

	* docs/html/22_locale/locale.html: Add bits about global locales
	and "C" setlocale.

	* testsuite/22_locale/facet.cc (test02): Add.
	* testsuite/22_locale/static_members.cc (test02): Add.
	* testsuite/22_locale/ctor_copy_dtor.cc (test04): Add.

Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com>

From-SVN: r57964
2002-10-08 23:32:23 +00:00
Kaveh R. Ghazi
131d2c168d 20020720-1.x: Take out sparc XFAILs.
* gcc.c-torture/execute/20020720-1.x: Take out sparc XFAILs.  For
        remaining platforms, XFAIL during compile, not execute.  Don't
        XFAIL at -O0.

From-SVN: r57963
2002-10-08 23:21:40 +00:00
Mark Mitchell
edebf865cf re PR c++/7754 (ICE SIGSEGV on union with template parameter)
PR c++/7754
	* decl2.c (finish_anon_union): Do not expand anonymous unions when
	procesing template functions.
	* pt.c (tsubst_decl, case VAR_DECL): Try to complete the variable
	type. Call layout_decl.
	(tsubst_expr, case DECL_STMT): Handle anonymous unions.

From-SVN: r57961
2002-10-08 22:52:14 +00:00
Gabriel Dos Reis
87ec8de9e7 re PR c++/7484 (warning with -Wmissing-declarations)
PR doc/7484
	* doc/invoke.texi (Option Summary): List
	-Wmissing-declarations as a C only option.

From-SVN: r57958
2002-10-08 22:24:14 +00:00
Jakub Jelinek
fb7d9c35db t-linux64 (MULTILIB_OPTIONS): Remove mno-app-regs|mcmodel=medany.
2002-10-08  Jakub Jelinek  <jakub@redhat.com>

	* config/sparc/t-linux64 (MULTILIB_OPTIONS): Remove
	mno-app-regs|mcmodel=medany.
	(MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES): Remove alt.
	(MULTILIB_EXCEPTIONS, MULTILIB_EXCLUSIONS, MULTILIB_MATCHES): Remove.
	(CRTSTUFF_T_CFLAGS): Define.

From-SVN: r57956
2002-10-08 14:59:45 -07:00
Roger Sayle
11f3e4c7ca re PR target/8087 (sparc-sun-solaris2.7 C testsuite failures in execute/20020720-1.c w/-m64 or on sparcv9/sparc64)
PR target/8087
	* simplify-rtx.c (avoid_constant_pool_reference):  Allow constant
	pool references that are constructed using LO_SUM.

From-SVN: r57942
2002-10-08 20:49:02 +00:00
Zack Weinberg
a976603e86 system.h (GCCBUGURL): Delete.
* system.h (GCCBUGURL): Delete.
	* version.c (bug_report_url): New.  Add commentary about
	modifying both these strings in modified distributions.
	* version.h: Declare bug_report_url.

	* diagnostic.c, gcc.c, gcov.c, java/gjavah.c, java/jcf-dump.c,
	java/jv-scan.c: Globally replace GCCBUGURL with bug_report_url.

From-SVN: r57940
2002-10-08 19:45:17 +00:00
Nathan Sidwell
bf52f89914 c-opts.c (c_common_decode_option): Add warn_strict_aliasing to -Wall.
gcc:
	* c-opts.c (c_common_decode_option): Add warn_strict_aliasing to
	-Wall.
	* c-typeck.c (build_c_cast): Use warn_strict_aliasing, tweak
	message.
	* flags.h (warn_strict_aliasing): Declare.
	* toplev.c (warn_strict_aliasing): Define.
	(lang_independent_options): Add it.
	* doc/invoke.texi (-Wstrict-aliasing): Document it.
testsuite:
	* gcc.dg/alias-1.c: Tweak expected warning.

From-SVN: r57938
2002-10-08 19:20:18 +00:00
Ulrich Weigand
b7932de6a1 interpret.cc (_Jv_InterpMethod::run): Use UINT32 instead of unsigned long temporary to implement insn_iushr shifts.
* interpret.cc (_Jv_InterpMethod::run): Use UINT32 instead of
	unsigned long temporary to implement insn_iushr shifts.

From-SVN: r57936
2002-10-08 18:12:42 +00:00
Tom Tromey
8f6d2e96a0 re PR java/8003 (gcj segfaults on simple java line of code)
* parse.y (variable_declarator_id): Simplify error path for
	array declarator error.  For PR java/8003.

From-SVN: r57934
2002-10-08 18:05:54 +00:00
Zack Weinberg
36624850a4 system.h (GCCBUGURL): Delete.
* system.h (GCCBUGURL): Delete.
	* version.c (bug_report_url): New.  Add commentary about
	modifying both these strings in modified distributions.
	* version.h: Declare bug_report_url.

	* diagnostic.c, gcc.c, gcov.c, java/gjavah.c, java/jcf-dump.c,
	java/jv-scan.c: Globally replace GCCBUGURL with bug_report_url.

From-SVN: r57932
2002-10-08 17:27:39 +00:00
Nick Clifton
218145d684 (__ev_set_acc_u64): Use __ev_create_u64 to convert uint64_t into __ev64_opaque__.
(__ev_set_acc_s64): Likewise, but using signed types.

From-SVN: r57930
2002-10-08 16:20:05 +00:00
Ulrich Weigand
bb02f6edd8 s390.md ("*doloop_si_long"): Add missing operand.
* config/s390/s390.md ("*doloop_si_long"): Add missing operand.
	("*doloop_di_long"): Likewise.

From-SVN: r57929
2002-10-08 16:13:24 +00:00
Andrew Haley
ce5bb29309 parse.y (attach_init_test_initialization_flags): Check for error_mark_node.
2002-10-08  Andrew Haley  <aph@redhat.com>

	* parse.y (attach_init_test_initialization_flags): Check for
	error_mark_node.

From-SVN: r57928
2002-10-08 15:02:30 +00:00
Ulrich Weigand
5404cddbc8 configure.host [s390*-*]: Enable Java interpreter.
* configure.host [s390*-*]: Enable Java interpreter.
	Enable hash synchronization.  Add sysdeps dir.
	* sysdep/s390/locks.h: New file.

From-SVN: r57927
2002-10-08 14:57:37 +00:00
Ulrich Weigand
8177895b71 java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret raw data as _Jv_word values, not ffi_raw.
* src/java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret
	raw data as _Jv_word values, not ffi_raw.
	(ffi_java_ptrarray_to_raw): Likewise.
	(ffi_java_rvalue_to_raw): New function.
	(ffi_java_raw_call): Call it.
	(ffi_java_raw_to_rvalue): New function.
	(ffi_java_translate_args): Call it.
	* src/ffitest.c (closure_test_fn): Interpret return value
	as ffi_arg, not int.
	* src/s390/ffi.c (ffi_prep_cif_machdep): Add missing
	FFI_TYPE_POINTER case.
	(ffi_closure_helper_SYSV): Likewise.  Also, assume return
	values extended to word size.

From-SVN: r57926
2002-10-08 14:55:03 +00:00
Jan Hubicka
4fdbcfb2c4 Tue Oct 8 16:50:10 CEST 2002 Jan Hubicka <jh@suse.cz>
* print-rtl.c (print_rtx): Increase buffer size for real numbers.

From-SVN: r57925
2002-10-08 14:50:58 +00:00
Richard Sandiford
e80f260966 * config/mips/mips.md (define_attr cpu): Add r4111.
From-SVN: r57924
2002-10-08 14:01:39 +00:00
Anthony Green
4213a3b69e Fix bitmap bug.
From-SVN: r57919
2002-10-08 07:19:34 +00:00
GCC Administrator
39c9ceac7e Daily bump.
From-SVN: r57918
2002-10-08 07:17:07 +00:00
Anthony Green
6a921942a1 Fix string concatenation bug.
From-SVN: r57912
2002-10-08 07:10:49 +00:00
Michael Hayes
25009e0237 c4x.c (c4x_print_operand): Enlarge buffer for REAL_VALUE_TO_DECIMAL output.
* config/c4x/c4x.c (c4x_print_operand): Enlarge buffer
	for REAL_VALUE_TO_DECIMAL output.

From-SVN: r57908
2002-10-07 22:20:10 +00:00
Svein E. Seldal
a5a438f572 * configure.in: Add tic4x target.
From-SVN: r57907
2002-10-07 17:07:06 -04:00
Mark Wielaard
8086481ce6 Thread.java (setDaemon): Check startable_flag, not isAlive().
* java/lang/Thread.java (setDaemon): Check startable_flag,
	not isAlive().

From-SVN: r57906
2002-10-07 21:02:38 +00:00
David Edelsohn
fcce224d2a rs6000.c (rs6000_override_options): Set real_format_for_mode for IBM extended format, if enabled.
* config/rs6000/rs6000.c (rs6000_override_options): Set
        real_format_for_mode for IBM extended format, if enabled.
        (easy_fp_constant): Add TFmode.
        (rs6000_legitimize_address): Add TFmode.
        (rs6000_legitimate_address): Same.
        (function_arg_advance): TFmode uses two FPRs.
        (rs6000_emit_prologue): Fix warning.
        (rs6000_output_function_epilogue): Add TFmode.
        (output_toc): Add TFmode.
        * rs6000.h (SLOW_UNALIGNED_ACCESS): Add TFmode.
        (LEGITIMATE_OFFSET_ADDRESS_P): Add TFmode.
        * rs6000.md (movtf splitter): Load TFmode constant.

From-SVN: r57904
2002-10-07 15:12:04 -04:00
Jonathan Wakely
ba43f4ebc4 configopts.html, [...]: Add DOCTYPEs.
2002-10-07  Jonathan Wakely  <jw@kayari.org>

	* docs/html/configopts.html, docs/html/documentation.html,
	docs/html/explanations.html, docs/html/install.html,
	docs/html/17_intro/contribute.html, docs/html/17_intro/howto.html,
	docs/html/17_intro/license.html, docs/html/18_support/howto.html,
	docs/html/19_diagnostics/howto.html, docs/html/20_util/howto.html,
	docs/html/21_strings/howto.html, docs/html/22_locale/codecvt.html,
	docs/html/22_locale/ctype.html, docs/html/22_locale/howto.html,
	docs/html/22_locale/locale.html, docs/html/22_locale/messages.html,
	docs/html/23_containers/howto.html, docs/html/24_iterators/howto.html,
	docs/html/25_algorithms/howto.html, docs/html/26_numerics/howto.html,
	docs/html/27_io/howto.html, docs/html/ext/howto.html,
	docs/html/ext/sgiexts.html, docs/html/faq/index.html:  Add DOCTYPEs.

From-SVN: r57903
2002-10-07 18:11:23 +00:00
Dale Johannesen
dad482e6ee Permit doloop treatment for preconditioned loops.
From-SVN: r57902
2002-10-07 17:55:46 +00:00
Michael Koch
0c59cbfaf6 Buffer.java: New stub file.
2002-10-07  Michael Koch  <konqueror@gmx.de>

	* java/nio/Buffer.java: New stub file.
	* java/nio/charset/spi/CharsetProvider.java: Commented out all usages
	of class Charset.
	* Makefile.am (java_native_source_files): Added java/nio/Buffer.java.
	* Makefile.in: Regenerated.

From-SVN: r57901
2002-10-07 13:56:38 +00:00
Michael Koch
0f31d44168 ByteBuffer.java: removed import of not commited class.
2002-10-07  Michael Koch  <konqueror@gmx.de>

	* java/nio/ByteBuffer.java:
	removed import of not commited class.

From-SVN: r57900
2002-10-07 13:39:22 +00:00
Michael Koch
7f73f46f93 ByteBuffer.java, [...]: New files, forgot to add these dummies.
2002-10-07  Michael Koch  <konqueror@gmx.de>

	* java/nio/ByteBuffer.java,
	java/nio/MappedByteBuffer.java:
	New files, forgot to add these dummies.
	* Makefile.am (java_native_source_files): Added new files.
	* Makefile.in: Regenerated.

From-SVN: r57899
2002-10-07 13:12:42 +00:00
Richard Henderson
de3beb7c7d i960.c (i960_setup_incoming_varargs): Create a new rtx for comparing the argument pointer against zero.
* config/i960/i960.c (i960_setup_incoming_varargs): Create a
        new rtx for comparing the argument pointer against zero.
        (i960_va_start): Similarly.

From-SVN: r57897
2002-10-07 03:22:49 -07:00
Richard Henderson
01f4137fea * decl2.c, pt.c: Revert c++/7754 fix.
From-SVN: r57895
2002-10-07 02:49:18 -07:00
Richard Henderson
e0fbf84951 Fix entry formatting.
From-SVN: r57894
2002-10-07 02:47:23 -07:00
Richard Henderson
87cb2a87f8 i960.md (*): Use TFmode, not XFmode.
* config/i960/i960.md (*): Use TFmode, not XFmode.
        * config/i960/i960.c (*): Likewise.
        (i960_arg_size_and_align): Remove XFmode alignment hack.
        (i960_round_align): Merge code from ROUND_TYPE_ALIGN.
        * config/i960/i960.h (LONG_DOUBLE_TYPE_SIZE): Use 128, not 96.
        (MAX_LONG_DOUBLE_TYPE_SIZE): Likewise.
        (DATA_ALIGNMENT, ROUND_TYPE_SIZE): Remove.

From-SVN: r57889
2002-10-07 01:54:09 -07:00
Richard Henderson
5ef38d2ac1 fp-bit.c (EXTENDED_FLOAT_STUBS): Flush out all XF/TFmode entry points; use void return value and argument list.
* config/fp-bit.c (EXTENDED_FLOAT_STUBS): Flush out all XF/TFmode
        entry points; use void return value and argument list.

From-SVN: r57887
2002-10-07 01:47:09 -07:00