Commit Graph

31219 Commits

Author SHA1 Message Date
Jim Wilson ef3751295c Fix ICE on lex output file reported by Andreas Schwab.
* haifa-sched.c (compute_trg_info): Add explanatory comments.
	New local update_blocks.  Use update_blocks to remove duplicates
	when computing update blocks.  Check for bblst_table overflow.
	(schedule_block): Add explanatory comment.  Reduce bblst_size by
	factor of 2.
	* config/ia64/ia64.md (movdi_symbolic): Document loss of REG_LABEL
	notes.

From-SVN: r36954
2000-10-19 16:21:14 -07:00
Mark Mitchell 97ba1e3c39 cp-tree.h (DECL_ANTICIPATED): Don't require a FUNCTION_DECL.
* cp-tree.h (DECL_ANTICIPATED): Don't require a FUNCTION_DECL.
	* decl.c (select_decl): Don't return declarations that are
	DECL_ANTICIPATED.

From-SVN: r36953
2000-10-19 17:57:49 +00:00
Chandrakala Chavva 3cf3728197 * libgcc2.c (_mulvsi3): Change variables u and v to a and b.
From-SVN: r36952
2000-10-19 12:25:21 -04:00
Chandrakala Chavva e6b4d09dda Minor corrections in comments.
From-SVN: r36951
2000-10-19 11:48:22 -04:00
Chandrakala Chavva 3d2adde6dc Added the missing #endif.
From-SVN: r36950
2000-10-19 11:44:32 -04:00
Jan Hubicka 1aa9fd2411 * i386.h (CONST_OK_FOR_LETTER): Re-add 'N'; document.
From-SVN: r36949
2000-10-19 12:27:28 +00:00
Alexandre Petit-Bianco 02ae6e2e4b parse.y (process_imports): Consider that one might be trying to import an innerclass.
2000-07-19  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * parse.y (process_imports): Consider that one might be trying to
        import an innerclass. Fixes gcj/254

