Commit Graph

30520 Commits

Author SHA1 Message Date
Bernd Schmidt
188c5e6ca8 Don't make bogus libcall blocks
From-SVN: r36435
2000-09-15 16:21:53 +00:00
Bernd Schmidt
642dfa8b65 Make libcall blocks for truncations
From-SVN: r36434
2000-09-15 16:16:33 +00:00
Bernd Schmidt
aff2c2d3af Avoid copying libcall results directly to user variables.
From-SVN: r36433
2000-09-15 15:35:03 +00:00
Michael Sokolov
4eaa189a5c * splay-tree.c: #include <stdio.h>.
From-SVN: r36432
2000-09-15 11:16:14 -04:00
Richard Henderson
308ecea098 expmed.c (store_bit_field): Consider naturally aligned memory for direct reference.
* expmed.c (store_bit_field): Consider naturally aligned
        memory for direct reference.

From-SVN: r36431
2000-09-15 04:13:04 -07:00
Richard Henderson
e01acbb16e alpha.c (alpha_expand_unaligned_load): Force all AND addresses into alias set 0.
* config/alpha/alpha.c (alpha_expand_unaligned_load): Force all
        AND addresses into alias set 0.
        (alpha_expand_unaligned_store): Likewise.
        (alpha_expand_unaligned_load_words): Likewise.
        (alpha_expand_unaligned_store_words): Likewise.

From-SVN: r36430
2000-09-15 04:09:07 -07:00
Bernd Schmidt
dd193c7921 Set rsize properly for args passed by reference.
From-SVN: r36429
2000-09-15 09:24:47 +00:00
Bernd Schmidt
c363a0c03b Make sure movstr_i4 libfuncs are compiled for -m4-nofpu
From-SVN: r36428
2000-09-15 09:02:15 +00:00
Jeff Law
ef8c4649e6 Daily bump.
From-SVN: r36427
2000-09-15 01:45:08 -06:00
Benjamin Kosnik
e4cc865929 locale.cc (locale::name()): Implement.
2000-09-14  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* src/locale.cc (locale::name()): Implement.
	(_Impl(size_t __numfacets, size_t __refs, bool __namep = false,
	string __name = "*")): Change signature.
	(locale::classic): Initialize the "C" locale as a named locale.
	* bits/localefwd.h (locale): Change _M_num_references to
	_M_references. Eliminate _M_cached_name_ok. Rename _M_cached_name
	to _M_name.
	* bits/localefwd.h: Tweaks.
	* src/localename.cc: Tweaks.
	* testsuite/22_locale/ctor_copy_dtor.cc (test01): Add tests.
	(test01): Fix.

	* bits/basic_string.h: Consistency check, change _M_state ->
	_M_references.

From-SVN: r36426
2000-09-15 07:06:46 +00:00
Neil Booth
ff94c74765 cpplex.c (ON_REST_ARG): Correct the test.
* cpplex.c (ON_REST_ARG): Correct the test.
	(maybe_paste_with_next): Duplicate a token that fail pasting,
	and clear its PASTE_LEFT flag, so that nested pasting attempts
	do not occur.
	* gcc.dg/cpp/paste10.c: Testcase.

From-SVN: r36424
2000-09-15 05:55:36 +00:00
Richard Henderson
b437f1a754 calls.c (precompute_register_parameters): Use COSTS_N_INSNS, not 2.
* calls.c (precompute_register_parameters): Use COSTS_N_INSNS, not 2.
        * cse.c (rtx_cost): Likewise.
        * optabls.c (expand_binop): Likewise.
        (expand_twoval_binop, prepare_cmp_insn): Likewise.
        * regclass.c (copy_cost): Likewise.
        * reload1.c (reload_cse_move2add): Likewise.

From-SVN: r36423
2000-09-14 19:56:02 -07:00
Joseph Myers
d9dbd9b14c c-parse.in (reswords): Add _Complex.
* c-parse.in (reswords): Add _Complex.

cp:
	* lex.c (reswords): Add _Complex.

