Commit Graph

23256 Commits

Author SHA1 Message Date
David Edelsohn 5f59ecb700 [multiple changes]
Mon Aug  2 16:15:57 1999  David Edelsohn  <edelsohn@gnu.org>

	* rs6000/aix43.h (SUBTARGET_SWITCHES): Use -m64 and -m32 instead of
	-maix64 and -maix32.
	(ASM_SPEC, ASM_CPU_SPEC, CPP_SPEC, CPP_CPU_SPEC, LIB_SPEC,
	LINK_SPEC): Change appropriately.
	* rs6000/rs6000.c (short_cint_operand): Use CONST_OK_FOR_LETTER_P.
	(u_short_cint_operand): Likewise.
	* rs6000/rs6000.md (movdi splitters): Add TARGET_POWERPC64 support
	for 64-bit hosts.
	* rs6000/t-aix43 (MULTILIB): Change to -m64.

	* invoke.texi (RS/6000 Submodel): Document 64-bit processor options.

Mon Aug  2 16:15:57 1999  Geoff Keating  <geoffk@cygnus.com>

	* rs6000/rs6000.c (num_insns_constant_wide): Correct
	for type promotion.
	(add_operand): Get test correct for 64-bit HOST_WIDE_INT.
	(non_add_cint_operand): Likewise.
	(logical_operand): Likewise.
	(non_logical_cint_operand): Likewise.
	(print_operand): Correct printf()s for 64-bit HOST_WIDE_INT.
	(print_operand_address): Correct printf() for 64-bit HOST_WIDE_INT.
	(rs6000_select_rtx_section): Suppress warning.
	(small_data_operand): Suppress warning.
	(rs6000_got_register): Suppress warning.
	* rs6000/rs6000.md (andsi3): HOST_WIDE_INT is a signed
	type, so `J' is generally the wrong constraint for a SImode value;
	use `L' instead.
	(andsi3_internal2): Likewise.
	(andsi3_internal3): Likewise.
	(iorsi3_internal1): Likewise.
	(xorsi3_internal1): Likewise.
	(movsi): Likewise.
	(movsf_softfloat): Likewise.
	(scc insns): Likewise.
	(movsi+2): Preserve sign bits of SImode constant.
	(floatsidf2_internal+1): Sign-extend SImode constant correctly.
	(movdf+1): Sign-extend properly.
	(movdi_32+1): Sign-extend properly.
	(scc insns): Sign-extend properly.

	* md.texi (RS/6000 EXTRA_CONSTRAINTS): Update documentation for J,
	K, L, and T.

From-SVN: r28406
1999-08-02 16:20:12 -04:00
Richard Henderson 981a828ea1 alpha.c (override_options): Move ev6 alpha_tp frobbing out of -mcpu parsing code.
* alpha.c (override_options): Move ev6 alpha_tp frobbing out of
        -mcpu parsing code.
        (print_operand): Notice alpha_fptm not alpha_tp for sw completion.
        * alpha.md (all fp insns): Likewise.

From-SVN: r28404
1999-08-02 12:37:58 -07:00
Geoffrey Keating 0865c6314e Unroll my commit of 1999/08/01 16:14:58, there was a communications mixup
about its status.

From-SVN: r28403
1999-08-02 15:44:50 +00:00
Nick Clifton ccc0b2f9b5 Only define STRICT_ALIGNMENT if it is not already defined.
From-SVN: r28402
1999-08-02 14:06:07 +00:00
Jeffrey A Law b3d9ecf00b pa.c (legitimize_pic_address): Clarify comments.
* pa.c (legitimize_pic_address): Clarify comments.  Do not call the
        pic_load_label generator directly.
        * pa.md (pic_load_label): Clarify comments.  Remove modes on operands.
        No longer a named pattern.

