Commit Graph

26856 Commits

Author SHA1 Message Date
Nathan Sidwell
f03eebe325 tinfo2.cc (__ptr_to_member_data): Rename to ...
* tinfo2.cc (__ptr_to_member_data): Rename to ...
	(__pointer_to_member_data): ... here. Adjust.
	* rtti.c (create_tinfo_types): Adjust.

From-SVN: r32562
2000-03-15 17:17:45 +00:00
Tom Tromey
beca355843 * libjava.compile/pr176.java: New file, for PR gcj/176.
From-SVN: r32561
2000-03-15 16:36:44 +00:00
Jan Hubicka
369e59b1c1 i386.md (movhi_1): Promote movw imm...
* i386.md (movhi_1): Promote movw imm, reg to movl imm, reg and
	movw reg, reg to movzwl reg, reg on PARTIAL_REGISTER_STALL machines.
	* i386.c (pentiumpro_cost): Set mul cost to 4.
	(x86_use_movx): Set for PPro.

From-SVN: r32560
2000-03-15 12:34:40 +00:00
Jan Hubicka
5f677a9ee7 i386.md (ix86_compute_frame_size): stack_alignment_needed is STACK_BOUNDARY for empty frames now.
* i386.md (ix86_compute_frame_size): stack_alignment_needed is
	STACK_BOUNDARY for empty frames now.

From-SVN: r32559
2000-03-15 12:10:59 +00:00
Nathan Sidwell
1f4cb92b42 cp-tree.h (CPTI_REF_DESC_TYPE, [...]): Remove.
* cp-tree.h (CPTI_REF_DESC_TYPE, ref_desc_type_node): Remove.
	* decl.c (ref_desc_type_node): Undocument.
	* rtti.c (ptr_ref_initializer): Rename to ...
	(ptr_initializer): ... here. Adjust comments.
	(ptmd_initializer): Fix comment thinko.
	(synthesize_tinfo_var): Remove REFERENCE_TYPE case.
	(create_tinfo_types): Remove ref_desc_type_node init.
	* tinfo2.cc (__reference_type_info): Remove.

From-SVN: r32558
2000-03-15 10:40:27 +00:00
Nathan Sidwell
f78c7bc628 decl.c (cp_finish_decl): Remove obsolete comment.
* decl.c (cp_finish_decl): Remove obsolete comment.

	* typeck.c (build_ptrmemfunc1): Kill uninitialized warning.

From-SVN: r32557
2000-03-15 09:45:39 +00:00
Alexandre Petit-Bianco
324ed8fdf2 re GNATS gcj/172 (compiler rejects inner-class argument to inner-class constructor)
Tue Mar 14 17:15:41 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (register_incomplete_type): Fixed initialization of
	JDEP_ENCLOSING.

