Commit Graph

65717 Commits

Author SHA1 Message Date
James A. Morrison 623049aa3c re PR tree-optimization/19944 (cris-elf testsuite failures: gcc.dg/pr15784-1.c, gcc.dg/pr15784-2.c)
2005-02-13  James A. Morrison  <phython@gcc.gnu.org>

       PR tree-optimization/19944
       * fold-const.c (fold): Re-add ABS_EXPR folding.

From-SVN: r95002
2005-02-14 02:27:18 +00:00
GCC Administrator d9099901ad Daily bump.
From-SVN: r94999
2005-02-14 00:16:51 +00:00
David Edelsohn de17c25fde re PR target/19019 (GCC ldouble format incompatibility with XLC long double)
PR target/19019
        * config/rs6000/aix.h ({TARGET,MASK}_XL_CALL): Rename to
        {TARGET,MASK}_XL_COMPAT.
        (SUBTARGET_SWITCHES): Rename xl-call to xl-compat.  Use
        MASK_XL_COMPAT.
        * config/rs6000/beos.h ({TARGET,MASK}_XL_CALL): Remove.
        * config/rs6000/rs6000.c (function_arg): Change TARGET_XL_CALL to
        TARGET_XL_COMPAT.
        (rs6000_arg_partial_bytes): Same.
        (rs6000_generate_compare): Generate PARALLEL for compare if TFmode
        and XL compatibility enabled.
        * config/rs6000/rs6000.h (TARGET_XL_CALL): Rename to TARGET_XL_COMPAT.
        * config/rs6000/rs6000.md (cmptf_internal1): Add !TARGET_XL_COMPAT
        test to final condition.
        (cmptf_internal2): New.
        * doc/invoke.texi (RS/6000 Subtarget Options): Change xl-call to
        xl-compat.  Add TFmode information to description.

From-SVN: r94991
2005-02-13 16:31:35 -05:00
Andrew Pinski 4fa0972f8e re PR ada/19942 (Stage 2 compilation of ali.adb causes GNAT bug box)
2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>

        PR ada/19942
        * utils.c (gnat_type_for_mode): Return null instead of ICE because we asked
        for an unknown mode.

From-SVN: r94989
2005-02-13 12:08:29 -08:00
Kazu Hirata e04369acfe * flags.h, read-rtl.c, tree-ssa-live.h: Update copyright.
From-SVN: r94988
2005-02-13 19:05:03 +00:00
Jason Merrill 6b708a6bcd temporarily revert last changes
From-SVN: r94987
2005-02-13 12:10:47 -05:00
James A. Morrison 9e188dca09 treetree.c (tree_lang_type_for_mode): Return NULL_TREE for all non scalar integer types.
2005-02-13  James A. Morrison  <phython@gcc.gnu.org>

       * treetree.c (tree_lang_type_for_mode): Return NULL_TREE for all non
       scalar integer types.

From-SVN: r94986
2005-02-13 16:26:11 +00:00
Tobias Schlüter 1ac262625d trans-stmt.c (generate_loop_for_temp_to_lhs, [...]): Remove if whose condition is always true.
* trans-stmt.c (generate_loop_for_temp_to_lhs,
generate_loop_for_rhs_to_temp): Remove if whose condition is
always true.

From-SVN: r94985
2005-02-13 16:32:45 +01:00
Frank Ch. Eigler 81d8d0fa90 * typo fix
From-SVN: r94984
2005-02-13 12:58:28 +00:00
Frank Ch. Eigler 478cc36ff6 re PR libmudflap/19319 (Mudflap produce many violations on simple, correct c++ program)
2005-02-13  Frank Ch. Eigler  <fche@redhat.com>

	PR mudflap/19319
	* testsuite/libmudflap.c++/pass55-frag.c: New test.

From-SVN: r94983
2005-02-13 12:49:34 +00:00
Richard Guenther ae63a1cc46 re PR libstdc++/11706 (std::pow(T, int) implementation pessimizes code)
2005-02-13  Richard Guenther  <rguenth@gcc.gnu.org>
	    Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/11706
	* include/c_std/std_cmath.h (pow): Use __builtin_powi[lf]
	for integer overloads.

	* testsuite/26_numerics/cmath/powi.cc: New.

Co-Authored-By: Paolo Carlini <pcarlini@suse.de>

From-SVN: r94982
2005-02-13 10:25:02 +00:00
Jason Merrill b8b3c655b0 cp-demangle.c (__cxa_demangle): Change resolution of ambiguous arguments.
* cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
        arguments.

