Commit Graph

35119 Commits

Author SHA1 Message Date
Richard Henderson
e1f9550a64 except.c (eh_data_format_name): Move to ...
* except.c (eh_data_format_name): Move to ...
	* dwarf2asm.c: ... here.  Use designated initializers if available.
	(dw2_asm_output_encoded_addr_rtx): Accept varargs commentary.
	* dwarf2asm.h: Update declarations.
	* dwarf2out.c (output_cfi) [DW_CFA_set_loc]: If for_eh, mind
	ASM_PREFERRED_EH_DATA_FORMAT.
	(output_call_frame_info): Likewise.  Use 'L' augmentation for
	the LSDA encoding.

	* unwind-dw2-fde.h (struct fde_vector): New.
	(struct old_object): Rename from struct object.
	(struct object): New.
	(__register_frame_info_bases): Declare.
	(__register_frame_info_table_bases): Declare.
	(struct dwarf_fde): Remove explicit pc_begin/pc_range members.
	* unwind-dw2-fde.c (objects): Remove.
	(unseen_objects, seen_objects): New.
	(__register_frame_info_bases): New.
	(__register_frame_info): Use it.
	(__register_frame_info_table_bases): New.
	(__register_frame_info_table): Use it.
	(__deregister_frame_info): Rewrite for changed object struct.
	(base_from_object, get_cie_encoding, get_fde_encoding): New.
	(fde_unencoded_compare): Rename from fde_compare; uninline.
	(fde_single_encoding_compare, fde_mixed_encoding_compare): New.
	(start_fde_sort): Adjust for new definition of fde_vector.
	(fde_insert): Likewise.
	(end_fde_sort): Likewise.  Select comparison function based
	on properties of the object.
	(fde_split): Take object and fde_compare_t arguments.
	(frame_heapsort, fde_merge): Likewise.
	(classify_object_over_fdes): Rename from count_fdes.  Handle
	encoded pointers.  Collect encoding, mixed_encoding, and pc_begin
	for the object.
	(add_fdes): Handle encoded pointers.
	(init_object): Rename from frame_init.  Update for new struct object.
	(linear_search_fdes): Rename from search_fdes.  Handle encoded
	pointers.
	(binary_search_unencoded_fdes): Broken out from _Unwind_Find_FDE.
	(binary_search_single_encoding_fdes): New.
	(binary_search_mixed_encoding_fdes): New.
	(search_object): New.
	(_Unwind_Find_FDE): Update for new struct object.  Fill in
	the dwarf_eh_bases.
	* unwind-dw2.c: Include unwind-pe.h.  Constify all pointers
	iterating over EH data.
	(_Unwind_FrameState): Remove saw_lsda, addr_encoding.  Add
	fde_encoding, lsda_encoding.
	(read_uleb128, read_sleb128): Remove.
	(read_encoded_pointer): Remove.  All callers use read_encoded_value.
	(extract_cie_info): Set lsda_encoding from 'L' augmentation.
	(uw_frame_state_for): Don't set bases.func.  Handle encoded fde
	pointers.
	* unwind-pe.h: Add "struct" to _Unwind_Context references.

From-SVN: r42176
2001-05-16 15:42:36 -07:00
Jeff Knaggs
f2cf5c14d8 MAINTAINERS (write after permission): Per Jeff Law, added self.
2001-05-16  Jeff Knaggs <jknaggs@redhat.com>

	* MAINTAINERS (write after permission): Per Jeff Law, added self.

From-SVN: r42175
2001-05-16 22:26:01 +00:00
Neil Booth
a28c50359b cppexp.c (lex): Use NODE_NAME and NODE_LEN.
* cppexp.c (lex): Use NODE_NAME and NODE_LEN.
	* cpphash.c (_cpp_lookup_with_hash): Similarly.
	* cpplex.c (cpp_ideq, parse_identifier, cpp_token_len,
	cpp_spell_token, cpp_output_token): Similarly.
	* cpplib.c (lex_macro_node, do_undef, do_pragma,
	do_pragma_poison, parse_assertion, do_assert): Similarly.
	* cppmacro.c (builtin_macro, parse_args, funlike_invocation_p,
	save_parameter, _cpp_create_definition, check_trad_stringification,
	cpp_macro_definition): Similarly.
	* cppmain.c (cb_define, cb_undef, dump_macro): Similarly.
	* c-lex.c (cb_undef, c_lex): Similarly.
	* fix-header.c (recognized_function): Similarly.
	* cpplib.h (NODE_LEN, NODE_NAME): New.
	(cpp_hashnode): Rename length len.

