Commit Graph

34597 Commits

Author SHA1 Message Date
Bryce McKinlay 52c2897732 Makefile.am: Make a libtool convenience library.
libffi:
	* Makefile.am: Make a libtool convenience library.
	* Makefile.in: Rebuilt.

libjava:
	* java/io/File.java (normalizePath): New private method.
	(File (String)): Use normalizePath().
	(File (String, String)): Likewise.

	* Makefile.am (libffi_files): Removed.
	(libgcj.la): Link libffi as a convenience library instead of
	refering to its object files directly.
	* Makefile.in: Rebuilt.

From-SVN: r41298
2001-04-12 10:32:50 +01:00
Nathan Sidwell f847167e3d eh_alloc.cc (__cxa_allocate_exception): Don't terminate holding the mutex.
* libsupc++/eh_alloc.cc (__cxa_allocate_exception): Don't
	terminate holding the mutex. Make sure size fits in EMERGENCY_OBJ_SIZE.

From-SVN: r41296
2001-04-12 07:47:34 +00:00
Nathan Sidwell 0fb3018cd8 class.c (dfs_unshared_virtual_bases): New function.
cp:
	* class.c (dfs_unshared_virtual_bases): New function.
	(mark_primary_bases): Call it.
	(check_bases): Ignore virtual bases when determining
	nearly-emptiness.
testsuite:
	* g++.old-deja/g++.abi/primary3.C (main): Correct expected layout.
	* g++.old-deja/g++.abi/crash1.C: New test.

From-SVN: r41295
2001-04-12 07:44:48 +00:00
Nathan Sidwell bbb53468cc method.c (make_thunk): Clear DECL_CLONED_FUNCTION.
cp:
	* method.c (make_thunk): Clear DECL_CLONED_FUNCTION.
testsuite:
	* g++.old-deja/g++.other/crash40.C: New test.

From-SVN: r41294
2001-04-12 07:42:17 +00:00
GCC Administrator 571a66c6c9 Daily bump.
From-SVN: r41291
2001-04-12 07:16:40 +00:00
Alexandre Oliva c033e268c5 recog.c (general_operand, [...]): Require CONST_INTs to be sign-extended values for their modes.
* recog.c (general_operand, immediate_operand,
nonmemory_operand): Require CONST_INTs to be sign-extended
values for their modes.

From-SVN: r41286
2001-04-12 05:25:55 +00:00
Alexandre Oliva 691073076b expmed.c (store_bit_field): Truncate CONST_INTs.
* expmed.c (store_bit_field): Truncate CONST_INTs.
(expand_mult_highpart, expand_divmod): Likewise.
* expr.c (convert_modes, store_field): Likewise.
* integrate.c (expand_inline_function): Use promote_mode() to
determine whether to convert_modes() an argument as signed
or unsigned.
* optabs.c (expand_binop): Get CONST_INT operands
sign-extended for their appropriate modes.
* stmt.c (emit_case_nodes): Convert node values to the
appropriate mode.
(expand_end_case): Convert minval and range to the appropriate
mode.
* unroll.c (loop_iterations): Truncate abs_diff to the mode of
the iteration variable.
* varasm.c (immed_double_const): Don't require words to be
narrower than host wide ints to properly sign-extend
CONST_INTs.

From-SVN: r41285
2001-04-12 03:41:36 +00:00
Kaz Kojima 001643af80 * sh.md (builtin_setjmp_receiver): New expander.
From-SVN: r41283
2001-04-12 03:34:07 +00:00
Alexandre Oliva 38886f371d rs6000.c (rs6000_emit_move): Do not special-case HOST_BITS_PER_WIDE_INT != 32.
* config/rs6000/rs6000.c (rs6000_emit_move): Do not
special-case HOST_BITS_PER_WIDE_INT != 32.  Use same criteria
for generating CONST_INT and CONST_DOUBLE.


* config/rs6000/rs6000.c (logical_operand): CONST_INTs are
already sign-extended.
(rs6000_emit_prologue): Make register iterator signed.
(rs6000_emit_epilogue): Likewise.
* config/rs6000/rs6000.md (addsi3, adddi3): Sign-extend high
and low.
(movsf split, movdf split): Sign-extend CONST_INTs.
(movdi splits): Likewise.

