1 2007-07-14 Dirk Mueller <dmueller@suse.de>
3 * omega.c (coalesce): Fix memory leak on early exit.
4 * matrix-reorg.c (check_allocation_function): Likewise.
5 * tree-vect-transform.c (vect_get_new_vect_var): free result
7 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
8 pass pointer to edge vector
9 (partition_hot_cold_basic_blocks): Fix memory leak.
10 * collect2.c (prefix_from_string): Free temporary storage.
11 * reload1.c (fixup_abnormal_edges): Free sbitmap.
13 2007-07-14 Kaz Kojima <kkojima@gcc.gnu.org>
15 * config/sh/sh.h (DO_GLOBAL_CTORS_BODY): Add void to prototype.
16 (DO_GLOBAL_DTORS_BODY): Likewise.
18 2007-07-14 Sandra Loosemore <sandra@codesourcery.com>
19 Nigel Stephens <nigel@mips.com>
21 * config/mips/mips.c (mips_classify_symbol): Don't return
22 SYMBOL_SMALL_DATA for constant pool addresses if
23 TARGET_EMBEDDED_DATA is true.
25 2007-07-14 Uros Bizjak <ubizjak@gmail.com>
27 * config/i386/i386.c (init_mmx_sse_builtins): Define all builtins
28 except __builtin_ia32_emms, __builtin_ia32_ldmxcsr,
29 __builtin_ia32_stmxcsr, __builtin_ia32_maskmovq, __builtin_ia32_loadups,
30 __builtin_ia32_storeups, __builtin_ia32_loadhps, __builtin_ia32_loadlps,
31 __builtin_ia32_storehps, __builtin_ia32_storelps,
32 __builtin_ia32_movntps, __builtin_ia32_movntq, __builtin_ia32_sfence,
33 __builtin_ia32_femms, __builtin_ia32_maskmovdqu, __builtin_ia32_loadupd,
34 __builtin_ia32_storeupd, __builtin_ia32_loadhpd, __builtin_ia32_loadlpd,
35 __builtin_ia32_movnti, __builtin_ia32_movntpd, __builtin_ia32_movntdq,
36 __builtin_ia32_clflush, __builtin_ia32_lfence, __builtin_ia32_mfence,
37 __builtin_ia32_loaddqu, __builtin_ia32_storedqu, __builtin_ia32_monitor,
38 __builtin_ia32_mwait, __builtin_ia32_lddqu, __builtin_ia32_movntdqa,
39 __builtin_ia32_movntsd and __builtin_ia32_movntss as const builtins
40 using def_builtin_const.
42 2007-07-14 Eric Botcazou <ebotcazou@adacore.com>
44 PR tree-optimization/32705
45 * tree-ssa-sccvn.c (set_ssa_val_to): Accept VN_TOP as value number.
46 (simplify_binary_expression): Use SSA_VAL consistently.
48 2007-07-13 David Edelsohn <edelsohn@gnu.org>
50 * config/rs6000/spe.md (SPE_ACC_REGNO): Delete definition.
51 (SPEFSCR_REGNO): Delete definition.
52 * config/rs6000/rs6000.c: LINK_REGISTER_REGNUM -> LR_REGNO.
53 COUNT_REGISTER_REGNUM -> CTR_REGNO.
54 * config/rs6000/rs6000.h: Do not define *_REGNO.
55 LINK_REGISTER_REGNUM -> LR_REGNO.
56 COUNT_REGISTER_REGNUM -> CTR_REGNO.
57 * config/rs6000/predicates.md: LINK_REGISTER_REGNUM -> LR_REGNO.
58 COUNT_REGISTER_REGNUM -> CTR_REGNO.
59 * config/rs6000/linux-unwind.h: Define R_LR, R_CR2, R_VR0,
60 R_VRSAVE, R_VSCR. Use them.
61 * config/rs6000/darwin-fallback.c: Define R_LR, R_CTR, R_CR2,
62 R_XER, R_VR0, R_VRSAVE, R_VSCR, R_SPEFSCR. Use them.
63 * config/rs6000/rs6000.md: Define REGNO constants. Use them.
64 * config/rs6000/aix.h: Define R_LR. Use it.
66 2007-07-13 Caroline Tice <ctice@apple.com>
68 * toplev.c (process_options): Turn flag_var_tracking_uninit off when
69 flag_var_tracking is explicitly turned off (i.e. when variable
70 tracking is not feasible); otherwise, turn flag_var_tracking on when
71 flag_var_tracking_uninit is on.
72 * rtl.def (VAR_LOCATION): Add a new integer subfield to VAR_LOCATION
73 note definitions, to allow recording of initialization status in the
75 * dwarf2out.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
76 (add_var_loc_to_decl): Add comparison of NOTE_VAR_LOCATION_STATUS to
77 determine if two note locations are equal.
78 (output_loc_list): Don't output list entries whose start & end labels
80 (reg_loc_descriptor): Add parameter for initialization status; pass it
81 to other loc descriptor functions.
82 (one_reg_loc_descriptor): Add parameter for initialization status;
83 check its value and add DW_OP_GNU_uninit to returned loc descr if
85 (multiple_reg_loc_descriptor): Add parameter for initialization
87 pass init status argument to other loc descriptor functions; check
88 value of intialization parameter and add DW_OP_GNU_uninit to returned
89 loc descr if appropriate.
90 (based_loc_descr): Add parameter for initialization status; add new
91 variable for return value; check value of initialization parameter and
92 add DW_OP_GNU_uninit to returned loc descr if appropriate.
93 (concatn_mem_loc_descriptor): Add parameter for initialization status;
94 pass init status argument to other loc descriptor functions; check
95 value of intialization parameter and add DW_OP_GNU_uninit to returned
96 loc descr if appropriate.
97 (mem_loc_descriptor): Likewise.
98 (concat_loc_descriptor): Likewise.
99 (concatn_loc_descriptor): Likewise.
100 (loc_descriptor): Add parameter for initialization status; pass it as
101 argument to other loc descriptor function calls.
102 (loc_descriptor_from_tree_1): Add appropriate initialization status
103 to loc descriptor function calls.
104 (add_location_or_const_value_attribute): Get initialization status
105 from VAR_LOCATION note; add initialization status to loc descriptor
107 * dwarf2.h (enum dwarf_location_atom): New op, DW_OP_GNU_uninit.
108 * print-rtl.c (print_rtx): When printing a VAR_LOCATION note, if
109 status is uninitialized, add "[uninint]" to output.
110 * common.opt (fvar-tracking-uninit): New option, similar to
111 fvar-tracking, to turn on tracking of uninitialized variables; creates
112 a new global flag, flag_var_tracking_uninit.
113 * rtl.h (NOTE_VAR_LOCATION_STATUS): New macro for accessing new field.
114 (enum var_init_status): New type, for var initialization status field.
115 * var-tracking.c (struct location_chain_def): Two new fields, init,
116 for initialization status, and set_src for the assignment value expr.
117 (unshare_variable): New parameter for initialization status;
118 initialize new init and set_src fields.
119 (var_reg_set): New parameters for initialization status and value;
120 pass them to set_variable_part.
121 (var_mem_set): Likewise.
122 (get_init_value): New function.
123 (var_reg_delete_and_set): New initialization status & value
124 parameters; add call to get_init_value if status is unknown; pass new
125 parameters to clobber_variable_part and var_reg_set.
126 (var_mem_delete_and_set): Likewise.
127 (var_reg_delete): Pass null set_src value to clobber_variable_part.
128 (var_mem_delete): Likewise.
129 (variable_union): Pass status to unshare_variable; initialize new init
130 and set_src fields. If flag_var_tracking_uninit is not set, force
131 status to initialized.
132 (add_stores): Store insn, rather than NEXT_INSN(insn), so it can be
133 used later to get the set_src value.
134 (find_src_status): New function.
135 (find_src_set_src): New function.
136 (compute_bb_dataflow): Pass init status to calls to var_reg_set,
137 var_mem_set, var_reg_delete_and_set and var_mem_delete_and_set; for
138 MO_SET, get set_src value and pass it to var_reg_delete_and_set
139 and var_mem_delete_and_set.
140 (dump_variable): Print out "[uninit]" if appropriate.
141 (set_variable_part): Add new initialization and set_src parameters;
142 pass status to unshare_variable; set node->init and node- >set_src
143 fields and modify slot in hash table appropriately; save the init and
144 set_src values if appropriate and assign to the new node.
145 (clobber_variable_part): New set_src parameter; if two nodes have
146 same variable and same location but different set_src (assignment)
147 values, clobber old node.
148 (delete_variable_part): Pass init status to unshare_variable.
149 (emit_note_insn_var_location): Add initialized var; assign var's init
150 status to new 'initialized'; pass new init status field to calls to
151 gen_rtx_VAR_LOCATION. If flag_var_tracking_uninit is not set, force
152 status to initialized.
153 (emit_notes_in_bb): Pass initialization status to calls to
154 var_reg_set, var_mem_set, var_reg_delete_and_set and
155 var_mem_delete_and_set; for MO_SET, get set_src value and pass it to
156 var_reg_delete_and_set and var_mem_delete_and_set; call
157 emit_notes_for_changes on NEXT_INSN(insn) rather than on insn, to
158 make up for change in add_stores.
159 (vt_add_function_parameters): Add status to calls to
161 * config/darwin.c (darwin_override_options): Turn on uninitialized
162 tracking automatically, if var_tracking is on and the system is
165 2007-07-13 Sa Liu <saliu@de.ibm.com>
167 * config.gcc: Add options for arch and tune on SPU.
168 * config/spu/predicates.md: Add constant operands 0 and 1.
169 * config/spu/spu-builtins.def: Add builtins for double precision
170 floating point comparison: si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt,
171 si_dftsv, spu_cmpeq_13, spu_cmpabseq_1, spu_cmpgt_13, spu_cmpabsgt_1,
173 * config/spu/spu-c.c: Define __SPU_EDP__ when builtins invoked with
175 * config/spu/spu-protos.h: Add new function prototypes.
176 * config/spu/spu.c (spu_override_options): Check options -march and
178 (spu_comp_icode): Add comparison code for DFmode and vector mode.
179 (spu_emit_branch_or_set): Use the new code for DFmode and vector
181 (spu_const_from_int): New. Create a vector constant from 4 ints.
182 (get_vec_cmp_insn): New. Get insn index of vector compare instruction.
183 (spu_emit_vector_compare): New. Emit vector compare.
184 (spu_emit_vector_cond_expr): New. Emit vector conditional expression.
185 * config/spu/spu.h: Add options -march and -mtune. Define processor
186 types PROCESSOR_CELL and PROCESSOR_CELLEDP. Define macro
187 CANONICALIZE_COMPARISON.
188 * config/spu/spu.md: Add new insns for double precision compare
189 and double precision vector compare. Add vcond and smax/smin patterns
190 to enable DFmode vector conditional expression.
191 * config/spu/spu.opt: Add options -march and -mtune.
192 * config/spu/spu_internals.h: Add builtins for CELLEDP target:
193 si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt, si_dftsv. Add builtin for
194 both CELL and CELLEDP targets: spu_testsv.
195 * config/spu/spu_intrinsics.h: Add flag mnemonics for test special
198 2007-07-13 Richard Guenther <rguenther@suse.de>
200 PR tree-optimization/32721
201 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Preserve
202 TREE_THIS_VOLATILE on the folded reference.
203 * tree-ssa-operands.c (get_expr_operands): Set has_volatile_ops
204 if the array reference has TREE_THIS_VOLATILE set.
206 2007-07-13 H.J. Lu <hongjiu.lu@intel.com>
209 * doc/libgcc.texi: Update DFP intrinsics for DPD and BID.
211 2007-07-13 Andreas Schwab <schwab@suse.de>
213 * gengtype-lex.l: Allow declarations to be indented.
215 2007-07-12 Geoffrey Keating <geoffk@apple.com>
217 * ginclude/tgmath.h: New.
218 * config.gcc: Use GCC's tgmath.h on non-glibc systems.
219 * doc/sourcebuild.texi (Headers): Document use_gcc_tgmath.
220 * configure.ac (STMP_FIXPROTO): Honor use_gcc_tgmath.
221 * configure: Regenerate.
223 2007-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
225 * config/sh/linux-unwind.h (sh_fallback_frame_state): Use
226 correct index when setting register save state for xd
229 2007-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
231 * config/sh/sh.c (mark_use): Remove.
233 2007-07-12 Paul Brook <paul@codesourcery.com>
235 * config/arm/arm.c (thumb1_compute_save_reg_mask): Make sure scratch
236 reg does not overlap return value.
238 2007-07-12 Daniel Berlin <dberlin@dberlin.org>
240 * tree-ssa-pre.c (get_expression_vuses): Move out side-effect.
241 (set_expression_vuses): Ditto.
242 (init_pre): Initialize expression_vuses.
244 2007-07-12 Zdenek Dvorak <dvorakz@suse.cz>
246 * config/i386/sse.md (storentdf, storentsf): New.
248 2007-07-12 Geoffrey Keating <geoffk@apple.com>
250 * builtins.c (get_pointer_alignment): Honor DECL_ALIGN on a
252 * tree.c (build_decl_stat): Move code from here...
253 (make_node_stat): ... to here. Don't uselessly clear DECL_USER_ALIGN.
254 (expr_align): Honor DECL_ALIGN on a FUNCTION_DECL. Add comment
255 about using DECL_ALIGN of LABEL_DECL and CONST_DECL.
256 * tree.h (DECL_USER_ALIGN): Fix misplaced comment.
257 * varasm.c (assemble_start_function): Use DECL_ALIGN instead of
260 2007-07-12 Dorit Nuzman <dorit@il.ibm.com>
261 Devang Patel <dpatel@apple.com>
263 PR tree-optimization/25413
264 * targhooks.c (default_builtin_vector_alignment_reachable): New.
265 * targhooks.h (default_builtin_vector_alignment_reachable): New.
266 * tree.h (contains_packed_reference): New.
267 * expr.c (contains_packed_reference): New.
268 * tree-vect-analyze.c (vector_alignment_reachable_p): New.
269 (vect_enhance_data_refs_alignment): Call
270 vector_alignment_reachable_p.
271 * target.h (vector_alignment_reachable): New builtin.
272 * target-def.h (TARGET_VECTOR_ALIGNMENT_REACHABLE): New.
273 * config/rs6000/rs6000.c (rs6000_vector_alignment_reachable): New.
274 (TARGET_VECTOR_ALIGNMENT_REACHABLE): Define.
276 2007-07-12 Dorit Nuzman <dorit@il.ibm.com>
278 * target.h (builtin_vectorization_cost): Add new target builtin.
279 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
280 * tree-vectorizer.h (TARG_SCALAR_STMT_COST): New.
281 (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST): New.
282 * tree-vect-analyze.c (vect_analyze_slp_instance): Initisliaze
283 uninitialized variables.
284 * tree-vect-transform.c (cost_for_stmt): New function.
285 (vect_estimate_min_profitable_iters): Call cost_for_stmt instead of
286 using cost 1 for all scalar stmts. Be less conservative when
287 estimating the number of prologue/epulogue iterations. Call
288 targetm.vectorize.builtin_vectorization_cost. Return
289 min_profitable_iters-1.
290 (vect_model_reduction_cost): Use TARG_SCALAR_TO_VEC_COST for
291 initialization cost instead of TARG_VEC_STMT_COST. Use
292 TARG_VEC_TO_SCALAR_COST instead of TARG_VEC_STMT_COST for reduction
293 epilogue code. Fix epilogue cost computation.
294 * config/spu/spu.c (spu_builtin_vectorization_cost): New.
295 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Implement.
296 * config/spu/spu.h (TARG_COND_BRANCH_COST, TARG_SCALAR_STMT_COST):
297 (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST, TARG_VEC_STMT_COST):
298 (TARG_VEC_TO_SCALAR_COST, TARG_SCALAR_TO_VEC, TARG_VEC_LOAD_COST):
299 (TARG_VEC_UNALIGNED_LOAD_COST, TARG_VEC_STORE_COST): Define.
301 2007-07-12 Richard Guenther <rguenther@suse.de>
303 * gimplify.c (gimplify_conversion): Make sure that the result
304 from maybe_fold_offset_to_reference is trivially convertible
305 to the desired type before doing the simplification.
306 (gimplify_expr): Likewise.
307 * fold-const.c (fold_binary): Use the correct types for
308 building the simplified expression.
310 2007-07-12 Zdenek Dvorak <dvorakz@suse.cz>
312 PR rtl-optimization/32729
313 * cfghooks.c (can_duplicate_block_p): Do not forbid duplicating blocks
314 that fallthru to exit.
316 2007-07-12 Kaz Kojima <kkojima@gcc.gnu.org>
318 * config/sh/sh.md (symGOTOFF2reg): Add missing parenthesis.
319 (symDTPOFF2reg): Likewise.
321 2007-07-11 Daniel Berlin <dberlin@dberlin.org>
323 PR tree-optimization/32663
325 * tree.h (VALUE_HANDLE_VUSES): Remove.
326 (struct tree_value_handle): Remove vuses.
328 * tree-vn.c (create_value_handle_for_expr): Don't set
331 * tree-ssa-pre.c (expression_vuses): New.
332 (alloc_expression_id): Set up expression_vuses.
333 (get_expression_vuses): New.
334 (set_expression_vuses): Ditto.
335 (clear_expression_ids): Modify for expression_vuses.
336 (phi_translate_1): Ditto.
337 (phi_translate_set): Ditto.
338 (value_dies_in_block_x): Ditto
339 (valid_in_sets): Ditto.
340 (add_to_sets): Ditto.
341 (find_existing_value_expr): Ditto.
342 (create_value_handle_for_expr): Ditto.
343 (make_values_for_stmt): Ditto.
344 (vuse_equiv): Remove.
346 2007-07-11 Alexandre Oliva <aoliva@redhat.com>
348 * Makefile.in (mostlyclean): Remove object files.
350 2007-07-11 Kenneth Zadeck <zadeck@naturalbridge.com>
352 * toplev.c (no_new_pseudos): Deleted.
353 * rtl.h (no_new_pseudos): Deleted.
354 * tree-pass.h (pass_no_new_pseudos): Deleted.
355 * passes.c (pass_no_new_pseudos): Deleted.
356 * final.c (rest_of_clean_state): Removed no_new_pseudos.
357 (rest_of_no_new_pseudos, pass_no_new_pseudos): Deleted.
358 * struct-equiv.c (rtx_equiv_p): Replaced no_new_pseudos with
360 * cfgcleanup.c (try_crossjump_to_edge): Ditto.
361 * rtlhooks.c (gen_lowpart_general): Ditto.
362 * optabs.c (prepare_operand): Ditto.
363 * mode-switching.c (rest_of_handle_mode_switching): Deleted set of
365 * modulo-sched.c (rest_of_handle_sms): Ditto.
366 * see.c (rest_of_handle_see): Ditto.
367 * ifcvt.c (if_convert): Ditto.
368 (gate_handle_if_after_combine): Replaced no_new_pseudos with
370 * init-regs.c (gate_initialize_regs): Deleted set of
372 * lower-subreg.c (decompose_multiword_subregs): Ditto.
373 * bb-reorder.c (rest_of_handle_partition_blocks): Ditto.
374 * doc/md.texi: Changed no_new_pseudos to can_create_pseudo_p.
376 2007-07-11 Uros Bizjak <ubizjak@gmail.com>
379 * config/i386/sse.md (*sse2_storeq_rex64): Handle 64bit mem->reg moves.
380 (*vec_extractv2di_1_sse2): Disable for TARGET_64BIT.
381 (*vec_extractv2di_1_rex64): New insn pattern.
383 2007-07-11 David Daney <ddaney@avtrex.com>
385 * config/mips/linux-unwind.h (mips_fallback_frame_state): Rewrite
386 return address calculation. Substitute DWARF_ALT_FRAME_RETURN_COLUMN
387 for SIGNAL_UNWIND_RETURN_COLUMN.
388 * config/mips/mips.h (SIGNAL_UNWIND_RETURN_COLUMN): Remove.
389 (DWARF_FRAME_REGNUM): Rewrite.
390 (DWARF_ALT_FRAME_RETURN_COLUMN) Define.
392 2007-07-11 Nick Clifton <nickc@redhat.com>
394 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Revert previous
395 delta and use gen_int_mode in place of GET_INT instead.
397 2007-07-11 Uros Bizjak <ubizjak@gmail.com>
399 * reg-stack.c (struct tree_opt_pass pass_stack_regs): Nullify name
402 2007-07-11 Douglas Gregor <doug.gregor@gmail.com>
404 * params.def (PARAM_VERIFY_CANONICAL_TYPES): Remove.
405 (PARAM_USE_CANONICAL_TYPES): New; decides whether to use canonical
407 * params.h (VERIFY_CANONICAL_TYPES): Remove.
408 (USE_CANONICAL_TYPES): New.
409 * doc/invoke.texi (verify-canonical-types): Remove.
410 (use-canonical-types): Add.
412 2007-07-11 Ulrich Weigand <uweigand@de.ibm.com>
414 * config/spu/spu.c (spu_optimization_options): Remove setting of
415 parameter PARAM_MAX_COMPLETELY_PEEL_TIMES.
416 (spu_override_options): Move it here.
418 2007-07-11 Richard Sandiford <richard@codesourcery.com>
420 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle -m4ksc and -m4ksd.
421 * config/mips/mips.c (mips_cpu_info_table): Mention
422 MIPS_ISA_LEVEL_SPEC in the comment.
424 2007-07-11 Eric Botcazou <ebotcazou@adacore.com>
426 PR tree-optimization/32713
427 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle REAL_CST.
429 2007-07-11 Paolo Carlini <pcarlini@suse.de>
432 * c-opts.c (c_common_post_options): Do not change flag_complex_method
433 conditional to flag_isoc99.
434 (c_common_init_options): Do it here, unconditionally.
436 2007-07-11 Eric Botcazou <ebotcazou@adacore.com>
438 PR tree-optimization/32589
439 * doc/tree-ssa.texi (Rough GIMPLE Grammar): Add missing rule.
440 * tree-gimple.c (is_gimple_min_invariant): Clarify head comment.
441 * tree-ssa-propagate.c (valid_gimple_expression_p): New
442 predicate, extracted from...
443 (set_rhs): ...here. Call it for the expression on entry.
444 * tree-ssa-propagate.h (valid_gimple_expression_p): Declare.
445 * tree-ssa-sccvn.c: Include tree-ssa-propagate.h.
446 (simplify_binary_expression): Use valid_gimple_expression_p
447 to validate the simplification.
448 * Makefile.in (tree-ssa-sccvn.o): Depends on tree-ssa-propagate.h.
450 2007-07-11 Danny Smith <dannysmith@users.sourceforge.net>
452 * config/i386/cygming.h (PREFERRED_DEBUGGING_TYPE): Define to
453 DWARF2_DEBUG on 32 bit target too.
454 (DWARF2_UNWIND_INFO): Reorganize 64-bit vs 32-bit definition.
456 2007-07-11 Nick Clifton <nickc@redhat.com>
458 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Provide alternative
459 version for 64-bit hosts.
461 2007-07-10 David Daney <ddaney@avtrex.com>
463 * config/mips/mips.h (ISA_HAS_SYNCI): New target capability
465 (INITIALIZE_TRAMPOLINE): Emit clear_cache insn instead of library
467 * config/mips/mips.c (mips_expand_synci_loop): New function.
468 * config/mips/mips.md (UNSPEC_CLEAR_HAZARD): New constant.
469 (UNSPEC_RDHWR): Same.
470 (UNSPEC_SYNCI): Same.
472 (clear_cache): New expand.
476 (clear_hazard): Same.
477 * config/mips/mips-protos.h (mips_expand_synci_loop): Declare
479 * testsuite/gcc.target/mips/clear-cache-1.c: New test.
480 * testsuite/gcc.target/mips/clear-cache-2.c: New test.
482 2007-07-10 Ian Lance Taylor <iant@google.com>
484 * emit-rtl.c (gen_reg_rtx): Check can_create_pseudo_p rather than
487 2007-07-10 David Daney <ddaney@avtrex.com>
489 * builtins.def (BUILT_IN_CLEAR_CACHE): New builtin.
490 * builtins.c (expand_builtin___clear_cache): New function.
491 (expand_builtin): Call expand_builtin___clear_cache for
492 BUILT_IN_CLEAR_CACHE case.
493 * doc/extend.texi (__builtin___clear_cache): Document new builtin.
494 * doc/md.texi (clear_cache): Document new instruction pattern.
495 * testsuite/gcc.dg/builtins-64.c: New test.
497 2007-07-11 Hans-Peter Nilsson <hp@axis.com>
499 * config/cris/cris.md ("movsi"): Fix typo in last change.
501 2007-07-09 Geoffrey Keating <geoffk@apple.com>
504 * c-common.c (c_alignof_expr): Look at DECL_ALIGN of
506 (handle_aligned_attribute): Allow use on FUNCTION_DECLs.
507 * varasm.c (assemble_start_function): Honor DECL_ALIGN
508 for FUNCTION_DECLs. Don't use align_functions_log if
510 * print-tree.c (print_node): Print DECL_ALIGN and DECL_USER_ALIGN
511 even for FUNCTION_DECLs.
512 * c-decl.c (merge_decls): Propagate DECL_ALIGN even for
514 * tree.h (DECL_ALIGN): Update for new location of 'align'.
515 (DECL_FUNCTION_CODE): Update for new location and name of
517 (DECL_OFFSET_ALIGN): Update for new location of 'off_align'.
518 (struct tree_decl_common): Move 'align' and 'off_align' out
519 of union, ensure they're still on a 32-bit boundary. Remove
520 other fields in union 'u1'.
521 (struct tree_function_decl): Add field 'function_code' replacing
522 'u1.f' in tree_decl_common.
523 * tree.c (build_decl_stat): Set initial value of DECL_ALIGN.
524 * doc/extend.texi (Function Attributes): Add 'aligned' attribute.
525 (Variable Attributes): Cross-reference 'aligned' attribute
526 to Function Attributes.
527 * flags.h (force_align_functions_log): Delete.
528 * toplev.c (force_align_functions_log): Delete.
530 2007-07-10 Uros Bizjak <ubizjak@gmail.com>
533 * config/i386/sse.md (vec_concatv2di): Disable for TARGET_64BIT.
534 (*vec_concatv2di_rex): New insn pattern.
536 2007-07-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
539 * config/mips/iris6.h (LIBGCC_SPEC): Add libm.
541 2007-07-10 Ian Lance Taylor <iant@google.com>
543 Replace no_new_pseudos in backends.
544 * rtl.h (can_create_pseudo_p): Define.
545 * config/darwin.c (machopic_indirect_data_reference): Use
546 can_create_pseudo_p () instead of no_new_pseudos.
547 (machopic_indirect_data_reference): Likewise.
548 (machopic_legitimize_pic_address): Likewise.
549 * config/alpha/alpha.c (alpha_legitimize_address): Likewise.
550 (alpha_emit_set_const_1): Likewise.
551 (alpha_emit_set_const): Likewise.
552 (alpha_emit_conditional_move): Likewise.
553 (alpha_split_conditional_move): Likewise.
554 * config/alpha/alpha.md (various splitters): Likewise.
556 * config/arm/arm.c (legitimize_pic_address): Likewise.
557 (arm_load_pic_register): Likewise.
558 * config/arm/arm.md (addsi3, subsi3, andsi3, iorsi3): Likewise.
559 (movdi, movsi, movhi, movqi, movsf, movdf): Likewise.
560 * config/bfin/bfin.c (legitimize_pic_address): Likewise.
561 * config/cris/cris.c (cris_expand_pic_call_address): Likewise.
562 * config/cris/cris.md (movsi): Likewise.
563 * config/frv/frv.md (symGOT2reg_hilo): Likewise.
564 (symGOTOFF2reg_hilo): Likewise.
565 (symGPREL2reg, symGPREL2reg_hilo): Likewise.
566 * config/h8300/h8300.md (insv, extzv): Likewise.
567 * config/i386/i386.c (ix86_expand_move): Likewise.
568 (ix86_expand_vector_move): Likewise.
569 (ix86_prepare_fp_compare_args): Likewise.
570 (ix86_expand_carry_flag_compare): Likewise.
571 * config/i386/i386.md (tls_dynamic_gnu2_32): Likewise.
572 (tls_dynamic_gnu2_combine_32): Likewise.
573 (tls_dynamic_gnu2_64, tls_dynamic_gnu2_combine_64): Likewise.
574 * config/ia64/ia64.c (ia64_expand_move): Likewise.
575 (ia64_expand_movxf_movrf): Likewise.
576 * config/m32c/m32c.c (m32c_prepare_move): Likewise.
577 (m32c_split_move): Likewise.
578 (m32c_expand_insv): Likewise.
579 * config/m68k/m68k.md (movsi): Likewise.
580 * config/mips/mips.c (mips_force_temporary): Likewise.
581 (mips_split_symbol): Likewise.
582 (mips_move_integer): Likewise.
583 (mips_legitimize_const_move): Likewise.
584 * config/mn10300/mn10300.md (movsi): Likewise.
585 * config/pa/pa.c (emit_move_sequence): Likewise.
586 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
587 (rs6000_got_register): Likewise.
588 (create_TOC_reference): Likewise.
589 (rs6000_machopic_legitimize_pic_address): Likewise.
590 * config/rs6000/rs6000.md (add<mode>3): Likewise.
591 (various splitters): Likewise.
592 (iorsi3, xorsi3, iordi3, xordi3): Likewise.
593 (movsi_got): Likewise.
594 * config/s390/s390.c (emit_symbolic_move): Likewise.
595 * config/s390/s390.md (movhi, movqi): Likewise.
596 (load_multiple, store_multiple): Likewise.
597 * config/score/score.c (score_force_temporary): Likewise.
598 * config/sh/sh.c (prepare_move_operands): Likewise.
599 (prepare_cbranch_operands): Likewise.
600 (emit_fpu_switch): Likewise.
601 (fpscr_set_from_mem): Likewise.
602 * config/sh/sh.md (movdicc, movsicc, movsicc_umin): Likewise.
603 (adddi3, subsi3): Likewise.
604 (various splitters): Likewise.
605 (divsi_inv_fp_combine): Likewise.
606 (symGOT_load, symGOTOFF2reg, symDTPOFF2reg): Likewise.
607 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu): Likewise.
609 * config/sh/predicates.md (xor_operand): Likewise.
610 * config/sparc/sparc.c (legitimize_tls_address): Likewise.
611 * config/sparc/sparc.md (movsi_pic_label_ref): Likewise.
612 (movdi_pic_label_ref): Likewise.
613 * config/spu/spu.c (spu_split_immediate): Likewise.
614 * config/alpha/alpha.md (various splitters): Remove test
615 !no_new_pseudos || reload_completed.
616 * config/ia64/ia64.c (ia64_output_mi_thunk): Don't set
618 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
619 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
620 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
621 * config/score/score.c (th_output_mi_thunk): Likewise.
622 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
623 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
625 2007-07-10 Kaz Kojima <kkojima@gcc.gnu.org>
627 PR rtl-optimization/32664
628 * mode-switching.c (create_pre_exit): Skip barrier insns.
630 2007-07-10 Zdenek Dvorak <dvorakz@suse.cz>
632 * tree-scalar-evolution.c (scev_const_prop): Add arguments to
633 force_gimple_operand_bsi.
634 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr,
635 rewrite_use_compare): Ditto.
636 * tree-ssa-address.c (gimplify_mem_ref_parts, create_mem_ref):
638 * tree-ssa-ifcombine.c (ifcombine_ifandif): Ditto.
639 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
640 * lambda-code.c (replace_uses_equiv_to_x_with_y): Ditto.
641 * tree-profile.c (prepare_instrumented_value,
642 tree_gen_interval_profiler, tree_gen_pow2_profiler,
643 tree_gen_one_value_profiler, tree_gen_ic_profiler,
644 tree_gen_ic_func_profiler, tree_gen_average_profiler,
645 tree_gen_ior_profiler): Ditto.
646 * tree-ssa-reassoc.c (negate_value): Ditto.
647 * matrix-reorg.c (transform_access_sites, transform_allocation_sites):
648 Use force_gimple_operand_bsi.
649 * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
650 * tree-if-conv.c (add_to_dst_predicate_list,
651 find_phi_replacement_condition): Ditto.
652 * gimplify.c (force_gimple_operand_bsi): Add before and m arguments.
653 Call mark_symbols_for_renaming for new statements.
654 * tree-flow.h (force_gimple_operand_bsi): Declaration changed.
656 2007-07-10 Zdenek Dvorak <dvorakz@suse.cz>
658 * cfghooks.c (remove_edge): New function.
659 (redirect_edge_and_branch, remove_branch, merge_blocks): Updated
661 * cfghooks.h (remove_edge): Declare.
662 * cfg.c (remove_edge): Renamed to remove_edge_raw.
663 * basic-block.h (remove_edge): Declaration changed to remove_edge_raw.
665 2007-07-09 Wolfgang Gellerich <gellerich@de.ibm.com>
667 * optabs.h: Added declaration for signbit_optab.
668 * optabs.c: (init_optabs): Added initialization for signbit_optab.
669 * genoptinit.c (optabs): Added entry for signbit insns.
670 * builtins.c (expand_builtin_signbit): Added code to use a signbit
672 * config/s390/s390.h (S390_TDC_SIGNBIT_SET): New constant.
673 * config/s390/s390.md (signbit<mode>2): New expander.
675 2007-07-09 Richard Guenther <rguenther@suse.de>
678 * fold-const.c (fold_plusminus_mult_expr): Move constant
679 arguments second to allow decomposing.
681 2007-07-09 Alexandre Oliva <aoliva@oliva.athome.lsd.ic.unicamp.br>
684 2007-07-06 Alexandre Oliva <aoliva@redhat.com>
686 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
687 Disregard DECL_FROM_INLINE.
689 2007-07-09 Uros Bizjak <ubizjak@gmail.com>
692 * doc/invoke.texi: Add ftree-reassoc flag.
693 * common.opt (ftree-reassoc): New flag.
694 * tree-ssa-reassoc.c (gate_tree_ssa_reassoc): New static function.
695 (struct tree_opt_pass pass_reassoc): Use gate_tree_ssa_reassoc.
697 2007-07-09 Uros Bizjak <ubizjak@gmail.com>
699 PR tree-optimization/32681
700 * tree-if-conv.c (find_phi_replacement_condition): Use the condition
701 saved in second_edge->aux when first_bb is a loop header.
703 2007-07-09 Jan HUbicka <jh@suse.cz>
705 * cse.c (cse_insn): Avoid invalid sharing on trial replacement.
707 2007-07-09 Richard Guenther <rguenther@suse.de>
709 * c-decl.c (start_function): Do not promote return type.
711 2007-07-08 Daniel Franke <franke.daniel@gmail.com>
713 * function.c (do_warn_unused_parameter): Do not warn if
714 TREE_NO_WARNING is set.
716 2007-07-08 Andreas Schwab <schwab@suse.de>
718 * doc/invoke.texi (DEC Alpha/VMS Options): Fix typo.
720 2007-07-08 Sandra Loosemore <sandra@codesourcery.com>
723 2007-07-06 Sandra Loosemore <sandra@codesourcery.com>
725 * c-opts.c (c_common_handle_option): Make DOLLARS_IN_IDENTIFIERS
726 apply to assembly language, too.
727 * doc/tm.texi (DOLLARS_IN_IDENTIFIERS): Update.
729 2007-07-07 Daniel Berlin <dberlin@dberlin.org>
731 Revert (note the sccvn portions are *not* reverted)
732 2007-07-06 Daniel Berlin <dberlin@dberlin.org>
734 Fix PR tree-optimization/23488
736 * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
738 * tree-flow-inline.h (get_value_handle): Ditto.
739 * tree-ssa-pre.c (decl_vh_map): New.
740 (decl_node_pool): New.
741 (can_value_number_operation): Support DECL_P.
742 (can_PRE_operation): Ditto.
743 (create_expression_by_pieces): Ditto.
744 (find_existing_value_expr): Modify to differnetiate between
745 addressing and top level.
746 (create_value_handle_for_expr): Handle DECL's.
747 (poolify_tree): Ditto.
748 (make_values_for_phi): Don't insert into PHI_GEN during FRE.
749 (make_values_for_stmt): Handle DECL's properly.
750 (init_pre): Reorg to not init useless things during FRE.
752 * tree-flow.h: Include pointer-set.h.
753 (decl_vh_map): Declare.
754 * Makefile.in (TREE_FLOW_H): Add pointer-set.h
756 2007-07-07 Eric Weddington <eweddington@cso.atmel.com>
758 * config/avr/constraints.md (define_memory_constraint "Q"): Fix
759 the constraint description.
760 * doc/md.texi: Update documentation of AVR constraints.
762 2007-07-07 Kazu Hirata <kazu@codesourcery.com>
764 * auto-inc-dec.c, config/arm/arm.c,
765 config/m32r/constraints.md, config/mips/mips.md,
766 config/rs6000/rs6000.c, cselib.c, dce.c, df-core.c,
767 df-problems.c, df-scan.c, df.h, dse.c, gimplify.c,
768 tree-if-conv.c, tree-ssa-sccvn.c, tree-ssa.c: Fix comment
769 typos. Follow spelling conventions.
770 * doc/invoke.texi, doc/rtl.texi: Fix typos.
772 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
773 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
775 * tree-ssa-operands.c (realloc_vop, realloc_vdef,
776 realloc_vuse): Remove.
777 * tree-ssa-operands.h: Remove the prototype for realloc_vdef
780 2007-07-06 Daniel Berlin <dberlin@dberlin.org>
782 Fix PR tree-optimization/23488
784 * tree-ssa-sccvn.c (expr_has_constants): Handle tcc_declaration.
785 (try_to_simplify): Ditto.
787 * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
789 * tree-flow-inline.h (get_value_handle): Ditto.
790 * tree-ssa-pre.c (decl_vh_map): New.
791 (decl_node_pool): New.
792 (can_value_number_operation): Support DECL_P.
793 (can_PRE_operation): Ditto.
794 (create_expression_by_pieces): Ditto.
795 (find_existing_value_expr): Modify to differnetiate between
796 addressing and top level.
797 (create_value_handle_for_expr): Handle DECL's.
798 (poolify_tree): Ditto.
799 (make_values_for_phi): Don't insert into PHI_GEN during FRE.
800 (make_values_for_stmt): Handle DECL's properly.
801 (init_pre): Reorg to not init useless things during FRE.
803 * tree-flow.h: Include pointer-set.h.
804 (decl_vh_map): Declare.
805 * Makefile.in (TREE_FLOW_H): Add pointer-set.h
807 2007-07-06 Sandra Loosemore <sandra@codesourcery.com>
809 * c-opts.c (c_common_handle_option): Make DOLLARS_IN_IDENTIFIERS
810 apply to assembly language, too.
811 * doc/tm.texi (DOLLARS_IN_IDENTIFIERS): Update.
813 2007-07-06 Ian Lance Taylor <iant@google.com>
814 Zack Weinberg <zackw@panix.com>
817 * builtins.c (std_expand_builtin_va_start): Don't use make_tree.
819 2007-07-06 Richard Sandiford <richard@codesourcery.com>
821 * config/sh/sh.md (*prefetch_i4): Disable for TARGET_VXWORKS_RTP.
822 (prefetch): Likewise if "pref" would be used.
824 2007-07-06 Josh Conner <jconner@apple.com>
828 * calls.c (store_one_arg): Handle arguments which are partially
829 on the stack when detecting argument overlap.
831 2007-07-06 Bernd Schmidt <bernd.schmidt@analog.com>
833 * reload1.c (choose_reload_regs): Set reload_spill_index for regs
834 chosen during find_reloads.
836 2007-07-06 Richard Guenther <rguenther@suse.de>
838 * gimplify.c (gimplify_call_expr): Prefer DECL_ARGUMENTS over
839 TYPE_ARG_TYPES for verification of argument types. Use
840 DECL_ARG_TYPE instead of the PARM_DECL type. Take excess
841 parameters as variable arguments.
843 2007-07-06 Andreas Krebbel <krebbel1@de.ibm.com>
845 * libgcc2.h (word_type): Type definition removed.
846 (cmp_return_type, shift_count_type): Type definitions added.
847 (__lshrdi3, __ashldi3, __ashrdi3): word_type of second parameter
848 replaced with shift_count_type.
849 (__cmpdi2, __ucmpdi2): word_type of return type replaced with
851 * libgcc2.c (__udivmoddi4, __moddi3): Type of local variable c
852 changed from word_type to Wtype.
853 (__lshrdi3, __ashldi3, __ashrdi3): word_type of second parameter
854 replaced with shift_count_type.
855 (__cmpdi2, __ucmpdi2): word_type of return type replaced with
857 * c-common.c (handle_mode_attribute): Handling for libgcc_cmp_return
858 and libgcc_shift_count attribute added.
859 * target-def.h (TARGET_LIBGCC_CMP_RETURN_MODE,
860 TARGET_LIBGCC_SHIFT_COUNT_MODE): New target hooks defined.
861 (TARGET_INITIALIZER): New target hooks added.
862 * targhooks.c (default_libgcc_cmp_return_mode,
863 default_libgcc_shift_count_mode): Default implementations for the new
865 * targhooks.h (default_libgcc_cmp_return_mode,
866 default_libgcc_shift_count_mode): Function prototypes added.
867 * target.h (struct gcc_target): Fields for the new target hooks added.
868 * optabs.c (expand_binop): Use shift_count_mode when expanding shift
870 (prepare_cmp_insn): Use cmp_return_mode when expanding comparison as
873 * doc/tm.texi (TARGET_LIBGCC_CMP_RETURN_MODE,
874 TARGET_LIBGCC_SHIFT_COUNT_MODE): Documentation added.
876 * config/s390/s390.c (s390_libgcc_cmp_return_mode,
877 s390_libgcc_shift_count_mode): Functions added.
878 (TARGET_LIBGCC_CMP_RETURN_MODE, TARGET_LIBGCC_SHIFT_COUNT_MODE):
879 Target hooks defined.
881 2007-07-06 Richard Sandiford <richard@codesourcery.com>
883 * config/mips/mips.c (compute_frame_size): Restore the original
884 gp_sp_offset for !GENERATE_MIPS16E_SAVE_RESTORE and remove the
885 fp_size term from the GENERATE_MIPS16E_SAVE_RESTORE calculation.
886 Document why the difference is needed.
888 2007-07-06 Richard Guenther <rguenther@suse.de>
890 * c-common.c (boolean_increment): Use correctly typed
893 2007-07-06 Richard Sandiford <richard@codesourcery.com>
895 * config/mips/mips.c (mips16e_save_restore_pattern_p): Check that
896 the topmost argument register is not also included in the save mask.
897 (mips16e_collect_argument_save_p): Take a pointer to the argument
898 register, rather than a pointer to the number of arguments.
899 (mips16e_collect_argument_saves): Only include argument saves
900 that aren't in the register mask.
902 2007-07-06 Uros Bizjak <ubizjak@gmail.com>
904 PR rtl-optimization/32450
905 * function.c (thread_prologue_and_epilogue_insns): Emit blockage insn
906 to ensure that instructions are not moved into the prologue when
907 profiling is on. Remove unused prologue_end variable.
908 (expand_function_end): Emit blockage insn instead of ASM_INPUT rtx
909 as a scheduling barrier.
911 2007-07-06 Alexandre Oliva <aoliva@redhat.com>
914 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
915 Disregard DECL_FROM_INLINE.
917 2007-07-05 Adam Nemet <anemet@caviumnetworks.com>
919 * rtlanal.c (num_sign_bit_copies1): Improve cases of ANDing or
920 IORing with a constant.
922 2007-07-05 Seongbae Park <seongbae.park@gmail.com>
924 PR rtl-optimization/32475
925 * df-scan.c (df_def_record_1): Add a use of the stack pointer
926 for every definition of the stack pointer.
928 2007-07-05 Richard Earnshaw <rearnsha@arm.com>
930 * arm.c (vfp3_const_double_index): Copy signed results of
931 REAL_VALUE_TO_INT into unsigned vars.
933 2007-07-05 Richard Guenther <rguenther@suse.de>
936 * alias.c (get_alias_set): Tread METHOD_TYPE the same as
938 * tree-ssa.c (useless_type_conversion_p): Check canonical
941 2007-07-05 Anatoly Sokolov <aesok@post.ru>
943 * config/avr/avr.md (zero_extendqihi2, zero_extendqisi2,
944 zero_extendhisi2): Change to define_insn_and_split.
945 (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New.
947 2007-07-05 Paolo Bonzini <bonzini@gnu.org>
949 * function.c (match_asm_constraints_1, rest_of_match_asm_constraints,
950 pass_match_asm_constraints): New.
951 * passes.c (init_optimization_passes): Add new pass.
952 * stmt.c (expand_asm_operands): Set cfun->has_asm_statement.
953 * function.h (struct function): Add has_asm_statement bit.
954 (current_function_has_asm_statement): New.
955 * tree-pass.h (pass_match_asm_constraints): New.
957 2007-07-05 Richard Sandiford <rsandifo@nildram.co.uk>
959 * config/mips/mips.c (mips_file_start): Avoid declaration
962 2007-07-05 Sandra Loosemore <sandra@codesourcery.com>
964 * optabs.c (expand_binop_directly): Fix signed/unsigned comparison.
966 2007-07-05 Uros Bizjak <ubizjak@gmail.com>
968 * rtl.def (NOTE): Change print format string to print
969 operand 5 as a note insn name.
971 2007-07-05 Sandra Loosemore <sandra@codesourcery.com>
972 David Ung <davidu@mips.com>
974 * config/mips/mips.c (mips_cpu_info): Add 4ksc and 4ksd processors.
975 * doc/invoke.texi: (MIPS Options): Document them.
977 2007-07-05 Sandra Loosemore <sandra@codesourcery.com>
978 David Ung <davidu@mips.com>
980 Add support for SmartMIPS ASE.
982 * optabs.c (expand_binop_directly): New, broken out from...
983 (expand_binop): Here. Make it try rotating in the other
984 direction even when the second operand isn't constant.
985 * config/mips/mips.md (*lwxs): New.
986 * config/mips/mips.opt (msmartmips): New.
987 * config/mips/mips.c (mips_lwxs_address_p): New.
988 (mips_rtx_costs): Make it recognize scaled indexed addressing.
989 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
990 __mips_smartmips when compiling for TARGET_SMARTMIPS.
991 (ISA_HAS_ROR): Define for TARGET_SMARTMIPS.
993 (ASM_SPEC): Add -msmartmips/-mno-smartmips.
994 * doc/invoke.texi (MIPS Options): Document -msmartmips/-mno-smartmips.
995 * testsuite/gcc.target/mips/smartmips-lwxs.c: New test case.
996 * testsuite/gcc.target/mips/smartmips-ror-1.c: New test case.
997 * testsuite/gcc.target/mips/smartmips-ror-2.c: New test case.
998 * testsuite/gcc.target/mips/smartmips-ror-3.c: New test case.
999 * testsuite/gcc.target/mips/smartmips-ror-4.c: New test case.
1001 2007-07-05 Dorit Nuzman <dorit@il.ibm.com>
1003 * tree-vectorizer.c (new_loop_vec_info): Initialize
1004 LOOP_VINFO_COST_MODEL_MIN_ITERS.
1005 * tree-vectorizer.h (_loop_vec_info): Added new filed
1006 min_profitable_iters.
1007 (LOOP_VINFO_COST_MODEL_MIN_ITERS): New access macro to above new field.
1008 (TARG_SCALAR_TO_VEC_COST): Define cost of scalar to vector operation.
1009 * tree-vect-analyze.c (vect_analyze_operations): Set
1010 LOOP_VINFO_COST_MODEL_MIN_ITERS.
1011 * tree-vect-transform.c (vect_estimate_min_profitable_iters): Use
1012 VEC_length to determine if there are any LOOP_VINFO_MAY_MISALIGN_STMTS.
1013 Fix calculation of peel_iters_prologue. Move consideration of epilogue
1014 and prologue cost to after they are computed.
1015 (vect_model_induction_cost): Use TARG_SCALAR_TO_VEC_COST instead of
1017 (vect_model_simple_cost): Takes additional argument dt. Consider cost
1018 of creating vectors from scalars according to dt.
1019 (vect_model_store_cost): Likewise.
1020 (vectorizable_call): Use dt array instead of scalar dt. Call
1021 vect_model_simple_cost with additional argument dt.
1022 (vectorizable_assignment): Likewise.
1023 (vectorizable_operation): Likewise.
1024 (vectorizable_type_demotion): Likewise.
1025 (vectorizable_type_promotion): Likewise.
1026 (vectorizable_store): Use dt array instead of scalar dt. Call
1027 vect_model_store_cost with additional argument dt.
1028 (vect_do_peeling_for_loop_bound): Don't call
1029 vect_estimate_min_profitable_iters. Instead, lookup
1030 LOOP_VINFO_COST_MODEL_MIN_ITERS. Don't always print
1031 "may not be profitable".
1033 2007-07-05 Dorit Nuzman <dorit@il.ibm.com>
1036 * config/rs6000/altivec.md (UNSPEC_VUPKHS_V4SF, UNSPEC_VUPKLS_V4SF):
1037 (UNSPEC_VUPKHU_V4SF, UNSPEC_VUPKLU_V4SF): New.
1038 (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi): New patterns.
1039 (vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): New patterns.
1041 2007-07-05 Zdenek Dvorak <dvorakz@suse.cz>
1043 * config/i386/i386.c (ix86_address_cost): Do not consider more complex
1044 addressing modes cheaper.
1046 2007-07-05 Alexandre Oliva <aoliva@redhat.com>
1048 * dwarf2out.c (dw_ranges_by_label_ref): New typedef.
1049 (dw_ranges_struct): Rename block_num to num. Adjust.
1050 (dw_ranges_by_label_struct): New.
1051 (ranges_by_label, ranges_by_label_allocated,
1052 ranges_by_label_in_use): New variables.
1053 (add_ranges_num): Factored most of the code out of...
1054 (add_ranges): ... this one. Rewrite in terms of the former.
1055 (add_ranges_by_labels): New.
1056 (output_ranges): Output by-label ranges.
1057 (dwarf2out_finish): Output range for multiple-section
1058 compile_unit. Output standard DW_AT_low_pc in addition to
1059 unexpected DW_AT_entry_pc.
1061 2007-07-04 Daniel Berlin <dberlin@dberlin.org>
1063 PR tree-optimization/32604
1064 PR tree-optimization/32606
1066 * tree-ssa-pre.c (bb_bitmap_sets): Removed antic_safe_loads.
1067 (compute_antic_safe): Removed.
1068 (ANTIC_SAFE_LOADS): Ditto.
1069 (compute_antic_aux): Don't print ANTIC_SAFE_LOADS.
1070 (execute_pre): Don't call compute_antic_safe.
1071 (vuse_equiv): New function.
1072 (make_values_for_stmt): Use it
1073 * tree-ssa-sccvn.c (set_ssa_val_to): Remove assert, since it is
1076 2007-07-04 Anatoly Sokolov <aesok@post.ru>
1079 * config/avr/avr.c (avr_naked_function_p): Handle receiving a type
1081 (avr_attribute_table): Make "naked" attribute apply to function types
1082 rather than to decls.
1083 (avr_handle_fntype_attribute): New function.
1085 2007-07-04 Joseph Myers <joseph@codesourcery.com>
1087 * target-def.h (TARGET_INITIALIZER): Remove trailing whitespace
1090 2007-07-04 David Ung <davidu@mips.com>
1091 Joseph Myers <joseph@codesourcery.com>
1093 * config/mips/mips.md (type): Add logical, signext and move.
1094 (one_cmpl<mode>2, *and<mode>3, *and<mode>3_mips16, *ior<mode>3,
1095 *ior<mode>3_mips16, two unnamed insns after *ior<mode>3_mips16,
1096 *nor<mode>3, "Combiner patterns to optimize truncate/zero_extend
1097 combinations", *zero_extend<SHORT:mode><GPR:mode>2,
1098 *zero_extendqihi2, *extend<SHORT:mode><GPR:mode>2_mips16e,
1099 *extend<SHORT:mode><GPR:mode>2_se<SHORT:size>, *movdi_64bit,
1100 *movdi_64bit_mips16, *movsi_internal, *movsi_mips16, movcc,
1101 *movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16,
1102 *movsf_hardfloat, *movsf_softfloat, *movsf_mips16,
1103 *movdf_hardfloat_64bit, *movdf_hardfloat_32bit,
1104 movv2sf_hardfloat_64bit): Use the new types.
1105 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16,
1106 *movdf_softfloat, *movdf_mips16): Use "multi".
1107 (extendqihi2): Replace with a define_expand.
1108 (*extendqihi2_mips16e, *extendqihi2, *extendqihi2_seb): New.
1109 Based on extend<SHORT:mode><GPR:mode>2 patterns.
1110 * config/mips/74k.md (r74k_int_logical): New reservation and
1112 (r74k_int_arith): Remove "slt".
1113 * config/mips/24k.md, config/mips/4130.md, config/mips/4k.md,
1114 config/mips/5400.md, config/mips/5500.md, config/mips/5k.md,
1115 config/mips/7000.md, config/mips/9000.md, config/mips/generic.md,
1116 config/mips/sb1.md, config/mips/sr71k.md: Add new types to
1117 reservations for "arith".
1119 2007-07-04 Richard Guenther <rguenther@suse.de>
1121 * tree-ssa.c (useless_type_conversion_p): Add handling for
1122 scalar float and vector types. Only call the types_compatible_p
1123 langhook for aggregate types as last resort. Follow the
1126 2007-07-04 Richard Guenther <rguenther@suse.de>
1128 * tree-inline.c (estimate_num_insns_1): Treat CONVERT_EXPR
1129 the same as NOP_EXPR.
1131 2007-07-04 Nick Clifton <nickc@redhat.com>
1133 * target.h (struct gcc_target): Add target_help field.
1134 * target-def.h (TARGET_HELP): New.
1135 (TARGET_INITIALIZER): Use TARGET_HELP.
1136 * opts.c (command_handle_option): Invoke target_help function, if
1137 defined, when the user has specified --target-help on the command
1139 * doc/invoke.texi: Mention that --target-help might print
1140 additional information.
1141 * doc/tm.texi: Document TARGET_HELP hook.
1143 * arm.c (TARGET_HELP): Override default definition.
1144 (arm_target_help): New - display a wrapped list of cores and
1145 architectures supported.
1147 2007-07-04 Rask Ingemann Lambertsen <rask@sygehus.dk>
1149 * config/gcc/v850/v850.c (expand_prologue): Make sure
1150 GEN_INT() argument is sign extended rather than zero extended.
1151 (expand_epilogue): Likewise.
1152 (output_move_double): Delete.
1153 * config/gcc/v850/v850-protos.h (output_move_double): Delete.
1154 * config/gcc/v850/v850.md (movdi): Delete.
1155 (*movdi_internal): Delete.
1157 (*movdf_internal): Delete.
1159 2007-07-04 Richard Sandiford <richard@codesourcery.com>
1161 * config/sh/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Reject -mrelax
1162 unless compiling RTP PIC.
1164 2007-07-04 Richard Guenther <rguenther@suse.de>
1166 PR tree-optimization/32482
1167 * tree-ssa-ifcombine.c (recognize_single_bit_test): Use the
1168 original ssa name if we didn't find a shift expression.
1169 Fix shift constant for bit zero test.
1171 2007-07-04 Richard Sandiford <richard@codesourcery.com>
1173 * config/sh/lib1funcs.asm (ic_invalidate): Align constant pool.
1175 2007-07-04 Richard Sandiford <richard@codesourcery.com>
1177 * config.gcc (arm-wrs-vxworks): Don't include svr4.h.
1178 * config/vxworks.h (PTRDIFF_TYPE, SIZE_TYPE, TARGET_POSIX_IO): Define.
1179 * config/arm/vxworks.h (ASM_SPEC): Delete.
1180 (SUBTARGET_EXTRA_ASM_SPEC): Define.
1182 2007-07-04 Sebastian Pop <sebpop@gmail.com>
1184 * tree-data-ref.h (data_dependence_relation): New flag reversed_p.
1185 (DDR_REVERSED_P): New.
1186 * tree-data-ref.c (initialize_data_dependence_relation,
1187 build_classic_dist_vector): Set DDR_REVERSED_P.
1189 2007-07-04 Sebastian Pop <sebpop@gmail.com>
1192 * tree-data-ref.c (analyze_siv_subscript_cst_affine,
1193 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
1194 init_omega_for_ddr_1): Use non conservative number of iterations
1196 (analyze_subscript_affine_affine): Use HOST_WIDE_INT instead of int.
1197 (analyze_siv_subscript): Remove FIXME and reinitialization of
1198 last_conflicts to chrec_dont_know.
1199 * testsuite/gfortran.dg/vect/pr32457.f90: New.
1201 2007-07-04 Douglas Gregor <doug.gregor@gmail.com>
1203 * tree.c (maybe_canonicalize_argtypes): Improve description.
1205 2007-07-04 Douglas Gregor <doug.gregor@gmail.com>
1207 * tree.c (maybe_canonicalize_argtypes): New.
1208 (build_function_type): Set canonical type.
1209 (build_method_type_directly): Ditto.
1210 (reconstruct_complex_type): Rebuild the METHOD_TYPE node
1213 2007-07-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
1215 * tree-ssa-loop-ivopts.c (strip_offset_1): Treat POINTER_PLUS_EXPR
1217 (rewrite_use_nonlinear_expr): Likewise.
1219 2007-07-03 Seongbae Park <seongbae.park@gmail.com>
1221 * rtl.def (UNSPEC, USE, CLOBBER): More comments.
1223 2007-07-04 Ben Elliston <bje@au.ibm.com>
1225 * dwarf2out.c: Move DWARF2 abbreviation glossary closer to the top
1228 * c-objc-common.c (c_types_compatible_p): Fix indentation.
1230 * doc/tm.texi (Run-time Target): Capitalise "CPU".
1231 (Exception Handling): Likewise.
1233 2007-07-03 Jan Hubicka <jh@suse.cz>
1235 * ifcvt.c (find_cond_trap): Avoid invalid RTL sharing.
1237 2007-07-03 Eric Christopher <echristo@apple.com>
1239 * doc/cppopts.texi: Add conflicting option note to -dM.
1240 * doc/invoke.texi: Add note about possible conflicts with
1241 -E for -dCHARS and note that -dM will not produce
1242 any results if there is no machine dependent reorg.
1244 2007-07-03 Geoffrey Keating <geoffk@apple.com>
1246 * tree.h (DECL_ALIGN): Back out previous change.
1248 2007-07-03 Joseph Myers <joseph@codesourcery.com>
1250 * configure.ac: Test for .dtprelword support on MIPS.
1251 * configure, config.in: Regenerate.
1252 * config/mips/mips.c (mips_output_dwarf_dtprel): New.
1253 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
1255 2007-07-03 Julian Brown <julian@codesourcery.com>
1257 * config.gcc (with_fpu): Allow --with-fpu=vfp3.
1258 * config/arm/aout.h (REGISTER_NAMES): Add D16-D31.
1259 * config/arm/aof.h (REGISTER_NAMES): Add D16-D31.
1260 * config/arm/arm.c (FL_VFPV3): New flag for VFPv3 processor
1262 (all_fpus): Add FPUTYPE_VFP3.
1263 (fp_model_for_fpu): Add VFPv3 field.
1264 (arm_rtx_costs_1): Give cost to VFPv3 constants.
1265 (vfp3_const_double_index): New function. Return integer index of
1266 VFPv3 constant suitable for fconst[sd] insns, or -1 if constant
1268 (vfp3_const_double_rtx): New function. True if VFPv3 is enabled
1269 and argument represents a valid RTX for a VFPv3 constant.
1270 (vfp_output_fldmd): Split fldmd with > 16 registers in the list into
1272 (vfp_emit_fstmd): Similar, for fstmd.
1273 (arm_print_operand): Implement new code 'G' for VFPv3 floating-point
1274 constants, represented as integer indices.
1275 (arm_hard_regno_mode_ok): Use VFP_REGNO_OK_FOR_SINGLE,
1276 VFP_REGNO_OK_FOR_DOUBLE macros.
1277 (arm_regno_class): Handle VFPv3 d0-d7, low, high register split.
1278 (arm_file_start): Set float-abi attribute for VFPv3, and output
1279 correct ".fpu" assembler directive.
1280 (arm_dbx_register_numbering): Add FIXME.
1281 * config/arm/arm.h (TARGET_VFP3): New macro. Target supports VFPv3.
1282 (fputype): Add FPUTYPE_VFP3.
1283 (FIXED_REGISTERS): Add 32 registers for D16-D31.
1284 (CALL_USED_REGISTERS): Likewise.
1285 (CONDITIONAL_REGISTER_USAGE): Add note about conditional definition
1286 of LAST_VFP_REGNUM. Make D16-D31 caller-saved, if present.
1287 (LAST_VFP_REGNUM): Extend available VFP registers for VFPv3.
1288 (D7_VFP_REGNUM): New.
1289 (LAST_LO_VFP_REGNUM, FIRST_HI_VFP_REGNUM, LAST_HI_VFP_REGNUM)
1290 (VFP_REGNO_OK_FOR_SINGLE, VFP_REGNO_OK_FOR_SINGLE)
1291 (VFP_REGNO_OK_FOR_DOUBLE): Define new macros.
1292 (FIRST_PSEUDO_REGISTER): Shift up to 128 to accommodate VFPv3.
1293 (REG_ALLOC_ORDER): Adjust for VFPv3.
1294 (reg_class): Add VFP_D0_D7_REGS, VFP_LO_REGS, VFP_HI_REGS.
1295 (REG_CLASS_NAMES): Add entries corresponding to VFP_D0_D7_REGS,
1296 VFP_LO_REGS, VFP_HI_REGS.
1297 (REG_CLASS_CONTENTS): Likewise. Extend contents for VFP_REGS.
1298 (IS_VFP_CLASS): Define macro.
1299 (SECONDARY_OUTPUT_RELOAD_CLASS, SECONDARY_INPUT_RELOAD_CLASS): Use
1301 (REGISTER_MOVE_COST): Likewise.
1302 * config/arm/arm-protos.h (vfp3_const_double_rtx): Add prototype.
1303 * config/arm/vfp.md (VFPCC_REGNUM): Redefine as 127.
1304 (*arm_movsi_vfp, *thumb2_movsi_vfp, *movsfcc_vfp)
1305 (*thumb2_movsfcc_vfp, *abssf2_vfp, *negsf2_vfp, *addsf3_vfp)
1306 (*subsf3_vfp, *divsf_vfp, *mulsf_vfp, *mulsf3negsf_vfp)
1307 (*mulsf3addsf_vfp, *mulsf3subsf_vfp, *mulsf3negsfaddsf_vfp)
1308 (*extendsfdf2_vfp, *truncdfsf2_vfp, *truncsisf2_vfp)
1309 (*truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2)
1310 (*floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2)
1311 (floatunssidf2, *sqrtsf2_vfp, *cmpsf_split_vfp)
1312 (*cmpsf_trap_split_vfp, *cmpsf_vfp, *cmpsf_trap_vfp): Use 't'
1313 where appropriate for single-word registers.
1314 (*movsf_vfp, *thumb2_movsf_vfp, *movdf_vfp, *thumb2_movdf_vfp):
1315 As above. Fix type attributes.
1316 * config/arm/constraints.md (register_contraint "t"): Define.
1317 (register_constraint "w"): Change to D0-D15, or D0-D31 for
1319 (register_constraint "x"): Define.
1320 (constraint "Dv"): Define.
1322 2007-07-03 Geoffrey Keating <geoffk@apple.com>
1324 * tree.h (DECL_ALIGN): Prevent use on a FUNCTION_DECL.
1326 2007-07-03 Tom Tromey <tromey@redhat.com>
1328 * c-parser.c (objc_pq_context): Removed.
1329 (objc_need_raw_identifier): Likewise.
1330 (c_parser) <objc_pq_context>: New field.
1331 <objc_need_raw_identifier>: Likewise.
1332 (OBJC_NEED_RAW_IDENTIFIER): Removed.
1333 (c_lex_one_token): Update.
1334 (c_parser_objc_protocol_definition): Update.
1335 (c_parser_objc_method_definition): Update.
1336 (c_parser_objc_methodproto): Update.
1337 (c_parser_declspecs): Update.
1339 2007-07-03 David Ung <davidu@mips.com>
1341 * config/mips/mips.c (mips_issue_rate): Return 4 for 74K processors.
1343 2007-07-03 David Ung <davidu@mips.com>
1344 Richard Sandiford <richard@codesourcery.com>
1346 * doc/invoke.texi: Document -march=74kf3_2.
1347 * config/mips/mips.h (PROCESSOR_74KF3_2): New processor_type.
1348 (TUNE_74K): Check for it.
1349 * config/mips/mips.c (mips_cpu_info): Add 74kf3_2.
1350 (mips_rtx_cost_data): Add an entry for PROCESSOR_74KF3_2.
1351 * config/mips/mips.md (cpu): Add 74kf3_2.
1352 * config/mips/74k.md (r74k_int_logical, r74k_int_arith, r74k_int_nop)
1353 (r74k_int_cmove, r74k_int_mult, r74k_int_mul3, r74k_int_mfhilo)
1354 (r74k_int_mthilo, r74k_int_div, r74k_int_call, r74k_int_jump)
1355 (r74k_int_load, r74k_int_store, r74k_unknown, r74k_multi): Add
1356 74kf3_2 to the CPU list.
1357 (r74kf3_2_fadd, r74kf3_2_fmove, r74kf3_2_fload, r74kf3_2_fstore)
1358 (r74kf3_2_fmul_sf, r74kf3_2_fmul_df, r74kf3_2_fdiv_sf)
1359 (r74kf3_2_fdiv_df, r74kf3_2_frsqrt_sf, r74kf3_2_frsqrt_df)
1360 (r74kf3_2_fcmp, r74kf3_2_fcvt, r74kf3_2_fxfer_to_c1)
1361 (r74kf3_2_fxfer_from_c1): New insn reservations.
1363 2007-07-03 Richard Sandiford <richard@codesourcery.com>
1364 David Ung <davidu@mips.com>
1366 * doc/invoke.texi: Replace -march=24kf with -march=24kf2_1 and
1367 -march=24kx with -march=24kf1_1. Likewise 24ke[fx], 34k[fx]
1368 and 74k[fx]. Document aliases for the new options.
1369 * config/mips/mips.h (PROCESSOR_24KF): Rename to...
1370 (PROCESSOR_24KF2_1): ...this.
1371 (PROCESSOR_24KX): Rename to...
1372 (PROCESSOR_24KF1_1): ...this.
1373 (PROCESSOR_74KF): Rename to...
1374 (PROCESSOR_74KF2_1): ...this.
1375 (PROCESSOR_74KX): Rename to...
1376 (PROCESSOR_74KF1_1): ...this.
1377 (TUNE_74K): Update PROCESSOR_* names.
1378 * config/mips/mips.c (mips_cpu_info): Add 24kf2_1 as a synonym
1379 for 24kf. Add 24kf1_1 and 24kfx as synonyms for 24kx. Likewise
1380 the 24ke*, 34k* and 74k* processors. Update PROCESSOR_* names.
1381 (mips_rtx_cost_data): Update processor names in comments.
1382 (mips_issue_rate): Update PROCESSOR_* names.
1383 * config/mips/mips.md (cpu): Rename 24kf to 24kf2_1, 24kx to
1384 24kf1_1, 74kf to 74kf2_1 and 74kx to 74kf1_1.
1385 * config/mips/24k.md: Rename FPU-related r24k_* insn reservations
1386 to r24kf2_1_*. Rename r24kx_* insn reservations to r24kf1_1_*.
1387 Update cpu attribute names.
1388 (r24k_fpu_iss): Rename this reservation to...
1389 (r24kf2_1_fpu_iss): ...this and update all uses.
1390 (r24kx_fpu_iss): Rename this reservation to...
1391 (r24kf1_1_fpu_iss): ...this and update all uses.
1392 * config/mips/74k.md: Rename FPU-related r74kf_* insn reservations
1393 to r74kf2_1_*. Rename r74kx_* insn reservations to r74kf1_1_*.
1394 Update cpu attribute names.
1396 2007-07-01 Kaz Kojima <kkojima@gcc.gnu.org>
1398 * config/m32r/constraints.md: New file.
1399 * config/m32r/m32r.c: Include tm-constrs.h.
1400 (small_data_operand): Use satisfies_constraint_* instead of macro.
1401 (addr24_operand, gen_compare): Likewise.
1402 * config/m32r/m32r.h (REG_CLASS_FROM_LETTER): Remove.
1403 (INT8_P, UPPER16_P, UINT32_P, UINT5_P, INVERTED_SIGNED_8BIT,
1404 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
1405 EXTRA_CONSTRAINT): Likewise.
1406 * config/m32r/m32r.md: Include constraints.md.
1407 (*movsi_insn): Use satisfies_constraint_* instead of macro.
1408 (andsi3, iorsi3, xorsi3, seq_insn+1, sne): Likewise.
1409 * config/m32r/predicates.md (conditional_move_operand): Likewise.
1410 (two_insn_const_operand, int8_operand, uint16_operand,
1411 reg_or_int16_operand, reg_or_uint16_operand,
1412 reg_or_cmp_int16_operand, cmp_int16_operand,
1413 seth_add3_operand): Likewise.
1415 2007-07-03 Eric Christopher <echristo@gmail.com>
1417 * libgcc2.h: Conditionally declare __bswapsi2 and
1420 2007-07-03 H.J. Lu <hongjiu.lu@intel.com>
1422 * ddg.c (check_sccs): Define only if ENABLE_CHECKING is
1425 2007-07-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1428 * gthr-posix.h [SUPPORTS_WEAK && GTHREAD_USE_WEAK]
1429 (__gthrw_pragma): Provide default definition.
1431 * gthr-posix.c (__gthrw_pragma): Define.
1433 2007-07-03 Daniel Berlin <dberlin@dberlin.org>
1435 * tree-ssa-sccvn.c (set_ssa_val_to): Check for operand_equal_p
1436 before declaring inequality.
1438 2007-07-03 Rask Ingemann Lambertsen <rask@sygehus.dk>
1440 * combine.c (recog_for_combine): Log the success or failure of
1441 matching new insn patterns against the machine description in
1444 2007-07-03 Revital Eres <eres@il.ibm.com>
1446 * ddg.c (print_sccs): New function.
1447 (check_sccs): New function.
1448 (create_ddg_all_sccs): Use it.
1449 * ddg.h (print_sccs): Declare.
1450 * modulo-sched.c (sms_order_nodes): Call print_sccs.
1452 2007-07-03 Uros Bizjak <ubizjak@gmail.com>
1454 * targhooks.h (default_mode_for_suffix): New function declaration.
1455 * targhooks.c (default_mode_for_suffix): New default target hook.
1456 * target.h (struct c): New structure in the targetm struct.
1457 (mode_for_suffix): New target hook as part of struct c.
1458 target-def.h (TARGET_C_MODE_FOR_SUFFIX): Define as
1459 default_mode_for_suffix.
1460 (TARGET_C): New define.
1461 * c-lex.c: Include "target.h".
1462 (interpret_float): Use targetm.c.mode_for_suffix to determine
1463 the mode for a given non-standard suffix.
1464 Makefile.in (c-lex.o): Depend on $(TARGET_H).
1466 * config/i386/i386.c (ix86_c_mode_for_suffix): New static function.
1467 (TARGET_C_MODE_FOR_SUFFIX): Define to ix86_c_mode_for_suffix.
1469 * doc/extend.texi (Floating Types): New node. Document __float80 and
1470 __float128 types. Document 'w', 'W', 'q' and 'Q' suffixes.
1472 2007-07-03 Kaz Kojima <kkojima@gcc.gnu.org>
1475 * config/sh/sh.md (udivsi3_i1_media): Use target_reg_operand
1476 predicate instead of target_operand.
1477 (divsi3_i1_media, divsi3_media_2): Likewise.
1479 2007-07-02 Eric Botcazou <ebotcazou@adacore.com>
1481 * tree.h (alias_sets_might_conflict_p): Rename into
1482 alias_sets_must_conflict_p.
1483 * alias.c (alias_sets_might_conflict_p): Likewise.
1484 (alias_sets_conflict_p): Use it.
1485 (objects_must_conflict_p): Likewise.
1486 * c-common.c (strict_aliasing_warning): Adjust.
1488 2007-07-02 Andrew Pinski <andrew_pinski@playstation.sony.com>
1490 * rtlhooks.c (gen_lowpart_if_possible): Check for
1491 invalid subreg before calling gen_lowpart_SUBREG.
1493 2007-07-02 Geoffrey Keating <geoffk@apple.com>
1495 * config/darwin9.h: Add copyright notice.
1496 (LINK_COMMAND_SPEC): Add comment.
1497 (DARWIN_LIBSYSTEM_HAS_UNWIND): Define.
1498 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Conditionalise on
1499 DARWIN_LIBSYSTEM_HAS_UNWIND.
1501 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1504 * omp-low.c (check_combined_parallel): New function.
1505 (lower_omp_parallel): Call it via walk_stmts, set
1506 OMP_PARALLEL_COMBINED if appropriate.
1507 (determine_parallel_type): If OMP_FOR resp. OMP_SECTIONS
1508 isn't the only statement in WS_ENTRY_BB or OMP_RETURN
1509 the only one in PAR_EXIT_BB and not OMP_PARALLEL_COMBINED,
1510 don't consider it as combined parallel.
1512 2007-07-02 Richard Sandiford <richard@codesourcery.com>
1514 * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
1515 (gcc_tooldir): Likewise.
1516 * configure: Regenerate.
1517 * Makefile.in (libsubdir_to_prefix): New variable, based on the
1518 old configure.ac gcc_tooldir setting.
1519 (prefix_to_exec_prefix): New variable.
1520 (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
1521 rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
1523 2007-07-02 Daniel Berlin <dberlin@dberlin.org>
1525 Fix PR tree-optimization/32583
1526 Fix PR tree-optimization/32584
1527 * tree-ssa-pre.c (phi_translate): Always pass seen bitmap.
1528 (phi_translate_set): Use phi_translate directly now.
1529 (make_values_for_stmt): Don't value number RHS if we already know
1532 2007-07-02 Steve Ellcey <sje@cup.hp.com>
1533 Jim Wilson <wilson@specifix.com>
1536 * haifa-sched.c (add_to_speculative_block): Change copy_rtx to
1539 2007-07-02 Sandra Loosemore <sandra@codesourcery.com>
1540 Richard Sandiford <richard@codesourcery.com>
1541 Nigel Stephens <nigel@mips.com>
1543 * config/mips/mips-protos.h (mips16e_save_restore_info): New struct.
1544 (mips16e_output_save_restore): Declare.
1545 (mips16e_save_restore_pattern_p): Likewise.
1546 * config/mips/mips.h (GENERATE_MIPS16E_SAVE_RESTORE): New macro.
1547 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Return 0x7f8
1548 for GENERATE_MIPS16E_SAVE_RESTORE. Return 0x400 for TARGET_MIPS16
1549 && !GENERATE_MIPS16E_SAVE_RESTORE && !TARGET_64BIT.
1550 (BITSET_P): New global macro, extracted from...
1551 (mips_for_each_saved_reg): ...here.
1552 (mips16e_save_restore_info): New struct.
1553 (mips16e_s2_s8_regs, mips16e_a0_a3_regs): New variables.
1554 (mips16e_save_restore_regs): New variable.
1555 (mips_split_plus, mips16e_find_first_register): New functions.
1556 (mips16e_mask_registers): New function.
1557 (compute_frame_size): Expand the commentary before the function.
1558 Enforce the MIPS16e save and restore register range restrictions.
1559 Pad the general register save area at the low end.
1560 (mips16e_save_restore_reg, mips16e_build_save_restore)
1561 (mips16e_save_restore_pattern_p, mips16e_add_register_range)
1562 (mips16e_output_save_restore, mips16e_collect_propagate_value)
1563 (mips16e_collect_argument_save, mips16e_collect_argument_saves):
1565 (mips_expand_prologue, mips_expand_epilogue): Handle
1566 GENERATE_MIPS16E_SAVE_RESTORE.
1567 * config/mips/mips.md (*mips16e_save_restore): New pattern.
1569 2007-07-02 Uros Bizjak <ubizjak@gmail.com>
1571 PR tree-optimization/31966
1572 PR tree-optimization/32533
1573 * tree-if-conv.c (add_to_dst_predicate_list): Use "edge", not
1574 "basic_block" description as its third argument. Update function
1575 calls to get destination bb from "edge" argument. Save "cond" into
1576 aux field of the edge. Update prototype for changed arguments.
1577 (if_convertible_loop_p): Clear aux field of incoming edges if bb
1579 (find_phi_replacement_condition): Operate on incoming edges, not
1580 on predecessor blocks. If there is a condition saved in the
1581 incoming edge aux field, AND it with incoming bb predicate.
1582 Return source bb of the first edge.
1583 (clean_predicate_lists): Clean aux field of outgoing node edges.
1584 (tree_if_conversion): Do not initialize cond variable. Move
1585 variable declaration into the loop.
1586 (replace_phi_with_cond_gimple_modify_stmt): Remove unneded
1587 initializations of new_stmt, arg0 and arg1 variables.
1589 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1591 * tree-nrv.c (dest_safe_for_nrv_p): Grok any handled_component_p,
1592 SSA_NAMEs, RESULT_DECLs and PARM_DECLs.
1594 2007-07-02 Richard Guenther <rguenther@suse.de>
1596 * tree-ssa.c (useless_type_conversion_p): Document
1597 future intent as defining the middle-end type system.
1598 Re-structure to call langhook last, group by type class,
1599 mark questionable parts.
1601 2007-07-02 Richard Guenther <rguenther@suse.de>
1603 * tree-flow.h (types_compatible_p): Declare.
1604 * tree-ssa.c (types_compatible_p): New function.
1605 * ipa-type-escape.c (discover_unique_type): Use
1606 types_compatible_p instead of lang_hooks.types_compatible_p.
1607 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
1608 * tree-vn.c (expressions_equal_p): Likewise.
1609 * tree.c (fields_compatible_p): Likewise.
1610 * tree-ssa-dom.c (avail_expr_eq): Likewise.
1611 (cprop_operand): Use useless_type_conversion_p instead of
1612 lang_hooks.types_compatible_p.
1613 * tree-inline.c (setup_one_parameter): Likewise.
1614 (declare_return_variable): Likewise.
1615 * tree-nrv.c (tree_nrv): Likewise.
1616 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
1617 (maybe_fold_offset_to_component_ref): Likewise.
1618 (maybe_fold_offset_to_reference): Likewise.
1619 * tree-ssa-copy.c (may_propagate_copy): Likewise.
1620 (merge_alias_info): Likewise.
1621 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1622 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
1623 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
1624 * tree-tailcall.c (find_tail_calls): Likewise.
1625 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
1626 * gimplify.c (canonicalize_addr_expr): Likewise.
1627 (fold_indirect_ref_rhs): Likewise.
1628 (gimplify_addr_expr): Likewise. Swap parameters to cpt_same_type.
1629 (cpt_same_type): Likewise.
1630 (check_pointer_types_r): Swap parameters to cpt_same_type
1632 * fold-const.c (fold_convert): Revert fix for PR15988.
1633 * tree-inline.c (setup_one_parameter): Instead fix it here by
1634 using fold_build1 instead of fold_convert and checking for
1635 error_mark_node. Convert only if the conversion is necessary.
1637 2007-07-02 Joseph Myers <joseph@codesourcery.com>
1639 * configure.ac: Check for .gnu_attribute on Power.
1640 * configure: Regenerate.
1641 * config/rs6000/rs6000.c (rs6000_file_start): If supported, output
1642 attribute for floating-point ABI.
1644 2007-07-02 Ira Rosen <irar@il.ibm.com>
1646 PR tree-optimization/32230
1647 PR tree-optimization/32477
1648 * tree-vect-analyze.c (vect_analyze_data_refs): Fail if base
1649 address is a constant.
1651 2007-07-02 Richard Sandiford <richard@codesourcery.com>
1653 * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*)
1654 (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*)
1655 (mipsisa64-*-elf*, mipsisa64el-*-elf*): Combine top-level
1656 stanzas. Use the first part of the triplet to set MIPS_ISA_DEFAULT.
1657 Remove redundant setting of MASK_FLOAT64 and MASK_64BIT for the
1658 64-bit targets. Add support for *-elfoabi*.
1659 * config/mips/t-isa3264 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Use
1660 different settings if $(tm_defines) does not select the EABI.
1661 (MULTILIB_EXCLUSIONS): Define in those circumstances.
1662 * config/mips/mips.h (MIPS_ISA_LEVEL_OPTION_SPEC): New macro.
1663 (MIPS_ARCH_OPTION_SPEC): Likewise.
1664 (MIPS_ISA_LEVEL_SPEC): Likewise.
1665 (OPTION_DEFAULT_SPECS): Use MIPS_ARCH_OPTION_SPEC.
1666 * config/mips/elfoabi.h: New file.
1668 2007-07-02 Richard Guenther <rguenther@suse.de>
1670 * tree-flow.h (tree_ssa_useless_type_conversion_1): Rename to ...
1671 (useless_type_conversion_p): ... this.
1672 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Rename to ...
1673 (useless_type_conversion_p): ... this.
1674 * builtins.c (fold_builtin_memory_op): Rename
1675 tree_ssa_useless_type_conversion_1 to useless_type_conversion_p.
1676 * tree-cfg.c (verify_expr): Likewise.
1677 * tree-ssa-address.c (tree_ssa_useless_type_conversion_1): Likewise.
1678 * tree-ssa-ccp.c (ccp_fold): Likewise.
1679 * tree-ssa-copy.c (may_propagate_copy): Likewise.
1680 * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
1681 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1682 * tree-ssa-loop-niter.c (refine_bounds_using_guard): Likewise.
1683 * tree-ssa-pre.c (eliminate): Likewise.
1684 * tree-ssa.c (delete_tree_ssa): Likewise.
1685 (tree_ssa_useless_type_conversion): Likewise.
1686 * tree.c (build2_stat): Likewise.
1688 2007-07-01 Daniel Berlin <dberlin@dberlin.org>
1690 Fix PR tree-optimization/32571
1691 * tree-ssa-sccvn.c (visit_use): Shortcut copies to avoid
1694 2007-07-01 Daniel Berlin <dberlin@dberlin.org>
1696 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle constants
1697 and other expected operations explicitly, change default to
1700 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1702 * config/arm/arm.c (arm_cannot_copy_insn_p): Do not expect a
1704 * config/arm/arm.md (pic_add_dot_plus_four, pic_add_dot_plus_eight)
1705 (tls_load_dot_plus_eight): Move the label number into the unspec.
1706 * config/arm/thumb2.md (pic_load_dot_plus_four): Likewise.
1708 2007-07-01 Andreas Schwab <schwab@suse.de>
1710 * dwarf2out.c (initial_return_save): Define only if used.
1712 2007-07-01 Kenneth Zadeck <zadeck@naturalbridge.com>
1714 Unreverting Richard's Revert of:
1716 2007-06-27 Richard Sandiford <richard@codesourcery.com>
1718 * dce.c (deletable_insn_p_1): New function, split out from...
1719 (deletable_insn_p): ...here. Only treat bare USEs and CLOBBERs
1720 specially, not those inside PARALLELs. Remove BODY argument
1721 and adjust recursive call accordingly.
1722 (prescan_insns_for_dce): Update call to delete_insn_p.
1724 2007-07-01 Vladimir Yanovsky <yanov@il.ibm.com>
1725 Revital Eres <eres@il.ibm.com>
1727 * ddg.c (create_ddg_all_sccs): Fix missed
1728 initialization of scc_nodes.
1730 2007-07-01 Uros Bizjak <ubizjak@gmail.com>
1733 * fold-const.c (fold-binary) [PLUS_EXPR]: Convert ~X + X to 1 or
1734 X + ~X to 1 only for INTEGRAL_TYPE_P type.
1736 2007-06-30 Joseph Myers <joseph@codesourcery.com>
1738 * configure.ac: Check for .gnu_attribute on MIPS.
1739 * configure, config.in: Regenerate.
1740 * config/mips/mips.c (mips_file_start): If supported, output
1741 attribute for floating-point ABI.
1743 2007-06-30 Uros Bizjak <ubizjak@gmail.com>
1746 * config/i386/i386.md (ffssi2): Expand as ffs_cmove for TARGET_CMOVE.
1747 (ffs_cmove): New expander to expand using ctz pattern.
1748 (*ffs_cmove): Remove pattern.
1749 (*ffs_no_cmove): Enable only for !TARGET_CMOVE.
1750 (ffsdi2): Expand using ctz pattern.
1751 (*ffs_rex64): Remove pattern.
1753 2007-06-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1755 PR rtl-optimization/32296
1756 * pa.md (return): Delete pattern.
1757 (return_internal): Remove "(const_int 1)" from pattern.
1758 (epilogue): Use return_internal pattern for trivial returns.
1759 * pa-protos.h (hppa_can_use_return_insn_p): Delete declaration.
1760 * pa.c (hppa_can_use_return_insn_p): Delete function. Include "df.h".
1762 2007-06-30 Daniel Berlin <dberlin@dberlin.org>
1764 * tree-ssa-pre.c (is_exception_related): New function
1765 (can_value_number_operation): Use it.
1767 2007-06-30 Daniel Berlin <dberlin@dberlin.org>
1769 Fix PR tree-optimization/32540
1770 Fix PR tree-optimization/31651
1772 * tree-ssa-sccvn.c: New file.
1774 * tree-ssa-sccvn.h: Ditto.
1776 * tree-vn.c: Include tree-ssa-sccvn.h
1777 (val_expr_paid_d): Removed.
1778 (value_table): Ditto.
1779 (vn_compute): Ditto.
1780 (val_expr_pair_hash): Ditto.
1781 (val_expr_pair_expr_eq): Ditto.
1782 (copy_vuses_from_stmt): Ditto.
1785 (shared_vuses_from_stmt): Ditto.
1786 (print_creation_to_file): Moved up.
1787 (sort_vuses): Ditto.
1788 (sort_vuses_heap): Ditto.
1789 (set_value_handle): Make non-static.
1790 (make_value_handle): Ditto.
1791 (vn_add): Rewritten to use sccvn lookups.
1792 (vn_add_with_vuses): Ditto.
1793 (vn_lookup): Ditto (and second argument removed).
1794 (vn_lookup_with_vuses): Ditto.
1795 (vn_lookup_or_add): Ditto (and second argument removed);
1796 (vn_lookup_or_add_with_vuses): Ditto.
1797 (vn_lookup_with_stmt): New.
1798 (vn_lookup_or_add_with_stmt): Ditto.
1799 (create_value_handle_for_expr): Ditto.
1801 * tree-ssa-pre.c: Include tree-ssa-sccvn.h.
1802 (seen_during_translate): New function.
1803 (phi_trans_lookup): Use iterative_hash_expr, not vn_compute.
1804 (phi_trans_add): Ditto.
1805 (constant_expr_p): FIELD_DECL is always constant.
1806 (phi_translate_1): Renamed from phi_translate, add seen bitmap.
1807 Use constant_expr_p.
1808 Avoid infinite recursion on mutually valued expressions.
1809 Change callers of vn_lookup_or_add.
1810 (phi_translate): New function.
1811 (compute_antic_safe): Allow phi nodes.
1812 (create_component_ref_by_pieces): Update for FIELD_DECL change.
1813 (find_or_generate_expression): Rewrite slightly.
1814 (create_expression_by_pieces): Updated for vn_lookup_or_add
1816 Update VN_INFO for new names.
1817 (insert_into_preds_of_block): Update for new names.
1818 (add_to_exp_gen): New function.
1819 (add_to_sets): Use vn_lookup_or_add_with_stmt.
1820 (find_existing_value_expr): Rewrite to changed vn_lookup.
1821 (create_value_expr_from): Ditto, and use add_to_exp_gen.
1822 (try_look_through_load): Removed.
1823 (try_combine_conversion): Ditto.
1824 (get_sccvn_value): New function.
1825 (make_values_for_phi): Ditto.
1826 (make_values_for_stmt): Ditto.
1827 (compute_avail): Rewritten for vn_lookup_or_add changes and to use
1829 (init_pre): Update for SCCVN changes.
1831 (execute_pre): Ditto.
1833 * tree-flow.h (make_value_handle): Declare.
1834 (set_value_handle): Ditto.
1835 (sort_vuses_heap): Ditto.
1836 (vn_lookup_or_add_with_stmt): Ditto.
1837 (vn_lookup_with_stmt): Ditto.
1838 (vn_compute): Remove.
1841 (vn_lookup): Update arguments.
1843 * Makefile.in (tree-ssa-pre.o): Add tree-ssa-sccvn.h
1845 (tree-ssa-sccvn.o): New.
1846 (OBJS-common): Add tree-ssa-sccvn.o
1848 2007-06-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1851 * c-typeck.c (build_external_ref): Don't mark as used if called
1853 * calls.c (rtx_for_function_call): Likewise.
1855 2007-06-30 Richard Sandiford <richard@codesourcery.com>
1859 2007-06-27 Richard Sandiford <richard@codesourcery.com>
1861 * dce.c (deletable_insn_p_1): New function, split out from...
1862 (deletable_insn_p): ...here. Only treat bare USEs and CLOBBERs
1863 specially, not those inside PARALLELs. Remove BODY argument
1864 and adjust recursive call accordingly.
1865 (prescan_insns_for_dce): Update call to delete_insn_p.
1867 2007-06-30 Rask Ingemann Lambertsen <rask@sygehus.dk>
1869 * combine.c (combine_validate_cost): New parameter NEWOTHERPAT.
1870 (try_combine): Move potential calls to undo_all() so they happen
1871 before we commit to using the combined insns.
1873 2006-06-30 Jan Hubicka <jh@suse.cz>
1875 * loop-unroll.c (unroll_loop_runtime_iterations): Unshare newly emit
1878 2006-06-30 Thomas Neumann <tneumann@users.sourceforge.net>
1880 * ipa.c (cgraph_postorder): Cast according to the coding conventions.
1881 (cgraph_remove_unreachable_nodes): Likewise.
1882 * ipa-cp.c (ipcp_propagate_stage): Use BOTTOM instead of integer 0.
1883 * ipa-inline.c (update_caller_keys): Cast according to the coding
1885 (cgraph_decide_recursive_inlining): Likewise.
1886 (cgraph_decide_inlining_of_small_function): Likewise.
1887 (try_inline): Likewise.
1888 (cgraph_decide_inlining_incrementally): Likewise.
1889 * ipa-pure-const.c (get_function_state): Likewise.
1890 (scan_function): Likewise.
1891 (analyze_function): Likewise.
1892 (static_execute): Likewise.
1893 * gcc/ipa-reference.c (scan_for_static_refs): Likewise.
1894 (merge_callee_local_info): Likewise.
1895 (analyze_function): Use type safe memory macros.
1896 (static_execute): Likewise. Cast according to the coding conventions.
1897 * ipa-type-escape.c (scan_for_regs): Cast according to the coding
1899 * ipa-utils.c (searchc): Likewise. Avoid using C++ keywords as variable
1901 (ipa_utils_reduced_inorder): Likewise. Use type safe memory macros.
1902 * ipa-utils.h (struct ipa_dfa_info): Avoid using C++ keywords as
1905 2007-06-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
1908 * emit-rtl.c (init_emit_once): Intilize const_tiny_rtx[0]
1909 for complex modes (both int and real).
1911 2007-06-29 Jan Hubicka <jh@suse.cz>
1913 * cse.c: Rever accidentally comitted TODO_verify_rtl_sharing change.
1915 2007-06-29 Jan Hubicka <jh@suse.cz>
1918 * cse.c (cse_insn): Avoid invalid sharing in between register note and
1921 2007-06-29 Anatoly Sokolov <aesok@post.ru>
1924 * config/avr/avr.c: Include dataflow header file.
1925 (expand_prologue): Adjust for prologue insn change.
1926 * config/avr/avr.md (call_prologue_saves): Only modify REG_SP once
1929 2007-06-29 Richard Guenther <rguenther@suse.de>
1932 * gimplify.c (gimplify_call_expr): Ignore variable argument parts
1933 during type verification.
1935 2007-06-29 Jan Hubicka <jh@suse.cz>
1937 * recog.c (validate_change_rtx_1): Unshare TO argument.
1939 2007-06-29 Uros Bizjak <ubizjak@gmail.com>
1941 PR tree-optimization/24659
1942 * tree-vect-transform.c (vectorizable_call): Handle
1943 (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
1945 * config/i386/sse.md (vec_pack_sfix_v2df): New expander.
1946 * config/i386/i386.c (enum ix86_builtins)
1947 [IX86_BUILTIN_VEC_PACK_SFIX]: New constant.
1948 (struct bdesc_2arg) [__builtin_ia32_vec_pack_sfix]: New builtin
1950 (ix86_init_mmx_sse_builtins): Define all builtins with 2 arguments as
1951 const using def_builtin_const.
1952 (ix86_expand_binop_builtin): Remove bogus assert() that insn wants
1953 input operands in the same modes as the result.
1954 (ix86_builtin_vectorized_function): Handle BUILT_IN_LRINT.
1956 2007-06-29 Richard Sandiford <rsandifo@nildram.co.uk>
1958 * df-problems.c (df_set_unused_notes_for_mw): Fix formatting.
1959 (df_set_dead_notes_for_mw): Likewise.
1961 2007-06-29 Eric Botcazou <ebotcazou@adacore.com>
1963 * c-common.c (pointer_int_sum): Do the negation in sizetype.
1965 2007-06-28 DJ Delorie <dj@redhat.com>
1967 * config/m32c/m32c.h (OVERRIDE_OPTIONS): Omit unneeded semicolon.
1969 2007-06-28 Geoffrey Keating <geoffk@apple.com>
1971 * doc/invoke.texi (C++ Dialect Options): Document
1972 fvisibility-ms-compat.
1973 * c.opt (fvisibility-ms-compat): New.
1975 2007-06-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
1978 * tree-affine.c (aff_combination_add_elt): Handle
1979 pointer addition specially.
1981 2007-06-28 Jakub Jelinek <jakub@redhat.com>
1983 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Ensure
1984 decl is non-external for AIX ABI.
1986 2007-06-28 David Edelsohn <edelsohn@gnu.org>
1988 * config/rs6000/predicates.md (current_file_function_operand):
1989 Ensure the symbol is non-external for AIX ABI.
1991 2007-06-28 Nick Clifton <nickc@redhat.com>
1993 * common.opt (fipa-matrix-reorg): Add Optimization attribute.
1994 (fdce, fdse, fpredictive-commoning): Likewise.
1996 2007-06-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1999 * gcc.c (process_command): Recognize the new -static-libgfortran
2002 2007-06-27 Rask Ingemann Lambertsen <rask@sygehus.dk>
2005 * config/m32c/m32c.c (m32c_eh_return_stackadj_rtx): Dataflow fix:
2006 Use a call clobbered hard reg instead of a pseudo reg.
2008 2007-06-27 Kaz Kojima <kkojima@gcc.gnu.org>
2010 * config/sh/sh.md (load_gbr): Use correct operand constraint.
2012 2007-06-27 Kaz Kojima <kkojima@gcc.gnu.org>
2015 * config/sh/sh.md (udivsi3): Don't wrap the sequence with
2016 REG_LIBCALL and REG_RETVAL notes.
2017 (divsi3, mulsi3): Likewise.
2018 (mulhisi3): Likewise. Use emit_libcall_block.
2019 (umulhisi3, smulsi3_highpart, umulsi3_highpart_i): Likewise.
2021 2007-06-27 Seongbae Park <seongbae.park@gmail.com>
2023 PR rtl-optimization/32481
2024 * combine.c (adjust_for_new_dest): Rescan the changed insn.
2026 2007-06-27 Richard Sandiford <richard@codesourcery.com>
2028 * dce.c (deletable_insn_p_1): New function, split out from...
2029 (deletable_insn_p): ...here. Only treat bare USEs and CLOBBERs
2030 specially, not those inside PARALLELs. Remove BODY argument
2031 and adjust recursive call accordingly.
2032 (prescan_insns_for_dce): Update call to delete_insn_p.
2034 2007-06-27 Richard Guenther <rguenther@suse.de>
2037 * tree.h (fold_convertible_p): Declare.
2038 * fold-const.c (fold_convertible_p): New function.
2039 * gimplify.c (gimplify_call_expr): Use fold_convertible_p
2040 instead of lang_hooks.types_compatible_p.
2042 2007-06-26 Jan Hubicka <jh@suse.cz>
2044 * fwprop.c (try_fwprop_subst): Use validate_unshare_change.
2045 * postreload.c (reload_cse_simplify_set): Instead of copying the rtx
2046 early use validate_unshare_change.
2047 (reload_combine): Likewise.
2048 * recog.c (change_t): New field unshare.
2049 (validate_change_1): Rename from validate_change; add argument unshare.
2050 (validate_change): Turn into wrapper of validate_change_1; update
2051 prototype for bools.
2052 (validate_unshare_change): New.
2053 (confirm_change_group): Unshare changes if asked for; avoid unnecesary
2054 calls of df_insn_rescan.
2055 * recog.h (validate_change): Replace ints by bools.
2056 (validate_unshare_change): Declare.
2058 2007-06-26 Kenneth Zadeck <zadeck@naturalbridge.com>
2060 * tree.def (VEC_WIDEN_MULT_LO_EXPR): Corrected string name.
2062 2007-06-26 Steve Ellcey <sje@cup.hp.com>
2064 * builtins.c (expand_builtin_next_arg): Change Pmode to ptr_mode.
2066 2007-06-25 Jan Hubicka <jh@suse.cz>
2068 * ipa-inline.c (cgraph_mark_inline): Assert that we never inline
2070 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining,
2071 cgraph_decide_inlining_incrementally): Move uninlinability checks to
2072 places other call site specific checks are performed.
2074 2007-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
2077 * tree-vect-transform.c (vectorizable_operation): Convert
2078 POINTER_PLUS_EXPR over to PLUS_EXPR.
2080 2007-06-25 Chao-ying Fu <fu@mips.com>
2082 * doc/rtl.texi (Machine Modes): Document QQ, HQ, SQ, DQ, TQ,
2083 UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA, USA, UDA, and UTAmodes.
2084 Document MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM.
2085 Document GET_MODE_IBIT, and GET_MODE_FBIT.
2087 * machmode.h (VECTOR_MODE_P): Test MODE_VECTOR_FRACT,
2088 MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
2089 (SCALAR_FRACT_MODE_P, SCALAR_UFRACT_MODE_P, ALL_SCALAR_FRACT_MODE_P,
2090 SCALAR_ACCUM_MODE_P, SCALAR_UACCUM_MODE_P, ALL_SCALAR_ACCUM_MODE_P,
2091 SIGNED_SCALAR_FIXED_POINT_MODE_P, UNSIGNED_SCALAR_FIXED_POINT_MODE_P,
2092 ALL_SCALAR_FIXED_POINT_MODE_P, FRACT_MODE_P, UFRACT_MODE_P,
2093 ALL_FRACT_MODE_P, ACCUM_MODE_P, UACCUM_MODE_P, ALL_ACCUM_MODE_P,
2094 SIGNED_FIXED_POINT_MODE_P, UNSIGNED_FIXED_POINT_MODE_P,
2095 ALL_FIXED_POINT_MODE_P): New define.
2096 (CLASS_HAS_WIDER_MODES_P): Test MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
2098 (GET_MODE_IBIT, GET_MODE_FBIT): New define.
2100 * mode-classes.def (MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM,
2101 MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
2102 MODE_VECTOR_UACCUM): New mode classes.
2104 * machmode.def: Document FRACT_MODE, UFRACT_MODE, ACCUM_MODE,
2105 UACCUM_MODE, ADJUST_IBIT, and ADJUST_FBIT.
2106 Add QQ, HQ, SQ, DQ, TQ, UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA,
2109 * genmodes.c (struct mode_data): Add ibit and fbit fields.
2110 (blank_mode): Initialize ibit and fbit.
2111 (adj_ibit, adj_fbit): New to adjust ibit and fbit.
2112 (vector_class): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
2114 (new_adjust): Change required_class to required_class_from and
2115 required_class_to for testing within a range.
2116 (complete_mode): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
2117 MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
2119 (FRACT_MODE, UFRACT_MODE, ACCUM_MODE, UACCUM_MODE): New define.
2120 (make_fixed_point_mode): New.
2121 (_ADD_ADJUST): Change C to C1 and C2.
2122 (ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FLOAT_FORMAT): Change to
2123 use a range for machine classes.
2124 (ADJUST_IBIT, ADJUST_FBIT): New.
2125 (emit_insn_modes_h): Output defines of CONST_MODE_IBIT and
2127 (emit_mode_adjustments): Handle MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT,
2128 MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
2129 Emit adjustment for ibit and fbit.
2130 (emit_mode_ibit, emit_mode_fbit): New.
2131 (emit_insn_modes_c): Add emit_mode_ibit and emit_mode_fbit.
2133 2007-06-25 Nathan Froyd <froydnj@codesourcery.com>
2135 * config/rs6000/spe.md (*frob_ti_tf_2): Specify an input_operand
2136 as the source of the set.
2138 2007-06-25 Roman Zippel <zippel@linux-m68k.org>
2140 * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P,
2141 FP_REGNO_P): Use IN_RANGE.
2142 (REGNO_OK_FOR_DATA_P, REGNO_OK_FOR_FP_P): Remove.
2143 (REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): New.
2144 (DATA_REG_P): Use DATA_REGNO_P.
2145 (FP_REG_P): Use FP_REGNO_P.
2146 (ADDRESS_REG_P): Use ADDRESS_REGNO_P.
2147 * config/m68k/m68k.c (m68k_legitimate_base_reg_p): Use
2148 REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P.
2150 2007-06-24 Jan Hubicka <jh@suse.cz>
2153 * cgraphunit.c (cgraph_analyze_function): Fix ordering problem.
2155 2007-06-24 Sebastian Pop <sebpop@gmail.com>
2158 * fold-const.c (fold_binary): Strip nops of operand 0
2159 of BIT_NOT_EXPR before calling operand_equal_p.
2160 * testsuite/gcc.dg/tree-ssa/pr32461-1.c: New.
2161 * testsuite/gcc.dg/tree-ssa/pr32461-2.c: New.
2163 2007-06-23 Mark Mitchell <mark@codesourcery.com>
2165 * doc/extend.texi: Document that dllimport and dllexport imply
2167 * tree.c (handle_dll_attribute): Set DECL_VISIBILITY on the
2168 imported or exported declaration, including type declarations.
2169 * c-common.c (handle_visibility_attribute): Check for conflicts
2170 with dllimport/dllexport.
2171 (c_determine_visibility): Handle dllimport/dllexport as an
2172 explicit visibility atttribute.
2174 2007-06-23 Richard Guenther <rguenther@suse.de>
2176 PR tree-optimization/16876
2178 * tree.h (CALL_CANNOT_INLINE_P): New macro to access static_flag
2180 * tree-inline.c (initialize_inlined_parameters): Do not call
2181 lang_hooks.tree_inlining.convert_parm_for_inlining.
2182 * cgraphbuild.c (initialize_inline_failed): Set inline failed
2183 reason for mismatched types.
2184 * gimplify.c (gimplify_call_expr): Verify the call expression
2185 arguments match the called function type signature. Otherwise
2186 mark the call expression to be not considered for inlining
2187 using CALL_CANNOT_INLINE_P flag.
2188 * ipa-inline.c (cgraph_mark_inline): Honor CALL_CANNOT_INLINE_P on the
2189 edges call expression.
2190 (cgraph_decide_inlining_of_small_function): Likewise.
2191 (cgraph_decide_inlining): Likewise.
2192 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
2194 * c-tree.h (c_convert_parm_for_inlining): Remove declaration.
2195 * c-typeck.c (c_convert_parm_for_inlining): Remove.
2196 * langhooks-def.h (lhd_tree_inlining_convert_parm_for_inlining):
2198 (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING): Remove define.
2199 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining):
2201 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
2202 convert_parm_for_inlining member.
2204 2007-06-23 Richard Earnshaw <rearnsha@arm.com>
2207 * arm.md (negscc): Match the correct operand for optimized LT0 test.
2208 Remove optimization for GT.
2210 2007-06-23 Kenneth Zadeck <zadeck@naturalbridge.com>
2213 * dce.c (deletable_insn_p): Add extra parameter and recurse if insn
2215 (prescan_insns_for_dce): Add extra parameter.
2217 2007-06-23 Jan Hubicka <jh@suse.cz>
2220 * gimplify.c (mark_addressable): New function.
2221 (gimplify_modify_expr_rhs, gimplify_addr_expr, gimplify_expr): Use it.
2223 2007-06-22 Uros Bizjak <ubizjak@gmail.com>
2226 * expr.c (store_constructor): Do not clobber non-zeroed memory.
2228 2007-06-22 Uros Bizjak <ubizjak@gmail.com>
2231 * config/i386/i386.c (ix86_register_move_cost): Rise the cost of
2232 moves between MMX/SSE registers to at least 8 units to prevent
2233 ICE caused by non-tieable SI/HI/QImodes in SSE registers.
2235 2007-06-22 Uros Bizjak <ubizjak@gmail.com>
2237 * config/i386/i386.c (override_options): Correct x86_sahf
2240 2007-06-21 David Daney <ddaney@avtrex.com>
2243 * config/mips/mips.md (define_constants): Rename UNSPEC_EH_RECEIVER
2244 to UNSPEC_NONLOCAL_GOTO_RECEIVER globally.
2245 (exception_receiver): Renamed to ...
2246 (nonlocal_goto_receiver): ... this.
2248 2007-06-22 Roman Zippel <zippel@linux-m68k.org>
2250 * df-scan.c (df_read_modify_subreg_p): Use REGMODE_NATURAL_SIZE.
2251 (df_def_record_1): Set (DF_REF_READ_WRITE | DF_REF_PARTIAL) for
2252 partial register accesses.
2254 2007-06-21 Adam Nemet <anemet@caviumnetworks.com>
2256 * fold-const.c (debug_fold_checksum): Move it under
2257 ENABLE_FOLD_CHECKING.
2259 2007-06-21 Sebastian Pop <sebpop@gmail.com>
2262 * tree.h (debug_fold_checksum): Declared.
2263 * fold-const.c (build_fold_addr_expr_with_type_1): New.
2264 (build_fold_addr_expr_with_type, build_fold_addr_expr): Use
2265 build_fold_addr_expr_with_type_1.
2266 (fold_addr_expr, debug_fold_checksum): New.
2267 (fold_checksum_tree): Don't fold TREE_CHAIN of an SSA_NAME.
2268 (fold_unary, fold_comparison, split_address_to_core_and_offset):
2271 2007-06-21 Sebastian Pop <sebpop@gmail.com>
2273 PR tree-optimization/19590
2274 * tree-vrp.c (adjust_range_with_scev): Set the range when the result
2275 of scev is a constant.
2276 * gcc/testsuite/gcc.dg/tree-ssa/pr19590.c: New.
2278 2007-06-21 Kenneth Zadeck <zadeck@naturalbridge.com>
2280 * df-problems.c (df_note_bb_compute): Made computation of live
2281 info consistent with df_lr.
2283 2007-06-21 Richard Guenther <rguenther@suse.de>
2285 PR tree-optimization/32453
2286 * tree-vrp.c (extract_range_from_assert): Build POINTER_PLUS_EXPR
2287 for pointer anti-range.
2289 2007-06-21 H.J. Lu <hongjiu.lu@intel.com>
2291 * config/i386/i386.c (processor_target_table): Increase maximum
2292 skip from 7 byte to 10 byte for Pentium Pro, Core 2 Duo and
2295 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Ensure 8
2296 byte alignment if > 8 byte alignment is preferred.
2297 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
2299 2007-06-21 Jakub Jelinek <jakub@redhat.com>
2301 PR tree-optimization/31866
2302 * tree-ssa-coalesce.c (create_outofssa_var_map): Do nothing
2303 if ASM_EXPR's input is not a SSA_NAME.
2306 * omp-low.c (lookup_decl_in_outer_ctx): Don't ICE if t is NULL,
2307 but decl is a global var, instead return decl.
2308 * gimplify.c (gimplify_adjust_omp_clauses_1): Add shared clauses
2309 even for is_global_var decls, if they are private in some outer
2312 2007-06-21 Richard Guenther <rguenther@suse.de>
2314 PR tree-optimization/32451
2315 * tree-ssa-threadupdate.c (thread_single_edge): Fixup edge flags.
2317 2007-06-21 Christian Bruel <christian.bruel@st.com>
2319 * config/sh/sh-protos.h (sh_loads_bankedreg_p): Declare.
2320 * config/sh/sh.c (sh_loads_bankedreg_p): New function.
2321 (push_regs): Changed saving order or banked registers.
2322 (sh_expand_epilogue): Likewise.
2323 * config/sh/sh.h (BANKED_REGISTER_P): New macro.
2324 (FIRST_BANKED_REG): Likewise.
2325 (LAST_BANKED_REG): Likewise.
2326 * config/sh/sh.md (banked) New attribute.
2327 (in_delay_slot): Check banked attribute.
2329 2007-06-20 Sebastian Pop <sebpop@gmail.com>
2331 PR tree-optimization/32075
2332 * tree-data-ref.c (subscript_dependence_tester_1,
2333 analyze_miv_subscript, analyze_overlapping_iterations,
2334 add_distance_for_zero_overlaps, build_classic_dist_vector,
2335 subscript_dependence_tester_1, analyze_overlapping_iterations,
2336 subscript_dependence_tester, access_functions_are_affine_or_constant_p,
2337 compute_affine_dependence, compute_all_dependences): Pass loop_nest
2338 to evolution_function_is_affine_multivariate_p.
2340 2007-06-20 Eric Botcazou <ebotcazou@libertysurf.fr>
2342 * df-scan.c (df_get_call_refs): Be prepared for MEMs inside CLOBBERs.
2344 2007-06-20 Rask Ingemann Lambertsen <rask@sygehus.dk>
2347 * config/m32c/m32c.c (m32c_emit_epilogue): Use new HImode epilogue
2349 * config/m32c/prologue.md (epilogue_exitd_16): New.
2350 (epilogue_reit_16): New.
2351 (epilogue_exitd): Rename to epilogue_exitd_24.
2352 (epilogue_reit): Rename to epilogue_reit_24.
2354 2007-06-20 Seongbae Park <seongbae.park@gmail.com>
2355 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2357 * dbgcnt.def (global_alloc_at_func, global_alloc_at_reg):
2359 * haifa-sched.c (queue_to_ready): Don't requeue next insn
2360 if dbg_cnt (sched_insn) reaches the limit.
2361 (choose_ready): New parameter INSN_PTR and new return value.
2362 (schedule_block): Handle dbg_cnt (sched_insn). Handle
2363 the new return value from choose_ready.
2364 * global.c (global_aloc): New dbgcnt global_alloc_at_reg.
2365 (rest_of_handle_global_alloc): New global_alloc_at_func.
2367 2007-06-20 Adam Nemet <anemet@caviumnetworks.com>
2369 PR tree-optimization/25737
2370 * tree.h (struct tree_struct_field_tag): Add new field alias_set.
2371 (SFT_NONADDRESSABLE_P, SFT_ALIAS_SET): New macros.
2372 * tree-flow.h (struct fieldoff): Add new field alias_set.
2373 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add new
2374 argument addressable_type. Set alias_set of fieldoff.
2375 * tree-ssa-alias.c (create_sft): Add new argument alias_set.
2376 (create_overlap_variables_for): Pass alias_set from fieldoff to
2378 * alias.c (get_alias_set): Use alias_set from SFT if set.
2380 2007-06-20 Hui-May Chang <hm.chang@apple.com>
2382 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Print the size
2383 of a variable as an unsigned HOST_WIDE_INT integer.
2385 2007-06-20 Zdenek Dvorak <dvorakz@suse.cz>
2387 PR rtl-optimization/32405
2388 * loop-iv.c (iv_get_reaching_def): Fail for partial defs.
2390 2007-06-20 Jakub Jelinek <jakub@redhat.com>
2392 * Makefile.in (omega.o): Depend on $(DIAGNOSTIC_H).
2395 * builtins.c: Include diagnostic.h.
2396 (expand_builtin_expect): Make gcc_assert more permissive.
2397 * Makefile.in (builtins.o): Depend on $(DIAGNOSTIC_H).
2400 * gimplify.c (gimplify_asm_expr): Issue error if type is addressable
2404 * calls.c (precompute_arguments): Also precompute CALL_EXPR arguments
2405 if ACCUMULATE_OUTGOING_ARGS.
2407 2007-06-19 Rask Ingemann Lambertsen <rask@sygehus.dk>
2409 * config/m68hc11/m68hc11.c: Include dataflow header file.
2410 (m68hc11_reorg): Port to dataflow.
2412 2007-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
2414 * df.h (DF_FIRST_OPTIONAL_PROBLEM): Removed.
2415 (struct df_problem.free_blocks_on_set_blocks): New field.
2416 (struct dataflow.optional_p): New field.
2417 (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
2418 (df_live_set_all_dirty): New function.
2419 * df-scan.c (df_scan_alloc): Initialize optional_p.
2420 (problem_SCAN): Initialize free_blocks_on_set_blocks.
2421 * df-core.c (df_set_blocks): Removed use of
2422 DF_FIRST_OPTIONAL_PROBLEM. Now uses
2423 df_problem.free_blocks_on_set_blocks to determine which blocks are
2425 (df_remove_problem): Removed use of DF_FIRST_OPTIONAL_PROBLEM.
2426 (df_finish_pass): Removed use of DF_FIRST_OPTIONAL_PROBLEM. Now
2427 uses dataflow.optional_p to determine if problem should be
2429 (rest_of_handle_df_initialize): Only start live problem if
2431 (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
2432 * df-problems.c (df_ru_alloc, df_rd_alloc, df_lr_alloc,
2433 df_live_alloc, df_urec_alloc, df_note_alloc): set optional_p.
2434 (problem_RU, problem_RD, problem_LR, problem_UREC, problem_CHAIN,
2435 problem_NOTE): Initialize free_blocks_on_set_blocks.
2436 (df_lr_bb_local_compute): Recompute luids if df_live problem is
2438 (df_live_set_all_dirty, df_note_alloc): New function.
2439 * regrename.c (merge_overlapping_regs): Change DF_LIVE_* to
2441 * sched_ebb.c (compute_jump_reg_dependencies): Ditto.
2442 * postreload.c (reload_combine): Ditto.
2443 * cse.c (cse_extended_basic_block): Ditto.
2444 * regmove.c (mark_flags_life_zones): Ditto.
2445 * rtlfactoring.c (split_blocks_after_seqs, split_pattern_seq,
2446 erase_matching_seqs): Ditto.
2447 * bt-load.c (compute_defs_uses_and_gen): Ditto.
2448 * integrate (allocate_initial_values): Ditto.
2449 * combine.c (reg_dead_at_p): Ditto.
2450 * resource.c (mark_target_live_regs): Ditto.
2451 * sched-rgn.c (check_live_1, update_live_1): Ditto.
2452 * config/sh/sh.c (find_r0_life_regions): Ditto.
2453 * global.c (rest_of_handle_global_alloc): Only add back df_live
2455 * local-alloc.c (rest_of_handle_local_alloc): Only remove
2457 * ifcvt.c (dead_or_predicable): Change DF_LIVE_* to
2459 (if_convert): Make sure df_live is there at -O == 1.
2460 (pass_if_after_combine): Cleanup flags.
2461 * init-regs.c (initialize_uninitialized_regs): Make sure df_live
2462 is there at -O == 1.
2464 2007-06-19 Seongbae Park <seongbae.park@gmail.com>
2466 * config/arm/arm.c (arm_get_frame_offsets): Set
2467 offsets->locals_base to avoid negative stack size.
2468 (thumb1_expand_prologue): Assert on negative stack size.
2470 2007-04-19 Sebastian Pop <sebpop@gmail.com>
2472 PR tree-optimization/32367
2473 * tree-chrec.h (build_polynomial_chrec): Verify that the left hand side
2474 of the chrec has no evolution in that loop.
2475 * testsuite/gcc.dg/tree-ssa/pr32367.c: New.
2477 2007-06-19 Bob Wilson <bob.wilson@acm.org>
2479 * config/xtensa/xtensa.c: Include "df.h".
2480 (xtensa_builtin_saveregs): Use adjust_address instead of
2482 (xtensa_va_start): Invoke make_tree with sizetype for
2483 expand_builtin_saveregs and then convert the result to a pointer.
2484 Use POINTER_PLUS_EXPR. Use size_int instead of build_int_cst.
2485 (xtensa_gimplify_va_arg_expr): Use size_int instead of build_int_cst.
2486 Subtract argument size from index value as integers and then use
2487 POINTER_PLUS_EXPR to add the result to the array address.
2489 2007-06-19 Rask Ingemann Lambertsen <rask@sygehus.dk>
2492 * config/m32c/m32c.c: Include dataflow header file.
2493 (m32c_emit_prologue): Adjust for prologue insn change.
2494 * config/m32c/prologue.md (prologue_enter_16): Only modify SP_REGNO
2495 once inside a PARALLEL. Assume frame size passed in operand 0
2496 includes space to save the fb register.
2497 (prologue_enter_24): Likewise.
2498 (epilogue_exitd): Only modify SP_REGNO once inside a PARALLEL.
2500 2007-06-19 David Daney <ddaney@avtrex.com
2503 * config/mips/mips.md (cprestore): Mark $gp as used.
2505 2007-06-19 Rask Ingemann Lambertsen <rask@sygehus.dk>
2508 * config/frv/frv.c (frv_ifcvt_modify_tests): Dataflow merge fix.
2509 (frv_ifcvt_modify_insn): Likewise.
2511 2007-06-19 Richard Guenther <rguenther@suse.de>
2513 * tree-ssa-structalias.c (handle_ptr_arith): Make sure to
2514 only handle positive offsets that fit in a HOST_WIDE_INT.
2516 2007-06-19 Uros Bizjak <ubizjak@gmail.com>
2518 * config/i386/i386.c (ix86_emit_swsqrtsf): Filter out infinity
2519 result of rsqrt insn for zero input argument to avoid NaN.
2521 2007-06-19 Richard Guenther <rguenther@suse.de>
2524 * tree-ssa-alias-warnings.c (ffan_walker): Punt on MTAGs.
2526 2007-06-19 Jakub Jelinek <jakub@redhat.com>
2528 PR tree-optimization/32353
2529 * tree-ssa-structalias.c (set_uids_in_ptset): Also handle RESULT_DECL.
2531 2007-06-19 Nick Clifton <nickc@redhat.com>
2533 * config/m32r/linux.h (LIB_SPEC): Always imply -lpthread for -pthread.
2535 2007-06-18 Uros Bizjak <ubizjak@gmail.com>
2538 * config/i386/i386.h (enum ix86_stack_slot): Add SLOT_VIRTUAL.
2539 * config/i386/i386.c (assign_386_stack_local): Assert that
2540 SLOT_VIRTUAL is valid only before virtual regs are instantiated.
2541 (ix86_expand_builtin) [IX86_BUILTIN_LDMXCSR, IX86_BUILTIN_STMXCSR]:
2542 Use SLOT_VIRTUAL stack slot instead of SLOT_TEMP.
2543 * config/i386/i386.md (truncdfsf2, truncxf<mode>2): Ditto.
2545 2007-06-18 Steve Ellcey <sje@cup.hp.com>
2547 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): New.
2549 2007-06-18 Seongbae Park <seongbae.park@gmail.com>
2551 PR rtl-optimization/32321
2552 * gcse.c (replace_store_insn): Update the note before
2553 calling emit_insn_after.
2555 2007-06-18 Kenneth Zadeck <zadeck@naturalbridge.com>
2558 * gcse (rest_of_handle_gcse): Add call to df_finish_pass after
2560 * df-problems.c (df_note_bb_compute): Fix dumping info.
2562 2007-06-18 Kazu Hirata <kazu@codesourcery.com>
2564 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a return
2565 insn with emit_jump_insn.
2567 2007-06-18 Uros Bizjak <ubizjak@gmail.com>
2569 PR tree-optimization/32383
2570 * targhooks.c (default_builtin_reciprocal): Add new bool argument.
2571 * targhooks.h (default_builtin_reciprocal): Update prototype.
2572 * target.h (struct gcc_target): Update builtin_reciprocal.
2573 * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Update description.
2574 * tree-ssa-math-opts (execute_cse_reciprocals): Skip statements
2575 where arg1 is not SSA_NAME. Pass true to targetm.builtin_reciprocal
2576 when fndecl is in BUILT_IN_MD class.
2577 (execute_convert_to_rsqrt): Ditto.
2579 * config/i386/i386.c (ix86_builtin_reciprocal): Update for new bool
2580 argument. Convert IX86_BUILTIN_SQRTPS code only when md_fn is true.
2581 Convert BUILT_IN_SQRTF code only when md_fn is false.
2583 2007-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
2585 * bt-load.c (move_btr_def): Fix the order of arguments
2586 to validate_replace_rtx.
2588 2007-06-18 Nathan Sidwell <nathan@codesourcery.com>
2590 * config/m68k/m68k-devices.def: Add 54450..54455.
2592 2007-06-17 Uros Bizjak <ubizjak@gmail.com>
2594 PR rtl-optimization/32366
2595 * simplify-rtx.c (simplify_unary_operation_1) [FLOAT_TRUNCATE,
2596 FLOAT_EXTEND]: Prevent non-scalar modes from entering
2599 2007-06-17 Kenneth Zadeck <zadeck@naturalbridge.com>
2602 * modulo-sched (generate_reg_moves): Added rescan parameter and if
2603 this is true, rescan insn being modified.
2604 (sms_schedule): Added rescan parameter.
2605 (rest_of_handle_sms): Moved freeing of dominance info to before
2606 getting out of cfg_layout.
2608 2007-06-17 Nathan Sidwell <nathan@codesourcery.com>
2610 * config/m68k/m68k.h (ISA_HAS_FF1, ISA_HAS_MVS_MVZ): New.
2611 * config/m68k/m68k.md: Use ISA_HAS_FF1 and ISA_HAS_MVS_MVZ as
2614 * config/m68k/m68k.c (all_isas): Remove FL_CF_FPU and
2615 FL_CF_EMAC from the entry for isac.
2617 * config/m68k/predicates.md (const_call_operand): Adjust comment.
2618 (const_sibcall_operand): New.
2619 (sibcall_operand): Use it.
2620 * config/m68k/m68k.c (FL_FOR_isa_c): Not ISA_B compatible.
2621 (m68k_isas): ISAC does not imply FPU or EMAC.
2622 (override_options): Add ISA_C logic for symbolic jump & call.
2624 2007-06-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2626 * config/sparc/sparc.c (sparc_vis_init_builtins): Retrieve the
2627 return mode from the builtin itself.
2628 (sparc_fold_builtin): Fix cast of zero constant.
2630 2007-06-16 Uros Bizjak <ubizjak@gmail.com>
2632 * targhooks.c (default_builtin_reciprocal): New default target hook.
2633 * targhooks.h (default_builtin_reciprocal): Add prototype.
2634 * hooks.c (hook_tree_tree_bool_null): Remove hook.
2635 * hooks.h (hook_tree_tree_bool_null): Remove prototype.
2636 * target-def.h (TARGET_BUILTIN_RECIPROCAL): Define as
2637 default_builtin_reciprocal.
2639 2007-06-16 Uros Bizjak <ubizjak@gmail.com>
2642 * hooks.c (hook_tree_tree_bool_null): New hook.
2643 * hooks.h (hook_tree_tree_bool_null): Add prototype.
2644 * tree-pass.h (pass_convert_to_rsqrt): Declare.
2645 * passes.c (init_optimization_passes): Add pass_convert_to_rsqrt.
2646 * tree-ssa-math-opts.c (execute_cse_reciprocals): Scan for a/func(b)
2647 and convert it to reciprocal a*rfunc(b).
2648 (execute_convert_to_rsqrt): New function.
2649 (gate_convert_to_rsqrt): New function.
2650 (pass_convert_to_rsqrt): New pass definition.
2651 * target.h (struct gcc_target): Add builtin_reciprocal.
2652 * target-def.h (TARGET_BUILTIN_RECIPROCAL): New define.
2653 (TARGET_INITIALIZER): Initialize builtin_reciprocal with
2654 TARGET_BUILTIN_RECIPROCAL.
2655 * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Document.
2657 * config/i386/i386.h (TARGET_RECIP): New define.
2658 * config/i386/i386.md (divsf3): Expand by calling ix86_emit_swdivsf
2659 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
2660 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
2661 and not optimizing for size.
2662 (*rcpsf2_sse): New insn pattern.
2663 (*rsqrtsf2_sse): Ditto.
2664 (rsqrtsf2): New expander. Expand by calling ix86_emit_swsqrtsf
2665 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
2666 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
2667 and not optimizing for size.
2668 (sqrt<mode>2): Expand SFmode operands by calling ix86_emit_swsqrtsf
2669 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
2670 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
2671 and not optimizing for size.
2672 * config/i386/sse.md (divv4sf): Expand by calling ix86_emit_swdivsf
2673 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
2674 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
2675 and not optimizing for size.
2676 (*sse_rsqrtv4sf2): Do not export.
2678 (sse_rsqrtv4sf2): New expander. Expand by calling ix86_emit_swsqrtsf
2679 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
2680 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
2681 and not optimizing for size.
2683 * config/i386/i386.opt (mrecip): New option.
2684 * config/i386/i386-protos.h (ix86_emit_swdivsf): Declare.
2685 (ix86_emit_swsqrtsf): Ditto.
2686 * config/i386/i386.c (IX86_BUILTIN_RSQRTF): New constant.
2687 (ix86_init_mmx_sse_builtins): __builtin_ia32_rsqrtf: New
2689 (ix86_expand_builtin): Expand IX86_BUILTIN_RSQRTF using
2690 ix86_expand_unop1_builtin.
2691 (ix86_emit_swdivsf): New function.
2692 (ix86_emit_swsqrtsf): Ditto.
2693 (ix86_builtin_reciprocal): New function.
2694 (TARGET_BUILTIN_RECIPROCAL): Use it.
2695 (ix86_vectorize_builtin_conversion): Rename from
2696 ix86_builtin_conversion.
2697 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Use renamed function.
2698 * doc/invoke.texi (Machine Dependent Options): Add -mrecip to
2699 "i386 and x86_64 Options" section.
2700 (Intel 386 and AMD x86_64 Options): Document -mrecip.
2702 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
2703 Zdenek Dvorak <dvorakz@suse.cz>
2704 Richard Guenther <rguenther@suse.de>
2705 Kaz Kojima <kkojima@gcc.gnu.org>
2707 * tree-vrp.c (compare_values_warnv): Convert val2 to
2709 (extract_range_from_assert): Create
2710 POINTER_PLUS_EXPR for pointer types.
2711 (extract_range_from_binary_expr): Handle
2712 only POINTER_PLUS_EXPR, MIN_EXPR, and MAX_EXPR
2714 * doc/c-tree.texi (POINTER_PLUS_EXPR): Document.
2715 * tree-ssa-loop-niter.c (split_to_var_and_offset): Handle
2716 POINTER_PLUS_EXPR as PLUS_EXPR.
2717 (number_of_iterations_lt_to_ne):
2718 For pointer types, use sizetype when
2719 creating MINUS_EXPR/PLUS_EXPRs.
2720 (assert_loop_rolls_lt): For pointer types, use sizetype when
2721 creating MINUS_EXPR/PLUS_EXPRs.
2722 (number_of_iterations_le): Likewise.
2723 (expand_simple_operations): POINTER_PLUS_EXPR are simple also.
2724 (derive_constant_upper_bound): Handle POINTER_PLUS_EXPR just
2725 like PLUS_EXPR and MINUS_EXPR.
2726 * tree-pretty-print.c (dump_generic_node): Handle
2728 (op_prio): Likewise.
2729 (op_symbol_1): Likewise.
2730 * optabs.c (optab_for_tree_code): Likewise.
2731 * tree-ssa-loop-manip.c (create_iv): Handle pointer base
2733 * tree-tailcall.c (process_assignment): Mention
2734 POINTER_PLUS_EXPR in a TODO comment.
2735 * tree.c (build2_stat): Assert when trying to use PLUS_EXPR or
2736 MINUS_EXPR with a pointer. Also assert for POINTER_PLUS_EXPR
2737 not used with a pointer and an integer type.
2738 * tree-scalar-evolution.c (add_to_evolution_1): Convert the
2739 increment using chrec_convert_rhs instead of chrec_convert.
2740 (follow_ssa_edge_in_rhs): Handle POINTER_PLUS_EXPR like
2741 PLUS_EXPR except for the right hand side's type will be
2743 (interpret_rhs_modify_stmt): Handle POINTER_PLUS_EXPR.
2744 (fold_used_pointer_cast): Kill.
2745 (pointer_offset_p): Kill.
2746 (fold_used_pointer): Kill.
2747 (pointer_used_p): Kill.
2748 (analyze_scalar_evolution_1 <case GIMPLE_MODIFY_STMT>): Don't
2749 call fold_used_pointer.
2750 (instantiate_parameters_1): Convert the increment
2751 using chrec_convert_rhs instead of chrec_convert.
2752 Handle POINTER_PLUS_EXPR as PLUS_EXPR.
2753 * builtins.c (get_pointer_alignment): Handle POINTER_PLUS_EXPR
2754 instead of PLUS_EXPR.
2755 (expand_builtin_strcat): Create a POINTER_PLUS_EXPR instead of
2756 PLUS_EXPR for pointers.
2757 (std_gimplify_va_arg_expr): Likewise.
2758 (fold_builtin_memory_op): Likewise.
2759 (fold_builtin_strstr): Likewise.
2760 (fold_builtin_strchr): Likewise.
2761 (fold_builtin_strrchr): Likewise.
2762 (fold_builtin_strpbrk): Likewise.
2763 (expand_builtin_memory_chk): Likewise.
2764 (fold_builtin_memory_chk): Likewise.
2765 (std_expand_builtin_va_start): Use
2766 sizetype for the call to make_tree and then convert
2767 to the pointer type.
2768 (fold_builtin_memchr): Use POINTER_PLUS_EXPR
2769 instead of PLUS_EXPR for adding to a pointer.
2770 (std_gimplify_va_arg_expr): Use fold_build2 for
2771 the creating of POINTER_PLUS_EXPR. For the BIT_AND_EXPR, cast
2772 the operands to sizetype first and then cast the BIT_AND_EXPR
2773 back to the pointer type.
2774 * fold-const.c (build_range_check): Handle pointer types
2776 (extract_array_ref): Look for POINTER_PLUS_EXPR instead
2777 of PLUS_EXPR's. Make sure the offset is converted to
2779 (try_move_mult_to_index): Strip the NOPs from the offset.
2780 Remove code argument and replace all uses with PLUS_EXPR.
2781 (fold_to_nonsharp_ineq_using_bound): Handle pointer types
2782 specially. Don't use a pointer type for MINUS_EXPR.
2783 (fold_unary): Handle for (T1)(X op Y),
2784 only p+ as that is the only as that can be handled for
2785 binary operators now.
2786 (fold_binary <case POINTER_PLUS_EXPR>): Add folding of
2788 <case PLUS_EXPR>: Add folding of PTR+INT into
2790 Don't call try_move_mult_to_index.
2791 <case MINUS_EXPR>: Fold (PTR0 p+ A) - (PTR1 p+ B)
2792 into (PTR0 - PTR1) + (A - B). Fold (PTR0 p+ A) - PTR1 into
2793 (PTR0 - PTR1) + A iff (PTR0 - PTR1) simplifies.
2794 Don't call try_move_mult_to_index.
2795 (tree_expr_nonnegative_warnv_p): Handle POINTER_PLUS_EXPR.
2796 (tree_expr_nonzero_p): Likewise.
2797 (fold_indirect_ref_1): Look at POINTER_PLUS_EXPR instead
2798 of PLUS_EXPR for the complex expression folding.
2799 * tree-chrec.c (chrec_fold_plus_poly_poly): If the
2800 first chrec is a pointer type, then the second should
2801 be sizetype and not the first's type.
2802 For POINTER_PLUS_EXPR, use a different right hand side type.
2803 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
2804 (chrec_fold_plus_1): For POINTER_PLUS_EXPR, use a
2805 different right hand side type.
2806 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
2807 (chrec_fold_plus): For pointer types, use POINTER_PLUS_EXPR
2808 instead of PLUS_EXPR.
2809 When either operand is zero, convert the other operand.
2810 (chrec_apply): Use chrec_convert_rhs
2811 on the argument x instead of chrec_convert.
2812 (reset_evolution_in_loop): For pointer types, the new_evol
2814 (convert_affine_scev): For POINTER_PLUS_EXPR, use a
2815 different right hand side type.
2816 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
2817 (chrec_convert_rhs): New function.
2818 (chrec_convert_aggressive): For POINTER_PLUS_EXPR, use a
2819 different right hand side type.
2820 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
2821 * tree-chrec.h (chrec_convert_rhs): New prototype.
2822 (build_polynomial_chrec): For pointer types, the right hand
2823 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Look for
2824 POINTER_PLUS_EXPR instead of PLUS_EXPR's.
2825 Remove subtraction case as it is always addition now.
2826 Make sure the offset is converted to sizetype.
2827 (fold_stmt_r): Don't handle PLUS_EXPR/MINUS_EXPR specially.
2828 Handle POINTER_PLUS_EXPR like PLUS_EXPR was handled before.
2829 * tree-ssa-loop-ivopts.c (determine_base_object): Abort for
2830 PLUS_EXPR in pointer type.
2831 Handle POINTER_PLUS_EXPR.
2832 (tree_to_aff_combination): Likewise.
2833 (force_expr_to_var_cost): Likewise.
2834 (force_expr_to_var_cost): Likewise. Create a POINTER_PLUS_EXPR
2835 instead of PLUS_EXPR for pointers.
2836 * c-format.c (check_format_arg): Handle POINTER_PLUS_EXPR
2837 instead of PLUS_EXPR of pointer types.
2838 * tree-stdarg.c (va_list_counter_bump): Handle POINTER_PLUS_EXPR
2840 (check_va_list_escapes): Likewise.
2841 (check_all_va_list_escapes): Likewise.
2842 * dwarf2out.c (loc_descriptor_from_tree_1):
2843 Handle POINT_PLUS_EXPR as a PLUS_EXPR.
2844 * expr.c (expand_expr_real_1): Handle POINTER_PLUS_EXPR.
2845 (string_constant): Likewise.
2846 * tree-ssa-address.c (tree_mem_ref_addr): When adding
2847 the offset to the base, use POINTER_PLUS_EXPR.
2848 (add_to_parts): Convert the index to sizetype.
2849 (create_mem_ref): Create A POINTER_PLUS_EXPR for the one case.
2850 * matrix-reorg.c (collect_data_for_malloc_call): Stmt
2851 will now only be either INDIRECT_REF and POINTER_PLUS_EXPR.
2852 Offset only holds something for PLUS_EXPR.
2853 (ssa_accessed_in_tree): Handle POINTER_PLUS_EXPR just as
2855 (analyze_transpose): POINTER_PLUS_EXPR will only show up now
2857 (analyze_accesses_for_modify_stmt): Likewise.
2858 Remove comment about the type being integral type as it is
2860 (can_calculate_expr_before_stmt): Handle POINTER_PLUS_EXPR as
2862 (transform_access_sites): POINTER_PLUS_EXPR will only show up now
2864 Correct the type which the artimentic is done in (is now
2867 * tree-data-ref.c (split_constant_offset): Handle
2869 * tree-affine.c (tree_to_aff_combination): Likewise.
2870 * c-typeck.c (build_unary_op): For pointers create the increment
2871 as a sizetype. Create a POINTER_PLUS_EXPR instead of PLUS_EXPR
2873 * gimplify.c (gimplify_self_mod_expr): Create a
2874 POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
2875 (gimplify_omp_atomic_fetch_op): Handle POINTER_PLUS_EXPR.
2876 * tree.def (POINTER_PLUS_EXPR): New tree code.
2877 * tree-predcom.c (ref_at_iteration): If we have a pointer
2878 type do the multiplication in sizetype.
2879 * tree-mudflap.c (mf_xform_derefs_1): Create a
2880 POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
2881 * tree-ssa-forwprop.c
2882 (forward_propagate_addr_into_variable_array_index):
2883 Don't expect there to be a cast for the index as that
2884 does not exist anymore.
2885 (forward_propagate_addr_expr_1): Check for POINTER_PLUS_EXPR
2886 instead of PLUS_EXPR.
2887 Don't check for the first operand of the POINTER_PLUS_EXPR
2888 was the index as it cannot be.
2889 Call forward_propagate_addr_into_variable_array_index with
2890 the SSA_NAME instead of the statement.
2891 * varasm.c (const_hash_1): Handle POINTER_PLUS_EXPR.
2892 (compare_constant): Likewise.
2893 (copy_constant): Likewise.
2894 (compute_reloc_for_constant): Likewise.
2895 (output_addressed_constants): Likewise.
2896 (initializer_constant_valid_p): Likewise.
2897 * tree-ssa.c (tree_ssa_useless_type_conversion_1):
2898 Convert the MIN/MAX of the inner type to the outer
2899 type before comparing them.
2900 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Handle
2901 POINTER_PLUS_EXPR instead of PLUS_EXPR.
2902 (issue_prefetch_ref): Create a POINTER_PLUS_EXPR instead
2903 of PLUS_EXPR for pointers.
2904 * tree-inline.c (estimate_num_insns_1): Handle
2906 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref):
2907 Create a POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
2908 (bump_vector_ptr): Create a POINTER_PLUS_EXPR
2909 instead of PLUS_EXPR for the pointer increment statement.
2910 (vect_update_ivs_after_vectorizer): For pointer types, create
2911 POINTER_PLUS_EXPR instead of PLUS_EXPR and also create
2912 MULT_EXPR in sizetype.
2913 (vect_gen_niters_for_prolog_loop): Add a cast when creating
2915 * tree-object-size.c (plus_expr_object_size): Handle
2916 POINTER_PLUS_EXPR instead of PLUS_EXPR. Removing all the extra
2917 code which is trying to figure out which side is a pointer and
2919 (check_for_plus_in_loops_1): Likewise.
2920 (check_for_plus_in_loops): Likewise.
2921 * c-common.c (pointer_int_sum): Create a
2922 POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
2923 * tree-ssa-structalias.c (handle_ptr_arith): Handle
2924 only POINTER_PLUS_EXPR. Removing all the extra
2925 code which is trying to figure out which side is a pointer and
2927 * tree-cfg.c (verify_expr): Add extra checking for pointers and
2928 PLUS_EXPR and MINUS_EXPR.
2929 Also add checking to make sure the operands of POINTER_PLUS_EXPR
2931 * config/frv/frv.c (frv_expand_builtin_va_start): Use sizetype
2932 with make_tree, instead of a pointer type.
2933 * config/s390/s390.c (s390_va_start): Use POINTER_PLUS_EXPR
2934 for pointers instead of PLUS_EXPR.
2935 (s390_gimplify_va_arg): Likewise.
2936 * config/spu/spu.c (spu_va_start): Create POINTER_PLUS_EXPR
2937 instead of PLUS_EXPR when doing addition on pointer
2938 types. Use sizetype for the second operand.
2939 (spu_gimplify_va_arg_expr): Likewise.
2940 * config/sparc/sparc.c (sparc_gimplify_va_arg): Use
2941 POINTER_PLUS_EXPR instead of PLUS_EXPR when the operand was
2942 a pointer. Don't create a BIT_AND_EXPR for pointer types.
2943 * config/i386/i386.c (ix86_va_start): Use POINTER_PLUS_EXPR
2944 for the pointer addition and also use size_int/sizetype
2946 (ix86_gimplify_va_arg): Likewise.
2947 Perform BIT_AND_EXPR on sizetype arguments.
2948 * config/sh/sh.c (sh_va_start): Call make_tree with sizetype
2949 and convert its result to a pointer type. Use POINTER_PLUS_EXPR
2950 for the pointer additions and also use size_int for the offsets.
2951 (sh_gimplify_va_arg_expr): Use POINTER_PLUS_EXPR for the pointer
2952 additions and also use size_int for the offsets. Perform
2953 BIT_AND_EXPR on sizetype arguments.
2954 * config/ia64/ia64.c (ia64_gimplify_va_arg): Use
2955 POINTER_PLUS_EXPR for pointers and create the
2956 BIT_AND_EXPR in sizetype.
2957 * config/rs6000/rs6000.c (rs6000_va_start): Use POINTER_PLUS_EXPR
2958 instead of PLUS_EXPR for pointer addition.
2959 (rs6000_va_start): Likewise.
2960 Also use sizetype for the offset.
2961 * config/pa/pa.c (reloc_needed): Handle POINTER_PLUS_EXPR
2962 as PLUS_EXPR/MINUS_EXPR.
2963 (hppa_gimplify_va_arg_expr): Don't create MINUS_EXPR or
2964 PLUS_EXPR for pointers, instead use POINTER_PLUS_EXPR.
2965 Don't use BIT_AND_EXPR on a pointer type, convert the
2966 expression to sizetype first.
2967 * config/mips/mips.c (mips_va_start): Use POINTER_PLUS_EXPR
2969 (mips_gimplify_va_arg_expr): Likewise.
2970 Don't create BIT_AND_EXPR in a pointer type.
2972 2007-06-15 Eric Christopher <echristo@apple.com>
2974 * config.gcc (i?86-*-darwin*): Add t-crtfm and t-crtpc.
2975 (x86_64-*-darwin*): Ditto.
2976 * config/i386/darwin.h (CRTEND_SPEC): New. Add support
2979 2007-06-15 Matthew Wilcox <matthew@wil.cx>
2981 * doc/extend.texi: Document behavior of __attribute__((aligned))
2984 2007-06-15 Mark Mitchell <mark@codesourcery.com>
2986 * rtlanal.c (note_stores): Improve documentation.
2988 2007-06-15 Bernd Schmidt <bernd.schmidt@analog.com>
2990 * config/bfin/elf.h (ASM_GENERATE_INTERNAL_LABEL,
2991 LOCAL_LABEL_PREFIX): Delete.
2992 * config/bfin/bfin.c (TARGET_ASM_INTERNAL_LABEL): Delete.
2993 (bfin_internal_label): Delete.
2995 2007-06-15 Uros Bizjak <ubizjak@gmail.com>
2997 * libgcc2.c (CEXT): When compiling L_multc3 and L_divtc3,
2998 define to "l" if LIBGCC_LONG_DOUBLE_SIZE == 128,
2999 otherwise define to LIBGCC2_TF_CEXT.
3000 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): New define.
3001 (LIBGCC_TF_CEXT): Ditto.
3004 2007-06-14 Seongbae Park <seongbae.park@gmail.com>
3006 PR rtl-optimization/32339
3007 * df-scan.c (df_uses_record): Don't modify flags but just add to
3008 it for df_ref_record.
3010 2007-06-14 Andrew Pinski <andrew_pinski@playstation.sony.com>
3012 * tree-mudflap.c: Fix whitespace issues.
3014 2007-06-15 Kazu Hirata <kazu@codesourcery.com>
3016 * config/m68k/m68k.c (ASM_DOT, ASM_DOTW, ASM_DOTL): Remove.
3018 2007-06-14 Eric Christopher <echristo@apple.com>
3020 * config/i386/sse.md (movdi_to_sse): Rewrite body.
3021 (movv4sf): Use gcc_unreachable instead of abort.
3023 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
3026 * config/i386/sfp-machine.h (CMPtype): New define.
3027 (mach stubs): Use CMPtype instead of int as a return type.
3029 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
3031 * config/soft-fp/eqdf2.c, config/soft-fp/eqsf2.c,
3032 config/soft-fp/eqtf2.c, config/soft-fp/gedf2.c,
3033 config/soft-fp/gesf2.c, config/soft-fp/getf2.c,
3034 config/soft-fp/ledf2.c, config/soft-fp/lesf2.c,
3035 config/soft-fp/letf2.c, config/soft-fp/unorddf2.c,
3036 config/soft-fp/unordsf2.c, config/soft-fp/unordtf2.c,
3037 config/soft-fp/soft-fp.h: Update from glibc CVS.
3039 2007-06-14 Bernd Schmidt <bernd.schmidt@analog.com>
3041 * config/bfin/uclinux.h (MFWRAP_SPEC): New.
3043 2007-06-14 Rask Ingemann Lambertsen <rask@sygehus.dk>
3046 * config/v850/v850.c: Include dataflow header file.
3047 (substitute_ep_register): Fix typo.
3049 2007-06-14 Paolo Bonzini <bonzini@gnu.org>
3051 * configure.ac: Fix earlier checkin.
3052 * configure: Regenerated.
3054 2007-06-14 Paolo Bonzini <bonzini@gnu.org>
3056 * acinclude.m4 (gcc_AC_CHECK_PROG_VER): Remove.
3057 * aclocal.m4: Regenerate.
3058 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS,
3059 ACX_PROG_CC_WARNINGS_ARE_ERRORS,
3060 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_CHECK_PROG_VER.
3061 * configure: Regenerate.
3062 * Makefile.in (LOOSE_WARN): Subst loose_warn.
3064 * Makefile.in (quickstrap): Build libgcc too.
3066 2007-06-14 Paolo Bonzini <bonzini@gnu.org>
3068 * configure.ac: Add --enable-checking=df. Explicitly mention that
3069 the variables are initialized as for "release".
3070 * df-core.c: Use it.
3071 * configure: Regenerate.
3072 * config.in: Regenerate.
3074 2007-06-14 Bob Wilson <bob.wilson@acm.org>
3076 * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use
3077 validate_replace_rtx instead of replace_rtx.
3078 (xtensa_expand_prologue): Call df_insn_rescan after replace_rtx.
3080 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
3082 * config/i386/cygming.h (DWARF_FRAME_REGNUM): Define.
3083 (DWARF2_UNWIND_INFO): Override default if configured with
3085 * config/i386/cygwin.h (STARTFILE_SPEC): Add crtbegin.o.
3086 (ENDFILE_SPEC): Add crtend.o.
3087 * config/i386/mingw32.h (STARTFILE_SEC): Add crtbegin.o.
3088 (ENDFILE_SPEC): Add crtend.o.
3089 (TARGET_USE_JCR_SECTION): Define.
3090 (MD_UNWIND_SUPPORT): Define for 32-bit target.
3092 * config/i386/cygming-crtbegin.c: New file.
3093 * config/i386/cygming-crtend.c: New file.
3095 2007-06-14 Pascal Obry Pascal Obry <obry@adacore.com>
3097 * config/i386/w32-unwind.h: New file.
3099 2007-06-13 Eric Christopher <echristo@apple.com>
3101 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Don't let
3102 the user set a value below STACK_BOUNDARY.
3104 2007-06-13 Thiemo Seufer <ths@networkno.de>
3106 * config/mips/linux.h, config/mips/linux64.h (LIB_SPEC): Always
3107 imply -lpthread for -pthread.
3109 2007-06-13 Kazu Hirata <kazu@codesourcery.com>
3111 * basic-block.h: Remove the prototype for
3112 free_basic_block_vars.
3113 * cfglayout.h: Remove the prototype for
3114 insn_locators_initialize.
3115 * tree.h: Remove the prototype for emit_line_note.
3117 * tree-ssa-pre.c (mergephitemp): Remove.
3118 (init_pre): Don't use mergephitemp.
3120 2007-06-13 Eric Christopher <echristo@apple.com>
3122 * config/i386/i386.c (override_options): If we've specified
3123 an arch then don't use TARGET_SUBTARGET_ISA_DEFAULTs.
3125 2007-06-13 Bob Wilson <bob.wilson@acm.org>
3127 * df-scan.c (df_get_entry_block_def_set): Check if STATIC_CHAIN_REGNUM
3130 2007-06-13 Bernd Schmidt <bernd.schmidt@analog.com>
3132 * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Use gen_frame_mem.
3133 * config/bfin/bfin.md (UNSPEC_VOLATILE_STORE_EH_HANDLER): New constant.
3134 (eh_store_handler): New pattern.
3135 (eh_return): Emit it instead of a plain move.
3137 2007-06-13 Uros Bizjak <ubizjak@gmail.com>
3139 * config/i386/i386.c (ix86_init_mmx_sse_builtins)
3140 [__builtin_infq, __builtin_fabsq]: Define usign def_builtin.
3141 [__builtin_ia32_rsqrtps, __builtin_ia32_rsqrtss]: Define using
3144 2007-06-13 Bernd Schmidt <bernd.schmidt@analog.com>
3146 * config/bfin/bfin.c (gen_one_bundle): Delete unused local variables.
3147 (find_next_insn_start, find_load): New functions.
3148 (bfin_reorg): Use them to deal with the fact that parallel insns are
3149 no longer represented as a SEQUENCE.
3151 2007-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
3153 * config/sparc/sparc.c (sparc_override_options): Initialize
3156 2007-06-13 Dave Korn <dave.korn@artimi.com>
3158 * config/i386/i386.c (ix86_eax_live_at_start_p): Use
3161 2007-06-13 Kazu Hirata <kazu@codesourcery.com>
3163 * auto-inc-dec.c, c-incpath.c, config/c4x/libgcc.S,
3164 config/sh/divcost-analysis, dbgcnt.def, df-core.c,
3165 df-problems.c, df-scan.c, df.h, dominance.c, dse.c, regstat.c,
3166 tree-data-ref.c, tree-ssa-loop-im.c, tree-ssa-loop-prefetch.c,
3167 tree-vect-transform.c: Fix comment typos. Follow spelling
3170 2007-06-12 Seongbae Park <seongbae.park@gmail.com>
3172 * df-scan.c (df_get_exit-block_use_set): Always add the stack pointer
3173 to the exit block use set.
3174 (df_insn_delete, df_insn_rescan): Fixed spelling of "deferring".
3175 * gcse.c (cpro_jump): Don't emit barrier in cfglayout mode.
3176 * config/sparc/sparc.c (sparc_check_64): Check df != NULL.
3178 2007-06-12 Seongbae Park <seongbae.park@gmail.com>
3180 * opts.c (common_handle_option): Handle new option -fdbg-cnt-list.
3181 * dbgcnt.c (dbg_cnt_set_limit_by_name): Return value
3182 to indicate an error.
3183 (dbg_cnt_process_single_pair, dbg_cnt_list_all_counters):
3185 (dbg_cnt_process_opt): Print an error on a bad argument.
3186 * dbgcnt.h (dbg_cnt_list_all_counters): New function declaration.
3187 * common.opt (-fdbg-cnt-list): New.
3188 * doc/invoke.texi (-fdbg-cnt-list,-fdbg-cnt=): New.
3190 2007-06-12 Eric Botcazou <ebotcazou@adacore.com>
3192 * tree-ssa-alias.c (finalize_ref_all_pointers): Clear pt_anything
3193 flag on ref-all pointers.
3195 2007-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
3198 * expr.c (expand_expr_addr_expr_1): Call expand_expr
3199 for the offset with the modifier as EXPAND_INITIALIZER
3200 if the modifier is EXPAND_INITIALIZER.
3201 (expand_expr_real_1 <case INTEGER_CST>): Don't force to
3202 a register if we had an overflow.
3204 2007-06-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3206 * real.c (real_isfinite): New.
3207 (real_sqrt): Use it.
3208 * real.h (real_isfinite): New.
3209 * builtins.c: Use it.
3211 2007-06-12 Ian Lance Taylor <iant@google.com>
3212 Daniel Berlin <dberlin@dberlin.org>
3215 * tree.def: Add CHANGE_DYNAMIC_TYPE_EXPR.
3216 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Define.
3217 (CHANGE_DYNAMIC_TYPE_LOCATION): Define.
3218 (DECL_NO_TBAA_P): Define.
3219 (struct tree_decl_common): Add no_tbaa_flag field.
3220 * tree-ssa-structalias.c (struct variable_info): Add
3221 no_tbaa_pruning field.
3222 (new_var_info): Initialize no_tbaa_pruning field.
3223 (unify_nodes): Copy no_tbaa_pruning field.
3224 (find_func_aliases): Handle CHANGE_DYNAMIC_TYPE_EXPR.
3225 (dump_solution_for_var): Print no_tbaa_pruning flag.
3226 (set_uids_in_ptset): Add no_tbaa_pruning parameter. Change all
3228 (compute_tbaa_pruning): New static function.
3229 (compute_points_to_sets): Remove CHANGE_DYNAMIC_TYPE_EXPR nodes.
3230 Call compute_tbaa_pruning.
3231 * tree-ssa-alias.c (may_alias_p): Test no_tbaa_flag for pointers.
3232 * gimplify.c (gimplify_expr): Handle CHANGE_DYNAMIC_TYPE_EXPR.
3233 * gimple-low.c (lower_stmt): Likewise.
3234 * tree-gimple.c (is_gimple_stmt): Likewise.
3235 * tree-ssa-operands.c (get_expr_operands): Likewise.
3236 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
3237 * tree-inline.c (estimate_num_insns_1): Likewise.
3238 (copy_result_decl_to_var): Likewise.
3239 * expr.c (expand_expr_real_1): Likewise.
3240 * tree-pretty-print.c (dump_generic_node): Likewise.
3241 * tree-inline.c (copy_decl_to_var): Copy DECL_NO_TBAA_P flag.
3242 * omp-low.c (omp_copy_decl_2): Likewise.
3243 * print-tree.c (print_node): Print DECL_NO_TBAA_P flag.
3244 * doc/c-tree.texi (Expression trees): Document
3245 CHANGE_DYNAMIC_TYPE_EXPR.
3247 2007-06-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3249 * fold-const.c (fold_binary): Guard (X-X) -> 0 transformation
3250 with !HONOR_NANS and !HONOR_INFINITIES.
3251 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3253 2007-06-12 Tristan Gingold <gingold@adacore.com>
3255 * gcov.c: Comments updated.
3256 (source_info): Add file_time field.
3257 (source_index): New variable.
3258 (mutiple_files): New variable.
3259 (generate_results): New function extracted from process_file.
3260 (process_file): Save and restore chain of functions, generate
3261 results and free structures only if not merging results.
3262 (release_structures): File names are now freed in create_file_names
3263 (create_file_names): Free previous file names.
3264 (find_source): File date is now read here and modifications in
3265 source files is checked here.
3266 (read_graph_file): Only reverse order of functions for the current
3268 (make_gcov_file_name): Do not generate long names if input_name is
3270 (output_lines): If merging results do not display graph, data and
3272 Checking source file modification is done in find_source.
3274 * doc/gcov.texi: Append an s to sourcefile.
3276 2007-06-12 Bernd Schmidt <bernd.schmidt@analog.com>
3278 * config/bfin/bfin.md (UNSPEC_NOP): New constant.
3279 (forced_nop): New pattern.
3280 * config/bfin/bfin.c: Include "df.h".
3281 (add_to_reg): Use df_regs_ever_live_p instead of regs_ever_live.
3282 (bfin_discover_loop): Use df_get_live_in instead of
3283 global_live_at_start.
3284 (bfin_reorder_loops): Pass 0 to cfg_layout_initialize. Call
3285 df_analyze when done.
3286 (gen_one_bundle): Don't generate SEQUENCE insns, just put modes on
3287 the insns. Use QImode for the final insn in a bundle. Call
3288 df_insn_rescan on generated NOPs; use gen_forced_nop instead of
3290 (reorder_var_tracking_notes): New function.
3291 (bfin_reorg): Pass no argument to split_all_insns. Don't call
3292 update_life_info. Call df_analyze after scheduling and bundle
3293 generation. Call reorder_var_tracking_notes if generating these
3294 notes. Call df_finish_pass at the end.
3296 2007-06-12 Dirk Mueller <dmueller@suse.de>
3298 * optabs.c (debug_optab_libfuncs): fix gcc_assert to
3299 a comparison, not an assignment.
3301 2007-06-12 Olivier Hainque <hainque@adacore.com>
3303 * tree-nested.c (convert_local_reference): Handle VIEW_CONVERT_EXPR.
3304 Request walking the subtrees only, leaving the current is_lhs/val_only
3306 (convert_non_local_reference): Likewise.
3308 2007-06-12 Nathan Sidwell <nathan@codesourcery.com>
3310 * config/m68k/m68k-devices.def (52221, 52223, 5253): New.
3312 2007-06-12 Richard Guenther <rguenther@suse.de>
3314 PR tree-optimization/15353
3315 PR tree-optimization/31657
3316 * passes.c (init_optimization_passes): Add pass_tree_ifcombine.
3317 * timevar.def: Add TV_TREE_IFCOMBINE.
3318 * tree-pass.h (pass_tree_ifcombine): Declare.
3319 * tree-ssa-ifcombine.c: New file.
3320 * tree-ssa-phiopt.c (blocks_in_phiopt_order): Export.
3321 * tree-flow.h (blocks_in_phiopt_order): Declare.
3322 * Makefile.in (OBJS-common): Add tree-ssa-ifcombine.o.
3323 (tree-ssa-ifcombine.o): New dependencies.
3325 2007-06-12 Uros Bizjak <ubizjak@gmail.com>
3327 PR rtl-optimization/32293
3328 * combine.c (simplify_if_then_else): Truncate return from
3329 nonzero_bits() to correct mode.
3331 2007-06-12 Uros Bizjak <ubizjak@gmail.com>
3333 * fold-const (fold_binary) [RDIV_EXPR]: Also optimize a/cbrt(b/c)
3334 into a*cbrt(c/b) if flag_unsafe_math_optimizations is set.
3336 2007-06-11 Diego Novillo <dnovillo@google.com>
3338 * Makefile.in (reload1.o-warn): Remove.
3340 2007-06-11 Seongbae Park <seongbae.park@gmail.com>
3342 * combine.c (subst): Use reg_overlap_mentioned_p
3343 instead of comparing register numbers directly.
3345 2007-06-11 Kenneth Zadeck <zadeck@naturalbridge.com>
3347 * reload1.c (mark_home_live_1): Use the mode parameter.
3349 2007-06-11 Kenneth Zadeck <zadeck@naturalbridge.com>
3351 * df-scan.c (df_insn_delete, df_insn_rescan, df_insn_rescan_all,
3352 df_process_deferred_rescans, df_notes_rescan): Fixed spelling of
3356 2007-06-11 Daniel Berlin <dberlin@dberlin.org>
3358 * Merge dataflow-branch into mainline (see ChangeLog.dataflow)
3360 2007-06-11 Uros Bizjak <ubizjak@gmail.com>
3362 * config/i386/i386.md ("*movtf_internal): Penalize moves to and
3363 from integer registers.
3364 (FP mode splitters): Handle TFmode.
3366 2007-06-11 Eric Botcazou <ebotcazou@adacore.com>
3368 * tree-ssa-structalias.c (find_what_p_points_to): Return false
3369 for ref-all pointers that point-to anything.
3371 2007-06-11 Joseph Myers <joseph@codesourcery.com>
3373 * config/arm/arm.c (arm_output_dwarf_dtprel,
3374 TARGET_ASM_OUTPUT_DWARF_DTPREL): New.
3376 2007-06-11 Bernd Schmidt <bernd.schmidt@analog.com>
3378 * config/bfin/bfin.md (movdi_insn, movsi_insn, movv2hi_insn,
3379 movhi_insn, movqi_insn, movsf_insn, movdf_insn): Don't allow constant
3382 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
3384 * gcc/tree.c (signed_or_unsigned_type_for): New.
3385 (unsigned_type_for): Use signed_or_unsigned_type_for.
3386 (signed_type_for): Use signed_or_unsigned_type_for.
3387 * gcc/tree.h (signed_or_unsigned_type_for): New.
3388 (get_signed_or_unsigned_type): Remove.
3389 * gcc/fold-const.c (fold_negate_expr): Use signed_type_for instead of
3390 lang_hooks.types.signed_type
3391 (size_diffop): Likewise.
3392 (all_ones_mask_p): Likewise.
3393 (build_range_check): Likewise.
3394 (fold_cond_expr_with_comparison): Likewise.
3395 (fold_cond_expr_with_comparison): Likewise.
3396 (unextend): Likewise.
3397 (extract_muldiv_1): Likewise.
3398 (fold_single_bit_test_into_sign_test): Likewise.
3399 (fold_binary): Likewise.
3400 (fold_ternary): Likewise.
3401 (operand_equal_for_comparison_p): Use signed_or_unsigned_type_for
3402 instead of get_signed_or_unsigned_type.
3403 * gcc/c-objc-common.h (LANG_HOOKS_SIGNED_TYPE): Remove.
3404 (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
3405 * gcc/expr.c (signed_or_unsigned_type_for): Use
3406 signed_or_unsigned_type_for instead of get_signed_or_unsigned_type.
3407 * gcc/langhooks.c (get_signed_or_unsigned_type): Remove.
3408 (lhd_signed_or_unsigned_type): Remove.
3409 * gcc/langhooks.h (lang_hooks_for_types): Remove signed_type and
3410 signed_or_unsigned_type.
3411 (lhd_signed_or_unsigned_type): Remove.
3412 * gcc/expmed.c (make_tree): Use signed_type_for instead of
3413 lang_hooks.types.signed_type.
3414 * gcc/c-common.c (same_scalar_type_ignoring_signedness): Use
3415 c_common_signed_type instead of lang_hooks.types.signed_type.
3416 (c_common_unsigned_type): New.
3417 (c_common_signed_type): Just call c_common_signed_or_unsigned_type.
3418 (shorten_compare): Use c_common_unsigned_type instead of
3419 c_common_signed_or_unsigned_type.
3420 (c_common_nodes_and_builtins): Use c_common_unsigned_type instead of
3422 * gcc/convert.c (convert_to_integer): Use signed_type_for instead of
3423 lang_hooks.types.signed_type.
3424 * gcc/langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
3425 (LANG_HOOK_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_SIGNED_TYPE and
3426 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE.
3427 * gcc/c-format.c (check_format_types): Use c_common_unsigned_type
3428 instead of unsigned_type_for.
3429 * gcc/c-decl.c (groakdeclarator): Likewise.
3430 * gcc/c-typeck.c (convert_for_assignment): Likewise.
3431 * gcc/c-common.h (c_common_unsigned_type): New.
3433 2007-06-11 Uros Bizjak <ubizjak@gmail.com>
3436 * config/i386/sse.md ("sse2_ashlti", "sse2_lshrti3"): Move ...
3437 * config/i386/i386.md ("sse2_ashlti", "sse2_lshrti3"): ... to here.
3439 2007-06-11 Uros Bizjak <ubizjak@gmail.com>
3442 * fold-const (fold_binary) [RDIV_EXPR]: Optimize a/sqrt(b/c)
3443 into a*sqrt(c/b) if flag_unsafe_math_optimizations is set.
3445 2007-06-10 Jan Sjodin <jan.sjodin@amd.com>
3446 Sebastian Pop <sebpop@gmail.com>
3448 * lambda-code.c (remove_iv): New.
3449 (lambda_loopnest_to_gcc_loopnest): Use remove_iv.
3451 2007-06-10 Zdenek Dvorak <dvorakz@suse.cz>
3453 * tree-data-ref.c (dr_analyze_alias): Handle case smt is NULL.
3454 * tree-predcom.c (mark_virtual_ops_for_renaming): Exported.
3455 * tree-ssa-loop-prefetch.c: Include optabs.h.
3456 (FENCE_FOLLOWING_MOVNT): New macro.
3457 (struct mem_ref): Add independent_p and storent_p fields.
3458 (record_ref): Initalize the new fields.
3459 (gather_memory_references_ref): Return true if the reference
3461 (gather_memory_references): Check whether all memory accesses
3462 in loop were recorded.
3463 (should_issue_prefetch_p): Return false for nontemporal stores.
3464 (nontemporal_store_p, mark_nontemporal_store, emit_mfence_after_loop,
3465 may_use_storent_in_loop_p, mark_nontemporal_stores): New functions.
3466 (determine_loop_nest_reuse): Detect independent memory references.
3467 (loop_prefetch_arrays): Call mark_nontemporal_stores.
3468 * tree-flow.h (mark_virtual_ops_for_renaming): Declare.
3469 * Makefile.in (tree-ssa-loop-prefetch.o): Add OPTABS_H dependency.
3470 * config/i386/i386.h (x86_mfence): Declare.
3471 (FENCE_FOLLOWING_MOVNT): Return x86_mfence.
3472 * config/i386/i386.c (x86_mfence): New variable.
3473 (ix86_init_mmx_sse_builtins): Initialize x86_mfence.
3475 * tree-pretty-print.c (dump_generic_node): Mark nontemporal stores.
3476 * optabs.c (init_optabs): Initialize storent_optab.
3477 * optabs.h (enum optab_index): Add OTI_storent.
3478 (storent_optab): Declare.
3479 * genopinit.c (optabs): Add initialization for storent_optab.
3480 * tree.h (MOVE_NONTEMPORAL): New macro.
3481 * expr.c (expand_assignment, store_expr, store_constructor_field,
3482 store_constructor, store_field, expand_expr_real_1): Propagate
3483 nontemporality of the expanded store.
3484 (emit_storent_insn): New function.
3485 * expr.h (expand_assignment, store_expr): Declaration changed.
3486 * function.c (assign_parm_setup_reg): Pass false as nontemporality
3487 to expand_assignment.
3488 * stmt.c (expand_asm_expr): Ditto.
3489 * calls.c (initialize_argument_information): Pass false as
3490 nontemporality to store_expr.
3491 * config/i386/sse.md (storentv4sf, storentv2df, storentv2di,
3494 2007-06-09 Daniel Berlin <dberlin@dberlin.org>
3496 * tree-ssa-structalias.c (set_uids_in_ptset): Add is_deref'd
3498 (find_what_p_points_to): Pass new parameter to set_uids_in_ptset.
3500 2007-06-09 Daniel Berlin <dberlin@dberlin.org>
3502 * tree-data-ref.c (dr_may_alias_p): Check that decl_a != decl_b,
3503 and allow DECL_P here.
3505 2007-06-09 Zdenek Dvorak <dvorakz@suse.cz>
3507 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs,
3508 follow_ssa_edge_in_condition_phi, follow_ssa_edge): Keep more precise
3509 track of the size of the expression.
3510 * cfghooks.c (merge_blocks): Remove block from loops structure only
3511 after call of the merge_blocks hook.
3513 2007-06-09 Tom Tromey <tromey@redhat.com>
3515 * c-decl.c (grokdeclarator): Added 'deprecated_state' argument.
3516 (deprecated_state): Removed.
3517 (start_decl): Update.
3518 (enum deprecated_states): Moved earlier.
3519 (groktypename): Update.
3520 (push_parm_decl): Likewise.
3521 (grokfield): Likewise.
3522 (start_function): Likewise.
3524 2007-06-09 Ian Lance Taylor <iant@google.com>
3526 PR tree-optimization/32169
3527 * tree-vrp.c (extract_range_from_unary_expr): For NOP_EXPR and
3528 CONVERT_EXPR, check whether min and max both converted to an
3529 overflow infinity representation.
3531 2007-06-08 Eric Botcazou <ebotcazou@adacore.com>
3533 * reload1.c (fixup_abnormal_edges): Clear bb field for insns
3534 not inserted on the edge.
3536 2007-06-08 Bob Wilson <bob.wilson@acm.org>
3538 * config/xtensa/lib1funcs.asm (__udivsi3): Use hardware divide
3539 instructions if they are supported.
3540 (__divsi3, __umodsi3, __modsi3): Likewise.
3541 (__ashldi3, __ashrdi3, __lshrdi3): New.
3542 * config/xtensa/t-xtensa (LIB1ASMFUNCS): Add DImode shift functions.
3544 2007-06-08 Harsha Jagasia <harsha.jagasia@amd.com>
3545 Tony Linthicum <tony.linthicum@amd.com>
3547 * doc/invoke.texi: Add fvect-cost-model flag.
3548 * common.opt (fvect-cost-model): New flag.
3549 * tree-vectorizer.c (new_stmt_vec_info): Initialize inside and outside
3550 cost fields in stmt_vec_info struct for STMT.
3551 * tree-vectorizer.h (stmt_vec_info): Define inside and outside cost
3552 fields in stmt_vec_info struct and access functions for the same.
3553 (TARG_COND_BRANCH_COST): Define cost of conditional branch.
3554 (TARG_VEC_STMT_COST): Define cost of any vector operation, excluding
3555 load, store and vector to scalar operation.
3556 (TARG_VEC_TO_SCALAR_COST): Define cost of vector to scalar operation.
3557 (TARG_VEC_LOAD_COST): Define cost of aligned vector load.
3558 (TARG_VEC_UNALIGNED_LOAD_COST): Define cost of misasligned vector load.
3559 (TARG_VEC_STORE_COST): Define cost of vector store.
3560 (vect_estimate_min_profitable_iters): Define new function.
3561 * tree-vect-analyze.c (vect_analyze_operations): Add a compile-time
3562 check to evaluate if loop iterations are less than minimum profitable
3563 iterations determined by cost model or minimum vect loop bound defined
3564 by user, whichever is more conservative.
3565 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Add a
3566 run-time check to evaluate if loop iterations are less than minimum
3567 profitable iterations determined by cost model or minimum vect loop
3568 bound defined by user, whichever is more conservative.
3569 (vect_estimate_min_profitable_iterations): New function to estimate
3570 mimimimum iterartions required for vector version of loop to be
3571 profitable over scalar version.
3572 (vect_model_reduction_cost): New function.
3573 (vect_model_induction_cost): New function.
3574 (vect_model_simple_cost): New function.
3575 (vect_cost_strided_group_size): New function.
3576 (vect_model_store_cost): New function.
3577 (vect_model_load_cost): New function.
3578 (vectorizable_reduction): Call vect_model_reduction_cost during
3580 (vectorizable_induction): Call vect_model_induction_cost during
3582 (vectorizable_load): Call vect_model_load_cost during analysis phase.
3583 (vectorizable_store): Call vect_model_store_cost during analysis phase.
3584 (vectorizable_call, vectorizable_assignment, vectorizable_operation,
3585 vectorizable_promotion, vectorizable_demotion): Call
3586 vect_model_simple_cost during analysis phase.
3588 2007-06-08 Simon Baldwin <simonb@google.com>
3590 * reg-stack.c (get_true_reg): Readability change. Moved default case
3591 label into direct switch statement scope.
3593 2007-06-08 Simon Baldwin <simonb@google.com>
3595 * tree-flow-inline.h (var_ann): Replaced erroneous '=' assignment
3596 in gcc_assert() with '==' comparison.
3598 2007-06-08 Uros Bizjak <ubizjak@gmail.com>
3600 * config/i386/i386.c (override_options): Merge TARGET_SSE4_2 and
3601 TARGET_ABM handling of x86_popcnt variable.
3603 2007-06-08 Uros Bizjak <ubizjak@gmail.com>
3605 * doc/extend.texi (X86 Built-in Functions): Document __builtin_fabsq,
3606 __builtin_copysignq and __builtin_infq built-in functions.
3608 2007-06-08 Uros Bizjak <ubizjak@gmail.com>
3610 * doc/extend.texi (X86 Built-in Functions): Add missing `@item's in
3611 SSE4.2 section. Correct built-in function names in SSE4A section.
3613 2007-06-08 Uros Bizjak <ubizjak@gmail.com>
3615 PR tree-optimization/32243
3616 * tree-vect-transform.c (vectorizable_type_promotion): Move check
3617 for ncopies after ratio check between nunits_out and nunits_in.
3618 (vectorizable_type_demotion): Remove single-use variable "scalar_type".
3620 2007-06-08 Dorit Nuzman <dorit@il.ibm.com>
3622 PR tree-optimization/32224
3623 * tree-vect-analyze.c (vect_determine_vectorization_factor): Fail
3624 vectorization upon a non GIMPLE_MODIFY_STMT.
3626 2007-06-08 Christian Bruel <christian.bruel@st.com>
3629 * config/sh/sh.md (doloop_end): New pattern and splitter.
3630 * loop-iv.c (simple_rhs_p): Check for hardware registers.
3632 2007-06-08 Zdenek Dvorak <dvorakz@suse.cz>
3635 * dominance.c (debug_dominance_tree, debug_dominance_tree_1): New
3637 (verify_dominators): Do not change dominance tree.
3639 2007-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
3641 * config/sh/constraints.md: New file.
3642 * config/sh/sh.c: Include tm-constrs.h.
3643 (reg_class_from_letter): Remove.
3644 (prepare_cbranch_operands): Use satisfies_constraint_*
3645 function instead of macro.
3646 (andcosts, broken_move, sh_secondary_reload): Likewise.
3647 * config/sh/predicates.md (trapping_target_operand): Likewise.
3648 (and_operand, arith_operand, arith_reg_or_0_operand,
3649 cmp_operand, logical_operand, target_operand,
3650 ua_address_operand, ua_offset, xor_operand): Likewise.
3651 * config/sh/sh.md: Include constraints.md.
3652 (*movsicc_t_false): Use satisfies_constraint_* function
3654 (*movsicc_t_true, ashlsi3_std, ashlhi3_k, lshrsi3_m,
3655 lshrsi3_k, movsi_const_16bit+2, *movhi_media+1,
3656 movdi_const_16bit+1, beq, bne, *ptb): Likewise.
3657 * config/sh/sh.h (reg_class_from_letter): Remove prototype.
3658 (OVERRIDE_OPTIONS): Don't modify reg_class_from_letter.
3659 (REG_CLASS_FROM_CONSTRAINT): Remove.
3660 (CONSTRAINT_LEN, CONST_OK_FOR_I20, CONST_OK_FOR_I,
3661 CONST_OK_FOR_J, CONST_OK_FOR_K16, CONST_OK_FOR_K,
3662 CONST_OK_FOR_P27, CONST_OK_FOR_P, CONST_OK_FOR_M,
3663 CONST_OK_FOR_N, CONST_OK_FOR_CONSTRAINT_P,
3664 CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
3665 (SECONDARY_INOUT_RELOAD_CLASS): Use satisfies_constraint_*
3666 function instead of macro.
3667 (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
3668 (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_A,
3669 EXTRA_CONSTRAINT_Bsc, EXTRA_CONSTRAINT_B,
3670 EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Remove.
3671 (IS_PC_RELATIVE_LOAD_ADDR_P): New macro.
3672 (IS_LITERAL_OR_SYMBOLIC_S16_P): Likewise.
3673 (IS_LITERAL_OR_SYMBOLIC_U16_P): Likewise.
3674 (IS_NON_EXPLICIT_CONSTANT_P): Likewise.
3675 (EXTRA_CONSTRAINT_Csy, EXTRA_CONSTRAINT_Z, EXTRA_CONSTRAINT_W,
3676 EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C,
3677 EXTRA_MEMORY_CONSTRAINT, EXTRA_CONSTRAINT_Sr0,
3678 EXTRA_CONSTRAINT_Sua, EXTRA_CONSTRAINT_S,
3679 EXTRA_CONSTRAINT_STR): Likewise.
3680 (GO_IF_LEGITIMATE_INDEX): Fix indentation.
3682 2007-06-07 Geoffrey Keating <geoffk@apple.com>
3684 * config/i386/darwin.h (STACK_BOUNDARY): Define.
3686 2007-06-07 Simon Martin <simartin@users.sourceforge.net>
3689 * c-common.h (flag_cpp0x): Replaced by...
3690 (cxx_dialect): ... this new variable specifying the C++ dialect that
3692 * c-common.c (flag_cpp0x): Removed.
3693 (cxx_dialect): Defined.
3694 * c-cppbuiltin.c (c_cpp_builtins): flag_cpp0x rewritten in terms of
3696 * c-opts.c (c_common_post_options): Likewise.
3697 (set_std_cxx98): Set cxx_dialect to cxx98.
3698 (set_std_cxx0x): Set cxx_dialect to cxx0x.
3700 2007-06-07 Geoffrey Keating <geoffk@apple.com>
3701 Hui-May Chang <hm.chang@apple.com>
3703 * doc/invoke.texi (Darwin Options): Update documentation for
3704 -mmacosx-version-min.
3705 * config.gcc (*-*-darwin*): Set extra_gcc_objs.
3706 * config/darwin-driver.c: New file.
3707 * config/darwin.h (GCC_DRIVER_HOST_INITIALIZATION): New.
3708 * config/t-darwin (darwin-driver.o): New rule.
3710 * config/darwin-c.c (version_as_macro): Ignore low digit.
3712 2007-06-07 Uros Bizjak <ubizjak@gmail.com>
3714 * config/i386/i386.md (standard sse constant splitter): Handle TFmode.
3715 (negtf2, abstf2, *absnegtf2_sse): New insn patterns.
3716 (CSGNMODE): New mode macro.
3717 (CSGNVMODE): New mode attribute.
3718 (copysign<mode>3): Rename from copysingsf3 and copysigndf3. Macroize
3719 expander using CSGNMODE mode macro. Handle TFmode.
3720 (copysign<mode>3_const): Rename from copysignsf3_const and
3721 copysigndf3_const. Macroize pattern using CSGNMODE mode macro.
3723 (copysign<mode>3_var): Rename from copysignsf3_var and
3724 copysigndf3_var. Macroize pattern using CSGNMODE mode macro.
3726 (copysign<mode>3_var splitter): Macroize pattern using CSGNMODE
3727 mode macro. Handle TFmode.
3728 * config/i386/sse.md (andtf3, *andtf3, *nandtf3): New insn patterns.
3729 (iortf3, *iortf3): Ditto.
3730 (xortf3, *xortf3): Ditto.
3731 * config/i386/i386.c (ix86_build_signbit_mask): Create scalar
3732 TFmode and TImode masks.
3733 (ix86_expand_copysign): Expand TFmode copysign insn.
3734 (IX86_BUILTIN_INFQ): New.
3735 (IX86_BUILTIN_FABSQ): Ditto.
3736 (IX86_BUILTIN_COPYSIGNQ): Ditto.
3737 (ix86_init_mmx_sse_builtins) [__builtin_infq]: New builtin definition.
3738 [__builtin_fabsq]: Ditto.
3739 [__builtin_copysignq]: Ditto.
3740 (ix86_expand_builtin) [IX86_BUILTIN_INFQ]: Expand builtin.
3741 [IX86_BUILTIN_FABSQ]: Expand builtin using ix86_expand_unop_builtin().
3742 [IX86_BUILTIN_COPYSIGNQ]: Expand builtin using
3743 ix86_expand_binop_builtin().
3745 2007-06-07 Bob Wilson <bob.wilson@acm.org>
3747 * config/xtensa/lib1funcs.asm: Clean up whitespace.
3749 2007-06-07 Steve Ellcey <sje@cup.hp.com>
3752 * rtl.h (push_to_sequence2): New.
3753 * emit-rtl.c (push_to_sequence2): New.
3754 * function.c (assign_parm_data_all): Add new fields.
3755 (assign_parm_setup_block): Call push_to_sequence2 instead of
3757 (assign_parm_setup_reg): Ditto.
3758 (assign_parm_setup_stack): Ditto.
3759 (assign_parms_unsplit_complex): Ditto.
3760 (assign_parms): Change field name.
3762 2007-06-07 Zdenek Dvorak <dvorakz@suse.cz>
3764 PR tree-optimization/32220
3765 * tree-predcom.c (eliminate_temp_copies): Handle the case that loop
3766 phi node is reached before defining statement.
3768 2007-06-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
3771 * tree-vect-transform.c (vectorizable_call): Call update_stmt
3772 after changing the right hand side of the assignment.
3774 2007-06-06 Eric Christopher <echristo@apple.com>
3776 * config.gcc (i?86-*-darwin*): Remove arch parameter.
3777 (x86_64-*-darwin*): Ditto.
3778 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Define.
3779 (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
3781 2007-06-06 Thomas Neumann <tneumann@users.sourceforge.net>
3783 * tree-ssa-alias-warnings.c (maybe_add_match): Cast according to the
3785 (add_key): Likewise.
3786 * tree-ssa.c (init_tree_ssa): Use type safe memory macros.
3787 * tree-ssa-ccp.c (ccp_fold_builtin): Avoid using C++ keywords as
3789 * tree-ssa-coalesce.c (find_coalesce_pair): Use type safe memory
3791 (add_cost_one_coalesce): Likewise.
3792 * tree-ssa-copy.c (merge_alias_info): Avoid using C++ keywords as
3793 variable names. Rename orig to orig_name for consistency.
3794 * tree-ssa-dom.c (dom_thread_across_edge): Cast according to the
3796 (cprop_into_successor_phis): Avoid using C++ keywords as variable
3798 (record_equivalences_from_stmt): Likewise.
3799 * tree-ssa-dse.c (dse_initialize_block_local_data): Cast according to
3800 the coding conventions.
3801 (memory_ssa_name_same): Likewise.
3802 (dse_optimize_stmt): Likewise.
3803 (dse_record_phis): Likewise.
3804 (dse_finalize_block): Likewise.
3805 * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Avoid using C++
3806 keywords as variable names.
3807 (may_move_till): Cast according to the coding conventions.
3808 (force_move_till_expr): Avoid using C++ keywords as variable names.
3809 (force_move_till): Cast according to the coding conventions.
3810 (memref_hash): Likewise.
3811 (memref_eq): Likewise.
3812 (gather_mem_refs_stmt): Likewise.
3813 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Avoid
3814 using C++ keywords as variable names.
3815 (idx_find_step): Cast according to the coding conventions.
3816 (idx_record_use): Likewise.
3817 (find_depends): Likewise.
3818 (prepare_decl_rtl): Likewise.
3819 (mbc_entry_hash): Likewise.
3820 (mbc_entry_eq): Likewise.
3821 * tree-ssa-loop-niter.c (SWAP): Use the correct the type for tmp.
3822 (simplify_replace_tree): Avoid using C++ keywords as variable names.
3823 (idx_infer_loop_bounds): Cast according to the coding conventions.
3824 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
3825 * tree-ssa-math-opts.c (occ_new ): Likwise.
3826 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Use type safe memory
3828 * tree-ssa-operands.c (add_def_op): Avoid using C++ keywords as
3830 (add_use_op): Likewise.
3831 (add_vop): Likewise.
3832 (add_vuse_op): Likewise.
3833 (add_vdef_op): Likewise.
3834 (get_expr_operands): Likewise.
3835 (push_stmt_changes): Use type safe memory macros.
3836 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Avoid using C++
3837 keywords as variable names.
3838 (conditional_replacement): Likewise.
3839 (minmax_replacement): Likewise.
3840 (abs_replacement): Likewise.
3841 * tree-ssa-pre.c (create_expression_by_pieces): Cast according to the
3843 (insert_fake_stores): Avoid using C++ keywords as variable names.
3844 * tree-ssa-reassoc.c (add_to_ops_vec): Cast according to the coding
3846 * tree-ssa-structalias.c (heapvar_lookup): Likewise.
3847 (heapvar_insert): Use type safe memory macros.
3848 (new_var_info): Cast according to the coding conventions.
3849 (new_constraint): Likewise.
3850 (remove_preds_and_fake_succs): Use type safe memory macros.
3851 * tree-ssa-threadupdate.c (thread_block): Cast according to the coding
3853 (thread_single_edge): Likewise.
3854 (thread_through_loop_header): Likewise.
3856 2007-06-06 Eric Christopher <echristo@apple.com>
3858 * config/i386/i386.c (override_options): Move handling
3859 of TARGET_SUBTARGET* earlier.
3861 2007-06-06 Paolo Bonzini <bonzini@gnu.org>
3863 * genmodes.c (tagged_printf, emit_insn_modes_h): Don't
3866 2007-06-06 Zdenek Dvorak <dvorakz@suse.cz>
3868 * haifa-sched.c (restore_bb_notes): Clear bb field of the notes
3869 emited outside of basic block.
3870 * cfgbuild.c (find_bb_boundaries): Clear bb field for insns between
3872 * rtl.h (delete_insn_chain): Declaration changed.
3873 * cfgrtl.c (delete_insn_chain): Add option to clear bb field for
3875 (rtl_delete_block, rtl_merge_blocks): Pass true to delete_insn_chain.
3876 (delete_insn_chain_and_edges, try_redirect_by_replacing_jump,
3877 rtl_tidy_fallthru_edge, cfg_layout_merge_blocks): Pass false
3878 to delete_insn_chain.
3879 (rtl_verify_flow_info_1): Verify that the insns in header and footer
3880 do not have bb field set.
3881 (rtl_verify_flow_info): Verify that insns between basic blocks do not
3883 * recog.c (peephole2_optimize): Add argument to delete_insn_chain call.
3884 * cfgcleanup.c (try_optimize_cfg): Ditto.
3886 2007-06-06 Thomas Neumann <tneumann@users.sourceforge.net>
3888 * lambda-code.c (struct lambda_lattice_s): Add a name to the struct.
3889 (lambda_body_vector_new): Use type safe memory macros.
3890 (lambda_linear_expression_new): Likewise.
3891 (lambda_loopnest_new): Likewise.
3892 (lambda_lattice_new): Likewise.
3893 (replace_uses_equiv_to_x_with_y): Cast according to the coding
3894 conventions. Use type safe memory macros.
3895 * lambda.h (struct lambda_trans_matrix_s): Add a name to the struct.
3896 (lambda_body_vector_s): Likewise.
3897 * lambda-mat.c (lambda_matrix_new): Use type safe memory macros.
3898 * lambda-trans.c (lambda_trans_matrix_new): Likewise.
3900 2007-06-06 Richard Guenther <rguenther@suse.de>
3902 * tree-ssa-forwprop.c (forward_propagate_into_cond): Return 2
3903 if we need to schedule cfg_cleanup.
3904 (tree_ssa_forward_propagate_single_use_vars): Do so.
3906 2007-06-06 Ian Lance Taylor <iant@google.com>
3908 * fold-const.c (merge_ranges): If range_successor or
3909 range_predecessor fail, just return 0.
3911 2007-06-06 Uros Bizjak <ubizjak@gmail.com>
3913 PR tree-optimization/32216
3914 * tree-vectorizer.c (supportable_widening_operation): Determine
3915 signedness of FIX_TRUNC_EXPR from output operand.
3916 (supportable_narrowing_operation): Ditto.
3917 * tree-vect-generic.c (expand_vector_operations_1): Determine
3918 signedness of VEC_UNPACK_FLOAT_HI_EXPR and VEC_UNPACK_FLOAT_LO_EXPR
3921 2007-06-06 Thomas Neumann <tneumann@users.sourceforge.net>
3923 * config/i386/i386.c (enum pta_flags): Move out of struct scope...
3924 (struct pta): ...from here. Change flags to unsigned to avoid
3925 excessive casting (as it is used as a bit mask).
3926 (override_options): Add casts according to the coding convenventions.
3927 (x86_64_elf_unique_section): Likewise.
3928 (examine_argument): Avoid using C++ keywords as variable names.
3929 (construct_container): Likewise.
3930 (legitimize_pic_address): Likewise.
3931 (get_dllimport_decl): Cast according to the coding conventions. Use
3932 type safe memory macros.
3933 (legitimize_address): Cast according to the coding conventions.
3934 (emit_i387_cw_initialization): Corrected the type of slot to enum
3936 (ix86_init_machine_status): Use type safe memory macros.
3937 (bdesc_pcmpestr): Use UNKNOWN instead of integer 0.
3938 (bdesc_pcmpistr): Likewise.
3939 (bdesc_crc32): Likewise.
3940 (bdesc_sse_3arg): Likewise.
3941 (bdesc_2arg): Likewise.
3942 (bdesc_1arg): Likewise.
3943 (ix86_expand_sse_pcmpestr): Cast according to the coding conventions.
3944 (ix86_expand_sse_pcmpistr): Likewise.
3945 (ix86_expand_vec_set_builtin): Use EXPAND_NORMAL instead of integer 0.
3946 (ix86_builtin_vectorized_function): Change the type of fn to unsigned
3947 int to match the langhook definition.
3948 (ix86_builtin_conversion): Change the type of code to unsigned init to
3949 match the langhook definition.
3950 (ix86_preferred_reload_class): Avoid using C++ keywords as variable
3952 (ix86_preferred_output_reload_class): Likewise.
3953 (ix86_cannot_change_mode_class): Likewise.
3954 (ix86_memory_move_cost): Likewise.
3955 (ix86_rtx_costs): Cast the outer_code parameter to enum rtx_code to
3956 avoid excessive casting later on.
3957 (x86_output_mi_thunk): Avoid using C++ keywords as variable names.
3959 2007-06-06 Uros Bizjak <ubizjak@gmail.com>
3961 * config/i386/sse.md (sse4_2_pcmpestr_cconly): Prefer pcmpestrm
3962 as flags setting insn.
3963 (sse4_2_pcmpistr_cconly): Prefer pcmpistrm as flags setting insn.
3965 2007-06-06 Uros Bizjak <ubizjak@gmail.com>
3967 * config/i386/i386.md (UNSPEC_ROUNDP, UNSPEC_ROUNDS): Remove.
3968 (UNSPEC_ROUND): New.
3969 ("sse4_1_round<mode>2"): New insn pattern.
3970 ("rint<mode>2"): Expand using "sse4_1_round<mode>2" pattern for