From-SVN: r94980
2005-02-13 01:58:20 -05:00
Jason Merrill 38116e3d1d re PR libmudflap/19319 (Mudflap produce many violations on simple, correct c++ program)
PR mudflap/19319
        * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Make return
        slot explicit.

        PR c++/16405
        * fold-const.c (fold_indirect_ref_1): Split out from...
        (build_fold_indirect_ref): Here.
        (fold_indirect_ref): New fn.
        * tree.h: Declare it.
        * gimplify.c (gimplify_compound_lval): Call fold_indirect_ref.
        (gimplify_modify_expr_rhs): Likewise.
        (gimplify_expr): Likewise.

From-SVN: r94979
2005-02-13 01:43:58 -05:00
James A. Morrison 6f49fdcc5e pr15784-1.c, [...]: New tests.
2005-02-13  James A. Morrison  <phython@gcc.gnu.org>

       * gcc.dg/pr15784-1.c, gcc.dg/pr15784-2.c, gcc.dg/pr15784-3.c: New tests.

From-SVN: r94978
2005-02-13 06:41:01 +00:00
James A. Morrison 60a8fb5ea9 re PR tree-optimization/14303 ([tree-ssa] gcc.c-torture/execute/20020720-1.c is not fully folded)
2005-02-13  James A. Morrison  <phython@gcc.gnu.org>

       PR tree-optimization/14303
       PR tree-optimization/15784
       * fold-const.c (fold): Fold ABS_EXPR<x> >= 0 to true, when possible.
       Fold ABS_EXPR<x> < 0 to false.  Fold ABS_EXPR<x> == 0 to x == 0 and
       ABS_EXPR<x> != 0 to x != 0.

From-SVN: r94977
2005-02-13 06:21:35 +00:00
Kazu Hirata ea24f64b78 passes.c (rest_of_handle_gcse): Remove dead assignments to tem and tem2.
* passes.c (rest_of_handle_gcse): Remove dead assignments to
	tem and tem2.

From-SVN: r94967
2005-02-13 03:58:21 +00:00
Kazu Hirata 6f9087d7fb passes.c (rest_of_handle_gcse): Don't run cse_main and delete_trivially_dead_insns too many times.
* passes.c (rest_of_handle_gcse): Don't run cse_main and
	delete_trivially_dead_insns too many times.

From-SVN: r94963
2005-02-13 03:49:53 +00:00
GCC Administrator 1da0802999 Daily bump.
From-SVN: r94949
2005-02-13 00:16:15 +00:00
Richard Henderson bd0b34a882 utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes...
* utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
        validate SCALAR_INT_MODE_P before calling gnat_type_for_size.

From-SVN: r94946
2005-02-12 12:02:35 -08:00
Dorit Naishlos c202a7f94f * gcc.dg/vect/vect-96.c: Fix typo.
From-SVN: r94945
2005-02-12 19:33:44 +00:00
Tobias Schlüter 1e6283cb21 symbol.c (gfc_use_ha_derived): Remove, fold functionality into ...
* symbol.c (gfc_use_ha_derived): Remove, fold functionality into ...
(gfc_use_derived): ... this function.

From-SVN: r94942
2005-02-12 16:44:01 +01:00
Kriang Lerdsuwanakij d32707707a re PR c++/14479 (enum definition in template class with template methods causes error.)
PR c++/14479
	PR c++/19487
	* pt.c (maybe_check_template_type): Remove.
	* cp-tree.h (maybe_check_template_type): Remove prototype.
	* name-lookup.c (maybe_process_template_type_declaration): Don't
	use maybe_check_template_type.

	* g++.dg/template/enum5.C: New test.

From-SVN: r94941
2005-02-12 15:40:28 +00:00
Kazu Hirata 537677ba9d builtins.c, [...]: Update copyright.
* builtins.c, java-except.h, jcf-parse.c, jv-scan.c, lex.c,
	parse-scan.y: Update copyright.

From-SVN: r94940
2005-02-12 15:21:14 +00:00
Kazu Hirata 647eea9dd8 c-tree.h, [...]: Fix comment typos.
* c-tree.h, combine.c, expmed.c, flow.c, libgcc2.c,
	simplify-rtx.c, tree-ssa-live.h: Fix comment typos.  Follow
	spelling conventions.