(This is a fix to the gcj PR #172:
 http://sourceware.cygnus.com/ml/java-prs/2000-q1/msg00169.html)

From-SVN: r32556
2000-03-15 01:30:39 -08:00
Jeff Law
368cdff873 Daily bump.
From-SVN: r32555
2000-03-15 01:45:07 -07:00
Bryce McKinlay
25ceeb830e * libjava.compile/PR140.xfail: New file.
From-SVN: r32553
2000-03-15 03:23:04 +00:00
Bryce McKinlay
37ce3e058d pr172.java: Correct classname to match file name.
2000-03-15  Bryce McKinlay  <bryce@albatross.co.nz>

        * libjava.compile/pr172.java: Correct classname to match file name.
        * libjava.compile/pr174.java: ditto. Remove superfluous main()
        method.

From-SVN: r32552
2000-03-15 03:14:24 +00:00
Tom Tromey
87ee36a8d9 * libjava.compile/PR140.java: New file, for PR gcj/140.
From-SVN: r32551
2000-03-15 01:45:10 +00:00
Mark Mitchell
2d92639501 cp-tree.h: Tweak documentation.
* cp-tree.h: Tweak documentation.
	* class.c (build_vbase_pointer_fields): Layout the fields, too.
	(avoid_overlap): Remove.
	(get_binfo_offset_as_int): New function.
	(dfs_serach_base_offsets): Likewise.
	(layout_nonempty_base_or_field): Likewise.
	(build_base_field): Layout fields here.  Avoid placing two objects
	of the same type at the same address, under the new ABI.
	(build_base_fields): Adjust accordingly.
	(create_vtable_ptr): Return the new field, but don't attach it to
	TYPE_FIELDS.
	(remove_base_field): Remove.
	(remove_base_fields): Remove.
	(layout_basetypes): Adjust accordingly.
	(layout_class_type): Call layout_field for each field, rather than
	just making a wholesale call to layout_type.

From-SVN: r32550
2000-03-15 00:46:47 +00:00
Mark Mitchell
5c24fba69a cp-tree.h: Tweak documentation.
* cp-tree.h: Tweak documentation.
	* class.c (build_vbase_pointer_fields): Layout the fields, too.
	(avoid_overlap): Remove.
	(get_binfo_offset_as_int): New function.
	(dfs_serach_base_offsets): Likewise.
	(layout_nonempty_base_or_field): Likewise.
	(build_base_field): Layout fields here.  Avoid placing two objects
	of the same type at the same address, under the new ABI.
	(build_base_fields): Adjust accordingly.
	(create_vtable_ptr): Return the new field, but don't attach it to
	TYPE_FIELDS.
	(remove_base_field): Remove.
	(remove_base_fields): Remove.
	(layout_basetypes): Adjust accordingly.
	(layout_class_type): Call layout_field for each field, rather than
	just making a wholesale call to layout_type.

From-SVN: r32549
2000-03-15 00:16:21 +00:00
Mark Mitchell
cc9d4a85d7 stor-layout.c (layout_union): Remove.
* stor-layout.c (layout_union): Remove.
	(layout_union_field): New function, split out from layout_union.
	(finish_union_layout): Likewise.
	(layout_field): Handle unions by calling layout_union_field.
	(finish_record_layout): Handle unions.
	(layout_type): Combine RECORD_TYPE, UNION_TYPE, and
	QUAL_UNION_TYPE handling.

From-SVN: r32548
2000-03-15 00:12:37 +00:00
Jan Hubicka
8901decfba flow.c (fixup_reorder_chain): Avoid double labels in the basic block...
* flow.c (fixup_reorder_chain): Avoid double labels in the basic block;
        end of basic block is jump_insn, not barrier; use create_basic_block
        instead of creating basic block by hand.

From-SVN: r32547
2000-03-14 22:50:19 +00:00
Tom Tromey
90a883ae6b jni.cc (mangled_name): Fixed assertion.
* jni.cc (mangled_name): Fixed assertion.
	(JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
	turned assert into actual failure.

From-SVN: r32546
2000-03-14 21:59:54 +00:00
Jason Eckhardt
0edd203b8d flow.c (reorder_basic_blocks): Account for barriers when writing over NEXT_INSN (last_bb->end).
* flow.c (reorder_basic_blocks): Account for barriers when writing
	over NEXT_INSN (last_bb->end).
	(verify_flow_info): Add check for missing barriers.

From-SVN: r32545
2000-03-14 21:21:18 +00:00
Zack Weinberg
24dc027c9a Delete useless, generated texinfo index
From-SVN: r32544
2000-03-14 21:18:29 +00:00
Andrew Haley
d77a712d1d check-init.c (check_init): Add new cases for unary and binary tree nodes.
2000-02-14  Andrew Haley  <aph@cygnus.com>

        * check-init.c (check_init): Add new cases for unary and binary
        tree nodes.

From-SVN: r32543
2000-03-14 20:54:55 +00:00
Jeffrey A Law
7924327ea4 * gcc.c-torture/execute/20000314-3.c: New test.
From-SVN: r32542
2000-03-14 13:30:10 -07:00
Greg McGary
e3600af469 c-parse.y, [...]: Regenerate.
* c-parse.y, c-parse.c, c-parse.h: Regenerate.
	* objc/objc-parse.y, objc/objc-parse.c: Regenerate.

From-SVN: r32541
2000-03-14 19:54:04 +00:00
Greg McGary
4b4f19ec78 c-lex.h (enum rid): Add RID_BOUNDED & RID_UNBOUNDED.
* c-lex.h (enum rid): Add RID_BOUNDED & RID_UNBOUNDED.
	* c-lex.c (init_lex): Handle RID_BOUNDED & RID_UNBOUNDED.
	* c-parse.gperf (__bounded, __bounded__, __ptrbase, __ptrbase__,
	__ptrextent, __ptrextent__, __ptrvalue, __ptrvalue__,
	__unbounded, __unbounded__): New keywords.
	* c-parse.in (PTR_VALUE PTR_BASE PTR_EXTENT): New tokens.

From-SVN: r32540
2000-03-14 19:42:11 +00:00
Tom Tromey
199504d153 * libjava.compile/pr172.java: New file, for PR gcj/172.
From-SVN: r32539
2000-03-14 18:37:18 +00:00
Bernd Schmidt
eab5c70a03 Add cselib; use it in loop and reload_cse_regs
From-SVN: r32538
2000-03-14 18:36:18 +00:00
Tom Tromey
4bdf01f210 * libjava.compile/pr174.java: New file, for PR gcj/174.
From-SVN: r32537
2000-03-14 18:35:02 +00:00
Bernd Schmidt
8c5d513f17 Some cleanups/additions for hashtables
From-SVN: r32536
2000-03-14 18:28:45 +00:00
Nick Clifton
3ac63d9488 Fix spec string parsing bugs
From-SVN: r32535
2000-03-14 18:08:35 +00:00
Richard Earnshaw
c487e48467 function.c (prepare_function_start): Correctly initialize cfun->stack_alignment_needed.
* function.c (prepare_function_start): Correctly initialize
cfun->stack_alignment_needed.

From-SVN: r32534
2000-03-14 17:48:48 +00:00
Zack Weinberg
5648866613 cppfiles.c (find_include_file): Don't assume nshort is a substring of name.
* cppfiles.c (find_include_file): Don't assume nshort is a
	substring of name.

From-SVN: r32533
2000-03-14 17:25:24 +00:00
Jeffrey A Law
07fd50eab4 * gcc.c-torture/execute/20000314-2.c: New test.
From-SVN: r32532
2000-03-14 09:49:03 -07:00
Jeffrey A Law
263ac0d832 * gcc.c-torture/compile/20000314-2.c: New test.
From-SVN: r32531
2000-03-14 09:28:08 -07:00
Jeffrey A Law
eb61c012cf * gcc.c-torture/execute/2000314-1.c: New test.
From-SVN: r32530
2000-03-14 09:10:27 -07:00
Jeffrey A Law
4fa241f2f2 New test.
From-SVN: r32529
2000-03-14 09:06:24 -07:00
Jeffrey A Law
88624c0e27 configure.in (hppa configurations): Add pa32-regs.h to the list of tm files as appropriate.
* configure.in (hppa configurations): Add pa32-regs.h to the
        list of tm files as appropriate.
        * configure: Rebuilt.
        * pa.c (compute_frame_size): Remove explicit knowledge about FP
        register numbering.
        (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
        (fmpyaddoperands, fmpysuboperands): Likewise.
        * pa.h: Remove various definitions which depend on knowing
        how registers are numbered.
        * pa32-regs.h: New file with PA32 register numbering specific
        definitions.

From-SVN: r32527
2000-03-14 08:47:24 -07:00
Richard Henderson
1e7f0a48cf regmove.c (combine_stack_adjustments): New.
* regmove.c (combine_stack_adjustments): New.
        (stack_memref_p, single_set_for_csa): New.
        (free_csa_memlist, record_one_stack_memref): New.
        (try_apply_stack_adjustment): New.
        (combine_stack_adjustments_for_block): New.
        * rtl.h (combine_stack_adjustments): Declare.
        * toplev.c (rest_of_compilation): Call it.

        * i386.md: Revert 2000-01-16 change.

From-SVN: r32526
2000-03-14 06:38:52 -08:00
Martin v. Löwis
d5fb67d394 * gccbug.in: Add web category, gcc specific classes.
From-SVN: r32525
2000-03-14 09:50:58 +00:00
Nathan Sidwell
b451555aa1 * stor-layout.c (finalize_record_size): Fix typo.
From-SVN: r32524
2000-03-14 09:36:03 +00:00
Jeff Law
9f056e3b10 Daily bump.
From-SVN: r32523
2000-03-14 01:45:07 -07:00
Stan Shebs
9d27bffe6d c-typeck.c (c_alignof): Error on incomplete types.
* c-typeck.c (c_alignof): Error on incomplete types.
        * extend.texi (Alignment): Document this.

From-SVN: r32522
2000-03-14 00:24:21 -08:00
Jeff Sturm
d9420976f2 Jeff Sturm <jsturm@sigma6.com>
* except.c (expand_throw): Fix typo in _Jv_Sjlj_Throw.

From-SVN: r32521
2000-03-14 00:11:38 -08:00
Alexandre Petit-Bianco
dde1da7265 parse.y (resolve_package): Set `next' once a type name has been progressively discovered.
2000-03-13  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (resolve_package): Set `next' once a type name has been
	progressively discovered.
	(resolve_qualified_expression_name): Propagate resolution only if
	there are remaining qualifiers. Take into account `q' might have
	been cleared after re-qualification.
	* parse.y (patch_method_invocation): New local `resolved'.
  	Section dealing with qualified expression rewritten to use
 	resolve_field_access.

From-SVN: r32520
2000-03-13 23:51:42 -08:00
Zack Weinberg
168d3732aa cppfiles.c: Include mkdeps.h.
* cppfiles.c: Include mkdeps.h.
	(find_include_file, read_include_file): Remove _cpp_ prefix
	from name, make static.
	(_cpp_execute_include): New function, broken out of
	do_include.

	* cpplib.c: Don't include mkdeps.h.
	(struct directive): Remove type field. Reorder entries.  The
	function takes only one argument.
	(struct if_stack): Make type field an int.
	(directive_table): Rename to dtable.  Generate it, the
	prototypes of the directive handlers, and the enum for the
	directive numbers, from a template macro.
	(do_ifndef, do_include_next, do_import): New functions.
	(do_define, do_include, do_endif, do_ifdef, do_if, do_else,
	do_undef, do_line, do_elif, do_error, do_pragma, do_warning,
	do_ident, do_assert, do_unassert, do_sccs): Take only one
	argument.
	(do_sccs): Define always, but alter behavior based on
	SCCS_DIRECTIVE.
	(_cpp_handle_directive, consider_directive_while_skipping):
	Restructure for new directive table layout.

	(pass_thru_directive): Take a directive number, not a pointer
	to a struct directive.
	(parse_include): New function, broken out of do_include.
	(do_include, do_import, do_include_next): Use parse_include
	and _cpp_execute_include.
	(do_elif, do_else): Test for T_ELSE specifically when checking
	for #elif/#else after #else.
	(parse_ifdef): New function, broken out of do_ifdef.
	(validate_else): Expect a name arg without a leading #.
	(if_directive_name): Delete.
	(cpp_define, cpp_assert, cpp_undef, cpp_unassert): Call
	directive handlers with only one argument.

	* cpphash.h: Update prototypes.
	(enum node_type): Remove entries for directives.
	* Makefile.in: Update dependencies.

From-SVN: r32519
2000-03-14 06:34:11 +00:00
Zack Weinberg
194ae3f644 cpphash.c (dump_hash_helper): Only dump nodes of type T_MACRO.
* cpphash.c (dump_hash_helper): Only dump nodes of type
	T_MACRO.  Emit a newline after each definition.

From-SVN: r32518
2000-03-14 06:10:27 +00:00
Alexandre Petit-Bianco
c2952b018a Added Java 1.1 language features.
From-SVN: r32517
2000-03-13 21:01:05 -08:00
Martin v. Löwis
e4476d1cbd gccbug.in: New file.
* gccbug.in: New file.
	* configure.in (all_outputs): Add gccbug.
	* Makefile.in (install-common): Install gccbug.
	(GCCBUG_INSTALL_NAME): New variable.
	* configure: Rebuilt.

From-SVN: r32515
2000-03-13 23:51:26 +00:00
Jason Merrill
c3b247b445 function.c (put_var_into_stack): Use type_for_mode to calculate part_type.
* function.c (put_var_into_stack): Use type_for_mode to calculate
        part_type.  Use MEM_SET_IN_STRUCT_P.
        * expr.c (store_field): Handle CONCAT.
        (store_constructor): Use fields_length.
        * tree.c (fields_length): New fn.
        * tree.h: Declare it.

From-SVN: r32514
2000-03-13 17:54:03 -05:00
Zack Weinberg
45b966db65 Makefile.in (LIBCPP_OBJS): Add cpplex.o.
* Makefile.in (LIBCPP_OBJS): Add cpplex.o.
	(cpplex.o): New target.
	* po/POTFILES.in: Add cpplex.c.

	* cpplex.c (_cpp_grow_token_buffer, null_cleanup,
	cpp_push_buffer, cpp_pop_buffer, cpp_scan_buffer,
	cpp_expand_to_buffer, cpp_buf_line_and_col, cpp_file_buffer,
	skip_block_comment, skip_line_comment, skip_comment,
	copy_comment, _cpp_skip_hspace, _cpp_skip_rest_of_line,
	_cpp_parse_name, skip_string, parse_string,
	_cpp_parse_assertion, cpp_get_token, cpp_get_non_space_token,
	_cpp_get_directive_token, find_position,
	_cpp_read_and_prescan, _cpp_init_input_buffer): Move here.
	(maybe_macroexpand, _cpp_lex_token): New functions.

	* cpplib.c (SKIP_WHITE_SPACE, eval_if_expr, parse_set_mark,
	parse_goto_mark): Delete.
	(_cpp_handle_eof): New function.
	(_cpp_handle_directive): Rename from handle_directive.
	(_cpp_output_line_command): Rename from output_line_command.
	(do_if, do_elif): Call _cpp_parse_expr directly.
	* cppfiles.c (_cpp_read_include_file): Don't call
	init_input_buffer here.
	* cpphash.c (quote_string): Move here, rename _cpp_quote_string.
	* cppexp.c (_cpp_parse_expr): Diddle parsing_if_directive
	here; pop the token_buffer and skip the rest of the line here.
	* cppinit.c (cpp_start_read): Call _cpp_init_input_buffer
	here.

	* cpphash.h (CPP_RESERVE, CPP_IS_MACRO_BUFFER, ACTIVE_MARK_P):
	Define here.
	(CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK, CPP_SET_MARK,
	CPP_GOTO_MARK): New macros.
	(_cpp_quote_string, _cpp_parse_name, _cpp_skip_rest_of_line,
	_cpp_skip_hspace, _cpp_parse_assertion, _cpp_lex_token,
	_cpp_read_and_prescan, _cpp_init_input_buffer,
	_cpp_grow_token_buffer, _cpp_get_directive_token,
	_cpp_handle_directive, _cpp_handle_eof,
	_cpp_output_line_command): Prototype them here.
	* cpplib.h (enum cpp_token): Add CPP_MACRO.
	(CPP_RESERVE, get_directive_token, cpp_grow_buffer,
	quote_string, output_line_command): Remove.

From-SVN: r32513
2000-03-13 22:01:08 +00:00
Hans Boehm
46089b8642 typeck.c (build_prim_array_type): Correctly set the high word too.
Mon Mar 13 11:36:51 2000  Hans Boehm <boehm@acm.org>

	* typeck.c (build_prim_array_type): Correctly set the high word too.

From-SVN: r32512
2000-03-13 13:36:09 -08:00
Bernd Schmidt
f0c988c823 Fix recently introduced error in expand_end_case.
From-SVN: r32511
2000-03-13 19:35:38 +00:00
Jason Merrill
93ca4ba766 decl.c (grokfndecl): Set TREE_NOTHROW if TYPE_NOTHROW_P.
* decl.c (grokfndecl): Set TREE_NOTHROW if TYPE_NOTHROW_P.

        * except.c (dtor_nothrow): New fn.
        (do_pop_exception): Use it.  Take type parm.
        (push_eh_cleanup): Take type parm.
        (expand_start_catch_block): Pass it.
        (build_eh_type_type_ref): Accept null type.

From-SVN: r32510
2000-03-13 14:23:34 -05:00