Commit Graph

45838 Commits

Author SHA1 Message Date
Benjamin Kosnik 57e172dd3a linker-map.gnu: Add exports for codecvt constructors where size_t == unsigned long.
2002-10-16  Benjamin Kosnik  <bkoz@redhat.com>

	* config/linker-map.gnu: Add exports for codecvt constructors
	where size_t == unsigned long.

From-SVN: r58208
2002-10-16 16:14:10 +00:00
Tom Tromey 315b65915c re PR libgcj/8234 (ZipInputStream chokes when InputStream.read() returns small chunks)
Fix for PR libgcj/8234:
	* java/util/zip/natInflater.cc (reset): Reset avail_in.
	* java/util/zip/natDeflater.cc (reset): Reset avail_in.

From-SVN: r58205
2002-10-16 14:58:15 +00:00
Jan Hubicka d09e61b9b0 re PR c++/7386 (ran gcc compiler and it said to report htebug)
PR target/7386
	* i386.c (builtin_description):Drop cmpg[te]s[sd].
	* xmmintrin.h (__mm_cmpg[te]_s[sd]): Rewrite using
	swapped alternative.
	* doc/extend.texi (X86 Built-in Functions): Remove killed builtins.

From-SVN: r58202
2002-10-16 13:14:23 +00:00
GCC Administrator daa65de74b Daily bump.
From-SVN: r58194
2002-10-16 07:17:12 +00:00
David O'Brien 6ba08913bd Remove bogus copyright message in my last entry.
From-SVN: r58188
2002-10-16 03:45:02 +00:00
Richard Henderson da6eec72f5 real.c (real_to_decimal): Accept BUF_SIZE and CROP_TRAILING_ZEROS as arguments.
gcc/
        * real.c (real_to_decimal): Accept BUF_SIZE and CROP_TRAILING_ZEROS
        as arguments.  Bound DIGITS by the available buffer size.
        (real_to_hexadecimal): Likewise.
        * real.h (real_to_decimal, real_to_hexadecimal): Update prototypes.
        (REAL_VALUE_TO_DECIMAL): Remove.
        * c-common.c, c-pretty-print.c, print-rtl.c, print-tree.c,
        sched-vis.c, config/arc/arc.c, config/c4x/c4x.c, config/fr30/fr30.c,
        config/i370/i370.h, config/i386/i386.c, config/i960/i960.c,
        config/ip2k/ip2k.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c,
        config/m68k/hp320.h, config/m68k/m68k.h, config/m68k/sun2o4.h,
        config/m68k/sun3.h, config/mips/mips.c, config/ns32k/ns32k.c,
        config/pdp11/pdp11.h, config/vax/vax.h: Update all callers to
        use real_to_decimal directly, and with the proper arguments.
        * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Remove.

gcc/cp/
        * error.c (dump_expr): Use real_to_decimal directly, and with
        the new arguments.

gcc/f/
        * target.h (ffetarget_print_real1, ffetarget_print_real2): Use
        real_to_decimal directly, and with the new arguments.

From-SVN: r58187
2002-10-15 17:40:39 -07:00
Richard Henderson ba0bb02d1d * jcf-parse.c (get_constant): Fix type warning.
From-SVN: r58186
2002-10-15 17:36:17 -07:00
Mark Mitchell 3fa3c4bd5d decl.c (reshape_init): Fix typo.
* decl.c (reshape_init): Fix typo.

	* cp-tree.h (operator_name_info_t): Add arity.
	* lex.c (init_operators): Initialize it.
	* mangle.c (write_conversion_operator_name): New function.
	(write_unqualified_name): Use it.
	(write_template_args): Accept template arguments as a TREE_LIST.
	(write_expression): Adjust handling of qualified names to match
	specification.

	* g++.dg/init/array6.C: New test.

	* g++.dg/abi/mangle13.C: Likewise.
	* g++.dg/abi/mangle14.C: Likewise.
	* g++.dg/abi/mangle15.C: Likewise.

From-SVN: r58185
2002-10-15 23:59:23 +00:00
Jim Wilson c15c18c581 Fix x86 miscompilation of gdb mips simulator.
* reload1.c (merge_assigned_reloads): After converting overlapping
	reloads to RELOAD_OTHER, abort if there are now conflicting reloads.
	* config/i386/i386.md (adddi3_1): Add call to ix86_binary_operator_ok.