From-SVN: r41282
2001-04-12 03:11:48 +00:00
Kelley Cook ccc27eab42 * config-lang.in (lang_dirs): Add in zlib.
From-SVN: r41280
2001-04-12 03:06:00 +00:00
Alexandre Oliva 383252a724 i386.md: Apply trunc_int_for_mode() to GEN_INT operands that make it to RTL.
* config/i386/i386.md: Apply trunc_int_for_mode() to GEN_INT
operands that make it to RTL.

From-SVN: r41279
2001-04-12 02:59:43 +00:00
Stan Shebs 125404c5f3 * MAINTAINERS: Add self as Darwin port maintainer.
From-SVN: r41278
2001-04-12 02:19:48 +00:00
Stan Shebs ee890fe2a1 Add Darwin (Mac OS X kernel) native support.
* config.gcc (powerpc-*-darwin*): Add native bits.
        * config/darwin.c: New file, generic Darwin support functions.
        * config/darwin.h: New file, generic Darwin definitions.
        * config/darwin-protos.h: New file, generic Darwin prototypes.
        * rs6000/darwin.h: New file, Darwin for PowerPC.
        * rs6000/t-darwin: New file, Darwin makefile fragment.
        * rs6000/rs6000.h (OBJECT_MACHO): New macro.
        (TARGET_MACHO): Ditto.
        (rs6000_abi): Add ABI_DARWIN.
        (RS6000_REG_SAVE): Add ABI_DARWIN case.
        (RS6000_SAVE_AREA): Ditto.
        (FP_ARG_MAX_REG): Ditto.
        (RETURN_ADDRESS_OFFSET): Ditto.
        * rs6000/rs6000.c (rs6000_legitimize_address): Add TARGET_MACHO
        cases.
        (rs6000_emit_move): Add ABI_DARWIN cases.
        (print_operand): Ditto.
        (first_reg_to_save): Ditto.
        (rs6000_stack_info): Ditto, also align stack by 16 instead of 8.
        (debug_stack_info): Ditto.
        (rs6000_emit_prologue): Ditto.
        (rs6000_emit_epilogue): Ditto.
        (output_profiler_hook): Ditto.
        (output_function_profiler): Ditto.
        (rs6000_add_gc_roots): Call machopic_add_gc_roots if TARGET_MACHO.
        (output_mi_thunk): Add TARGET_MACHO case.
        (add_compiler_stub): Ditto.
        (output_compiler_stub): Ditto.
        (no_previous_def): Ditto.
        (output_call): Ditto.
        (machopic_output_stub): Ditto.
        (rs6000_machopic_legitimize_pic_address): Ditto.
        (toc_section): Ditto.
        * rs6000/rs6000.md (addsi3_high): New TARGET_MACHO pattern.
        (macho_high): Ditto.
        (macho_low): Ditto.
        (movsi_low): Ditto.
        (load_macho_picbase): Ditto.
        (call): Add TARGET_MACHO case to modify function.
        (call_value): Ditto.
        (call_nonlocal_sysv): Add ABI_DARWIN case.
        (call_value_nonlocal_sysv): Ditto.
        * rs6000/rs6000-protos.h (rs6000_machopic_legitimize_pic_address):
        Add prototype.
        (machopic_output_stub): Ditto.
        * ginclude/stddef.h: Test _BSD_WCHAR_T_DEFINED_.

From-SVN: r41277
2001-04-12 02:13:00 +00:00
Mark Mitchell 5101b30466 dwarf2out.c (modified_type_die): Don't create new types here.
* dwarf2out.c (modified_type_die): Don't create new types here.
	* tree.h (get_qualified_type): New function.
	(build_qualified_type): Adjust comment.
	* tree.c (get_qualified_type): New function.
	(build_qualified_type): Use it.