From-SVN: r94939
2005-02-12 15:17:56 +00:00
Mark Wielaard 0008978072 Fixes bug libgcj/8170
Fixes bug libgcj/8170
       * java/lang/ClassLoader.java (loadClass): Don't rewrap
       ClassNotFoundException.
       * gnu/java/lang/MainThread.java (run): Chain NoClassDefFoundError.
       * gnu/gcj/runtime/NameFinder.java (remove_interpreter): Removed.
       (remove_internal): New field superceding remove_interpreter.
       (sanitizeStack): Remove all no-package classes starting with "_Jv_".
       Remove no-class methods starting with "_Jv_". And Replace null
       class or method names with the empty string. Stop at either the
       MainThread or a real Thread run() method.
       (newElement): Made static.
       * java/net/URLClassLoader.java (findClass): Throw
       ClassNotFoundExceptions including urls, plus parent using toString().
       (thisString): New field.
       (toString): New method.

From-SVN: r94935
2005-02-12 13:51:11 +00:00
Ira Rosen 8ad833acc4 tree-vectorizer.c (vect_get_base_and_offset): Remove.
* tree-vectorizer.c (vect_get_base_and_offset): Remove.
        (vect_is_simple_iv_evolution): Remove redundant parameter
        and step check.
        (vect_analyze_scalar_cycles): Call vect_is_simple_iv_evolution
        without last parameter.
        (vect_analyze_pointer_ref_access): Get access_fn as parameter.
        Return pointer step. Call vect_is_simple_iv_evolution without
        last parameter. Check only that the step is multiple of size
        type. Remove stmt_vinfo updates.
        (vect_get_memtag_and_dr): Remove.
        (vect_get_memtag): New function.
        (vect_address_analysis): New function.
        (vect_object_analysis): New function.
        (vect_analyze_data_refs): Call vect_object_analysis and
        vect_get_memtag. Update stmt_vinfo fields.

From-SVN: r94934
2005-02-12 12:57:12 +00:00
Ira Rosen e3a8a4eda9 tree-data-ref.c (array_base_name_differ_p): Check that the bases exist and are objects.
* tree-data-ref.c (array_base_name_differ_p): Check that the bases
        exist and are objects. Remove checks for pointer.
        * tree-vectorizer.c (vect_create_addr_base_for_vector_ref): Use
        STMT_VINFO_VECT_DR_BASE_ADDRESS instead of DR_BASE_NAME.
        (vect_create_data_ref_ptr): Likewise.
        (vect_base_addr_differ_p): New function.
        (vect_analyze_data_ref_dependence): Call vect_base_addr_differ_p.
        (vect_analyze_pointer_ref_access): Add output parameter - ptr_init.
        Don't set the DR_BASE_NAME field of data-ref.
        (vect_get_memtag_and_dr): Use ptr_init instead of DR_BASE_NAME.

From-SVN: r94932
2005-02-12 11:47:19 +00:00
Uros Bizjak c94a75af08 optabs.h (enum optab_index): Add new OTI_ldexp.
* optabs.h (enum optab_index): Add new OTI_ldexp.
	(ldexp_optab): Define corresponding macro.
	* optabs.c (init_optabs): Initialize ldexp_optab.
	* genopinit.c (optabs): Implement ldexp_optab using ldexp?f3
	patterns.
	* builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_LDEXP{,F,L}
	using ldexp_optab.
	(expand_builtin): Expand BUILT_IN_LDEXP{,F,L} using
	expand_builtin_mathfn_2 if flag_unsafe_math_optimizations is set.

	* config/i386/i386.md (ldexpsf3, ldexpdf3, ldexpxf3): New expanders
	to implement ldexpf, ldexp and ldexpl built-ins as inline x87
	intrinsics.

testsuite:

	* gcc.dg/builtins-34.c: Also check ldexp*.

From-SVN: r94931
2005-02-12 12:34:24 +01:00
Ira Rosen a5ae3ad628 tree-vectorizer.h (struct _stmt_vec_info): Rename a field: base to base_address.
2005-02-13  Ira Rosen  <irar@il.ibm.com>

        * tree-vectorizer.h (struct _stmt_vec_info): Rename a field: base
        to base_address.
        * tree-vectorizer.c (new_stmt_vec_info): Rename the above field of
        stmt_vec_info.
        (vect_get_base_and_offset): Always return an address.
        (vect_create_addr_base_for_vector_ref): Remove treatment for
        different data reference types.
        (vect_compute_data_ref_alignment): Rename base to base_address in
        stmt_vec_info. Get the object in order to force its alignment.
        (vect_get_memtag_and_dr): Rename base to base_address in
        stmt_vec_info. Extract the object for memtag analysis.

