Commit Graph

66862 Commits

Author SHA1 Message Date
Dorit Nuzman 60555ced95 tree-vect-analyze.c (vect_analyze_operations): Reorganize calls to vectorizable_* functions.
* tree-vect-analyze.c (vect_analyze_operations): Reorganize calls to
        vectorizable_* functions.
        * tree-vect-transform.c (vectorizable_call): Add check for
        STMT_VINFO_RELEVANT_P, STMT_VINFO_DEF_TYPE and STMT_VINFO_LIVE_P.
        (vectorizable_store): likewise.
        (vectorizable_conversion): Add check for STMT_VINFO_DEF_TYPE.
        Add comments.
        (vectorizable_operation, vectorizable_type_demotion): Likewise.
        (vectorizable_type_promotion, vectorizable_load): Likewise.
        (vectorizable_live_operation, vectorizable_condition): Likewise.
        (vectorizable_assignment): Add check for STMT_VINFO_DEF_TYPE and
        STMT_VINFO_LIVE_P.
        (vect_transform_stmt): Reorganize calls to vectorizable_* functions.

From-SVN: r123861
2007-04-16 12:54:01 +00:00
GCC Administrator 20280c6f0e Daily bump.
From-SVN: r123859
2007-04-15 23:17:29 +00:00
Andrew Pinski a392e63907 re PR testsuite/31578 (FAIL: gcc.dg/gnu89-init-4.c (test for excess errors))
2007-04-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR testsuite/31578
        * gcc.dg/gnu89-init-4.c: Change to a compile only test.

From-SVN: r123854
2007-04-15 14:38:47 -07:00
Andrew Pinski d0b73842be Fix typo in my last changelog entry.
From-SVN: r123853
2007-04-15 13:58:09 -07:00
Jerry DeLisle a97dcb4c36 warnings_are_errors_1.f90: Add -std=f95 to options.
2007-04-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	* gfortran.dg/warnings_are_errors_1.f90: Add -std=f95 to options.

From-SVN: r123852
2007-04-15 20:28:19 +00:00
Mark Mitchell cac4ddf058 * cp-tree.h (current_template_parms): Fix typo in comment.
From-SVN: r123851
2007-04-15 18:58:57 +00:00
Kazu Hirata 3bfe36dce0 linux.h (FUNCTION_VALUE_REGNO_P): Use macros for register numbers more.
* config/m68k/linux.h (FUNCTION_VALUE_REGNO_P): Use macros for
	register numbers more.
	* config/m68k/m68k.h (STACK_POINTER_REGNUM,
	FRAME_POINTER_REGNUM, STATIC_CHAIN_REGNUM,
	M68K_STRUCT_VALUE_REGNUM, FUNCTION_VALUE, LIBCALL_VALUE,
	FUNCTION_VALUE_REGNO_P): Likewise.
	* config/m68k/m68kelf.h (M68K_STRUCT_VALUE_REGNUM,
	STATIC_CHAIN_REGNUM): Likewise.
	* config/m68k/m68kemb.h (FUNCTION_VALUE_REGNO_P): Likewise.
	* config/m68k/netbsd-elf.h (M68K_STRUCT_VALUE_REGNUM,
	STATIC_CHAIN_REGNUM, FUNCTION_VALUE_REGNO_P): Likewise.
	* config/m68k/m68k.md (FP_REG): New.

From-SVN: r123850
2007-04-15 15:54:36 +00:00
Paul Thomas 9a3db5a366 re PR fortran/31204 (wrong host association of implied loop variable)
2007-04-15  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/31204
	* primary.c (check_for_implicit_index): New function to check
	that a host associated variable is not an undeclared implied
	do loop index.
	(gfc_match_rvalue, match_variable): Use it and reset the
	implied_index attribute.
	* gfortran.h : Add the implied_index field to symbol_attribute.
	* match.c (gfc_match_iterator): Mark the iterator variable
	with the new attribute.
	* decl.c (build_sym): Reset the new attribute.