From-SVN: r41276
2001-04-12 01:44:21 +00:00
Gabriel Dos Reis e98d0ceafc * testsuite/README: Add DejaGnu specific documentation.
From-SVN: r41274
2001-04-11 23:42:57 +00:00
Kaveh R. Ghazi c8abc68426 cpp.texi (-Wtraditional): Update description.
* cpp.texi (-Wtraditional): Update description.

	* invoke.texi (-Wtraditional): Likewise.

From-SVN: r41272
2001-04-11 21:46:28 +00:00
Kaveh R. Ghazi 76cf1895c3 * gcc.c-torture/execute/20010122-1.c: Fix declaration of alloca.
From-SVN: r41270
2001-04-11 20:31:15 +00:00
Jim Wilson 93dd6255c2 Fix PR 2520, a problem with structure parameter passing.
* config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Return 128 if argument
	requires more than 64 bits of alignment.

From-SVN: r41269
2001-04-11 13:19:43 -07:00
Mark Mitchell 9b7949d5ff optimize.c (maybe_clone_body): Copy DECL_NUM_STMTS from the cloned function to the clone.
* optimize.c (maybe_clone_body): Copy DECL_NUM_STMTS from the
	cloned function to the clone.

From-SVN: r41267
2001-04-11 19:45:49 +00:00
Neil Booth 2f5bf149f2 * cpplib.c (do_line): Sanity check iff enable checking.
From-SVN: r41265
2001-04-11 19:28:23 +00:00
Joern Rennecke b6285d1baf Typo fix.
From-SVN: r41264
2001-04-11 20:16:01 +01:00
Benjamin Kosnik 46840bcd52 acinclude.m4: AC_CHECK_TOOL for expect.
2001-04-11  Benjamin Kosnik  <bkoz@redhat.com>

	* acinclude.m4: AC_CHECK_TOOL for expect.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.
	* testsuite/Makefile.am (RUNTEST): Use substituted.
	(EXPECT): Same.

	* configure.in: Remove xcompiling substitution.
	* tests_flags.in (CROSS_LIB_PATH): Remove.
	(xcompiling): Remove.
	(CXX): Use substituted CXX.

From-SVN: r41262
2001-04-11 18:52:31 +00:00
Richard Henderson 04f378ce1e Makefile.in (insn-recog.o): Depend on toplev.h.
* Makefile.in (insn-recog.o): Depend on toplev.h.
        (insn-emit.o, doloop.o): Likewise.
        * genrecog.c, genemit.c: Include toplev.h in generated file.
        * doloop.c: Include toplev.h.

From-SVN: r41261
2001-04-11 11:36:50 -07:00
Mark Mitchell f1fa37ff6b Makefile.in (gcse.o): Depend on params.h.
* Makefile.in (gcse.o): Depend on params.h.
	* gcse.c: Include params.h.
	(gcse_main): Don't do GCSE if doing so will take inordinate
	amounts of memory.
	* params.def (PARAM_MAX_GCSE_MEMORY): New  parameter.
	* params.h (MAX_GCSE_MEMORY): New macro.

From-SVN: r41260
2001-04-11 18:22:46 +00:00
Kaveh R. Ghazi f3a8030a5b Makefile.in (insn-output.o): Depend on $(EXPR_H).
* Makefile.in (insn-output.o): Depend on $(EXPR_H).

	* genoutput.c (output_prologue): Include expr.h in insn-output.c.

From-SVN: r41258
2001-04-11 15:57:31 +00:00
Kaveh R. Ghazi 68896bf9a2 output.h (assemble_real): Declare if REAL_VALUE_TYPE is defined.
* output.h (assemble_real): Declare if REAL_VALUE_TYPE is defined.

	* real.h (ereal_atof, real_value_truncate, target_isnan,
	target_isinf, target_negative, assemble_real, debug_real): Delete
	redundant prototypes.