From-SVN: r94930
2005-02-12 10:24:40 +00:00
Hans-Peter Nilsson 6092c5db35 * gcc.dg/tree-ssa/20040703-1.c: Quote decimal dot.
From-SVN: r94929
2005-02-12 07:46:43 +00:00
Per Bothner 7b45aab422 re PR java/15543 ("jv-scan --complexity" segfaults)
PR java/15543
	* parse-scan.y (input_location): Remove variable.
	(main_input_filename): New - replaces input_filename, which isn't
	settable if USE_MAPPED_LOCATION.
	* lex.c (java_init_lex): Wrap some more places in #ifndef JC1-LITE,
	so we don't reference input_location or wfl_operator in that case.
	* jv-scan.c (expand_location): Remove - no longer used.
	(main): Set main_input_filename rather than input_filename.

From-SVN: r94928
2005-02-11 22:12:40 -08:00
Hans-Peter Nilsson f4ddadddf9 re PR regression/19898 (cris-elf testsuite failure: gcc.c-torture/execute/strlen-1.c execution, -O2 and higher)
PR regression/19898.
	* config/cris/cris.c (cris_notice_update_cc): When testing if insn
	changes cc_status, use apply modified_in_p to part of cc_status
	and insn, not cris_reg_overlap_mentioned_p on SET_DEST of insn
	body.

From-SVN: r94914
2005-02-12 01:08:33 +00:00
Richard Henderson 7e7e470f9b tree-complex.c (expand_complex_libcall): New.
* tree-complex.c (expand_complex_libcall): New.
        (expand_complex_multiplication): Use it for c99 compliance.
        (expand_complex_division): Likewise.
        * fold-const.c (fold_complex_add, fold_complex_mult): New.
        (fold): Call them.
        * builtins.c (built_in_names): Remove const.
        * tree.c (build_common_builtin_nodes): Build complex arithmetic
        builtins.
        * tree.h (BUILT_IN_COMPLEX_MUL_MIN, BUILT_IN_COMPLEX_MUL_MAX): New.
        (BUILT_IN_COMPLEX_DIV_MIN, BUILT_IN_COMPLEX_DIV_MAX): New.
        (built_in_names): Remove const.
        * c-common.c (c_common_type_for_mode): Handle complex modes.
        * flags.h, toplev.c (flag_complex_method): Rename from
        flag_complex_divide_method.
        * libgcc2.c (__divsc3, __divdc3, __divxc3, __divtc3,
        __mulsc3, __muldc3, __mulxc3, __multc3): New.
        * libgcc2.h: Declare them.
        * libgcc-std.ver: Export them.
        * mklibgcc.in (lib2funcs): Build them.

From-SVN: r94909
2005-02-11 16:26:57 -08:00
GCC Administrator 17e1f1a36f Daily bump.
From-SVN: r94907
2005-02-12 00:16:59 +00:00
Janis Johnson ecddf99e14 13450.cc: Fix XFAIL selector.
* testsuite/26_numerics/complex/13450.cc: Fix XFAIL selector.
	* testsuite/26_numerics/complex/complex_value.cc: Ditto.
	* testsuite/26_numerics/complex/pow.cc: Ditto.

From-SVN: r94904
2005-02-12 00:05:08 +00:00
Janis Johnson 75d1ddc1df libstdc++.exp: Load target-supports-dg.exp.
* testsuite/lib/libstdc++.exp: Load target-supports-dg.exp.
	* testsuite/26_numerics/complex/13450.cc: XFAIL for broken_cplxf_arg.
	* testsuite/26_numerics/complex/complex_value.cc: Ditto.
	* testsuite/26_numerics/complex/pow.cc: Ditto.