(http://gcc.gnu.org/ml/gcc-patches/2000-10/msg00631.html)

From-SVN: r36948
2000-10-19 00:51:54 -07:00
Jeff Law cc3f7b54c9 Daily bump.
From-SVN: r36947
2000-10-19 01:45:11 -06:00
Alexandre Petit-Bianco dba41d307e gjavah.c (add_class_decl): Removed unused variables `tname', `tlen' and `name_index'.
2000-10-18  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* gjavah.c (add_class_decl): Removed unused variables `tname',
	`tlen' and `name_index'.
	* java-tree.h (BUILD_FILENAME_IDENTIFIER_NODE): New macro.
	* jcf-parse.c (jcf_parse_source): Use it and set EXPR_WFL_FILENAME
	in `wfl_operator' with value.
	(yyparse): Use BUILD_FILENAME_IDENTIFIER_NODE.
	(jcf_figure_file_type): Fixed identation.
	* lex.c (java_get_line_col): Use EOF. Tuned `^' placement.
	* parse.y (analyze_clinit_body): New function.
	(static_initializer:): Reset `current_static_block'.
	(java_parser_context_restore_global): Set EXPR_WFL_FIILENAME_NODE in
	`wfl_operator' with new value.
	(lookup_cl): Use EXPR_WFL_FILENAME.
	(maybe_yank_clinit): Handle bogus <clinit> bodies, call
	analyze_clinit_body.
	(build_outer_field_access): Access to this$<n> built from
	current_class, not its outer context.
	(build_access_to_thisn): Fixed leading comment. Tidied things up.
	(resolve_qualified_expression_name): Handle `T.this' and `T.this.f()'.
	(patch_method_invocation): Use `is_static_flag' when already
	initialized.
	(patch_newarray): Removed assignment in ternary operator.

(http://gcc.gnu.org/ml/gcc-patches/2000-10/msg00629.html)

From-SVN: r36946
2000-10-18 21:19:09 -07:00
Benjamin Kosnik 0a8c4c0cd9 Makefile.am (exception): Change exception.cc to exception_support.cc.
2000-10-18   Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* libsupc++/Makefile.am (exception): Change exception.cc to
	exception_support.cc.
	(CXXLINK): Remove bogus --tag CC.
	* libsupc++/Makefile.in: Regenerate.
	* libsupc++/exception.cc: Move to...
	* libsupc++/exception_support.cc: ...here.

	* src/Makefile.am: Remove bogus --tag CC.
	* src/Makefile.in: Regenerate.

	* include/bits/locale_facets.tcc (use_facet): Simplify.
	* include/bits/locale_facets.h (use_facet<ctype<char> >): Correct
	use_facet declaration. Replace 'const ctype<T>' with ctype<T>.
	(use_facet<ctype<wchar_t> >): Same.
	* src/locale-inst.cc: Remove explicit instantiation.
	* src/locale.cc: Correct signature here too.
	(_Bad_use_facet::what()): Correct error string.
	* include/bits/localefwd.h: Correct comment.

	* mkcheck.in (C_DIR): Change libsupc++/include to libsupc++.

From-SVN: r36945
2000-10-18 23:45:59 +00:00
Chip Salzenberg b0166fda45 libio.h (_IO_USER_LOCK): Define.
2000-10-18  Chip Salzenberg  <chip@valinux.com>

        * libio/libio.h (_IO_USER_LOCK): Define.

From-SVN: r36944
2000-10-18 23:29:30 +00:00
Benjamin Kosnik 697649eab1 Makefile.am (exception): Change exception.cc to exception_support.cc.
2000-10-18   Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* libsupc++/Makefile.am (exception): Change exception.cc to
	exception_support.cc.
	(CXXLINK): Remove bogus --tag CC.
	* libsupc++/Makefile.in: Regenerate.
	* libsupc++/exception.cc: Move to...
	* libsupc++/exception_support.cc: ...here.

	* src/Makefile.am: Remove bogus --tag CC.
	* src/Makefile.in: Regenerate.

	* include/bits/locale_facets.tcc (use_facet): Simplify.
	* include/bits/locale_facets.h (use_facet<ctype<char> >): Correct
	use_facet declaration. Replace 'const ctype<T>' with ctype<T>.
	(use_facet<ctype<wchar_t> >): Same.
	* src/locale-inst.cc: Remove explicit instantiation.
	* src/locale.cc: Correct signature here too.
	(_Bad_use_facet::what()): Correct error string.
	* include/bits/localefwd.h: Correct comment.

	* mkcheck.in (C_DIR): Change libsupc++/include to libsupc++.

From-SVN: r36943
2000-10-18 23:26:22 +00:00
Chandrakala Chavva 91ce572a07 Adding new option -ftrapv.
From-SVN: r36942
2000-10-18 17:33:41 -04:00
Geoff Keating 4c2c5712af t-netware: Bring in from the Red Hat tree.
2000-10-18  Geoffrey Keating  <geoffk@cygnus.com>
	    David V. Henkel-Wallace  <gumby@cygnus.com>

	* config/i386/t-netware: Bring in from the Red Hat tree.
	* config/i386/netware.h: Likewise.
	* config/netware.h: Likewise.
	* config/rs6000/netware.h: Delete.
	* configure.in: Add i[34567]86-*-netware.
	* configure: Hand-edit to match configure.in change.

Co-Authored-By: David V. Henkel-Wallace <gumby@cygnus.com>

From-SVN: r36941
2000-10-18 19:57:54 +00:00
Mark Mitchell 6bcedb4e1c c-common.h (flag_no_builtin): Declare.
* c-common.h (flag_no_builtin): Declare.
	(flag_no_nonansi_builtin): Likewise.
	(c_common_nodes_and_builtins): Change prototype.
	* c-common.c (flag_no_builtin): New variable.
	(flag_no_nonansi_builtin): Likewise.
	(c_common_nodes_and_builtins): Remove parameters.  Adjust
	accordingly.
	* c-decl.c (flag_no_builtin): Remove.
	(flag_no_nonansi_builtin): Likewise.
	(init_decl_processing): Adjust call to
	c_common_nodes_and_builtins.

	* cp-tree.h (cp_tree_index): Add CPTI_FAKE_STD.
	(fake_std_node): New macro.
	* decl.c (in_std): Rename to ...
	(in_fake_std): ... this.
	(flag_no_builtin): Remove.
	(flag_no_nonansi_builtin): Likewise.
	(walk_namespaces_r): Use fake_std_node.
	(push_namespace): Use std_identifier.
	(pop_namespace): Use in_fake_std.
	(lookup_name_real): Use fake_std_node.
	(init_decl_processing): When -fhonor-std, create the `std'
	namespace.  Don't create a dummy fake_std_node in that case.
	Adjust call to c_common_nodes_and_builtins.  Use std_identifier.
	(builtin_function): Put builtins whose names don't begin
	with `_' in the std namespace.
	* decl2.c (flag_no_builtin): Remove.
	(flag_no_nonansi_builtin): Likewise.
	(set_decl_namespace): Use fake_std_node.
	(validate_nonmember_using_decl): Likewise.
	(do_using_directive): Likewise.
	(handle_class_head): Likewise.
	* dump.c (dequeue_and_dump): Likewise.
	* except.c (init_exception_processing): Use std_identifier.
	* init.c (build_member_call): Use fake_std_node.
	* rtti.c (init_rtti_processing): Use std_identifier.

From-SVN: r36940
2000-10-18 18:59:04 +00:00
Marc Espie 989b26a751 tm.texi (LIBGCC_SPEC): Synch with reality.
2000-10-18  Marc Espie <espie@openbsd.org>

	* tm.texi (LIBGCC_SPEC): Synch with reality.

From-SVN: r36939
2000-10-18 17:51:54 +00:00
Marc Espie ea205a526b Rectify missing entry.
From-SVN: r36938
2000-10-18 17:44:42 +00:00
Jakub Jelinek c1b037bde8 iostream.cc (ends): Release the acquired lock.
* iostream.cc (ends): Release the acquired lock.
	(endl): Likewise.

From-SVN: r36937
2000-10-18 18:52:12 +02:00
Joseph Myers 81cf47b209 c-common.c (check_format_types): Check for writing through a NULL pointer argument.
* c-common.c (check_format_types): Check for writing through a
	NULL pointer argument.

testsuite:
	* gcc.dg/c90-printf-1.c, gcc.dg/c90-scanf-1.c: Add tests for
	writing through null pointers; remove comment about testing
	unterminated strings.

From-SVN: r36936
2000-10-18 17:09:35 +01:00
Hans-Peter Nilsson 27c35f4b24 tm.texi (Exception Region Output): Document DWARF_CIE_DATA_ALIGNMENT.
* tm.texi (Exception Region Output): Document
	DWARF_CIE_DATA_ALIGNMENT.
	* dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Wrap definition in
	#ifndef.
	[ENABLE_CHECKING] (reg_save): Abort if offset is not a multiple of
	DWARF_CIE_DATA_ALIGNMENT.

From-SVN: r36935
2000-10-18 12:49:47 +00:00
Michael Hayes 4a7da9b553 basic-block.h (struct loop): Delete fields pre_header_root and pre_header_trace and replace with...
* basic-block.h (struct loop): Delete fields pre_header_root
	and pre_header_trace and replace with pre_header_edges
	and num_pre_header_edges.
	* flow.c (flow_loop_dump): Dump pre_header_edges.
	(flow_loops_free): Free pre_header_edges.
	(flow_loop_pre_header_scan): Calculate pre_header_edges.

From-SVN: r36934
2000-10-18 10:10:38 +00:00
Gerald Pfeifer 42c1075091 contrib.texi: Update references to steering committee members and Jeff Law's entry.
* contrib.texi: Update references to steering committee members
	and Jeff Law's entry.

From-SVN: r36933
2000-10-18 09:05:45 +00:00
Jeff Law 864ab6c772 Daily bump.
From-SVN: r36932
2000-10-18 01:45:11 -06:00
Joseph Myers ade7d3cc1d c-common.c (CPLUSPLUS_STD_VER, [...]): Define.
* c-common.c (CPLUSPLUS_STD_VER, C_STD_VER, C_STD_NAME): Define.
	(maybe_read_dollar_number, check_format_info_main): Use them for
	pedantic warning messages.

From-SVN: r36931
2000-10-18 08:33:04 +01:00
Kazu Hirata 8682223f1d h8300.c: Fix a comment typo.
2000-10-18  Kazu Hirata  <kazu@hxi.com>

	* h8300.c: Fix a comment typo.
	(round_frame_size): New.
	(compute_saved_regs): Likewise.
	(push): Likewise.
	(pop): Likewise.
	(push_order): Remove.
	(pop_order): Likewise.
	(function_prologue): Rearrange code for readability.
	(function_epilogue): Likewise.

From-SVN: r36930
2000-10-18 07:17:36 +00:00
Joseph Myers c525126030 c-common.c (check_format_info_main): Minor cleanup...
* c-common.c (check_format_info_main): Minor cleanup: move
	variables into inner scopes; initialize declarations where
	appropriate; don't hardcode "scanf" name on warning for zero
	width.

From-SVN: r36929
2000-10-18 07:49:34 +01:00
Mark Mitchell 67673f5c5b c-common.c (back_end_hook): New variable.
* c-common.c (back_end_hook): New variable.
	* c-common.h (back_end_hook): Declare it.
	* c-lang.c (finish_file): Use it.

	* emit-rtl.c (init_emit_once): Initialize the const_int_htab
	earlier.

	* cp-tree.h (back_end_hook): Remove declaration.
	* decl2.c (back_end_hook): Remove definition.

	* dump.c (dequeue_and_dump): Dump TREE_USED.

From-SVN: r36928
2000-10-18 05:45:37 +00:00
Jan Hubicka 265dab10ab i386.c (ix86_comparison_operator, [...]): Handle CCRCmode.
* i386.c (ix86_comparison_operator, put_condition_code,
        ix86_match_ccmode, ix86_cc_mode): Handle CCRCmode.
        (ix86_expand_strlensi_unroll_1): Use CCRCmode.
        * i386.h (EXTRA_CC_MODES): Add CCRCmode.
        * i386.md (adddi and negdi splitter): Use CCRCmode.
        (add?i_3, add?i_4, add?i_5): Use CCRCmode; swap operands
        (subsi3_carry): add '*'
        (addsi3_carry_rc, subsi3_carry_rc, x86_movsicc_0_m1_rc): New.
        (cmp to add peep2): Use CCRCmode; swap operands.

From-SVN: r36927
2000-10-18 05:11:37 +00:00
Kazu Hirata f27e6bb249 reorg.c: Fix formatting.
2000-10-18  Kazu Hirata  <kazu@hxi.com>

	* reorg.c: Fix formatting.

From-SVN: r36926
2000-10-18 04:41:35 +00:00
Kazu Hirata b054460b55 h8300.md: Remove an unnecessary sign_extend expander that is used when not optimizing.
2000-10-18  Kazu Hirata  <kazu@hxi.com>

	* config/h8300/h8300.md: Remove an unnecessary sign_extend
	expander that is used when not optimizing.  Output a tab after
	each assembly insns.

From-SVN: r36925
2000-10-18 04:32:48 +00:00
Matthew Hiller 15edc0cb96 * gcc.c-torture/execute/20001017-2.c: New test.
From-SVN: r36924
2000-10-17 20:27:57 -06:00
Joern Rennecke 19ca869b6d reload1.c (move2add_note_store): Check for simple auto-inc in destination.
* reload1.c (move2add_note_store): Check for simple
        auto-inc in destination.

From-SVN: r36923
2000-10-17 20:26:26 -06:00
Michael Chastain 2ddb1ca161 i386-aout.h: define INT_ASM_OP.
2000-09-26  Michael Chastain  <chastain@redhat.com>

	* config/i386/i386-aout.h: define INT_ASM_OP.

From-SVN: r36922
2000-10-17 20:23:58 -06:00
Brad Lucier 8fef2e474b * spew.c (snarf_defarg): Cast 2nd arg to obstack_blank to (int).
From-SVN: r36921
2000-10-17 20:19:56 -06:00
Alan Modra 11881f37b7 * pa.c (print_operand): Handle case 'c' for .vtable_inherit
From-SVN: r36920
2000-10-17 20:12:03 -06:00
Martin Buchholz 189244a414 * testsuite/27_io/istream_seeks.cc: Fix spelling typo. * testsuite/27_io/ostream_seeks.cc: Similarly.
From-SVN: r36919
2000-10-17 20:07:54 -06:00
Martin Buchholz 33e39e3870 * i370.md: Fix spelling typo.
From-SVN: r36918
2000-10-17 20:06:38 -06:00
Joseph Myers 0fe6838788 20001018-1.c: New test.
* gcc.c-torture/compile/20001018-1.c: New test.
	* gcc.c-torture/compile/20001018-1.x: Xfail.

From-SVN: r36917
2000-10-18 00:35:41 +01:00
Franz Sirl 2b7fb03423 * ChangeLog: Remove CVS conflict marker, fix typos.
From-SVN: r36916
2000-10-17 23:26:18 +00:00
Alexandre Petit-Bianco 1a2ebe6d57 except.c (free_eh_ranges): Don't free `whole_range.'
2000-10-17  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * except.c (free_eh_ranges): Don't free `whole_range.'

(http://gcc.gnu.org/ml/gcc-patches/2000-10/msg00557.html)

From-SVN: r36915
2000-10-17 15:48:59 -07:00
Franz Sirl 832ea3b309 function.c (locate_and_pad_parm): Don't align stack unconditionally.
2000-10-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	* function.c (locate_and_pad_parm): Don't align stack unconditionally.
	Fixes execute/20001017-1.c on pwerpc-linux-gnu.
	* expr.c (store_constructor): Apply MEM_ALIAS_SET to MEMs only.
	* rs6000/rs6000.c (rs6000_hash_constant): use X0INT to access a
	LABEL_REF.
	* rs6000/rs6000.h (NO_DOLLAR_IN_LABEL, DOLLARS_IN_IDENTIFIERS,
	ENCODE_SECTION_INFO, ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Move from
	here...
	* rs6000/aix.h: ...to here.
	* rs6000/linux.h (ASM_APP_ON, ASM_APP_OFF): Define to Linux-style.

From-SVN: r36914
2000-10-17 22:17:34 +00:00
Franz Sirl 34137553f9 20001017-1.c: New test.
2000-10-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	* gcc.c-torture/execute/20001017-1.c: New test.

From-SVN: r36913
2000-10-17 22:04:51 +00:00
Jakub Jelinek 4c646291f1 alpha.h (ASM_OUTPUT_MI_THUNK): Reload gp if needed.
* config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Reload gp if needed.
	* config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Always use call, make
	sure linker can relax even the delay slot mov %g1,%o7, fix output
	formating.

From-SVN: r36912
2000-10-17 23:45:23 +02:00
Kazu Hirata 07e0fe3dae h8300.md: Remove an unnecessary zero_extend expander that is used when not optimizing.
2000-10-17  Kazu Hirata  <kazu@hxi.com>

	* config/h8300/h8300.md: Remove an unnecessary zero_extend
	expander that is used when not optimizing.  Output a tab after
	each assembly insns.

From-SVN: r36911
2000-10-17 20:17:35 +00:00
Chandrakala Chavva 10501d8f2f Added new option --target-help.
From-SVN: r36910
2000-10-17 16:07:51 -04:00
Graham Stott c330e9c1e2 i386.md (testqi_1): Add missing operand prefix for operand 0.
* config/i386/i386.md (testqi_1): Add missing operand prefix
 	for operand 0.
 	* config/i386/i386-protos.h: Add missing prototype.

From-SVN: r36909
2000-10-17 19:12:43 +00:00
Graham Stott 343bf72840 * i386.md (testqi_1): Add missing operand prefix for operand 0.
From-SVN: r36908
2000-10-17 19:05:40 +00:00
Graham Stott 6ea15a909f * i386-protos.h: Add missing prototype.
From-SVN: r36907
2000-10-17 19:01:14 +00:00
Diego Novillo 69ac483175 unix.h (ASM_OUTPUT_MI_THUNK): Symbol _GLOBAL_OFFSET_TABLE should not have a $ prefix when using -mintel-syntax.
2000-10-17  Diego Novillo  <dnovillo@cygnus.com>

	* config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Symbol
	_GLOBAL_OFFSET_TABLE should not have a $ prefix when
	using -mintel-syntax.

From-SVN: r36906
2000-10-17 14:47:47 -04:00
Joseph Myers b691cb00a8 c-common.c (FMT_FLAG_DOLLAR_MULTIPLE): Define.
* c-common.c (FMT_FLAG_DOLLAR_MULTIPLE): Define.
	(format_types): Use it for printf.
	(maybe_read_dollar_number): Add parameter for the kind of format
	involved.  Warn for multiple use for arguments if this is
	inappropriate for the kind of format involved.
	(check_format_info_main): Update calls to maybe_read_dollar_number.

testsuite:
	* gcc.dg/format-xopen-1.c: Update comments; adjust for checking
	for multiple use of arguments with scanf formats; add tests for
	multiple use of arguments.

From-SVN: r36905
2000-10-17 19:16:15 +01:00