From-SVN: r36422
2000-09-15 00:44:47 +01:00
J. David Anglin
9207d3b1d7 * gcc.1: Delete documentation for -undef preprocessor option.
From-SVN: r36421
2000-09-14 17:04:51 -06:00
Jeffrey A Law
cf160a6309 * gcc.c-torture/execute/20000914-1.c: New test.
From-SVN: r36420
2000-09-14 16:48:20 -06:00
Neil Booth
ec1fb90e95 * paste9.c: New preprocessor ## test.
From-SVN: r36419
2000-09-14 21:13:10 +00:00
Alexandre Oliva
395a451c8c sh.h (INIT_SECTION_ASM_OP, [...]): Remove define.
* config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
STARTFILE_SPEC, ENDFILE_SPEC): Remove define.
* config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
Remove undefine before config/elfos.h.
* config/sh/t-sh (EXTRA_MULTILIB_PARTS): Comment out.

From-SVN: r36418
2000-09-14 20:31:01 +00:00
Benjamin Kosnik
b75bedeb2a string.tcc (_Rep::_S_max_size): Use typename for its size_type return type.
2000-09-14  Brendan Kehoe  <brendan@zen.org>

        * bits/string.tcc (_Rep::_S_max_size): Use typename for its size_type
        return type.

        * src/Makefile.an (headers): Also install backward/fstream.h.
        * src/Makefile.in: Regenerate.

        * bits/char_traits.h (char_traits<_CharT>::get_state,
        char_traits<char>::get_state, char_traits<wchar_t>::get_state): Pass
        argument in by reference, not by value. Uglify to _S_get_state.
	(char_traits<*>::__eos): Uglify to _S_eos.
	* bits/std_ostream.h (ends(basic_ostream<_CharT, _Traits>& __os)):
	Change __eos to _S_eos.

From-SVN: r36417
2000-09-14 19:44:03 +00:00
Alexandre Oliva
3c71084a53 Makefile.am: Re-work shell commands that exceeded command-line length limits.
* Makefile.am: Re-work shell commands that exceeded command-line
length limits.
* Makefile.in: Rebuilt.

From-SVN: r36416
2000-09-14 19:24:08 +00:00
Benjamin Kosnik
8a17a7b460 static_members.cc: New file.
2000-09-13  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/22_locale/static_members.cc: New file.
	* testsuite/22_locale/ctor_copy_dtor.cc: New file.
	* src/locale.cc: Minor formatting tweaks.

From-SVN: r36415
2000-09-14 19:11:14 +00:00
Kazu Hirata
17f0f8fac7 invoke.texi (H8/300 Options): Add -ms2600.
* invoke.texi (H8/300 Options): Add -ms2600.
        * config/h8300.c (h8300_init_once): Output an error when -ms2600
        is used without -ms.
        * config/h8300.h (TARGET_MAC): New.
        (TARGET_SWITCHES): Add -ms2600 and -mno-s2600.
        (CONDITIONA_REGISTER_USAGE): Disable the mac register on any
        machine other than H8/S2600.
        * config/h8300.md: Accept mac instructions on the H8/S2600 instead
        of the H8/S2000.

From-SVN: r36414
2000-09-14 12:09:16 -06:00
Alexandre Oliva
9e8f528cd4 reload.c (find_reloads_address_1): Generate reloads for auto_inc pseudos that refer to the original pseudos...
* reload.c (find_reloads_address_1): Generate reloads for auto_inc
pseudos that refer to the original pseudos, not only to their
equivalent memory locations.

From-SVN: r36413
2000-09-14 17:42:48 +00:00
Richard Kenner
fe7a844510 expr.c (expand_expr, [...]): Copy memory attributes when making new MEM.
* expr.c (expand_expr, case COMPONENT_EXPR): Copy memory attributes
	when making new MEM.

From-SVN: r36412
2000-09-14 12:53:07 -04:00
Richard Kenner
9985f21020 Makefile.in (LN): Remove duplicate definition.
* Makefile.in (LN): Remove duplicate definition.
	* cp/Make-lang.in (cplib2.txt): Depend on cp/Makefile.

From-SVN: r36411
2000-09-14 12:49:11 -04:00
Jeff Law
b2ee8ec265 reload.c (debug_reload_to_stream): Send all output to the requested stream or stderr if...
* reload.c (debug_reload_to_stream): Send all output to the
        requested stream or stderr if no stream was explicitly requested.

From-SVN: r36410
2000-09-14 10:46:10 -06:00
Bernd Schmidt
2f93c5c355 Generate REG_EQUAL notes when they'd be helpful
From-SVN: r36409
2000-09-14 16:45:42 +00:00
Alexandre Oliva
cad396c8b0 Looks like Tom forgot to check this in...
From-SVN: r36406
2000-09-14 08:01:12 +00:00
Alexandre Oliva
064a791cf5 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
From-SVN: r36405
2000-09-14 07:56:28 +00:00
Alexandre Oliva
e7e18a21d2 defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
* defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
* java/lang/natDouble.cc: Likewise.
* java/lang/reflect/natMethod.cc: Likewise.
* interpret.cc: Likewise.  Fix NULLCHECKs that tested a _Jv_word.