From-SVN: r58184
2002-10-15 15:46:31 -07:00
Jason Merrill 1a55127d22 call.c (call_builtin_trap): New fn.
* call.c (call_builtin_trap): New fn.
        (convert_arg_to_ellipsis): Use it.  Downgrade error to warning.
        (build_call): Don't set current_function_returns_abnormally outside
        a function.

From-SVN: r58180
2002-10-15 18:03:53 -04:00
Jan Hubicka 74f6d07186 * expr.c (do_tablejump): Fix typo in my previous commit.
From-SVN: r58179
2002-10-15 20:09:32 +00:00
Andrew Haley 20a5fa3d0c cvs commit fubar.
From-SVN: r58178
2002-10-15 19:25:13 +00:00
Andrew Haley de78b090db Fix bad checkin.
From-SVN: r58177
2002-10-15 19:00:24 +00:00
Andrew Haley f95eae39f8 EvaluationOrder.java (EvaluationOrder): New.
2002-10-15  Andrew Haley  <aph@redhat.com>

        * libjava.lang/EvaluationOrder.java (EvaluationOrder): New.
        * libjava.lang/EvaluationOrder.out (EvaluationOrder): New.

From-SVN: r58176
2002-10-15 18:43:11 +00:00
Ranjit Mathew b4258f0617 configure, [...]: Rebuilt.
2002-10-15  Ranjit Mathew  <rmathew@hotmail.com>

	* configure, config.h.in: Rebuilt.
	* configure.in: Call gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG.

From-SVN: r58175
2002-10-15 18:41:47 +00:00
Mark Mitchell 58731fd132 class.c (check_field_decls): Remove empty_p parameter.
* class.c (check_field_decls): Remove empty_p parameter.  Instead,
	clear CLASSTYPE_EMPTY_P.
	(build_base_field): Likewise.
	(build_base_fields): Likewise.
	(check_bases_and_members): Likewise.
	(create_vtbl_ptr): Likewise.
	(layout_class_type): Likewise.  Ensure that empty classes have
	size zero when used as base classes in the 3.2 ABI.
	(finish_struct_1): Initialize CLASSTYPE_EMPTY_P and
	CLASSTYPE_NEARLY_EMPTY_P.  Adjust calls to avoid passing empty_p
	parameter.
	(is_empty_class): Correct definition when using post-3.2 ABI.
	* cp-tree.h (lang_type_class): Add empty_p.
	(CLASSTYPE_EMPTY_P): New macro.

From-SVN: r58170
2002-10-15 18:07:24 +00:00
Richard Sandiford a2ee89d82d * config/mips/vr.h (DRIVER_SELF_SPECS): Change %<mgp32 to %{<mgp32}.
From-SVN: r58169
2002-10-15 17:02:56 +00:00
Ulrich Weigand aee4e0dbfa s390.c (s390_split_branches): Add return value.
* config/s390/s390.c (s390_split_branches): Add return
	value.  Add parameters TEMP_REG and TEMP_USED.  Use unspec 104.

	(find_base_register_in_addr): New function.
	(find_base_register_ref): New function.
	(replace_base_register_ref): New function.

	(struct constant_pool): Add members pool_insn, insns, and anchor.
	Remove member last_insn.
	(s390_start_pool): Initialize them.
	(s390_end_pool): Emit pool placeholder insn.
	(s390_add_pool_insn): New function.
	(s390_find_pool): Use insns bitmap instead of addresses.
	(s390_dump_pool): Replace placeholder insn.  Emit anchor.
	Replace unspec 104 by local-pool-relative references.
	(s390_output_constant_pool): Output anchor label if required.
	(s390_output_symbolic_const): Handle unspec 104 and 105.
	(s390_add_pool): Remove, replace by ...
	(s390_add_constant, s390_find_constant): ... these new functions.
	(s390_add_anchor): New function.

	(s390_chunkify_pool): Delete, replace by ...
	(s390_chunkify_start, s390_chunkify_finish,
	s390_chunkify_cancel): ... these new functions.
	(s390_optimize_prolog): Add parameter TEMP_REGNO.
	Recompute register live data for special registers.
	(s390_fixup_clobbered_return_reg): New function.
	(s390_machine_dependent_reorg): Rewrite to use new
	s390_chunkify_... routines.

	config/s390/s390.md ("reload_base"): Rename to ...
	("reload_base_31"): ... this.
	("reload_base_64"): New insn.
	("reload_base2"): Remove.
	("reload_anchor"): New insn.
	("pool"): New insn.

	s390.c (s390_pool_overflow): Remove.
	s390.h (s390_pool_overflow): Likewise.
	s390.md ("cjump", "icjump", "doloop_si"): Remove s390_pool_overflow.

