1 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
3 * opt-functions.awk (opt_sanitized_name): New.
6 * opth-gen.awk: Use it.
8 2010-04-13 Martin Jambor <mjambor@suse.cz>
10 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
11 (sra_modify_assign): Delete stmts loading dead data even if racc has no
12 children. Call replace_uses_with_default_def_ssa_name to handle
15 2010-04-13 Michael Matz <matz@suse.de>
18 * builtins.c (expand_builtin_interclass_mathfn): Also create
19 a register if the predicate doesn't match.
21 2010-04-13 Diego Novillo <dnovillo@google.com>
23 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
24 * c-pch.c: Include timevar.h.
25 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
26 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE
28 * ggc-common.c: Include timevar.h.
29 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT
31 * timevar.def (TV_PCH_SAVE): Define.
32 (TV_PCH_CPP_SAVE): Define.
33 (TV_PCH_PTR_REALLOC): Define.
34 (TV_PCH_PTR_SORT): Define.
35 (TV_PCH_RESTORE): Define.
36 (TV_PCH_CPP_RESTORE): Define.
38 2010-04-13 Michael Matz <matz@suse.de>
40 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
42 (can_reassociate_p): New function.
43 (break_up_subtract_bb, reassociate_bb): Use it.
45 2010-04-13 Richard Guenther <rguenther@suse.de>
48 * builtins.c (c_readstr): Fix assert.
50 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
52 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
53 when generating cltd insn.
55 (*ashl<mode>3_1): Remove special handling for register operand 2.
56 (*ashlsi3_1_zext): Ditto.
58 (*ashlhi3_1_lea): Ditto.
60 (*ashlqi3_1_lea): Ditto.
61 (*<shiftrt_insn><mode>3_1): Ditto.
62 (*<shiftrt_insn>si3_1_zext): Ditto.
63 (*<shiftrt_insn>qi3_1_slp): Ditto.
64 (*<rotate_insn><mode>3_1): Ditto.
65 (*<rotate_insn>si3_1_zext): Ditto.
66 (*<rotate_insn>qi3_1_slp): Ditto.
68 2010-04-13 Richard Guenther <rguenther@suse.de>
70 * tree-ssa-structalias.c (callused_id): Remove.
71 (call_stmt_vars): New.
72 (get_call_vi): Likewise.
73 (lookup_call_use_vi): Likewise.
74 (lookup_call_clobber_vi): Likewise.
75 (get_call_use_vi): Likewise.
76 (get_call_clobber_vi): Likewise.
77 (make_transitive_closure_constraints): Likewise.
78 (handle_const_call): Adjust to do per-call call-used handling.
79 (handle_pure_call): Likewise.
80 (find_what_var_points_to): Remove general callused handling.
81 (init_base_vars): Likewise.
82 (init_alias_vars): Initialize call_stmt_vars.
83 (compute_points_to_sets): Process call-used and call-clobbered
84 vars for call statements.
85 (delete_points_to_sets): Free call_stmt_vars.
87 2010-04-13 Richard Guenther <rguenther@suse.de>
89 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
90 Only add RW dependence for dependence distance zero.
91 Adjust maximal vectorization factor according to dependences.
92 Move alignment handling ...
93 (vect_find_same_alignment_drs): ... here. New function.
94 (vect_analyze_data_ref_dependences): Adjust.
95 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
96 (vect_analyze_data_refs): Adjust minimal vectorization factor
97 according to data references.
98 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
99 dependences before determining the vectorization factor.
100 Analyze alignment after determining the vectorization factor.
101 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
102 dependences before alignment.
103 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
105 (vect_analyze_data_refs): Likewise.
106 (MAX_VECTORIZATION_FACTOR): New define.
108 2010-04-13 Duncan Sands <baldrick@free.fr>
110 * except.h (lang_eh_type_covers): Remove.
111 * except.c (lang_eh_type_covers): Likewise.
113 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
114 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
116 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
117 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
118 UNITS_PER_LONG where it is ABI relevant.
119 (s390_return_addr_rtx): Likewise.
120 (s390_back_chain_rtx): Likewise.
121 (s390_frame_area): Likewise.
122 (s390_frame_info): Likewise.
123 (s390_initial_elimination_offset): Likewise.
124 (save_gprs): Likewise.
125 (s390_emit_prologue): Likewise.
126 (s390_emit_epilogue): Likewise.
127 (s390_function_arg_advance): Likewise.
128 (s390_function_arg): Likewise.
129 (s390_va_start): Likewise.
130 (s390_gimplify_va_arg): Likewise.
131 (s390_function_profiler): Likewise.
132 (s390_optimize_prologue): Likewise.
133 (s390_rtx_costs): Likewise.
134 (s390_secondary_reload): Likewise.
135 (s390_promote_function_mode): Likewise.
136 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
137 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
139 (s390_unwind_word_mode): New function.
140 (s390_function_value): Split 64 bit values into register pair if
141 used as return value.
142 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
143 function call parameters. Handle parallels.
144 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
145 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
146 (DWARF_CIE_DATA_ALIGNMENT): New macro.
147 (s390_expand_setmem): Remove unused variable src_addr.
148 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
149 deal with 64 bit registers.
150 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
151 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
152 (UNITS_PER_LONG): New macro.
153 * libjava/include/s390-signal.h: Define extended ucontext
154 structure containing the upper halfs of the 64 bit registers.
156 2010-04-13 Simon Baldwin <simonb@google.com>
158 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
160 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
162 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
163 rvalue on the RHS if the LHS is of a non-renamable type.
164 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
166 2010-04-13 Matthias Klose <doko@ubuntu.com>
168 * gcc.c (cc1_options): Handle -iplugindir before processing
169 the cc1 spec. Only add -iplugindir once.
170 (cpp_unique_options): Add -iplugindir option if -fplugin* options
172 * common.opt (iplugindir): Remove `Separate' property, initialize.
173 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
175 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
176 (distclean): Remove plugin dir.
177 * doc/invoke.texi: Document -iplugindir.
179 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
181 * doc/plugins.texi (Loading Plugins): Document short
183 (Plugin API): Mention default_plugin_dir_name function.
185 * gcc.c (find_file_spec_function): Add new declaration.
186 (static_spec_func): Use it for "find-file".
187 (find_file_spec_function): Add new function.
188 (cc1_options): Add -iplugindir option if -fplugin* options found.
190 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
192 * plugin.c (add_new_plugin): Updated comment, and handle short
194 (default_plugin_dir_name): Added new function.
196 * common.opt (iplugindir): New option to set the plugin directory.
198 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
200 * config/i386/i386.md (any_rotate): New code iterator.
201 (rotate_insn): New code attribute.
203 (SWIM124): New mode iterator.
204 (<rotate_insn>ti3): New expander.
205 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
206 any_rotate code iterator.
207 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
208 using any_rotate code iterator and SWIM124 mode iterator.
209 (ix86_rotlti3): New insn_and_split pattern.
210 (ix86_rotrti3): Ditto.
211 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
212 ix86_rotl{di,ti}3 patterns.
213 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
214 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
215 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
216 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
217 code iterator and SWI mode iterator.
218 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
219 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
221 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
222 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
223 (bswap rotatert splitter): Add splitter.
224 (bswap splitter): Macroize splitter using any_rotate code iterator.
225 Add insn predicate to split only for TARGET_USE_XCHGB or when
226 optimizing function for size.
228 2010-04-12 Steve Ellcey <sje@cup.hp.com>
230 * config/pa/pa.c (emit_move_sequence): Remove use of
231 deleted variable flag_argument_noalias.
233 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
235 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
237 Add to unsupported targets list.
238 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
239 sparc*-sun-solaris2.[567]* from target lists.
240 * configure: Regenerate.
241 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
243 Remove Solaris 7 patch references.
244 (Specific, sparc-sun-solaris2.7): Removed.
245 (sparc-sun-solaris2*): Update Solaris 7 example.
246 (sparc64-*-solaris2*): Likewise.
248 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
250 * config.build (alpha*-dec-osf4*): Remove.
251 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
252 of obsolete configurations.
253 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
255 * config/alpha/t-osf4: Renamed to ...
256 * config/alpha/t-osf5: ... this.
257 * config/alpha/osf.h: Renamed to ...
258 * config/alpha/osf5.h: ... this.
259 Merged old osf5.h contents.
261 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
262 (EXTRA_SPECS): Removed.
263 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
264 reflect removal of Tru64 UNIX V4.0/V5.0 support.
267 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
269 * doc/contrib.texi (Contributors, Rainer Orth): Update.
271 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
274 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
275 __thiscall convention.
277 2010-04-12 Steve Ellcey <sje@cup.hp.com>
279 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
281 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
283 2010-04-12 Steve Ellcey <sje@cup.hp.com>
285 * function.c (assign_parms_initialize_all): Add unused attribute
288 2010-04-12 Richard Guenther <rguenther@suse.de>
290 * gsstruct.def (GSS_CALL): New.
291 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
292 * gimple.h: Include tree-ssa-alias.h.
293 (struct gimple_statement_call): New.
294 (union gimple_statement_struct_d): Add gimple_call member.
295 (gimple_call_reset_alias_info): Declare.
296 (gimple_call_use_set): New function.
297 (gimple_call_clobber_set): Likewise.
298 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
299 * gimple.c (gimple_call_reset_alias_info): New function.
300 (gimple_build_call_1): Call it.
301 * lto-streamer-in.c (input_gimple_stmt): Likewise.
302 * tree-inline.c (remap_gimple_stmt): Likewise.
303 (expand_call_inline): Remove callused handling.
304 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
305 * tree-dfa.c (dump_variable): Likewise.
306 * tree-parloops.c (parallelize_loops): Likewise.
307 * tree-ssa.c (init_tree_ssa): Likewise.
308 (delete_tree_ssa): Likewise.
309 * tree-flow-inline.h (is_call_used): Remove.
310 * tree-flow.h (struct gimple_df): Remove callused member.
311 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
312 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
313 (ref_maybe_used_by_call_p_1): Simplify.
314 (call_may_clobber_ref_p_1): Likewise.
315 * tree-ssa-structalias.c (compute_points_to_sets): Set
316 the call stmt used and clobbered sets.
317 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
318 (find_tail_calls): Verify the tail call.
320 2010-04-12 Richard Guenther <rguenther@suse.de>
322 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
323 single-iteration always-inline inlining.
324 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
325 (cgraph_decide_inlining): Do not handle always-inline specially.
326 (try_inline): Remove always-inline cycle detection special case.
327 Do not recurse on always-inlines.
328 (cgraph_early_inlining): Do not iterate if not optimizing.
329 (cgraph_gate_early_inlining): remove.
330 (pass_early_inline): Run unconditionally.
331 (gate_cgraph_decide_inlining): New function.
332 (pass_ipa_inline): Use it. Do not run the IPA inliner if
333 not inlining or optimizing.
334 (cgraph_decide_inlining_of_small_functions): Also consider
335 always-inline functions.
336 (cgraph_default_inline_p): Return true for nodes which should
337 disregard inline limits.
338 (estimate_function_body_sizes): Assume zero size and time for
339 nodes which are marked as disregarding inline limits.
340 (cgraph_decide_recursive_inlining): Do not perform recursive
341 inlining on always-inline nodes.
343 2010-04-12 Jakub Jelinek <jakub@redhat.com>
346 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
347 for exprs satisfying handled_component_p.
349 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
351 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
352 non-constant aggregate elements.
354 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
355 is a real initialization.
357 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
360 * c-decl.c (start_function): Move forward check for nested function.
362 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
364 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
365 * config/sh/sh.c: Include reload.h.
366 (sh_legitimize_reload_address): New.
367 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
368 sh_legitimize_reload_address.
370 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
372 * config/sh/sh.md (*movqi_pop): New insn pattern.
373 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
375 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
377 * config/i386/i386.md (any_shiftrt): New code iterator.
378 (shiftrt_insn): New code attribute.
380 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
381 using any_shiftrt code iterator.
382 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
383 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
384 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
385 pattern from corresponding peephole2 patterns.
386 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
387 using any_shiftrt code iterator.
388 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
389 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
390 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
391 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
392 *{ashr,lshr}<mode>3_cmp_zext.
393 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
395 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
397 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
399 (*lshr<mode>3_cconly): Ditto.
401 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
403 * config/i386/i386.md (lshr<mode>3): Macroize expander from
404 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
405 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
406 pattern from *lshr{di,ti}3_1 and corresponding splitters using
408 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
409 from corresponding peephole2 patterns.
410 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
411 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
412 and *lshrdi3_1_rex64 using SWI mode iterator.
413 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
414 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
415 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
416 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
417 and *lshrdi3_cmp_rex64 using SWI mode iterator.
418 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
419 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
420 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
421 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
424 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
426 * config/i386/i386.md (ashr<mode>3): Macroize expander from
427 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
428 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
429 pattern from *ashr{di,ti}3_1 and corresponding splitters using
431 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
432 from corresponding peephole2 patterns.
433 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
434 (ashrsi3_cvt): Rename from ashrsi3_31.
435 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
436 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
437 and x86_64_shift_adj_3 using SWI48 mode iterator.
438 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
439 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
440 and *ashrdi3_1_rex64 using SWI mode iterator.
441 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
442 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
443 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
444 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
445 and *ashrdi3_cmp_rex64 using SWI mode iterator.
446 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
447 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
448 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
449 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
451 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
452 * config/i386/i386.c (ix86_split_ashr): Update for renamed
453 x86_shift<mode>_adj_3 expanders.
455 2010-04-10 Wei Guozhi <carrot@google.com>
458 * config/arm/arm.c (arm_pic_static_addr): New function.
459 (legitimize_pic_address): Call arm_pic_static_addr when it detects
461 (arm_output_addr_const_extra): Output expression for new pattern.
462 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
464 2010-04-10 Bernd Schmidt <bernd.schmidt@codesourcery.com>
466 * ira-costs.c (record_reg_classes): Ignore alternatives that are
469 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
470 * web.c: Include "insn-config.h" and "recog.h".
471 (union_match_dups): New function.
473 (union_defs): Don't try to recognize match_dups.
475 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
476 if doing so would replace the entire pattern.
478 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
482 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
483 and splitter pattern. Change splitter operand 1 predicate to
486 2010-04-09 Martin Jambor <mjambor@suse.cz>
488 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
489 lattices are addresses of CONST_DECLs with the same initial value.
490 (ipcp_print_all_lattices): Print values of CONST_DECLs.
491 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
493 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
494 Bernd Schmidt <bernd.schmidt@codesourcery.com>
496 * loop-invariant.c (replace_uses): New static function.
497 (move_invariant_reg): Use it to ensure we can replace the uses.
499 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
501 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
503 (picochip_override_options): Enable section anchors only above -O1.
504 (picochip_reorg): Fixed a couple of build warnings.
506 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
508 * configure.ac (plugin -rdynamic test): Log result.
509 * configure: Regenerate.
510 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
511 (RDYNAMIC_SPEC): Define.
512 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
514 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
516 * configure.ac: Determine Sun ld version numbers.
517 (comdat_group): Restrict GNU ld version checks to gld.
518 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
519 (enable_comdat): Support --enable-comdat.
520 * configure: Regenerate.
521 * doc/install.texi (Configuration): Document --enable-comdat.
523 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
525 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
526 * config/sol2-gld.h: ... here.
527 * config.gcc (sparc*-*-solaris2*): Reflect this.
528 (i[34567]86-*-solaris2*): Use it.
530 2010-04-09 Steve Ellcey <sje@cup.hp.com>
532 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
534 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
536 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
539 * diagnostic.c (diagnostic_initialize): Initialize
540 some_warnings_are_errors.
541 (diagnostic_finish): New.
542 (diagnostic_action_after_output): Call it before exiting.
543 (diagnostic_report_diagnostic): Do not print message here. Set
544 some_warnings_are_errors.
545 * diagnostic.h (diagnostic_context): Delete
546 issue_warnings_are_errors_message. Add some_warnings_are_errors.
547 (diagnostic_finish): Declare.
548 * toplev.c (toplev_main): Call it before exit.
550 2010-04-09 Jason Merrill <jason@redhat.com>
553 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
557 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
558 based on a warning flag.
560 2010-04-09 Richard Guenther <rguenther@suse.de>
562 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
564 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
567 * varasm.c (default_assemble_visibility): Wrap vars that are
568 set, but unused, by targets without GAS.
569 * config/rs6000/rs6000.c: (paired_emit_vector_compare):
570 Remove set, but unused, vars.
571 (rs6000_legitimize_tls_address): Likewise.
572 (altivec_expand_dst_builtin): Likewise.
573 * config/darwin.c (machopic_classify_symbol): Likewise.
574 (machopic_indirection_name): Likewise.
576 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
578 * config/i386/i386.md (DWI): New mode iterator.
579 (S): New mode attribute.
580 (shift_operand): Ditto.
581 (shift_immediate_operand): Ditto.
582 (ashl_input_operand): Ditto.
583 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
584 using SDWIM mode iterator.
585 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
586 pattern from *ashl{di,ti}3_1 and corresponding splitters using
588 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
589 from corresponding peephole2 patterns.
590 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
591 and x86_64_shift_adj_1 using SWI48 mode iterator.
592 (x86_shift<mode>_adj_2): Ditto.
593 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
594 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
595 using SWI48 mode iterator.
596 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
597 *ashldi3_cmp_rex64 using SWI mode iterator.
598 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
599 *ashldi3_cconly_rex64 using SWI mode iterator.
600 * config/i386/i386.c (ix86_split_ashl): Update for renamed
601 x86_shift<mode>_adj_{1,2}.
602 (ix86_split_ashr): Ditto.
603 (ix86_split_lshr): Ditto.
605 2010-04-09 Richard Guenther <rguenther@suse.de>
607 * target.h (builtin_conversion): Pass in input and output types.
608 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
609 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
610 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
611 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
613 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
615 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
617 2010-04-09 Richard Guenther <rguenther@suse.de>
620 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
622 2010-04-09 Richard Guenther <rguenther@suse.de>
624 * tree-vectorizer.h (struct _stmt_vec_info): Document
625 that vectype is the type of the LHS.
626 (supportable_widening_operation, supportable_narrowing_operation):
627 Get both input and output vector types as arguments.
628 (vect_is_simple_use_1): Declare.
629 (get_same_sized_vectype): Likewise.
630 * tree-vect-loop.c (vect_determine_vectorization_factor):
631 Set STMT_VINFO_VECTYPE to the vector type of the def.
632 (vectorizable_reduction): Adjust.
633 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
634 Adjust. Specify the output vector type.
635 (vect_pattern_recog_1): Adjust.
636 * tree-vect-stmts.c (get_same_sized_vectype): New function.
637 (vectorizable_call): Adjust.
638 (vectorizable_conversion): Likewise.
639 (vectorizable_operation): Likewise.
640 (vectorizable_type_demotion): Likewise.
641 (vectorizable_type_promotion): Likewise.
642 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
644 (vect_is_simple_use_1): New function.
645 (supportable_widening_operation): Get both input and output
647 (supportable_narrowing_operation): Likewise.
648 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
650 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
652 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
653 __thiscall and _thiscall as predefined macros.
654 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
655 thiscall attribute handling.
656 (ix86_comp_type_attributes): Likewise.
657 (ix86_function_regparm): Likewise.
658 (ix86_return_pops_args): Likewise.
659 (init_cumulative_args): Likewise.
660 (find_drap_reg): Likewise.
661 (ix86_static_chain): Likewise.
662 (x86_this_parameter): Likewise.
663 (x86_output_mi_thunk): Likewise.
664 (ix86_attribute_table): Add description for thiscall attribute.
665 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
666 * doc/extend.texi: Add documentation for thiscall.
668 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
671 * c.opt (Wint-to-pointer-cast): Available in C++.
672 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
674 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
676 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
677 * calls.c (expand_call): Pass the function type to aggregate_value_p.
678 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
679 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
680 function type instead. Reorder and simplify checks.
682 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
684 2010-04-08 Jing Yu <jingyu@google.com>
685 Zdenek Dvorak <ook@ucw.cz>
687 PR tree-optimization/42720
688 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
689 loop unswitch conditions here from ...
690 (tree_unswitch_single_loop): ... here.
692 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
694 * tree-if-conv.c: Fix comments and simplify logic.
696 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
698 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
699 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
700 (main_tree_if_conversion): Update call to tree_if_conversion.
702 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
705 * doc/invoke.texi (-b,-V): Delete.
706 * doc/tm.texi: Do not mention -b.
707 * gcc.c (display_help): Delete -b and -V.
708 (process_command): Delete -b and -V.
709 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
711 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
712 Wolfgang Gellerich <gellerich@de.ibm.com>
714 Implement target hook for loop unrolling
715 * target.h (loop_unroll_adjust): Add a new target hook function.
716 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
717 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
718 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
719 (s390_loop_unroll_adjust): Implement the new target hook for s390.
720 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
722 (decide_unroll_stupid): Likewise.
724 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
727 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
729 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
731 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
732 (Specific, *-*-solaris2*): Likewise.
733 Don't prefer Sun as over GNU as.
735 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
737 * config/s390/s390.c (override_options): Adjust the z10
738 defaults for max-unroll-times, max-completely-peeled-insns
739 and max-completely-peel-times.
741 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
743 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
744 instructions for z10.
745 (s390_expand_setmem): Likewise.
746 (s390_expand_cmpmem): Likewise.
748 2010-04-08 Richard Guenther <rguenther@suse.de>
750 PR tree-optimization/43679
751 * tree-ssa-pre.c (eliminate): Only propagate copies.
753 2010-04-08 Jakub Jelinek <jakub@redhat.com>
756 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
757 set but not used variable warning.
759 2010-04-08 Wei Guozhi <carrot@google.com>
762 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
763 (arm_size_rtx_costs): Call the new function when optimized for size.
765 2010-04-08 Jakub Jelinek <jakub@redhat.com>
768 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
769 op0 is not a MEM, just return NULL instead of assertion
771 (discover_nonconstant_array_refs): Don't walk debug stmts.
773 2010-04-08 Doug Kwan <dougkwan@google.com>
775 * configure.ac: Recognize gold and do not use its version number
777 * configure: Regenerate.
779 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
782 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
783 (negate_value): Move code to push elements to broken_up_substracts ...
784 (eliminate_plus_minus_pair): ... here. Push operands that have no
785 negative pair to plus_negates.
786 (repropagate_negates, init_reassoc, fini_reassoc): Update.
788 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
790 * doc/install.texi (Configuration): Move description of
791 --enable-lto, --with-libelf*, --enable-gold from Java section to
794 * doc/generic.texi (Working with declarations)
795 (Function Properties, C and C++ Trees): Fix typos.
796 * doc/sourcebuild.texi (Top Level): Likewise.
798 2010-04-07 Jakub Jelinek <jakub@redhat.com>
801 * tree.h (DECL_READ_P): Define.
802 (struct tree_decl_common): Add decl_read_flag.
803 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
804 a set but not used warning.
805 (merge_decls): Merge DECL_READ_P flag.
806 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
807 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
808 * c-common.c (handle_used_attribute, handle_unused_attribute):
810 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
812 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
814 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
815 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
816 c_parser_binary_expression, c_parser_cast_expression,
817 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
818 Call default_function_array_read_conversion instead of
819 default_function_array_conversion where needed.
820 (c_parser_unary_expression, c_parser_conditional_expression,
821 c_parser_postfix_expression_after_primary, c_parser_initelt):
822 Likewise. Call mark_exp_read where needed.
823 (c_parser_statement_after_labels, c_parser_asm_operands,
824 c_parser_typeof_specifier, c_parser_sizeof_expression,
825 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
827 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
829 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
830 (warn_unused_but_set_parameter): Default to warn_unused
832 * doc/invoke.texi: Document -Wunused-but-set-variable and
833 -Wunused-but-set-parameter.
835 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
837 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
838 when operandN variables aren't used in the body of the expander
840 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
841 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
842 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
843 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
844 FOR_EACH_IMM_USE_ON_STMT): Likewise.
845 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
846 * tree.c (PROCESS_ARG): Likewise.
848 2010-04-07 Simon Baldwin <simonb@google.com>
850 * diagnostic.h (diagnostic_override_option_index): New macro to
851 set a diagnostic's option_index.
852 * c-tree.h (c_cpp_error): Add warning reason argument.
853 * opts.c (_warning_as_error_callback): New.
854 (register_warning_as_error_callback): Store callback for
855 warnings enabled via enable_warning_as_error.
856 (enable_warning_as_error): Call callback, minor code tidy.
857 * opts.h (register_warning_as_error_callback): Declare.
858 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
859 response to -Werror=.
860 (c_common_init_options): Register warning_as_error_callback in opts.c.
861 * common.opt: Add -Wno-cpp option.
862 * c-common.c (struct reason_option_codes_t): Map cpp warning
863 reason codes to gcc option indexes.
864 * (c_option_controlling_cpp_error): New function, lookup the gcc
865 option index for a cpp warning reason code.
866 * (c_cpp_error): Add warning reason argument, call
867 c_option_controlling_cpp_error for diagnostic_override_option_index.
868 * doc/invoke.texi: Document -Wno-cpp.
870 2010-04-07 Richard Guenther <rguenther@suse.de>
872 * ipa-reference.c (mark_load): Use get_base_address.
873 (mark_store): Likewise.
875 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
876 inserting GIMPLE_NOPs into the IL.
877 * tree-ssa-structalias.c (get_constraint_for_component_ref):
878 Explicitly strip handled components and indirect references.
880 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
881 folding address expressions.
882 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
883 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
884 operand_equal_p to compare decls.
885 (ptr_deref_may_alias_decl_p): Likewise.
886 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
887 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
888 Handle reversed comparison ops.
889 * tree-sra.c (asm_visit_addr): Use get_base_address.
890 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
891 * ipa-reference.c (mark_address): Use get_base_address.
893 2010-04-07 Richard Guenther <rguenther@suse.de>
895 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
896 Propagate constants everywhere.
898 2010-04-07 Jakub Jelinek <jakub@redhat.com>
901 * tree.c (MAX_INT_CACHED_PREC): Define.
902 (nonstandard_integer_type_cache): New array.
903 (build_nonstandard_integer_type): Cache results for precision
904 <= MAX_INT_CACHED_PREC.
906 2010-04-07 Richard Guenther <rguenther@suse.de>
908 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
909 -fargument-noalias-global, -fargument-noalias-anything): Remove.
910 * common.opt: Likewise.
911 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
912 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
913 (nonoverlapping_memrefs_p): Likewise.
914 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
915 * opts.c (common_handle_option): Handle OPT_fargument_alias,
916 OPT_fargument_noalias, OPT_fargument_noalias_anything and
917 OPT_fargument_noalias_global for backward compatibility.
919 2010-04-07 Richard Guenther <rguenther@suse.de>
921 PR tree-optimization/43270
922 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
923 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
924 * tree-ssa-pre.c (phi_translate_1): Adjust.
925 (fully_constant_expression): Split out vn_reference handling to ...
926 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
927 Fold reads from constant strings.
928 (vn_reference_lookup): Handle fully constant references.
929 (vn_reference_lookup_pieces): Likewise.
930 * Makefile.in (expmed.o-warn): Add -Wno-error.
932 2010-04-07 Martin Jambor <mjambor@suse.cz>
934 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
936 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
939 * gcc.c: Add -static-libstdc++ to list of recognized options.
941 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
943 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
945 2010-04-07 Richard Guenther <rguenther@suse.de>
948 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
949 bases build simple mem attributes to retain points-to information.
951 2010-04-07 Richard Guenther <rguenther@suse.de>
954 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
955 preserve points-to related information.
957 2010-04-07 Richard Guenther <rguenther@suse.de>
960 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
961 discard plain indirect references.
962 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
963 * tree.c (tree_nop_conversion): Likewise.
965 2010-04-07 Dodji Seketeli <dodji@redhat.com>
968 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
970 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
972 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
973 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
975 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
977 * tree-if-conv.c: Fix indentation and comments.
979 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
981 * tree-if-conv.c: Sort static functions in topological order.
983 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
985 * tree-if-conv.c: Fix indentation and comments.
987 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
990 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
991 lang_hooks.types.type_for_size instead of
992 build_nonstandard_integer_type.
993 When converting an unsigned type to signed, double its precision.
994 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
995 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
996 (graphite_create_new_loop_guard): When ub + 1 wraps around,
999 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
1002 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
1003 POINTER_PLUS_EXPR for pointer types.
1005 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
1008 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
1009 * graphite-clast-to-gimple.c: Include langhooks.h.
1010 (max_signed_precision_type): New.
1011 (max_precision_type): Takes two types as arguments.
1012 (precision_for_value): New.
1013 (precision_for_interval): New.
1014 (gcc_type_for_interval): New.
1015 (gcc_type_for_value): New.
1016 (gcc_type_for_clast_term): New.
1017 (gcc_type_for_clast_red): New.
1018 (gcc_type_for_clast_bin): New.
1019 (gcc_type_for_clast_expr): Split up into several functions.
1020 (gcc_type_for_clast_eq): Rewritten.
1021 (compute_bounds_for_level): New.
1022 (compute_type_for_level_1): New.
1023 (compute_type_for_level): New.
1024 (gcc_type_for_cloog_iv): Removed.
1025 (gcc_type_for_iv_of_clast_loop): Rewritten.
1026 (graphite_create_new_loop): Compute the lower and upper bound types
1027 with gcc_type_for_clast_expr.
1028 (graphite_create_new_loop_guard): Same.
1029 (find_cloog_iv_in_expr): Removed.
1030 (compute_cloog_iv_types_1): Removed.
1031 (compute_cloog_iv_types): Removed.
1032 (gloog): Do not call compute_cloog_iv_types.
1033 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
1035 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
1036 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
1037 (GBB_CLOOG_IV_TYPES): Removed.
1039 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
1041 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
1042 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
1043 (detect_commutative_reduction): Same.
1045 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
1047 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
1048 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
1050 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
1051 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
1052 (rewrite_commutative_reductions_out_of_ssa): Same.
1053 * passes.c (execute_function_todo): Call verify_ssa for every pass
1054 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
1055 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
1056 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
1057 with an extra argument.
1058 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
1059 verify_ssa only when the extra argument is true.
1060 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
1061 with an extra argument.
1062 (tree_transform_and_unroll_loop): Same.
1064 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
1066 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
1067 for all the passes of the LNO having LOOP_CLOSED_SSA.
1068 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
1069 * tree-loop-distribution.c (pass_loop_distribution): Same.
1070 * tree-pass.h (TODO_verify_loops): Removed.
1071 * tree-ssa-loop.c (pass_tree_loop_init): Same.
1073 (pass_tree_unswitch): Same.
1074 (pass_predcom): Same.
1075 (pass_vectorize): Same.
1076 (pass_linear_transform): Same.
1077 (pass_graphite_transforms): Same.
1078 (pass_iv_canon): Same.
1079 (pass_complete_unroll): Same.
1080 (pass_complete_unrolli): Same.
1081 (pass_parallelize_loops): Same.
1082 (pass_loop_prefetch): Same.
1083 (pass_iv_optimize): Same.
1085 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
1088 * passes.c (init_optimization_passes): Move pass_lim before
1089 pass_copy_prop and pass_dce_loop.
1091 2010-04-06 Jakub Jelinek <jakub@redhat.com>
1094 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
1095 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
1096 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
1097 MULTI_* defines for 4 argument vpermil2p* builtins.
1099 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
1101 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
1102 * config/i386/i386.c (x86_maybe_negate_const_int): New.
1103 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
1104 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
1105 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
1106 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
1107 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
1108 Use x86_maybe_negate_const_int to output insn mnemonic.
1109 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
1110 check from instruction predicate. Update comments.
1111 * config/i386/sync.md (sync_add<mode>): Use
1112 x86_maybe_negate_const_int to output insn mnemonic.
1114 2010-04-06 Jan Hubicka <jh@suse.cz>
1116 PR tree-optimization/42906
1117 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
1118 IGNORE_SELF argument. Set visited_control_parents for fully
1120 (find_obviously_necessary_stmts): Update call of
1121 mark_control_dependent_edges_necessary.
1122 (propagate_necessity): Likewise. Handle PHI edges more curefully.
1124 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
1126 * config/i386/i386.md: Remove comment about 'e' and 'E'
1129 2010-04-06 Richard Guenther <rguenther@suse.de>
1131 PR tree-optimization/43627
1132 * tree-vrp.c (extract_range_from_unary_expr): Widenings
1133 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
1136 2010-04-06 Jakub Jelinek <jakub@redhat.com>
1138 * BASE-VER: Change to 4.6.0.
1141 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
1144 2010-04-06 Richard Guenther <rguenther@suse.de>
1147 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
1149 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1151 * doc/invoke.texi (Optimize Options): Document that LTO
1152 won't remove object access purely due to incompatible
1155 2010-04-04 Matthias Klose <doko@ubuntu.com>
1157 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
1158 Initialize variable.
1160 2010-04-03 Richard Guenther <rguenther@suse.de>
1163 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
1164 require a non-NULL MEM_OFFSET.
1166 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
1168 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
1169 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
1170 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
1171 config/alpha/predicates.md, config/arm/arm.md,
1172 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
1173 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
1174 config/darwin9.h, config/darwin.c, config/darwin.h,
1175 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
1176 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
1177 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
1178 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
1179 config/mips/mips.md, config/mn10300/mn10300.c,
1180 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
1181 config/rs6000/aix.h, config/rs6000/dfp.md,
1182 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
1183 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
1184 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
1185 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
1186 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
1187 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
1188 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
1189 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
1190 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
1191 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
1192 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
1193 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
1194 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
1195 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
1196 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
1197 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
1198 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
1199 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
1200 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
1201 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
1202 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
1203 opt-functions.awk, opth-gen.awk, params.def, passes.c,
1204 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
1205 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
1206 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
1207 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
1208 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
1209 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
1210 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
1211 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
1212 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
1213 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
1214 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
1215 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
1216 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
1217 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
1219 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1222 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
1223 * aclocal.m4: Regenerate.
1225 2010-04-02 Richard Guenther <rguenther@suse.de>
1227 PR tree-optimization/43629
1228 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
1229 if we have seen a constant value.
1231 2010-04-02 Joseph Myers <joseph@codesourcery.com>
1233 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
1235 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
1238 * arm.c (legitimize_tls_address): Adjust call to
1239 gen_tls_load_dot_plus_four.
1240 (arm_note_pic_base): New function.
1241 (arm_cannot_copy_insn_p): Use it.
1242 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
1245 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1250 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1252 * Makefile.in ($(out_object_file)): Depend on
1253 gt-$(basename $(notdir $(out_file))).h.
1255 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
1257 * config.gcc (lm32-*-rtems*): Add t-lm32.
1259 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
1261 * config.gcc: Add lm32-*-rtems*.
1262 * config/lm32/rtems.h: New file.
1264 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
1267 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
1269 2010-04-01 Jakub Jelinek <jakub@redhat.com>
1271 * dwarf2out.c (output_compilation_unit_header): For
1272 -gdwarf-4 use version 4 instead of version 3.
1273 (output_line_info): For version 4 and above emit additional
1274 maximum ops per insn header field.
1275 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
1277 * dwarf2out.c (is_c_family, is_java): Remove.
1278 (lower_bound_default): New function.
1279 (add_bound_info, gen_descr_array_type_die): Use it.
1281 2010-04-01 Dodji Seketeli <dodji@redhat.com>
1284 * dwarf2out.c (gen_variable_die): Allow debug info for variable
1285 re-declaration when it happens in a function.
1287 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
1289 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
1290 (cgraph_remove_function_insertion_hook): Same.
1291 (cgraph_call_function_insertion_hooks): Same.
1293 2010-04-01 Richard Guenther <rguenther@suse.de>
1296 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
1297 and TREE_THIS_VOLATILE.
1298 (copy_ref_info): Likewise.
1299 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
1300 * tree.c (build6_stat): Ignore side-effects of all but arg5
1301 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
1304 2010-04-01 Richard Guenther <rguenther@suse.de>
1306 PR tree-optimization/43607
1307 * ipa-type-escape.c (check_call): Do not access non-existing
1310 2010-04-01 Richard Guenther <rguenther@suse.de>
1314 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
1315 Jack Howarth <howarth@bromo.med.uc.edu>
1317 * tree-profile.c (tree_init_ic_make_global_vars): Make static
1320 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1322 * doc/install.texi (Prerequisites): Document libelf usability on
1323 IRIX 5/6 and Solaris 2.
1324 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
1325 Update GNU as, GNU ld requirements.
1326 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
1327 Document Sun Studio compiler download.
1328 Update and simplify as, ld recommendations.
1329 (Specific, *-*-solaris2.7): Note obsoletion, removal.
1331 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1333 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
1334 with_tune_32 to pentium4.
1336 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
1338 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
1340 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1342 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
1343 obsoletion, removal.
1345 Document GNU as requirement.
1346 Update configure requirements.
1347 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
1348 Recomment IRIX 6.5.18+.
1349 Document IDF/IDL requirement.
1350 Document GNU as requirement.
1351 Document GNU ld bootstrap failure.
1352 Remove freeware.sgi.com reference.
1354 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1356 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
1357 UNIX V4.0, V5.0 obsoletion, removal.
1358 Remove --with-gc=simple reference.
1359 Update VM requirements during bootstrap.
1360 Remove -oldas bootstrap description.
1361 Update binutils reference.
1362 Remove comparison failure note.
1364 2010-03-31 Richard Guenther <rguenther@suse.de>
1365 Zdenek Dvorak <ook@ucw.cz>
1366 Sebastian Pop <sebastian.pop@amd.com>
1369 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
1370 with multiple arguments.
1371 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
1373 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
1375 * graphite-dependences.c (print_pddr): Call print_pdr with an
1377 * graphite-poly.c (debug_pdr): Add an extra argument for the
1380 (print_pbb_domain): Same.
1382 (print_scop_context): Same.
1384 (print_cloog): Same.
1385 (debug_pbb_domain): Same.
1389 (debug_scop_context): Same.
1391 (debug_cloog): Same.
1392 (print_scop_params): Same.
1393 (debug_scop_params): Same.
1394 (print_iteration_domain): Same.
1395 (print_iteration_domains): Same.
1396 (debug_iteration_domain): Same.
1397 (debug_iteration_domains): Same.
1398 (print_scattering_function): Same.
1399 (print_scattering_functions): Same.
1400 (debug_scattering_function): Same.
1401 (debug_scattering_functions): Same.
1402 * graphite-poly.h (debug_pdr): Update declaration.
1404 (print_pbb_domain): Same.
1406 (print_scop_context): Same.
1408 (print_cloog): Same.
1409 (debug_pbb_domain): Same.
1413 (debug_scop_context): Same.
1415 (debug_cloog): Same.
1416 (print_scop_params): Same.
1417 (debug_scop_params): Same.
1418 (print_iteration_domain): Same.
1419 (print_iteration_domains): Same.
1420 (debug_iteration_domain): Same.
1421 (debug_iteration_domains): Same.
1422 (print_scattering_function): Same.
1423 (print_scattering_functions): Same.
1424 (debug_scattering_function): Same.
1425 (debug_scattering_functions): Same.
1427 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
1429 * graphite-poly.c (print_scattering_function_1): New.
1430 (print_scattering_function): Call it.
1431 (print_scop_params): Remove spaces at the end of lines.
1434 * graphite-poly.h (print_cloog): Declared.
1435 (debug_cloog): Declared.
1437 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
1439 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
1441 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
1442 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
1443 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
1444 to switch between adding the IV bump in loop->latch or in loop->header.
1446 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
1448 * graphite-poly.c (print_scattering_function): Pretty print following
1451 (print_pbb_domain): Same.
1452 (dump_gbb_cases): Same.
1453 (dump_gbb_conditions): Same.
1456 (print_scop_params): Same.
1457 (print_scop_context): Same.
1459 (print_pbb_body): New.
1460 (lst_indent_to): New.
1461 (print_lst): Start new lines with a #.
1462 * graphite-poly.h (pbb_bb): New.
1463 (pbb_index): Use pbb_bb.
1464 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
1466 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
1468 2010-03-31 Jakub Jelinek <jakub@redhat.com>
1470 * dwarf2out.c (size_of_die): For -gdwarf-4 use
1471 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
1472 and 0 instead of 1 for dw_val_class_flag.
1473 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
1474 dw_val_class_range_list, dw_val_class_loc_list,
1475 dw_val_class_lineptr and dw_val_class_macptr, use
1476 DW_FORM_flag_present for dw_val_class_flag and
1477 DW_FORM_exprloc for dw_val_class_loc.
1478 (output_die): For -gdwarf-4 print dw_val_class_loc
1479 size as uleb128 instead of 1 or 2 bytes and don't print
1480 anything for dw_val_class_flag.
1482 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
1483 instead of cselib_lookup following by tweaking locs->setting_insn.
1486 * cselib.c (cselib_process_insn): Clear cselib_current_insn
1487 even before returning from label, setjmp call or volatile asm
1490 2010-03-31 Richard Guenther <rguenther@suse.de>
1493 * cgraphunit.c (cgraph_output_in_order): Do not allocate
1494 temporary data on stack.
1496 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1498 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
1499 (PUSHSECTION_ASM_OP): Remove.
1500 (POPSECTION_ASM_OP): Remove.
1501 (PUSHSECTION_FORMAT): Remove.
1502 * config/sol2.h (PUSHSECTION_FORMAT): Define.
1503 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
1504 * config/sol2.c (solaris_output_init_fini): Use it.
1506 2010-03-31 Jie Zhang <jie@codesourcery.com>
1509 * opt-functions.awk (var_type_struct): Use signed char type
1510 for simple variables.
1512 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1514 * config/sol2.c: Include output.h.
1515 (solaris_assemble_visibility): New function.
1516 * config/t-sol2 (sol2.o): Add output.h dependency.
1517 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
1518 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
1521 2010-03-31 Jakub Jelinek <jakub@redhat.com>
1524 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
1525 V2SImode or XFmode on PRE_DEC.
1528 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
1531 2010-03-31 Jie Zhang <jie@codesourcery.com>
1534 * reload.h (caller_save_initialized_p): Declare.
1535 * toplev.c (backend_init_target): Don't call
1536 init_caller_save but set caller_save_initialized_p to false.
1537 * caller-save.c (caller_save_initialized_p): Define.
1538 (init_caller_save): Check caller_save_initialized_p.
1539 * ira.c (ira): Call init_caller_save if flag_caller_saves.
1541 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1544 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
1545 and soft-fp/t-softfp to tmake_file.
1546 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
1547 (LIBGCC2_TF_CEXT): Define.
1550 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
1553 * cselib.c (n_useless_values): Document handling of debug locs.
1554 (n_useless_debug_values, n_debug_values): New variables.
1555 (new_elt_loc_list): Don't add to debug values, keep count.
1556 (promote_debug_loc): New.
1557 (cselib_reset_table): Zero new variables.
1558 (entry_and_rtx_equal_p): Promote debug locs.
1559 (discard_useless_locs): Increment n_useless_debug_values for
1561 (remove_useless_values): Adjust n_useless_values and n_debug_values
1562 with n_useless_debug_values.
1563 (add_mem_for_addr): Promote debug locs.
1564 (cselib_lookup_mem): Likewise.
1565 (cselib_lookup_addr): Renamed to...
1566 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
1567 (cselib_log_lookup): ... this. Turn into...
1568 (cselib_lookup_addr): ... new wrapper.
1569 (cselib_lookup_from_insn): New.
1570 (cselib_invalidate_regno): Increment n_useless_debug_values for
1572 (cselib_invalidate_mem): Likewise.
1573 (cselib_process_insn): Take n_deleted and n_debug_values into
1574 account to guard remove_useless_value call.
1575 (cselib_finish): Zero n_useless_debug_values.
1576 * cselib.h (cselib_lookup_from_insn): Declare.
1577 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
1578 (sched_analyze_2): Likewise.
1580 2010-03-30 Jakub Jelinek <jakub@redhat.com>
1582 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
1584 (adjust_mems): Replace narrowing SUBREG of expression containing
1585 just PLUS, MINUS, MULT and ASHIFT of registers and constants
1586 with operations in the narrower mode.
1589 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
1590 regs_invalidated_by_call instead all call_used_reg_set registers.
1592 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
1595 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
1596 pointer comparisons with types_compatible_p.
1597 * tree-vect-stmts.c (vectorizable_call): Same.
1598 (vectorizable_condition): Same.
1600 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1602 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
1603 stack check if the mask would be zero.
1605 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
1606 Jack Howarth <howarth@bromo.med.uc.edu>
1608 * tree-profile.c (tree_init_ic_make_global_vars): Make static
1611 2010-03-30 Joseph Myers <joseph@codesourcery.com>
1614 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
1616 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
1617 Include ___unordxf2 and ___unordtf2.
1618 * config/i386/libgcc-glibc.ver: Do not define inheritance from
1621 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
1623 * config/lm32/t-lm32: New file.
1624 * config.gcc: Use the above file when targetting lm32.
1626 2010-03-28 Duncan Sands <baldrick@free.fr>
1628 * Makefile.in (PLUGIN_HEADERS): Add except.h.
1630 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
1633 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
1634 Improve vectorization cost model diagnostic.
1636 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
1639 * tree-vect-data-refs.c (vect_analyze_data_refs): When
1640 compute_data_dependences_for_loop returns false, early exit
1641 and output an extra diagnostic for the failed data reference
1644 2010-03-29 Richard Guenther <rguenther@suse.de>
1646 PR tree-optimization/43560
1647 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
1648 (can_sm_ref_p): Treat stores to readonly locations as trapping.
1650 2010-03-29 Jie Zhang <jie@codesourcery.com>
1653 * toplev.c (process_options): Set optimization_default_node
1654 and optimization_current_node.
1655 * opts.c (decode_options): Don't set optimization_default_node
1656 and optimization_current_node.
1658 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
1660 * config/rtems.h: Abandon -qrtems_debug.
1662 2010-03-28 Jan Hubicka <jh@suse.cz>
1664 PR tree-optimization/43505
1665 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
1666 map should not be copied.
1668 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1671 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
1672 cdtors, set DECL_PRESERVE_P.
1673 * ipa.c (cgraph_externally_visible_p): Return true if declaration
1676 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
1678 PR tree-optimization/43528
1679 * stor-layout.c (place_field): Check that constant fits into
1680 unsigned HWI when skipping calculation of MS bitfield layout.
1682 2010-03-27 Jan Hubicka <jh@suse.cz>
1685 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
1686 notice_global_symbol work.
1688 2010-03-27 Jakub Jelinek <jakub@redhat.com>
1690 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
1691 instead of dwarf2out_decl.
1692 (struct var_loc_node): Remove section_label field.
1693 (dwarf2out_function_decl): New function.
1694 (dwarf2out_var_location): Don't set section_label field.
1695 (dwarf2out_begin_function): Don't empty decl_loc_table here.
1697 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1699 PR tree-optimization/43544
1700 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
1701 First argument for builtin vectorized function hook is now a
1702 tree to be able to distinguish between machine specific and
1704 * targhooks.c (default_builtin_vectorized_function): Ditto.
1705 * targhooks.h (default_builtin_vectorized_function): Ditto.
1706 * target.h (struct gcc_target): Ditto.
1707 * tree-vect-stmts.c (vectorizable_function): Ditto.
1708 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
1709 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
1712 2010-03-26 Joseph Myers <joseph@codesourcery.com>
1715 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
1716 nested binding iff it is a FUNCTION_DECL.
1717 (store_parm_decls_newstyle): Pass nested=true to bind for
1718 FUNCTION_DECLs amongst parameters.
1720 2010-03-26 Jakub Jelinek <jakub@redhat.com>
1722 * var-tracking.c (vt_expand_loc_callback): Don't run
1723 cselib_expand_value_rtx_cb in dummy mode if
1724 cselib_dummy_expand_value_rtx_cb returned false.
1726 * var-tracking.c (emit_note_insn_var_location): For one part
1727 notes with offset 0, don't add EXPR_LIST around the location.
1728 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
1729 add_location_or_const_value_attribute): Adjust for that change.
1732 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
1733 into first operand and location into second.
1734 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
1735 dw_cfi_oprnd_loc for DW_CFA_expression.
1736 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
1737 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
1738 assume first argument is regnum and second argument is location.
1740 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
1743 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
1744 of scratch register to DImode. Split to DImode comparison operator.
1745 Use SImode subreg of scratch register in the multiplication.
1746 (*cmp_sadd_sidi): Ditto.
1747 (*cmp_ssub_si): Ditto.
1748 (*cmp_ssub_sidi): Ditto.
1750 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
1753 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
1754 Remove invalid assert and wrong comment.
1756 2010-03-26 Jakub Jelinek <jakub@redhat.com>
1759 * flags.h (final_insns_dump_p): New extern.
1760 * final.c (final_insns_dump_p): New variable.
1761 (rest_of_clean_state): Set it before -fdump-final-insns=
1762 dumping, clear afterwards.
1763 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
1764 MEM_ALIAS_SET on MEMs.
1766 2010-03-26 David S. Miller <davem@davemloft.net>
1768 * configure.ac: Fix sparc GOTDATA_OP bug check.
1769 * configure: Rebuild.
1771 2010-03-26 Alan Modra <amodra@gmail.com>
1773 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
1775 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1777 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
1778 TLS_SECTION_ASM_FLAG.
1780 2010-03-25 Jakub Jelinek <jakub@redhat.com>
1783 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
1784 Clear first_function_block_is_cold.
1787 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
1788 argument if the argument is truth_value_p.
1790 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
1792 * config/rs6000/constraints.md: Update copyright year for my changes.
1795 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
1796 used in reg+reg addressing, swap registers.
1798 2010-03-24 Jakub Jelinek <jakub@redhat.com>
1801 * target.h (struct gcc_target): Add code_end hook.
1802 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
1804 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
1805 * toplev.c (compile_file): Call targetm.asm_out.code_end
1806 hook before unwind info/debug info output.
1807 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
1808 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
1809 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
1810 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
1811 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
1812 * config/i386/i386.c (ix86_file_end): Renamed to...
1813 (ix86_code_end): ... this. Make static. Don't call
1814 file_end_indicate_exec_stack. Emit unwind info using
1815 final_start_function/final_end_function.
1816 (darwin_x86_file_end): Remove.
1817 (TARGET_ASM_CODE_END): Define.
1818 * config/i386/i386.h (TARGET_ASM_FILE_END,
1819 NEED_INDICATE_EXEC_STACK): Don't define.
1820 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
1821 (TARGET_ASM_FILE_END): Define to darwin_file_end.
1822 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
1823 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
1826 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
1827 at the beginning and final_end_function at the end.
1828 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
1830 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1832 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
1833 and Sun as TLS syntax.
1834 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
1835 * configure: Regenerate.
1836 * config.in: Regenerate.
1837 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
1838 (default_elf_asm_named_section): Use it.
1839 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
1840 (i386_output_dwarf_dtprel): Likewise.
1841 (output_addr_const_extra): Likewise.
1842 (output_pic_addr_const): Lowercase @GOTTPOFF.
1843 (output_addr_const_extra): Likewise.
1844 (output_pic_addr_const): Lowercase @GOTNTPOFF.
1845 (output_addr_const_extra): Likewise.
1846 (output_pic_addr_const): Lowercase @INDNTPOFF.
1847 (output_addr_const_extra): Likewise.
1848 (output_pic_addr_const): Lowercase @NTPOFF.
1849 (output_addr_const_extra): Likewise.
1850 (output_pic_addr_const): Lowercase @TPOFF.
1851 (output_addr_const_extra): Likewise.
1852 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
1853 (*tls_global_dynamic_64): Likewise.
1854 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
1855 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
1857 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
1858 (ASM_OUTPUT_TLS_COMMON): Use it.
1859 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
1862 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
1863 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
1864 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
1865 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
1866 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
1867 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
1869 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1871 * config/i386/i386.c (override_options): Don't accept
1872 -mtls-dialect=sun any longer.
1873 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
1874 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
1875 (*tls_local_dynamic_base_32_sun): Likewise.
1876 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
1878 2010-03-24 Jakub Jelinek <jakub@redhat.com>
1881 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
1882 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
1885 * ira.c (adjust_cleared_regs): New function.
1886 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
1890 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
1892 * expr.c (expand_expr_real): Restore previous
1893 curr_insn_source_location and curr_insn_block after
1894 expand_expr_real_1 call.
1895 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
1896 instead of expand_expr_real_1.
1898 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
1900 PR rtl-optimization/43413
1901 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
1904 2010-03-22 James E. Wilson <wilson@codesourcery.com>
1907 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
1908 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
1910 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
1912 * config/i386/i386.c (ix86_target_string): Add -mfma.
1913 Fix a typo in comment.
1915 2010-03-22 Mike Stump <mikestump@comcast.net>
1918 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
1919 Don't overly align based upon packed packed fields.
1921 2010-03-22 Jason Merrill <jason@redhat.com>
1923 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
1924 Use () rather than [], and move before the element type.
1926 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1928 * doc/configfiles.texi (Configuration Files): Removed
1929 fixinc/Makefile*, intl/Makefile.*.
1930 * doc/makefile.texi: Fixed markup. Abstract from version
1931 control system used.
1932 (Makefile): Removed obsolete gcc/java/parse.y example.
1933 * doc/sourcebuild.texi: Likewise.
1934 (Top Level): Added config, gnattools, libdecnumber, libgcc,
1935 libgomp, libssp. Removed fastjar.
1936 (Miscellaneous Docs): Clarify location.
1937 Added COPYING3, COPYING3.LIB.
1938 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
1940 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1943 * config/i386/i386.c (x86_function_profiler)
1944 [!NO_PROFILE_COUNTERS]: Fix typo.
1945 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
1948 2010-03-22 Janis Johnson <janis187@us.ibm.com>
1949 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1951 * doc/sourcebuild.texi (Test Directives): Split into six
1952 subsections, with most of the current text in new subsections
1953 Directives, Selectors, and Final Actions.
1954 (Directives): Split list of test directives into multiple
1956 (Selectors): Describe use and syntax of selectors.
1957 (Effective-Target Keywords): Describe all existing keywords.
1958 (Add Options): Describe features for dg-add-options.
1959 (Require Support): Describe variants of dg-require-support.
1960 (Final Actions): Describe commands to use in dg-final.
1962 2010-03-22 Michael Matz <matz@suse.de>
1965 * recog.c (validate_replace_rtx_group): Replace also in
1966 REG_EQUAL and REG_EQUIV notes.
1968 2010-03-22 Richard Guenther <rguenther@suse.de>
1970 PR tree-optimization/43390
1971 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
1972 sure vector extracts are type correct.
1974 2010-03-22 Richard Guenther <rguenther@suse.de>
1977 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
1978 x * sqrt (x) even when optimizing for size if the target
1979 has native support for sqrt.
1981 2010-03-22 Jakub Jelinek <jakub@redhat.com>
1983 * varasm.c (make_decl_rtl_for_debug): Also clear
1984 flag_mudflap for the duration of make_decl_rtl call.
1987 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
1988 locs from preserved VALUEs.
1990 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1993 * pa.md (movmemsi): Set align to one if zero.
1994 (movmemdi): Likewise.
1996 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
1999 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
2000 with their corresponding prologue pushes.
2002 2010-03-20 Andrew Pinski <pinskia@gmail.com>
2005 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
2006 at the begining or end.
2007 (spu_expand_epilogue): Likewise.
2009 2010-03-20 Richard Guenther <rguenther@suse.de>
2011 PR rtl-optimization/43438
2012 * combine.c (make_extraction): Properly zero-/sign-extend an
2013 extraction of the low part of a CONST_INT. Also handle
2016 2010-03-19 Mike Stump <mikestump@comcast.net>
2018 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
2019 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
2020 (override_options): Use SUBTARGET32_DEFAULT_CPU.
2022 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
2025 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
2028 2010-03-19 Bernd Schmidt <bernd.schmidt@codesourcery.com>
2030 PR rtl-optimization/42258
2031 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
2032 use that may match DEF.
2035 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
2036 the cost of loading the constant rather than assuming
2038 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
2039 outer code is AND, do the same tests as the andsi3 expander and
2040 return COSTS_N_INSNS (1) if and is cheap.
2042 * optabs.c (avoid_expensive_constant): Fix formatting.
2044 2010-03-19 Michael Matz <matz@suse.de>
2047 * attribs.c (decl_attributes): When rebuilding a function pointer
2048 type use the same qualifiers as the original pointer type.
2050 2010-03-19 Martin Jambor <mjambor@suse.cz>
2052 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
2053 and is_gimple_ip_invariant_address.
2055 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2058 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2060 * config/arm/arm.c (arm_override_options): Turn off
2061 flag_dwarf2_cfi_asm for AAPCS variants.
2063 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2066 * config/arm/arm.c (emit_multi_reg_push): Update comments.
2067 Use PRE_MODIFY instead of PRE_DEC.
2068 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
2069 (vfp_emit_fstmd): Likewise.
2071 2010-03-19 Michael Matz <matz@suse.de>
2074 * builtins.c (expand_builtin_interclass_mathfn,
2075 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
2078 2010-03-19 Richard Guenther <rguenther@suse.de>
2080 PR tree-optimization/43415
2081 * tree-ssa-pre.c (phi_translate): Split out worker to ...
2082 (phi_translate_1): ... this.
2083 (phi_translate): Move all caching here. Cache all NARY
2084 and REFERENCE translations.
2086 2010-03-19 David S. Miller <davem@davemloft.net>
2088 With help from Eric Botcazou.
2089 * config/sparc/sparc.c: Include dwarf2out.h.
2090 (emit_pic_helper): Delete.
2091 (pic_helper_symbol_name): Delete.
2092 (pic_helper_emitted_p): Delete.
2093 (pic_helper_needed): New.
2094 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
2095 (get_pc_thunk_name): New.
2096 (load_pic_register): Remove 'delay_pic_helper' arg. Use
2097 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
2098 Set pic_helper_needed to true. Don't call emit_pic_helper.
2099 (sparc_expand_prologue): Update load_pic_register call.
2100 (sparc_output_mi_thunk): Likewise.
2101 (sparc_file_end): Emit a hidden comdat symbol for the PIC
2102 thunk if possible. Output CFI information as needed.
2104 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2105 Jack Howarth <howarth@bromo.med.uc.edu>
2108 * config/i386/i386.h: Fix ABI on darwin x86-32.
2110 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
2112 * tree.h: Declare make_decl_rtl_for_debug.
2113 * varasm.c (make_decl_rtl_for_debug): New.
2114 * dwarf2out.c (rtl_for_decl_location): Call it.
2115 * cfgexpand.c (expand_debug_expr): Call it.
2117 2010-03-18 Jakub Jelinek <jakub@redhat.com>
2120 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
2124 * var-tracking.c (vt_init_cfa_base): Do nothing if
2125 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
2127 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
2130 * var-tracking.c (canonicalize_vars_star): New.
2131 (dataflow_post_merge_adjust): Use it.
2133 2010-03-18 Jakub Jelinek <jakub@redhat.com>
2136 * var-tracking.c (non_suitable_const): New function.
2137 (add_uses): For DEBUG_INSNs with constants, don't record any
2138 value, instead just the constant value itself.
2139 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
2140 is not VAR_LOC_UNKNOWN_P, set var to the constant.
2141 (emit_notes_in_bb): Likewise.
2142 (emit_note_insn_var_location): For onepart variables if
2143 cur_loc is a VOIDmode constant, use DECL_MODE.
2145 2010-03-18 Martin Jambor <mjambor@suse.cz>
2148 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
2149 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
2150 all non-clones. Moved call redirection...
2151 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
2152 (cgraph_materialize_all_clones): Dispose of all
2153 combined_args_to_skip bitmaps.
2154 (verify_cgraph_node): Do not check for edges pointing to wrong
2155 nodes in inline clones.
2156 * tree-inline.c (copy_bb): Call
2157 cgraph_redirect_edge_call_stmt_to_callee.
2158 * ipa.c (cgraph_remove_unreachable_nodes): Call
2159 cgraph_node_remove_callees even when there are used clones.
2161 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
2163 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
2165 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
2168 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
2171 2010-03-18 Michael Matz <matz@suse.de>
2174 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
2175 into sqrt(x) if we need to preserve signed zeros.
2177 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
2178 Eric Botcazou <ebotcazou@adacore.com>
2180 PR rtl-optimization/43360
2181 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
2182 note if we don't know its invariant status.
2184 2010-03-18 Michael Matz <matz@suse.de>
2186 PR tree-optimization/43402
2187 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
2188 PHI chains of ssa names registered for update.
2190 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
2193 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
2194 non-offsettable and pre_modify update addressing.
2195 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
2196 and "2" alternatives "#".
2197 (*movdd_softfloat32): Make all alternatives "#";
2198 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
2199 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
2200 (*movdf_softfloat32): Make all alternatives "#";
2201 (movdi): Use the new DIFD mode iterator to create a common splitter
2202 for movdi, movdf and movdd patterns.
2204 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
2206 * common.opt (dumpdir): Remove redundant tab.
2208 2010-03-17 Martin Jambor <mjambor@suse.cz>
2210 PR tree-optimization/43347
2211 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
2212 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
2214 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
2216 PR rtl-optimization/42216
2217 * regrename.c (create_new_chain): New function, broken out from...
2218 (scan_rtx_reg): ... here. Call it. Handle the case where we are
2219 appending a use to an empty chain.
2220 (build_def_use): Remove previous changes that convert OP_INOUT to
2221 OP_OUT operands; instead detect the case where an OP_INOUT operand
2222 uses a previously untracked register and create an empty chain for it.
2224 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2226 * doc/extend.texi (Function Attributes): Rewrite unfinished
2227 sentence in ms_abi documentation.
2229 2010-03-17 Alan Modra <amodra@gmail.com>
2231 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
2232 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
2233 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
2234 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
2236 2010-03-16 Richard Henderson <rth@redhat.com>
2239 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
2240 (lower_try_finally): Save and restore eh_seq around the expansion
2243 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
2245 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
2246 statements before splitting block.
2248 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2250 * doc/sourcebuild.texi (Testsuites): Fix markup.
2251 Use pathnames relative to gcc/testsuite.
2252 (Test Directives): Move description of how timeout is determined.
2253 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
2254 (C Tests): Correct gcc.misc-tests directory.
2255 Framework tests now live in gcc.test-framework.
2257 2010-03-16 Richard Guenther <rguenther@suse.de>
2260 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
2261 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
2263 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
2264 Alexandre Oliva <aoliva@redhat.com>
2266 PR tree-optimization/42917
2267 * lambda-code.c (remove_iv): Skip debug statements.
2268 (lambda_loopnest_to_gcc_loopnest): Likewise.
2269 (not_interesting_stmt): Debug statements are not interesting.
2271 2010-03-16 Jakub Jelinek <jakub@redhat.com>
2275 * cselib.c (cselib_preserve_constants,
2276 cfa_base_preserved_val): New static variables.
2277 (preserve_only_constants): New function.
2278 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
2279 clear its REG_VALUES. If cselib_preserve_constants, don't
2280 empty the whole hash table, but preserve there VALUEs with constants,
2281 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
2282 (cselib_preserve_cfa_base_value): New function.
2283 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
2284 (cselib_init): Change argument to int bitfield. Set
2285 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
2287 (cselib_finish): Clear cselib_preserve_constants and
2288 cfa_base_preserved_val.
2289 * cselib.h (enum cselib_record_what): New enum.
2290 (cselib_init): Change argument to int.
2291 (cselib_preserve_cfa_base_value): New prototype.
2292 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
2293 * dse.c (dse_step1): Likewise.
2294 * cfgcleanup.c (thread_jump): Likewise.
2295 * sched-deps.c (sched_analyze): Likewise.
2296 * gcse.c (local_cprop_pass): Likewise.
2297 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
2298 If FN is non-NULL, call the callback always and whenever it returns
2299 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
2300 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
2301 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
2302 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
2303 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
2304 * var-tracking.c: Include recog.h.
2305 (bb_stack_adjust_offset): Remove.
2306 (vt_stack_adjustments): Don't call it, instead just gather the
2307 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
2308 (adjust_stack_reference): Remove.
2309 (compute_cfa_pointer): New function.
2310 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
2311 (struct adjust_mem_data): New type.
2312 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
2314 (get_address_mode): New function.
2315 (replace_expr_with_values): Use it.
2316 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
2317 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
2318 (adjust_sets): Remove.
2319 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
2320 Use get_address_mode.
2321 (get_adjusted_src): Remove.
2322 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
2323 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
2324 (add_with_sets): Don't call adjust_sets.
2325 (fp_setter, vt_init_cfa_base): New functions.
2326 (vt_initialize): Change return type to bool. Move most of pool etc.
2327 initialization to the beginning of the function from end. Pass
2328 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
2329 If !frame_pointer_needed, call vt_stack_adjustment before mos
2330 vector is filled, call vt_init_cfa_base if argp/framep has been
2331 eliminated to sp. If frame_pointer_needed and argp/framep has
2332 been eliminated to hard frame pointer, set
2333 hard_frame_pointer_adjustment and call vt_init_cfa_base after
2334 encountering fp setter in the prologue. For MO_ADJUST, call
2335 log_op_type before pusing the op into mos vector, not afterwards.
2336 Call adjust_insn before cselib_process_insn/add_with_sets,
2337 call cancel_changes (0) afterwards.
2338 (variable_tracking_main_1): Adjust for vt_initialize calling
2339 vt_stack_adjustments and returning whether it succeeded or not.
2341 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
2343 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
2346 2010-03-15 Jakub Jelinek <jakub@redhat.com>
2348 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
2350 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
2351 drap_reg has not been set.
2353 2010-03-15 Michael Matz <matz@suse.de>
2356 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
2357 use it to expand block copies.
2358 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
2359 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
2360 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
2362 2010-03-15 Richard Guenther <rguenther@suse.de>
2364 PR tree-optimization/43367
2365 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
2368 2010-03-15 Richard Guenther <rguenther@suse.de>
2370 PR tree-optimization/43317
2371 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
2373 2010-03-15 Martin Jambor <mjambor@suse.cz>
2375 PR tree-optimization/43141
2376 * tree-sra.c (create_abstract_origin): New function.
2377 (modify_function): Call create_abstract_origin.
2379 2010-03-15 Chris Demetriou <cgd@google.com>
2381 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
2384 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
2387 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
2388 call insert_out_of_ssa_copy for default definitions.
2390 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
2392 * graphite-clast-to-gimple.c (my_long_long): Defined.
2393 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
2394 * graphite-sese-to-poly.c (my_long_long): Defined.
2395 (scop_ivs_can_be_represented): Use it.
2397 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
2399 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
2400 graphite-max-bbs-per-function, and loop-block-tile-size.
2401 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
2403 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
2405 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
2407 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
2408 forward declaration.
2409 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
2410 (add_upper_bounds_from_estimated_nit): New.
2411 (build_loop_iteration_domains): Use it.
2413 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
2415 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
2417 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
2420 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
2421 should be an INTEGER_CST. Also handle CASE_CONVERT.
2423 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
2425 * graphite.c (graphite_initialize): To bound the number of bbs per
2426 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
2427 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
2428 * doc/invoke.texi: Document it.
2430 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
2432 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
2433 * graphite-sese-to-poly.h (build_poly_scop): Same.
2435 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
2437 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
2438 the number of parameters in the scop. Use as an upper bound
2439 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
2440 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
2441 * doc/invoke.texi: Document it.
2443 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
2445 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
2446 * doc/c-tree.texi: Remove.
2447 * doc/generic.texi: Merge c-tree.texi here.
2448 * doc/gccint.texi (Trees): Remove menu entry.
2449 (c-tree.texi): Remove @include.
2450 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
2451 * doc/languages.texi (Reading RTL): Ditto.
2453 2010-03-12 Steve Ellcey <sje@cup.hp.com>
2456 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
2458 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
2461 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
2462 code added to work around reload clobbering CONST insns.
2464 2010-03-12 Jakub Jelinek <jakub@redhat.com>
2466 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
2467 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
2468 (cselib_preserve_only_values): Remove retain argument, don't
2469 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
2470 * cselib.h (cselib_preserve_only_values): Remove retain argument.
2471 * var-tracking.c (micro_operation): Move insn field before union.
2472 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
2473 (struct variable_tracking_info_def): Remove n_mos field, change
2474 mos into a vector of micro_operations.
2475 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
2476 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
2477 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
2478 changing into a vector.
2479 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
2480 come before all other uops generated by add_stores.
2481 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
2483 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
2484 a vector. Run just one pass over the bbs instead of separate counting
2485 and computation phase.
2486 (vt_finalize): Free VTI (bb)->mos vector instead of array.
2489 * tree-inline.c (remap_decls): Put old_var rather than origin_var
2490 into *nonlocalized_list vector.
2491 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
2492 even if origin is non-NULL.
2493 (gen_variable_die): Likewise.
2494 (process_scope_var): Don't change origin.
2495 (gen_decl_die): Likewise.
2496 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
2497 before adding new edges instead of after it, fix moving over
2500 2010-03-11 David S. Miller <davem@davemloft.net>
2502 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
2504 * configure: Rebuild.
2506 2010-03-11 Martin Jambor <mjambor@suse.cz>
2508 PR tree-optimization/43257
2509 * tree.c (assign_assembler_name_if_neeeded): New function.
2510 (free_lang_data_in_cgraph): Assembler name assignment moved to the
2512 * tree.h (assign_assembler_name_if_neeeded): Declare.
2513 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
2514 the function if needed.
2516 2010-03-11 Chris Demetriou <cgd@google.com>
2518 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
2519 include/stdint-gcc.h, and include/stdint.h world-readable.
2521 2010-03-11 Richard Guenther <rguenther@suse.de>
2523 PR tree-optimization/43255
2524 * tree-vrp.c (process_assert_insertions_for): Do not insert
2525 asserts for trivial conditions.
2527 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2529 PR tree-optimization/43280
2530 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
2531 generation. Move calculation of size out of the if branch.
2532 (find_bswap): Modify compare number generation.
2534 2010-03-11 Richard Guenther <rguenther@suse.de>
2537 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
2538 (input_gimple_stmt): Fixup handled component types during
2539 operand read. Also fix up decls in ADDR_EXPRs.
2541 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
2543 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
2544 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
2546 2010-03-10 Jan Hubicka <jh@suse.cz>
2549 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
2550 * varasm.c (get_variable_section): Don't do that here...
2551 (make_decl_rtl): ... and here.
2552 (do_assemble_alias): Produce decl RTL.
2553 (assemble_alias): Likewise.
2555 2010-03-10 Jakub Jelinek <jakub@redhat.com>
2558 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
2559 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
2561 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
2562 (based_loc_descr): Only express drap or vdrap regno based expressions
2563 using DW_OP_fbreg when not optimizing.
2564 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
2565 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
2566 REG_CFA_SET_VDRAP note.
2568 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
2570 PR tree-optimization/43236
2571 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
2572 error in calculation of base address in reverse iteration case.
2573 (generate_builtin): Take number of latch executions if the statement
2576 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
2579 * tree-eh.c: Include pointer-set.h.
2580 (lower_eh_dispatch): Filter out duplicate case labels and
2581 remove the unneeded edge when the label is unused. Return
2582 true when some edges are removed.
2583 (execute_lower_eh_dispatch): When any lowering resulted in
2584 removing an edge, also delete unreachable blocks.
2586 2010-03-10 Jakub Jelinek <jakub@redhat.com>
2589 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2590 UNSPEC_MACHOPIC_OFFSET.
2592 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
2595 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
2596 (m68k_delegitimize_address): New function.
2598 2010-03-09 Jakub Jelinek <jakub@redhat.com>
2601 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
2604 * var-tracking.c (adjust_sets): New function.
2605 (count_with_sets, add_with_sets): Use it.
2606 (get_adjusted_src): New inline function.
2607 (add_stores): Use it.
2610 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
2611 call cselib_dummy_expand_value_rtx_cb instead of
2612 cselib_expand_value_rtx_cb.
2615 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
2616 * config/i386/i386.c: Include debug.h and dwarf2out.h.
2617 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
2618 and .cfi_endproc around the pic thunks.
2619 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
2620 all queued unwind info register saves are saved before the call.
2621 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
2622 considered as sp-=4 for unwind info and the pop as sp+=4 which
2623 also clobbers dest, but doesn't actually restore it.
2626 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
2627 RTX_FRAME_RELATED_P.
2629 2010-03-09 Jie Zhang <jie@codesourcery.com>
2631 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
2632 whitespaces in output template.
2634 2010-03-09 Jie Zhang <jie@codesourcery.com>
2636 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
2639 2010-03-08 Jakub Jelinek <jakub@redhat.com>
2641 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
2642 builtins.exp in a separate job.
2644 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
2646 * graphite-sese-to-poly.c (add_param_constraints): Use
2647 lower_bound_in_type and upper_bound_in_type.
2649 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
2651 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
2652 instead of unsigned_type_node.
2654 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
2655 Reza Yazdani <reza.yazdani@amd.com>
2658 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
2659 on pointer type parameters.
2661 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
2665 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
2666 handle conversions from pointer to integers.
2667 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
2668 induction variable, to be able to work with code generated by CLooG.
2669 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
2670 (build_poly_scop): Bail out if we cannot codegen a loop.
2672 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
2674 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
2675 code generation with gloog_error.
2677 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
2679 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
2680 Call fold_convert on all the returned values.
2681 (expand_scalar_variables_expr): Pass to
2682 expand_scalar_variables_ssa_name the type of the resulting expression.
2684 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
2686 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
2687 ppl_min_for_le_pointset.
2688 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
2689 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
2691 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
2693 * graphite-dependences.c (map_into_dep_poly): Removed.
2694 (dependence_polyhedron_1): Use combine_context_id_scat.
2696 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
2698 * graphite-poly.h (struct poly_scattering): Add layout documentation.
2699 (struct poly_bb): Same.
2700 (combine_context_id_scat): New.
2702 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
2705 * sese.c (name_defined_in_loop_p): Return false for default
2708 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
2710 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
2711 and clean up the logic.
2713 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
2715 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
2718 2010-03-08 Jakub Jelinek <jakub@redhat.com>
2720 * var-tracking.c (remove_cselib_value_chains): Define only for
2722 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
2723 delete_slot_part, emit_notes_for_differences_1): Don't call
2724 remove_cselib_value_chains here.
2725 (set_slot_part, emit_notes_for_differences_2): Don't call
2726 add_cselib_value_chains here.
2727 (preserved_values): New vector.
2728 (preserve_value): New function.
2729 (add_uses, add_stores, vt_add_function_parameters): Use it
2730 instead of cselib_preserve_value.
2731 (changed_values_stack): New vector.
2732 (check_changed_vars_0): New function.
2733 (check_changed_vars_1, check_changed_vars_2): Use it.
2734 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
2735 changed_values_stack VALUEs.
2736 (vt_emit_notes): For all preserved_values call
2737 add_cselib_value_chains. If ENABLE_CHECKING call
2738 remove_cselib_value_chains before verifying value_chains is empty.
2739 Initialize and free changed_values_stack.
2740 (vt_initialize): Initialize preserved_values.
2741 (vt_finalize): Free preserved_values.
2743 2010-03-08 Richard Guenther <rguenther@suse.de>
2745 PR tree-optimization/43269
2746 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
2749 2010-03-08 Martin Jambor <mjambor@suse.cz>
2751 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
2752 (ipa_is_param_called): Removed.
2753 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
2754 (ipa_print_node_params): Do not print the called flag.
2755 (ipa_write_node_info): Do not stream the called flag.
2756 (ipa_read_node_info): Likewise.
2758 2010-03-07 Jakub Jelinek <jakub@redhat.com>
2761 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
2762 * cselib.c (struct expand_value_data): Add dummy field.
2763 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
2765 (cselib_dummy_expand_value_rtx_cb): New function.
2766 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
2768 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
2769 * var-tracking.c: Include pointer-set.h.
2770 (variable): Change n_var_parts to char from int. Add
2771 cur_loc_changed and in_changed_variables fields.
2772 (variable_canonicalize): Remove.
2773 (shared_var_p): New inline function.
2774 (unshare_variable): Maintain cur_loc_changed and
2775 in_changed_variables fields. If var was in changed_variables,
2776 replace it there with new_var. Just copy cur_loc instead of
2777 resetting it to something else.
2778 (variable_union): Don't recompute cur_loc. Use shared_var_p.
2779 (dataflow_set_union): Don't call variable_canonicalize.
2780 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
2781 of their DEBUG_EXPR_TREE_DECLs.
2782 (canonicalize_loc_order_check): Verify that cur_loc is NULL
2783 and in_changed_variables and cur_loc_changed is false.
2784 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
2785 and cur_loc_changed. Don't update cur_loc here.
2786 (variable_merge_over_src): Don't call variable_canonicalize.
2787 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
2788 removing loc that is equal to cur_loc, clear cur_loc,
2789 set cur_loc_changed and ensure variable_was_changed is called.
2790 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
2791 compare pointers in cur_loc check, if it is equal to loc,
2792 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
2793 (variable_different_p): Remove compare_current_location argument,
2794 don't compare cur_loc.
2795 (dataflow_set_different_1): Adjust variable_different_p caller.
2796 (variable_was_changed): If dv had some var in changed_variables
2797 already, reset in_changed_variables flag for it and propagate
2798 cur_loc_changed over to the new variable. On empty var
2799 always set cur_loc_changed. Set in_changed_variables on whatever
2800 var is added to changed_variables.
2801 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
2802 Use shared_var_p. When removing loc that is equal to cur_loc,
2803 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
2804 end, don't set it to something else, just call variable_was_changed.
2805 (delete_slot_part): Use shared_var_p. When cur_loc equals to
2806 loc being removed, clear cur_loc and set cur_loc_changed.
2807 Set cur_loc_changed if all locations have been removed.
2808 (struct expand_loc_callback_data): New type.
2809 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
2810 allocated. Always create SUBREGs if simplify_subreg failed.
2811 Prefer to use cur_loc, when that fails and still in
2812 changed_variables (and seen first time) recompute it. Set
2813 cur_loc_changed of variables which had to change cur_loc and
2814 compute elcd->cur_loc_changed if any of the subexpressions used
2815 had to change cur_loc.
2816 (vt_expand_loc): Adjust to pass arguments in
2817 expand_loc_callback_data structure.
2818 (vt_expand_loc_dummy): New function.
2819 (emitted_notes): New variable.
2820 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
2821 that weren't used for any other decl in current
2822 emit_notes_for_changes call call vt_expand_loc_dummy to update
2823 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
2824 first loc_chain location if NULL before. Always use just
2825 cur_loc instead of first loc_chain location. When cur_loc_changed
2826 is false, when not --enable-checking=rtl just don't emit any note.
2827 When rtl checking, compute the note and assert it is the same
2828 as previous note. Clear cur_loc_changed and in_changed_variables
2829 at the end before removing from changed_variables.
2830 (check_changed_vars_3): New function.
2831 (emit_notes_for_changes): Traverse changed_vars to call
2832 check_changed_vars_3 on each changed var.
2833 (emit_notes_for_differences_1): Clear cur_loc_changed and
2834 in_changed_variables. Recompute cur_loc of new_var.
2835 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
2836 (vt_emit_notes): Initialize and destroy emitted_notes.
2838 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
2840 PR rtl-optimization/42220
2841 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
2842 Use verify_reg_tracked to determine if we should use OP_OUT rather
2844 (build_def_use): If we see an in-out operand for a register that we
2845 know nothing about, treat is an output if possible, fail the block if
2848 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
2851 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
2854 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
2857 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
2858 uses of relevant DEFs that are dead outside the loop too.
2860 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
2862 * var-tracking.c (dataflow_set_merge): Swap src and src2.
2864 2010-01-13 Jakub Jelinek <jakub@redhat.com>
2866 * var-tracking.c (values_to_unmark): New variable.
2867 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
2868 values_to_unmark vector. Moved body to...
2869 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
2870 instead queue it into values_to_unmark vector.
2871 (vt_find_locations): Free values_to_unmark vector.
2873 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
2875 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
2876 (site.exp): Export them when plugins are enabled.
2878 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
2881 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
2883 (chrec_fold_multiply): Same.
2885 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
2888 * c-decl.c (build_compound_literal): Return early if init is
2891 2010-03-04 Martin Jambor <mjambor@suse.cz>
2893 PR tree-optimization/43164
2894 PR tree-optimization/43191
2895 * tree-sra.c (type_consists_of_records_p): Reject records with
2896 zero-size bit-fields at the end.
2898 2010-03-04 Mike Stump <mikestump@comcast.net>
2900 * Makefile.in (TAGS): Remove *.y.
2902 2010-03-04 Richard Guenther <rguenther@suse.de>
2904 PR tree-optimization/40761
2905 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
2907 (my_rev_post_order_compute): New function.
2908 (init_pre): Call it.
2910 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
2913 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
2914 decrease the cost of an IV candidate when the cost is infinite.
2916 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2918 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
2919 Use '3DNow!' for the extension of that name, ensure normal space
2921 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
2923 2010-03-03 Jeff Law <law@redhat.com>
2925 * PR middle-end/32693
2926 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
2927 than gen_rtx_SUBREG.
2928 (extract_bit_field_1): Likewise.
2930 2010-03-03 Janis Johnson <janis187@us.ibm.com>
2932 * doc/sourcebuild.texi (Test directives): Document that arguments
2933 include-opts and exclude-opts are now optional for dg-skip-if,
2934 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
2936 2010-03-03 Jason Merrill <jason@redhat.com>
2939 * cgraph.h (varpool_node): Add extra_name field.
2940 * varpool.c (varpool_extra_name_alias): New.
2941 (varpool_assemble_decl): Emit extra name aliases.
2942 (varpool_mark_needed_node): Look past an extra name alias.
2943 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
2944 * lto-streamer-in.c (lto_input_tree): Read it.
2945 * lto-streamer-out.c (output_unreferenced_globals): Write it.
2947 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
2949 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
2950 (sparc*-*-solaris2*): ...this.
2952 2010-03-03 Jakub Jelinek <jakub@redhat.com>
2955 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
2956 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
2957 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
2958 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
2961 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
2962 fallthrough to default handling, just with want_address 0 instead of 2.
2963 For single element lists, add_AT_loc directly, otherwise create an
2964 artificial variable DIE and stick location list to it.
2967 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
2968 (VAL_EXPR_HAS_REVERSE): Define.
2969 (reverse_op): New function.
2970 (add_stores): For reversible operations add an extra MO_VAL_USE.
2972 2010-03-02 Jason Merrill <jason@redhat.com>
2974 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
2976 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
2978 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
2979 (sparc64-*-linux*): Likewise.
2980 (sparc64-*-solaris2*): Include assembler files before linker ones.
2981 (sparc-*-solaris2*): Simplify and reorder to match previous case.
2982 * config/sparc/gas.h: Delete.
2983 * config/sparc/sol2-64.h: Add copyright notice.
2984 * config/sparc/sol2-gas-bi.h: Likewise.
2985 * config/sparc/sol2-gld.h: Likewise.
2986 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
2987 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
2988 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
2989 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
2990 (sparc_elf_asm_named_section): Rename into...
2991 (sparc_solaris_elf_asm_named_section): ...this. Always define.
2993 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
2995 * config/alpha/alpha.c (override_options): Fix -mtune error message.
2997 2010-03-02 Jeff Law <law@redhat.com>
3000 * reload1.c (rtx_p, substitute_stack): Declare.
3001 (substitute): Record addresses of changed rtxs.
3002 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
3003 Restore the original rtx when complete.
3004 (reload): Free subsitute_stack when complete.
3006 2010-03-02 Janis Johnson <janis187@us.ibm.com>
3008 * doc/gccint.texi (menu): Add Testsuites as a chapter.
3009 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
3011 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
3012 LTO Testing, gcov Testing, profopt Testing, compat Testing,
3013 Torture Tests): Change from subsection to section.
3015 2010-03-02 Jakub Jelinek <jakub@redhat.com>
3016 Steven Bosscher <steven@gcc.gnu.org>
3018 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
3021 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
3024 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
3025 the assignment from the new induction variable to the assignment
3026 of the value from the original loop PHI function.
3028 2010-03-01 Janis Johnson <janis187@us.ibm.com>
3029 Daniel Jacobowitz <dan@codesourcery.com>
3031 * doc/sourcebuild.texi (Test directives): Clarify options to
3034 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3036 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
3037 Disable cfi directives unless GCC and gas agree on using read-only
3038 .eh_frame sections for 64-bit.
3039 * configure: Regenerate.
3041 2010-03-01 Richard Guenther <rguenther@suse.de>
3043 PR tree-optimization/43220
3044 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
3045 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
3047 2010-03-01 Richard Guenther <rguenther@suse.de>
3048 Martin Jambor <mjambor@suse.cz>
3051 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
3052 gimplified parameters.
3054 2010-03-01 Christian Bruel <christian.bruel@st.com>
3056 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
3058 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
3060 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
3062 2010-03-01 Richard Guenther <rguenther@suse.de>
3065 * expr.c (expand_assignment): Use the alias-oracle to tell
3066 if the rhs aliases the result decl.
3068 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3071 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
3072 to sol_gt_pch_get_address.
3073 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
3074 64-bit, SPARC and x86.
3075 (sol_gt_pch_get_address): New function.
3077 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
3079 * toplev.h (inform_n, error_n): Declare.
3080 * diagnostic.c (inform_n, error_n): New function.
3082 2010-03-01 Jakub Jelinek <jakub@redhat.com>
3084 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
3085 has no rtl yet when processing local_decls, queue it and recheck
3086 if deferred stack allocation hasn't assigned it rtl.
3088 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
3090 * config/sh/sh.c (unspec_bbr_uid): New.
3091 (gen_block_redirect): Use it instead of INSN_UID.
3092 (gen_far_branch): Likewise.
3094 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
3096 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
3097 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
3099 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3101 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
3102 (Warning Options): -Wno-conversion-null is valid for
3103 Objective-C++ as well.
3104 * doc/tm.texi (Named Address Spaces): Likewise.
3105 * doc/plugins.texi (Plugins): Replace TABs with spaces.
3106 * doc/tree-ssa.texi (Tree SSA): Likewise.
3108 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
3111 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
3112 by default. Don't set the default arch for
3113 i[34567]86-*-darwin*|x86_64-*-darwin*.
3115 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
3118 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
3119 default. Set the default 32bit/64bit archs with $with_arch
3120 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
3122 2010-02-27 Richard Guenther <rguenther@suse.de>
3124 PR tree-optimization/43186
3125 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
3126 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
3127 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
3128 unroller iterations.
3130 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
3132 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
3133 required and i[34567]86-*-* targets don't support 64bit ISA.
3135 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
3138 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
3141 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
3143 * config.gcc: Set the default arch at least to Prescott for
3144 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
3145 if SSE math is enabled.
3147 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
3149 * diagnostic.c (diagnostic_initialize): Update.
3150 (diagnostic_report_diagnostic): Test inhibit_notes_p for
3152 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
3153 (diagnostic_inhibit_notes): New.
3154 * toplev.c (process_options): inhibit notes with -fcompare-debug.
3156 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
3159 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
3160 * doc/standards.texi: Likewise.
3161 * doc/extend.texi: Likewise.
3162 * doc/trouble.texi: Likewise.
3163 * doc/cppopts.texi: Likewise.
3164 * doc/install.texi: Likewise.
3165 * c.opt (std=c90,std=gnu90): New options.
3166 * c-opts.c (c_common_handle_option): Handle them.
3168 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
3171 * c-decl.c (undeclared_variable): Use an informative note.
3173 2010-02-26 Richard Guenther <rguenther@suse.de>
3175 PR tree-optimization/43186
3176 * gimple.h (gimple_fold): Remove.
3177 * gimple.c (gimple_fold): Remove. Inline into single user ...
3178 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
3179 Try harder for conditions.
3181 2010-02-26 Jakub Jelinek <jakub@redhat.com>
3184 * function.c (used_types_insert): Don't skip through named pointer
3185 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
3186 and it is different from the main variant's type.
3188 2010-02-26 Nick Clifton <nickc@redhat.com>
3190 * config/rx/rx.md (sminsi3): Remove bogus alternative.
3192 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
3194 * config.gcc: Support --with-fpmath=sse for x86.
3196 * config/i386/ssemath.h: New.
3198 * doc/install.texi (--with-fpmath=sse): Documented.
3200 2010-02-26 Richard Guenther <rguenther@suse.de>
3202 PR tree-optimization/43188
3203 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
3204 vector types of over-aligned element type.
3206 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
3209 * config/i386/i386.c (expand_vec_perm_blend): Use correct
3210 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
3212 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3214 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
3216 2010-02-26 Jakub Jelinek <jakub@redhat.com>
3218 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
3219 * var-tracking.c: Include diagnostic.h.
3220 (debug_dv): New function.
3221 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
3224 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
3225 (add_value_chain, add_value_chains, remove_value_chain,
3226 remove_value_chains): Handle DEBUG_EXPRs.
3227 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
3230 * regcprop.c (struct queued_debug_insn_change): New type.
3231 (struct value_data_entry): Add debug_insn_changes field.
3232 (struct value_data): Add n_debug_insn_changes field.
3233 (debug_insn_changes_pool): New variable.
3234 (free_debug_insn_changes, apply_debug_insn_changes,
3235 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
3236 (kill_value_one_regno): Call free_debug_insn_changes if needed.
3237 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
3239 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
3241 (copyprop_hardreg_forward_1): Don't call apply_change_group for
3242 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
3243 changes, call cprop_find_used_regs via note_stores.
3244 (copyprop_hardreg_forward): When copying vd from predecessor
3245 which has any queued DEBUG_INSN changes, make sure the pointers are
3246 cleared. At the end call df_analyze and then if there are any
3247 DEBUG_INSN changes queued at the end of some basic block for still
3248 live registers, apply them.
3249 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
3251 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
3253 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
3256 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
3258 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
3259 targets. Set the default with_cpu/with_arch from arch/cpu.
3260 Allow x86-64 and native for with_cpu/with_arch.
3262 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
3264 * ebitmap.c: Change calls to verify_popcount with calls to
3265 sbitmap_verify_popcount.
3266 (ebitmap_clear_bit): Fixed map->cacheindex test and
3267 map>cache update when bit clearing results in an empty
3270 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
3273 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
3274 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
3275 and support both V2DF and V2DI modes.
3276 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
3277 support both V2DF and V2DI modes.
3278 (general): Delete trailing whitespace from a few patterns.
3280 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3281 V2DF/V2DI interleave high/low builtins.
3283 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
3286 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
3287 interleave high/low functions.
3289 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
3291 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
3292 #pragma extern_prefix.
3294 2010-02-25 Jakub Jelinek <jakub@redhat.com>
3297 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
3298 BLKmode, assert op0 is a MEM and just adjust its mode.
3301 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
3302 if bitpos isn't multiple of mode's bitsize.
3304 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
3306 * c.opt (-ftemplate-depth=): New.
3307 (-ftemplate-depth-): Deprecate.
3308 * optc-gen.awk: Handle -ftemplate-depth=.
3309 * opth-gen.awk: Likewise.
3310 * c-opts.c (c_common_handle_option): Likewise.
3311 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
3313 2010-02-24 Jason Merrill <jason@redhat.com>
3315 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
3317 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3319 * cfg.c (alloc_aux_for_block): Remove inline.
3320 (alloc_aux_for_edge): Likewise.
3322 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3324 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
3326 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3328 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
3329 * config/i386/sol2-gas.h: New file.
3330 * config.gcc (i[34567]86-*-solaris2*): Use it.
3332 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
3335 * c-typeck.c (ep_convert_and_check): New.
3336 (build_conditional_expr): Use it.
3337 (build_binary_op): Likewise.
3339 2010-02-24 Jakub Jelinek <jakub@redhat.com>
3341 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
3344 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
3345 bounds even for -O+.
3346 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
3347 expr needs to have DECL_NAME set.
3349 2010-02-24 Nick Clifton <nickc@redhat.com>
3351 * config/mep/mep.c: Include gimple.h.
3352 (mep_function_uses_sp): Delete unused function.
3353 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
3354 parameters. Use unsigned integers to count args. Return a
3355 NULL_RTX instead of an error_mark_node. Toidy up formatting.
3357 2010-02-23 Jakub Jelinek <jakub@redhat.com>
3360 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
3361 greater or equal to nelt instead of 2 * nelt.
3362 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
3365 2010-02-23 Jason Merrill <jason@redhat.com>
3368 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
3369 in cfun->local_decls even if they have register types.
3372 * stor-layout.c (place_field): Don't warn about unnecessary
3373 DECL_PACKED if the type is packed.
3375 2010-02-23 Jakub Jelinek <jakub@redhat.com>
3378 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
3379 GOTOFF relocs, even when the base reg isn't pic pointer.
3381 2010-02-23 Michael Matz <matz@suse.de>
3384 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
3385 (expand_gimple_basic_block): Generate and use debug temps if there
3386 are debug uses left after the last real use of TERed ssa names.
3387 Unlink debug immediate uses when they are expanded.
3389 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
3392 * config/i386/i386.c (override_options): Reorganise to provide
3393 better error messages.
3395 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
3398 * graphite-scop-detection.c (create_single_exit_edge): Move
3399 the call to find_single_exit_edge to....
3400 (create_sese_edges): ...here. Don't handle multiple edges
3401 exiting the function.
3402 (build_graphite_scops): Don't handle multiple edges
3403 exiting the function.
3405 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
3408 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
3409 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
3411 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
3414 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
3416 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3419 * c-typeck.c (convert_arguments): Print declaration location.
3420 * c-common.c (validate_nargs): Rename as
3421 builtin_function_validate_nargs.
3422 (check_builtin_function_arguments): Update.
3424 2010-02-22 Richard Guenther <rguenther@suse.de>
3427 * tree-inline.c (declare_return_variable): Use the type of
3428 the call stmt lhs if available.
3430 2010-02-22 Duncan Sands <baldrick@free.fr>
3432 * passes.c (register_pass): Always consider all pass lists when
3433 ref_pass_instance_number is zero.
3435 2010-02-22 Richard Guenther <rguenther@suse.de>
3437 PR tree-optimization/42749
3438 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
3439 parameter. Do arithmetic in the original type.
3440 (update_accumulator_with_ops): Likewise.
3441 (adjust_accumulator_values): Adjust.
3443 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3445 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
3446 (QI to BLKmode splitter): New splitter.
3448 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
3450 * config/i386/i386.c (initial_ix86_tune_features): Turn on
3451 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
3453 2010-02-22 Richard Guenther <rguenther@suse.de>
3455 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
3457 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
3459 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
3460 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
3461 ($(T)crti.o, $(T)crtn.o): Remove rules.
3463 2010-02-21 Tobias Burnus <burnus@net-b.de>
3466 * doc/invoke.texi (-fassociative-math): Document that this
3467 option is automatically enabled for Fortran.
3469 2010-02-20 David S. Miller <davem@davemloft.net>
3471 * configure.ac: Test if linker and assembler properly support
3472 GOTDATA_OP relocations.
3473 * configure: Rebuild.
3474 * config.in: Likewise.
3475 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
3476 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
3477 (movsi_high_pic): Likewise.
3478 (movdi_lo_sum_pic): Likewise.
3479 (movdi_high_pic): Likewise.
3480 (movsi_pic_gotdata_op): New pattern.
3481 (movdi_pic_gotdata_op): Likewise.
3482 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
3483 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
3485 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
3488 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
3489 attribute to ssemul.
3490 (xop_mulv2div2di3_high): Ditto.
3492 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3495 * c.opt (Wconversion-null): New option.
3496 * doc/invoke.texi (Wconversion-null): Document.
3498 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3500 * common.opt (Wlarger-than-): Add Undocumented.
3502 2010-02-19 Mike Stump <mikestump@comcast.net>
3504 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
3506 2010-02-19 Jason Merrill <jason@redhat.com>
3509 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
3510 * configure: Likewise.
3512 2010-02-20 Alan Modra <amodra@gmail.com>
3515 * cgraph.h (cgraph_make_decl_local): Declare.
3516 * cgraph.c (cgraph_make_decl_local): New function.
3517 (cgraph_make_node_local): Use it.
3518 * cgraphunit.c (cgraph_function_versioning): Likewise.
3519 * ipa.c (function_and_variable_visibility): Likewise.
3521 2010-02-19 Jakub Jelinek <jakub@redhat.com>
3524 * except.c (sjlj_emit_function_enter): Don't call
3525 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
3527 * rtl.h (add_reg_br_prob_note): Remove prototype.
3529 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
3532 * c-common.c (conversion_warning): Remove widening conversions
3533 before checking the conversion of integers to reals.
3535 2010-02-19 Mike Stump <mikestump@comcast.net>
3538 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
3541 * cgraphunit.c (process_function_and_variable_attributes): Check
3542 DECL_PRESERVE_P instead of looking up attribute "used".
3543 * ipa-pure-const.c (check_decl): Likewise.
3544 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
3545 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
3546 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
3547 instead of attribute "used".
3548 * config/sol2-c.c (solaris_pragma_init): Likewise.
3549 (solaris_pragma_fini): Likewise.
3551 2010-02-19 Jakub Jelinek <jakub@redhat.com>
3553 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
3554 Use XCNEW instead of xcalloc.
3555 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
3556 XNEW instead of xmalloc.
3557 (get_fields): Use XNEWVEC instead of xmalloc.
3560 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
3561 populate vars array.
3562 (create_new_general_access): For debug stmts just reset value.
3563 (get_stmt_accesses): For accesses within debug stmts just record them
3564 using add_access_to_acc_sites instead of preventing the peeling or
3565 counting them as accesses.
3568 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
3570 2010-02-19 Richard Guenther <rguenther@suse.de>
3572 PR tree-optimization/42916
3573 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
3576 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
3578 * configure.ac: Replace all uses of changequote in macro arguments
3579 with proper quoting.
3581 2010-02-19 Jakub Jelinek <jakub@redhat.com>
3584 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
3586 2010-02-19 Richard Guenther <rguenther@suse.de>
3588 PR tree-optimization/42944
3589 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
3590 test for aliasing with errno.
3592 2010-02-19 Jakub Jelinek <jakub@redhat.com>
3595 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
3596 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
3597 * dojump.c: Include output.h.
3598 (inv): New inline function.
3599 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
3600 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
3601 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
3602 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
3603 argument, pass it down to other calls.
3604 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
3605 add REG_BR_PROB note to the conditional jump.
3606 * cfgexpand.c (add_reg_br_prob_note): Removed.
3607 (expand_gimple_cond): Don't call it, add the probability
3608 as last argument to jumpif_1/jumpifnot_1.
3609 * Makefile.in (dojump.o): Depend on output.h.
3610 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
3612 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
3613 * stmt.c (do_jump_if_equal): Likewise.
3614 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
3615 * loop-unswitch.c (compare_and_jump_seq): Likewise.
3616 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
3618 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
3619 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
3620 jumpifnot_1 callers.
3621 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
3623 (store_expr): Adjust jumpifnot caller.
3624 (store_constructor): Adjust jumpif caller.
3627 * gimplify.c (gimple_boolify): For __builtin_expect call
3628 gimple_boolify also on its first argument.
3630 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
3632 * configure.ac (gnu-unique-object): Wrap regexps using [] in
3634 (__stack_chk_fail): Ditto. Remove quadrigraphs.
3635 * configure: Regenerated.
3637 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3639 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
3640 lang_hooks.types_compatible_p instead of comptypes.
3642 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
3644 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
3645 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
3646 if __prefer_thumb__ is defined.
3648 2010-02-18 Martin Jambor <mjambor@suse.cz>
3650 PR tree-optimization/43066
3651 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
3652 array with zero-sized element type.
3654 2010-02-18 Jakub Jelinek <jakub@redhat.com>
3656 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
3657 rtx, allocate struct var_loc_node here and return it to the
3658 caller, and only if it is actually needed.
3659 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
3660 move it earlier and return immediately if it returns NULL.
3662 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
3664 * config/sparc/gas.h: New file. Restore
3665 TARGET_ASM_NAMED_SECTION to its ELF default.
3666 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
3668 * config/sparc/sparc.c (sparc_elf_asm_named_section):
3669 Likewise. Add ATTRIBUTE_UNUSED to prototype.
3670 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
3671 after sparc/sysv4.h.
3673 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
3675 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
3677 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
3679 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
3680 patterns from predicated pattern.
3682 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
3685 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
3686 for insn mnemonic suffix.
3688 2010-02-17 Richard Guenther <rguenther@suse.de>
3690 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
3693 2010-02-17 Jakub Jelinek <jakub@redhat.com>
3696 * caller-save.c (save_call_clobbered_regs): If BB ends with
3697 a DEBUG_INSN, move any notes in between last real insn and the last
3698 DEBUG_INSN after the last DEBUG_INSN.
3700 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
3702 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
3703 Fix return type. Fix argument type. Explain meaning of return value.
3705 2010-02-16 Richard Guenther <rguenther@suse.de>
3707 PR tree-optimization/41043
3708 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
3709 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
3711 (vrp_visit_phi_node): ... but only for loop PHI nodes.
3713 2010-02-16 Ira Rosen <irar@il.ibm.com>
3715 PR tree-optimization/43074
3716 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
3717 * tree-vect-loop.c (vect_analyze_loop_operations): Add
3718 vectorizable cycles in hybrid SLP check.
3719 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
3721 2010-02-16 Richard Guenther <rguenther@suse.de>
3723 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
3724 (true_dependence): If memrefs_conflict_p computes must-alias
3725 trust it. Move TBAA check after offset-based disambiguation.
3726 (canon_true_dependence): Likewise.
3728 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
3730 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
3731 * doc/invoke.texi: Document it.
3732 * var-tracking.c: Include toplev.h and params.h.
3733 (vt_find_locations): Return bool indicating success. Compute
3734 hash sizes unconditionally. Check new parameter, report.
3735 (variable_tracking_main_1): Check vt_find_locations results and
3736 retry. Renamed from...
3737 (variable_tracking_main): ... this. New wrapper to preserve
3738 flag_var_tracking_assignments.
3739 * Makefile.in (var-tracking.o): Adjust dependencies.
3741 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
3742 Jakub Jelinek <jakub@redhat.com>
3745 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
3746 if weak_import attribute is present.
3747 * config/darwin.c (machopic_select_section): Likewise.
3749 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
3751 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
3752 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
3753 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
3754 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
3756 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument types.
3758 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
3761 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
3762 Rewrite text to refer to the names.
3764 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
3766 * config/i386/i386-builtin-types.def
3767 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
3768 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
3769 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
3770 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
3771 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
3772 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
3773 IX86_BUILTIN_VPERMIL2PS256.
3774 (MULTI_ARG_4_DF2_DI_I): Defined.
3775 (MULTI_ARG_4_DF2_DI_I1): Defined.
3776 (MULTI_ARG_4_SF2_SI_I): Defined.
3777 (MULTI_ARG_4_SF2_SI_I1): Defined.
3778 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
3779 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
3780 __builtin_ia32_vpermil2ps256.
3781 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
3782 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
3783 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
3784 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
3785 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
3786 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
3787 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
3788 CODE_FOR_xop_vpermil2v8sf3.
3789 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
3790 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
3791 * config/i386/xopintrin.h (_mm_permute2_pd): New.
3792 (_mm256_permute2_pd): New.
3793 (_mm_permute2_ps): New.
3794 (_mm256_permute2_ps): New.
3796 2010-02-15 Nick Clifton <nickc@redhat.com>
3798 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
3799 boolean parameters. Use emit_jump_insn when emitting a pop
3800 instruction containing a return insn.
3801 (push): Use 'true' rather than '1' as second parameter to F.
3802 (h8300_expand_prologue): Likewise.
3803 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
3804 (h8300_expand_epilogue): Likewise.
3806 2010-02-15 Richard Guenther <rguenther@suse.de>
3809 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
3812 2010-02-15 Nick Clifton <nickc@redhat.com>
3814 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
3817 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
3819 * intl.c (fake_ngettext): New function.
3820 * intl.h (fake_ngettext): Declare.
3821 (ngettext): Define macro.
3822 * collect2.c (notice_translated): New function.
3823 (main): Use notice_translated and ngettext.
3824 * collect2.h (notice_translated): Declare.
3826 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
3828 * reorg.c (delete_computation): Comment fixes.
3829 * caller-save.c (setup_save_areas): Idem.
3830 * sel-sched-dump.c (dump_lv_set): Idem.
3833 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3835 * config/s390/s390.c (s390_sched_init): New function.
3836 (TARGET_SCHED_INIT): Target hook defined.
3838 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
3839 Jack Howarth <howarth@bromo.med.uc.edu>
3840 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
3843 Partial revert of unintended change in fix for PR41605.
3844 * config/darwin.h: Fix typo.
3845 * config/darwin9.h: Same.
3847 2010-02-11 Jakub Jelinek <jakub@redhat.com>
3849 * c-pch.c (pch_init): Clear v.
3851 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
3854 * graphite-scop-detection.c (graphite_can_represent_scev): Call
3855 graphite_can_represent_init for MULT_EXPR.
3857 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
3861 * graphite-sese-to-poly.c (remove_phi): New.
3862 (translate_scalar_reduction_to_array): Call remove_phi.
3864 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
3867 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
3868 * graphite-clast-to-gimple.h (gloog): Update declaration.
3869 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
3870 * graphite-poly.h (struct poly_bb): Add missing comments.
3871 (struct scop): Add poly_scop_p field.
3873 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
3874 * graphite.c (graphite_transform_loops): Build the polyhedral
3875 representation for each scop before code generation.
3876 * sese.c (rename_variables_in_operand): Removed.
3877 (rename_variables_in_expr): Return the renamed expression.
3878 (rename_sese_parameters): New.
3879 * sese.h (rename_sese_parameters): Declared.
3881 2010-02-11 Richard Guenther <rguenther@suse.de>
3883 PR tree-optimization/42998
3884 * tree-ssa-pre.c (create_expression_by_pieces): Treat
3885 POINTER_PLUS_EXPR properly.
3887 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
3888 Changpeng Fang <changpeng.fang@amd.com>
3891 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
3892 the cost of an IV candidate when the IV is used in a test against zero.
3894 * gcc.dg/tree-ssa/ivopts-3.c: New.
3896 2010-02-11 Richard Guenther <rguenther@suse.de>
3899 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
3900 pointer-vs-decl case by swapping refs. Handle some cases
3901 of pointer-vs-decl disambiguations more conservatively.
3902 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
3903 to false after expanding.
3905 2010-02-11 Richard Guenther <rguenther@suse.de>
3908 * gcc.c (process_command): Handle LTO file@offset case more
3911 2010-02-11 Jakub Jelinek <jakub@redhat.com>
3913 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
3914 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
3916 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
3918 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
3919 if MEM's mode size isn't DWARF2_ADDR_SIZE.
3920 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
3921 Optimize eq/ne comparisons when both arguments are known to be
3923 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
3924 Don't mask operands unnecessarily if they are known to be already
3927 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
3929 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
3932 2010-02-10 Richard Guenther <rguenther@suse.de>
3934 PR tree-optimization/43017
3935 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
3936 for wrapping signed arithmetic.
3938 2010-02-10 Jakub Jelinek <jakub@redhat.com>
3941 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
3942 if no debug info should be emitted for it.
3944 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
3946 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
3947 note when flag_exceptions is set.
3949 2010-02-10 Duncan Sands <baldrick@free.fr>
3951 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
3953 2010-02-10 Richard Guenther <rguenther@suse.de>
3956 * tree.c (get_unwidened): Handle constants.
3957 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
3959 2010-02-10 Martin Jambor <mjambor@suse.cz>
3962 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
3963 check for variable argument counts independently.
3965 2010-02-10 Christian Bruel <christian.bruel@st.com>
3968 * config/sh/sh.c (find_barrier): Increase length for non delayed
3969 conditional branches.
3971 2010-02-10 Christian Bruel <christian.bruel@st.com>
3973 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
3975 2010-02-10 Jakub Jelinek <jakub@redhat.com>
3977 * builtins.c (set_builtin_user_assembler_name): Also handle
3978 ffs if int is smaller than word.
3980 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
3983 * ira-conflicts.c (get_dup): Remove.
3984 (process_reg_shuffles): Add new parameter. Use it as an
3985 additional guard for copy generation.
3986 (add_insn_allocno_copies): Rewrite.
3988 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
3990 * common.opt (fsched2-use-traces): Preserved for backward
3992 * doc/invoke.texi: Remove the documentation about option
3993 -fsched2-use-traces.
3994 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
3995 flag_sched2_use_traces.
3996 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
3997 the backward compatibility flag section.
3999 2010-02-09 Richard Guenther <rguenther@suse.de>
4001 PR tree-optimization/43008
4002 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
4003 make HEAP variables initialized from global memory if they
4004 are not known builtin functions.
4005 (find_func_aliases): Adjust.
4007 2010-02-09 Richard Guenther <rguenther@suse.de>
4009 PR tree-optimization/43000
4010 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
4011 arithmetic manually.
4013 2010-02-08 Jakub Jelinek <jakub@redhat.com>
4015 PR tree-optimization/42931
4016 * tree-loop-linear.c (try_interchange_loops): Don't call
4017 double_int_mul if estimated_loop_iterations failed.
4019 2010-02-08 Martin Jambor <mjambor@suse.cz>
4022 * tree-sra.c (build_accesses_from_assign): Do not mark in
4023 should_scalarize_away_bitmap if stmt has volatile ops.
4024 (sra_modify_assign): Do not process assigns piecemeal if if stmt
4027 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
4029 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
4031 2010-02-07 Adam Nemet <adambnmet@gmail.com>
4033 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
4036 2010-02-07 Andrew Pinski <pinskia@gmail.com>
4039 * df-core.c (df_finish_pass): Change type of saved_flags to int.
4041 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
4044 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
4045 to unknown_dependence.
4046 (graphite_legal_transform_dr): Handle the unknown_dependence.
4047 (graphite_carried_dependence_level_k): Same.