Commit Graph

42467 Commits

Author SHA1 Message Date
Zack Weinberg 9340544b77 re PR c/6300 (sparc-sun-solaris2.7 gcc-3.1 C testsuite failure in gcc.dg/cpp/charconst.c)
* c-lex.c (lex_charconst): Call convert to get constant in
	proper type; don't just smash the type field.
	Fixes PR c/6300.

	* config.gcc: Add list of obsolete configurations.  Disallow
	building these without --enable-obsolete.
	* doc/install.texi: Document --enable-obsolete and obsoletion
	policy.  Mention obsoletion of individual targets in
	appropriate places.

From-SVN: r52639
2002-04-22 22:25:14 +00:00
Alexandre Petit-Bianco 920f81e7b8 re PR java/2791 (Bogus "class `foo' already defined ..." error from jc1)
* jcf-parse.c: (yyparse): Don't prepend "./" to relative
	paths. Fixes PR java/2791.

From-SVN: r52636
2002-04-22 20:34:19 +00:00
Jason Merrill 5066927d9e re PR libstdc++/4150 (catastrophic performance decrease in C++ code)
PR libstdc++/4150
        * include/std/std_streambuf.h (basic_streambuf::_M_set_indeterminate):
        Move to filebuf.
        (basic_streambuf::_M_set_determinate): Likewise.
        (basic_streambuf::_M_is_indeterminate): Likewise.
        * include/bits/std_fstream.h (basic_filebuf::_M_filepos): New
        non-static data member.
        (basic_filebuf::_M_underflow_common): New non-static member function.
        (basic_filebuf::_M_underflow, _M_uflow): Call it.
        (basic_filebuf::sync): Avoid useless seeking.
        (basic_filebuf::_M_set_indeterminate): Move here from streambuf.
        Set _M_filepos.
        (basic_filebuf::_M_set_determinate): Likewise.
        (basic_filebuf::_M_is_indeterminate): Likewise.
        * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow): Seek
        back to _M_out_beg if necessary.
        (basic_filebuf::seekoff): Likewise.
        (basic_filebuf::_M_underflow_common): Generalization of old
        underflow().  Don't seek back to _M_in_beg.
        * src/ios.cc: Lose _GLIBCPP_AVOID_FSEEK stuff.
        * config/os/solaris/solaris2.?/bits/os_defines.h: Likewise.
        * config/os/bsd/freebsd/bits/os_defines.h: Likewise.
        * config/os/mingw32/bits/os_defines.h: Likewise.
        * testsuite/27_io/filebuf_virtuals.cc (test05): Don't overspecify
        ungetc test.

From-SVN: r52634
2002-04-22 16:28:05 -04:00
Richard Henderson f942d7a5df * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
From-SVN: r52633
2002-04-22 12:54:50 -07:00
Mark Mitchell 8ed8f73189 re PR fortran/6138 (Incorrect access of integer*1 variables on PA)
PR f/6138.
	* function.c (fixup_memory_subreg): Add promoted_mode parameter.
	(walk_fixup_memory_subreg): Likewise.
	(fixup_var_refs_insn): Adjust accordingly.
	(fixup_var_refs_1): Likewise.

From-SVN: r52631
2002-04-22 19:26:19 +00:00
Benjamin Kosnik b2e4f4fda7 istream.tcc (istream::read): Fix.
2002-04-22  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/istream.tcc (istream::read): Fix.
	* testsuite/27_io/istream_unformatted.cc (main): Add.