From-SVN: r58168
2002-10-15 16:27:34 +00:00
Nathan Sidwell 6742d92b7f init.c (build_delete): Do not apply save_expr for arrays.
cp:
	* init.c (build_delete): Do not apply save_expr for arrays.
	(build_vec_delete): Likewise.
testsuite:
	* g++.dg/init/ctor1.C: New test.

From-SVN: r58166
2002-10-15 16:01:02 +00:00
J"orn Rennecke c034672ab8 * sh.md (movv8qi_i+2): Don't split if source is -1.
From-SVN: r58165
2002-10-15 16:54:06 +01:00
Janis Johnson b8db17af92 install.texi: Formatting changes for conformance to HTML 4.01.
2002-10-15  Janis Johnson  <janis187@us.ibm.com>

	* doc/install.texi: Formatting changes for conformance to HTML 4.01.

From-SVN: r58164
2002-10-15 15:52:33 +00:00
Andrew Haley dbd1e2d8eb java-tree.h (java_inlining_merge_static_initializers): Declare.
2002-10-15  Andrew Haley  <aph@redhat.com>

        * java-tree.h (java_inlining_merge_static_initializers): Declare.
        (java_inlining_map_static_initializers): Declare.

From-SVN: r58163
2002-10-15 15:29:12 +00:00
Ulrich Weigand 23a64177fb * gcc.c-torture/execute/20021015-1.c: New test.
From-SVN: r58159
2002-10-15 14:39:40 +00:00
Ulrich Weigand 2d34c58790 re PR rtl-optimization/7409 (loop optimization)
PR opt/7409
	* loop.c (loop_regs_scan): Mark registers used for function
	argument passing as MAY_NOT_OPTIMIZE.

From-SVN: r58158
2002-10-15 14:38:10 +00:00
J"orn Rennecke 38364bd2f5 * gcc.dg/weak/typeof-2.c: For SH targets, return before baz3 test.
From-SVN: r58157
2002-10-15 14:25:16 +01:00
Jan Hubicka 1877be457e re PR c/7344 (performance regression on huge case statements)
* i386.md (movv2di_internal): New pattern.
	(movv2df_internal, movv8hi_internal, movv16qi_internal): Fix predicate.
	(movv2di): New expander.
	* i386.c (ix86_preferred_reload_class): Return NO_REGS for vector operands.

	* i386.c (ix86_expand_timode_binop_builtin): Delete.
	(builtin_description): Add SSE1 logicals; rename SSE2 logicals.
	(ix86_init_mmx_sse_builtins): Kill SSE1 logicals.
	(ix86_expand_builtin): Likewise.
	* i386.h (sse_andti4_df_1, sse_andti3_df_2, sse_andti3_sf_1, sse_andti3_sf_2,
        sse_andti3,
	sse_andnti4_df_1, sse_andti3_df_2, sse_andti3_sf_1, sse_andti3_sf_2,
        sse_andnti3,
	sse_orti4_df_1, sse_orti3_df_2, sse_orti3_sf_1, sse_orti3_sf_2,
        sse_orti3,
	sse_xorti4_df_1, sse_xorti3_df_2, sse_xorti3_sf_1, sse_xorti3_sf_2,
        sse_xorti3): Kill.
	(sse_andv4sf3, sse_andnv4sf3, sse_orv2df3, sse_xorv2df3, sse_andv2df3,
	 sse_andnv2df3, sse_orv2df3, sse_xorv2df3): New expanders.
	(*sse_andv4sf3, *sse_andnv2df3, *sse_orv4sf3, *sse_xorv4sf3, *sse_andv2df3,
	 *sse_andnv2df3, *sse_orv2df3, *sse_xorv2df3): New patterns.
	(*sse_andsf3, *sse_andndf3, *sse_ordf3, *sse_xordf3, *sse_anddf3,
	 *sse_andndf3, *sse_orv2df3, *sse_xorv2df3): New patterns.

	* xmmintrin.h (__m128i): Define as __v2di.

	PR c/7344
	* predict.c (can_predict_insn_p): New function.
	(estimate_probability): Avoid unnecesary work.
	(process_note_prediction): Likewise.
	* toplev.c (rest_of_compilation): Account early branch prediction pass
	as TV_BRANCH_PROB.

	PR c++/6419
	(expand_expr): Use DECL_RTL_SET_P.