From-SVN: r36404
2000-09-14 07:51:56 +00:00
Jeff Law
597c1b349f Daily bump.
From-SVN: r36402
2000-09-14 01:45:08 -06:00
John Wehle
b24ea07766 alias.c (memrefs_conflict_p): An ADDRESSOF doesn't conflict with frame_pointer_rtx.
* alias.c (memrefs_conflict_p): An ADDRESSOF doesn't
	conflict with frame_pointer_rtx.

From-SVN: r36401
2000-09-14 04:47:48 +00:00
Kazu Hirata
fd5d5b07b7 loop.c: Fix formatting.
* loop.c: Fix formatting.
        * loop.h: Likewise.

From-SVN: r36400
2000-09-13 19:20:34 -06:00
J. David Anglin
f903ebb1d5 * init.c (begin_init_stmts): Don't use // comments.
From-SVN: r36399
2000-09-13 19:03:24 -06:00
Hans-Peter Nilsson
2979107801 demangle-expected: Add two tests for anonymous namespaces.
* testsuite/demangle-expected: Add two tests for anonymous
	namespaces.
	* cplus-dem.c (gnu_special): Handle anonymous namespaces.

From-SVN: r36398
2000-09-13 23:09:30 +00:00
Alexandre Oliva
9a16ff9362 * g++.other/inline13.C: New test.
From-SVN: r36397
2000-09-13 22:53:08 +00:00
Richard Henderson
26102535d4 ia64.md (divsf3): New.
* config/ia64/ia64.md (divsf3): New.
        (divsf3_internal_lat, divsf3_internal_thr): New.
        (divdf3, divdf3_internal_lat, divdf3_internal_thr): New.
        (divtf3, divtf3_internal_lat, divtf3_internal_thr): New.
        (adddf3_trunc, subdf3_trunc, muldf3_trunc): New.
        (madddf4_trunc, msubdf4_trunc, nmuldf3_trunc): New.
        (nmadddf4_alts, nmadddf4_trunc): New.
        (addtf3_truncsf, addtf3_truncdf, subtf3_truncsf): New.
        (subtf3_truncdf, multf3_truncsf, multf3_truncdf): New.
        (multf3_truncsf_alts, multf3_truncdf_alts): New.
        (maddtf4_truncsf, maddtf4_truncdf, maddtf4_alts_truncdf): New.
        (msubtf4_truncsf, msubtf4_truncdf, nmultf3_truncsf): New.
        (nmultf3_truncdf, nmaddtf4_truncsf, nmaddtf4_truncdf): New.
        (nmaddtf4_truncdf_alts): New.
        (recip_approx): Don't predicate.

From-SVN: r36396
2000-09-13 14:30:55 -07:00
Richard Henderson
938566fbe5 * config/ia64/lib1funcs.asm (__divsf3): Protect fnorm.s with p6.
From-SVN: r36395
2000-09-13 14:21:33 -07:00
Stephane Carrez
c349e40b5b flags.h (flag_dump_rtl_in_asm): Declare.
* flags.h (flag_dump_rtl_in_asm): Declare.
	* toplev.c (flag_dump_rtl_in_asm): Define.
	(decode_d_option): Set flag_dump_rtl_in_asm and flag_print_asm_name
	if -dP is specified.
	* rtl.h (print_rtx_head): Declare.
	* print-rtl.c (print_rtx_head): Define.
	(print_rtx): Print the string pointed to by print_rtx_head
	at beginning of each dump line.
	(print_rtl): Likewise.
	(print_rtl_single): Likewise.
	* final.c (final_scan_insn): Dump the insn in the assembly
	file for debugging.
	* gcc.1: Document -dP option.
	* invoke.texi (Debugging Options): Likewise.