From-SVN: r28401
1999-08-02 03:45:16 -06:00
Jeff Law 62cce9f627 I'm a dufus.
From-SVN: r28400
1999-08-02 03:29:33 -06:00
Nick Clifton 96843fa263 Call force_operand if X does not satisfy general_operand
From-SVN: r28399
1999-08-02 08:40:22 +00:00
Jeff Law 720988020d Daily bump.
From-SVN: r28398
1999-08-02 01:45:46 -06:00
Jeffrey A Law 93b9cce7ad fix-header.c (main): When testing for CONTINUED, use string equality, not pointer equality.
* fix-header.c (main): When testing for CONTINUED, use string
        equality, not pointer equality.

From-SVN: r28396
1999-08-02 01:37:40 -06:00
Dan Nicolaescu 110b03026a * sparc.c (sparc_block_profiler): Use the %g2 register, not %o0.
From-SVN: r28395
1999-08-02 01:31:09 -06:00
Mark Mitchell d7cf46ac0e New tests
From-SVN: r28393
1999-08-02 06:44:33 +00:00
Mark Mitchell 09dd27d417 * call.c (build_conditional_expr): Fix typo in comment.
From-SVN: r28391
1999-08-02 06:19:31 +00:00
Jeffrey A Law a33ab1b1de * gcc.c-torture/compile/990801-2.c: New test.
From-SVN: r28390
1999-08-01 23:57:31 -06:00
Mark Mitchell d080bbfa45 * splay-tree.h (splay_tree_insert): Return the new node.
From-SVN: r28389
1999-08-02 05:54:50 +00:00
Jeffrey A Law eec9ef57bf cse.c (cse_insn): Fix loop which deletes insns after a jump that has become an unconditional jump.
* cse.c (cse_insn): Fix loop which deletes insns after a jump
        that has become an unconditional jump.

From-SVN: r28388
1999-08-01 23:53:02 -06:00
Jeffrey A Law 63429dd7f8 m68k.c (output_function_prologue): Fix typo in CPU32 case.
* m68k.c (output_function_prologue): Fix typo in CPU32 case.
        (output_function_epilogue): Similarly.

From-SVN: r28382
1999-08-01 22:49:11 -06:00
Jeffrey A Law 568276d716 * gcc.c-torture/compile/990801-1.c: New test.
From-SVN: r28381
1999-08-01 22:31:35 -06:00
Alexandre Oliva 130e63de4a configure.in: Check for bstring.h.
1999-08-01  Alexandre Oliva  <oliva@dcc.unicamp.br>

	* configure.in: Check for bstring.h.
	* configure, include/config.h.in: Rebuilt.
	* java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
	* java/net/natPlainSocketImpl.cc: Likewise.

From-SVN: r28378
1999-08-01 23:39:53 +00:00
Bernd Schmidt 73a8b900bd Check in part of an earlier patch that got lost
From-SVN: r28376
1999-08-01 19:16:15 +00:00
Geoff Keating 465e27163d rs6000.c (num_insns_constant_wide): Correct for type promotion.
* config/rs6000/rs6000.c (num_insns_constant_wide): Correct
	for type promotion.
	(add_operand): Get test correct for 64-bit HOST_WIDE_INT.
	(non_add_cint_operand): Likewise.
	(logical_operand): Likewise.
	(non_logical_cint_operand): Likewise.
	(print_operand): Correct printf()s for 64-bit HOST_WIDE_INT.
	(print_operand_address): Correct printf() for 64-bit HOST_WIDE_INT.
	(rs6000_select_rtx_section): Suppress warning.
	(small_data_operand): Suppress warning.
	(rs6000_got_register): Suppress warning.
	* config/rs6000/rs6000.md (andsi3): HOST_WIDE_INT is a signed
	type, so `J' is generally the wrong constraint for a SImode value;
	use `L' instead.
	(andsi3_internal2): Likewise.
	(andsi3_internal3): Likewise.
	(iorsi3_internal1): Likewise.
	(xorsi3_internal1): Likewise.
	(movsi): Likewise.
	(movsf_softfloat): Likewise.
	various unnamed compare insns: Likewise.
	(movsi+2): Preserve sign bits of SImode constant.
	(floatsidf2_internal+1): Sign-extend SImode constant correctly.
	(movdf+1): Preserve high bits of DFmode constant.
	(movdi_32+1): Sign-extend properly.
	various unnamed compare insns: Sign-extend properly.

	* unroll.c (loop_iterations): Convert HOST_WIDE_INT to unsigned
	properly for mode.
	* expmed.c (expand_mult_highpart): Convert HOST_WIDE_INT from unsigned
	properly for mode.
	(expand_divmod): Likewise.
	* optabs.c (expand_fix): Keep HOST_WIDE_INT constants properly signed.
	(expand_binop): Sometimes there is work to do when changing
	the mode of a CONST_INT.

