Commit Graph

27127 Commits

Author SHA1 Message Date
Jan Hubicka
43bc5f13ad calls.c (emit_library_call_value_1): Break out from ...; handle VOIDmode function calls too.
* calls.c (emit_library_call_value_1): Break out from ...; handle
	VOIDmode function calls too.
	(emit_library_call_value): ... here.
	(emit_library_call): Implement by calling emit_library_call_value_1.

From-SVN: r32587
2000-03-16 15:52:13 +00:00
Jan Hubicka
774e6b37bb calls.c (expand_call): Do sanity checking on arg_space_so_far.
* calls.c (expand_call): Do sanity checking on arg_space_so_far.
	Update arg_space_so_far on stack adjustments.
	(emit_library_call, emit_library_call_value): Likewise; take into
	account arg_space_so_far and pending_stack_adjust when calculcating
	the boundary.

From-SVN: r32586
2000-03-16 15:02:42 +00:00
Jason Eckhardt
295ae8170c flow.c: Move all basic block reordering code into its own file.
* flow.c: Move all basic block reordering code into its own file.
	(create_basic_block): Externalize.
	* bb-reorder.c: New file. Copy all basic block reordering code from
	flow.c to this file.
	(reorder_basic_blocks): Fix fencepost error in for-loop.
	(reorder_basic_blocks): Remove braces from single statement for-loops.
	* basic-block.h: Add declaration for create_basic_block.
	* Makefile.in: Add rules for bb-reorder.o.

From-SVN: r32585
2000-03-16 14:56:55 +00:00
Neil Booth
e1e97c4f15 cppinit.c (handle_option): Implement #unassert directive as -A- command line option.
2000-03-16  Neil Booth  <NeilB@earthling.net>

	* cppinit.c (handle_option):  Implement #unassert directive
        as -A- command line option.
	(print_help):  Update.
	* cpptexi.c:  Update.

From-SVN: r32584
2000-03-16 14:15:17 +00:00
Hans-Peter Nilsson
d26eedb657 * md.texi (Standard Names): Document `jump'.
From-SVN: r32583
2000-03-16 12:18:18 +00:00
Nathan Sidwell
5add10fd81 * decl2.c (grokfield): Bail out if type is error_mark_node.
From-SVN: r32582
2000-03-16 10:13:28 +00:00
Jeff Law
1202035d01 Daily bump.
From-SVN: r32581
2000-03-16 01:45:07 -07:00
Jeffrey A Law
abc61fd406 * Makefile.in (partition.o): Depend on config.h
From-SVN: r32580
2000-03-16 01:37:47 -07:00
Jason Merrill
54cea12317 calls.c (emit_call_1): Nothrow functions can still have nonlocal gotos.
* calls.c (emit_call_1): Nothrow functions can still have nonlocal
        gotos.

From-SVN: r32579
2000-03-16 02:44:30 -05:00
Zack Weinberg
87b824c3ed Regenerate
From-SVN: r32578
2000-03-16 04:25:12 +00:00
Geoffrey Keating
d471b5ca4f Add self as rs6000 maintainer.
From-SVN: r32577
2000-03-16 03:28:44 +00:00
Geoff Keating
9ebbca7d73 See the ChangeLog on the branch for more details.
* configure.in: Merge in changes from newppc-branch.
	* configure: Regenerate.
	* config/rs6000/*: Merge in changes from newppc-branch.
	Also correct copyright notices.

From-SVN: r32575
2000-03-16 03:16:41 +00:00
Jeffrey A Law
1282214677 acconfig.h (HAVE_GAS_WEAK): New define.
* acconfig.h (HAVE_GAS_WEAK): New define.
        * configure.in (assembler weak support): Check for .weak support.
        * config.in, configure: Rebuilt.
        * pa/som.h (MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL): Only define if
        HAVE_GAS_WEAK is defined.

From-SVN: r32573
2000-03-15 18:58:14 -07:00
Tom Tromey
2c6c322a97 decl.c (init_decl_processing): Set type of `sync_info' to be pointer to Object.
* decl.c (init_decl_processing): Set type of `sync_info' to be
	pointer to Object.

	* boehm.c (get_boehm_type_descriptor): Correctly compute `bits'.
	Correctly compute bit number for current slot.  Zero `high' and
	`low' in DS_LENGTH case.  Don't skip inherited fields.  Use
	mark_reference_fields.
	(mark_reference_fields): New function.

From-SVN: r32572
2000-03-16 01:32:12 +00:00
Nick Clifton
d7d01975ad Fix gcc tescase compile/990527-1.c by not passing %c to asm_fprintf
From-SVN: r32569
2000-03-15 22:06:16 +00:00
Zack Weinberg
e576beb079 cppfiles.c (open_include_file): New function.
* cppfiles.c (open_include_file): New function.
	(find_include_file, cpp_read_file): Use it.

From-SVN: r32568
2000-03-15 22:03:37 +00:00
Tom Tromey
878885b411 [multiple changes]
2000-03-15  Tom Tromey  <tromey@cygnus.com>

	* java/io/natFileDescriptorWin32.cc (winerr): Now static.

	* prims.cc (win32_exception_handler): Reformatted.

	* include/win32-threads.h (_Jv_HaveCondDestroy): New define.
	(_Jv_HaveMutexDestroy): Likewise.

2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>

	* java/io/natFileDescriptorWin32.cc: New file.
	* java/io/natFileWin32.cc: New file.
	* java/net/natInetAddress.cc: Added conditional inclusion of
	Windows / Winsock headers.
	* java/net/natPlainDatagramSocketImpl.cc: Added conditional
	inclusion of Windows / Winsock headers.
	* java/net/natPlainSocketImpl.cc: Added conditional inclusion of
	Windows / Winsock headers.
	* include/win32-signal.h: New file.
	* include/win32-threads.h: New file.
	* win32-threads.cc: New file.
	* exception.cc (win32_get_restart_frame): New function.
	* prims.cc (win32_exception_handler): New function.
	(main_init) Performs Winsock initialisation.
	(main_init) Installs exeception handler.

From-SVN: r32567
2000-03-15 22:03:19 +00:00
Jason Merrill
1a7b4c697c * cpphash.c (dump_hash_helper): Take the slot, not the element.
From-SVN: r32566
2000-03-15 16:54:47 -05:00
Jason Eckhardt
2ca19d5e9e * flow.c (verify_flow_info): Check for unconditional return.
From-SVN: r32565
2000-03-15 20:24:35 +00:00
Jim Wilson
9525c69003 Patches to make libobjc build.
* config/ia64/ia64.md (restore_stack_nonlocal): New.
	* config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Delete padding nop.
	(__ia64_restore_stack_nonlocal): New.
	* config/ia64/t-ia64 (LIB1ASMFUNCS): Add __restore_stack_nonlocal.

From-SVN: r32564
2000-03-15 11:35:26 -08:00
Alexandre Oliva
1690826f33 cpphash.c (collect_formal_parameters): Do not complain about parameter names that just start with `__VA_ARGS__'.
* cpphash.c (collect_formal_parameters): Do not complain about
parameter names that just start with `__VA_ARGS__'.

From-SVN: r32563
2000-03-15 18:46:09 +00:00
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