From-SVN: r58156
2002-10-15 08:24:36 +00:00
GCC Administrator 0aab899b14 Daily bump.
From-SVN: r58155
2002-10-15 07:17:08 +00:00
Mark Mitchell 7de85f7efe decl.c (layout_var_decl): Call layout_decl even for variables whose type is an array with unspecified bounds.
* decl.c (layout_var_decl): Call layout_decl even for variables
	whose type is an array with unspecified bounds.

From-SVN: r58149
2002-10-15 06:14:58 +00:00
Roger Sayle dbf4f1a2ba * combine.c (simplify_set): Treat MODE_CC registers like cc0.
From-SVN: r58148
2002-10-15 05:01:07 +00:00
Benjamin Kosnik 8c536ae9dc globals.cc (__gnu_cxx::c_locale_impl_compat): Add, alias to c_locale_impl.
2002-10-14  Benjamin Kosnik  <bkoz@redhat.com>

	* src/globals.cc (__gnu_cxx::c_locale_impl_compat): Add, alias to
	c_locale_impl.
	* testsuite/abi_check.cc (line_to_symbol_info): Collect size info.
	* docs/html/abi.txt: Update.

From-SVN: r58147
2002-10-15 04:22:11 +00:00
Benjamin Kosnik 51502ebc13 static_members.cc (test02): Less provincial.
2002-10-14  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/22_locale/static_members.cc (test02): Less provincial.

From-SVN: r58144
2002-10-15 01:05:30 +00:00
Benjamin Kosnik 9fead1f53b static_members.cc (test02): Disable for systems without named locale support.
2002-10-14  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/22_locale/static_members.cc (test02): Disable for
	systems without named locale support.
	* testsuite/22_locale/ctor_copy_dtor.cc (test04): Don't assume
	running the testsuites in "C" environment.
	Add new tests.
	* docs/html/22_locale/locale.html: Update.

From-SVN: r58142
2002-10-14 22:13:34 +00:00
Richard Henderson 741fa37f8b * gcc.dg/20020219-1.c: Disable for 16-bit targets.
From-SVN: r58141
2002-10-14 15:07:18 -07:00
Roger Sayle 4f770e7b9d i386.c (k6_cost): Correct typo.
* config/i386/i386.c (k6_cost): Correct typo.

Co-Authored-By: Zack Weinberg <zack@codesourcery.com>

From-SVN: r58139
2002-10-14 21:48:12 +00:00
Mark Mitchell a3b885703b re PR rtl-optimization/6631 (Miscompiled structure access)
PR optimization/6631
	* Makefile.in (function.o): Depend on langhooks.h.
	* alias.c (objects_must_conflict_p): Check honor_readonly when
	examining TYPE_READONLY.
	* function.c (assign_stack_temp_for_type): Likewise.

	PR optimization/6631
	* g++.dg/opt/const2.C: New test.

From-SVN: r58136
2002-10-14 21:19:05 +00:00
Mark Mitchell 77631fa7ed re PR c++/7176 (g++ confused by friend and static member with same name)
PR c++/7176
	* g++.dg/parse/friend1.C: New test.
	* g++.old-deja/g++.pt/memtemp64.C: Adjust.

	PR c++/7176
	* lex.c (do_identifier): Add another option for the parsing
	parameter.
	* parse.y (do_id): Use it.

From-SVN: r58135
2002-10-14 21:09:25 +00:00
Falk Hueffner f5204e6cb8 re PR target/7211 (Alpha prefetch hints interpreted wrong)
* config/alpha/alpha.md (extendsidi2_nofix, extendsidi2_fix):
        Swap zero extension arguments.
        (umaxhi3): Fix instruction class.
        PR target/7211
        (prefetch): Fix prefetch instructions.
        PR target/7238
        (pkwb): Fix output constraint.