From-SVN: r28375
1999-08-01 16:14:58 +00:00
Bernd Schmidt 3f1d071b7b Backport of GC branch patches part 2: kill stmt status saving.
From-SVN: r28374
1999-08-01 12:07:41 +00:00
Jeff Law 695f7f32ab Daily bump.
From-SVN: r28373
1999-08-01 01:45:07 -06:00
Kaveh R. Ghazi 9490b7d6af * Makefile.in (ALL_CFLAGS): Add '-W -Wall'.
From-SVN: r28372
1999-08-01 04:26:47 +00:00
Tom Tromey db936a7cbd NEWS: Likewise.
* NEWS: Likewise.
	* THANKS: New file.

From-SVN: r28371
1999-08-01 04:04:04 +00:00
Alexandre Oliva 34c5c0e18c configure.in: Check for struct hostent_data and need for -D_REENTRANT for gethostbyname_r...
1999-07-31  Alexandre Oliva  <oliva@dcc.unicamp.br>

	* configure.in: Check for struct hostent_data and need for
	-D_REENTRANT for gethostbyname_r declaration.
	* java/net/natInetAddress.cc: Define _REENTRANT if needed.
	(lookup): Use hostent_data for fixed_buffer.
	* configure, include/config.h.in: Rebuilt.

From-SVN: r28369
1999-08-01 00:14:32 +00:00
Alexandre Oliva 5f67f48f90 libjava.exp (bytecompile_file): Use `env(SUN_JAVAC)', that defaults to javac, as Sun-javac compiler or compatible.
1999-07-31  Alexandre Oliva  <oliva@dcc.unicamp.br>

	* lib/libjava.exp (bytecompile_file): Use `env(SUN_JAVAC)', that
	defaults to javac, as Sun-javac compiler or compatible.
	(libjava_init): Get GCJ from environment if neither GCJ_UNDER_TEST
	nor TOOL_EXECUTABLE are set.  Set `original_ld_library_path' from
	environment.
	(libjava_arguments): Prepend `.' and `$srcdir/$subdir' to
	CLASSPATH, for `support' sources.  Search for libgcj.spec in
	`$objdir/..', by adding -B to GCJ_UNDER_TEST.  Append
	original_ld_library_path to ld_library_path.
	* libjava.mauve/mauve.exp (test_mauve): Set `env(GCJ)' from
	GCJ_UNDER_TEST, calculated just like in libjava.exp.

From-SVN: r28364
1999-07-31 23:52:52 +00:00
Alexandre Oliva 71c7a006e5 mips_sgi_mach_dep.s: Enable PIC option.
1999-07-31  Alexandre Oliva  <oliva@dcc.unicamp.br>

	* mips_sgi_mach_dep.s: Enable PIC option.

From-SVN: r28363
1999-07-31 23:50:05 +00:00
Alexandre Oliva 138607df84 natSystem.cc (arraycopy): Use bcopy if memmove is not available.
1999-07-31  Alexandre Oliva  <oliva@dcc.unicamp.br>

	* java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
	available.  Don't cast memmove args to (void*).
	* configure.in: Do not abort if memmove is not available.

From-SVN: r28360
1999-07-31 23:41:15 +00:00
Joe Buck 048fc68638 gcc.texi: Use terms "GNU Compiler Collection" and "GCC".
* gcc.texi: Use terms "GNU Compiler Collection" and "GCC".
        Also update copyright.

From-SVN: r28359
1999-07-31 07:28:54 -06:00
Bernd Schmidt b384405b34 Backport of GC branch patches part 1: kill eh status saving.
From-SVN: r28357
1999-07-31 12:46:53 +00:00
Jeffrey A Law 6261ede720 pa.c (compute_frame_size): Use STARTINg_FRAME_OFFSET instead of depending on a magic constant value.
* pa.c (compute_frame_size): Use STARTINg_FRAME_OFFSET instead
        of depending on a magic constant value.  Update comments.
        (hppa_expand_prologue): Similarly.

From-SVN: r28356
1999-07-31 04:27:42 -06:00
Jeffrey A Law 1984b4afd6 pa.md (reload_indi, [...]): Allow any register for the original reload register.
* pa.md (reload_indi, reload_outdi): Allow any register for the
        original reload register.

From-SVN: r28355
1999-07-31 04:11:08 -06:00
Jeff Law 33a468251a Daily bump.
From-SVN: r28354
1999-07-31 01:45:08 -06:00
Mark Mitchell 442aa4ec84 call.c (build_conditional_expr): Call convert_from_reference to avoid reference/non-reference type confusion.
* call.c (build_conditional_expr): Call convert_from_reference to
	avoid reference/non-reference type confusion.  Fix typo.

From-SVN: r28353
1999-07-31 06:09:13 +00:00
Jim Wilson 278a994d00 Fix typo in help message.
* cccp.c (print_help): Change marcos to macros.

From-SVN: r28352
1999-07-30 19:43:44 -07:00
Richard Henderson 47620e09d1 Update for label differences.
From-SVN: r28351
1999-07-30 18:26:09 -07:00
Richard Henderson aac3691da5 typeck2.c (initializer_constant_valid_p): Moved to c-common.c.
* typeck2.c (initializer_constant_valid_p): Moved to c-common.c.
        * cp-tree.h (initializer_constant_valid_p): Remove.

From-SVN: r28350
1999-07-30 18:13:32 -07:00
Richard Henderson 7e8176d778 c-typeck.c (initializer_constant_valid_p): Move ...
* c-typeck.c (initializer_constant_valid_p): Move ...
        * c-common.c (initializer_constant_valid_p): ... here.  Use
        FOO_TYPE_P instead of tests against TREE_CODE.  Allow subtraction
        of label addresses.
        * c-common.h (initializer_constant_valid_p): Declare.
        * c-tree.h (initializer_constant_valid_p): Remove.

From-SVN: r28349
1999-07-30 18:13:08 -07:00
Mathias Froehlich 96a0a146e2 sol2-c1.asm: Align the stack.
* config/i386/sol2-c1.asm: Align the stack.
        * config/i386/sol2-gc1.asm: Likewise.

From-SVN: r28348
1999-07-30 16:40:09 -07:00
Vladimir Makarov 8d72ec32f7 sparc.h (ASM_CPU32_DEFAULT_SPEC): Change -Av8 onto -Asparclite for sparc86x.
1999-07-30  Vladimir Makarov  <vmakarov@loony.cygnus.com>

	* config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Change -Av8 onto
 	-Asparclite for sparc86x.
	(CPP_CPU32_DEFAULT_SPEC, CPP_CPU_SPEC): Remove -D__sparc_v8__ for
 	sparc86x.
	(ASM_CPU_SPEC): Use -Asparclite for sparc86x.

From-SVN: r28347
1999-07-30 22:44:08 +00:00
Jakub Jelinek 5cb01b6505 Jakub Jelinek <jj@ultra.linux.cz>
* config/sparc/linux64.h (CC1_SPEC): Preserve CPU specified by
        the user if using the non-default arch size in BI_ARCH configuration.
        * config/sparc/sol2-sld-64.h (CC1_SPEC): Ditto.

        * config/sparc/sparc.md (cmp_mul_set, cmp_udiv_cc_set):
        Fix patterns so that they actually match.
        (cmp_sdiv_cc_set): Ditto, also don't require g0 to be zero.
        (mulsidi3_sp64, const_mulsidi3_sp64): New patterns.
        (const_mulsidi3_sp32): Renamed from const_mulsidi3, only on
        TARGET_HARD_MUL32.
        (mulsidi3): Reflect this in the expand.
        (smulsi3_highpart): Only on TARGET_ARCH32.
        (umulsidi3_sp64, const_umulsidi3_sp64): New patterns.
        (const_umulsidi3_sp32): Renamed from const_umulsidi3.
        (umulsidi3): Reflect this in the expand.
        (umulsi3_highpart): Only on TARGET_ARCH32.
        (divsi3_sp32): Renamed from divsi3, only on TARGET_ARCH32,
        don't require g0 to be zero.
        (udivsi3_sp32): Renamed from udivsi3, only on TARGET_ARCH32.
        ({,u}divsi3): New expands.
        ({,u}divsi3_sp64): New patterns.
        (after lshrdi3_v8plus): Four new patterns to help combiner
        optimizing nested mixed mode shifts.

        * config/sparc/sparc.c (sparc_override_options): Use deprecated
        v8 instructions if optimizing for UltraSPARC I, II, IIi, as it
        speed things up. Don't use them by default on plain v9 in 64bit
        mode, according to what SPAMv9 sais.

        * config/sparc/sparc.h: Fix comments, e.g. Linux already preserves
        top 32 bits of %[og][0-7] in signal handlers.
        Also, TARGET_HARD_MUL32 now is only true for TARGET_ARCH32.

From-SVN: r28346
1999-07-30 14:55:06 -07:00
Kaveh R. Ghazi cd531a2edd Warning fixes:
* expr.c (build_java_soft_divmod): Provide a default case in switch.
        (java_lang_expand_expr): Mark parameters `target', `tmode' and
        `modifier' with ATTRIBUTE_UNUSED.

        * gjavah.c (process_file): Add braces around ambiguous `else'.

        * jcf-dump.c (print_access_flags, localvar_free): Change return
        type to void.

        * parse.y (java_complete_expand_method): Initialize variable
        `exception_copy'.
        (resolve_qualified_expression_name): Likewise for `field_decl'.
        (patch_method_invocation): Likewise for `class_to_search'.
        (qualify_ambiguous_name): Likewise for `name' and `ptr_type'.
        (patch_assignment): Likewise for `lhs_type'.

        * verify.c (verify_jvm_instructions): Remove unused variable
        `caller'.

