Commit Graph

23144 Commits

Author SHA1 Message Date
Jeff Law 6285c904f7 Delete questionable tests
From-SVN: r28453
1999-08-03 02:30:01 -06:00
Jeff Law 255433ed94 Delete questionable tests
From-SVN: r28451
1999-08-03 02:19:35 -06:00
Jeff Law d9a3175816 Delete questionable tests.
From-SVN: r28448
1999-08-03 02:04:46 -06:00
Jeff Law 61fb22b10a Remove copyrighted testcase
From-SVN: r28447
1999-08-03 01:55:12 -06:00
Jeff Law a740d5947e Daily bump.
From-SVN: r28445
1999-08-03 01:45:14 -06:00
Mumit Khan fa20888b17 * decl.c (start_decl): Set attributes before duplicate_decls call.
From-SVN: r28442
1999-08-03 03:03:03 -04:00
Hans-Peter Nilsson 555b644206 dwarf2out.c (add_location_or_const_value_attribute): Correct test for sizes of passed and declared parameter types.
* dwarf2out.c (add_location_or_const_value_attribute): Correct
	test for sizes of passed and declared parameter types.

From-SVN: r28441
1999-08-03 02:46:05 -04:00
Kaveh R. Ghazi c354f40df2 fixincludes: Fix the return type of bsearch, char* -> void*.
* fixincludes: Fix the return type of bsearch, char* -> void*.

        * fixinc/inclhack.def: Likewise.

From-SVN: r28440
1999-08-03 04:06:31 +00:00
Jason Merrill ce12589b90 regen
From-SVN: r28439
1999-08-02 23:56:11 -04:00
Tom Tromey e656c72f3c * aclocal.m4, configure: Rebuilt for new libtool.
From-SVN: r28438
1999-08-03 03:19:52 +00:00
Tom Tromey 6cf31ce442 * aclocal.m4, configure: Rebuilt for new libtool.
From-SVN: r28436
1999-08-03 03:09:12 +00:00
Tom Tromey 5b9bbb3917 aclocal.m4, configure: Rebuilt for new libtool.
* aclocal.m4, configure: Rebuilt for new libtool.

[[Split portion of a mixed commit.]]

From-SVN: r28435.2
1999-08-03 03:07:04 +00:00
Mark Mitchell f71f87f9eb invoke.texi (-fdump-translation-unit): New option.
* invoke.texi (-fdump-translation-unit): New option.
	* Make-lang.in (CXX_SRCS): Add dump.c.
	* Makefile.in (CXX_OBJS): Add dump.o.
	(dump.o): New target.
	* cp-tree.h (DECL_CONV_FN_P): Document.
	(DECL_OVERLOADED_OPERATOR_P): New function.
	(TYPE_PTRMEM_CLASS_TYPE): New macro.
	(TYPE_PTRMEM_POINTED_TO_TYPE): Likewise.
	(PTRMEM_CST_CLASS): Use TYPE_PTRMEM_CLASS_TYPE.
	(ASM_VOLATILE_P): New macro.
	(STMT_LINENO): Likewise.
	(cp_namespace_decls): New function.
	(dump_node_to_file): New function.
	* decl.c (cp_namespace_decls): New function.
	(walk_namespaces_r): Use it.
	(wrapup_globals_for_namespace): Likewise.
	* decl2.c (flag_dump_translation_unit): New variable.
	(lang_decode_option): Handle -fdump-translation-unit.
	(finish_file): If flag_dump_translation_unit is set, dump the
	translation unit.
	* dump.c: New file.
	* lang-options.h: Add -fdump-translation-unit.
	* pt.c (tsubst_template_parms): Robustify.
	(tsubst_decl): Use DECL_OVERLOADED_OPERATOR_P.
	(tsubst_expr): Use STMT_LINENO.
	* semantics.c (finish_asm_stmt): Eliminate duplicate code.  Check
	for invalid cv-qualifiers even while building templates.

From-SVN: r28434
1999-08-03 01:37:47 +00:00
Richard Henderson 246833ac17 expr.h (PROMOTE_PROTOTYPES): Move ...
* expr.h (PROMOTE_PROTOTYPES): Move ...
        * defaults.h: ... to here.
        * c-decl.c: Include defaults.h instead of expr.h.
        * c-typeck.c: Include defaults.h.

From-SVN: r28433
1999-08-02 17:58:44 -07:00
Richard Henderson 091f9839f2 call.c: Include defaults.h instead of expr.h.
* call.c: Include defaults.h instead of expr.h.
        * decl.c: Likewise.
        * pt.c: Likewise.
        * typeck.c: Include defaults.h.

From-SVN: r28432
1999-08-02 17:58:19 -07:00
Richard Henderson 0ae70c6a94 decl.c: Include defaults.h instead of expr.h.
* decl.c: Include defaults.h instead of expr.h.
        * parse.y: Likewise.

From-SVN: r28431
1999-08-02 17:57:50 -07:00
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