2007-04-15  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/31204
	* gfortran.dg/array_constructor_16.f90: New test.

From-SVN: r123849
2007-04-15 15:28:06 +00:00
Kazu Hirata e3e093ecef m68k.h (PREFERRED_STACK_BOUNDARY): Prefer 32-bit alignment on fido.
* config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Prefer 32-bit
	alignment on fido.

From-SVN: r123848
2007-04-15 15:27:06 +00:00
Kazu Hirata 7fa7289d9a i386.c, [...]: Fix comment typos.
* config/i386/i386.c, config/s390/s390.c, config/s390/s390.md,
	tree-ssa-loop-niter.c, tree-ssa-structalias.c, tree-vrp.c: Fix
	comment typos.

From-SVN: r123847
2007-04-15 14:46:34 +00:00
Kazu Hirata a57a55dec3 * cp-tree.h, error.c: Fix comment typos.
From-SVN: r123846
2007-04-15 14:37:02 +00:00
Kazu Hirata 71172460b6 gfc-internals.texi: Fix typos.
* gfc-internals.texi: Fix typos.
	* simplify.c: Fix a comment typo.

From-SVN: r123845
2007-04-15 14:28:43 +00:00
Kazu Hirata 14463ee954 pr19340.c, [...]: XFAIL on fido-*-*.
* gcc.dg/pr19340.c, gcc.dg/tree-ssa/loop-1.c,
	gcc.dg/weak/typeof-2.c: XFAIL on fido-*-*.

From-SVN: r123844
2007-04-15 13:58:40 +00:00
Zdenek Dvorak 2732d76752 tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore cold loops.
* tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore
	cold loops.

From-SVN: r123843
2007-04-15 03:36:25 +00:00
John David Anglin 65a333394f re PR rtl-optimization/31500 (FAIL: gcc.dg/Warray-bounds.c (internal compiler error))
PR rtl-optimization/31500
	* gcc.dg/Warray-bounds.c: Skip on hppa*-*-*.
	* g++.dg/warn/Warray-bounds.C: Likewise.

From-SVN: r123837
2007-04-15 01:17:41 +00:00
Andrew Pinski aa24028daf re PR c/31520 (Latent bug in finish_decl causing an errorous "array subscript is above array bounds")
2007-04-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR c/31520
        * c-del.c (finish_decl): Grab the type of the decl after the call
        to store_init_value.
2007-04-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR C/31520
        * testsuite/gcc.dg/gnu89-init-4.c: New testcase.

From-SVN: r123835
2007-04-14 17:59:15 -07:00
GCC Administrator f8b8c6d76d Daily bump.
From-SVN: r123833
2007-04-14 23:17:32 +00:00
Steven Bosscher 2ca2b6071b * common.opt (fforward-propagate): Fix "Optimization" annotation.
From-SVN: r123830
2007-04-14 22:38:16 +00:00
Jakub Jelinek b1483e87c9 re PR c++/25874 ([gomp] ICE in calc_dfs_tree())
PR c++/25874
	* omp-low.c (expand_omp_parallel): If child_cfun->cfg, free dominators,
	post dominators and cleanup cfg before returning.

	* gcc.dg/gomp/pr25874.c: Add dg-options.
	* g++.dg/gomp/pr25874.C: Add dg-options.

From-SVN: r123822
2007-04-14 20:52:45 +02:00
Bernhard Reutner-Fischer ed5ee445f9 +2007-04-14 Bernhard Fischer
* primary.c: Commentary typo fix; Add question about redundant (?)
	set.
	* ChangeLog: Fix formatting of previous ChangeLog entry which did not
	obey "'name"  <name@there.tdl>' convention.

From-SVN: r123821
2007-04-14 20:43:20 +02:00
Bernhard Fischer b9cc7c96e5 2007-04-14 Bernhard Fischer
PR fortran/21061
	* gfortran.dg/warnings_are_errors_1.f90: New testcase.
	* gfortran.dg/warnings_are_errors_1.f: New testcase.