From-SVN: r36394
2000-09-13 21:34:05 +02:00
Stephane Carrez
2856c3e3f5 Document 68hc11 & 68hc12 port
From-SVN: r36393
2000-09-13 21:23:35 +02:00
Alexandre Oliva
58d2986d00 configure.in (LIBDATASTARTSPEC): Use `%s' to search for libgcjdata.a.
2000-09-13  Alexandre Oliva  <aoliva@redhat.com>

	* configure.in (LIBDATASTARTSPEC): Use `%s' to search for
	libgcjdata.a.
	(GCJ): Support single-tree builds.  Add -B`pwd`/ and -I$srcdir.
	* acinclude.m4: Arrange for automake to not bring in a new
	libtool.m4 for LT_AC_PROG_GCJ.  AC_SUBST GCJ.
	* Makefile.am: Leave it up to automake to subst GCJ.
	* aclocal.m4, configure, Makefile.in: Rebuilt.

From-SVN: r36392
2000-09-13 19:01:20 +00:00
Tom Tromey
96fa18eb49 natArray.cc (BooleanClass): New define.
* java/lang/reflect/natArray.cc (BooleanClass): New define.
	(get): Ensure Boolean class is initialized.
	* java/lang/reflect/natField.cc (BooleanClass): New define.
	(get): Ensure Boolean class is initialized.

From-SVN: r36391
2000-09-13 18:15:42 +00:00
Denis Chertykov
1ca04dc8b6 avr.h (ASSEMBLER_DIALECT): New macro declared.
* config/avr/avr.h (ASSEMBLER_DIALECT): New macro declared.
	* config/avr/avr.md (*movstrqi_insn): Cleanup output template.
	(*clrstrqi): Likewise.
	(xorhi3,xorsi3,absqi2): Likewise.
	(one_cmplhi2,one_cmplsi2): Likewise.
	(addsi3): Two stupid constraint alternatives removed.
	(extendhisi2): Use `movw' for enhanced avr cores.
	(zero_extendhisi2): Likewise.

From-SVN: r36390
2000-09-13 22:13:49 +04:00
Jeffrey A Law
18a53ffedb configure.in: Do not build byacc for hppa64.
* configure.in: Do not build byacc for hppa64.  Provide paths to the
        X11 libraries for hppa64.

From-SVN: r36389
2000-09-13 11:11:04 -06:00
Tom Tromey
6b8a24cd22 jcf-parse.c: Include <locale.h>.
* jcf-parse.c: Include <locale.h>.
	* jv-scan.c: Include <locale.h>.

From-SVN: r36388
2000-09-13 17:09:36 +00:00
Jeff Law
61023b2bbe Daily bump.
From-SVN: r36387
2000-09-13 01:45:08 -06:00
Gerald Pfeifer
2fd729a25c * POTFILES.in: Remove objc/objc-parse.c.
From-SVN: r36386
2000-09-13 07:09:48 +00:00
Bryce McKinlay
0f94c029e9 String.java (CASE_INSENSITIVE_ORDER): New static field.
2000-09-13  Bryce McKinlay  <bryce@albatross.co.nz>

	* java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
	Initialize with anonymous class.
	(compareToIgnoreCase): New method.

	* java/lang/ThreadGroup.java (had_uncaught_exception): New field.
	(uncaughtException): Set had_uncaught_exception.
	* prims.cc (JvRunMain): Check value of had_uncaught_exception and
	exit with error status if set.
	(_Jv_RunMain): Ditto.

From-SVN: r36385
2000-09-13 07:36:25 +01:00
John Wehle
bb07060a6a alias.c (find_base_term): Use frame_pointer_rtx when handling an ADDRESSOF.
* alias.c (find_base_term): Use frame_pointer_rtx
	when handling an ADDRESSOF.

	* cse.c (canon_hash): Handle USE of BLKmode memory.
	(cse_insn): Outgoing arguments for a libcall don't
	affect any recorded expressions.

From-SVN: r36384
2000-09-13 06:27:16 +00:00
Tom Tromey
d21445e714 configure, config.in: Rebuilt.
* configure, config.in: Rebuilt.
	* configure.in: Check for iconv, nl_langinfo, langinfo.h.

From-SVN: r36383
2000-09-13 01:33:13 +00:00
Jason Merrill
f2ae0c45c0 decl.c (maybe_deduce_size_from_array_init): Set do_default for all non-extern arrays.
* decl.c (maybe_deduce_size_from_array_init): Set do_default for
        all non-extern arrays.

        * decl.c (grokdeclarator): Complain about 'friend T' for implicit
        typenames, too.  Downgrade complaint to pedwarn.
        (xref_tag): Warn about surprising behavior of 'friend struct T'.
        * decl2.c (handle_class_head): Generate a TYPENAME_TYPE for
        'class This::Inherited'.

From-SVN: r36382
2000-09-12 21:02:52 -04:00