From-SVN: r52628
2002-04-22 19:10:02 +00:00
Ulrich Weigand 232b0b45ca linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC, LIBPATH_ARCH64_SPEC): Define.
* config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
LIBPATH_ARCH64_SPEC): Define.
(EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
(STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
(LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
(LINK_ARCH64_SPEC): Add libpath_arch64 to search path.

From-SVN: r52627
2002-04-22 18:41:07 +00:00
Joel Sherrill 1b61552b8a gthr-rtems.h: Correct prototypes to remove warnings.
2002-04-22	Joel Sherrill <joel@OARcorp.com>

	* gthr-rtems.h: Correct prototypes to remove warnings.

From-SVN: r52626
2002-04-22 18:26:01 +00:00
Richard Henderson 0fe854a7e0 alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
* alias.c (canon_true_dependence): Special case (mem:blk (scratch)).

        * gcse.c (free_insn_expr_list_list): New.
        (clear_modify_mem_tables): Use it.  Fix bit set usage.
        (canon_list_insert): Use EXPR_LISTs for expressions.
        (record_last_mem_set_info): Factor BLOCK_NUM (insn).

From-SVN: r52624
2002-04-22 11:17:06 -07:00
Neil Booth af0d16cdec cppfiles.c (_cpp_pop_file_buffer): Return void.
* cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
	file change and include code to _cpp_pop_buffer.
	* cpphash.h (struct pending_option): Predeclare.
	(struct cpp_reader): New member next_include_file.
	(_cpp_pop_file_buffer): Update.
	(_cpp_push_next_buffer): Update, rename.
	* cppinit.c (cpp_destroy): Free include chain and pending here.
	(cpp_finish_options): Simplify.
	(_cpp_push_next_buffer): Rename and clean up.
	* cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
	Clarify.
	* cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.

From-SVN: r52621
2002-04-22 17:48:02 +00:00
Zack Weinberg 74b273d68f 980707-1.c: Don't use isspace().
* gcc.c-torture/execute/980707-1.c: Don't use isspace().
	Include stdlib.h, not stdio.h or ctype.h.

From-SVN: r52619
2002-04-22 17:40:50 +00:00
Andrew Haley a2761d6826 jcf-write.c (push_long_const): lo, hi: New variables.
2002-04-19  Andrew Haley  <aph@redhat.com>

        * jcf-write.c (push_long_const): lo, hi: New variables.
        Use rshift_double to extract the high part of a 64-bit long.
        Use WORD_TO_INT to extract the low part.

        * jcf-parse.c (get_constant): CONSTANT_Integer: Use an unsigned
        HOST_WIDE_INT for num.  Use JPOOL_UINT to get it.
        CONSTANT_Double: Use JPOOL_UINT to get both halve of a double.

From-SVN: r52618
2002-04-22 16:55:39 +00:00
Mark Mitchell 0a528c61ff * gcc_release (build_diffs): Remove reference to Chill.
From-SVN: r52614
2002-04-22 16:00:13 +00:00
Philipp Thomas 5c9c129397 Update turkish catalog
From-SVN: r52612
2002-04-22 14:16:46 +00:00
David S. Miller 4bf0144590 dwarf2-signal.h (MAKE_THROW_FRAME, sparc32): Document magic instruction reading sequence.
2002-04-21  David S. Miller  <davem@redhat.com>

	* include/dwarf2-signal.h (MAKE_THROW_FRAME, sparc32): Document
	magic instruction reading sequence.

From-SVN: r52609
2002-04-22 01:13:32 -07:00
GCC Administrator f0cca0f605 Daily bump.
From-SVN: r52607
2002-04-22 07:16:59 +00:00
Aldy Hernandez 0d9185726f altivec.h (vec_xor): Add variant for both args being vector signed int.
2002-04-22  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/altivec.h (vec_xor): Add variant for both args
        being vector signed int.
        (vec_andc): Same.
        (vec_xor): Add variant for both args being vector signed char.
        Remove redundant variant.
        (vec_andc): Same.

From-SVN: r52602
2002-04-22 06:39:02 +00:00
David S. Miller a61df6c727 [multiple changes]
2002-04-22  David S. Miller  <davem@redhat.com>

	* include/private/gcconfig.h: Hard-code STACKBOTTOM on
	64-bit SPARC Linux, the __libc_stack_end technique does
	not work in this case.

2002-04-22  Jeff Sturm  <jsturm@one-point.com>

	* gcconfig.h: Enable DYNAMIC_LOADING for all sparc-solaris ABIs.

From-SVN: r52601
2002-04-21 23:07:41 -07:00
David S. Miller 77e2c290ba sparc.md (set then compare DI mode peephole2): Fix compare mode in output RTL.
2002-04-21  David S. Miller  <davem@redhat.com>

	* config/sparc/sparc.md (set then compare DI mode peephole2): Fix
	compare mode in output RTL.

From-SVN: r52597
2002-04-21 18:25:11 -07:00
Hans-Peter Nilsson bb03c71049 20020415-1.c: Expect warning for unsupported -fpic on cris-*-elf* and mmix-*-*.
* gcc.dg/20020415-1.c: Expect warning for unsupported -fpic on
	cris-*-elf* and mmix-*-*.
	* g77.f-torture/execute/io0.x: xfail for cris-*-elf.
	* g77.f-torture/execute/io1.x, g77.f-torture/execute/20001201.x,
	g77.f-torture/execute/6367.x, g77.f-torture/execute/u77-test.x:
	Ditto.
	* gcc.dg/wint_t-1.c: Mark excess errors for cris-*-elf.
	* gcc.dg/wchar_t-1.c: Ditto.

From-SVN: r52595
2002-04-22 01:19:06 +00:00
David Edelsohn ee2ca2a22e rs6000.c (rs6000_override_options): Correct style and formatting of previous patch.
* config/rs6000/rs6000.c (rs6000_override_options): Correct
        style and formatting of previous patch.

From-SVN: r52593
2002-04-21 21:01:12 -04:00
Alan Modra 894bdff6f2 rs6000.c (rs6000_override_options): Always clear flag_pic for ABI_AIX.
* config/rs6000/rs6000.c (rs6000_override_options): Always clear
	flag_pic for ABI_AIX.

From-SVN: r52591
2002-04-22 09:51:52 +09:30
Hans-Peter Nilsson 5b3dc8155f cleanup1.C (C::C()): Initialize member c.
* g++.dg/opt/cleanup1.C (C::C()): Initialize member c.
	Clarify comment.

From-SVN: r52588
2002-04-21 20:32:48 +00:00
Neil Booth 562a5c27c2 cppexp.c (struct op, [...]): Replace U_CHAR with uchar.
* cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
	* cppfiles.c (read_include_file): Similarly.
	* cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
	uxstrdup ustrchr, ufputs): Similarly.
	* cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
	* cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
	cpp_ideq, parse_identifier, parse_number): Similarly.
	* cpplib.c (struct directive, dequote_string, D, run_directive,
	cpp_push_buffer): Similarly.
	* cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
	_cpp_create_definition, check_trad_stringification,
	cpp_macro_definition): Similarly.

