Commit Graph

23128 Commits

Author SHA1 Message Date
Bryce McKinlay
120abe3202 natFile.cc (performMkdir): Remove FIXME.
* java/io/natFile.cc (performMkdir): Remove FIXME.
        * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.

From-SVN: r28430
1999-08-03 01:32:14 +01:00
Bryce McKinlay
25fef12b66 ServerSocket.java: Define ANY_IF.
* java/net/ServerSocket.java: Define ANY_IF.
        (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
        all network interfaces.
        * java/net/DatagramSocket.java (DatagramSocket): ditto.
        * java/net/natPlainSocketImpl.cc (bind): Expect 0.0.0' instead of
        null.
        * java/net/natPlainDatagramSocketImpl (bind): Expect 0.0.0'
        instead of null.

From-SVN: r28429
1999-08-03 01:30:53 +01:00
Bryce McKinlay
a0e4da0d17 boehm.cc (_Jv_RegisterFinalizer): Cast eth' to GC_PTR.
eth'

        * boehm.cc (_Jv_RegisterFinalizer): Cast 
eth' to GC_PTR.
        * exception.cc (_Jv_Throw): Cast _Jv_type_matcher' to __eh_matcher.

From-SVN: r28428
1999-08-03 01:23:03 +01:00
Mark Mitchell
d4c285454f lex.c (errorcount, sorrycount): Don't declare.
* lex.c (errorcount, sorrycount): Don't declare.
	* repo.c (errorcount, sorrycount): Likewise.
	* typeck2.c (errorcount, sorrycount): Likewise.

From-SVN: r28427
1999-08-03 00:13:45 +00:00
Mark Mitchell
e1c49ab40e toplev.h (errorcount): Declare.
* toplev.h (errorcount): Declare.
	(warningcount): Likewise.
	(sorrycount): Likewise.
	* c-lex.c (errorcount): Don't declare.
	* dwarf2out.c (errorcount): Don't declare.

From-SVN: r28426
1999-08-03 00:07:52 +00:00
Jason Merrill
7aae67a281 libgloss.h: Add a note discouraging use with ELF.
* config/libgloss.h: Add a note discouraging use with ELF.
	* configure.in: Don't use libgloss.h for ELF targets.

From-SVN: r28425
1999-08-02 20:06:05 -04:00
Jim Wilson
fae2db4744 Optimize duplicate zero_extend operations.
* combine.c (force_to_mode, case LSHIFTRT): Add goto shiftrt.
	(force_to_mode, case ASHIFTRT): Add shiftrt label.

From-SVN: r28424
1999-08-02 16:53:14 -07:00
J"orn Rennecke
a47f48d8fc loop.c (strength_reduce): When doing biv->giv conversion, update reg note of NEXT->insn.
* loop.c (strength_reduce): When doing biv->giv conversion, update
	reg note of NEXT->insn.

From-SVN: r28423
1999-08-03 00:50:36 +01:00
Jakub Jelinek
f634f682b2 Jakub Jelinek <jj@ultra.linux.cz>
* real.c (PUT_REAL): Clear unused bytes if long double is IEEE quad.

From-SVN: r28422
1999-08-02 16:23:45 -07:00
Richard Henderson
cb56035294 arc.h: Define PROMOTE_PROTOTYPES to 1.
* config/arc/arc.h: Define PROMOTE_PROTOTYPES to 1.
        * config/convex/convex.h: Ditto.
        * config/dsp16xx/dsp16xx.h: Ditto.
        * config/fx80/fx80.h: Ditto.
        * config/gmicro/gmicro.h: Ditto.
        * config/i370/i370.h: Ditto.
        * config/i386/i386.h: Ditto.
        * config/m32r/m32r.h: Ditto.
        * config/m68k/m68k.h: Ditto.
        * config/m88k/m88k.h: Ditto.
        * config/mips/mips.h: Ditto.
        * config/pa/pa.h: Ditto.
        * config/pyr/pyr.h: Ditto.
        * config/tahoe/tahoe.h: Ditto.
        * config/we32k/we32k.h: Ditto.

        * config/sparc/sparc.h: Define PROMOTE_PROTOTYPES
        based on arch size.

        * config/i1750a/i1750a.h: Define PROMOTE_PROTOTYPES to 0.

From-SVN: r28421
1999-08-02 16:19:33 -07:00
Jakub Jelinek
7d473569a2 Jakub Jelinek <jj@ultra.linux.cz>
* c-decl.c (get_parm_info, store_parm_decls): Change all uses of
        PROMOTE_PROTOTYPES, so that it tests it as a C expression.
        Ensure expr.h is included.
        * c-typecheck.c (convert_arguments): Ditto.

        * expr.h: Supply default for PROMOTE_PROTOTYPES (0).

From-SVN: r28420
1999-08-02 16:17:06 -07:00
Jakub Jelinek
e438e1b788 Jakub Jelinek <jj@ultra.linux.cz>
* java/decl.c (start_java_method): Change all uses of
        PROMOTE_PROTOTYPES, so that it tests it as a C expression.
        Ensure expr.h is included.
        * java/expr.c (pop_arguments): Ditto.
        * java/parse.y (expand_start_java_method): Ditto.

From-SVN: r28419
1999-08-02 16:14:31 -07:00
Jakub Jelinek
fa56377de3 Jakub Jelinek <jj@ultra.linux.cz>
* call.c (convert_default_arg, build_over_call): Change all uses of
        PROMOTE_PROTOTYPES, so that it tests it as a C expression.
        Ensure expr.h is included.
        * decl.c (grokparams): Ditto.
        * pt.c (tsubst_decl): Ditto.
        * typeck.c (convert_arguments): Ditto.

From-SVN: r28418
1999-08-02 16:14:12 -07:00
Richard Henderson
40cae311f5 m32r.c (m32r_setup_incoming_varargs): Use get_varargs_alias_set for the register spill block.
* m32r.c (m32r_setup_incoming_varargs): Use get_varargs_alias_set
        for the register spill block.
        (m32r_va_arg): New.
        * m32r.h (EXPAND_BUILTIN_VA_ARG): New.
        (EXPAND_BUILTIN_SAVEREGS): Delete #if 0 code.

        * m32r.h (INT8_P): Don't short-cut test with (unsigned).
        (INT16_P, CMP_INT16_P, UINT16_P): Likewise.
        (UPPER16_P, UINT24_P, INT32_P, UINT5_P): Likewise.

From-SVN: r28417
1999-08-02 16:08:49 -07:00
Jakub Jelinek
247cfc5c36 linux.h: Define WCHAR_TYPE as "int" and undef MAX_WCHAR_TYPE defined in sparc.h.
* config/sparc/linux.h: Define WCHAR_TYPE as "int" and undef
        MAX_WCHAR_TYPE defined in sparc.h.
        * config/sparc/linuxaout.h: Likewise.
        * config/sparc/linux64.h: Likewise.
        Also default to -mvis if CPU is UltraSPARC.

From-SVN: r28416
1999-08-02 16:06:52 -07:00
Jason Merrill
a48328531e class.c (mark_overriders): Fix order of args to overrides.
* class.c (mark_overriders): Fix order of args to overrides.
	(warn_hidden): Likewise.  Fix for having virtual and non-virtual
	functions with the same name.

From-SVN: r28415
1999-08-02 18:59:03 -04:00
Richard Henderson
1cb36a981d Jakub Jelinek <jj@ultra.linux.cz>
* config/sparc/sparc.h (ASM_DECLARE_REGISTER_GLOBAL): New macro.
        (RTX_OK_FOR_OLO10): Likewise.
        (GO_IF_LEGITIMATE_ADDRESS): If assembler supports offsetable
        %lo(), allow it in addresses...
        (PRINT_OPERAND_ADDRESS): ... and print it appropriately.
        * config/sparc/sparc.md (sethi_di_medlow_embmedany_pic): sethi %lo()
        does not make sense.
        * config/sparc/sparc.c (sparc_hard_reg_printed): New array.
        (sparc_output_scratch_registers): New function.
        (output_function_prologue, sparc_flat_output_function_prologue): Use
        it.
        * varasm.c (make_decl_rtl): Use ASM_DECLARE_REGISTER_GLOBAL if
        defined.
        * tm.texi (ASM_DECLARE_REGISTER_GLOBAL): Document it.
        * configure.in: Add check for .register pseudo-op support in as and
        check for offsetable %lo().
        * acconfig.h: Add templates for the above checks.
        * configure: Regenerate.

Richard Henderson  <rth@cygnus.com>

        * sparc/linux64.h (TARGET_DEFAULT): Remove MASK_APP_REGS.
        * sparc/sol2-sld-64.h (TARGET_DEFAULT): Likewise.
        * sparc/sol2.h (TARGET_DEFAULT): Likewise.

From-SVN: r28414
1999-08-02 15:58:04 -07:00
J"orn Rennecke
e76d23764b loop.c (strength_reduce): When doing biv->giv conversion, fix up reg_biv_class.
* loop.c (strength_reduce): When doing biv->giv conversion, fix up
	reg_biv_class.

From-SVN: r28413
1999-08-02 23:50:49 +01:00
Jakub Jelinek
39c440fc38 Jakub Jelinek <jj@ultra.linux.cz>
* config/float-sparc.h: New file.
        * configure.in: Use float_format=sparc for sparc-*-linux-gnulibc1,
        sparc-*-linux-gnu and sparc64-*-linux*.

From-SVN: r28412
1999-08-02 15:34:17 -07:00
Richard Henderson
83e9506e13 * cp-tree.h (TYPE_PTRMEMFUNC_P): Check TYPE_LANG_SPECIFIC non-null.
From-SVN: r28409
1999-08-02 14:33:32 -07:00
Franz Sirl
dfafc897fe Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* rs6000.c (rs6000_va_list): Type is an array.
        (rs6000_va_start): Don't doubly adjust for varargs.
        (rs6000_va_arg): Evaluate long long GPR adjustment.

From-SVN: r28408
1999-08-02 13:40:56 -07:00
Richard Henderson
54dd04be06 Adapted from tests from Franz Sirl:
* gcc.c-torture/execute/va-arg-7.c: New test.
        * gcc.c-torture/execute/va-arg-8.c: New test.

From-SVN: r28407
1999-08-02 13:36:53 -07:00
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