From-SVN: r28344
1999-07-30 18:31:34 +00:00
Jeffrey A Law 93b69d0f0d pa.md (zvdep_imm32): Renamed from zvdep_imm.
* pa.md (zvdep_imm32): Renamed from zvdep_imm.
        (ashlsi3): Corresponding changes.

From-SVN: r28343
1999-07-30 04:51:02 -06:00
Jeffrey A Law 6fda0f5b2a * pa.c (compute_zdepwi_operands): Renamed from compute_zdepi_operands.
From-SVN: r28342
1999-07-30 03:01:20 -06:00
Jeff Law 59fa4a5936 Daily bump.
From-SVN: r28341
1999-07-30 01:45:09 -06:00
Jeffrey A Law f6b373542c * pa.h (FIRST_PARM_CALLER_OFFSET): Delete.
From-SVN: r28340
1999-07-29 18:38:08 -06:00
Bernd Schmidt 3bccbef63e Fix a cross toolchain build problem
From-SVN: r28339
1999-07-29 18:09:33 +00:00
Nick Clifton 7d505b82b3 Use force_operand to make sure that the buffer address is in a suitable form
to be passed to force_reg.

From-SVN: r28334
1999-07-29 08:23:27 +00:00
Jeff Law 89693f2927 Daily bump.
From-SVN: r28333
1999-07-29 01:45:15 -06:00
Jeffrey A Law e58f99c450 pa.md (indirect_jump): Remove mode from match_operand.
* pa.md (indirect_jump): Remove mode from match_operand.  Verify
        proper mode in the condition string.
        (icacheflush, dcacheflush): Remove modes from match_operands.

From-SVN: r28332
1999-07-29 01:26:58 -06:00