From-SVN: r123820
2007-04-14 20:33:11 +02:00
Bernhard Reutner-Fischer 06e2b6a0e3 - commentary typo fix
From-SVN: r123819
2007-04-14 19:59:28 +02:00
Francois-Xavier Coudert f290cdf924 re PR fortran/31561 (FAIL: gfortran.dg/vect/vect-4.f90)
PR fortran/31561
	* gfortran.dg/vect/vect-4.f90: xfail on vect_no_align targets.

From-SVN: r123817
2007-04-14 17:09:41 +00:00
Paul Thomas 396b2c195a re PR fortran/29507 ([4.2 only] INDEX in an array initialization causes ICE)
2007-04-14 Paul Thomas <pault@gcc.gnu.org>

	PR fortran/29507
	PR fortran/31404
	* expr.c (scalarize_intrinsic_call): New function to
	scalarize elemental intrinsic functions in initialization
	expressions.
	(check_init_expr): Detect elemental intrinsic functions
	in initalization expressions and call previous.


2007-04-14 Paul Thomas <pault@gcc.gnu.org>

	PR fortran/29507
	PR fortran/31404
	* gfortran.dg/initialization_6.f90: New test.

From-SVN: r123815
2007-04-14 14:09:57 +00:00
Bernd Schmidt 4d4f2837c5 bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.
* config/bfin/bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.
	* config/bfin/bfin.md (movsi_insn): Delete two unused alternatives.

From-SVN: r123813
2007-04-14 10:50:45 +00:00
Kazu Hirata 7d33c31d9a config.gcc: Recognize fido.
gcc/
	* config.gcc: Recognize fido.
	* config/m68k/m68k-devices.def (fidoa): New.
	* config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define
	__mfido__.
	(FL_FIDOA, TARGET_FIDOA): New.
	* config/m68k/m68k.opt (mfidoa): New.

libgcc/
	* config.host: Recognize fido.

From-SVN: r123811
2007-04-14 02:15:45 +00:00
Kazu Hirata fd86239df0 target-supports.exp (check_gc_sections_available): Return false if ldflags includes -elf2flt.
* lib/target-supports.exp (check_gc_sections_available):
	Return false if ldflags includes -elf2flt.

From-SVN: r123810
2007-04-14 02:05:43 +00:00
Kazu Hirata 2a60412a5f * gcc.c-torture/compile/pr27528.c: Require nonpic.
From-SVN: r123809
2007-04-14 02:04:15 +00:00
John David Anglin 2a6acff7f9 re PR middle-end/31322 (ld: Invalid symbol type for plabel (.libs/debug_list.o, __gxx_personality_v0).)
PR middle-end/31322
	* dwarf2out.c (output_call_frame_info): Call assemble_external_libcall
	when a personality function is used.

From-SVN: r123806
2007-04-14 00:17:41 +00:00
Jason Merrill 44ba4c4e1c re PR c++/31074 (Reference casting involving multiple inheritance produces bad pointer)
PR c++/31074
        * call.c (reference_binding): Add c_cast_p parm.  If true,
        add quals to TO as needed to make it reference-compatible.

From-SVN: r123805
2007-04-13 19:43:18 -04:00
GCC Administrator 9a7b07c6c1 Daily bump.
From-SVN: r123803
2007-04-13 23:17:07 +00:00
Mike Stump 601589dbec Fix whitespacing.
From-SVN: r123799
2007-04-13 20:44:30 +00:00
Mike Stump a35fc190fb stubify-1.mm: Only run on powerpc.
* obj-c++.dg/stubify-1.mm: Only run on powerpc.
	* obj-c++.dg/template-4.mm: Don't run when 64-bit.