From-SVN: r42174
2001-05-16 22:02:09 +00:00
Neil Booth
a50882dcae * cpplib.h: Undo mistaken commit.
From-SVN: r42173
2001-05-16 21:55:14 +00:00
Neil Booth
608477bd7b cppexp.c (lex): Use NODE_NAME and NODE_LEN.
* cppexp.c (lex): Use NODE_NAME and NODE_LEN.
	* cpphash.c (_cpp_lookup_with_hash): Similarly.
	* cpplex.c (cpp_ideq, parse_identifier, cpp_token_len,
	cpp_spell_token, cpp_output_token): Similarly.
	* cpplib.c (lex_macro_node, do_undef, do_pragma,
	do_pragma_poison, parse_assertion, do_assert): Similarly.
	* cppmacro.c (builtin_macro, parse_args, funlike_invocation_p,
	save_parameter, _cpp_create_definition, check_trad_stringification,
	cpp_macro_definition): Similarly.
	* cppmain.c (cb_define, cb_undef, dump_macro): Similarly.
	* c-lex.c (cb_undef, c_lex): Similarly.
	* fix-header.c (recognized_function): Similarly.
	* cpplib.h (NODE_LEN, NODE_NAME): New.
	(cpp_hashnode): Rename length len.

From-SVN: r42172
2001-05-16 21:50:27 +00:00
Matt Kraai
c25d4f6a6b * partition.h: Fix misspelling of `implementation'.
From-SVN: r42171
2001-05-16 21:00:55 +00:00
Matt Kraai
6de133d3c7 * partition.c: Fix misspelling of `implementation'.
From-SVN: r42170
2001-05-16 20:44:03 +00:00
Jeffrey A Law
d7c613b616 pa32-regs.h (HARD_REGNO_MODE_OK): Allow TI/TFmode values in GPRs.
* pa32-regs.h (HARD_REGNO_MODE_OK): Allow TI/TFmode values in
        GPRs.

From-SVN: r42169
2001-05-16 13:39:26 -06:00
Andreas Jaeger
5262d6b642 Makefile.in (toplev.o): Add dependency on dwarf2asm.h.
* Makefile.in (toplev.o): Add dependency on dwarf2asm.h.

	* toplev.c: Include dwarf2asm.h for prototype of
	dw2_output_indirect_constants.

From-SVN: r42165
2001-05-16 21:05:50 +02:00
Andreas Jaeger
5cad287eff backspace.c: Include "config.h".
* libI77/backspace.c: Include "config.h".
	* libI77/close.c: Likewise.
	* libI77/dfe.c: Likewise.
	* libI77/dolio.c: Likewise.
	* libI77/due.c: Likewise.
	* libI77/err.c: Likewise.
	* libI77/fmt.c: Likewise.
	* libI77/fmtlib.c: Likewise.
	* libI77/ftell_.c: Likewise.
	* libI77/ilnw.c: Likewise.
	* libI77/lread.c: Likewise.
	* libI77/open.c: Likewise.
	* libI77/rdfmt.c: Likewise.
	* libI77/rsfe.c: Likewise.
	* libI77/rsne.c: Likewise.
	* libI77/util.c: Likewise.
	* libI77/wrtfmt.c: Likewise.
	* libI77/wsne.c: Likewise.
	* libI77/xwsne.c: Likewise.

	* libI77/config.h.in: Generate with autoheader.

	* libI77/configure.in: Add comments for all AC_DEFINES so that
	autoheader can grok it.
	* libI77/configure: Regenerated.