From-SVN: r94902
2005-02-11 22:40:16 +00:00
Janis Johnson a29c731dee gcc-dg.exp: (dg-require-weak...
* lib/gcc-dg.exp: (dg-require-weak, dg-require-visibility,
	dg-require-alias, dg-require-gc-sections, dg-require-profiling,
	dg-require-dll, dg-require-iconv, dg-require-named-sections,
	dg-require-effective-target, dg-skip-if, dg-xfail-if, selector_opd,
	selector_list, selector_expression, dg-process-target): Move to new
	file target-supports-dg.exp.
	* lib/target-supports-dg.exp: New.

From-SVN: r94901
2005-02-11 22:36:53 +00:00
Janis Johnson 56afd7aae3 target-supports.exp (check_effective_target_broken_cplxf_arg): New.
* lib/target-supports.exp (check_effective_target_broken_cplxf_arg):
	New.

From-SVN: r94900
2005-02-11 22:34:57 +00:00
Janis Johnson 6027770b6e cls_align_longdouble.c: Remove dg-options.
* testsuite/libffi.call/cls_align_longdouble.c: Remove dg-options.
	* testsuite/libffi.call/float.c: Ditto.
	* testsuite/libffi.call/float2.c: Ditto.
	* testsuite/libffi.call/float3.c: Ditto.

From-SVN: r94899
2005-02-11 22:33:16 +00:00
Steven Bosscher c33bae8825 re PR tree-optimization/19876 (g++ starts eating all the memory and the CPU)
PR tree-optimization/19876
	Partially revert my change from 2005-01-14
	* tree-ssa-pre.c (compute_antic_aux): Make recursive once again...
	(compute_antic): ...and remove the loop here.

From-SVN: r94896
2005-02-11 21:52:34 +00:00
Jakub Jelinek 36b23fd76a re PR c++/19666 (Trouble with prt-to-members: rejects-valid/ICE in fold_convert)
PR c++/19666
	2004-06-08  Andrew Pinski  <pinskia@physics.uc.edu>
	* fold-const.c (fold_convert): Treat OFFSET_TYPE like
	POINTER_TYPE and INTEGER_TYPE.

	* gcc/testsuite/g++.dg/other/ptrmem6.C: New test.

[[Split portion of a mixed commit.]]

From-SVN: r94893.2
2005-02-11 22:12:48 +01:00
Jakub Jelinek 97e9692bfb re PR middle-end/19858 (ICE on simple SSE code)
PR middle-end/19858
	* fold-const.c (make_bit_field_ref): If bitpos == 0 and bitsize
	is number of inner's bits, avoid creating a BIT_FIELD_REF.

	* gcc.c-torture/compile/20050210-1.c: New test.

From-SVN: r94892
2005-02-11 22:08:44 +01:00
Jakub Jelinek 28f8ecf912 sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of crtend.o if -pie.
* config/rs6000/sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of
	crtend.o if -pie.  Use %{x:a;:b} spec syntax.

From-SVN: r94890
2005-02-11 22:05:28 +01:00
Richard Henderson fae6e24644 re PR c++/19634 (Infinite memory usage on Alpha)
PR c++/19632
        * pt.c (get_mostly_instantiated_function_type): Save and restore
        flag_access_control instead of push/pop_access_scope.

From-SVN: r94889
2005-02-11 12:22:23 -08:00
Daniel Jacobowitz d04b77acc8 linux-unwind.h (mips_fallback_frame_state): Adjust offsets for the big-endian 32-bit case.
* config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust
	offsets for the big-endian 32-bit case.

From-SVN: r94888
2005-02-11 20:18:59 +00:00
Joseph Myers 70406574fc * config/ia64/hpux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
From-SVN: r94887
2005-02-11 19:55:07 +00:00
Dale Johannesen 7e42db17f9 cselib.c (cselib_process_insn): Clear out regs where HARD_REGNO_CALL_PART_CLOBBERED is true at a call.
2005-02-11  Dale Johannesen  <dalej@apple.com>

	* cselib.c (cselib_process_insn):  Clear out regs where
	HARD_REGNO_CALL_PART_CLOBBERED is true at a call.
	* reload.c (find_equiv_reg): Ditto.

From-SVN: r94885
2005-02-11 18:12:33 +00:00
Mark Mitchell 712b39c528 re PR c++/19755 (-Wmissing-braces doesn't warn anymore)
PR c++/19755
	* decl.c (reshape_init): Issue warnings about missing braces.

	PR c++/19755
	* g++.dg/warn/Wbraces1.C: New test.

From-SVN: r94882
2005-02-11 17:15:50 +00:00
Kazu Hirata fb4d77b367 * cp-tree.def, except.c, ptree.c: Update copyright.
From-SVN: r94881
2005-02-11 16:28:37 +00:00
Ian Lance Taylor c5d97f6e5d read-rtl.c (read_rtx_1): Give fatal error if we see a vector with no elements.
* read-rtl.c (read_rtx_1): Give fatal error if we see a vector
	with no elements.

From-SVN: r94879
2005-02-11 15:09:53 +00:00