From-SVN: r123798
2007-04-13 20:43:22 +00:00
Bob Wilson ec3643e8c4 * config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.
From-SVN: r123797
2007-04-13 20:35:50 +00:00
Joseph Myers 6253b7603b re PR tree-optimization/29598 (FAIL: gcc.dg/tree-ssa/loadpre1.c and loadpre1[45].c scan-tree-dump-times Eliminated: 1 1)
PR tree-optimization/29598
	* gcc.dg/tree-ssa/loadpre1.c: XFAIL.

From-SVN: r123794
2007-04-13 20:46:37 +01:00
Tobias Burnus 1f8e994ce9 re PR fortran/31559 ([4.1 only] Assigning to an EXTERNAL leads to ICE)
2007-04-13  Tobias Burnus  <burnus@net-b.de>

	PR fortran/31559
	* primary.c (match_variable): External functions
	are no variables.

2007-04-13  Tobias Burnus  <burnus@net-b.de>

	PR fortran/31559
	* gfortran.dg/func_assign.f90: New test.

From-SVN: r123793
2007-04-13 20:34:36 +02:00
Mike Stump c40ce8f320 darwin-c.c (handle_c_option): Handle -fapple-kext here so we can...
* config/darwin-c.c (handle_c_option): Handle -fapple-kext here so
	we can...
	* config/darwin.opt (fapple-kext): Make C++ only.
	* config/darwin.c (darwin_override_options): Remove code to ensure
	-fapple-kext is given for C++ only.

From-SVN: r123792
2007-04-13 17:29:27 +00:00
Paul Thomas d6a7a3be74 re PR fortran/31550 (f951: segfault in fold-const.c:1963)
2007-04-13  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/31550
	* trans-types.c (copy_dt_decls_ifequal): Do not get pointer
	derived type components.

2007-04-13  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/31550
	* gfortran.dg/used_types_16.f90: New test.

From-SVN: r123791
2007-04-13 16:01:36 +00:00
Tobias Schlüter 0615f92345 re PR fortran/18937 (quadratic behaviour with many label "spaghetti" code)
PR fortran/18937
fortran/
* resolve.c: Include obstack.h and bitmap.h.  New variable
labels_obstack.
(code_stack): Add tail and reachable_labels fields.
(reachable_labels): New function.
(resolve_branch): Rework to use new fields in code_stack.
(resolve_code): Call reachable_labels.
(resolve_codes): Allocate and free labels_obstack.
testsuite/
* gfortran.dg/goto_2.f90: New.
* gfortran.dg/goto_3.f90: New.
* gfortran.dg/pr17708.f90: Rename to ...
* gfortran.dg/goto_4.f90: ... this, add comment pointing to
PR.

From-SVN: r123789
2007-04-13 15:48:08 +02:00
Richard Sandiford d1138d8e5e vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
gcc/
	* config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
	* config/mips/mips.c (override_options): Call
	SUBTARGET_OVERRIDE_OPTIONS, if defined.

From-SVN: r123788
2007-04-13 13:48:08 +00:00
H.J. Lu c33104d6c9 i386.opt (msvr3-shlib): Removed.
2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/i386.opt (msvr3-shlib): Removed.

	* doc/invoke.texi: Remove -msvr3-shlib.

From-SVN: r123787
2007-04-13 06:29:45 -07:00
H.J. Lu b194a08cd4 i386.opt (mpopcnt): Replace "popcount" instruction with "popcnt" instruction.
2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/i386.opt (mpopcnt): Replace "popcount" instruction
	with "popcnt" instruction.

From-SVN: r123786
2007-04-13 06:28:39 -07:00
Tobias Burnus da97e7ff6f re PR fortran/31562 (FAIL: gfortran.dg/value_4.f90 -O0 execution test)
2007-04-13  Tobias Burnus  <burnus@net-b.de>

       PR fortran/31562
       * gfortran.dg/f2c_4.c: Use GNU extensions for complex
       instead of a struct.