From-SVN: r42162
2001-05-16 20:59:29 +02:00
Jan Hubicka
5a111a5b31 * gcc.c-torture/compile/20010516-1.c: New test.
From-SVN: r42161
2001-05-16 18:35:08 +00:00
Jan Hubicka
d96ecaf433 re PR rtl-optimization/185 (Internal compiler error in `fixup_var_refs_1', at function.c:207)
* stmt.c (expand_asm_operands): Be able to offload addressof
	expression to memory. (PR optimization/185)

From-SVN: r42160
2001-05-16 17:58:10 +00:00
Jan Hubicka
6e20204ff4 combine.c (combine_simplify_rtx): Set op0_mode to VOIDmode after applying distributive law.
* combine.c (combine_simplify_rtx): Set op0_mode to VOIDmode after
	applying distributive law.

From-SVN: r42159
2001-05-16 16:54:12 +00:00
John David Anglin
5467baef04 pa-hpux10.h (THREAD_MODEL_SPEC): Define.
* pa-hpux10.h (THREAD_MODEL_SPEC): Define.

	* gthr-dce.h (UNUSED): Attribute unused macro.
	(__gthread_key_dtor): Make arguments UNUSED.
	(__gthread_key_delete): Revise for compatibility with DRAFT4
	implementation.

From-SVN: r42157
2001-05-16 16:08:41 +00:00
Tom Tromey
26ec4f47ba SimpleDateFormat.java (parse): Handle non-dst time zones.
* java/text/SimpleDateFormat.java (parse): Handle non-dst time
	zones.

From-SVN: r42156
2001-05-16 15:34:46 +00:00
David Edelsohn
df002c7d8f install.texi: Update AIX information.
* doc/install.texi: Update AIX information.
	* README.RS6000: Remove obsolete file.

From-SVN: r42154
2001-05-16 10:57:06 -04:00
Nathan Sidwell
17b63fd0be Revert XFAIL removal.
From-SVN: r42153
2001-05-16 13:53:43 +00:00
Jakub Jelinek
e65677af0f gcc.c (give_switch): Don't write before start of string.
* gcc.c (give_switch): Don't write before start of string.
	Always append suffix.

Co-Authored-By: Nathan Sidwell <nathan@codesourcery.com>

From-SVN: r42152
2001-05-16 12:23:30 +00:00
Andreas Jaeger
05b7b1c1dc Makefile.in (endfile.o): Add dependency on config.h.
* libI77/Makefile.in (endfile.o): Add dependency on config.h.

	* libI77/endfile.c: Include config.h and sys/types for off_t.

	* libI77/config.h.in: New file.

	* libI77/configure.in: Add test for off_t, create config.h file.
	* libI77/configure: Regenerated.

From-SVN: r42148
2001-05-16 12:26:52 +02:00
Nathan Sidwell
e61fc951a5 cpplex.c (_cpp_lex_token, '/' case): Comments can't appear after stage3.
* cpplex.c (_cpp_lex_token, '/' case): Comments can't appear
	after stage3.

From-SVN: r42144
2001-05-16 09:38:47 +00:00
Nathan Sidwell
cc469ee98e spew.c (read_token): Call yyerror on all unexpected tokens.
cp:
	* spew.c (read_token): Call yyerror on all unexpected tokens.
testsuite:
	* g++.old-deja/g++.other/crash41.C: New test.

From-SVN: r42143
2001-05-16 09:37:21 +00:00
Nathan Sidwell
3f0a9b3563 init.c (member_init_ok_or_else): Take a tree rather than string for name.
cp:
	* init.c (member_init_ok_or_else): Take a tree rather than
	string for name.
	(expand_member_init): Adjust.
testsuite:
	* g++.pt/inherit2.C: Remove XFAIL.
	* g++.pt/crash66.C: New test.

From-SVN: r42142
2001-05-16 09:34:24 +00:00
GCC Administrator
f94557fb73 Daily bump.
From-SVN: r42139
2001-05-16 07:16:10 +00:00
Gerald Pfeifer
f4c5a69aa5 README.ALTOS: Remove obsolete file.
2001-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>

	* README.ALTOS: Remove obsolete file.

From-SVN: r42137
2001-05-16 06:44:48 +00:00
Neil Booth
bf64659388 c-lex.h (save_and_forget_protocol_qualifiers, [...]): Remove deleted functions' prototypes.
* c-lex.h (save_and_forget_protocol_qualifiers,
	forget_protocol_qualifiers, remember_protocol_qualifiers):
	Remove deleted functions' prototypes.

From-SVN: r42135
2001-05-16 06:42:06 +00:00
Jeff Sturm
8fc6a63c64 expr.c (build_class_init): Move MODIFY_EXPR outside of COND_EXPR.
2000-05-02  Jeff Sturm  <jsturm@one-point.com>

	* expr.c (build_class_init): Move MODIFY_EXPR
	outside of COND_EXPR.  Remove variable `call'.

From-SVN: r42134
2001-05-15 23:41:10 -07:00
Neil Booth
0b1cdaf229 c-parse.in (methodtype): New production.
* c-parse.in (methodtype): New production.
	(methoddef, methodproto): Collapse separate '-' and '+'
	handlers into 1.

From-SVN: r42133
2001-05-16 06:34:34 +00:00
Neil Booth
4c521bad98 c-common.h (RID_FIRST_PQ): New.
* c-common.h (RID_FIRST_PQ): New.
	* c-parse.in (objc_pq_context): New.
	(objc parser): Set objc_pq_context rather than calling
	remember_protocol_qualifiers and forget_protocol_qualifiers.
	Don't call save_and_forget_protocol_qualifiers.
	(yylexname): Handle objc protocol qualifiers here.
	* stringpool.c (struct str_header): Replace with sp_hashnode.
	(SP_EMPTY, SP_LEN, SP_TREE, SP_STR, SP_VALID): New.
	(alloc_string): Rename alloc_ident.  Use the SP_ accessors.
	Allocate an IDENTIFIER_NODE for each identifier.
	(FORALL_STRINGS, set_identifier): Delete.
	(FORALL_IDS, expand_string_table, stringpool_statistics): Update.
	(ggc_alloc_string): Use an obstack.
	(get_identifier, maybe_get_identifier, mark_string_hash): Update.
	* tree.h: Update comments.
	(set_identifier): Delete.
	* objc/objc-act.c (N_PQ, saved_pq, saved_not_pq,
	save_and_forget_protocol_qualifiers, forget_protocol_qualifiers,
	remember_protocol_qualifiers): Delete.

From-SVN: r42132
2001-05-16 06:22:15 +00:00
Jeffrey A Law
fca790eb60 flow.c (life_analysis): After life analysis is complete...
* flow.c (life_analysis): After life analysis is complete, do
        an optional scan over insns looking for REG_LABEL notes that
        reference a deleted label.
        (propagate_block_delete_insn): Verify INOTE is a CODE_LABEL
        before peeking at LABEL_NUSES.

From-SVN: r42131
2001-05-15 22:12:33 -06:00
Richard Henderson
48941cb809 unwind-sjlj.c (_Unwind_GetDataRelBase): New.
* unwind-sjlj.c (_Unwind_GetDataRelBase): New.
        (_Unwind_GetTextRelBase): New.

From-SVN: r42129
2001-05-15 20:08:28 -07:00
Benjamin Kosnik
be079e1c08 001-05-15 Benjamin Kosnik <bkoz@redhat.com>
* testsuite_flags.in (query): Add backwards, ext directories.

From-SVN: r42127
2001-05-16 02:03:30 +00:00
Benjamin Kosnik
5846d7f734 eb27.C: Convert.
2001-05-15  Benjamin Kosnik  <bkoz@redhat.com>

	* g++.old-deja/g++.robertl/eb27.C: Convert.

From-SVN: r42126
2001-05-16 01:59:01 +00:00
Mark Mitchell
99d8dccc07 sol2.h (CPLUSPLUS_CPP_SPEC): Define.
* config/sparc/sol2.h (CPLUSPLUS_CPP_SPEC): Define.

	* porting.texi: Correct documentation about handling
	_LARRGEFILE_SOURCE and its ilk.
	* config/os/solaris/solaris2.5/bits/os_defines.h: Remove
	definitions of _XOPEN_SOURCE, _LARGEFILE64_SOURCE, and
	__EXTENSIONS__.
	* config/os/solaris/solaris2.6/bits/os_defines.h: Likewise.
	* config/os/solaris/solaris2.7/bits/os_defines.h: Likewise.

From-SVN: r42125
2001-05-16 01:11:20 +00:00
Tom Tromey
6f4226f843 GregorianCalendar.java (computeTime): Only call getTimeZone() once.
* java/util/GregorianCalendar.java (computeTime): Only call
	getTimeZone() once.

From-SVN: r42121
2001-05-15 21:44:24 +00:00
Loren J. Rittle
d2c4367503 endfile.c (t_runc): Add cast to help case where ftruncate() prototype is somehow missing even...
* libI77/endfile.c (t_runc): Add cast to help case where
	ftruncate() prototype is somehow missing even though autoconf
	test found it properly.

From-SVN: r42120
2001-05-15 21:24:41 +00:00
Zack Weinberg
7edc73b46a inserters_extractors.cc, [...]: Replace multi-line string constants with C89-style concatenated string constants.
2001-05-15  Zack Weinberg  <zackw@stanford.edu>

        * testsuite/21_strings/inserters_extractors.cc,
        testsuite/27_io/istream_unformatted.cc,
        testsuite/27_io/stringstream.cc:
        Replace multi-line string constants with C89-style
        concatenated string constants.

From-SVN: r42116
2001-05-15 20:46:50 +00:00
Geoffrey Keating
c53c4afc0a objc-act.c (handle_class_ref): Use rest_of_decl_compilation so that CHOOSE_SECTION gets used.
* objc/objc-act.c (handle_class_ref): Use rest_of_decl_compilation
	so that CHOOSE_SECTION gets used.

From-SVN: r42114
2001-05-15 19:54:53 +00:00
Geoffrey Keating
50c30603fa sysv4.h (ASM_PREFERRED_EH_DATA_FORMAT): Treat TARGET_RELOCATABLE like flag_pic for now.
* config/rs6000/sysv4.h (ASM_PREFERRED_EH_DATA_FORMAT): Treat
	TARGET_RELOCATABLE like flag_pic for now.

From-SVN: r42113
2001-05-15 19:50:49 +00:00
David Edelsohn
a51ccef3e8 fix typo
From-SVN: r42112
2001-05-15 15:29:44 -04:00
David Edelsohn
78e1b90d92 rs6000.md (movdi splitter): Sign extend more efficiently.
* rs6000.md (movdi splitter): Sign extend more efficiently.
	* rs6000.c (reg_or_arith_cint_operand): Redefine 64-bit constant
	to "long long" valid on 32-bit and 64-bit hosts.
	(logical_operand): Cast trunc_int_for_mode rturn value.
	(rs6000_emit_move): Shift macro to encapsulate variable.
	(rs6000_va_start): Use HOST_WIDE_INT_PRINT_DEC.
	(rs6000_emit_{prologue,epilogue}): EH regno is unsigned but
	plus_constant requires signed argument.

From-SVN: r42111
2001-05-15 15:27:13 -04:00
Tom Tromey
48187504f8 class.c (build_utf8_ref): Don't generate identifier based on utf8const contents.
* class.c (build_utf8_ref): Don't generate identifier based on
	utf8const contents.

From-SVN: r42110
2001-05-15 18:20:57 +00:00
Loren J. Rittle
6f9b26b05c * gthr-posix.h: Make additional pthread-* functions weak.
From-SVN: r42107
2001-05-15 16:29:06 +00:00
Jan Hubicka
66aa2d308b * recog.c (apply_change_group): Avoid unneeded validating.
From-SVN: r42106
2001-05-15 11:55:42 +00:00
Nick Clifton
5be598f65e Add new test - do not warn about (non-)redundant friend declaration.
From-SVN: r42105
2001-05-15 07:55:53 +00:00
Nick Clifton
8d0cb60df4 Move ChangeLog entry to correct file
From-SVN: r42104
2001-05-15 07:39:52 +00:00
GCC Administrator
04466dc874 Daily bump.
From-SVN: r42103
2001-05-15 07:16:42 +00:00
Loren J. Rittle
af22667e53 * gcc_update (touch_files): Enhance make portability.
From-SVN: r42100
2001-05-15 04:58:07 +00:00
David Edelsohn
0d30d43586 rs6000.c (num_insns_constant_wide): Constants are sign-extended.
* rs6000.c (num_insns_constant_wide): Constants are sign-extended.
        (num_insns_constant): CONST_INT can be 64-bits.

From-SVN: r42099
2001-05-15 00:26:33 -04:00
Mark Mitchell (admin)
0239bfdd63 * gcc.dg/ultrasp2.c: Don't run it with -m64 on sparc-*-*.
From-SVN: r42098
2001-05-15 02:45:32 +00:00
Stan Shebs
5fa5a27cce darwin.h (LIB_SPEC): Just use -lSystem.
* config/darwin.h (LIB_SPEC): Just use -lSystem.
        (LIBGCC_SPEC): Don't define.

From-SVN: r42094
2001-05-15 02:17:14 +00:00