From-SVN: r58133
2002-10-14 12:57:18 -07:00
Alexandre Oliva 40e6bc7e97 mips.c (print_operand): Increase buffer size for real numbers.
* config/mips/mips.c (print_operand): Increase buffer size for
real numbers.

From-SVN: r58132
2002-10-14 19:53:25 +00:00
Andrew Haley 006941eb2f StaticConstructor.java: New.
2002-10-14  Andrew Haley  <aph@redhat.com>

        * libjava.lang/StaticConstructor.java: New.
        * libjava.lang/StaticConstructor.out: New.

From-SVN: r58131
2002-10-14 19:02:56 +00:00
Richard Henderson f4e3e61878 re PR rtl-optimization/8165 (builtin string functions SEGV on alpha-pc-linux-gnu at -O2)
PR opt/8165
        * gcse.c (adjust_libcall_notes): Revert last change.
        * simplify-rtx.c (simplify_replace_rtx): Handle LO_SUM.

From-SVN: r58130
2002-10-14 11:16:07 -07:00
Andrew Haley 3eb429b2ce tree-inline.c (remap_block): All local class initialization flags go in the outermost scope.
2002-10-14  Andrew Haley  <aph@redhat.com>

        * tree-inline.c (remap_block): All local class initialization
        flags go in the outermost scope.
        (expand_call_inline): Call java_inlining_map_static_initializers.
        (expand_call_inline): Call java_inlining_merge_static_initializers.
        * java/lang.c (merge_init_test_initialization): New.
        (java_inlining_merge_static_initializers): New.
        (inline_init_test_initialization): New.
        (java_inlining_map_static_initializers): New.

        * tree-inline.c (expand_call_inline): Convert retvar to expected
        type.

From-SVN: r58129
2002-10-14 18:12:12 +00:00
Graham Stott 34146b9406 * stmt.c (decl_conflicts_with_clobbers_p): Add REG_P check.
From-SVN: r58128
2002-10-14 18:02:43 +00:00
Aldy Hernandez 3a840c9310 * stmt.c: Fix typo in comment.
From-SVN: r58124
2002-10-14 15:57:42 +00:00
J"orn Rennecke 7457a126c6 c-common.c (c_common_type_for_mode): Add V2HImode case.
* c-common.c (c_common_type_for_mode): Add V2HImode case.
	* tree.c (build_common_tree_nodes_2): Initialize
	unsigned_V2HI_type_node and V2HI_type_node.
	* tree.h (enum tree_index): Add TI_UV2HI_TYPE and TI_V2HI_TYPE.
	(unsigned_V2HI_type_node, V2HI_type_node): Define.

From-SVN: r58123
2002-10-14 11:36:41 +01:00
Jakub Jelinek 0d1c5774b2 i386.h (ASM_OUTPUT_REG_PUSH, [...]): Handle TARGET_64BIT.
* config/i386/i386.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP):
	Handle TARGET_64BIT.

	* gcc.dg/20021014-1.c: New test.

From-SVN: r58120
2002-10-14 12:07:58 +02:00
Richard Sandiford adadd18328 vr.h (DRIVER_SELF_SPECS): Define.
* config/mips/vr.h (DRIVER_SELF_SPECS): Define.
	* config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
	(MULTILIB_DIRNAMES): Remove long32.
	(MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
	(MULTILIB_REDUNDANT_DIRS): Remove.

From-SVN: r58116
2002-10-14 07:17:41 +00:00
GCC Administrator 4eb9ac3926 Daily bump.
From-SVN: r58115
2002-10-14 07:17:25 +00:00
Richard Sandiford db36994b97 tm.texi (DRIVER_SELF_SPECS): Document.
* doc/tm.texi (DRIVER_SELF_SPECS): Document.
	* gcc.c (driver_self_specs): New variable.
	(do_self_spec): New function.
	(main): Use it to process driver_self_specs.

From-SVN: r58109
2002-10-14 07:15:39 +00:00
Richard Henderson 11e5489b1e * rtl.c (shallow_copy_rtx): Use memcpy for the entire node.
From-SVN: r58102
2002-10-13 19:36:25 -07:00
Mark Wielaard 8fa7c5af3f * mauve-libgcj: Enable Mauve tests that compile now.
From-SVN: r58100
2002-10-13 11:10:27 +00:00