From-SVN: r123784
2007-04-13 13:26:09 +02:00
Tobias Schlüter d2824043b4 Fix date in Tobias Burnus' ChangeLog entry
From-SVN: r123782
2007-04-13 13:05:50 +02:00
Tobias Schlüter ed4c295946 Sigh. Add ChangeLog entry missing from previous commit.
From-SVN: r123781
2007-04-13 13:03:43 +02:00
Tobias Burnus 4026df75ea re PR fortran/31562 (FAIL: gfortran.dg/value_4.f90 -O0 execution test)
2007-04-12  Tobias Burnus  <burnus@net-b.de>

       PR fortran/31562
       * gfortran.dg/value_4.c: Use GNU extensions for complex
       instead of a struct.

From-SVN: r123780
2007-04-13 12:59:19 +02:00
Richard Guenther 9bb6aa4304 re PR tree-optimization/21258 (Teach VRP to pick up a constant from case label.)
2007-04-13  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/21258
	* tree-vrp.c (compare_case_labels): New helper.
	(find_switch_asserts): New function.
	(find_assert_locations): Call it for SWITCH_EXPRs.

	* gcc.dg/tree-ssa/vrp34.c: New testcase.

From-SVN: r123778
2007-04-13 09:21:22 +00:00
Uros Bizjak 27ac40e2a0 i386.h (X87_FLOAT_MODE_P): Check for TARGET_80387.
* config/i386/i386.h (X87_FLOAT_MODE_P): Check for TARGET_80387.
        * config/i386/i386.md (*cmpfp0): Remove check for TARGET_80387, this
        check is now implied in X87_FLOAT_MODE_P.
        (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
        (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
        (fix_trunc<mode>_i386_fisttp): Ditto.
        (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
        (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
        (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
        (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
        (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
        (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
        (unnamed_splitters): Ditto.
        * config/i386/i386.c (function_value_32): Generate FIRST_FLOAT_REG
        for X87_FLOAT_MODE_P mode.  Override FIRST_FLOAT_REG with
        FIRST_SSE_REG for local functions when SSE math is enabled or
        for functions with sseregparm attribute.
        (standard_80387_constant_p): Return -1 if mode is not
        X87_FLOAT_MODE_P.
        (ix86_cc_mode): Assert that scalar mode is not DECIMAL_FLOAT_MODE_P.
        (ix86_expand_compare): Ditto.
        (ix86_expand_carry_flag_compare): Ditto.
        (ix86_expand_int_movcc): Check for SCALAR_FLOAT_MODE_P instead
        of FLOAT_MODE_P for cmp_mode and assert that cmp_mode is not
        DECIMAL_FLOAT_MODE_P.
        (ix86_preferred_output_reload_class): Use X87_FLOAT_MODE_P instead
        of SCALAR_FLOAT_MODE_P.
        (ix86_rtx_costs) [PLUS] Remove FLOAT_MODE_P and fall through to ...
        [MINUS]: ... here.  Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P
        checks before FLOAT_MODE_P.
        [MULT]: Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P checks
        before FLOAT_MODE_P.
        [DIV]: Ditto.
        [NEG]: Ditto.
        [ABS]: Ditto.
        [SQRT]: Ditto.
        [FLOAT_EXTEND]: Use SSE_FLOAT_MODE_P.

From-SVN: r123777
2007-04-13 10:14:57 +02:00
Paolo Bonzini be0fe523e7 Makefile.in (stamp-as, [...]): Remove.
2007-04-12  Paolo Bonzini  <bonzini@gnu.org>
            Charles Wilson  <libtool@cwilson.fastmail.fm>

	* Makefile.in (stamp-as, stamp-collect-ld, stamp-nm): Remove.
	(libgcc.mvars): Don't depend on them.
	* configure.ac (as, collect-ld, nm): Create from exec-tool.in.
	* exec-tool.in: New.


Co-Authored-By: Charles Wilson <libtool@cwilson.fastmail.fm>

From-SVN: r123775
2007-04-13 07:04:39 +00:00
GCC Administrator 41a14c0644 Daily bump.
From-SVN: r123773
2007-04-12 23:17:05 +00:00