Commit Graph

98248 Commits

Author SHA1 Message Date
Jakub Jelinek
7647c8412a re PR middle-end/42760 (ICE in convert_move)
PR middle-end/42760
	* g++.dg/torture/pr42760.C: New test.

From-SVN: r155960
2010-01-16 10:45:53 +01:00
Joern Rennecke
b6fd8800b0 tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
* doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.

	(TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.

	(TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.

	(TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.

	(TARGET_IN_SMALL_DATA_P): Fix argument type.

	(TARGET_BINDS_LOCAL_P): Fix argument type.

	(TARGET_ASM_FILE_END): Use prototype.

	(TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.

	(TARGET_DWARF_CALLING_CONVENTION): Fix argument type.

	(TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.

	(TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.

	(TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
	(TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.

	(TARGET_PCH_VALID_P): Put 'const char *' in braces.
	(TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.

	(TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
	(TARGET_ADDR_SPACE_SUBSET_P): Likewise.
	(TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
	(TARGET_ADDR_SPACE_CONVERT): Likewise.

	(TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.

	(TARGET_MACHINE_DEPENDENT_REORG: Use prototype.

	(TARGET_INIT_BUILTINS): Use prototype.

	(TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
	Put 'const char *' in braces.  Fix parameter types.
	(TARGET_INVALID_CONVERSION): Fix parameter types.
	(TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
	(TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.

	(TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
	Fix argument type.

	(TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.

	(TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.

From-SVN: r155957
2010-01-16 02:39:40 +00:00
Joern Rennecke
9ddb66ef68 tm.texi (TARGET_HELP): Fix return type.
* doc/tm.texi (TARGET_HELP): Fix return type.

	(TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
	in braces.  Fix argument types.

	(TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.

	(TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.

	(TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.

	(TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
	(TARGET_FIXED_POINT_SUPPORTED_P): Likewise.

	(TARGET_MANGLE_TYPE): Fix argument types.

	(TARGET_IRA_COVER_CLASSES): Use prototype.

	(TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.

	(TARGET_CAN_ELIMINATE): Use identifiers for argument names.

	(TARGET_PROMOTE_PROTOTYPES): Fix argument type.

	(TARGET_MUST_PASS_IN_STACK): Fix argument type.

	(TARGET_CALLEE_COPIES): Fix argument types.

	(TARGET_SPLIT_COMPLEX_ARG): Fix argument type.

	(TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.

	(TARGET_FUNCTION_VALUE): Fix argument types.

	(TARGET_RETURN_IN_MSB): Fix argument type.

	(TARGET_RETURN_IN_MEMORY): Fix argument types.

	(TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.

	(TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.

	(TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
	agree with return type.

	(TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.

From-SVN: r155956
2010-01-16 00:36:34 +00:00
GCC Administrator
5e7bfbb828 Daily bump.
From-SVN: r155955
2010-01-16 00:16:43 +00:00
Phil Muldoon
852e2c40de printers.py (StdStringPrinter.__init__): Remove encoding argument.
2010-01-15  Phil Muldoon  <pmuldoon@redhat.com>

	* python/libstdcxx/v6/printers.py (StdStringPrinter.__init__):
	Remove encoding argument.
	(StdStringPrinter.to_string): Do not compute or pass encoding.
	Use lazy_string over string function.


--this line, and those below, will be ignored--

M    libstdc++-v3/python/libstdcxx/v6/printers.py
M    libstdc++-v3/ChangeLog

From-SVN: r155951
2010-01-15 23:36:58 +00:00
Jing Yu
4a62494df2 re PR rtl-optimization/42691 (problematic REG_EQUAL note added to SUBREG)
2010-01-15  Jing Yu  <jingyu@google.com>

	PR rtl-optimization/42691
        * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
	a pseudo to a constant and are merged, and adjust comments.

2010-01-15  Jing Yu  <jingyu@google.com>

	PR rtl-optimization/42691
	* gcc.c-torture/execute/pr42691.c: New.

From-SVN: r155948
2010-01-15 21:54:01 +00:00
Jing Yu
5a869057b4 Revert revision 155944 due to the broken testcase.
From-SVN: r155946
2010-01-15 21:38:20 +00:00
Jing Yu
1018d41ac2 re PR rtl-optimization/42691 (problematic REG_EQUAL note added to SUBREG)
2010-01-15  Jing Yu  <jingyu@google.com>

	PR rtl-optimization/42691
	* combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
	a pseudo to a constant and are merged, and adjust comments.

2010-01-15  Jing Yu  <jingyu@google.com>

	PR rtl-optimization/42691
	* gcc.c-torture/execute/pr42691.c: New.

From-SVN: r155944
2010-01-15 18:47:45 +00:00
Eric Botcazou
a1b5171bd8 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
From-SVN: r155943
2010-01-15 17:54:23 +00:00
Thierry Lafage
306c7b5be9 * MAINTAINERS (Write After Approval): Add myself
From-SVN: r155941
2010-01-15 16:43:58 +00:00
Jerry DeLisle
6d1adadd1b Add PR number to ChangeLog.
From-SVN: r155940
2010-01-15 15:55:24 +00:00
Jerry DeLisle
601aa68fd9 format.c (parse_format): Set limit on size of format strings that will be cached.
2010-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	* io/format.c (parse_format): Set limit on size of format strings that
	will be cached.

From-SVN: r155939
2010-01-15 15:52:28 +00:00
Konrad Trifunovic
1b8b9e1988 MAINTAINERS (Write After Approval): Add myself.
* MAINTAINERS (Write After Approval): Add myself.

From-SVN: r155938
2010-01-15 12:12:22 +00:00
Richard Guenther
1197e78957 re PR middle-end/42739 (ICE with computed goto, destructors, and optimization)
2010-01-15  Richard Guenther  <rguenther@suse.de>

	PR middle-end/42739
	* tree-cfgcleanup.c (remove_forwarder_block): Move destination
	labels of computed or non-local gotos to the destination.
	* tree-cfg.c (gimple_verify_flow_info): Verify that a EH
	landing pad label is the first label.

	* g++.dg/torture/pr42739.C: New testcase.

From-SVN: r155937
2010-01-15 11:53:26 +00:00
Dodji Seketeli
58be9ce9c3 Revert commit of PR c++/42634, which was commit r155868
From-SVN: r155936
2010-01-15 12:23:29 +01:00
Richard Guenther
cbe80ff867 tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
2010-01-15  Richard Guenther  <rguenther@suse.de>

	* tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.

From-SVN: r155934
2010-01-15 10:34:24 +00:00
Jerry DeLisle
3f298330df re PR fortran/42684 (ICE when interface operator(xx) available through host and use assoc in module procedure)
2010-01-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>

	PR fortran/42684
	* gfortran.dg/interface_31.f90: New test.

From-SVN: r155931
2010-01-15 02:06:23 +00:00
Jerry DeLisle
0175478dec re PR fortran/42684 (ICE when interface operator(xx) available through host and use assoc in module procedure)
2010-01-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>

	PR fortran/42684
	* interface.c (check_interface1): Pass symbol name rather than NULL to
	gfc_compare_interfaces.	(gfc_compare_interfaces): Add assert to
	trap MULL.
	* resolve.c (check_generic_tbp_ambiguity): Pass symbol name rather
	than NULL to gfc_compare_interfaces.

From-SVN: r155930
2010-01-15 01:47:43 +00:00
GCC Administrator
ab69346017 Daily bump.
From-SVN: r155928
2010-01-15 00:19:26 +00:00
Michael Meissner
c919858d6a Fix 42747, make -mvsx enable sqrt
From-SVN: r155923
2010-01-14 22:52:02 +00:00
Jakub Jelinek
ef5d11818d re PR middle-end/42674 (Bogus "no return statement in function returning non-void" warning)
PR middle-end/42674
	* c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
	functions with noreturn attribute.

	* decl.c (finish_function): Don't emit -Wreturn-type warnings in
	functions with noreturn attribute.

	* c-c++-common/pr42674.c: New test.

From-SVN: r155920
2010-01-14 23:43:56 +01:00
Jakub Jelinek
5b1cbe1453 re PR c++/42608 (Undefined reference not reported in case of explicit template instantiation)
PR c++/42608
	* varasm.c (declare_weak): Add weak attribute to decl if it
	doesn't have one already.
	(assemble_external): Only add decls to weak_decls if they also
	have weak attribute.

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

From-SVN: r155919
2010-01-14 23:41:02 +01:00
Alexandre Oliva
7d2a845248 var-tracking.c (var_reg_delete): Don't delete the association between REGs and values or one-part variables if...
* var-tracking.c (var_reg_delete): Don't delete the association
	between REGs and values or one-part variables if the register
	isn't clobbered.

From-SVN: r155918
2010-01-14 23:39:25 +01:00
Jakub Jelinek
d17af14789 re PR debug/42657 (Missing debug info for a variable)
PR debug/42657
	* tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
	because its first operand is a non-localized variable.

From-SVN: r155917
2010-01-14 23:38:29 +01:00
Jason Merrill
6700a2857f re PR c++/42701 (ICE on error recovery)
PR c++/42701
	* call.c (build_new_method_call): Don't free the vec here.

From-SVN: r155916
2010-01-14 17:32:24 -05:00
Jason Merrill
2d1a618e84 re PR c++/42655 (! causes the qualified types for rvalue)
PR c++/42655
	* call.c (convert_like_real): Do full decay_conversion for ck_rvalue.

From-SVN: r155913
2010-01-14 15:21:58 -05:00
Paolo Carlini
5f3e3df666 cstring (memchr): Forward to the builtin.
2010-01-14  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/c_std/cstring (memchr): Forward to the builtin.
	* include/c_std/cstring: Remove redundant casts; use names consistent
	with the letter of the Standard.
	* include/c_global/cstring: Likewise.

From-SVN: r155912
2010-01-14 18:15:37 +00:00
Martin Jambor
2f3cdcf502 re PR tree-optimization/42706 (ICE in gimple_op, at gimple.h:1634, (IPA SRA))
2010-01-14  Martin Jambor  <mjambor@suse.cz>

	PR tree-optimization/42706
	* tree-sra.c (encountered_recursive_call): New variable.
	(encountered_unchangable_recursive_call): Likewise.
	(sra_initialize): Initialize both new variables.
	(callsite_has_enough_arguments_p): New function.
	(scan_function): Call decl and flags check only for IPA-SRA, check
	whether there is a recursive call and whether it has enough arguments.
	(all_callers_have_enough_arguments_p): New function.
	(convert_callers): Look for recursive calls only when
	encountered_recursive_call is set.
	(ipa_early_sra): Bail out either if
	!all_callers_have_enough_arguments_p or
	encountered_unchangable_recursive_call.

	* testsuite/gcc.dg/ipa/pr42706.c: New testcase.

From-SVN: r155911
2010-01-14 19:00:34 +01:00
H.J. Lu
7767706d58 Use __SIZE_TYPE__ to define size_t.
2010-01-14  H.J. Lu  <hongjiu.lu@intel.com>

	* g++.dg/graphite/pr42681.C (size_t): Use __SIZE_TYPE__.

From-SVN: r155910
2010-01-14 06:45:47 -08:00
Alexander Monakov
c02e2d5cc5 sel-sched.c: Add 2010 to copyright years.
2010-01-14  Alexander Monakov  <amonakov@ispras.ru>

	* sel-sched.c: Add 2010 to copyright years.
	* sel-sched-ir.c: Likewise.
	* sel-sched-ir.h: Likewise.

From-SVN: r155906
2010-01-14 16:50:09 +03:00
Martin Jambor
92e97cdd7d re PR tree-optimization/42714 (ICE in create_tmp_var, at gimplify.c:504)
2010-01-14  Martin Jambor  <mjambor@suse.cz>

	PR tree-optimization/42714
	* tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
	constructors specially.

	* gcc/testsuite/g++.dg/torture/pr42714.C: New test.

From-SVN: r155905
2010-01-14 14:29:44 +01:00
Andi Kleen
a0463099e7 drivers-i386.c (detect_caches_intel): Add l2sizekb parameter and fill in.
2010-01-14  Andi Kleen  <ak@linux.intel.com>

	* config/i386/drivers-i386.c (detect_caches_intel):
	Add l2sizekb parameter and fill in.
	(host_detect_local_cpu): Add l2sizekb, fill in.
	Add Atom small cache heuristic.

2010-01-14  Andi Kleen  <ak@linux.intel.com>

	* config/i386/drivers-i386.c (detect_caches_cpuid4):
	Add level3 parameter and fill in.
	(detect_caches_intel): Handle level3 cache.

2010-01-14  Andi Kleen  <ak@linux.intel.com>

	* config/i386/drivers-i386.c (host_detect_local_cpu):
	Fix core duo detection.

2010-01-14  Andi Kleen  <ak@linux.intel.com>

	* config/i386/drivers-i386.c (host_detect_local_cpu):
	Fix Atom detection.

From-SVN: r155904
2010-01-14 13:48:09 +01:00
Alexander Monakov
dd6739e322 rs6000.c (rs6000_variable_issue): Rename to...
2010-01-14  Alexander Monakov  <amonakov@ispras.ru>

	* config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
	(rs6000_variable_issue_1): this.  Use...
	(rs6000_variable_issue): here.  Reimplement.  Print debug info.

From-SVN: r155902
2010-01-14 14:27:11 +03:00
Alexander Monakov
7898b93b57 sel-sched-ir.c (sel_restore_other_notes): Rename to sel_restore_notes.
2010-01-14  Alexander Monakov  <amonakov@ispras.ru>

	* sel-sched-ir.c (sel_restore_other_notes): Rename to sel_restore_notes.
	Update all callers.  Call reemit_notes for all insns.

From-SVN: r155901
2010-01-14 14:25:25 +03:00
Andrey Belevantsev
65b659ff8a re PR rtl-optimization/42246 (ICE in init_seqno for 186.crafty with sel-sched)
PR rtl-optimization/42246
        * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
        loops.

From-SVN: r155900
2010-01-14 14:22:20 +03:00
Andrey Belevantsev
c648655209 sel-sched.c (compute_av_set_at_bb_end): Do not test that number of all successors is the same as number of successors...
* sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
        all successors is the same as number of successors in current region.

From-SVN: r155899
2010-01-14 14:19:25 +03:00
Alexander Monakov
f07013eb07 sel-sched.c (maybe_emit_renaming_copy): Exit early when expression to rename is not separable.
2010-01-14  Alexander Monakov  <amonakov@ispras.ru>

	* sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
	to rename is not separable.  Otherwise check that its LHS is not NULL.

From-SVN: r155898
2010-01-14 14:16:02 +03:00
Alexander Monakov
a9ced68beb sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
2010-01-14  Alexander Monakov  <amonakov@ispras.ru>

	* sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.

From-SVN: r155897
2010-01-14 14:15:07 +03:00
Alexander Monakov
0c94f956cf sel-sched.c (mark_unavailable_hard_regs): Do not try to search available registers when failed to discover LHS register class.
2010-01-14  Alexander Monakov  <amonakov@ispras.ru>

	* sel-sched.c (mark_unavailable_hard_regs): Do not try to search
	available registers when failed to discover LHS register class.
	Fix indentation.  Update comment.

From-SVN: r155896
2010-01-14 14:13:36 +03:00
Andrey Belevantsev
136e01a3a9 re PR rtl-optimization/42389 (ICE in advance_state_on_fence with sel-schd for 175.vpr)
PR rtl-optimization/42389
        * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
        to can_issue_more.
        (advance_state_on_fence): Likewise.
        (sel_target_adjust_priority): Print debug output only when
        sched_verbose >= 4, not 2.
        (get_expr_cost): Do not issue all unique insns on the next cycle.
        (fill_insns): Initialize can_issue_more from the value saved
        with the fence.
        * sel-sched-ir.c (flist_add): New parameter issue_more.
        Init FENCE_ISSUE_MORE with it.
        (merge_fences): Likewise.
        (init_fences): Update call to flist_add.
        (add_to_fences, add_clean_fence_to_fences)
        (add_dirty_fence_to_fences): Likewise.
        (move_fence_to_fences): Update call to merge_fences.
        (invoke_reorder_hooks): Do not reset can_issue_more on insns from
        sched groups.
        * sel-sched-ir.h (struct _fence): New field issue_more.
        (FENCE_ISSUE_MORE): New accessor macro.

From-SVN: r155895
2010-01-14 14:07:39 +03:00
Andrey Belevantsev
762bffbac1 re PR rtl-optimization/42388 (ICE in move_bb_info with sel-sched and modulo-sched for 176.gcc)
PR rtl-optimization/42388
        * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
        that have no predecessors nor successors.  Do not call move_bb_info
        for empty blocks outside of current region.

From-SVN: r155894
2010-01-14 14:02:18 +03:00
Alexander Monakov
14f30b877f re PR rtl-optimization/42294 (ICE in code_motion_path_driver for 416.gamess)
2010-01-14  Alexander Monakov  <amonakov@ispras.ru>

	PR rtl-optimization/42294
	* sel-sched-ir.h (struct _sel_insn_data): Update comment.
	* sel-sched.c (move_exprs_to_boundary): Transitively add all
	originators' originators.

	* gfortran.dg/pr42294.f: New.

From-SVN: r155893
2010-01-14 13:46:57 +03:00
Alexander Monakov
8ec4d0ada3 re PR rtl-optimization/39453 (ICE : in init_seqno, at sel-sched.c:6433)
2010-01-14  Alexander Monakov  <amonakov@ispras.ru>

	PR rtl-optimization/39453
	PR rtl-optimization/42246
	* sel-sched-ir.c (considered_for_pipelining_p): Do not test
	for pipelining_p.
	(sel_add_loop_preheaders): Add preheader to last_added_blocks.

	* gcc.dg/pr39453.c: New.
	* gcc.dg/pr42246.c: New.

From-SVN: r155892
2010-01-14 13:40:19 +03:00
Alexander Monakov
2b342bc1fb Add tests missing from previous commit.
PR middle-end/42245
	* gcc.dg/pr42245.c: New.
	* gcc.dg/pr42245-2.c: New.

From-SVN: r155891
2010-01-14 13:38:14 +03:00
Alexander Monakov
b59ab5709e re PR middle-end/42245 (ICE in verify_backedges for 197.parser with sel-sched)
2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
	    Alexander Monakov  <amonakov@ispras.ru>

	PR middle-end/42245
	* sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
	(maybe_tidy_empty_bb): ... here.  Make static.  Add new
	argument.  Update all callers.
	(tidy_control_flow): ... and here.  Recompute topological order
	of basic blocks in region if necessary.
	(sel_redirect_edge_and_branch): Change return type.  Return true
	if topological order might have been invalidated.
	(purge_empty_blocks): Export and move from...
	* sel-sched.c (purge_empty_blocks): ... here.
	* sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
        (maybe_tidy_empty_bb): Delete prototype.
	(purge_empty_blocks): Declare.

	* gcc.dg/pr42245.c: New.
	* gcc.dg/pr42245-2.c: New.

From-SVN: r155890
2010-01-14 13:28:47 +03:00
Andrey Belevantsev
0666ff4e33 re PR rtl-optimization/42294 (ICE in code_motion_path_driver for 416.gamess)
PR rtl-optimization/42294
        * sel-sched.c (try_replace_dest_reg): When chosen register
        and original register is the same, do not bail out early, but
        still check all original insns for validity of replacing destination
        register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
        in this case.

From-SVN: r155889
2010-01-14 13:16:01 +03:00
Jakub Jelinek
5f8d50239b re PR c/42721 (possible integer wrong code bug)
PR c/42721
	Port from no-undefined-overflow branch
	2009-03-09  Richard Guenther  <rguenther@suse.de>

	* fold-const.c (add_double_with_sign): Fix unsigned overflow
	detection.

	* gcc.c-torture/execute/pr42721.c: New test.

From-SVN: r155887
2010-01-14 10:47:09 +01:00
Richard Guenther
429c98c9a8 re PR lto/42665 (Internal compiler exception in with gfortran when using -fwhole-program -flto -fopenmp)
2010-01-14  Richard Guenther  <rguenther@suse.de>

	PR lto/42665
	* gimple.c (iterative_hash_gimple_type): Avoid hashing
	error_mark_node.

From-SVN: r155885
2010-01-14 09:38:56 +00:00
Sebastian Pop
3c7c015805 re PR tree-optimization/42681 (ICE: in build2_stat, at tree.c:3664 with "-O1 -fgraphite-identity")
Fix PR42681.

2010-01-14  Sebastian Pop  <sebastian.pop@amd.com>

	PR middle-end/42681
	* graphite-clast-to-gimple.c (gloog_error): New static variable.
	(clast_to_gcc_expression): Do not build MULT_EXPR of POINTER_TYPE_P.
	Set gloog_error when such an expression failed to be built.
	(translate_clast): Early return when gloog_error is set.
	(gloog): Clear gloog_error.  When gloog_error is set, call
	set_ifsese_condition to enable the original code.  Return the status
	of the code generation based on gloog_error.
	* sese.c (set_ifsese_condition): New.
	* sese.h (set_ifsese_condition): Declared.

	* testsuite/g++.dg/graphite/pr42681.C: New.

From-SVN: r155884
2010-01-14 08:37:26 +00:00
Ira Rosen
cd481d83ed re PR tree-optimization/42709 (error: type mismatch in pointer plus expression)
PR tree-optimization/42709
	* tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
	as scalar type in creation of constant vector operand.

From-SVN: r155882
2010-01-14 07:49:39 +00:00