From-SVN: r41257
2001-04-11 15:53:46 +00:00
Kaveh R. Ghazi d6684bc856 Makefile.in (ifcvt.o): Depend on toplev.h.
* Makefile.in (ifcvt.o): Depend on toplev.h.

	* c-semantics.c: Include expr.h.

	* ifcvt.c: Include toplev.h.

	* expr.h (rtx_equal_p): Delete prototype.

	* rtl.h (exact_log2_wide, floor_log2_wide, permalloc,
	protect_from_queue, gen_jump, gen_beq, gen_bge, gen_ble,
	eliminate_constant_term, expand_complex_abs, find_single_use,
	make_tree, init_expr_once, init_optabs, supports_one_only):
	Likewise.

	* tree.h (exact_log2_wide, floor_log2_wide, expand_null_return,
	rest_of_type_compilation, emit_queue, do_pending_stack_adjust,
	expand_assignment, store_expr, emit_line_note_after,
	emit_line_note_force, split_specs_attrs, label_rtx): Likewise.

	* toplev.h (exact_log2_wide, floor_log2_wide): Add prototype.

cp:
	* Make-lang.in (cp/semantics.o): Depend on $(EXPR_H).

	* semantics.c: Include expr.h.

java:
	* Make-lang.in (java/boehm.o): Depend on toplev.h.

	* boehm.c: Include toplev.h.

From-SVN: r41256
2001-04-11 15:51:55 +00:00
Kaveh R. Ghazi 2ef56a41e6 * sparc-protos.h: Delete redundant prototypes.
From-SVN: r41255
2001-04-11 15:48:45 +00:00
Vladimir Makarov 550d794297 reload.c (push_reload): Add condition missed in SUBREG byte offset patch.
2001-04-11  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>

	* reload.c (push_reload):  Add condition missed in SUBREG byte
	offset patch.

From-SVN: r41253
2001-04-11 14:13:13 +00:00
Rainer Orth 8fe879c7ad * sparc/sol2-sld-64.h (STARTFILE_SPEC): Added missing blank.
From-SVN: r41251
2001-04-11 15:00:49 +02:00
Jan Hubicka 037f20f168 i386.md (floatsisf_sse): Fix output template
* i386.md (floatsisf_sse): Fix output template
	* i386.c (ix86_expand_fp_movcc)

	* reg-stack.c (emit_pop_insn): Handle complex modes.
	(move_for_stack_reg): Emit proper move mode.
	(subst_stack_regs_pat): Handle complex modes.

From-SVN: r41250
2001-04-11 12:10:22 +00:00
Jakub Jelinek 01ef656387 * cpplex.c (_cpp_lex_token): Only warn if -Wcomment.
From-SVN: r41247
2001-04-11 11:43:10 +02:00
Alan Modra 876684fea3 update my mail address
From-SVN: r41246
2001-04-11 18:32:47 +09:30
Nathan Sidwell a209577830 method.c (implicitly_declare_fn): Commonize code for copy ctor and assignment op.
cp:
	* method.c (implicitly_declare_fn): Commonize code for copy ctor
	and assignment op. Set TREE_USED for parameter.
testsuite:
	* g++.old-deja/g++.other/warn6.C: New test.

From-SVN: r41243
2001-04-11 08:43:16 +00:00
GCC Administrator 45ea80f710 Daily bump.
From-SVN: r41241
2001-04-11 07:16:10 +00:00
Richard Henderson 706701afa0 libgcc2.h (__terminate_func_ptr): Remove typedef.
* libgcc2.h (__terminate_func_ptr): Remove typedef.
        (__pure_virtual, __terminate, __terminate_set_func,
        __default_terminate, __throw_type_match, __empty,
        __get_eh_context, __get_eh_info, __get_dynamic_handler_chain,
        __eh_rtime_match, __unwinding_cleanup, __rethrow,
        __sjthrow, __sjpopnthrow, __eh_alloc, __eh_free):
        Remove prototypes of deleted functions.

From-SVN: r41240
2001-04-10 23:16:18 -07:00
Peter Schmid 3a1727303c 22001-04-11 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* g++.old-deja/g++.robertl/eb42.C: Same.

