Commit Graph

42346 Commits

Author SHA1 Message Date
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
Tom Tromey
40e7f8eaf6 re PR libgcj/6158 (libgcj won't bootstrap on sparc-sun-solaris2.8 if already installed)
* doc/install.texi (Specific): Update status of Solaris 2.8.
	For PR libgcj/6158.

From-SVN: r52532
2002-04-19 18:13:32 +00:00
Andreas Schwab
9f92d25025 Add some explanation for last change.
From-SVN: r52531
2002-04-19 17:50:40 +00:00
Nathanael Nerode
704c9a1402 mh-a68bsd: clean out dead code
2002-04-19  Nathanael Nerode  <neroden@twcny.rr.com>

	* config/mh-a68bsd: clean out dead code
	* config/mh-apollo68: clean out dead code
	* config/mh-cxux: clean out dead code
	* config/mh-decstation: clean out dead code
	* config/mh-dgux: clean out dead code
	* config/mh-dgux386: clean out dead code
	* config/mh-hp300: clean out dead code
	* config/mh-hpux: clean out dead code
	* config/mh-hpux8: clean out dead code
	* config/mh-interix: clean out dead code
	* config/mh-irix4: clean out dead code
	* config/mh-lynxrs6k: clean out dead code
	* config/mh-mingw32: clean out dead code
	* config/mh-ncr3000: clean out dead code
	* config/mh-ncrsvr43: clean out dead code
	* config/mh-necv4: clean out dead code
	* config/mh-openedition: clean out dead code
	* config/mh-riscos: clean out dead code
	* config/mh-sco: clean out dead code
	* config/mh-sysv4: clean out dead code
	* config/mh-lynxos: removed, contained only dead code
	* config/mh-vaxult2: removed, contained only dead code
	* config/mh-sun3: removed, contained only dead code
	* configure.in: remove references to dead files

From-SVN: r52530
2002-04-19 13:26:08 -04:00
Kelley R. Cook
1f1760d33c * gcc_release: Set TZ to UTC0.
From-SVN: r52529
2002-04-19 17:23:36 +00:00
Andreas Schwab
62a12b2795 real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
2002-04-19  Andreas Schwab  <schwab@suse.de>

        * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
        (PUT_REAL): Restore old definition.

From-SVN: r52527
2002-04-19 13:12:59 -04:00
Dan Nicolaescu
1405141bc5 install.texi (Specific, [...]): Mention that binutils 2.11.2 and higher generate smaller binaries than Sun's...
* doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
	binutils 2.11.2 and higher generate smaller binaries than Sun's
	native tools.

Co-Authored-By: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>

From-SVN: r52526
2002-04-19 16:47:09 +00:00
Mark Mitchell
7bff505993 * MAINTAINERS: Add information about purpose of this file.
From-SVN: r52522
2002-04-19 16:40:52 +00:00
Mark Mitchell
303a3927d2 re PR c++/6352 (GCC 3.1 inliner regression from March)
PR c++/6352
	* toplev.c (rest_of_compilation): Do not defer functions for which
	TREE_SYMBOL_REFERENCED has already been set.

	* PR6352
	* g++.dg/opt/inline2.C: New test.

From-SVN: r52521
2002-04-19 16:21:58 +00:00
Jan Hubicka
de80110b88 i386.md (movsi_1, movhi_1): Force reload to use more flexible alternative.
* i386.md (movsi_1, movhi_1): Force reload to use more flexible
	alternative.

From-SVN: r52519
2002-04-19 14:02:06 +00:00
GCC Administrator
eea18a4a73 Daily bump.
From-SVN: r52516
2002-04-19 07:19:16 +00:00
Neil Booth
ab393bf171 builtins.c: Include langhooks.h.
* builtins.c: Include langhooks.h.
	(lang_type_promotes_to): Remove.
	(expand_builtin_va_arg): Use new hook.
	* c-common.c (c_common_nodes_and_builtins): Don't set hook.
	(simple_type_promotes_to): Move to c-typeck.c.
	* c-common.h (simple_type_promotes_to): Remove.
	* c-decl.c (duplicate_decls, grokdeclarator): Update.
	* c-format.c: Include langhooks.h.
	(check_format_types): Update.
	* c-tree.h (c_type_promotes_to): New.
	* c-typeck.c (c_type_promotes_to): Move from c-common.c.
	(type_lists_compatible_p): Update.
	* langhooks-def.h (lhd_type_promotes_to): New.
	(LANG_HOOKS_TYPE_PROMOTES_TO): New.
	(LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
	* langhooks.c (lhd_type_promotes_to): New.
	* langhooks.h (struct lang_hooks_for_types): New hook.
	* tree.h (lang_type_promotes_to): Remove.
cp:
	* call.c (convert_type_from_ellipsis): Rename, update.
	* cp-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
	* cp-tree.h (convert_type_from_ellipsis): Rename.
	* decl.c (cxx_init_decl_processing): Don't set hook.
objc:
	* objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.

From-SVN: r52512
2002-04-19 06:22:18 +00:00
Richard Henderson
58533fa280 * function.c: Revert patch for c/6358.
From-SVN: r52511
2002-04-18 21:41:34 -07:00
Richard Henderson
0cd3301ba7 ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN blocks.
* ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
        blocks.  Handle multiple references to the TRAP block.  Handle
        non-adjacent THEN and OTHER blocks.

        * gcc.dg/20000906-1.c: Enable for all targets.
        * gcc.c-torture/compile/iftrap-2.c: New.

From-SVN: r52509
2002-04-18 21:01:15 -07:00
Richard Henderson
2840e66a78 ia64.c (ia64_function_arg_pass_by_reference): Don't crash with no type for by-mode libcalls.
* config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
        crash with no type for by-mode libcalls.

From-SVN: r52508
2002-04-18 20:59:51 -07:00
Richard Henderson
5cf63e3f08 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
From-SVN: r52507
2002-04-18 20:59:28 -07:00
Bob Wilson
57174693e0 lib2funcs.S (__xtensa_libgcc_window_spill, [...]): Use a syscall instructions to flush the register windows.
* config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
        __xtensa_nonlocal_goto): Use a syscall instructions to flush
        the register windows.

From-SVN: r52503
2002-04-19 00:31:17 +00:00
Zack Weinberg
46468cd96f real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as appropriate.
* real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
	appropriate.  Document need for extended precision even when
	MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
	based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
	REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
	instead of relying on later syntax error when REAL_WIDTH > 5.
	* real.c: Define NE based only on whether or not we have a
	full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
	Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
	define GET_REAL and PUT_REAL as simple memcpy operations; no
	need to byteswap or round.
	Use #error instead of #ifdef-ing out the entire file, for
	prompt error detection.

	* rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.

From-SVN: r52502
2002-04-19 00:14:49 +00:00
Benjamin Kosnik
36ce7daa04 localefwd.h (locale:🆔:_M_id): Do this correctly, as type safety is important, especially on solaris.
2002-04-18  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/localefwd.h (locale:🆔:_M_id): Do this correctly,
	as type safety is important, especially on solaris.
	* include/bits/istream.tcc (istream::read): Clean.
	(istream::readsome): Same.
	* locale.cc: Wrap lines.

	* testsuite/21_strings/inserters_extractors.cc: Tweaks.
	* testsuite/27_io/instantiations.cc (test): Add bool variable...
	* testsuite/21_strings/capacity.cc: Clean.

From-SVN: r52501
2002-04-18 23:47:50 +00:00
David S. Miller
2f82dbf865 sparc.h (BRANCH_COST): Define.
2002-04-18  David S. Miller  <davem@redhat.com>

	* config/sparc/sparc.h (BRANCH_COST): Define.

	* fold-const.c (BRANCH_COST): Don't provide default here, expr.h
	does it.

From-SVN: r52500
2002-04-18 16:37:15 -07:00
Hans-Peter Nilsson
566576e718 flow.c (update_life_info): Ignore return value of cleanup_cfg.
* flow.c (update_life_info): Ignore return value of cleanup_cfg.
	Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
	propagate_block calls after relaxation loop using new variable
	stabilized_prop_flags.

From-SVN: r52498
2002-04-18 22:11:39 +00:00
Tom Tromey
0c7c67f076 re PR libgcj/6158 (libgcj won't bootstrap on sparc-sun-solaris2.8 if already installed)
* configure.in: Disallow configuring libgcj when it is already
	installed and we're using Solaris 2.8 linker.  Do enable libgcj on
	Solaris 2.8 by default.  For PR libgcj/6158.

From-SVN: r52497
2002-04-18 21:35:49 +00:00