From-SVN: r52587
2002-04-21 18:46:42 +00:00
Neil Booth 9ac3b1bec7 cppmacro.c (funlike_invocation_p): Don't step back over CPP_EOF.
* cppmacro.c (funlike_invocation_p): Don't step back over CPP_EOF.
testsuite:
	* gcc.dg/cpp/endif.h, gcc.dg/cpp/endif.c: New tests.

From-SVN: r52586
2002-04-21 16:17:55 +00:00
Franz Sirl d8b85ae597 20000906-1.x: Delete.
2002-04-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	* gcc.c-torture/execute/20000906-1.x: Delete.

From-SVN: r52584
2002-04-21 16:11:59 +00:00
Joseph Myers ace133aa78 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
From-SVN: r52582
2002-04-21 14:59:15 +01:00
Joseph Myers 57e27c8296 * update_web_docs (MANUALS): Remove chill. Add gnat_rm.
From-SVN: r52581
2002-04-21 14:50:09 +01:00
Florian Weimer 88e1739cf0 * gnat_ug.texi: New file.
From-SVN: r52580
2002-04-21 14:56:01 +02:00
Mark Wielaard da3c5444ca re PR java/6391 (Constant float to int conversions don't use ieee_real_to_integer when compiled to byte-code)
* mauve-libgcj: Don't run java.lang.ref tests since they are buggy.

	* libjava.mauve/xfail: Expect failures for PR java/6391 and
	libgcj/6389.

From-SVN: r52577
2002-04-21 12:35:04 +00:00
David S. Miller 714708c8b1 dwarf2-signal.h (SIGNAL_HANDLER): Name siginfo_t pointer arg.
2002-04-19  David S. Miller  <davem@redhat.com>

	* include/dwarf2-signal.h (SIGNAL_HANDLER): Name siginfo_t pointer
	arg.
	(MAKE_THROW_FRAME): Define for 32-bit and 64-bit sparc.
	(INIT_SEGV, INIT_FPE): Use direct __libc_sigaction installation
	on Sparc too.
	* include/sparc-signal.h (FLUSH_REGISTER_WINDOWS): Define properly
	for 64-bit sparc.
	(MAKE_THROW_FRAME): Use long for sp/retaddr so 64-bit works.
	* sysdeps/sparc/locks.h: New file.
	* configure.in (SIGNAL_HANDLER): Set to include/sparc-signal.h
	on all sparc Solaris configurations.  Set to
	include/dwarf2-signal.h on sparc Linux.
	* configure: Regenerate
	* configure.host (can_unwind_signal): sparc*-linux* can do it now.

From-SVN: r52575
2002-04-21 02:37:49 -07:00
GCC Administrator 25c52eacb2 Daily bump.
From-SVN: r52573
2002-04-21 07:16:57 +00:00
Florian Weimer 5c558dd939 gnat_rm.texi: Do not include texiplus.texi.
* gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
	instead of gfdl.texi

	* xgnatug.adb, ug_words: New files.

	* Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
        gnat_rm and gnat-style manuals.

From-SVN: r52569
2002-04-21 09:10:12 +02:00
David Edelsohn 9dda4cc899 rs6000.c (output_profile_hook): Do not increment labelno.
* config/rs6000/rs6000.c (output_profile_hook): Do not increment
        labelno.

From-SVN: r52565
2002-04-21 01:04:01 -04:00
Benjamin Kosnik 9a4b4cfc1a re PR libstdc++/6360 (Wrong workaround in char_traits.h - ignore stops on \0xff)
2002-04-20  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/6360
	* include/bits/istream.tcc (istream::ignore): Streamline, use
	delimiter as is.
	* include/bits/streambuf.tcc: Use this->gptr.
	* testsuite/27_io/istream_unformatted.cc (test08): Add test.

From-SVN: r52563
2002-04-21 04:15:29 +00:00
Joseph Myers 20764052b9 invoke.texi: Remove Chill references.
* doc/invoke.texi: Remove Chill references.
	* doc/gcc.texi: Update last modified date.

From-SVN: r52561
2002-04-20 21:44:10 +01:00
Mark Mitchell 626b711eb0 Remove Chill
[[Split portion of a mixed commit.]]

From-SVN: r52560.2
2002-04-20 20:42:51 +00:00
Kazu Hirata 26b2988482 lib1funcs.asm (___mulsi3): Remove unnecessary push and pop.
* config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
	push and pop.  Replace add.l with add.w.

From-SVN: r52559
2002-04-20 20:21:35 +00:00
Toshiyasu Morita 59184677f4 lib1funcs.asm (___mulsi3): Use hardware multiply instructions for H8/300H case.
* config/h8300/lib1funcs.asm (___mulsi3): Use hardware
	multiply instructions for H8/300H case.

From-SVN: r52558
2002-04-20 18:01:53 +00:00
Toshiyasu Morita b1113e0aac lib1funcs.asm (___cmpsi2, ___ucmpsi2): Bum three instructions from each routine.
* config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
	Bum three instructions from each routine.

From-SVN: r52557
2002-04-20 16:02:36 +00:00
Toon Moene 994bca95a4 root.texi: Remove variable version-g77.
2002-04-20  Toon Moene  <toon@moene.indiv.nluug.nl>

	* root.texi: Remove variable version-g77.
	* g77.texi: Remove the single use of that variable.

From-SVN: r52556
2002-04-20 13:35:28 +00:00
David Billinghurst 0c69ed55a3 f77-edit-i-in.f: Restore missing { dg-do run }
2002-04-20  David.Billinghurst <David.Billinghurst@riotinto.com>

	* g77.dg/f77-edit-i-in.f: Restore missing { dg-do run }

From-SVN: r52555
2002-04-20 13:23:01 +00:00
Neil Booth b03e38e17e Makefile.in: Update.
* Makefile.in: Update.
	* decl.c (push_c_function_context, pop_c_function_context,
	mark_c_function_context): Rename for consistency.
	* c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
	* c-tree.h (push_c_function_context, pop_c_function_context,
	mark_c_function_context): Rename for consistency.
	* c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
	LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
	* function.c (init_lang_status, save_lang_status,
	restore_lang_status, mark_lang_status, free_lang_status):
	Move to langhooks.h.
	(push_function_context_to, pop_function_context_from,
	free_after_parsing, prepare_function_start, ggc_mark_struct_function):
	Update.
	* function.h (init_lang_status, save_lang_status,
	restore_lang_status, mark_lang_status, free_lang_status):
	Move to langhooks.h.
	* langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
	LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
	LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
	LANG_HOOKS_FUNCTION_INITIALIZER): New.
	(LANG_HOOKS_INITIALIZER): Update.
	(lhd_do_nothing_f): New.
	* langhooks.h (struct lang_hooks_for_functions): New.
	(struct lang_hooks): New hooks.
	* langhooks.c (lhd_do_nothing_f): New.