From-SVN: r41239
2001-04-11 05:43:51 +00:00
Loren J. Rittle 06729913c7 ltcf-cxx.sh: Support creation of C++ shared libraries on recent versions of FreeBSD (release...
2001-04-10  Loren J. Rittle  <ljrittle@acm.org>

	* ltcf-cxx.sh: Support creation of C++ shared libraries on
	recent versions of FreeBSD (release 3 or later).
	* ltconfig: On FreeBSD, -lc must not be provided when building
	a shared library or else the standard -pthread gcc option is
	rendered worthless to later users of the built library.

From-SVN: r41237
2001-04-11 05:25:00 +00:00
Mike Stump 585f3871e9 * Makefile.in (clean): Remove built leftovers.
From-SVN: r41236
2001-04-11 00:05:16 +00:00
Richard Henderson a14fd7f564 libstdc++.exp (dg-test): Explicitly run the program in the current directory.
* testsuite/lib/libstdc++.exp (dg-test): Explicitly run
        the program in the current directory.

From-SVN: r41234
2001-04-10 17:03:51 -07:00
Per Bothner ab9fa4b5d4 natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
* java/lang/natString.cc (_Jv_NewStringUtf8Const):  Register finalizer.
	Recalculate hash, since Utf8Const's hash is only 16 bits.

	* java/lang/natString.cc (_Jv_StringFindSlot, rehash):  Use high-order
	bits of hash to calculate step for chaining.

	* java/lang/natString.cc (intern, _Jv_NewStringUtf8Const):  Rehash
	when 2/3 full, rather than 3/4 full.

From-SVN: r41233
2001-04-10 15:46:11 -07:00
Kaveh R. Ghazi 03829ad289 c-typeck.c (convert_arguments): -Wtraditional now activates -Wconversion warnings...
* c-typeck.c (convert_arguments): -Wtraditional now activates
	-Wconversion warnings, except for changes in signed-ness.
	Detect complex<->int & int<->complex conversions as well.

	* invoke.texi (-Wtraditional): Document it.

testsuite:
	* gcc.dg/wtr-conversion-1.c: New testcase.

From-SVN: r41232
2001-04-10 22:40:48 +00:00
Richard Henderson 5a01d63496 New.
From-SVN: r41231
2001-04-10 15:22:06 -07:00
Richard Henderson 45b6f9c99d New.
[[Split portion of a mixed commit.]]

From-SVN: r41230.2
2001-04-10 15:22:06 -07:00
Richard Kenner c57718d3fe gcse.c (update_ld_motion_stores): Don't use variable I for an insn.
* gcse.c (update_ld_motion_stores): Don't use variable I for an insn.
	* flow.c (set_block_for_new_insns): Remove needless cast and
	properly check for unset block number.

From-SVN: r41227
2001-04-10 17:45:12 -04:00
Mark Mitchell 78b45a2404 class.c (find_final_overrider_data): Add `candidates'.
* class.c (find_final_overrider_data): Add `candidates'.
	(dfs_find_final_overrider): Don't issue error messages
	prematurely.
	(find_final_overrider): Issue error messages here.
	(build_base_field): Don't warn about amgibuous direct bases here.
	(warn_about_ambiguous_direct_bases): New function.
	(layout_class_type): Use it.

From-SVN: r41224
2001-04-10 18:06:26 +00:00
Richard Henderson 0450d74d53 typeck.c (build_array_ref): Push the array reference inside COMPOUND_EXPR and COND_EXPR.
* typeck.c (build_array_ref): Push the array reference inside
        COMPOUND_EXPR and COND_EXPR.

From-SVN: r41223
2001-04-10 09:49:29 -07:00
Jason Merrill c050ec51a4 tweak comments
From-SVN: r41222
2001-04-10 11:48:11 -04:00
Tom Tromey 4f75c18024 testsuite: libjava: remove some xfail markers.
* libjava.lang/pr83.xfail: Removed.
	* libjava.lang/Shazam.xfail: Removed.
	* libjava.lang/PR162.xfail: Removed.
	* libjava.compile/PR375.xfail: Removed.
	* libjava.compile/PR208.xfail: Removed xfail-byte.
	* libjava.compile/PR207.xfail: Removed xfail-byte.

From-SVN: r41220
2001-04-10 14:27:41 +00:00
GCC Administrator d12a5d1dac Daily bump.
From-SVN: r41218
2001-04-10 07:16:07 +00:00