cp:
	* cp-lang.c (LANG_HOOKS_FUNCTION_INIT,
	LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_MARK): Redefine.
	* cp-tree.h (cxx_push_function_context, cxx_pop_function_context,
	cxx_mark_function_context): New.
	* decl.c (push_cp_function_context, pop_cp_function_context,
	mark_cp_function_context): Rename for consistency.
	(cxx_init_decl_processing): Don't set old hooks.
objc:
	* objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
	LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.

From-SVN: r52551
2002-04-20 09:14:37 +00:00
GCC Administrator c874e8a3bd Daily bump.
From-SVN: r52550
2002-04-20 07:17:04 +00:00
David S. Miller db430d2664 linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
2002-04-19  David S. Miller  <davem@redhat.com>

	* config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
	* config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.

From-SVN: r52546
2002-04-19 21:47:49 -07:00
Hans Boehm 1936721505 configure: Rebuilt.
2002-04-19  Hans Boehm <Hans_Boehm@hp.com>

	* configure: Rebuilt.
	* configure.in (backtrace): Function doesn't work on IA-64.

From-SVN: r52544
2002-04-20 00:31:03 +00:00
Toon Moene d106599fbc re PR libf2c/6367 (multiple repeat counts confuse namelist read into array)
2002-04-19  Toon Moene  <toon@moene.indiv.nluug.nl>

	* PR6367
	* g77.f-torture/execute/6367.f: New test.
	* g77.f-torture/execute/6367.x: Disable for MMIX.

From-SVN: r52540
2002-04-19 21:52:11 +00:00
Jakub Jelinek 0f2a345797 re PR rtl-optimization/3756 (gcc wishlist: arithmetic right shift for ternary operator)
PR optimization/3756
	* config/i386/i386.c (ix86_expand_int_movcc): Optimize
	x = ((int) y < 0) ? cst1 : cst2.

From-SVN: r52539
2002-04-19 23:09:16 +02:00
Jakub Jelinek ce5e43d03e re PR c/6358 (GCC 3.1 ICE on statement expressions)
PR c/6358
	* function.c: Reapply patch for c/6358.
	(expand_function_end): Copy decl_rtl's mode, not
	current_function_return_rtx mode.

From-SVN: r52538
2002-04-19 23:02:52 +02:00
Joel Sherrill 9eb83f6ce7 rtems.h (STARTFILE_SPEC, [...]): Fix for non-ELF targets.
2002-04-19	Joel Sherrill <joel@OARcorp.com>

	* config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
	targets.

From-SVN: r52535
2002-04-19 18:43:11 +00:00