1 2011-10-05 Nick Clifton <nickc@redhat.com>
3 * config/rx/rx.md (tablejump): Add missing label.
4 (adddi3_internal): Mark operand 0 as early-clobbered.
5 (smaxsi3): Revert previous delta.
6 (adc_internal): Fix whitespace in generated asm.
9 2011-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11 * expmed.c (expand_mult_highpart_optab): Replace optab_handler
12 with the new widening_optab_handler.
14 2011-10-05 Richard Guenther <rguenther@suse.de>
16 PR tree-optimization/50609
17 * gimple-fold.c (fold_array_ctor_reference): Also handle
18 vector typed constructors.
19 (fold_ctor_reference): Dispatch to fold_array_ctor_reference
20 for vector typed constructors.
22 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
24 * config/i386/i386.c (ix86_emit_binop): New static function.
25 (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
27 (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
29 2011-10-04 David S. Miller <davem@davemloft.net>
31 * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
32 UNSPEC_XMUL): New unspecs.
33 (muldi3_v8plus): Use output_v8plus_mult.
34 (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
35 New VIS 3.0 combiner patterns.
36 (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
37 fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
38 umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
39 xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
41 * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
42 (output_v8plus_mult): New function.
43 * config/sparc/sparc-protos.h: Declare it.
44 * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
45 __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
46 __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
47 * doc/extend.texi: Document new builtins.
49 2011-10-04 Richard Henderson <rth@redhat.com>
51 * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
52 Avoid save_expr unless two_arguments.
54 2011-10-04 Ozkan Sezer <sezeroz@gmail.com>
56 * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
57 * config/i386/mingw32.h (CPP_SPEC): Likewise.
59 2011-10-04 David S. Miller <davem@davemloft.net>
61 * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
64 2011-10-04 Jakub Jelinek <jakub@redhat.com>
66 PR tree-optimization/50604
67 * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
68 fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
69 last argument to memcpy has size_type_node type instead of ssizetype.
70 * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
71 instead of TREE_TYPE (len) as type for newlen.
73 PR tree-optimization/50522
74 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
76 (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
79 * fold-const.c (fold_unary_loc): Don't optimize
80 POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
81 casting the inner pointer if it isn't TYPE_RESTRICT.
82 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
83 casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
85 2011-10-04 Joseph Myers <joseph@codesourcery.com>
87 * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
89 2011-10-04 Jan Hubicka <jh@suse.cz>
91 * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
92 * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
93 * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
94 * lto-cgraph.c (order_base): New static var.
95 (lto_output_node): Stream in order.
96 (lto_output_varpool_node): Stream out order.
97 (input_node): Stream in order.
98 (input_varpool_node): Stream out order.
99 (input_cgraph_1): Initialize order base; update call of
100 lto_input_toplevel_asms.
102 2011-10-04 Georg-Johann Lay <avr@gjlay.de>
105 * config/avr/avr-protos.h (avr_legitimize_reload_address): New
107 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
109 * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
110 function. Log if avr_log.legitimize_reload_address.
112 2011-10-04 Eric Botcazou <ebotcazou@adacore.com>
114 * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
116 2011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
118 * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
119 variables. Fix second operand of DR. Swap inputs for sdiv_qrnnd.
121 2011-10-03 David S. Miller <davem@davemloft.net>
123 * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
124 GSR_REG an input operand to UNSPEC instead of a parallel USE.
125 (faligndata<V64I:mode>_vis): Likewise and use DI mode.
126 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
127 Reference GSR_REG in DI mode, simplify convoluted expressions by using
129 (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
131 2011-10-03 Maxim Kuvyrkov <maxim@codesourcery.com>
133 * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
135 2011-10-03 Jakub Jelinek <jakub@redhat.com>
136 Ian Lance Taylor <iant@google.com>
138 * godump.c (go_output_typedef): Support printing enum values that
139 don't fit in a signed HOST_WIDE_INT.
141 2011-10-03 Anatoly Sokolov <aesok@post.ru>
143 * config/cris/cris.c (cris_output_addr_const_extra): Make static.
144 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
145 * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
146 * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
148 2011-10-03 Anatoly Sokolov <aesok@post.ru>
150 * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
151 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
152 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
153 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
155 2011-10-03 Steve Ellcey <sje@cup.hp.com>
158 * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
159 (gcc_cv_ld_static_option): Ditto.
160 (gcc_cv_ld_dynamic_option): Ditto.
161 * configure: Regenerate.
163 2011-10-03 David S. Miller <davem@davemloft.net>
165 * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
166 and 'si' patterns which describe the GSR changes explicitly in the
167 RTL using zero_extract.
168 (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
170 * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
171 GSR_REG in a USE, since it's now a true arg to the UNSPEC.
173 2011-10-03 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
175 * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
176 if given expression can be expanded by the target.
177 (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
178 using target vector instructions.
179 * optabs.h: New optab vshuffle.
180 (expand_vec_shuffle_expr_p): New prototype.
181 (expand_vec_shuffle_expr): New prototype.
182 (vshuffle_optab): New optab.
183 * genopinit.c: Adjust to support vecshuffle.
184 * c-tree.h (c_build_vec_shuffle_expr): New prototype.
185 * expr.c (expand_expr_real_2): Adjust.
186 * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
187 recognizing the cases of two and three arguments.
188 (convert_arguments) (build_binary_op)
189 (scalar_to_vector) (build_array_ref): Spurious whitespace.
190 * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
191 * tree.def: New tree code VEC_SHUFFLE_EXPR.
192 * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
193 * tree-vect-generic.c (vector_element): New function. Returns an
194 element of the vector at the given position.
195 (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
196 by the backend or expand an expression piecewise.
197 (expand_vector_operations_1): Adjusted.
198 (gate_expand_vector_operations_noop): New gate function.
199 * Makefile.in (tree-vect-generic.o): New include.
200 * gimple.c (get_gimple_rhs_num_ops): Adjust.
201 * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
202 * passes.c: Move veclower down.
203 * tree-pretty-print.c (dump_generic_node): Recognize
204 VEC_SHUFFLE_EXPR as valid expression.
205 * c-parser.c (c_parser_get_builtin_args): Helper function for the
206 builtins with variable number of arguments.
207 (c_parser_postfix_expression): Use a new helper function for
208 RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
209 * tree-ssa-operands: Adjust.
210 * c-family/c-common.c: New __builtin_shuffle keyword.
211 * c-family/c-common.h: New __builtin_shuffle keyword.
212 * gcc/doc/extend.texi: Adjust.
214 * gcc/config/i386/sse.md: (sseshuffint) New mode_attr. Correspondence
215 between the vector and the type of the mask when shuffling.
216 (vecshuffle<mode>): New expansion.
217 * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
218 * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
219 (ix86_vectorize_builtin_vec_perm_ok): Adjust.
221 2011-10-03 Jakub Jelinek <jakub@redhat.com>
223 PR tree-optimization/50587
224 * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
225 arg0 is not a SSA_NAME.
227 2011-10-03 Richard Sandiford <rdsandiford@googlemail.com>
229 * ipa-inline-analysis.c (MAX_TIME): Update comment.
231 2011-10-02 Richard Henderson <rth@redhat.com>
232 David S. Miller <davem@davemloft.net>
234 * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
235 conditional insn type setting, we always emit a shift.
236 (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
237 (*lshrsi3_extend): Rename to *lshrsi3_extend1.
238 * config/sparc/predicates.md (const_one_operand): Delete.
240 2011-10-02 Gerald Pfeifer <gerald@pfeifer.com>
242 * invoke.texi (SPARC Options): Refer to GNU/Linux.
244 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
246 * config/mips/mips.c (mips_frame_barrier): New function.
247 (mips_expand_prologue): Call it after allocating stack space.
248 (mips_deallocate_stack): New function.
249 (mips_expand_epilogue): Call mips_frame_barrier and
250 mips_deallocate_stack.
252 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
255 * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
256 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
257 (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
259 2011-10-02 Jan Hubicka <jh@suse.cz>
261 * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
263 * cgraphunit.c (ipa_passes): Remove unrechable nodes.
264 * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
265 * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
266 functions are reachable when address is taken.
267 * tree-sra.c (modify_function): Free dominance info.
269 2011-10-02 Jan Hubicka <jh@suse.cz>
271 * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
273 * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
274 (reset_inline_summary): New function.
275 (compute_inline_parameters, inline_node_removal_hook,
276 inline_edge_removal_hook): Use it.
277 (inline_free_summary): Reset holders correctly.
278 (inline_generate_summary): Free summary before computing it.
280 2011-10-02 Paolo Carlini <paolo.carlini@oracle.com>
282 PR preprocessor/36819
283 * incpath.c (merge_include_chains): Call free_path on
284 heads[QUOTE] and tails[QUOTE].
286 2011-10-02 Jan Hubicka <jh@suse.cz>
289 * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
290 when resolution is already availbale from plugin.
291 (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
292 * cgraph.c (ld_plugin_symbol_resolution): Add
293 prevailing_def_ironly_exp.
294 * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
295 * ipa.c (varpool_externally_visible_p): IRONLY variables are never
297 * varasm.c (resolution_to_local_definition_p): Add
298 LDPR_PREVAILING_DEF_IRONLY_EXP.
299 (resolution_local_p): Likewise.
301 2011-10-01 David S. Miller <davem@davemloft.net>
303 * config/sparc/sparc.opt (VIS3): New option.
304 * doc/invoke.texi: Document it.
305 * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
306 not capable of such instructions.
307 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
308 to 0x300 when TARGET_VIS3.
309 * config/sparc/sparc-modes.def: Create 16-byte vector modes.
310 * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
311 UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
312 (V64N8, VASS): New mode iterators.
313 (vis3_shift, vis3_addsub_ss): New code iterators.
314 (vbits, vconstr): New mode attributes.
315 (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
316 (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
317 fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
318 fmean16_vis, fpadd64_vis, fpsub64_vis,
319 <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
320 VIS 3.0 instruction patterns.
321 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
322 default when targetting capable cpus. TARGET_VIS3 implies
323 TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
324 (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
325 (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
327 * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
328 __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
329 __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
330 __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
331 __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
332 __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
333 __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
334 __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
335 * doc/extend.texi: Document new VIS 3.0 builtins.
337 2011-10-01 Eric Botcazou <ebotcazou@adacore.com>
339 * ira-color.c (assign_hard_reg): Fix typo.
341 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
343 * doc/extend.texi: Add missing ','.
345 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
347 * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
348 Enable -fmodulo-sched at -O2 and above.
349 * config/c6x/c6x.md (doloop_end): New expander.
350 (mvilc, sploop, spkernel, loop_end): New patterns.
351 (loop_end with memory destination splitter): New.
352 * config/c6x/c6x.c: Include "hw-doloop.h".
353 (enum unitreqs): New.
354 (unit_req_table): New typedef.
355 (unit_reqs): New static variable.
356 (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
357 res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
358 hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
359 hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
360 (struct c6x_sched_context): New member last_scheduled_iter0.
361 (init_sched_state): Initialize it.
362 (c6x_variable_issue): Update it.
363 (sploop_max_uid_iter0): New static variable.
364 (c6x_sched_reorder_1): Be careful about issuing sploop.
365 (c6x_reorg): Call c6x_hwlooops before the final schedule.
367 2011-09-30 Georg-Johann Lay <avr@gjlay.de>
370 * config/avr/avr-protos.h (avr_log_t): New field address_cost.
371 * config/avr/avr.c (avr_address_cost): Use it.
372 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
373 (avr_log_vadump): Unknown %-codes finish printing.
375 2011-09-30 Jakub Jelinek <jakub@redhat.com>
378 * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
379 input constraints allow mem and not reg, pass true instead of
380 false as second argument to maybe_fold_reference.
382 PR tree-optimization/46309
383 * fold-const.c (make_range, merge_ranges): Remove prototypes.
384 (make_range_step): New function.
385 (make_range): Use it.
386 * tree.h (make_range_step): New prototypes.
387 * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
388 * tree-ssa-reassoc.c: Include diagnostic-core.h.
389 (struct range_entry): New type.
390 (init_range_entry, range_entry_cmp, update_range_test,
391 optimize_range_tests): New functions.
392 (reassociate_bb): Call optimize_range_tests.
394 2011-09-30 Jakub Jelinek <jakub@redhat.com>
395 Richard Guenther <rguenther@suse.de>
397 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
398 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
399 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise. Fix
400 handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
401 (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
402 BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
404 2011-09-30 Jan Beulich <jbeulich@suse.com>
406 * lto-cgraph.c (output_cgraph): Remove processing of
407 'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
408 (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
409 lto_input_toplevel_asms() instead.
410 * lto-section-in.c (lto_section_name): Add "asm" entry.
411 * lto-streamer-in.c (lto_input_toplevel_asms): New.
412 * lto-streamer-out.c (lto_output_toplevel_asms): New.
413 * lto-streamer.h (LTO_minor_version): Bump.
414 (enum lto_section_type): Add LTO_section_asm.
415 (struct lto_asm_header): New.
416 (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
417 * tree-streamer.h (streamer_write_string_cst): Declare.
418 * tree-streamer-out.c (write_string_cst): Rename to
419 streamer_write_string_cst and make global. Handle incoming string
421 (streamer_write_tree_header): Adjust call to renamed function.
423 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
425 * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
426 modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
427 modulo_last_stage): New static variables.
428 (set_modulo_params, discard_delay_pairs_above): New functions.
429 (struct delay_pair): New member stages.
430 (htab_i2_traverse, htab_i1_traverse): New static functions.
431 (record_delay_slot_pair): New arg stages. All callers changed.
433 (pair_delay): Take stages into account.
434 (add_delay_dependencies): Don't do so for stage pairs.
435 (struct sched_block_state): New member modulo_epilogue.
436 (save_backtrack_point): Don't set SHADOW_P for stage pairs.
437 (unschedule_insns_until): Decrease modulo_insns_scheduled.
438 Set HARD_DEP without using or.
439 (resolve_dependencies): New static function.
440 (prune_ready_list): New arg modulo_epilogue_p. All callers changed.
441 If it is true, allow only insns with INSN_EXACT_TICK set.
442 (schedule_block): Return bool, always true for normal scheduling,
443 true or false depending on modulo scheduling success otherwise.
444 Add bookkeeping for modulo scheduling, and call resolve_dependencies
445 on everything left over after a modulo schedule.
446 (haifa_sched_init): Remove check_cfg call. Clear modulo_ii.
447 * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
449 (set_modulo_params, discard_delay_pairs_above): Declare.
450 * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
451 * doc/invoke.texi (--param): Document it.
453 * sched-ebb.c (schedule_ebb): No longer static. Remove declaration.
454 New arg modulo_scheduling. All callers changed. Move note handling
455 code here from schedule_ebbs.
456 (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
457 out of schedule_ebbs.
458 (schedule_ebbs): Call them. Remove note handling code moved to
460 * sched-int.h (schedule_ebb, schedule_ebbs_init,
461 schedule_ebbs_finish): Declare.
463 2011-09-30 Richard Guenther <rguenther@suse.de>
466 * tree-cfg.c (verify_gimple_comparison): Compare component
467 mode sizes for vector comparisons.
469 2011-09-30 Revital Eres <revital.eres@linaro.org>
471 * ddg.c (autoinc_var_is_used_p): New function.
472 (create_ddg_dep_from_intra_loop_link,
473 add_cross_iteration_register_deps): Call it.
474 * ddg.h (autoinc_var_is_used_p): Declare.
475 * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
476 (sms_schedule): Handle instructions with REG_INC.
478 2011-09-30 Revital Eres <revital.eres@linaro.org>
480 * modulo-sched.c (generate_reg_moves): Skip instructions that
481 do not set a register and verify no regmoves are created for
482 !single_set instructions.
484 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
486 * hw-doloop.c (scan_loop): Compute register usage only for non-debug
489 2011-09-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
492 * config/arm/iterators.md (qhs_zextenddi_cstr): New.
493 (qhs_zextenddi_op): New.
494 * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
495 * config/arm/predicates.md ("arm_extendqisi_mem_op"):
496 Distinguish between ARM and Thumb2 states.
498 2011-09-30 David S. Miller <davem@davemloft.net>
500 * config/sparc/sparc.opt (VIS2): New option.
501 * doc/invoke.texi: Document it.
502 * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
503 UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
504 UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
505 (define_attr type): New insn type 'edgen'.
506 (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
507 edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
508 edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
510 * niagara.md: Handle edgen.
511 * niagara2.md: Likewise.
512 * ultra1_2.md: Likewise.
513 * ultra3.md: Likewise.
514 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
515 to 0x200 when TARGET_VIS2.
516 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
517 default when targetting capable cpus. TARGET_VIS2 implies
518 TARGET_VIS, clear and it when TARGET_FPU is disabled.
519 (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
520 (sparc_expand_builtin): Fix predicate indexing when builtin returns
522 (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
523 * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
524 __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
525 __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
526 __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
527 * doc/extend.texi: Document new VIS 2.0 builtins.
529 2011-09-29 Nick Clifton <nickc@redhat.com>
530 Bernd Schmidt <bernds@codesourcery.com>
532 * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
533 * config/frv/frvend.c: Likewise.
534 * config/frv/frv.c (frv_function_prologue): Move misplaced
535 CALL_ARG_LOCATION notes back to their proper locations.
537 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
540 * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
541 * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
543 (avr_legitimate_address_p): Use avr_edump to print log information
545 (extra_constraint_Q): Ditto.
546 (avr_legitimize_address): Ditto.
547 (avr_rtx_costs): Ditto. Rewrite as wrapper for avr_rtx_costs_1.
548 (final_prescan_insn): Use avr_log.rtx_costs as filter.
550 2011-09-29 Richard Sandiford <richard.sandiford@linaro.org>
552 * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
553 * config/arm/arm.h (MODES_TIEABLE_P): Use it.
554 * config/arm/arm.c (arm_modes_tieable_p): New function. Allow
555 NEON vector and structure modes to be tied.
557 2011-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
559 * graphite-scop-detection.c (make_close_phi_nodes_unique): New
561 (remove_duplicate_close_phi): Detect and repair creation of
562 duplicate close-phis for a containing loop.
564 2011-09-27 Andi Kleen <ak@linux.intel.com>
566 * gcc.c (get_local_tick). Rename to get_random_number. Read from
567 /dev/urandom. Add getpid call.
568 (compare_debug_dump_opt_spec_function): Drop getpid call.
570 2011-09-26 Andi Kleen <ak@linux.intel.com>
572 * toplev.c (init_local_tick): Try reading random seed
575 2011-09-26 Andi Kleen <ak@linux.intel.com>
577 * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
578 * lto-streamer.c (lto_get_section_name): Remove crc32_string.
579 Handle numerical random seed.
580 * lto-streamer.h (lto_file_decl_data): Change id to
581 unsigned HOST_WIDE_INT.
582 * toplev.c (random_seed): Add.
583 (init_random_seed): Change for numerical random seed.
584 (get_random_seed): Return as HOST_WIDE_INT.
585 (set_random_seed): Crc32 existing string.
586 * toplev.h (get_random_seed): Change to numercal return.
587 * tree.c (get_file_function_name): Remove CRC. Handle
588 numerical random seed.
590 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
593 * config.gcc (extra_objs): Add avr-log.o for $target in:
594 avr-*-rtems*, avr-*-*.
595 * config/avr/t-avr (avr-log.o): New rule to compile...
596 * config/avr/avr-log.c: ...this new file.
597 * config/avr/avr.opt (mlog=): New option.
598 * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
599 (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
600 (avr_log_set_avr_log): New prototype.
601 (avr_log_t): New typedef.
602 (avr_log): New declaration.
603 * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
605 2011-09-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
607 * expr.c (do_store_flag): Expand vector comparison by
608 building an appropriate VEC_COND_EXPR.
609 * c-typeck.c (build_binary_op): Typecheck vector comparisons.
610 (c_objc_common_truthvalue_conversion): Adjust.
611 * tree-vect-generic.c (do_compare): Helper function.
612 (expand_vector_comparison): Check if hardware supports
613 vector comparison of the given type or expand vector piecewise.
614 (expand_vector_operation): Treat comparison as binary
615 operation of vector type.
616 (expand_vector_operations_1): Adjust.
618 2011-09-29 Richard Guenther <rguenther@suse.de>
620 * tree.c (build_opaque_vector_type): Make opaque vectors
621 variant types of the corresponding non-opaque type. Make
622 sure to share opaque vector types properly.
624 2011-09-29 David S. Miller <davem@davemloft.net>
626 * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
627 UNSPEC_ARRAY32): New unspec.
628 (define_attr type): New type 'array'.
629 (array{8,16,32}<P:mode>_vis): New patterns.
630 * config/sparc/ultra1_2.md: Add reservations for 'array'.
631 * config/sparc/ultra3.md: Likewise.
632 * config/sparc/niagara.md: Likewise.
633 * config/sparc/niagara2.md: Likewise.
634 * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
636 * config/sparc/visintrin.h (__vis_array8, __vis_array16,
638 * doc/extend.texi: Document new VIS builtins.
640 * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
641 (VIS pixel-compare insn): Just use <gcond:name>.
643 * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
644 code iterator used, so just use <code>. There are two mode iterators
645 so explicitly use <GCM:gcm_name>.
647 2011-09-29 Iain Sandoe <iains@gcc.gnu.org>
649 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
652 2011-09-28 David S. Miller <davem@davemloft.net>
654 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
655 UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
656 (UNSPEC_FCMP): New unspec.
657 (gcond): New code iterator.
658 (gcond_name): New code attr.
659 (GCM): New mode iterator.
660 (gcm_name): New mode attr.
661 (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
663 2011-09-28 Oleg Endo <oleg.endo@t-online.de>
666 * config/sh/sh.md (negdi2): Move expansion into split to
667 allow more combination options. Add T_REG clobber.
668 (abssi2): New expander.
669 (*negdi2, *abssi2, *negabssi2): New insns.
670 (cneg): Change from insn to insn_and_split. Rename to
671 negsi_cond. Add alternative for non-SH4.
673 2011-09-28 Richard Sandiford <richard.sandiford@linaro.org>
675 * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
676 (neon_move_hi_quad_<mode>): Likewise.
677 (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
679 2011-09-28 Nick Clifton <nickc@redhat.com>
681 * config/rx/predicates.md (rx_minmax_operand): New predicate.
682 Accepts immediates and a restricted subset of MEMs.
683 * config/rx/rx.md (int_modes): New iterator.
684 (smaxsi3, sminsi3): Delete and replace with...
685 (smax<int_mode>3, smin<int_mode>3): New patterns.
686 (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
688 2011-09-28 Richard Guenther <rguenther@suse.de>
691 * fold-const.c (try_move_mult_to_index): Handle &a.array the
694 2011-09-28 Kai Tietz <ktietz@redhat.com>
696 * configure.ac: Add test for new section attribute
697 specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
698 * config.in: Regenerated.
699 * configure: Regenerated.
700 * config/i386/winnt.c (i386_pe_asm_named_section): Emit
701 new section flag "e" for excluded sections, if supported.
702 Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
704 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
706 * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
709 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
711 * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
714 2011-09-27 Sriraman Tallam <tmsriram@google.com>
716 * output.h (SECTION_EXCLUDE): New macro.
717 * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
719 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
721 * fwprop.c (forward_propagate_and_simplify): After checking
722 reg/subreg combinations, check whether the modes are the same.
724 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
725 Richard Sandiford <rdsandiford@googlemail.com>
727 * config/mips/mips.c (mips_add_cfa_restore): New function.
728 (mips16e_save_restore_reg): Use it.
729 (mips_restore_reg): Likewise. Split double FPRs for
730 REG_CFA_RESTORE notes.
732 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
736 * tree-sra.c (build_ref_for_model): Use the type of the field as
737 the type of the COMPONENT_REF.
739 2011-09-27 Jeff Law <law@redhat.com>
741 * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument. Scale
742 non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
743 (find_if_case_1): Use the probability of the THEN clause when
744 determining if speculation is profitable.
745 (find_if_case_2): Similarly for the ELSE clause.
747 2011-09-27 Jakub Jelinek <jakub@redhat.com>
749 * common.opt: Add -foptimize-strlen option.
750 * Makefile.in (OBJS): Add tree-ssa-strlen.o.
751 (tree-sssa-strlen.o): Add dependencies.
752 * opts.c (default_options_table): Enable -foptimize-strlen
753 by default at -O2 if not -Os.
754 * passes.c (init_optimization_passes): Add pass_strlen
755 after pass_object_sizes.
756 * timevar.def (TV_TREE_STRLEN): New timevar.
757 * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
758 * tree-pass.h (pass_strlen): Declare.
759 * tree-ssa-strlen.c: New file.
760 * c-decl.c (merge_decls): If compatible stpcpy prototype
761 is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
763 2011-09-27 Tom de Vries <tom@codesourcery.com>
766 * tree-ssa-tail-merge.c: New file.
767 (struct same_succ_def): Define.
768 (same_succ, const_same_succ): New typedef.
769 (struct bb_cluster_def): Define.
770 (bb_cluster, const_bb_cluster): New typedef.
771 (struct aux_bb_info): Define.
772 (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
773 (gvn_uses_equal): New function.
774 (same_succ_print, same_succ_print_traverse, update_dep_bb)
775 (stmt_update_dep_bb, local_def, same_succ_hash)
776 (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
777 (same_succ_reset): New function.
778 (same_succ_htab, same_succ_edge_flags)
779 (deleted_bbs, deleted_bb_preds): New var.
780 (debug_same_succ): New function.
782 (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
783 (init_worklist, delete_worklist, delete_basic_block_same_succ)
784 (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
785 (print_cluster, debug_cluster, update_rep_bb)
786 (add_bb_to_cluster, new_cluster, delete_cluster): New function.
787 (all_clusters): New var.
788 (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
789 (merge_clusters, set_cluster): New function.
790 (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
791 (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
792 (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
793 (find_clusters_1, find_clusters): New function.
794 (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
795 (update_bbs): New var.
796 (apply_clusters): New function.
797 (update_debug_stmt, update_debug_stmts): New function.
798 (tail_merge_optimize): New function.
799 tree-pass.h (tail_merge_optimize): Declare.
800 * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
801 * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
802 (tree-ssa-tail-merge.o): New rule.
803 * opts.c (default_options_table): Set OPT_ftree_tail_merge by
804 default at OPT_LEVELS_2_PLUS.
805 * tree-ssa-sccvn.c (vn_valueize): Move to ...
806 * tree-ssa-sccvn.h (vn_valueize): Here.
807 * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
808 * common.opt (ftree-tail-merge): New switch.
809 * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
810 (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
811 * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
812 (-ftree-tail-merge, max-tail-merge-comparisons)
813 (max-tail-merge-iterations): New item.
815 2011-09-27 Jan Hubicka <jh@suse.cz>
817 * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
819 2011-09-27 Jan Hubicka <jh@suse.cz>
821 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
822 parameters passed by reference; handle loads from non-SSA scalars
825 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
827 PR rtl-optimization/50249
828 * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
829 instead of opnum and type. All callers changed. Remove useless
831 Search forward for other reloads of the same type for the same operand
832 using the same register; if any are found, return false.
833 (reload_regs_reach_end_p): Same argument changes; all callers changed.
835 2011-09-27 Andi Kleen <ak@linux.intel.com>
836 Jan Hubicka <jh@suse.cz>
838 * doc/invoke.texi (ffat-lto-objects): Document.
839 * toplev.c (compile_file): Do not output assembly when doing slim lto;
840 Output __gnu_slim_lto when doing slim lto.
841 * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
842 (cgraph_optimize): Return early when doing slim lto.
843 * opts.c (finish_options): Complain about lack of linker plugin
845 * common.opt (ffat-lto-objects): New.
847 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
849 * ipa-inline-analysis.c (predicate_probability): Avoid comparison
850 between signed and unsigned.
852 2011-09-27 Ira Rosen <ira.rosen@linaro.org>
854 * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
856 (vectorizable_type_promotion): Likewise.
857 (vect_analyze_stmt): Call vectorizable_type_demotion and
858 vectorizable_type_promotion for basic blocks.
859 (supportable_widening_operation): Don't assume loop vectorization.
860 * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
861 basic blocks. Update vectorization factor for basic block
863 (vect_analyze_slp_instance): Allow multiple types for basic block
864 vectorization. Recheck unrolling factor after construction of SLP
867 2011-09-27 Richard Guenther <rguenther@suse.de>
869 * tree-object-size.c (compute_object_sizes): Fix dumping of
872 2011-09-27 Richard Guenther <rguenther@suse.de>
874 PR tree-optimization/50363
875 * tree-ssa-pre.c (create_expression_by_pieces): Handle
876 pointer conversions in POINTER_PLUS_EXPRs properly.
878 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
880 * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
881 (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
882 (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
883 (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
884 that produce subreg moves. Define using VQX iterators.
886 2011-09-27 Georg-Johann Lay <avr@gjlay.de>
888 * config/avr/avr.md (ashrqi3): Split alternative "n"
889 into its remaining parts C03, C04, C05, C06, C07 and describe
890 impact in CC by attribute "cc" appropriately.
891 * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
894 2011-09-27 Jakub Jelinek <jakub@redhat.com>
896 * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
897 from 3 x MAX_MACHINE_MODE.
898 (CONSTM1_RTX): Define.
899 * emit-rtl.c (const_tiny_rtx): Change into array of
900 4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
901 (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
903 (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
904 MODE_VECTOR_INT modes.
905 * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
906 Optimize if one operand is CONSTM1_RTX.
907 * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
910 2011-09-26 David S. Miller <davem@davemloft.net>
912 * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
913 (fcmp{le,ne,gt,eq}{16,32}): Likewise.
914 * config/sparc/visintrin.h: Update edge and pixel-compare
915 intrinsics to return 'long' instead of 'int'.
916 * doc/extend.texi: Update documentation to match.
917 * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
918 flat, allow any instruction. Otherwise, when V9 allow parallels
919 which consist only of sets to registers outside of %o0 to %o5.
920 (sparc_vis_init_builtins): Update VIS builtin types for edge
923 * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
924 is enabled, mark %gsr as global.
925 * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
926 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
928 * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
929 which will now define __VIS and __VIS__ when -mvis is enabled.
930 * config/sparc/t-sparc: Likewise.
931 * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
932 and add t-sparc to tmake_file for all sparc targets.
933 * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
934 * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
936 * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
937 builtins for VIS vector addition and subtraction.
938 * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
939 __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
940 __vis_fpsub32, __vis_fpsub32s): New.
941 * doc/extend.texi: Document new VIS intrinsics.
943 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
945 * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
946 * config/avr/avr.c (avr_out_compare): Print shorter sequence for
947 EQ/NE comparisons against +/-1 in the case of unused-after,
950 2011-09-26 Jakub Jelinek <jakub@redhat.com>
952 * gimple-fold.c (gimplify_and_update_call_from_tree): Set
953 gctx.into_ssa after push_gimplify_context.
955 * gimple.c (gimple_build_call_valist): New function.
956 * gimple.h (gimple_build_call_valist): New prototype.
957 * tree-ssa-propagate.c (finish_update_gimple_call): New function.
958 (update_gimple_call): Likewise.
959 (update_call_from_tree): Use finish_update_gimple_call.
960 * tree-ssa-propagate.h (update_gimple_call): New prototype.
962 2011-09-26 Richard Guenther <rguenther@suse.de>
964 PR tree-optimization/50472
965 * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
968 2011-09-26 Bingfeng Mei <bmei@broadcom.com>
970 * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
971 * target.def: (addr_space_subset_p): Likewise.
973 2011-09-26 Tom de Vries <tom@codesourcery.com>
975 * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
976 * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
977 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
980 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
983 * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
984 * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
985 output_reload_insisf.
986 (adjust_len): Set default to "no".
987 Remove alternative "yes". Add alternatives: "mov8", "mov16",
988 "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
989 "lshrhi", "ashlsi, "ashrsi", "lshrsi".
990 (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
991 *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
992 *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
993 *lshrsi3_const): Set attribute "adjust_len".
994 * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
995 (output_movsisf): Don't pass insn to output_reload_insisf.
996 (adjust_insn_length): Handle new alternatives to adjust_len.
997 Remove handling of ADJUST_LEN_YES. Clean-up code.
999 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
1001 * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
1002 may_trap_p to detect loads that may trap of fault.
1004 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
1006 * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
1007 * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
1008 (*reload_inhi): Use it. Adapt call to output_reload_inhi to new
1010 (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
1011 * config/avr/avr.c: Rename output_reload_insisf_1 to
1012 output_reload_in_const.
1013 (avr_popcount_each_byte): Handle SFmode, too.
1014 (output_reload_in_const): Change so it can handle HI loads, too.
1015 Use avr_popcount_each_byte to work out if scratch register must be
1017 (output_reload_inhi): Rewrite using output_reload_in_const and...
1018 (output_movhi): ...use it to print constants' loads.
1019 (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
1021 2011-09-25 David S. Miller <davem@davemloft.net>
1023 * config/sparc/constraints.md (C, P, Z): New constraints for
1024 const_doube, const_int, and const_vector "all ones" values.
1025 Make unused constraint letters comment match reality.
1026 * config/sparc/predicates.md (const_all_ones_operand,
1027 register_or_zero_or_all_ones_operand): New predicates.
1028 * config/sparc/sparc.c (sparc_expand_move): Allow all ones
1029 as well as zero constants when VIS.
1030 (sparc_legitimate_constant_p): Likewise.
1031 * config/sparc/sparc.md (movsi_insn): Add fones alternative.
1032 (movsf_insn): Likewise
1033 (movdi_insn_sp64): Add fone alternative.
1034 (movdf_insn_sp32_v9): Likewise.
1035 (movdf_insn_sp64): Likewise.
1037 * configure.ac: Add feature check to make sure the assembler
1038 supports the FMAF, HPC, and VIS 3.0 instructions found on
1039 Niagara-3 and later cpus.
1040 * configure: Rebuild.
1041 * config.in: Likewise.
1042 * config/sparc/sparc.opt: New option '-mfmaf'.
1043 * config/sparc/sparc.md: Add float fused multiply-add patterns.
1044 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
1045 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
1046 * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
1047 ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
1048 * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
1049 by default for Niagara-3 and later. Turn it off if TARGET_FPU is
1051 (sparc_rtx_costs): Handle 'FMA'.
1052 * doc/invoke.texi: Document -mfmaf.
1054 2011-09-25 Jakub Jelinek <jakub@redhat.com>
1056 * tree-ssa-structalias.c (intra_create_variable_infos): Treat
1057 TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
1058 DECL_BY_REFERENCE parameters.
1060 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
1062 * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
1063 if there is no outgoing edge.
1065 * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
1068 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
1070 * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
1071 of vect_analyze_bb here.
1072 (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
1074 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
1076 * tree-data-ref.c (dr_analyze_innermost): Add new argument.
1077 Allow not simple iv if analyzing basic block.
1078 (create_data_ref): Update call to dr_analyze_innermost.
1079 (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
1080 * tree-loop-distribution.c (generate_memset_zero): Likewise.
1081 * tree-predcom.c (find_looparound_phi): Likewise.
1082 * tree-data-ref.h (dr_analyze_innermost): Add new argument.
1084 2011-09-24 David S. Miller <davem@davemloft.net>
1086 * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
1087 (SPARC_GSR_REG): Define.
1088 (FIXED_REGISTERS): Mark GSR as fixed.
1089 (CALL_USED_REGISTERS): Mark GSR as call used.
1090 (HARD_REGNO_NREGS): GSR is always 1 register.
1091 (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
1092 (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
1093 (REGISTER_NAMES): Add "%gsr".
1094 * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
1095 (UNSPEC_WRGSR): New unspec.
1096 (GSR_REG): New constant.
1097 (type): Add new insn type 'gsr'.
1098 (fpack16_vis, fpackfix_vis, fpack32_vis,
1099 faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
1100 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
1101 rdgsr_v8plus): New expanders and insns.
1102 (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
1103 using patterns which show that this is a plus in addition to a
1104 modification of GSR_REG, instead of an unspec.
1105 * config/sparc/ultra1_2.md: Handle 'gsr'.
1106 * config/sparc/ultra3.md: Likewise.
1107 * config/sparc/niagara.md: Likewise.
1108 * config/sparc/niagara2.md: Likewise.
1109 * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
1111 (sparc_option_override): Make -mvis imply -mv8plus.
1112 (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
1114 (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
1115 __builtin_vis_read_gsr.
1116 (sparc_expand_buildin): Handle builtins that take one argument and
1118 (sparc_fold_builtin): Never fold writes to %gsr.
1119 * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
1120 * doc/extend.texi: Document new VIS intrinsics.
1122 2011-09-23 Jan Hubicka <jh@suse.cz>
1124 * ipa-inline-transform.c (inline_call): Add comment.
1125 * ipa-inline.h (inline_param_summary): New structure and vector.
1126 (struct inline_edge_summary): Add param field.
1127 * ipa-inline-analysis.c (CHANGED): New constant.
1128 (add_clause): Handle CHANGED and NOT_CONSTANT.
1129 (predicate_probability): New function.
1130 (dump_condition): Dump CHANGED predicate.
1131 (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
1132 of unknown function wide invariant.
1133 (evaluate_conditions_for_edge): Handle change probabilities.
1134 (inline_edge_duplication_hook): Copy param summaries.
1135 (inline_edge_removal_hook): Free param summaries.
1136 (dump_inline_edge_summary): Fix dumping of indirect edges and callee
1137 sizes; dump param summaries.
1138 (will_be_nonconstant_predicate): Use CHANGED predicate.
1139 (record_modified_bb_info): New structure.
1140 (record_modified): New function.
1141 (param_change_prob): New function.
1142 (estimate_function_body_sizes): Compute param summaries.
1143 (estimate_edge_size_and_time): Add probability argument.
1144 (estimate_node_size_and_time): Add inline_param_summary argument;
1145 handle predicate probabilities.
1146 (remap_predicate): Fix formating.
1147 (remap_edge_change_prob): New function.
1148 (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
1149 (remap_edge_predicates): ... this one.
1150 (inline_merge_summary): Remap edge summaries; handle predicate
1151 probabilities; remove param summaries after we are done.
1152 (do_estimate_edge_time): Update.
1153 (do_estimate_edge_growth): Update.
1154 (read_inline_edge_summary): Read param info.
1155 (inline_read_summary): Fix formating.
1156 (write_inline_edge_summary): Write param summaries.
1158 2011-09-23 Jakub Jelinek <jakub@redhat.com>
1160 * config/i386/i386.c (ix86_print_operand): Handle %~.
1161 (ix86_print_operand_punct_valid_p): Return true also for '~'.
1162 * config/i386/sse.md (i128): New mode_attr.
1163 (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
1164 avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
1165 *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
1166 vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
1167 patterns, use "<sseinsnmode>" for "mode" attribute.
1168 (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
1169 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
1170 %~128 in the patterns, use "OI" for "mode" attribute.
1172 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
1175 * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
1177 (*cmpqi_sign_extend): Use s8_operand.
1178 (*cmphi, *cmpsi): Rewrite using avr_out_compare.
1179 * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
1181 (out_tsthi, out_tstsi): Remove prototypes.
1182 (avr_out_tsthi, avr_out_tstsi): New prototypes.
1183 * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
1184 (avr_asm_len): Negative length now sets *plen to -length.
1185 (compare_sign_p): Return bool instead of int.
1186 (compare_diff_p, compare_eq_p): Ditto and make static.
1187 (avr_out_tsthi): New function.
1188 (avr_out_tstsi): New function.
1189 (avr_out_compare): New function.
1190 (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
1193 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
1196 * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
1197 (addsi3): Rewrite using QI scratch register. Adjust text
1198 peepholes using plus:SI.
1199 (*addsi3_zero_extend.hi): New insn.
1200 (*subsi3_zero_extend.hi): New insn.
1201 (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
1202 (*subsi3_zero_extend): Ditto.
1203 (subsi3): Change predicate #2 to register_operand.
1204 * config/avr/avr-protos.h (avr_out_plus): New prototype.
1205 (avr_out_plus_1): New static function.
1206 (avr_out_plus): New function.
1207 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
1209 2011-09-23 Jakub Jelinek <jakub@redhat.com>
1211 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
1212 GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
1214 2011-09-23 Ian Lance Taylor <iant@google.com>
1216 * godump.c (go_define): Treat a single character in single quotes,
1217 or a string, as an operand.
1219 2011-09-23 Martin Jambor <mjambor@suse.cz>
1221 * ipa-prop.h (jump_func_type): Updated comments.
1222 (ipa_known_type_data): New type.
1223 (ipa_jump_func): Use it to describe known type jump functions.
1224 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
1225 reflect the new known type jump function contents.
1226 (compute_known_type_jump_func): Likewise.
1227 (combine_known_type_and_ancestor_jfs): Likewise.
1228 (try_make_edge_direct_virtual_call): Likewise.
1229 (ipa_write_jump_function): Likewise.
1230 (ipa_read_jump_function): Likewise.
1231 * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
1232 (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
1233 (propagate_accross_jump_function): Likewise.
1235 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
1238 * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
1239 (rotlqi3_4): Turn insn into expander.
1240 (*rotlqi3): New insn.
1241 (rotlhi3, rotlsi3): Support rotate left/right by 1.
1242 (*rotlhi2.1, *rotlhi2.15): New insns.
1243 (*rotlsi2.1, *rotlsi2.31): New insns.
1244 * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
1246 2011-09-23 Bin Cheng <bin.cheng@arm.com>
1248 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
1250 2011-09-22 Maxim Kuvyrkov <maxim@codesourcery.com>
1252 * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
1254 2011-09-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1256 * reload.c (find_reloads): Set operand_mode to Pmode for address
1257 operands consisting of just a CONST_INT.
1259 2011-09-22 Uros Bizjak <ubizjak@gmail.com>
1262 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
1263 blendv, force op_true to register if it doesn't satisfy
1264 nonimmediate_operand predicate.
1266 2011-09-22 Richard Sandiford <rdsandiford@googlemail.com>
1270 * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
1271 get the locate.where_pad value for register-only arguments.
1272 * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
1273 (arm_pad_reg_upward): Handle null types.
1275 2011-09-22 Jan Hubicka <jh@suse.cz>
1277 * ipa-inline-analysis.c: Fix overly long lines.
1279 2011-09-22 Jan Hubicka <jh@suse.cz>
1281 * ipa-inline-transform.c (inline_call): Always update jump functions
1283 * ipa-inline.c (ipa_inline): Likewise; do not call
1284 ipa_create_all_structures_for_iinln.
1285 (ipa_inline): Always free jump functions.
1286 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
1287 (remap_edge_predicates): Fix pasto.
1288 (inline_merge_summary): Remove nlined edge predicate; remove hack.
1289 (inline_analyze_function): Always initialize jump functions.
1290 (inline_generate_summary): Likewise.
1291 (inline_write_summary): Always write jump functions when ipa-cp
1293 (inline_read_summary): Always read jump functions when ipa-cp
1295 * ipa-prop.c (iinlining_processed_edges): Remove.
1296 (update_indirect_edges_after_inlining): Do not use
1297 iinlining_processed_edges; instead set param_index to -1.
1298 (propagate_info_to_inlined_callees): Only try to indirect inlining
1299 when asked to do so; update jump functions of indirect calls, too;
1300 remove jump functions of the inlined edge.
1301 (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
1302 (ipa_create_all_structures_for_iinln): Remove.
1303 (ipa_free_all_structures_after_iinln): Do not free
1304 iinlining_processed_edges.
1305 * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
1307 2011-09-22 Richard Sandiford <richard.sandiford@linaro.org>
1309 * config/arm/predicates.md (expandable_comparison_operator): New
1310 predicate, extracted from...
1311 (arm_comparison_operator): ...here.
1312 * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
1313 (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
1314 (movdfcc): Use expandable_comparison_operator.
1316 2011-09-22 Georg-Johann Lay <avr@gjlay.de>
1320 * config/avr/avr-protos.h (avr_out_bitop): New prototype.
1321 (avr_popcount_each_byte): New prototype.
1322 * config/avr/avr.c (avr_popcount): New static function.
1323 (avr_popcount_each_byte): New function.
1324 (avr_out_bitop): New function.
1325 (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
1326 avr_out_bitop. Cleanup code.
1327 * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
1328 (Ca4, Co4, Cx4): New constraints.
1329 * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
1331 (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
1332 (andsi3, iorsi3, xorsi3): Ditto.
1333 (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
1335 2011-09-22 Ira Rosen <ira.rosen@linaro.org>
1337 PR tree-optimization/50451
1338 * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
1339 constant operands in reduction.
1340 (vect_get_slp_defs): Don't create vector operand for NULL scalar
1343 2011-09-22 David S. Miller <davem@davemloft.net>
1345 * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
1346 fpack16, fpack32, fpackfix as const.
1348 * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
1349 I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
1350 constants. Use them everywhere.
1352 2011-09-22 Oleg Endo <oleg.endo@t-online.de>
1354 * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
1355 Added AND special case. Adapted comments.
1356 (sh_rtx_costs): Added XOR and IOR case.
1358 2011-09-21 Jan Hubicka <jh@suse.cz>
1360 * ipa-inline-analsis.c (compute_inline_parameters): Set
1361 cfun and current_function_decl.
1363 2011-09-21 Jan Hubicka <jh@suse.cz>
1365 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
1366 handled components in parameter of builtin_constant_p.
1367 (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
1369 2011-09-21 Jan Hubicka <jh@suse.cz>
1371 * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
1372 * ipa-inline.h (estimate_edge_time): Fix pasto.
1373 * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
1375 2011-09-21 Jakub Jelinek <jakub@redhat.com>
1377 * config/i386/i386.c (ix86_expand_sse_movcc): Use
1378 blendvps, blendvpd and pblendvb if possible.
1380 2011-09-21 Uros Bizjak <ubizjak@gmail.com>
1383 * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
1384 operand 1 predicate to register_operand and operand 2 predicate
1385 to nonimmediate_operand.
1386 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
1387 xop_pcmov, force op_true to register. Also, force op_false to
1388 register if it doesn't satisfy nonimmediate_operand predicate.
1390 2011-09-21 Kirill Yukhin <kirill.yukhin@intel.com>
1392 * config/i386/bmi2intrin.h (_mulx_u64): New.
1395 2011-09-21 Jan Hubicka <jh@suse.cz>
1397 PR tree-optimization/50433
1398 * ipa-inline-analysis.c (eliminated_by_inlining_prob):
1399 Use get_base_address.
1401 2011-09-21 Jakub Jelinek <jakub@redhat.com>
1403 * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
1404 nonimmediate_operand instead of register_operand predicate for operands
1405 1 and 2, force them into registers if expanding them as comparison.
1406 (<code><mode>3 umaxmin:VI124_128 expander): Similarly. For UMAX
1407 V8HImode force into register just operand 1.
1409 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
1412 * config/avr/avr.c (avr_function_arg_advance): Change error to
1413 warning if a fixed register is needed as function argument.
1415 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
1419 * config/avr/avr.md (adjust_len): New insn attribute.
1420 (*reload_insi, *reload_insf): Use it.
1421 (*movsi, *movsf): Use new interface of output_movsisf.
1422 * config/avr/avr-protos.h (output_movsisf): Change prototype.
1423 * config/avr/avr.c (output_movsisf): Ditto.
1424 (adjust_insn_length): Use insn attribute "adjust_len" to adjust
1425 lengths of insns *reload_insi, *reload_insf.
1426 (output_reload_insisf_1): New static function.
1427 (output_reload_insisf): Use it.
1429 2011-09-21 David S. Miller <davem@davemloft.net>
1431 * config/sparc/sparc.c (def_builtin): Change from macro into function.
1432 (def_builtin_const): New.
1433 (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
1434 other than alignaddr and falignaddr.
1436 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
1437 UNSPEC_FCMPEQ): New unspec codes.
1438 (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
1439 fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
1440 * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
1441 new pixel compare VIS patterns.
1442 * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
1443 __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
1444 __vis_fcmpeq16, __vis_fcmpeq32): New.
1445 * doc/extend.texi: Document new pixel compare VIS intrinsics.
1447 2011-09-21 Tom de Vries <tom@codesourcery.com>
1449 * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
1451 2011-09-20 David S. Miller <davem@davemloft.net>
1453 * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
1454 (aligneddrl<P:mode>_vis): New pattern.
1455 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
1456 edge32l_vis): Adjust to take Pmode arguments, and return SImode.
1457 * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
1458 alignaddrl insn, and adjust edge operations for updated types.
1459 * config/sparc/visintrin.h: Likewise.
1460 * doc/extend.texi: Make typing in VIS documentation match reality.
1462 2011-09-20 Terry Guo <terry.guo@arm.com>
1464 * config/arm/arm-arches.def: Add armv6s-m.
1465 * config/arm/arm-tables.opt: Regenerate.
1467 2011-09-20 Wei Guozhi <carrot@google.com>
1469 PR rtl-optimization/49452
1470 * postreload.c (reload_combine): Invalidate use information when across
1473 2011-09-19 Maxim Kuvyrkov <maxim@codesourcery.com>
1475 * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
1476 Remove maintenance overhead.
1477 (haifa_sched_init, sched_finish): Update.
1479 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
1481 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
1482 to calculate unit, prefix_rep and prefix_data16 attributes.
1483 (*mov<mode>_internal): Ditto for unit attribute.
1484 (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
1485 (*movv2sf_internal): Ditto.
1486 * config/i386/sse.md (VI1248_256): Remove mode iterator.
1487 (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
1488 (*avx2_eq<mode>3): Ditto.
1489 (avx2_gt<mode>3): Ditto.
1491 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
1493 * config/i386/i386.md (maxmin): New code iterator.
1494 * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
1495 from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
1497 (*avx2_<maxmin:code><mode>3): Macroize isn from
1498 *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
1499 maxmin code iterator.
1500 (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
1501 (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
1502 <umaxmin:code>v16qi3.
1504 2011-09-19 Alan Modra <amodra@gmail.com>
1505 Michael Meissner <meissner@linux.vnet.ibm.com>
1508 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
1509 split the load of the indirect function's TOC from the call to
1510 prevent the compiler from moving the load of the new TOC above
1511 code that references the current function's TOC.
1512 (call_indirect_aix<ptrsize>_internal): Ditto.
1513 (call_indirect_aix<ptrsize>_nor11): Ditto.
1514 (call_indirect_aix<ptrsize>_internal2): Ditto.
1515 (call_value_indirect_aix<ptrsize>): Ditto.
1516 (call_value_indirect_aix<ptrsize>_internal): Ditto.
1517 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
1518 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
1520 2011-09-19 Jakub Jelinek <jakub@redhat.com>
1522 * config/i386/sse.md (*sse4_1_extractps): Change into
1523 define_insn_and_split, add =x 0 n and =x x n alternatives
1524 and split them after reload.
1526 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
1528 * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
1530 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
1532 * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
1534 2011-09-19 Ira Rosen <ira.rosen@linaro.org>
1536 PR tree-optimization/50413
1537 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
1538 a basic block if one of its data-refs can't be analyzed.
1540 2011-09-19 Paul Brook <paul@codesourcery.com>
1542 * config/arm/predicates.md (shift_amount_operand): Check constant
1543 shift count is in range.
1544 (const_shift_operand): Remove.
1546 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
1547 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1550 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
1551 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
1553 2011-09-18 H.J. Lu <hongjiu.lu@intel.com>
1555 * config/i386/bmiintrin.h: Remove tmp.
1556 * config/i386/tbmintrin.h: Likewise.
1558 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
1560 PR tree-optimization/50414
1561 * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
1564 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
1566 PR tree-optimization/50412
1567 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
1568 acceses that require epilogue loop if vectorizing outer loop.
1570 2011-09-17 David S. Miller <davem@davemloft.net>
1572 * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
1573 UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
1575 (define_attr type): New type 'edge'.
1576 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
1577 edge32l_vis): New patterns.
1578 * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
1579 * config/sparc/ultra3.md: Likewise.
1580 * config/sparc/niagara.md: Likewise.
1581 * config/sparc/niagara2.md: Likewise.
1582 * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
1583 builtins for VIS edge instructions.
1584 * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
1585 (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
1587 (__v8qi, __v4qi): Make unsigned.
1588 (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
1589 __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
1590 __vis_fpack32): Fix types.
1591 * doc/extend.texi: Document new 'edge' VIS intrinsics.
1593 * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
1595 (niagara3_costs): New.
1596 (sparc_option_override): Use it.
1597 * gcc/config/sparc/niagara2.md: Adjust with more accurate
1598 Niagara-3 reservations.
1600 2011-09-17 Jakub Jelinek <jakub@redhat.com>
1602 * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
1603 (sse2_avx, sseinsnmode): Add V2TI.
1604 (REDUC_SMINMAX_MODE): New mode iterator.
1605 (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
1606 reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
1607 (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
1608 (sse2_lshrv1ti3): Rename to...
1609 (<sse2_avx2>_lshr<mode>3): ... this. Use VIMAX_AVX2 mode
1610 iterator. Move before umaxmin expanders.
1611 * config/i386/i386.h (VALID_AVX256_REG_MODE,
1612 SSE_REG_MODE_P): Accept V2TImode.
1613 * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
1614 V16HImode, V8SImode and V4DImode.
1616 * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
1618 (ix86_build_signbit_mask): Likewise.
1619 (ix86_expand_int_vcond): Likewise. Handle V16HImode and V32QImode.
1620 (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
1621 instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
1622 * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
1623 (<code><mode>3) ... this.
1624 (avx2_<code><mode>3 smaxmin expand): Rename to...
1625 (<code><mode>3) ... this.
1626 (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
1627 (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
1628 VI8_AVX2 mode iterator.
1629 (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
1630 VI8_AVX2 mode iterator.
1631 (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
1634 2011-09-17 Richard Sandiford <rdsandiford@googlemail.com>
1636 * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
1639 2011-09-16 David S. Miller <davem@davemloft.net>
1641 * config/sparc/visintrin.h: New file.
1642 * config.gcc: Add it to extra_headers on sparc.
1644 2011-09-16 Jakub Jelinek <jakub@redhat.com>
1646 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
1647 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
1648 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
1649 reduc_smin_v4sf): Adjust callers.
1650 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
1653 * config/i386/sse.md (vec_extract_hi_<mode>,
1654 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
1655 vextracti128 instead of vextractf128 for -mavx2 and
1656 integer vectors. For V4DFmode fix up mode attribute.
1657 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
1658 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
1659 instead of V8SF mode attribute.
1660 (avx2_extracti128): Change into define_expand.
1661 * config/i386/i386.c (ix86_expand_vector_extract): Handle
1662 32-byte vector modes if TARGET_AVX.
1664 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
1666 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
1667 (umulqi3_highpart, smulqi3_highpart): Ditto.
1668 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
1669 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
1670 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
1672 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
1675 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
1676 (*maddqi4, *maddqi4.const): New insns.
1677 (*msubqi4, *msubqi4.const): New insns.
1678 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
1679 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
1680 HImode by 1 in the case of multiplying with a CONST_INT.
1681 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
1683 2011-09-15 Jan Hubicka <jh@suse.cz>
1686 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
1687 error_mark_node in the DECL_INITIAL of vtable.
1689 2011-09-15 Diego Novillo <dnovillo@google.com>
1691 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
1692 @SYSROOT_CFLAGS_FOR_TARGET@.
1693 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
1694 * configure: Regenerate.
1695 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
1696 Remove setting of GCC_UNDER_TEST.
1698 2011-09-15 Uros Bizjak <ubizjak@gmail.com>
1700 * config/i386/i386.c (output_fp_compare): Return %v prefixed
1701 instruction mnemonics for TARGET_AVX.
1703 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
1704 "type" attribute calculation.
1705 (*movdf_internal): Ditto.
1706 (*movsf_internal): Ditto.
1708 2011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
1710 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
1712 2011-09-15 Jason Merrill <jason@redhat.com>
1715 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
1717 2011-09-15 Jan Hubicka <jh@suse.cz>
1719 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
1720 simplify obviously true clauses.
1721 (and_predicates, or_predicates): Add conditions parameter.
1722 (inline_duplication_hoook): Update.
1723 (mark_modified): New function.
1724 (unmodified_parm): New function.
1725 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
1726 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
1727 Use unmodified_parm.
1728 (estimate_function_body_sizes): Update.
1729 (remap_predicate): Update.
1731 2011-09-15 Ira Rosen <ira.rosen@linaro.org>
1733 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
1734 read-after-read dependencies in basic block SLP.
1736 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1738 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
1741 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1743 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
1746 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1748 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
1751 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1753 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
1755 * config/rs6000/constraints.md: Likewise.
1757 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1759 * config/microblaze/microblaze.md: Use match_test rather than
1760 eq/ne symbol_ref throughout file.
1762 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1764 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
1767 2011-09-14 Tom de Vries <tom@codesourcery.com>
1770 * explow.c (emit_stack_restore): Set crtl->need_drap if
1771 stack_restore is emitted.
1773 2011-09-14 Julian Brown <julian@codesourcery.com>
1775 * config/arm/arm.c (arm_override_options): Add unaligned_access
1777 (arm_file_start): Emit attribute for unaligned access as appropriate.
1778 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
1779 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
1780 (insv, extzv): Add unaligned-access support.
1781 (extv): Change to expander. Likewise.
1782 (extzv_t1, extv_regsi): Add helpers.
1783 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
1784 (unaligned_storesi, unaligned_storehi): New.
1785 (*extv_reg): New (previous extv implementation).
1786 * config/arm/arm.opt (munaligned_access): Add option.
1787 * config/arm/constraints.md (Uw): New constraint.
1788 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
1789 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
1790 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
1791 volatile accesses when -fstrict-volatile-bitfields is in effect.
1792 (extract_bit_field_1): Likewise.
1794 2011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
1796 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
1797 a scalar integer before applying integer-only optimisations to
1800 2011-09-14 Bernd Schmidt <bernds@codesourcery.com>
1802 * config/mips/mips.c (mips_expand_epilogue): Generate a
1803 simple_return only if the return address is in r31.
1805 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
1807 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
1808 NULL for a jump that is a cc0 insn, pick the previous insn for
1811 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1813 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
1816 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1818 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
1821 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1823 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
1824 symbol_ref throughout file.
1826 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1828 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
1831 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1833 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
1836 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1838 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
1840 * config/arm/neon.md: Likewise.
1841 * config/arm/vfp.md: Likewise.
1842 * config/arm/thumb2.md: Likewise.
1843 * config/arm/cortex-m4.md: Likewise.
1845 2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
1847 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
1848 define_insn patterns for combine.
1850 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
1852 * reorg.c: Always define make_return_insns.
1854 2011-09-13 Jan Hubicka <jh@suse.cz>
1857 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
1859 2011-09-13 Jan Hubicka <jh@suse.cz>
1862 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
1864 2011-09-13 Paul Brook <paul@codesourcery.com>
1866 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1867 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
1868 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
1869 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
1870 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
1871 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
1872 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
1873 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
1874 enabling unwind tables.
1875 (c6x_debug_unwind_info): New function.
1876 (TARGET_ARM_EABI_UNWINDER): Define.
1877 (TARGET_DEBUG_UNWIND_INFO): Define.
1878 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
1879 (TARGET_EXTRA_CFI_SECTION): Remove.
1880 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
1881 * ginclude/unwind-arm-common.h: New file.
1883 2011-09-13 Georg-Johann Lay <avr@gjlay.de>
1886 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
1887 * config/avr/avr.md: (extend_s): New code attribute.
1888 (mul_r_d): New code attribute.
1889 (*maddqihi4, *umaddqihi4): New insns.
1890 (*msubqihi4, *umsubqihi4): New insns.
1891 (*usmaddqihi4, *sumaddqihi4): New insns.
1892 (*usmsubqihi4, *susubdqihi4): New insns.
1893 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
1894 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
1895 (*umsubqihi4.uconst.ashift): New insn-and-split.
1896 (*msubqihi4.sconst.ashift): New insn-and-split.
1897 (*sumaddqihi4.uconst): New insn-and-split.
1898 (*sumsubqihi4.uconst): New insn-and-split.
1899 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
1900 PLUS:HI and MINUS:HI.
1902 2011-09-13 Revital Eres <revital.eres@linaro.org>
1904 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
1905 (optimize_sc): Adjust call to remove_node_from_ps.
1906 (sms_schedule): Add print info.
1908 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
1910 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
1913 2011-09-12 Jakub Jelinek <jakub@redhat.com>
1916 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
1917 NOTE_INSN_CFI notes, with the exception of
1918 NOTE_INSN_SWITCH_TEXT_SECTIONS.
1920 2011-09-12 Bernd Schmidt <bernds@codesourcery.com>
1921 Richard Sandiford <rdsandiford@googlemail.com>
1923 * config/mips/mips.c (mips_epilogue): New structure.
1924 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
1925 restoring registers.
1926 (mips_epilogue_emit_cfa_restores): New function.
1927 (mips_epilogue_set_cfa): Likewise.
1928 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
1929 the current CFA register from the stack, redefine the CFA in terms
1930 of the stack pointer.
1931 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
1932 to the epilogue instructions.
1934 2011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
1936 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
1938 (mips16e_build_save_restore): Update accordingly.
1940 2011-09-12 Jakub Jelinek <jakub@redhat.com>
1942 PR rtl-optimization/50212
1943 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
1944 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
1947 * calls.c (load_register_parameters): Use use_reg_mode instead
1948 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
1950 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
1951 for stack CALL_INSN_FUNCTION_USAGE uses.
1952 * expr.h (use_reg_mode): New prototype.
1953 (use_reg): Changed into inline around use_reg_mode.
1954 * expr.c (use_reg): Renamed to...
1955 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
1956 mode to that mode instead of VOIDmode.
1957 * var-tracking.c (prepare_call_arguments): Don't track parameters
1958 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
1959 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
1962 2011-09-12 Georg-Johann Lay <avr@gjlay.de>
1965 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
1966 (progmem_section): New Variable.
1967 (avr_asm_init_sections): Initialize it.
1968 (TARGET_ASM_SELECT_SECTION): Define to...
1969 (avr_asm_select_section): ... this new Function.
1970 (avr_replace_prefix): New Function.
1971 (avr_asm_function_rodata_section): Use it.
1972 (avr_insert_attributes): Don't add section attribute for PROGMEM.
1973 (avr_section_type_flags): Use avr_progmem_p instead of section
1974 name to detect if object is in PROGMEM.
1975 (avr_asm_named_section): Set section name prefix for objects in
1978 2011-09-12 Jakub Jelinek <jakub@redhat.com>
1981 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
1982 sprintf format string.
1984 2011-09-12 Richard Guenther <rguenther@suse.de>
1986 PR tree-optimization/50343
1987 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
1988 that the reduction is over an SSA name before checking its definition.
1990 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
1992 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
1995 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
1997 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
1999 * config/mips/sb1.md: Likewise.
2000 * config/mips/predicates.md: Replace (match_test "!...")
2001 with (not (match_test "..."))
2002 * config/mips/constraints.md: Likewise.
2004 2011-09-09 Andrew Stubbs <ams@codesourcery.com>
2006 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
2007 * config/arm/arm-tables.opt: Regenerate.
2008 * config/arm/arm-tune.md: Regenerate.
2009 * config/arm/arm.c (arm_file_start): Output .arch directive when
2010 user passes -mcpu=generic-*.
2011 (arm_issue_rate): Add genericv7a support.
2012 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
2013 (ASM_CPU_SPEC): New define.
2014 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
2015 * config/arm/semi.h (ASM_SPEC): Likewise.
2016 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
2017 and -mtune=generic-*.
2019 2011-09-09 Richard Guenther <rguenther@suse.de>
2021 PR tree-optimization/50328
2022 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
2023 constant or default-def operand.
2025 2011-09-09 Richard Guenther <rguenther@suse.de>
2027 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
2030 2011-09-09 Richard Guenther <rguenther@suse.de>
2032 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
2033 instead of a statement.
2034 * gimple-fold.c (fold_stmt_inplace): Likewise.
2035 * sese.c (graphite_copy_stmts_from_block): Adjust.
2036 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
2037 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
2039 (forward_propagate_addr_into_variable_array_index): Likewise.
2040 (forward_propagate_addr_expr_1): adjust.
2041 (associate_plusminus): Likewise.
2042 (ssa_forward_propagate_and_combine): Likewise.
2043 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
2044 (execute_cse_reciprocals): Likewise.
2045 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
2047 2011-09-09 Nick Clifton <nickc@redhat.com>
2049 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
2050 Return a positive value to indicate that the bits at the
2051 bottom of the register should be cleared.
2053 2011-09-09 Richard Guenther <rguenther@suse.de>
2055 * tree-ssa-operands.c (swap_tree_operands): Always adjust
2056 existing operand positions.
2058 2011-09-09 Richard Guenther <rguenther@suse.de>
2061 * tree-data-ref.c (split_constant_offset): Do not try to handle
2064 2011-09-08 Andrew Stubbs <ams@codesourcery.com>
2066 PR tree-optimization/50318
2067 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
2068 typo in use of mult_rhs1 and mult_rhs2.
2070 2011-09-08 Uros Bizjak <ubizjak@gmail.com>
2072 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
2073 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
2075 2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
2077 * config/arm/arm.md (push_multi): Emit predicates.
2078 (push_fp_multi): Likewise.
2079 * config/arm/arm.c (vfp_output_fstmd): Likewise.
2081 2011-09-08 Dodji Seketeli <dodji@redhat.com>
2083 PR c++/33255 - Support -Wunused-local-typedefs warning
2084 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
2085 (pushdecl): Use the new record_locally_defined_typedef.
2086 (store_parm_decls): Allocate cfun->language.
2087 (finish_function): Use the new maybe_warn_unused_local_typedefs,
2088 and free cfun->language.
2089 (c_push_function_context): Allocate cfun->language here only if needed.
2090 (c_pop_function_context): Likewise, mark cfun->language
2091 for collection only when it should be done.
2092 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
2093 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
2094 maybe_record_local_typedef_use.
2095 * doc/invoke.texi: Update documentation for
2096 -Wunused-local-typedefs.
2098 2011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
2100 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
2101 (ix86_avoid_lea_for_add): Likewise.
2102 (ix86_avoid_lea_for_addr): Likewise.
2103 (ix86_split_lea_for_addr): Likewise.
2105 * config/i386/i386.c (LEA_MAX_STALL): New.
2106 (increase_distance): Likewise.
2107 (insn_defines_reg): Likewise.
2108 (insn_uses_reg_mem): Likewise.
2109 (distance_non_agu_define_in_bb): Likewise.
2110 (distance_agu_use_in_bb): Likewise.
2111 (ix86_lea_outperforms): Likewise.
2112 (ix86_ok_to_clobber_flags): Likewise.
2113 (ix86_avoid_lea_for_add): Likewise.
2114 (ix86_avoid_lea_for_addr): Likewise.
2115 (ix86_split_lea_for_addr): Likewise.
2116 (distance_non_agu_define): Search in pred BBs added.
2117 (distance_agu_use): Search in succ BBs added.
2118 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
2119 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
2120 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
2122 * config/i386/i386.md: Split added to transform non destructive
2123 add into move and add.
2124 (lea_1): transformed into insn_and_split to avoid AGU stalls.
2125 (lea<mode>_2): Likewise.
2127 2011-09-08 Martin Jambor <mjambor@suse.cz>
2129 PR tree-optimization/50287
2130 * ipa-split.c (split_function): Do not create SSA names for
2131 non-gimple-registers.
2133 2011-09-08 Richard Guenther <rguenther@suse.de>
2135 PR tree-optimization/19831
2136 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
2137 skip builtins with vdefs that do not really store something.
2138 (propagate_necessity): For calls to free that we can associate
2139 with an allocation function do not mark the freed pointer
2140 definition necessary.
2141 (eliminate_unnecessary_stmts): Remove a call to free if
2142 the associated call to an allocation function is not necessary.
2144 2011-09-08 Richard Guenther <rguenther@suse.de>
2146 PR tree-optimization/19831
2147 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
2148 allocation functions as necessary.
2150 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
2152 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
2154 (darwin_default_min_version): Amended to provide defaults
2155 for the cross directory case.
2156 (darwin_driver_init): call darwin_default_min_version unconditionally.
2157 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
2158 * config/darwin9.h: Likewise.
2159 * config/darwin10.h: Likewise.
2160 * config/rs6000/darwin7.h: Likewise.
2162 2011-09-08 Jakub Jelinek <jakub@redhat.com>
2165 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
2166 code early if TARGET_AVX.
2167 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
2169 2011-09-07 Jakub Jelinek <jakub@redhat.com>
2171 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
2175 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
2176 "mode" attribute computation.
2178 2011-09-07 Bernd Schmidt <bernds@codesourcery.com>
2180 * regrename.c (struct du_head): Make nregs signed.
2181 (closed_chains): Remove.
2182 (create_new_chain): Return the new chain.
2183 (chain_from_id): New static function.
2184 (dump_def_use_chain): Change argument to be an int, indicating
2185 the first ID to print. All callers changed.
2186 (merge_overlapping_regs): Use chain_from_id. Assert that
2187 chains don't conflict with themselves.
2188 (rename_chains): Take no argument. Iterate over id_to_chain
2189 rather to find chains to rename. Clear tick before the main loop.
2190 (struct incoming_reg_info): New struct.
2191 (struct bb_rename_info): New struct.
2192 (init_rename_info, set_incoming_from_chain, merge_chains): New
2194 (regrename_analyze): New static function, broken out of
2195 regrename_optimize. Record and make use of open chain information
2196 at basic block boundaries, and merge chains where possible.
2197 (scan_rtx_reg): Make this_nregs signed. Don't update
2199 (build_def_use): Return a bool to indicate success. All callers
2200 changed. Don't initialize global data here.
2201 (regrename_optimize): Move most code out of here into
2203 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
2204 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
2205 static inline functions.
2206 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
2208 * bb-reorder.c (insert_section_boundary_note): Don't check
2209 optimize_function_for_speed_p.
2210 (gate_handle_partition_blocks): Do it here instead.
2211 (gate_handle_reorder_blocks): Move preliminary checks here ...
2212 (rest_of_handle_reorder_blocks): ... from here.
2214 2011-09-07 Martin Jambor <mjambor@suse.cz>
2217 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
2218 function index bounds.
2219 (perhaps_add_new_callers): Likewise.
2221 2011-09-07 Martin Jambor <mjambor@suse.cz>
2223 PR tree-optimization/49911
2224 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
2225 enumerations to the corresponding plain integer type.
2227 2011-09-07 Richard Guenther <rguenther@suse.de>
2229 PR tree-optimization/50319
2230 * tree-if-conv.c (set_bb_predicate): Assert we only set
2231 canonical predicates.
2232 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
2233 around canonical predicates.
2234 (predicate_bbs): Do not re-gimplify already canonical
2235 predicates. Properly unshare them though.
2236 (find_phi_replacement_condition): Simplify.
2238 2011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
2241 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
2242 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
2243 reusing the old code from get_arm_condition_code. Return ARM_NV
2244 for invalid comparison codes.
2245 (get_arm_condition_code): Redefine in terms of
2246 maybe_get_arm_condition_code.
2247 * config/arm/predicates.md (arm_comparison_operator): Use
2248 maybe_get_arm_condition_code.
2250 2011-09-07 Richard Guenther <rguenther@suse.de>
2252 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
2253 Canonicalize negated predicates by swapping edges.
2254 (forward_propagate_into_cond): Likewise.
2256 2011-09-07 Richard Guenther <rguenther@suse.de>
2258 PR tree-optimization/50213
2259 * tree-flow.h (simple_iv_increment_p): Declare.
2260 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
2262 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
2263 not propagate simple IV counter increments.
2265 2011-09-07 Eric Botcazou <ebotcazou@adacore.com>
2266 Iain Sandoe <iains@gcc.gnu.org>
2268 * config/rs6000/rs6000.c (compute_save_world_info): Test
2269 cfun->has_nonlocal_label to determine if the out-of-line save
2270 world call may be used.
2272 2011-09-07 Nick Clifton <nickc@redhat.com>
2274 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
2275 label on the parallel part of the insn.
2277 2011-09-07 Jakub Jelinek <jakub@redhat.com>
2280 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
2281 avoid_constant_pool_reference first instead of last.
2283 2011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2285 * doc/configfiles.texi (Configuration Files): Update documentation
2286 about tm_p.h and remove FIXME comment.
2288 2011-09-06 Uros Bizjak <ubizjak@gmail.com>
2290 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
2291 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
2293 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
2295 * config/darwin10.h Remove duplicate LIB_SPEC.
2297 2011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
2300 * target.def (reassociation_width): New hook.
2302 * doc/tm.texi.in (reassociation_width): Likewise.
2304 * doc/tm.texi (reassociation_width): Likewise.
2306 * doc/invoke.texi (tree-reassoc-width): New param documented.
2308 * hooks.h (hook_int_uint_mode_1): New default hook.
2310 * hooks.c (hook_int_uint_mode_1): Likewise.
2312 * config/i386/i386.h (ix86_tune_indices): Add
2313 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
2315 (TARGET_REASSOC_INT_TO_PARALLEL): New.
2316 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
2318 * config/i386/i386.c (initial_ix86_tune_features): Add
2319 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
2321 (ix86_reassociation_width): New function.
2323 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
2325 * tree-ssa-reassoc.c (get_required_cycles): New function.
2326 (get_reassociation_width): Likewise.
2327 (swap_ops_for_binary_stmt): Likewise.
2328 (rewrite_expr_tree_parallel): Likewise.
2330 (rewrite_expr_tree): Refactored. Part of code moved into
2331 swap_ops_for_binary_stmt.
2333 (reassociate_bb): Now checks reassociation width to be used and
2334 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
2336 2011-09-06 Richard Guenther <rguenther@suse.de>
2338 PR tree-optimization/47025
2339 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
2341 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
2343 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
2344 definitely points to.
2345 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2346 BUILT_IN_VA_START doesn't let its va_list argument escape.
2347 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
2348 not make any previous stores necessary.
2350 2011-09-06 Martin Jambor <mjambor@suse.cz>
2352 * ipa-inline.h (struct inline_summary): Move versionable flag...
2353 * cgraph.h (struct cgraph_local_info): ...here
2354 * ipa-cp.c (determine_versionability): Use the new versionable flag.
2355 (determine_versionability): Likewise.
2356 (ipcp_versionable_function_p): Likewise.
2357 (ipcp_generate_summary): Likewise.
2358 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
2360 (compute_inline_parameters): Do not clear the versionable flag.
2361 (inline_read_section): Do not stream the versionable flag.
2362 (inline_write_summary): Likewise.
2363 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
2364 (input_overwrite_node): Likewise.
2366 2011-09-06 Richard Guenther <rguenther@suse.de>
2368 PR tree-optimization/48149
2369 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
2370 (vn_valueize): Move earlier.
2371 (valueize_expr): Use vn_valueize.
2372 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
2374 (simplify_unary_expression): Simplify.
2376 2011-09-06 Richard Guenther <rguenther@suse.de>
2378 PR tree-optimization/48317
2379 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
2381 (sizeof_vn_nary_op): New inline function.
2382 (vn_nary_op_lookup_pieces): Adjust.
2383 (vn_nary_op_insert_pieces): Likewise.
2384 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
2385 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
2386 any number of operands.
2387 (vn_nary_length_from_stmt): New function.
2388 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
2389 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
2391 (vn_nary_op_lookup): Likewise.
2392 (vn_nary_op_lookup_stmt): Likewise.
2393 (vn_nary_op_insert_into): Likewise.
2394 (vn_nary_op_insert_stmt): Likewise.
2395 (visit_use): Handle CONSTRUCTOR as nary.
2396 * tree-ssa-pre.c (phi_translate_1): Adjust.
2397 (create_expression_by_pieces): Likewise.
2398 (compute_avail): Likewise.
2400 2011-09-06 Ira Rosen <ira.rosen@linaro.org>
2402 * config/arm/arm.c (arm_preferred_simd_mode): Check
2403 TARGET_NEON_VECTORIZE_DOUBLE instead of
2404 TARGET_NEON_VECTORIZE_QUAD.
2405 (arm_autovectorize_vector_sizes): Likewise.
2406 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
2407 mask of mvectorize-with-neon-double. Add RejectNegative.
2408 (mvectorize-with-neon-double): New.
2410 2011-09-06 Richard Guenther <rguenther@suse.de>
2412 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
2414 2011-09-06 Tom de Vries <tom@codesourcery.com>
2416 * recog.c (asm_labels_ok): New function.
2417 (check_asm_operands): Use asm_labels_ok.
2419 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
2422 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
2423 (PMODE_INSN): New macro.
2424 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
2425 (mips_got_load, mips_expand_synci_loop): Likewise.
2426 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
2428 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
2429 copygp_mips16 patterns.
2430 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
2431 and use_cprestore patterns.
2432 (mips_override_options): Check for incompatible -mabi and -mlong
2434 * config/mips/mips.md (unspec_got<mode>): Rename to...
2435 (unspec_got_<mode>): ...this.
2436 (copygp_mips16): Use the Pmode iterator.
2437 (potential_cprestore, cprestore, use_cprestore): Likewise.
2438 (clear_cache, indirect_jump): Use PMODE_INSN.
2439 (indirect_jump<mode>): Rename to...
2440 (indirect_jump_<mode>): ...this.
2441 (tablejump): Use PMODE_INSN.
2442 (tablejump<mode>): Rename to...
2443 (tablejump_<mode>): ...this.
2444 (exception_receiver): Handle restore_gp_si and restore_gp_di.
2445 (restore_gp): Use the Pmode iterator.
2446 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
2449 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
2451 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
2452 Fix the type of the BIT_AND_EXPR.
2454 2011-09-05 David S. Miller <davem@davemloft.net>
2456 * config.host: Add driver-sparc.o and sparc/x-sparc on
2457 native sparc*-*-linux* builds.
2458 * config/sparc/driver-sparc.c: Correct Linux strings.
2459 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
2460 * config/sparc/linux64.h: Likewise.
2461 * doc/invoke.texi: Document that Linux also supports
2462 -mcpu=native and -mtune=native on sparc.
2464 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
2465 PROCESSOR_NIAGARA4): New.
2466 * config/sparc/sparc.opt: Handle new processor types.
2467 * config/sparc/sparc.md: Add to "cpu" attribute.
2468 * config/sparc/sparc.h (TARGET_CPU_niagara3,
2469 TARGET_CPU_niagara4): New, treat as niagara2.
2470 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
2471 * config/sparc/sol2.h: Likewise.
2472 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
2473 * config/sparc/sparc.c (sparc_option_override): Add
2474 niagara3 and niagara4 handling.
2475 (sparc32_initialize_trampoline): Likewise.
2476 (sparc64_initialize_trampoline): Likewise.
2477 (sparc_use_sched_lookahead): Likewise.
2478 (sparc_issue_rate): Likewise.
2479 (sparc_register_move_cost): Likewise.
2480 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
2481 and niagara4 as appropriate.
2482 * doc/invoke.texi: Document new processor types.
2483 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
2484 and --with-tune options.
2486 * config/sparc/sol2-64.h: Move ...
2487 * config/sparc/default-64.h: ... to here. Update comment.
2488 * config.gcc: Update Solaris sparc to use default-64.h, also
2489 prefix this header into the list on sparc64-*-linux.
2490 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
2491 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
2494 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
2497 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
2498 that contain global register variable.
2500 2011-09-05 Richard Guenther <rguenther@suse.de>
2502 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
2504 2011-09-05 Richard Guenther <rguenther@suse.de>
2506 * stor-layout.c (layout_type): Use size_binop for array size
2509 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
2511 * config/avr/avr.h (progmem_section): Remove Declaration.
2512 * config/avr/avr.c (progmem_section): Make static and rename to
2513 progmem_swtable_section.
2514 (avr_output_addr_vec_elt): No need to switch sections.
2515 (avr_asm_init_sections): Use output_section_asm_op as section
2516 callback for progmem_swtable_section.
2517 (avr_output_progmem_section_asm_op): Remove Function.
2518 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
2519 (avr_asm_function_rodata_section): New static Function.
2520 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
2521 alignment 2**1 for jump tables.
2523 2011-09-04 Jan Hubicka <jh@suse.cz>
2525 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
2526 parameter is SSA name.
2528 2011-09-04 Richard Guenther <rguenther@suse.de>
2531 2011-08-31 Richard Guenther <rguenther@suse.de>
2533 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
2536 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
2539 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
2541 2011-09-04 Jakub Jelinek <jakub@redhat.com>
2542 Ira Rosen <ira.rosen@linaro.org>
2544 PR tree-optimization/50208
2545 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
2546 argument. Check that def_stmt is inside the loop.
2547 (vect_recog_widen_mult_pattern): Update calls to
2548 vect_handle_widen_mult_by_cons.
2549 (vect_operation_fits_smaller_type): Check that def_stmt is
2552 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
2554 * tree-vectorizer.c (vect_print_dump_info): Print line
2555 number when dumping to a file.
2556 (vectorize_loops): Add new messages to dump file.
2558 2011-09-03 Martin Jambor <mjambor@suse.cz>
2560 * ipa-prop.h (ipa_jump_func_t): New typedef.
2561 (struct ipa_edge_args): Removed field argument_count, field
2562 jump_functions turned into a vector.
2563 (ipa_set_cs_argument_count): Removed.
2564 (ipa_get_cs_argument_count): Updated to work on vectors.
2565 (ipa_get_ith_jump_func): Likewise.
2566 * ipa-prop.c (ipa_count_arguments): Removed.
2567 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
2568 jump functions. Update caller.
2569 (compute_pass_through_member_ptrs): Likewise.
2570 (compute_cst_member_ptr_arguments): Likewise.
2571 (ipa_compute_jump_functions_for_edge): Get number of arguments from
2572 the statement, allocate vector.
2573 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
2574 (duplicate_ipa_jump_func_array): Removed.
2575 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
2576 (ipa_read_node_info): Allocate vector.
2578 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2581 * config/pa/pa.md (return): Define "return" insn pattern.
2582 (epilogue): Use it when no epilogue is needed.
2583 * config/pa/pa.c (pa_can_use_return_insn): New function.
2584 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
2586 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
2588 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
2589 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
2590 Force at least BITS_PER_UNIT alignment on the new variable.
2592 2011-09-02 Gary Funck <gary@intrepid.com>
2594 * opts.c (print_specific_help): Fix off-by-one compare in
2596 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
2597 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
2598 Increase by +5 to allow for more languages.
2599 * optc-gen.awk: Generate #if that ensures that the number of
2600 languages is within the implementation-defined limit.
2602 2011-09-02 Michael Matz <matz@suse.de>
2605 * ipa-split.c (split_function): Call add_referenced_var.
2607 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
2608 (cond_if_else_store_replacement_1): Ditto.
2609 * tree-ssa-pre.c (get_representative_for): Ditto.
2610 (create_expression_by_pieces): Ditto.
2611 (insert_into_preds_of_block): Ditto.
2612 * tree-sra.c (create_access_replacement): Ditto.
2613 (get_replaced_param_substitute): Ditto.
2615 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
2617 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
2619 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
2620 (l1w, s1w, l2w, s2w): Define in the main automaton.
2621 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
2623 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
2624 (c6x_unit_names): Add the new units.
2625 (c6x_unit_codes): New static array.
2626 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
2627 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
2628 UNIT_QID_SIDE_OFFSET): New macros.
2629 (RESERVATION_S2): Adjust value.
2630 (c6x_option_override): Compute c6x_unit_codes.
2631 (assign_reservations): Take the unit_mask of the last instruction
2632 into account. Detect floating point reservations by looking for
2633 the new units. Don't assign reservations if the field is already
2635 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
2636 (init_sched_state): Initialize it.
2637 (c6x_clear_sched_context): Free it.
2638 (insn_set_clock): Clear reservation.
2639 (prev_cycle_state): New static variable.
2640 (c6x_init_sched_context): Save it.
2641 (c6x_sched_init): Allocate space for it and clear it.
2642 (c6x_sched_dfa_pre_cycle_insn): New static function.
2643 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
2644 (c6x_variable_issue): Only record units in the unit_mask that
2645 were not set at the start of the cycle.
2646 (c6x_variable_issue): Compute and store the unit_mask from the
2648 (reorg_split_calls): Ensure the new information remains correct.
2649 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
2650 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
2651 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
2652 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
2653 Add special reservations.
2654 * config/c6x/c6x-sched.md: Regenerate.
2656 2011-09-02 Martin Jambor <mjambor@suse.cz>
2658 * ipa-prop.h (ipa_node_params): Removed fields
2659 called_with_var_arguments and node_versionable.
2660 (ipa_set_called_with_variable_arg): Removed.
2661 (ipa_is_called_with_var_arguments): Likewise.
2662 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
2663 (determine_versionability): Do not check for type attributes and va
2664 builtins. Record versionability into inline summary.
2665 (initialize_node_lattices): Do not check
2666 ipa_is_called_with_var_arguments.
2667 (propagate_constants_accross_call): Likewise, ignore arguments we do
2668 not have PARM_DECLs for, set variable flag for parameters that were
2670 (create_specialized_node): Dump info that we cannot change signature.
2671 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
2672 number of arguments.
2673 (ipa_make_edge_direct_to_target): Likewise.
2674 (ipa_update_after_lto_read): Likewise.
2675 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
2676 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
2679 2011-09-02 Richard Guenther <rguenther@suse.de>
2681 PR tree-optimization/27460
2683 * doc/md.texi (vcond): Document.
2684 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
2685 optab with two modes.
2686 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
2687 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
2688 (vcond_optab): Adjust.
2689 (vcondu_optab): Likewise.
2690 (expand_vec_cond_expr_p): Adjust prototype.
2691 * optabs.c (get_vcond_icode): Adjust.
2692 (expand_vec_cond_expr_p): Likewise.
2693 (expand_vec_cond_expr): Likewise.
2694 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
2696 (vectorizable_condition): Allow differing types for comparison
2698 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
2700 * config/i386/sse.md (vcond<mode>): Split to
2701 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
2702 vcond<V_128:mode><VI124_128:mode> and
2703 vcondu<V_128:mode><VI124_128:mode>.
2704 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
2705 (vconduv2di): Likewise.
2706 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
2707 (vcondu<mode>): Likewise.
2708 * config/ia64/vect.md (vcond<mode>): Likewise.
2709 (vcondu<mode>): Likewise.
2710 (vcondv2sf): Likewise.
2711 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
2712 * config/rs6000/paired.md (vcondv2sf): Likewise.
2713 * config/rs6000/vector.md (vcond<mode>): Likewise.
2714 (vcondu<mode>): Likewise.
2715 * config/spu/spu.md (vcond<mode>): Likewise.
2716 (vcondu<mode>): Likewise.
2718 2011-09-02 Richard Guenther <rguenther@suse.de>
2720 * pretty-print.h (pp_unsigned_wide_integer): New.
2721 * tree-pretty-print.c (dump_generic_node): Print unsigned
2722 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
2724 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
2727 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
2728 valid CONST_VECTOR operands.
2729 (rs6000_expand_vector_init): Likewise.
2731 2011-09-02 Martin Jambor <mjambor@suse.cz>
2733 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
2734 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
2735 BINFO_VTABLE. Parameter delta removed, all callers updated.
2736 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
2738 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
2740 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
2741 handling of thunk_delta.
2742 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
2743 (devirtualization_time_bonus): Do not handle thunk deltas.
2744 (ipcp_discover_new_direct_edges): Likewise.
2745 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2746 (try_make_edge_direct_simple_call): Likewise.
2747 (try_make_edge_direct_virtual_call): Likewise.
2748 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
2749 parameter set as unused.
2750 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
2751 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
2752 parameter set as unused.
2753 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
2754 (input_edge_opt_summary): Likewise.
2755 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
2756 BINFO_VIRTUALS at all.
2757 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
2759 2011-09-02 Richard Guenther <rguenther@suse.de>
2761 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
2762 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
2764 2011-08-31 Richard Guenther <rguenther@suse.de>
2766 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
2767 handling here, from ...
2768 (expand_expr_real_1): ... here.
2769 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
2771 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
2772 a GIMPLE_TERNARY_RHS.
2773 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
2774 and VEC_COND_EXPR here ...
2775 (verify_gimple_assign_single): ... not here.
2776 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
2777 * tree-object-size.c (cond_expr_object_size): Adjust.
2778 (collect_object_sizes_for): Likewise.
2779 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
2780 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
2781 (ssa_forward_propagate_and_combine): Adjust.
2782 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
2784 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
2785 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
2786 * tree-vect-stmt.c (vectorizable_condition): Likewise.
2787 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
2788 (extract_range_from_assignment): Likewise.
2790 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
2792 * config/i386/i386.md: Use (match_test ...) for attribute tests.
2793 * config/i386/mmx.md: Likewise.
2794 * config/i386/sse.md: Likewise.
2795 * config/i386/predicates.md (call_insn_operand): Use
2796 (not (match_test "...")) instead of (match_test "!...")
2797 * config/i386/constraints.md (w): Likewise.
2799 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
2801 * doc/md.texi: Describe the use of match_tests in attribute tests.
2802 * rtl.def (MATCH_TEST): Update commentary.
2803 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
2804 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
2806 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
2808 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
2809 (attr_string): Use copy_md_ptr_loc.
2811 2011-08-31 Martin Jambor <mjambor@suse.cz>
2814 * ipa-inline-analysis.c (compute_inline_parameters): Set
2815 can_change_signature of noes with typde attributes.
2816 * ipa-split.c (split_function): Do not skip any arguments if
2817 can_change_signature is set.
2819 2011-08-31 Martin Jambor <mjambor@suse.cz>
2821 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
2824 2011-08-31 Richard Guenther <rguenther@suse.de>
2826 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
2829 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
2831 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
2833 2011-08-31 Tom de Vries <tom@codesourcery.com>
2836 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
2837 * tree-ssa-ccp.c (params.h): Include.
2838 (fold_builtin_alloca_for_var): New function.
2839 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
2841 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
2843 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
2846 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
2848 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
2851 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
2853 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
2856 2011-08-30 Richard Guenther <rguenther@suse.de>
2859 * gimple.h (maybe_fold_offset_to_address): Remove.
2860 (maybe_fold_offset_to_reference): Likewise.
2861 (maybe_fold_stmt_addition): Likewise.
2862 (may_propagate_address_into_dereference): Likewise.
2863 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
2865 * gimple-fold.c (canonicalize_constructor_val): Likewise.
2866 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
2868 (may_propagate_address_into_dereference): Remove.
2869 (maybe_fold_offset_to_array_ref): Likewise.
2870 (maybe_fold_offset_to_reference): Likewise.
2871 (maybe_fold_offset_to_address): Likewise.
2872 (maybe_fold_stmt_addition): Likewise.
2873 (fold_gimple_assign): Do not reconstruct array references but
2874 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
2876 (gimple_fold_stmt_to_constant_1): Likewise.
2877 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2878 * gimplify.c (gimplify_conversion): Likewise.
2879 (gimplify_expr): Likewise.
2881 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
2883 * config/i386/fmaintrin.h: New.
2884 * config.gcc: Add fmaintrin.h.
2885 * config/i386/i386.c
2886 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
2887 <IX86_BUILTIN_VFMADDSD3>: Likewise.
2888 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
2889 (*fmai_fmadd_<mode>): Likewise.
2890 (*fmai_fmsub_<mode>): Likewise.
2891 (*fmai_fnmadd_<mode>): Likewise.
2892 (*fmai_fnmsub_<mode>): Likewise.
2893 * config/i386/immintrin.h: Add fmaintrin.h.
2895 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
2897 * genautomata.c (NO_COMB_OPTION): New macro.
2898 (no_comb_flag): New static variable.
2899 (gen_automata_option): Handle NO_COMB_OPTION.
2900 (comb_vect_p): False if no_comb_flag.
2901 (add_vect): Move computation of min/max values. Return early if
2903 * doc/md.texi (automata_option): Document no-comb-vect.
2905 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
2906 "__x86.get_pc_thunk".
2908 * bb-reorder.c (insert_section_boundary_note): Only do it if
2909 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
2911 2011-08-30 Christian Bruel <christian.bruel@st.com>
2913 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
2916 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2918 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
2919 to off. Document switch.
2920 * doc/invoke.texi (-msave-toc-indirect): Ditto.
2922 2011-08-29 Jakub Jelinek <jakub@redhat.com>
2924 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
2925 conditionals and comments inside macro arguments.
2927 2011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
2928 Richard Guenther <rguenther@suse.de>
2930 * tree.h (constant_boolean_node): Adjust prototype.
2931 * fold-const.c (fold_convert_loc): Move aggregate conversion
2933 (constant_boolean_node): Make value parameter boolean, add
2934 vector type handling.
2935 (fold_unary_loc): Use constant_boolean_node.
2936 (fold_binary_loc): Preserve types properly when folding
2937 COMPLEX_EXPR <__real x, __imag x>.
2938 * gimplify.c (gimplify_expr): Handle vector comparison.
2939 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
2941 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
2944 2011-08-29 Jakub Jelinek <jakub@redhat.com>
2947 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
2948 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
2949 (verify_rtl_sharing): Likewise and verify_rtx_sharing
2951 (unshare_all_rtl_in_chain): For CALL_INSNs
2952 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
2954 2011-08-29 Richard Guenther <rguenther@suse.de>
2956 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
2957 on the built ADDR_EXPR.
2959 2011-08-29 Jakub Jelinek <jakub@redhat.com>
2962 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
2963 before adding ENTRY_VALUE to val->locs.
2965 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
2968 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
2971 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
2973 * doc/rtl.texi (simple_return): Document.
2974 (parallel, PATTERN): Here too.
2975 * doc/md.texi (return): Mention it's allowed to expand to simple_return
2977 (simple_return): Document standard pattern.
2978 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
2979 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
2980 * reorg.c (function_return_label, function_simple_return_label):
2981 New static variables, replacing...
2982 (end_of_function_label): ... this.
2983 (simplejump_or_return_p): New static function.
2984 (optimize_skip, steal_delay_list_from_fallthrough,
2985 fill_slots_from_thread): Use it.
2986 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
2987 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
2988 (find_end_label): Take a new arg which is one of the two return
2989 rtxs. Depending on which, set either function_return_label or
2990 function_simple_return_label. All callers changed.
2991 (make_return_insns): Make both kinds.
2992 (dbr_schedule): Adjust for two kinds of end labels.
2993 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
2994 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
2995 (gen_expand, gen_split): Use ANY_RETURN_P.
2996 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
2997 * rtl.def (SIMPLE_RETURN): New code.
2998 * ifcvt.c (find_if_case_1): Be more careful about
2999 redirecting jumps to the EXIT_BLOCK.
3000 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
3001 returnjump_p_1): Handle SIMPLE_RETURNs.
3002 * print-rtl.c (print_rtx): Likewise.
3003 * rtl.c (copy_rtx): Likewise.
3004 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
3005 * combine.c (simplify_set): Likewise.
3006 * resource.c (find_dead_or_set_registers, mark_set_resources):
3008 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
3009 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
3010 (init_emit_regs): Initialize simple_return_rtx.
3011 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
3012 force_nonfallthru_and_redirect.
3013 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
3014 (GR_SIMPLE_RETURN): New enum value.
3015 (simple_return_rtx): New macro.
3016 * basic-block.h (force_nonfallthru_and_redirect): Adjust
3018 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
3019 argument. All callers changed. Be careful about what kinds of
3020 returnjumps to generate.
3021 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
3022 ix86_pad_short_function): Likewise.
3023 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
3025 * config/mips/mips.md (any_return): New code_iterator.
3026 (optab): Add cases for return and simple_return.
3027 (return): Expand to a simple_return.
3028 (simple_return): New pattern.
3029 (*<optab>, *<optab>_internal for any_return): New patterns.
3030 (return_internal): Remove.
3031 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
3032 a simple_return_internal.
3034 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
3036 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
3037 (vec_extract_lo_<mode>): Prevent both operands in memory.
3038 (vec_extract_lo_v16hi): Ditto.
3039 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
3041 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
3043 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
3044 (*sse2_mulv4si3): Ditto.
3046 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
3049 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
3052 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
3053 when all outputs are unused.
3054 (sse4_2_pcmpistr): Ditto.
3056 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
3058 * config/i386/i386.md (round<mode>2): New expander.
3059 * config/i386/i386.c (enum ix86_builtins): Add
3060 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
3061 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
3063 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
3064 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
3066 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
3069 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
3070 only when TARGET_C99_FUNCTIONS.
3071 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
3072 <BUILT_IN_RINT{,F,L}>: Ditto.
3074 2011-08-26 Michael Matz <matz@suse.de>
3075 Jakub Jelinek <jakub@redhat.com>
3078 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
3079 don't call strlen twice, use memcpy.
3081 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
3083 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
3084 * config/i386/bmiintrin.h: Likewise.
3085 * config/i386/lzcntintrin.h: Likewise.
3087 * config/i386/immintrin.h: Include <lzcntintrin.h>,
3088 <bmiintrin.h> and <bmi2intrin.h>.
3090 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3093 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
3094 * configure: Regenerate.
3096 2011-08-26 Jakub Jelinek <jakub@redhat.com>
3099 * c-typeck.c (c_process_expr_stmt): Skip over nops and
3100 call mark_exp_read even if exprv is ADDR_EXPR.
3102 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
3104 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
3105 to df_set_dead_notes_for_mw.
3107 2011-08-26 Richard Guenther <rguenther@suse.de>
3109 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
3111 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
3112 Tom de Vries <tom@codesourcery.com>
3114 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
3115 (struct ivopts_data): Add loop_single_exit_p field.
3116 (niter_for_exit): Change parameter desc_p into return value. Return
3117 desc if desc->may_be_zero. Free desc if unused.
3118 (niter_for_single_dom_exit): Change return type.
3119 (find_induction_variables): Handle changed return type of
3120 niter_for_single_dom_exit. Dump may_be_zero.
3121 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
3122 (set_use_iv_cost): Add and handle comp parameter.
3123 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
3124 comp argument to set_use_iv_cost.
3125 (strip_wrap_conserving_type_conversions, expr_equal_p)
3126 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
3127 (may_eliminate_iv): Add comp parameter. Handle new return type of
3128 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
3129 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
3130 and may_eliminate_iv.
3131 (rewrite_use_compare): Move call to iv_elimination_compare to ...
3132 (may_eliminate_iv): Here.
3133 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
3135 2011-08-26 Tom de Vries <tom@codesourcery.com>
3137 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
3138 accessing TREE_TYPE.
3140 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
3142 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
3143 (*ior_scc_scc_cmp): Likewise
3144 (*and_scc_scc): Likewise.
3145 (*and_scc_scc_cmp): Likewise.
3146 (*and_scc_scc_nodom): Likewise.
3147 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
3149 2011-08-26 Jakub Jelinek <jakub@redhat.com>
3151 * rtlanal.c (nonzero_bits1): Handle CLRSB.
3153 2011-08-26 Richard Guenther <rguenther@suse.de>
3155 * expr.c (string_constant): Handle &MEM_REF.
3157 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
3159 * config/arm/arm.c (struct four_ints): New type.
3160 (count_insns_for_constant): Delete function.
3161 (find_best_start): Delete function.
3162 (optimal_immediate_sequence): New function.
3163 (optimal_immediate_sequence_1): New function.
3164 (arm_gen_constant): Move constant splitting code to
3165 optimal_immediate_sequence.
3166 Rewrite constant negation/invertion code.
3168 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
3170 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
3171 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
3172 Remove prototype. Remove static function type.
3173 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
3175 * config/arm/constraints.md (Pj, PJ): New constraints.
3177 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3179 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
3180 ("cortex_a9_multiply_long"): New and use above. Handle all
3181 long multiply cases.
3182 ("cortex_a9_multiply"): Handle smmul and smmulr.
3183 ("cortex_a9_mac"): Handle smmla.
3185 2011-08-25 Richard Henderson <rth@redhat.com>
3189 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
3190 non-constant stack adjutment.
3191 * expr.c (find_args_size_adjust): Break out from ...
3192 (fixup_args_size_notes): ... here.
3193 * rtl.h (find_args_size_adjust): Declare.
3195 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
3197 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
3198 sse4 and sse4_noavx.
3199 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
3200 (*pushdf_rex64): Change Y2 register constraint to x.
3201 (*movdf_internal_rex64): Ditto.
3202 (*zero_extendsidi2_rex64): Ditto.
3203 (*movdi_internal): Change Y2 register constraint to x
3204 and update "isa" attribute.
3206 (*movdf internal): Ditto.
3207 (zero_extendsidi2_1): Ditto.
3208 (*truncdfdf_mixed): Ditto.
3209 (*truncxfdf2_mixed): Ditto.
3210 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
3211 register constraint to x.
3212 (*movv2sf_internal_rex64): Ditto.
3213 (*mov<mode>_internal): Change Y2 register constraint to x
3214 and add "isa" attribute.
3215 (*movv2sf_internal): Ditto.
3216 (*vec_extractv2si_1): Ditto.
3217 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
3218 constraints to x and update "isa" attribute.
3219 (*vec_interleave_highv2df): Change Y3 registerconstraint
3220 to x and update "isa" attribute.
3221 (*vec_interleave_lowv2df): Ditto.
3222 (*vec_concatv2df): Change Y2 register constraint to x and
3223 update "isa" attribute.
3224 (sse2_loadld): Ditto.
3225 (*vec_extractv2di_1): Ditto.
3226 (*vec_dupv4si): Ditto.
3227 (*vec_dupv2di): Ditto.
3228 (*vec_concatv4si): Ditto.
3229 (vec_concatv2di): Ditto.
3230 * config/i386/constraints.md (Y2): Remove.
3234 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
3236 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
3237 dump_def_use_chain): Don't declare.
3238 (mark_conflict, create_new_chain): Move before users.
3239 (regrename_optimize): Move to near end of file.
3241 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
3243 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
3244 (secondary_input_reload_class): Remove Prototype.
3245 * config/avr/avr.c (byte_immediate_operand): Remove Function.
3246 * config/avr/avr.md (setmemhi): Use u8_operand.
3247 (strlenhi): Use const0_rtx for comparison.
3248 * config/avr/avr.h (avr_reg_order): Remove Declaration.
3250 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
3252 * config/avr/avr.c (reg_class_tab): Make local to
3253 avr_regno_reg_class. Return smallest register class available.
3255 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
3257 * config/avr/avr.c (STR_PREFIX_P): New Define.
3258 (avr_asm_declare_function_name): Use it.
3259 (avr_asm_named_section): Use it.
3260 (avr_section_type_flags): Use it.
3262 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
3264 * doc/md.texi (automata_option): Document collapse-ndfa.
3265 * genautomata.c (COLLAPSE_OPTION): New macro.
3266 (collapse_flag): New static variable.
3267 (struct description): New member normal_decls_num.
3268 (struct automaton): New members advance_ainsn and collapse_ainsn.
3269 (gen_automata_option): Check for COLLAPSE_OPTION.
3270 (collapse_ndfa_insn_decl): New static variable.
3271 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
3272 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
3273 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
3274 necessary. Use normal_decls_num rather than decls_num, remove
3275 test for special decls.
3276 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
3277 (make_automaton); Likewise. Use the new advance_cycle_insn member
3278 of struct automaton.
3279 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
3281 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
3282 transition. Create the necessary transitions for it.
3283 (create_ainsns): Return void. Take an automaton_t argument, and
3284 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
3286 (COLLAPSE_NDFA_VALUE_NAME): New macro.
3287 (output_tables): Output code to define it.
3288 (output_internal_insn_code_evaluation): Output code to accept
3289 const0_rtx as collapse-ndfa transition.
3290 (output_default_latencies, output_print_reservation_func,
3291 output_print_description): Reorganize loops to use normal_decls_num
3292 as loop bound; remove special case for advance_cycle_insn_decl.
3293 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
3294 (check_automata_insn_issues): Check for collapse_ainsn.
3295 (expand_automate): Allocate sufficient space. Initialize
3298 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
3300 * config/avr/avr.md: Fix indentation from r177991.
3302 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
3304 * regrename.c (struct du_head): Remove member terminated.
3305 (create_new_chain): Don't initialize it.
3306 (scan_rtx_reg): Don't set or test it, test the open_chains_set
3308 (tick, this_tick): New global variables, moved out of
3310 (current_id, open_chains, closed_chains, open_chains_set,
3311 live_in_chains, live_hard_regs): Reorder declarations.
3312 (dump_def_use_chain): Move function earlier in the file.
3313 (rename_chains): New static function, broken out of
3315 (regrename_optimize): Use it. Remove #if 0'ed code.
3317 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3319 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
3321 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
3324 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
3326 2011-08-24 Richard Guenther <rguenther@suse.de>
3328 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
3329 ref in the basic-block case. Move stripping array-refs
3330 to the place we create an access-function for it. Remove
3331 bogus stripping down a MEM_REF to its base.
3333 2011-08-24 Richard Guenther <rguenther@suse.de>
3335 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
3336 with -fno-strict-overflow.
3338 2011-08-24 Richard Guenther <rguenther@suse.de>
3340 * tree-vectorizer.c (vect_print_dump_info): Avoid the
3341 file and location clutter when dumping to dump files.
3343 2011-08-24 Simon Baldwin <simonb@google.com>
3345 * gengtype-state.c (write_state): Remove timestamped header line.
3347 2011-08-24 Joseph Myers <joseph@codesourcery.com>
3349 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
3350 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
3351 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
3352 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
3353 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
3354 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
3355 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
3357 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
3359 2011-08-24 Joseph Myers <joseph@codesourcery.com>
3361 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
3363 2011-08-24 Richard Guenther <rguenther@suse.de>
3365 PR tree-optimization/50067
3366 * tree-data-ref.c (dr_analyze_indices): Do not add an access
3367 function for a MEM_REF base that has no evolution in the loop
3368 nest or that is not analyzable.
3370 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
3372 * ira.c (ira_init_register_move_cost): Check small subclasses
3373 through ira_reg_class_max_nregs and ira_available_class_regs.
3375 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
3377 * config/i386/constraints.md (Yp): New register constraint.
3378 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
3379 Yp register constraint.
3380 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
3381 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
3382 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
3384 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
3386 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
3388 2011-08-23 Mark Heffernan <meheff@google.com>
3391 * common.opt (Wfree-nonheap-object): New option.
3392 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
3393 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
3395 (expand_builtin): Make warning conditional.
3397 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
3399 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
3400 (length_immediate): Handle imulx, ishiftx and rotatex.
3403 (enabled): Handle bmi2.
3404 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
3405 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
3406 (*bmi2_umulditi3_1): New insn pattern.
3407 (*bmi2_umulsidi3_1): Ditto.
3408 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
3409 (*bmi2_ashl<mode>3_1): New insn pattern.
3410 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
3411 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
3412 (*bmi2_ashlsi3_1_zext): New insn pattern.
3413 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
3414 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
3415 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
3416 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
3417 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
3419 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
3420 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
3421 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
3423 (*bmi2_rorx<mode>3_1): New insn pattern.
3424 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
3425 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
3426 (*rotatert<mode>3_1 splitter): Ditto.
3427 (*bmi2_rorxsi3_1_zext): New insn pattern.
3428 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
3429 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
3430 (*rotatertsi3_1_zext splitter): Ditto.
3432 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
3434 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
3435 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
3436 (ix86_handle_option): Handle OPT_mbmi2 case.
3437 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
3438 (x86_64-*-*): Likewise.
3439 * config/i386/bmi2intrin.h: New file.
3440 * config/i386/cpuid.h (bit_BMI2): New.
3441 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3443 * config/i386/i386-c.c (ix86_target_macros_internal):
3444 Conditionally define __BMI2__.
3445 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
3447 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
3448 (print_reg): New code.
3449 (ix86_print_operand): Likewise.
3450 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
3451 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
3452 IX86_BUILTIN_PEXT64.
3453 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
3454 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
3455 IX86_BUILTIN_PEXT64.
3456 * config/i386/i386.h (TARGET_BMI2): New.
3457 * config/i386/i386.md (UNSPEC_PDEP): New.
3458 (UNSPEC_PEXT): Likewise.
3459 (*bmi2_bzhi_<mode>3): Likewise.
3460 (*bmi2_pdep_<mode>3): Likewise.
3461 (*bmi2_pext_<mode>3): Likewise.
3462 * config/i386/i386.opt (mbmi2): New.
3463 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
3465 * doc/extend.texi: Document BMI2 built-in functions.
3466 * doc/invoke.texi: Document -mbmi2.
3468 2011-08-23 Jakub Jelinek <jakub@redhat.com>
3471 * simplify-rtx.c (simplify_const_unary_operation): If
3472 op is CONST_INT, don't look at op_mode, but use instead mode.
3473 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
3474 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
3475 operation and TRUNCATE/ZERO_EXTEND if needed.
3476 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
3477 Document that operand mode must be same as operation mode,
3479 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
3480 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
3481 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
3482 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
3483 use the mode of operand for the operation and add truncate
3484 or zero_extend around if needed.
3485 * config/c6x/c6x.md (ctzdi2): Likewise.
3486 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
3488 2011-08-12 Michael Matz <matz@suse.de>
3490 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
3491 (gimple_expand_cfg): Merge alignment info for coalesced pointer
3494 2011-08-23 Richard Guenther <rguenther@suse.de>
3496 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
3497 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
3498 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
3500 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
3501 (mem_refs_may_alias_p): Adjust.
3502 * tree-data-ref.h (dr_may_alias_p): Adjust.
3503 * tree-data-ref.c: Include tree-affine.h.
3504 (dr_analyze_indices): Do nothing for the non-loop case.
3505 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
3506 more cases in the non-loop case.
3507 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
3508 calls to dr_may_alias_p.
3509 (write_alias_graph_to_ascii_ecc): Likewise.
3510 (write_alias_graph_to_ascii_dot): Likewise.
3511 (build_alias_set_optimal_p): Likewise.
3513 2011-08-23 Richard Guenther <rguenther@suse.de>
3515 PR tree-optimization/50162
3516 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
3518 2011-08-23 Richard Guenther <rguenther@suse.de>
3520 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
3521 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
3522 (create_data_ref): Also dump access functions for the created data-ref.
3524 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
3525 Kirill Yukhin <kirill.yukhin@intel.com>
3528 * config/i386/sse.md (VI_AVX2): New.
3529 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
3530 (*<plusminus_insn><mode>3): Ditto.
3531 (<sse2_avx2>_andnot<mode>3): Ditto.
3532 (*andnot<mode>3): Fix order of cond operands.
3533 Add asserts for correct TARGET_xxx.
3534 (*<any_logic:code><mode>3): Ditto.
3536 2011-08-22 Anatoly Sokolov <aesok@post.ru>
3538 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
3539 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
3540 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
3541 regclass argument type to reg_class_t. Change 'max' and 'v' vars
3542 and return types to unsigned char. Use reg_class_contents instead
3544 (TARGET_CLASS_MAX_NREGS): Define.
3546 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
3548 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
3549 to make computed_jump_p return true.
3551 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3553 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
3554 (PICFLAG_FOR_TARGET): Substitute.
3555 * aclocal.m4: Regenerate.
3556 * configure: Regenerate.
3558 2011-08-22 Dodji Seketeli <dodji@redhat.com>
3560 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
3561 after reading in the pch.
3563 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
3565 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
3566 * configure: Regenerated.
3568 2011-08-22 Jakub Jelinek <jakub@redhat.com>
3570 PR tree-optimization/50133
3571 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
3572 from stmt instead of some statement around gsi.
3575 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
3576 innerdecl is a VAR_DECL.
3578 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
3580 * config/i386/avx2intrin.h: New file.
3581 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
3582 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
3583 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
3584 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
3585 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
3586 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
3587 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
3588 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
3589 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
3590 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
3591 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
3592 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
3593 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
3594 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
3595 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
3596 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
3597 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
3598 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
3599 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
3600 VOID_FTYPE_PV8SI_V8SI_V8SI,
3601 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
3602 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
3603 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
3604 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
3605 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
3606 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
3607 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
3608 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
3609 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
3610 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
3611 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
3612 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
3613 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
3614 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
3615 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
3616 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
3617 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
3618 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
3619 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
3620 V4DI_FTYPE_V4DI_INT_CONVERT,
3621 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
3622 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
3623 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
3624 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
3625 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
3626 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
3627 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
3628 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
3629 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
3630 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
3631 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
3632 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
3633 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
3634 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
3635 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
3636 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
3637 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
3638 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
3639 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
3640 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
3641 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
3642 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
3643 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
3644 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
3645 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
3646 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
3647 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
3648 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
3649 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
3650 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
3651 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
3652 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
3653 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
3654 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
3655 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
3656 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
3657 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
3658 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
3659 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
3660 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
3661 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
3662 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
3663 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
3664 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
3665 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
3666 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
3667 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
3668 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
3669 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
3670 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
3671 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
3672 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
3673 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
3674 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
3675 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
3676 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
3677 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
3678 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
3679 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
3680 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
3681 IX86_BUILTIN_VBROADCASTSS_PS256,
3682 IX86_BUILTIN_VBROADCASTSD_PD256,
3683 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
3684 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
3685 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
3686 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
3687 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
3688 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
3689 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
3690 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
3691 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
3692 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
3693 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
3694 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
3695 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
3696 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
3697 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
3698 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
3699 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
3700 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
3701 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
3702 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
3703 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
3704 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
3705 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
3706 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
3707 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
3708 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
3709 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
3710 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
3711 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
3712 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
3713 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
3714 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
3715 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
3716 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
3717 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
3718 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
3719 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
3720 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
3721 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
3722 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
3723 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
3724 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
3725 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
3726 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
3727 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
3728 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
3729 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
3730 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
3731 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
3732 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
3733 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
3734 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
3735 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
3736 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
3737 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
3738 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
3739 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
3740 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
3741 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
3742 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
3743 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
3744 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
3745 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
3746 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
3747 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
3748 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
3749 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
3750 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
3751 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
3752 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
3753 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
3754 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
3755 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
3756 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
3757 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
3758 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
3759 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
3760 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
3761 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
3762 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
3763 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
3764 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
3765 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
3766 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
3767 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
3768 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
3769 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
3770 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
3771 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
3772 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
3773 IX86_BUILTIN_VBROADCASTSD_PD256,
3774 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
3775 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
3776 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
3777 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
3778 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
3779 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
3780 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
3781 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
3782 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
3783 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
3784 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
3785 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
3786 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
3787 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
3788 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
3789 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
3790 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
3791 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
3792 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
3793 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
3794 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
3795 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
3796 IX86_BUILTIN_GATHERDIV8SI.
3797 (ix86_preferred_simd_mode): Support AVX2 modes.
3798 (ix86_expand_args_builtin): Support AVX2 builtins.
3799 (ix86_expand_special_args_builtin): Likewise.
3800 (ix86_expand_builtin): Likewise.
3801 * config/i386/i386.md (UNSPEC_VPERMSI): New.
3802 (UNSPEC_VPERMDF): Likewise.
3803 (UNSPEC_VPERMSF): Likewise.
3804 (UNSPEC_VPERMDI): Likewise.
3805 (UNSPEC_VPERMTI): Likewise.
3806 (UNSPEC_GATHER): Likewise.
3807 (ssemodesuffix): Extend.
3808 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
3810 * config/i386/predicates.md (const1248_operand): New.
3811 * config/i386/sse.md (VI1_AVX2): New mode iterator.
3812 (VI2_AVX2): Likewise.
3813 (VI4_AVX2): Likewise.
3814 (VI8_AVX2): Likewise.
3815 (VIMAX_AVX2): Likewise.
3816 (SSESCALARMODE): Likewise.
3817 (VI12_AVX2): Likewise.
3818 (VI24_AVX2): Likewise.
3819 (VI124_AVX2): Likewise.
3820 (VI248_AVX2): Likewise.
3821 (VI48_AVX2): Likewise.
3822 (VI4SD_AVX2): Likewise.
3823 (V48_AVX2): Likewise.
3824 (AVX256MODE2P): Likewise.
3825 (AVXMODE48P_DI): Likewise.
3826 (sse2_avx2): New mode attribute.
3827 (ssse3_avx2): Likewise.
3828 (sse4_1_avx2): Likewise.
3829 (avx_avx2): Likewise.
3830 (ssebytemode): Likewise.
3831 (AVXTOSSEMODE): Likewise.
3832 (AVXMODE48P_DI): Likewise.
3833 (gthrfirstp): Likewise.
3834 (gthrlastp): Likewise.
3835 (lshift): New code_iterator
3836 (lshift): New code attribute.
3838 (ssescalarmodesuffix): Update.
3839 (sseunpackmode): Likewise.
3840 (ssepackmode): Likewise.
3841 (avx2_vec_dupv4sf): New insn pattern.
3842 (avx2_vec_dupv8sf): Likewise.
3843 (avx2_interleave_highv4di): Likewise.
3844 (avx2_interleave_lowv4di): Likewise.
3845 (avx2_umulv4siv4di3): Likewise
3846 (*avx2_umulv4siv4di3): Likewise
3847 (avx2_pmaddwd): Likewise.
3848 (*avx2_pmaddwd): Likewise.
3849 (avx2_lshrqv4di3): Likewise.
3850 (avx2_lshlqv4di3): Likewise.
3851 (avx2_lshl<mode>3): Likewise.
3852 (avx2_<umaxmin:code><mode>3): Likewise.
3853 (*avx2_<umaxmin:code><mode>3): Likewise.
3854 (avx2_<smaxmin:code><mode>3): Likewise.
3855 (*avx2_<smaxmin:code><mode>3): Likewise.
3856 (avx2_eq<mode>3): Likewise.
3857 (*avx2_eq<mode>3): Likewise.
3858 (avx2_gt<mode>3): Likewise.
3859 (avx2_interleave_highv32qi): New.
3860 (avx2_interleave_lowv32qi): Likewise.
3861 (avx2_interleave_highv16hi): Likewise.
3862 (avx2_interleave_lowv16hi): Likewise.
3863 (avx2_interleave_highv8si): Likewise.
3864 (avx2_interleave_lowv8si): Likewise.
3865 (avx2_pshufd): Likewise.
3866 (avx2_pshufd_1): Likewise.
3867 (avx2_pshuflwv3): Likewise.
3868 (avx2_pshuflw_1): Likewise.
3869 (avx2_pshufhwv3): Likewise.
3870 (avx2_pshufhw_1): Likewise.
3871 (avx2_uavgv32qi3): Likewise.
3872 (*avx2_uavgv32qi3): Likewise.
3873 (avx2_uavgv16hi3): Likewise.
3874 (*avx2_uavgv16hi3): Likewise.
3875 (avx2_pmovmskb): Likewise.
3876 (avx2_phaddwv16hi3): Likewise.
3877 (avx2_phadddv8si3): Likewise.
3878 (avx2_phaddswv16hi3): Likewise.
3879 (avx2_phsubwv16hi3): Likewise.
3880 (avx2_phsubdv8si3): Likewise.
3881 (avx2_phsubswv16hi3): Likewise.
3882 (avx2_pmaddubsw256): Likewise.
3883 (avx2_umulhrswv16hi3): Likewise.
3884 (*avx2_umulhrswv16hi3): Likewise.
3885 (avx2_packusdw): Likewise.
3886 (avx2_pblendd<mode>): Likewise.
3887 (avx2_<code>v16qiv16hi2): Likewise.
3888 (avx2_<code>v8qiv8si2): Likewise.
3889 (avx2_<code>v8hiv8si2): Likewise.
3890 (avx2_<code>v4qiv4di2): Likewise.
3891 (avx2_<code>v4hiv4di2): Likewise.
3892 (avx2_<code>v4siv4di2): Likewise.
3893 (avx2_pbroadcast<mode>): Likewise.
3894 (avx2_permvarv8si): Likewise.
3895 (avx2_permv4df): Likewise.
3896 (avx2_permvarv8sf): Likewise.
3897 (avx2_permv4di): Likewise.
3898 (avx2_permv2ti): Likewise.
3899 (avx2_vec_dupv4df): Likewise.
3900 (avx2_vbroadcasti128_<mode>): Likewise.
3901 (avx2_vec_set_lo_v4di): Likewise.
3902 (avx2_vec_set_hi_v4di): Likewise.
3903 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
3904 (avx2_extracti128): Likewise.
3905 (avx2_inserti128): Likewise.
3906 (avx2_ashrvv8si): Likewise.
3907 (avx2_ashrvv4si): Likewise.
3908 (avx2_<lshift>vv8si): Likewise.
3909 (avx2_<lshift>v<mode>): Likewise.
3910 (avx2_<lshift>vv2di): Likewise.
3911 (avx2_gathersi<mode>): Likewise.
3912 (*avx2_gathersi<mode>): Likewise.
3913 (avx2_gatherdi<mode>): Likewise.
3914 (*avx2_gatherdi<mode>): Likewise.
3915 (avx2_gatherdi<mode>256): Likewise.
3916 (*avx2_gatherdi<mode>256): Likewise.
3917 (<plusminus_insn><mode>3): Use VI mode iterator.
3918 (*<plusminus_insn><mode>3): Use VI mode iterator.
3919 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
3920 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
3921 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
3922 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
3923 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
3924 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
3925 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
3926 Use VI2_AVX2 mode iterator.
3927 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
3928 Use VI2_AVX2 mode iterator.
3929 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
3930 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
3931 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
3932 Use VI4_AVX2 mode iterator.
3933 (ashr<mode>3): Use VI24_AVX2 mode iterator.
3934 (lshr<mode>3): Use VI248_AVX2 mode iterator.
3935 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
3936 Use VIMAX_AVX2 mode iterator.
3937 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
3938 Use VI mode iterator.
3939 (*andnot<mode>3): Update for AVX2.
3940 (*<any_logic:code><mode>3): Likewise.
3941 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
3942 Use VI1_AVX mode iterator.
3943 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
3944 Use VI2_AVX mode iterator.
3945 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
3946 Use VI1_AVX mode iterator.
3947 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
3948 Use VI8_AVX2 mode iterator.
3949 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
3950 Use VI1_AVX2 mode iterator.
3951 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
3952 Use VI124_AVX2 mode iterator.
3953 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
3954 Use SSESCALARMODE mode iterator.
3955 (abs<mode>2): Use VI124_AVX2 mode iterator.
3956 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
3957 Use VI8_AVX2 mode iterator.
3958 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
3959 Use VI1_AVX2 mode iterator.
3960 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
3961 Use VI1_AVX2 mode iterator.
3962 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
3963 Use VI2_AVX2 mode iterator.
3964 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
3965 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
3966 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
3967 avx_maskstore<ssemodesuffix><avxsizesuffix>.
3968 Use V48_AVX2 mode iterator.
3969 * doc/extend.texi: Document AVX2 built-in functions.
3970 * doc/invoke.texi: Document -mavx2.
3972 2011-08-22 Matthias Klose <doko@debian.org>
3975 2011-07-11 Arthur Loiret <aloiret@debian.org>
3976 Matthias Klose <doko@debian.org>
3977 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
3978 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
3980 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
3982 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
3985 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
3986 to #ifndef HONOR_REG_ALLOC_ORDER block.
3988 2011-08-21 Richard Henderson <rth@redhat.com>
3990 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
3991 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
3992 * resource.c (next_insn_no_annul): Likewise.
3993 (mark_set_resources): Likewise.
3994 * reorg.c (delete_from_delay_slot): Likewise.
3995 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
3996 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
3998 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
4000 * config/i386/i386.md (any_div): Remove.
4001 (sgnprefix): Update for removal.
4004 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
4006 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
4007 for ira_reg_class_max_nregs. Increase pressure by 1.
4008 (mark_pseudo_regno_subword_dead): Use allocno class
4009 for ira_reg_class_max_nregs.
4011 2011-08-20 Richard Henderson <rth@redhat.com>
4013 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
4014 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
4015 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
4016 config/c6x/ltf.c: Adjust include path for soft-fp.
4018 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
4021 * config.gcc (tm_file): Add initfini-array.h if
4022 .init_arrary/.fini_array are supported.
4024 * crtstuff.c: Don't generate .ctors nor .dtors sections if
4025 USE_INITFINI_ARRAY is defined.
4027 * output.h (default_elf_init_array_asm_out_constructor): New.
4028 (default_elf_fini_array_asm_out_destructor): Likewise.
4029 * varasm.c (elf_init_array_section): Likewise.
4030 (elf_fini_array_section): Likewise.
4031 (get_elf_initfini_array_priority_section): Likewise.
4032 (default_elf_init_array_asm_out_constructor): Likewise.
4033 (default_elf_fini_array_asm_out_destructor): Likewise.
4035 * config/initfini-array.h: New.
4037 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
4039 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
4040 OK for ST_REGS and FP_REGS before taking those classes into account.
4042 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
4044 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
4045 before checking for annulled branches.
4047 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
4049 * config/i386/i386.c (ix86_binary_operator_ok): Use
4050 satisfies_constraint_L.
4052 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
4053 Michael Matz <matz@suse.de>
4055 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
4056 trunc (a + copysign (nextafter (0.5, 0.0), a)).
4058 2011-08-20 Anatoly Sokolov <aesok@post.ru>
4060 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
4061 * doc/tm.texi: Regenerate.
4062 * targhooks.c (default_preferred_output_reload_class): Don't use
4063 PREFERRED_OUTPUT_RELOAD_CLASS macro.
4064 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
4066 2011-08-20 Jakub Jelinek <jakub@redhat.com>
4068 PR tree-optimization/48739
4069 * tree-ssa.c: Include cfgloop.h.
4070 (execute_update_addresses_taken): When updating ssa, if in loop closed
4071 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
4072 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
4074 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
4076 PR rtl-optimization/49936
4077 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
4078 for calculation of max register move costs.
4080 2011-08-19 Joseph Myers <joseph@codesourcery.com>
4082 * c-parser.c (c_parser_postfix_expression): Convert operands of
4083 __builtin_complex to their semantic types.
4085 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
4088 * explow.c (convert_memory_address_addr_space): Also permute the
4089 conversion and addition of constant for zero-extend.
4091 2011-08-19 Joseph Myers <joseph@codesourcery.com>
4093 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
4094 * doc/extend.texi (__builtin_complex): Document.
4096 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4098 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
4100 (convert_mult_to_widen): Convert constant inputs to the right type.
4101 (convert_plusminus_to_widen): Don't automatically reject inputs that
4102 are not an SSA_NAME.
4103 Convert constant inputs to the right type.
4105 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4107 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
4108 to the correct type.
4110 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4112 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
4113 unsigned inputs of different modes.
4114 (convert_plusminus_to_widen): Likewise.
4116 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4118 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
4120 Use 'type' from caller, not inferred from 'rhs'.
4121 Don't reject non-conversion statements. Do return lhs in this case.
4122 (is_widening_mult_p): Add new argument 'type'.
4123 Use 'type' from caller, not inferred from 'stmt'.
4124 Pass type to is_widening_mult_rhs_p.
4125 (convert_mult_to_widen): Pass type to is_widening_mult_p.
4126 (convert_plusminus_to_widen): Likewise.
4128 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4130 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
4131 Ensure the the larger type is the first operand.
4133 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4135 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
4136 unsupported unsigned multiplies to signed.
4137 (convert_plusminus_to_widen): Likewise.
4139 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4141 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
4142 conversion statement separating multiply-and-accumulate.
4144 2011-08-19 Richard Guenther <rguenther@suse.de>
4146 PR tree-optimization/50067
4147 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
4148 offset only if we accounted for it.
4150 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4152 * config/arm/arm.md (maddhidi4): Remove '*' from name.
4153 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
4154 * optabs.c (find_widening_optab_handler_and_mode): New function.
4155 (expand_widen_pattern_expr): Use find_widening_optab_handler.
4156 (expand_binop_directly): Likewise.
4157 (expand_binop): Likewise.
4158 * optabs.h (find_widening_optab_handler): New macro define.
4159 (find_widening_optab_handler_and_mode): New prototype.
4160 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
4161 type precision rules.
4162 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
4163 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
4164 (is_widening_mult_rhs_p): Allow widening by more than one mode.
4165 Explicitly disallow mis-matched input types.
4166 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
4167 input types to fit the new handler.
4168 (convert_plusminus_to_widen): Likewise.
4170 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4172 * expr.c (expand_expr_real_2): Use widening_optab_handler.
4173 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
4174 (gen_insn): $N now means $a must be wider than $b, not consecutive.
4175 * optabs.c (widened_mode): New function.
4176 (expand_widen_pattern_expr): Use widening_optab_handler.
4177 (expand_binop_directly): Likewise.
4178 (expand_binop): Likewise.
4179 * optabs.h (widening_optab_handlers): New struct.
4180 (optab_d): New member, 'widening'.
4181 (widening_optab_handler): New function.
4182 (set_widening_optab_handler): New function.
4183 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
4184 widening_optab_handler.
4185 (convert_plusminus_to_widen): Likewise.
4187 2011-08-19 Joseph Myers <joseph@codesourcery.com>
4189 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
4191 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
4192 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
4194 2011-08-19 Joseph Myers <joseph@codesourcery.com>
4196 * opth-gen.awk: Do not declare target save/restore structures and
4197 functions if IN_RTS defined.
4199 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4202 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
4203 when stack was realigned in interrupt handler prologue.
4205 2011-08-18 Joseph Myers <joseph@codesourcery.com>
4207 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
4208 (quals_from_declspecs): Assert _Noreturn not present.
4209 (grokdeclarator): Handle _Noreturn.
4210 (build_null_declspecs): Initialize noreturn_p.
4211 (declspecs_add_scspec): Handle RID_NORETURN.
4212 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
4213 (c_parser_attributes): Handle RID_NORETURN.
4214 * c-tree.h (struct c_declspecs): Add noreturn_p.
4215 * ginclude/stdnoreturn.h: New.
4216 * Makefile.in (USER_H): Add stdnoreturn.h.
4218 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
4220 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
4221 (OPTION_MASK_ISA_AVX_UNSET): Update.
4222 (OPTION_MASK_ISA_AVX2_UNSET): New.
4223 (ix86_handle_option): Handle OPT_mavx2 case.
4224 * config/i386/cpuid.h (bit_AVX2): New.
4225 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4227 * config/i386/i386-c.c (ix86_target_macros_internal):
4228 Conditionally define __AVX2__.
4229 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
4230 Define "core-avx2" processor alias. Handle avx2 option.
4231 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
4232 * config/i386/i386.h (TARGET_AVX2): New.
4233 * config/i386/i386.opt (mavx2): New.
4234 * doc/invoke.texi: Document -mavx2.
4236 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
4238 PR rtl-optimization/49890
4239 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
4240 subclasses of class which is superset of a pressure class.
4242 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
4243 Igor Zamyatin <igor.zamyatin@intel.com>
4245 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
4246 with HOST_WIDE_INT for isa_flag.
4247 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
4250 * config/i386/i386.c (ix86_target_string): Replace int with
4251 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
4252 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
4253 (pta_flags): Removed.
4254 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
4255 (pta): Use HOST_WIDE_INT on flags.
4256 (builtin_isa): Use HOST_WIDE_INT on isa.
4257 (ix86_add_new_builtins): Likewise.
4258 (def_builtin): Use HOST_WIDE_INT on mask.
4259 (def_builtin_const): Likewise.
4260 (builtin_description): Likewise.
4262 * config/i386/i386.opt (ix86_isa_flags): Replace int with
4264 (ix86_isa_flags_explicit): Likewise.
4265 (x_ix86_isa_flags_explicit): Likewise.
4267 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
4269 PR rtl-optimization/50107
4270 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
4271 (ira_hard_reg_in_set_p): New.
4273 * ira-color.c (calculate_saved_nregs): New.
4274 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
4276 (allocno_reload_assign, fast_allocation): Use
4277 ira_hard_reg_set_intersection_p instead of
4278 ira_hard_reg_not_in_set_p.
4280 * ira.c (setup_reg_renumber): Use
4281 ira_hard_reg_set_intersection_p instead of
4282 ira_hard_reg_not_in_set_p.
4283 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
4284 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
4286 * ira-costs.c (ira_tune_allocno_costs): Use
4287 ira_hard_reg_set_intersection_p instead of
4288 ira_hard_reg_not_in_set_p.
4290 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
4291 Igor Zamyatin <igor.zamyatin@intel.com>
4293 * hwint.h (HOST_WIDE_INT_1): New.
4295 * opt-functions.awk (switch_bit_fields): Initialize the
4296 host_wide_int field.
4297 (host_wide_int_var_name): New.
4298 (var_type_struct): Check and return HOST_WIDE_INT.
4300 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
4302 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
4304 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
4305 check masks for HOST_WIDE_INT.
4307 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
4308 (option_enabled): Likewise.
4309 (get_option_state): Likewise.
4311 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
4314 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4315 Marc Glisse <marc.glisse@normalesup.org>
4317 PR libstdc++-v3/1773
4318 * target.def (decl_mangling_context): New C++ hook.
4319 * doc/tm.texi: Regenerate.
4320 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
4321 * config/sol2-protos.h: Group by source file.
4322 (solaris_cxx_decl_mangling_context): Declare.
4323 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
4324 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
4326 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
4327 Add sol2-stubs.o to extra_objs.
4329 2011-08-18 Jakub Jelinek <jakub@redhat.com>
4332 * stor-layout.c (update_alignment_for_field): Don't ICE on
4333 packed flexible array members if ms_bitfield_layout_p.
4336 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
4337 on the result before returning it.
4340 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
4341 is a debug stmt, use location of the first non-debug stmt after it.
4343 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4345 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
4346 (arm_size_rtx_costs): Likewise.
4348 2011-08-18 Richard Guenther <rguenther@suse.de>
4350 * tree.h (tree_int_cst_msb): Remove.
4351 * tree.c (tree_int_cst_msb): Likewise.
4352 (tree_int_cst_sign_bit): Move from ...
4353 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
4355 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4357 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
4358 * doc/tm.texi: Regenerate.
4359 * target.def (rtx_costs): Add an opno parameter.
4360 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
4361 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
4362 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
4363 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
4364 * cse.c (COST_IN): Add an opno parameter.
4365 (notreg_cost): Likewise. Update call to rtx_cost.
4366 (COST, fold_rtx): Update accordingly.
4367 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
4368 * expmed.c (emit_store_flag): Likewise.
4369 * optabs.c (avoid_expensive_constant): Add an opno parameter.
4370 Update call to rtx_cost.
4371 (expand_binop_directly, expand_binop): Likewise.
4372 (expand_twoval_binop, prepare_cmp_insn): Likewise.
4373 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
4374 (set_src_cost, get_full_set_src_cost): Update accordingly.
4375 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
4377 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
4378 (default_adress_cost): Update calls to rtx_cost.
4380 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
4381 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
4382 (arm_rtx_costs): Add an opno parameter.
4383 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
4384 adjust any recursive rtx-cost calls.
4385 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
4386 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4387 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
4388 * config/cris/cris.c (cris_rtx_costs): Likewise.
4389 * config/frv/frv.c (frv_rtx_costs): Likewise.
4390 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
4391 * config/i386/i386.c (ix86_rtx_costs): Likewise.
4392 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
4393 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
4394 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
4395 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
4396 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
4397 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
4398 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
4399 * config/mep/mep.c (mep_rtx_cost): Likewise.
4400 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
4401 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
4402 (mips_zero_extend_cost): Add an opno parameter.
4403 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
4404 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
4406 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
4408 * config/pa/pa.c (hppa_rtx_costs): Likewise.
4409 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
4410 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
4411 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
4412 (rs6000_debug_rtx_costs): Likewise.
4413 * config/s390/s390.c (s390_rtx_costs): Likewise.
4414 * config/score/score-protos.h (score_rtx_costs): Likewise.
4415 * config/score/score.c (score_rtx_costs): Likewise.
4416 * config/sh/sh.c (andcosts): Update call to rtx_cost.
4417 (sh_rtx_costs): Add an opno parameter.
4418 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
4419 * config/spu/spu.c (spu_rtx_costs): Likewise.
4420 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
4421 * config/v850/v850.c (v850_rtx_costs): Likewise.
4422 * config/vax/vax.c (vax_rtx_costs): Likewise.
4423 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
4425 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4427 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
4428 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
4430 * calls.c (precompute_register_parameters): Likewise.
4431 * combine.c (expand_compound_operation, make_extraction): Likewise.
4432 (force_to_mode, distribute_and_simplify_rtx): Likewise.
4433 * dse.c (find_shift_sequence): Likewise.
4434 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
4435 * expr.c (compress_float_constant): Likewise.
4436 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
4437 * gcse.c (want_to_gcse_p): Likewise.
4438 * ifcvt.c (noce_try_sign_mask): Likewise.
4439 * loop-doloop.c (doloop_optimize): Likewise.
4440 * loop-invariant.c (create_new_invariant): Likewise.
4441 * optabs.c (avoid_expensive_constant): Likewise.
4442 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
4443 (try_replace_in_use, reload_cse_move2add): Likewise.
4444 * reload1.c (calculate_elim_costs_all_insns): Likewise.
4445 (note_reg_elim_costly): Likewise.
4446 * rtlanal.c (insn_rtx_cost): Likewise.
4447 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4448 * stmt.c (lshift_cheap_p): Likewise.
4449 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
4450 * config/avr/avr.c (final_prescan_insn): Likewise.
4451 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4452 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
4454 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4456 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
4457 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
4458 * cfgloopanal.c (seq_cost): Likewise.
4459 * loop-invariant.c (create_new_invariant): Likewise.
4460 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
4461 (reload_cse_move2add): Use get_full_set_rtx_cost.
4463 2011-08-18 Richard Guenther <rguenther@suse.de>
4465 * expr.c (get_inner_reference): Fix typo in last change.
4467 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
4468 Joseph Myers <joseph@codesourcery.com>
4470 PR tree-optimization/49963
4471 * hwint.c (absu_hwi): Define.
4472 * hwint.h (absu_hwi): Declare.
4473 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
4475 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4476 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
4478 2011-08-18 Richard Guenther <rguenther@suse.de>
4480 * expr.c (get_inner_reference): Sign-extend the constant
4481 twos-complement offset before doing arbitrary precision
4483 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
4484 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
4485 to get_constraint_for_ptr_offset.
4487 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
4490 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
4492 2011-08-17 Richard Guenther <rguenther@suse.de>
4494 * tree.h (convert_to_ptrofftype_loc): New function.
4495 (convert_to_ptrofftype): Define.
4496 * builtins.c (expand_builtin_bzero): Use size_type_node.
4497 (fold_builtin_bzero): Likewise.
4498 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
4499 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
4500 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
4501 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
4502 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
4503 * fold-const.c (build_range_check): Negate using the original type.
4504 (fold_unary_loc): Use fold_build_pointer_plus_loc.
4505 * gimple-fold.c (gimple_adjust_this_by_delta): Use
4506 convert_to_ptrofftype.
4507 * gimplify.c (gimplify_self_mod_expr): Likewise.
4508 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
4509 (graphite_create_new_loop_guard): Likewise.
4510 * graphite-sese-to-poly.c (my_long_long): Remove.
4511 (scop_ivs_can_be_represented): Adjust.
4512 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
4513 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
4514 * tree-loop-distribution.c (build_size_arg_loc): Use
4516 (generate_memset_zero): Simplify.
4517 * tree-mudflap.c: Use fold_convert, not convert.
4518 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
4520 (determine_offset): Likewise for DR_STEP.
4521 (valid_initializer_p): Likewise.
4522 * tree-profile.c (prepare_instrumented_value): Convert the pointer
4523 to an integer type of same size.
4524 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
4525 to sizetype without need.
4526 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
4527 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
4528 * tree-ssa-loop-manip.c (create_iv): Likewise.
4529 (determine_exit_conditions): Adjust comment.
4530 * tree-ssa-pre.c (create_expression_by_pieces): Use
4531 convert_to_ptrofftype.
4532 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
4533 * varasm.c (array_size_for_constructor): Compute using double_ints.
4535 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4537 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
4538 when generating an integer result where possible. Short-cut
4539 comparison against 0 also for QImode.
4541 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4543 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
4544 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
4546 * config/spu/spu.c (spu_legitimize_reload_address): New function.
4547 (spu_legitimate_address_p): Do not check displacement if the base
4548 is an eliminable stack register.
4550 2011-08-16 Anatoly Sokolov <aesok@post.ru>
4552 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
4553 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
4554 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
4555 m32c_preferred_output_reload_class): Remove.
4556 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
4557 Change rclass argument and return types to reg_class_t. Use
4558 reg_class_subset_p instead of class_sizes.
4559 (m32c_preferred_output_reload_class): Make static. Change rclass
4560 argument and return types to reg_class_t.
4561 (TARGET_PREFERRED_RELOAD_CLASS,
4562 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4564 2011-08-16 Kai Tietz <ktietz@redhat.com>
4566 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
4568 2011-08-16 Richard GUenther <rguenther@suse.de>
4570 PR tree-optimization/50082
4571 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
4572 warnings here, instead of ...
4573 (ssa_forward_propagate_and_combine): ... here.
4574 (forward_propagate_into_comparison_1): Adjust.
4575 (forward_propagate_into_comparison): Likewise.
4576 (forward_propagate_into_gimple_cond): Likewise.
4577 (forward_propagate_into_cond): Likewise.
4579 2011-08-16 Andreas Schwab <schwab@redhat.com>
4581 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
4582 instead of ggc_alloc_zone_vec_rtvec_def.
4584 2011-08-16 Richard Guenther <rguenther@suse.de>
4586 * tree.h (ptrofftype_p): New helper function.
4587 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
4588 offset verification.
4589 (verify_gimple_assign_binary): Likewise.
4590 * tree.c (build2_stat): Likewise.
4591 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
4592 (reset_evolution_in_loop): Likewise.
4593 * tree-chrec.h (build_polynomial_chrec): Likewise.
4595 2011-08-16 Liang Wang <lwang1@marvell.com>
4597 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
4598 ggc_alloc_zone_vec_rtvec_def.
4600 2011-08-16 Richard Guenther <rguenther@suse.de>
4602 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
4603 helper factored out from ...
4604 (extract_range_from_binary_expr_1): ... here. Re-structure
4605 to not glob handling too different tree codes.
4607 2011-08-15 Richard Henderson <rth@redhat.com>
4610 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
4611 setting out to include allocate_stack named pattern as well.
4612 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
4613 * stmt.c (expand_stack_restore): Likewise.
4615 2011-08-15 Richard Guenther <rguenther@suse.de>
4618 * fold-const.c (maybe_canonicalize_comparison_1): Properly
4619 convert the modified operand to the other operand type.
4620 (fold_comparison): Call maybe_canonicalize_comparison_1 with
4621 useless conversions stripped from comparison operands.
4623 2011-08-15 Richard Guenther <rguenther@suse.de>
4625 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
4626 (extract_range_from_unary_expr_1): Restructure.
4628 2011-08-15 Richard Guenther <rguenther@suse.de>
4630 PR tree-optimization/50058
4631 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
4634 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4637 * config/arm/arm.c (output_move_double): Add 2 parameters
4638 to count the number of insns emitted and whether to emit or not.
4639 Use the flag to decide when to emit and count number of instructions
4640 that will be emitted.
4641 Handle case where output_move_double might be called for calculating
4642 lengths with an invalid constant.
4643 (arm_count_output_move_double_insns): Define.
4644 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
4645 (output_move_double): Adjust prototype.
4646 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
4648 ("*movdi_vfp_cortexa8"): Likewise and add attribute
4650 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
4651 ("*movdf_soft_insn"): Likewise.
4652 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
4653 ("*cirrus_thumb2_movdi"): Likewise.
4654 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
4655 ("*cirrus_movdf_hard_insn"): Likewise.
4656 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
4657 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
4658 ("mov<mode>_internal VMMX"): Likewise.
4659 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
4661 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
4663 * config/i386/i386.c (ix86_expand_round_sse4): New function.
4664 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
4665 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
4668 (rint<mode>2): Simplify TARGET_ROUND check.
4669 (floor<mode>2): Ditto.
4670 (ceil<mode>2): Ditto.
4671 (btrunc<mode>2): Ditto.
4673 2011-08-14 Anatoly Sokolov <aesok@post.ru>
4675 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
4676 as mmix_preferred_output_reload_class.
4678 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
4681 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
4682 (branch_unspec): New insn.
4683 (branch): Beauty farm.
4684 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
4686 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
4687 New static functions.
4688 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
4689 Use CONST_INT_P. Beauty.
4691 2011-08-12 Richard Henderson <rth@redhat.com>
4694 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
4695 * sched-deps.c (init_deps): Clear it.
4696 (deps_analyze_insn): Consume it.
4697 (sched_analyze_insn): Fill it.
4699 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4702 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
4703 for tbh instructions.
4705 2011-08-12 Diego Novillo <dnovillo@google.com>
4707 * data-streamer.h (streamer_write_zero): Rename from output_zero.
4708 (streamer_write_uhwi): Rename from lto_output_uleb128.
4709 (streamer_write_hwi): Rename from output_sleb128.
4710 (streamer_write_string): Rename from lto_output_string.
4711 (streamer_string_index): Rename from lto_string_index.
4712 (streamer_write_string_with_length): Rename from
4713 lto_output_string_with_length.
4714 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
4715 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
4716 (streamer_read_string): Rename from lto_input_string.
4717 (streamer_read_indexed_string): Rename from input_string_internal.
4718 (streamer_read_uhwi): Rename from lto_input_uleb128.
4719 (streamer_read_hwi): Rename from lto_input_sleb128.
4720 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
4721 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
4722 (streamer_write_enum): Rename from lto_output_enum.
4723 (streamer_read_enum): Rename from lto_input_enum.
4724 (streamer_write_record_start): Rename from output_record_start.
4725 (streamer_read_record_start): Rename from input_record_start.
4726 (streamer_write_bitpack): Rename from lto_output_bitpack.
4727 (streamer_read_bitpack): Rename from lto_input_bitpack.
4728 (streamer_write_char_stream): Rename from lto_output_1_stream.
4729 (streamer_read_uchar): Rename from lto_input_1_unsigned.
4730 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
4731 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
4732 (streamer_read_string_cst): Rename from input_string_cst.
4733 (streamer_read_chain): Rename from lto_input_chain.
4734 (streamer_alloc_tree): Rename from lto_materialize_tree.
4735 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
4736 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
4737 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
4738 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
4739 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
4740 (streamer_write_chain): Rename from lto_output_chain.
4741 (streamer_write_tree_header): Rename from lto_output_tree_header.
4742 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
4743 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
4744 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
4745 (streamer_write_builtin): Rename from lto_output_builtin_tree.
4746 (streamer_check_handled_ts_structures): Rename from
4747 check_handled_ts_structures.
4748 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
4749 (streamer_tree_cache_insert_at): Rename from
4750 lto_streamer_cache_insert_at.
4751 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
4752 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
4753 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
4754 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
4755 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
4756 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
4757 (write_identifier): Rename from output_identifier.
4758 (write_ts_common_tree_pointers): Rename from
4759 lto_output_ts_common_tree_pointers.
4760 (write_ts_vector_tree_pointers): Rename from
4761 lto_output_ts_vector_tree_pointers.
4762 (write_ts_complex_tree_pointers): Rename from
4763 lto_output_ts_complex_tree_pointers.
4764 (write_ts_decl_minimal_tree_pointers): Rename from
4765 lto_output_ts_decl_minimal_tree_pointers.
4766 (write_ts_decl_common_tree_pointers): Rename from
4767 lto_output_ts_decl_common_tree_pointers.
4768 (write_ts_decl_non_common_tree_pointers): Rename from
4769 lto_output_ts_decl_non_common_tree_pointers.
4770 (write_ts_decl_with_vis_tree_pointers): Rename from
4771 lto_output_ts_decl_with_vis_tree_pointers.
4772 (write_ts_field_decl_tree_pointers): Rename from
4773 lto_output_ts_field_decl_tree_pointers.
4774 (write_ts_function_decl_tree_pointers): Rename from
4775 lto_output_ts_function_decl_tree_pointers.
4776 (write_ts_type_common_tree_pointers): Rename from
4777 lto_output_ts_type_common_tree_pointers.
4778 (write_ts_type_non_common_tree_pointers): Rename from
4779 lto_output_ts_type_non_common_tree_pointers.
4780 (write_ts_list_tree_pointers): Rename from
4781 lto_output_ts_list_tree_pointers.
4782 (write_ts_vec_tree_pointers): Rename from
4783 lto_output_ts_vec_tree_pointers.
4784 (write_ts_exp_tree_pointers): Rename from
4785 lto_output_ts_exp_tree_pointers.
4786 (write_ts_block_tree_pointers): Rename from
4787 lto_output_ts_block_tree_pointers.
4788 (write_ts_binfo_tree_pointers): Rename from
4789 lto_output_ts_binfo_tree_pointers.
4790 (write_ts_constructor_tree_pointers): Rename from
4791 lto_output_ts_constructor_tree_pointers.
4792 (write_ts_target_option): Rename from lto_output_ts_target_option.
4793 (write_ts_translation_unit_decl_tree_pointers): Rename from
4794 lto_output_ts_translation_unit_decl_tree_pointers.
4795 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
4796 Rename from lto_streamer_cache_add_to_node_array.
4797 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
4798 (record_common_node): Rename from lto_record_common_node.
4800 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
4802 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
4804 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
4806 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
4807 (ipa-reference.o): Likewise.
4808 * lto-section-out.c: Include data-streamer.h.
4809 * ipa-reference.c: Include data-streamer.h.
4811 2011-08-12 Nick Clifton <nickc@redhat.com>
4813 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
4814 * doc/md.texi (cmpstrn): Note that the comparison stops if both
4815 fetched bytes are zero.
4817 (cmpmem): Note that the comparison does not stop if both of the
4818 fetched bytes are zero.
4820 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
4822 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
4823 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
4824 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
4825 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
4826 to integer_type_node.
4827 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
4828 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
4829 * builtins.c (expand_builtin_in): Ditto.
4830 (mathfn_built_in_1): Ditto.
4831 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
4833 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
4835 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
4836 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
4837 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
4839 2011-08-12 Richard Guenther <rguenther@suse.de>
4841 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
4843 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
4845 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
4847 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
4849 * config/arm/arm.c (get_label_padding): New function.
4850 (create_fix_barrier, arm_reorg): Use it.
4852 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
4855 * config/i386/i386.md (*lea_5_zext): New.
4856 (*lea_6_zext): Ditto.
4857 * config/i386/predicates.md (const_32bit_mask): New predicate.
4858 (lea_address_operand): Reject AND.
4859 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
4860 const_32bit_mask immediate.
4861 (ix86_print_operand_address): Handle AND.
4862 (memory_address_length): Ditto.
4864 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
4865 Brian Hackett <bhackett1024@gmail.com>
4867 * plugin.def: Add event for finish_decl.
4868 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
4869 * c-decl.c (finish_decl): Invoke callbacks on above event.
4870 * doc/plugins.texi: Document above event.
4872 2011-08-11 Richard Guenther <rguenther@suse.de>
4874 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
4875 lookups, make looking through aggregate copies stronger.
4877 2011-08-11 Richard Henderson <rth@redhat.com>
4880 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
4882 2011-08-11 Richard Guenther <rguenther@suse.de>
4884 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
4885 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
4886 (vrp_visit_stmt): Likewise.
4888 2011-08-11 Richard Guenther <rguenther@suse.de>
4891 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
4892 load of the other piece with TREE_NO_WARNING.
4893 * tree-flow.h (warn_uninit): Adjust prototype.
4894 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
4895 the base variable and the expression that is used separately.
4896 Properly query all TREE_NO_WARNING flags.
4897 (struct walk_data): Remove.
4898 (warn_uninitialized_var): Likewise.
4899 (warn_uninitialized_vars): Do not walk gimple pieces but simply
4900 look at all SSA uses of the statement. Handle unused memory
4902 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
4904 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
4906 * config/rx/rx.md (movsicc): Allow register to register transfers.
4907 (*movsicc): Likewise.
4908 (*stcc): Restrict this pattern to EQ and NE compares.
4909 (*stcc_reg): New pattern. Works for any comparison but only for
4912 2011-08-11 Diego Novillo <dnovillo@google.com>
4914 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
4915 Call stream_write_tree instead of output_record_start.
4916 (lto_output_ts_binfo_tree_pointers): Likewise.
4918 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
4919 Convert it to a macro.
4920 (stream_read_tree): Likewise.
4922 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
4923 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
4925 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
4926 and tree_read_bitfields.
4927 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
4928 (lto_write_tree): Call it.
4929 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
4930 * streamer-hooks.h (struct streamer_hooks): Remove fields
4931 name, is_streamable and alloc_tree. Update all users.
4932 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
4933 (lto_materialize_tree): ... here.
4934 Handle CALL_EXPR codes.
4935 Remove call to lto_streamer_cache_append.
4936 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
4937 * tree-streamer.h (tree_read_bitfields): Declare.
4939 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
4940 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
4941 * tree-streamer.h (stream_read_tree): New. Replace all calls
4942 to lto_input_tree with it.
4943 (stream_write_tree): New. Replace all calls to lto_output_tree,
4944 lto_output_tree_ref and lto_output_tree_or_ref with it.
4945 * lto-streamer-in.c (lto_read_tree): Inline code from
4946 lto_streamer_read_tree.
4947 (lto_input_tree): Move from tree-streamer-in.c.
4948 * lto-streamer-out.c (lto_output_tree_ref): Make static.
4949 Remove handling of NULL values for EXPR.
4950 Do not handle EXPRs that are not indexable.
4951 (lto_write_tree): Move from tree-streamer-out.c.
4952 Inline lto_streamer_write_tree.
4953 (lto_output_tree): Move from tree-streamer-out.c.
4954 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
4955 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
4956 (lto_preload_common_nodes): Likewise.
4957 Remove assertions and adjustments for nodes
4958 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
4959 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
4960 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
4961 * lto-streamer.h (lto_input_tree): Declare.
4962 (lto_output_tree_ref): Remove.
4963 * streamer-hooks.h (struct streamer_hooks): Remove fields
4964 preload_common_nodes, indexable_with_decls_p,
4965 pack_value_fields, unpack_value_fields and output_tree_header.
4967 * tree-streamer-in.c (lto_materialize_tree): Make extern.
4968 (lto_input_tree_pointers): Likewise.
4969 (lto_read_tree): Move to lto-streamer-in.c.
4970 (lto_input_integer_cst): Make extern.
4971 (lto_get_pickled_tree): Likewise.
4972 (lto_get_builtin_tree): Likewise.
4973 (lto_input_tree): Move to lto-streamer-in.c.
4974 * tree-streamer-out.c (pack_value_fields): Make extern.
4975 (lto_output_tree_or_ref): Remove. Replace all callers with
4976 calls to stream_write_tree.
4977 (lto_output_builtin_tree): Make extern.
4978 (lto_streamer_write_tree): Inline into lto_write_tree.
4979 (lto_output_tree_pointers): Make extern.
4980 (lto_output_tree_header): Likewise.
4981 (lto_output_integer_cst): Likewise.
4982 (lto_write_tree): Move to lto-streamer-out.c.
4983 (lto_output_tree): Likewise.
4984 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
4985 (preload_common_nodes): Likewise.
4986 (lto_streamer_cache_create): Call it.
4987 * tree-streamer.h: Include streamer-hooks.h.
4988 (stream_write_tree): New.
4989 (stream_read_tree): New.
4990 (lto_input_tree): Remove.
4991 (lto_materialize_tree): Declare.
4992 (lto_input_tree_pointers): Declare.
4993 (lto_get_pickled_tree): Declare.
4994 (lto_get_builtin_tree): Declare.
4995 (lto_input_integer_cst): Declare.
4996 (lto_output_tree_header): Declare.
4997 (pack_value_fields): Declare.
4998 (lto_output_tree_pointers): Declare.
4999 (lto_output_integer_cst): Declare.
5000 (lto_output_builtin_tree): Declare.
5002 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
5004 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
5005 only if producer writes to the register given by regno.
5007 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
5008 Alexander Monakov <amonakov@ispras.ru>
5010 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
5011 (sched_get_condition_with_rev_uncached): ... this. Factor out
5012 condition caching logic into ...
5013 (sched_get_condition_with_rev): ... this. Reimplement. Do not
5014 attempt to use cache for instructions with zero luid.
5015 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
5016 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
5018 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
5020 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
5021 get_seqno_for_a_jump. Update the caller.
5022 (get_seqno_by_succs): New. Use it ...
5023 (get_seqno_for_a_jump): ... here to find a seqno if looking at
5024 predecessors was not sufficient.
5025 (get_seqno_by_preds): Include head in iteration range, exclude insn.
5027 2011-08-11 Dmitry Melnik <dm@ispras.ru>
5029 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
5031 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
5033 * sel-sched-ir.h (register_unavailable_p): Declare.
5034 * sel-sched-ir.c (register_unavailable_p): New. Use it...
5035 (set_unavailable_target_for_expr): ... here to properly test
5036 availability of a register.
5037 (speculate_expr): Ditto.
5038 * sel-sched.c (substitute_reg_in_expr): Ditto.
5039 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
5041 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
5043 * sel-sched.c (verify_target_availability): Fix usage of
5046 2011-08-11 Dmitry Melnik <dm@ispras.ru>
5048 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
5049 recognized by cannot_copy_insn_p hook and volatile instructions.
5051 2011-08-11 Dmitry Melnik <dm@ispras.ru>
5053 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
5055 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
5057 * doc/md.texi (define_bypass): Say that the instruction names can
5058 be filename-style globs.
5059 * Makefile.in (FNMATCH_H): Define.
5060 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
5061 * genattrtab.c: Include fnmatch.h.
5062 (bypass_list): Change field name from "insn" to "pattern".
5063 (gen_bypass_1): Update accordingly.
5064 (process_bypasses): Use fnmatch to check for matches between
5065 insn reservations and define_bypasses.
5066 * genautomata.c: Include fnmatch.h.
5067 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
5068 and out_pattern respectively.
5069 (gen_bypass, insert_bypass): Update accordingly.
5070 (for_each_matching_insn, process_bypass_2, process_bypass_1)
5071 (process_bypass): New functions.
5072 (process_decls): Use process_bypass. Update after field name changes.
5074 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
5077 * config/avr/avr.md (smulqi3_highpart): New insn.
5078 (umulqi3_highpart): New insn.
5079 (*subqi3.ashiftrt7): New insn.
5080 (smulhi3_highpart): New expander.
5081 (umulhi3_highpart): Nex expander.
5082 (*smulhi3_highpart_call): New insn.
5083 (*umulhi3_highpart_call): New insn.
5084 (extend_u): New code attribute.
5085 (extend_prefix): Rename code attribute to extend_su.
5086 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
5087 widening QI/HI multiply.
5089 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
5091 PR tree-optimization/50039
5092 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
5093 that DEF_STMT has a stmt_vec_info.
5095 2011-08-10 Richard Guenther <rguenther@suse.de>
5097 * tree.h (can_trust_pointer_alignment): Remove.
5098 * builtins.c (can_trust_pointer_alignment): Remove.
5100 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5102 * c-typeck.c (scalar_to_vector): New function. Try scalar to
5104 (stv_conv): New enum for scalar_to_vector return type.
5105 (build_binary_op): Adjust.
5106 * doc/extend.texi: Description of scalar to vector expansion.
5108 2011-08-10 Richard Guenther <rguenther@suse.de>
5110 * tree.h (get_pointer_alignment): Remove max-align argument.
5111 (get_object_alignment): Likewise.
5112 * builtins.c (get_object_alignment_1): Adjust.
5113 (get_object_alignment): Remove max-align argument.
5114 (get_pointer_alignment): Likewise.
5115 (expand_builtin_strlen): Adjust.
5116 (expand_builtin_memcpy): Likewise.
5117 (expand_builtin_mempcpy_args): Likewise.
5118 (expand_builtin_strncpy): Likewise.
5119 (expand_builtin_memset_args): Likewise.
5120 (expand_builtin_memcmp): Likewise.
5121 (expand_builtin_strcmp): Likewise.
5122 (expand_builtin_strncmp): Likewise.
5123 (get_builtin_sync_mem): Likewise.
5124 (fold_builtin_memset): Likewise.
5125 (fold_builtin_memory_op): Likewise.
5126 (expand_builtin_memory_chk): Likewise.
5127 * emit-rtl.c (get_mem_align_offset): Likewise.
5128 (set_mem_attributes_minus_bitpos): Likewise.
5129 * expr.c (expand_assignment): Likewise.
5130 (expand_expr_real_1): Likewise.
5131 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
5132 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
5133 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
5134 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
5135 * value-prof.c (gimple_stringops_transform): Likewise.
5137 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
5139 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
5140 * doc/tm.texi: Regenerate.
5142 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
5145 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
5146 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
5147 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
5148 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
5149 shift target is unused.
5151 2011-08-10 Richard Guenther <rguenther@suse.de>
5153 PR tree-optimization/49937
5154 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
5155 using get_object_alignment_1.
5157 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
5159 * config/i386/i386.c (ix86_emit_i387_round): New function.
5160 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
5161 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
5162 Use ix86_emit_i387_round to expand round function for i387 math.
5163 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
5164 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
5166 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5168 * config/sync.c: Move to ../libgcc.
5169 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
5170 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
5173 2011-08-09 Anatoly Sokolov <aesok@post.ru>
5175 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
5176 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
5177 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
5178 Change 'from' and 'to' arguments type to reg_class_t.
5179 (TARGET_REGISTER_MOVE_COST): Define.
5181 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
5185 PR rtl-optimization/49990
5186 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
5187 ignore classes which can not change mode.
5188 (find_costs_and_classes): Ditto.
5190 2011-08-09 Richard Guenther <rguenther@suse.de>
5192 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
5193 information for ranges with only negative values.
5194 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
5195 BIT_AND_EXPR handling to handle ranges with negative values.
5197 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
5199 * config/i386/i386.c: Remove traling spaces.
5200 * config/i386/sse.md: Likewise.
5201 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
5202 (*fma_fmsub_<mode>): Likewise.
5203 (*fma_fnmadd_<mode>): Likewise.
5204 (*fma_fnmsub_<mode>): Likewise.
5206 2011-08-09 Nick Clifton <nickc@redhat.com>
5208 * config/rx/rx.md: Disable extender peepholes at -O3.
5210 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
5213 * config/i386/i386.md (reload_noff_load): New.
5214 (reload_noff_store): Ditto.
5215 * config/i386/i386.c (ix86_secondary_reload): Use
5216 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
5217 double-word moves from/to non-offsetable addresses instead of
5218 generating XMM temporary.
5220 2011-08-09 Anatoly Sokolov <aesok@post.ru>
5222 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
5224 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
5226 PR tree-optimization/50014
5227 * tree-vect-loop.c (vectorizable_reduction): Get def type before
5228 calling vect_get_vec_def_for_stmt_copy ().
5230 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
5232 PR rtl-optimization/49990
5233 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
5234 ignore classes which can not change mode.
5235 (find_costs_and_classes): Ditto.
5237 2011-08-08 Richard Henderson <rth@redhat.com>
5240 * config/i386/i386.c (ix86_expand_prologue): Call
5241 for SEH target gen_prologue_use instead of gen_blockage
5244 2011-08-08 Martin Jambor <mjambor@suse.cz>
5247 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
5250 2011-08-08 Diego Novillo <dnovillo@google.com>
5252 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
5253 (DATA_STREAMER_H): New.
5254 (GIMPLE_STREAMER_H): New.
5255 (TREE_STREAMER_H): New.
5256 (STREAMER_HOOKS_H): New.
5257 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
5258 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
5259 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
5260 (data-streamer.o): New.
5261 (data-streamer-in.o): New.
5262 (data-streamer-out.o): New.
5263 (gimple-streamer-in.o): New.
5264 (gimple-streamer-out.o): New.
5265 (streamer-hooks.o): New.
5266 (tree-streamer.o): New.
5267 (tree-streamer-in.o): New.
5268 (tree-streamer-out.o): New.
5269 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
5270 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
5271 GIMPLE_STREAMER_H and TREE_STREAMER_H.
5272 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
5273 GIMPLE_STREAMER_H and TREE_STREAMER_H.
5274 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
5275 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
5276 (ipa-inline-analysis.o): Likewise.
5277 (ipa-pure-const.o): Likewise.
5278 * data-streamer-in.c: New.
5279 * data-streamer-out.c: New.
5280 * data-streamer.c: New.
5281 * data-streamer.h: New.
5282 * gimple-streamer-in.c: New.
5283 * gimple-streamer-out.c: New.
5284 * gimple-streamer.h: New.
5285 * ipa-inline-analysis.c: Include data-streamer.h.
5286 * ipa-prop.c: Include data-streamer.h.
5287 * ipa-pure-const.c: Include data-streamer.h.
5288 * lto-cgraph.c: Include data-streamer.h.
5289 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
5290 (lto_input_widest_uint_uleb128): Likewise.
5291 (lto_input_sleb128): Likewise.
5292 (bp_unpack_var_len_unsigned): Likewise.
5293 (bp_unpack_var_len_int): Likewise.
5294 * lto-section-out.c (lto_output_uleb128_stream): Move to
5295 data-streamer-out.c.
5296 (lto_output_widest_uint_uleb128_stream): Likewise.
5297 (lto_output_sleb128_stream): Likewise.
5298 (bp_pack_var_len_unsigned): Likewise.
5299 (bp_pack_var_len_int): Likewise.
5300 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
5301 (struct string_slot): Remove. Update all users.
5302 (lto_tag_check_set): Make extern.
5303 (lto_tag_check_range): Move to lto-streamer.h.
5304 (lto_tag_check): Likewise.
5305 (hash_string_slot_node): Remove. Update all users.
5306 (eq_string_slot_node): Remove. Update all users.
5307 (string_for_index): Move to data-streamer-in.c
5308 (input_string_internal): Likewise.
5309 (input_string_cst): Move to tree-streamer-in.c.
5310 (input_identifier): Likewise.
5311 (lto_input_string): Move to data-streamer-in.c
5312 (input_record_start): Move to data-streamer.h
5313 (canon_file_name): Use new definition of struct string_slot
5314 from data-streamer.h. Set S_SLOT.LEN.
5315 (lto_input_location): Make extern.
5316 (lto_input_chain): Move to tree-streamer-in.c.
5317 (lto_init_eh): Make extern.
5318 (input_phi): Move to gimple-streamer-in.c.
5319 (input_gimple_stmt): Likewise.
5320 (input_bb): Likewise.
5321 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
5322 (unpack_ts_real_cst_value_fields): Likewise.
5323 (unpack_ts_fixed_cst_value_fields): Likewise.
5324 (unpack_ts_decl_common_value_fields): Likewise.
5325 (unpack_ts_decl_wrtl_value_fields): Likewise.
5326 (unpack_ts_decl_with_vis_value_fields): Likewise.
5327 (unpack_ts_function_decl_value_fields): Likewise.
5328 (unpack_ts_type_common_value_fields): Likewise.
5329 (unpack_ts_block_value_fields): Likewise.
5330 (unpack_ts_translation_unit_decl_value_fields): Likewise.
5331 (unpack_value_fields): Likewise.
5332 (lto_materialize_tree): Likewise.
5333 (lto_input_ts_common_tree_pointers): Likewise.
5334 (lto_input_ts_vector_tree_pointers): Likewise.
5335 (lto_input_ts_complex_tree_pointers): Likewise.
5336 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
5337 (lto_input_ts_decl_common_tree_pointers): Likewise.
5338 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
5339 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
5340 (lto_input_ts_field_decl_tree_pointers): Likewise.
5341 (lto_input_ts_function_decl_tree_pointers): Likewise.
5342 (lto_input_ts_type_common_tree_pointers): Likewise.
5343 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5344 (lto_input_ts_list_tree_pointers): Likewise.
5345 (lto_input_ts_vec_tree_pointers): Likewise.
5346 (lto_input_ts_exp_tree_pointers): Likewise.
5347 (lto_input_ts_block_tree_pointers): Likewise.
5348 (lto_input_ts_binfo_tree_pointers): Likewise.
5349 (lto_input_ts_constructor_tree_pointers): Likewise.
5350 (lto_input_ts_target_option): Likewise.
5351 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
5352 (lto_input_tree_pointers): Likewise.
5353 (lto_get_pickled_tree): Likewise.
5354 (lto_get_builtin_tree): Likewise.
5355 (lto_read_tree): Likewise.
5356 (lto_input_integer_cst): Likewise.
5357 (lto_input_tree): Likewise.
5358 * lto-streamer-out.c: Include data-streamer.h,
5359 gimple-streamer.h and streamer-hooks.h.
5360 (struct string_slot): Move to data-streamer.h.
5361 (hash_string_slot_node): Likewise.
5362 (eq_string_slot_node): Likewise.
5363 (lto_string_index): Move to data-streamer-out.c.
5364 (lto_output_string_with_length): Likewise.
5365 (lto_output_string): Likewise.
5366 (output_string_cst): Move to tree-streamer-out.c.
5367 (output_identifier): Likewise.
5368 (output_zero): Move to data-streamer-out.c
5369 (output_uleb128): Likewise.
5370 (output_sleb128): Likewise.
5371 (output_record_start): Move to data-streamer.h
5372 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
5373 (pack_ts_real_cst_value_fields): Likewise.
5374 (pack_ts_fixed_cst_value_fields): Likewise.
5375 (pack_ts_decl_common_value_fields): Likewise.
5376 (pack_ts_decl_wrtl_value_fields): Likewise.
5377 (pack_ts_decl_with_vis_value_fields): Likewise.
5378 (pack_ts_function_decl_value_fields): Likewise.
5379 (pack_ts_type_common_value_fields): Likewise.
5380 (pack_ts_block_value_fields): Likewise.
5381 (pack_ts_translation_unit_decl_value_fields): Likewise.
5382 (pack_value_fields): Likewise.
5383 (lto_output_chain): Likewise.
5384 (lto_output_ts_common_tree_pointers): Likewise.
5385 (lto_output_ts_vector_tree_pointers): Likewise.
5386 (lto_output_ts_complex_tree_pointers): Likewise.
5387 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
5388 (lto_output_ts_decl_common_tree_pointers): Likewise.
5389 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
5390 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
5391 (lto_output_ts_field_decl_tree_pointers): Likewise.
5392 (lto_output_ts_function_decl_tree_pointers): Likewise.
5393 (lto_output_ts_type_common_tree_pointers): Likewise.
5394 (lto_output_ts_type_non_common_tree_pointers): Likewise.
5395 (lto_output_ts_list_tree_pointers): Likewise.
5396 (lto_output_ts_vec_tree_pointers): Likewise.
5397 (lto_output_ts_exp_tree_pointers): Likewise.
5398 (lto_output_ts_block_tree_pointers): Likewise.
5399 (lto_output_ts_binfo_tree_pointers): Likewise.
5400 (lto_output_ts_constructor_tree_pointers): Likewise.
5401 (lto_output_ts_target_option): Likewise.
5402 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
5403 (lto_output_tree_pointers): Likewise.
5404 (lto_output_tree_header): Likewise.
5405 (lto_output_builtin_tree): Likewise.
5406 (lto_write_tree): Likewise.
5407 (lto_output_integer_cst): Likewise.
5408 (lto_output_tree): Likewise.
5409 (output_phi): Move to gimple-streamer-out.c.
5410 (output_gimple_stmt): Likewise.
5411 (output_bb): Likewise.
5412 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
5413 (streamer_hooks): Move to streamer-hooks.c.
5414 (check_handled_ts_structures): Move to tree-streamer.c
5415 (lto_streamer_cache_add_to_node_array): Likewise.
5416 (lto_streamer_cache_insert_1): Likewise.
5417 (lto_streamer_cache_insert): Likewise.
5418 (lto_streamer_cache_insert_at): Likewise.
5419 (lto_streamer_cache_append): Likewise.
5420 (lto_streamer_cache_lookup): Likewise.
5421 (lto_streamer_cache_get): Likewise.
5422 (lto_record_common_node): Likewise.
5423 (lto_preload_common_nodes): Likewise.
5424 (lto_streamer_cache_create): Likewise.
5425 (lto_streamer_cache_delete): Likewise.
5426 (streamer_hooks_init): Move to streamer-hooks.c.
5427 * lto-streamer.h: Include diagnostic.h
5428 (struct output_block, struct lto_input_block,
5429 struct data_in, struct bitpack_d): Remove forward declarations.
5430 (struct bitpack_d): Move to data-streamer.h.
5431 (struct lto_streamer_cache_d): Move to tree-streamer.h.
5432 (struct streamer_hooks): Move to streamer-hooks.h.
5433 (bp_pack_var_len_unsigned): Move to data-streamer.h.
5434 (bp_pack_var_len_int): Likewise.
5435 (bp_unpack_var_len_unsigned): Likewise.
5436 (bp_unpack_var_len_int): Likewise.
5437 (lto_input_location): Declare.
5438 (lto_tag_check_set): Declare.
5439 (lto_init_eh): Declare.
5440 (lto_output_tree_ref): Declare.
5441 (lto_output_location): Declare.
5442 (bitpack_create): Move to data-streamer.h.
5443 (bp_pack_value): Likewise.
5444 (lto_output_bitpack): Likewise.
5445 (lto_input_bitpack): Likewise.
5446 (bp_unpack_value): Likewise.
5447 (lto_output_1_stream): Likewise.
5448 (lto_input_1_unsigned): Likewise.
5449 (lto_output_int_in_range): Likewise.
5450 (lto_input_int_in_range): Likewise.
5451 (bp_pack_int_in_range): Likewise.
5452 (bp_unpack_int_in_range): Likewise.
5453 (lto_output_enum): Likewise.
5454 (lto_input_enum): Likewise.
5455 (bp_pack_enum): Likewise.
5456 (bp_unpack_enum): Likewise.
5457 * streamer-hooks.c: New.
5458 * streamer-hooks.h: New.
5459 * tree-streamer-in.c: New.
5460 * tree-streamer-out.c: New.
5461 * tree-streamer.c: New.
5462 * tree-streamer.h: New.
5464 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5466 * gthr-posix95.h: Remove.
5467 * gthr.h [_PTHREADS95]: Remove.
5468 * configure.ac (enable_threads): Remove posix95.
5469 * configure: Regenerate.
5470 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
5472 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
5475 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
5477 (ix86_print_operand_address): Handle zero-extended addresses.
5478 (memory_address_length): Add length of addr32 prefix for
5479 zero-extended addresses.
5480 (ix86_secondary_reload): Handle moves to/from double-word general
5481 registers from/to zero-extended addresses.
5482 * config/i386/predicates.md (lea_address_operand): Reject
5483 zero-extended operands.
5485 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
5488 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
5490 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
5491 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
5493 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
5494 (_Unwind_Context_Reg_Val): Likewise.
5495 (_Unwind_Get_Unwind_Word): Likewise.
5496 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
5497 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
5498 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
5499 for EXTENDED_CONTEXT_BIT.
5500 (__frame_state_for): Likewise.
5501 (uw_init_context_1): Likewise.
5502 (_Unwind_GetGR): Updated.
5503 (_Unwind_SetGR): Likewise.
5504 (_Unwind_GetGRPtr): Likewise.
5505 (_Unwind_SetGRPtr): Likewise.
5506 (_Unwind_SetGRValue): Likewise.
5507 (_Unwind_GRByValue): Likewise.
5508 (uw_install_context_1): Likewise.
5510 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
5511 ASSUME_EXTENDED_UNWIND_CONTEXT.
5512 * doc/tm.texi: Regenerated.
5514 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5516 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
5518 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5520 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
5522 (DEC Alpha Options, -mtune): Likewise.
5523 (MIPS Options, -march): native is supported on IRIX.
5525 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5527 * config/sparc/driver-sparc.c: New file.
5528 * config/sparc/x-sparc: New file.
5529 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
5530 * config/sparc/sparc.opt (native): New value for enum processor_type.
5531 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
5532 * config/sparc/sparc.c (sparc_option_override): Abort if
5533 PROCESSOR_NATIVE gets here.
5534 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
5535 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
5536 DRIVER_SELF_SPECS): Define.
5537 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
5538 (SPARC Options, -mtune): Likewise.
5539 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
5541 * configure: Regenerate.
5542 * Makefile.in (EXTRA_GCC_LIBS): Set.
5543 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
5544 (cpp$(exeext)): Likewise.
5546 2011-08-08 Richard Guenther <rguenther@suse.de>
5548 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
5550 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
5553 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
5555 PR tree-optimization/50005
5556 * ipa-inline-analysis (remap_predicate): Add cast to
5557 silence signed/unsigned comparison warning.
5559 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
5561 * modulo-sched.c (get_sched_window): Use a table for the debug output.
5562 Print the current ii.
5563 (sms_schedule_by_order): Reduce whitespace in dump line.
5565 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
5567 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
5568 and one loop for successors. Fix upper bound of memory range.
5570 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
5573 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
5574 (TARGET_INSTANTIATE_DECLS): New define.
5576 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
5577 Mikael Morin <mikael.morin@sfr.fr>
5579 * Makefile.in (INCLUDES_FOR_TARGET): New.
5580 (LIBGCC2_CFLAGS): Use it.
5581 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
5583 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
5585 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
5586 frame->save_regs_using_mov calculation.
5588 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
5590 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
5591 * config/i386/sse.md (castmode): New mode attribute.
5592 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
5593 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
5595 2011-08-05 Jan Hubicka <jh@suse.cz>
5598 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
5600 2011-08-05 Jan Hubicka <jh@suse.cz>
5603 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
5605 (create_emultls_var):New function.
5606 (ipa_lower_emutls): Handle aliases correctly.
5608 2011-08-05 Jan Hubicka <jh@suse.cz>
5611 * ipa-inline.c (recursive_inlining): Look through aliases.
5613 2011-08-05 Jason Merrill <jason@redhat.com>
5615 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
5616 declarations to beginning of function.
5618 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
5620 PR rtl-optimization/49900
5621 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
5622 ensure basic blocks stay in the same order.
5624 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
5626 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
5628 (s390_expand_atomic): Same.
5630 2011-08-05 Richard Henderson <rth@redhat.com>
5633 * dwarf2cfi.c (scan_insn_after): Split out of ...
5634 (scan_trace): ... here. Correctly place notes wrt sequences.
5636 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
5637 Richard Henderson <rth@redhat.com>
5640 * expr.c (fixup_args_size_notes): Look through no-op moves.
5642 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
5644 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
5645 of "m" for operand 0. Add type and mode attribute.
5646 (*pushxf_nointeger"): Use "<" constraint for operand 0.
5647 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
5648 constraint instead of "o" for opreand 1.
5649 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
5650 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
5651 operand 0, alternative 4.
5652 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
5654 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
5656 * config/i386/predicates.md (lea_address_operand): Rename from
5657 no_seg_address_operand.
5658 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
5659 (*lea_1_zext): Ditto.
5661 (*lea_2_zext): Ditto.
5663 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
5665 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
5666 parts.base and parts.index.
5667 * config/i386/predicates.md (aligned_operand): Ditto.
5668 (cmpxchg8b_pic_memory_operand): Ditto.
5670 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5672 * config/soft-fp: Move to ../libgcc.
5673 * Makefile.in (SFP_MACHINE): Remove.
5674 (libgcc-support): Remove $(SFP_MACHINE) dependency.
5675 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
5676 * config/arm/t-arm-softfp: Move to
5677 ../libgcc/config/arm/t-softfp.
5678 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
5679 * config/c6x/t-c6x-softfp: Remove.
5680 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
5681 * config/i386/t-fprules-softfp: Move to
5682 ../libgcc/config/t-softfp-tf.
5683 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
5684 * config/ia64/t-fprules-softfp: Remove.
5685 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
5686 * config/lm32/t-fprules-softfp: Remove.
5687 * config/moxie/sfp-machine.h: Remove.
5688 * config/moxie/t-moxie-softfp: Remove.
5689 * config/rs6000/darwin-ldouble-format: Move to
5690 ../libgcc/config/rs6000/ibm-ldouble-format.
5691 * config/rs6000/darwin-ldouble.c: Move to
5692 ../libgcc/config/rs6000/ibm-ldouble.c
5693 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
5694 * config/rs6000/libgcc-ppc64.ver: Likewise.
5695 * config/rs6000/sfp-machine.h: Likewise.
5696 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
5697 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
5698 (LIB2FUNCS_EXTRA): Remove.
5699 (TARGET_LIBGCC2_CFLAGS): Remove.
5700 * config/rs6000/t-aix52: Likewise
5701 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
5702 $(srcdir)/config/rs6000/darwin-ldouble.c.
5703 (SHLIB_MAPFILES): Remove.
5704 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
5705 $(srcdir)/config/rs6000/darwin-ldouble.c.
5706 * config/rs6000/t-fprules-softfp: Move to
5707 ../libgcc/config/t-softfp-sfdf.
5708 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
5709 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
5710 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
5711 $(srcdir)/config/rs6000/darwin-ldouble.c.
5712 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
5713 * config/score/t-score-softfp: Remove.
5714 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
5715 soft-fp/t-softfp from tmake_file.
5716 (arm*-*-uclinux*): Likewise.
5717 (arm*-*-ecos-elf): Likewise.
5718 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
5719 (arm*-*-rtems*): Likewise.
5720 (arm*-*-elf): Likewise.
5721 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
5723 (moxie-*-uclinux*): Likewise.
5724 (moxie-*-rtems*): Likewise.
5725 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
5727 (lm32-*-rtems*): Likewise.
5728 (lm32-*-uclinux*): Likewise.
5729 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
5730 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
5731 (powerpc-*-linux*, powerpc64-*-linux*): Remove
5732 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
5733 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
5735 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
5737 (tic6x-*-uclinux): Likewise.
5738 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
5739 soft-fp/t-softfp from tmake_file.
5740 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
5741 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
5742 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
5743 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
5744 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
5746 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5748 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
5749 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
5750 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
5752 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
5753 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
5755 * config/arm/t-vxworks: Likewise.
5756 * config/arm/t-wince-pe: Likewise.
5757 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
5758 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5759 * config/bfin/t-bfin-elf: Likewise.
5760 * config/bfin/t-bfin-linux: Likewise.
5761 * config/bfin/t-bfin-uclinux: Likewise.
5762 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
5764 * config/fr30/t-fr30: Likewise.
5765 * config/frv/t-frv: Likewise.
5766 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
5767 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5768 * config/m32c/t-m32c: Likewise.
5769 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
5770 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5771 * config/mcore/t-mcore: Likewise.
5772 * config/mep/t-mep: Likewise.
5773 * config/microblaze/t-microblaze: Likewise.
5774 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
5775 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5776 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
5777 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5778 * config/mn10300/t-linux: Remove.
5779 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5780 * config/pdp11/t-pdp11: Likewise.
5781 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
5782 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
5783 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5784 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
5785 * config/rs6000/t-aix52: Likewise.
5786 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
5787 $(srcdir)/config/rs6000/ppc64-fp.c.
5788 * config/rs6000/t-fprules-fpbit: Remove.
5789 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
5790 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5791 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
5792 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5793 * config/sparc/t-elf: Likewise.
5794 * config/sparc/t-leon: Likewise.
5795 * config/sparc/t-leon3: Likewise.
5796 * config/spu/t-spu-elf: Likewise.
5797 (DPBIT_FUNCS): Remove.
5798 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5799 * config/v850/t-v850: Likewise.
5800 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
5801 (avr-*-*): Likewise.
5802 (h8300-*-rtems*): Set libgcc_tm_file.
5803 (h8300-*-elf*): Likewise.
5804 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
5806 (powerpc-*-eabisim*): Likewise.
5807 (powerpc-*-elf*): Likewise.
5808 (powerpc-*-eabialtivec*): Likewise.
5809 (powerpc-xilinx-eabi*): Likewise.
5810 (powerpc-*-eabi*): Likewise.
5811 (powerpc-*-rtems*): Likewise.
5812 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
5813 (powerpcle-*-elf*): Likewise.
5814 (powerpcle-*-eabisim*): Likewise.
5815 (powerpcle-*-eabi*): Likewise.
5816 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
5817 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
5818 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
5821 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5823 * Makefile.in (UNWIND_H): Remove.
5824 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
5825 ../libgcc/Makefile.in.
5826 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
5827 (LIBUNWINDDEP): Remove.
5828 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
5829 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
5830 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
5831 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
5832 Don't copy $(UNWIND_H).
5833 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
5834 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
5835 * aclocal.m4: Regenerate.
5836 * configure: Regenerate.
5837 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
5838 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
5839 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
5840 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
5841 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
5842 * config/arm/libunwind.S, config/arm/pr-support.c,
5843 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
5844 ../libgcc/config/arm.
5845 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
5846 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
5847 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
5848 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
5849 ($(T)frvend$(objext)): Likewise.
5850 * config/ia64/t-glibc (LIB2ADDEH): Remove.
5851 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
5852 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
5853 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
5854 ../libgcc/config/ia64.
5855 * config/ia64/t-hpux (LIB2ADDEH): Remove.
5856 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
5857 * config/ia64/t-vms (LIB2ADDEH): Remove.
5858 * config/ia64/vms.h (UNW_IVMS_MODE,
5859 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
5860 * config/picochip/t-picochip (LIB2ADDEH): Remove.
5861 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
5862 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
5863 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
5864 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
5865 $(srcdir)/../libgcc to refer to unwinder sources.
5866 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
5867 * config/t-darwin (LIB2ADDEH): Remove.
5868 * config/t-freebsd (LIB2ADDEH): Remove.
5869 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
5870 * config/t-libunwind-elf: Move to ../libgcc/config.
5871 * config/t-linux (LIB2ADDEH): Remove.
5872 * config/t-sol2 (LIB2ADDEH): Remove.
5873 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
5874 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
5876 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
5878 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
5880 * doc/invoke.texi: Document core-avx-i.
5882 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5884 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
5886 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
5888 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
5889 result of multiple results reduction when extracting the final
5890 value using scalar code.
5892 2011-08-05 Richard Guenther <rguenther@suse.de>
5894 PR tree-optimization/49984
5895 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
5897 2011-08-05 Richard Guenther <rguenther@suse.de>
5899 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
5900 return true for constant integer ranges.
5901 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
5902 BIT_IOR_EXPR handling.
5904 2011-08-04 Kai Tietz <ktietz@redhat.com>
5906 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
5907 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
5909 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
5911 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
5912 pattern def statement, and its access macro.
5913 (NUM_PATTERNS): Set to 5.
5914 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
5915 pattern def statement.
5916 (vect_transform_loop): Likewise.
5917 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
5918 function vect_recog_over_widening_pattern ().
5919 (vect_operation_fits_smaller_type): New function.
5920 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
5922 (vect_pattern_recog_1): Move the code that marks pattern
5923 statements to vect_mark_pattern_stmts (), and call it. Update
5925 * tree-vect-stmts.c (vect_supportable_shift): New function.
5926 (vect_analyze_stmt): Handle pattern def statement.
5927 (new_stmt_vec_info): Initialize pattern def statement.
5929 2011-08-04 Richard Henderson <rth@redhat.com>
5932 * config/i386/i386.c (ix86_expand_call): Don't create nested
5933 PARALLELs for TARGET_VZEROUPPER.
5934 (ix86_split_call_vzeroupper): Fix extraction of the original call.
5935 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
5936 recognize nested PARALLELs.
5937 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
5938 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
5939 *sibcall_value_pop_vzeroupper): Likewise.
5941 2011-08-04 Richard Henderson <rth@redhat.com>
5944 * calls.c (expand_call): Use fixup_args_size_notes for
5946 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
5947 in non-standard modes.
5949 2011-08-04 Jakub Jelinek <jakub@redhat.com>
5951 * gcc.c (self_spec): New variable.
5952 (static_specs): Add self_spec.
5953 (main): Call do_self_spec on "self_spec" specs after reading
5954 user specs files. Move compare_debug handling right after that.
5956 2011-08-04 Richard Guenther <rguenther@suse.de>
5958 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
5959 (value_range_nonnegative_p): New function.
5960 (ssa_name_nonnegative_p): Use it.
5961 (value_range_constant_singleton): New function.
5962 (op_with_constant_singleton_value_range): Use it.
5963 (extract_range_from_binary_expr_1): New function, split out from ...
5964 (extract_range_from_binary_expr): ... this. Remove fallback
5965 constant folding done here.
5967 2011-08-04 Richard Guenther <rguenther@suse.de>
5969 PR tree-optimization/49806
5970 * tree-vrp.c (op_with_boolean_value_range_p): New function.
5971 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
5972 a new statement for a final conversion to bool.
5974 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
5976 * gengtype-state.c: Include "bconfig.h" if
5977 GENERATOR_FILE is defined, "config.h" otherwise.
5978 * gengtype.c: Likewise.
5979 * gengtype-lex.l: Likewise.
5980 * gengtype-parse.c: Likewise.
5981 * Makefile.in (gengtype-lex.o-warn): New variable.
5982 (plugin_resourcesdir): Likewise.
5983 (plugin_bindir): Likewise.
5984 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
5985 (MOSTLYCLEANFILES): Add gengtype$(exeext).
5986 (native): Depend on gengtype$(exeext) is $enable_plugin
5988 (gtype.state): Depend on s-gtype. Use temporary file.
5989 (gengtype-lex.o): New rule.
5990 (gengtype-parse.o): Likewise.
5991 (gengtype-state.o): Likewise.
5992 (gengtype$(exeext)): Likewise.
5993 (install-gengtype): Likewise.
5994 (gengtype.o): Likewise.
5995 (build/gengtype.o): Depend on version.h.
5996 (build/gengtype-state): Depend on double-int.h, version.h,
5997 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
5998 (install-plugin): Depend on install-gengtype.
6000 2011-08-04 Jakub Jelinek <jakub@redhat.com>
6003 * tree.h (init_attributes): New prototype.
6004 * attribs.c (init_attributes): No longer static.
6006 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6008 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
6011 2011-08-03 David Li <davidxl@google.com>
6013 * tree-optimize.c (execute_fixup_cfg): Fix up entry
6014 outgoing edge counts after inlining.
6016 2011-08-03 David Li <davidxl@google.com>
6018 * profile.c (compute_branch_probabilities): Compute
6019 function frequency after profile annotation.
6021 2011-08-04 Alan Modra <amodra@gmail.com>
6023 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
6024 use_backchain_to_restore_sp initialisation.
6025 (rs6000_legitimate_offset_address_p): Simplify offset test.
6027 2011-08-03 Richard Henderson <rth@redhat.com>
6029 * config/spu/spu.md: Use define_c_enum instead of define_constants.
6030 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
6033 2011-08-03 Richard Henderson <rth@redhat.com>
6036 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
6038 2011-08-03 Jakub Jelinek <jakub@redhat.com>
6040 PR tree-optimization/49948
6041 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
6043 2011-08-03 Anatoly Sokolov <aesok@post.ru>
6045 * config/m32c/m32c.c (class_sizes): Remove.
6046 (reduce_class): Change arguments and return type to reg_class_t.
6047 Change type cc var to HARD_REG_SET. Change type best var to
6048 reg_class_t. Change type best_size var to unsigned int. Remove
6049 initialization class_sizes var. Use reg_class_size array instead
6050 of class_sizes. Use reg_class_contents array instead
6053 2011-08-03 Richard Guenther <rguenther@suse.de>
6056 * fold-const.c (fold_binary_loc): Only associate
6057 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
6060 2011-08-03 Alan Modra <amodra@gmail.com>
6062 PR rtl-optimization/49941
6063 * jump.c (mark_jump_label): Comment.
6064 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
6065 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
6066 (mark_used_flags): Don't mark RETURN.
6068 2011-08-03 Richard Guenther <rguenther@suse.de>
6070 PR tree-optimization/49938
6071 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
6072 deal with a POLYNOMIAL_CHREC.
6074 2011-08-03 Revital Eres <revital.eres@linaro.org>
6076 * modulo-sched.c (calculate_stage_count,
6077 calculate_must_precede_follow, get_sched_window,
6078 try_scheduling_node_in_cycle, remove_node_from_ps): Add
6080 (update_node_sched_params, set_must_precede_follow, optimize_sc):
6082 (reset_sched_times): Call update_node_sched_params.
6083 (sms_schedule): Call optimize_sc.
6084 (get_sched_window): Change function arguments.
6085 (sms_schedule_by_order): Update call to get_sched_window.
6086 Call set_must_precede_follow.
6087 (calculate_stage_count): Add function argument.
6089 2011-08-02 Richard Henderson <rth@redhat.com>
6093 * reg-notes.def (REG_ARGS_SIZE): New.
6094 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
6095 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
6096 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
6097 different stack levels.
6098 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
6099 (maybe_move_args_size_note): New.
6100 (combine_stack_adjustments_for_block): Use it.
6101 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
6102 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
6103 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
6104 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
6106 (queued_args_size): Remove.
6107 (add_cfi_args_size): Assert size is non-negative.
6108 (stack_adjust_offset, dwarf2out_args_size): Remove.
6109 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
6110 (notice_args_size, notice_eh_throw): New.
6111 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
6112 (dwarf2out_frame_debug_adjust_cfa): Likewise.
6113 (dwarf2out_frame_debug_cfa_offset): Likewise.
6114 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
6115 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
6116 (change_cfi_row): Don't emit args_size.
6117 (maybe_record_trace_start_abnormal): Split out from ...
6118 (maybe_record_trace_start): Here. Set args_size_undefined.
6119 (create_trace_edges): Update to match.
6120 (scan_trace): Handle REG_ARGS_SIZE.
6121 (connect_traces): Connect args_size between EH insns.
6122 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
6123 * explow.c (suppress_reg_args_size): New.
6124 (adjust_stack_1): Split out from ...
6125 (adjust_stack): ... here.
6126 (anti_adjust_stack): Use it.
6127 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
6128 * expr.c (mem_autoinc_base): New.
6129 (fixup_args_size_notes): New.
6130 (emit_single_push_insn_1): Rename from emit_single_push_insn.
6131 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
6132 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
6133 * reload1.c (reload_as_needed): Likewise.
6134 * rtl.h (fixup_args_size_notes): Declare.
6136 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
6139 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
6141 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
6142 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
6144 2011-08-02 Richard Henderson <rth@redhat.com>
6146 * config/h8300/h8300.c (push, pop): Return the insn.
6147 (h8300_swap_into_er6): Generate correct unwind info.
6148 (h8300_swap_out_of_er6): Likewise.
6149 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
6150 complex cfa expression.
6151 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
6153 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
6155 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
6157 2011-08-02 Richard Henderson <rth@redhat.com>
6160 * config/h8300/h8300.c (h8300_move_ok): New.
6161 * config/h8300/h8300-protos.h: Declare it.
6162 * config/h8300/h8300.md (P): New mode iterator.
6163 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
6164 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
6165 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
6166 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
6167 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
6168 and pushqi1_h8300hs_normal; use PRE_MODIFY and
6169 register_no_sp_elim_operand.
6170 (*pushhi1_h8300hs_<P>): Similarly.
6171 (pushqi1, pushhi1, pushhi1_h8300): Remove.
6172 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
6174 2011-08-02 Richard Henderson <rth@redhat.com>
6177 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
6179 2011-08-02 Jakub Jelinek <jakub@redhat.com>
6181 * c-parser.c (enum c_parser_prec): New enum, moved from within
6182 c_parser_binary_expression.
6183 (c_parser_binary_expression): Add PREC argument. Stop parsing
6184 if operator has lower or equal precedence than PREC.
6185 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
6187 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
6188 Adjust c_finish_omp_atomic caller.
6189 (c_parser_omp_taskyield): New function.
6190 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
6191 (c_parser_omp_clause_name): Handle final and mergeable clauses.
6192 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
6194 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
6195 and PRAGMA_OMP_CLAUSE_MERGEABLE.
6196 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
6197 (c_parser_omp_clause_reduction): Handle min and max.
6198 * c-typeck.c (c_finish_omp_clauses): Don't complain about
6199 const qualified predetermined vars in firstprivate clause.
6200 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6201 Handle MIN_EXPR and MAX_EXPR.
6202 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
6203 and OMP_CLAUSE_MERGEABLE.
6204 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
6205 and OMP_ATOMIC_CAPTURE_NEW.
6206 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
6207 OMP_CLAUSE_MERGEABLE.
6208 (omp_clause_code_name): Likewise.
6209 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6210 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
6211 and OMP_CLAUSE_MERGEABLE.
6212 (OMP_CLAUSE_FINAL_EXPR): Define.
6213 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
6214 OMP_CLAUSE_MERGEABLE.
6215 (expand_task_call): Likewise.
6216 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
6217 (expand_omp_atomic_fetch_op): Handle cases where old or new
6218 value is needed afterwards.
6219 (expand_omp_atomic): Call expand_omp_atomic_load resp.
6220 expand_omp_atomic_store.
6221 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
6222 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
6223 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
6224 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6225 * tree-nested.c (convert_nonlocal_omp_clauses,
6226 convert_local_omp_clauses): Likewise.
6227 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
6228 OMP_ATOMIC_CAPTURE_NEW): New.
6229 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
6230 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
6232 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
6233 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
6234 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6236 2011-08-02 Kai Tietz <ktietz@redhat.com>
6238 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
6240 (ssa_forward_propagate_and_combine): Interprete result of
6241 forward_propagate_comparison.
6242 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
6243 boolean-typed operands for comparisons.
6245 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
6247 * config/avr/libgcc.S: Gather related function in the
6249 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
6250 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
6252 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
6253 __udivmodsi4, __divmodsi4, __prologue_saves__,
6254 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
6255 __do_copy_data, __do_clear_bss, __do_global_ctors,
6256 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
6258 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
6261 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
6262 (stack_protect_test): The pattern compares ptr_mode value.
6264 2011-08-02 Alan Modra <amodra@gmail.com>
6266 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
6267 note for save_LR_around_toc_setup sequence.
6269 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
6271 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
6273 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
6274 Joseph Myers <joseph@codesourcery.com>
6276 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
6277 * hwint.c: Include diagnostic-core.h.
6279 (gcd): Moved here...
6282 (least_common_multiple): Moved here...
6283 * hwint.h (gcd): ... from here.
6284 (least_common_multiple): ... from here.
6285 (HOST_WIDE_INT_MIN): New.
6286 (HOST_WIDE_INT_MAX): New.
6287 (abs_hwi): Declared.
6289 (pos_mul_hwi): Declared.
6290 (mul_hwi): Declared.
6291 (least_common_multiple): Declared.
6292 * omega.c (check_pos_mul): Removed.
6293 (check_mul): Removed.
6294 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
6295 mul_hwi instead of check_mul.
6297 2011-08-01 Richard Henderson <rth@redhat.com>
6300 * config/avr/avr.h (PUSH_ROUNDING): New.
6301 * config/avr/avr.md (pushqi1): Rename from *pushqi.
6302 (*pushhi, *pushsi, *pushsf): Remove.
6303 (MPUSH): New mode iterator.
6304 (push<MPUSH>1): New expander.
6306 2011-08-01 Anatoly Sokolov <aesok@post.ru>
6308 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
6309 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
6310 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
6311 mmix_preferred_output_reload_class): Remove.
6312 * config/mmix/mmix.c (mmix_preferred_reload_class,
6313 mmix_preferred_output_reload_class): Make static. Change rclass
6314 argument and return type to reg_class_t.
6315 (TARGET_PREFERRED_RELOAD_CLASS,
6316 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6318 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
6320 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
6323 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
6326 * config/i386/i386.md (PTR): New.
6327 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
6328 (stack_protect_test): Likewise.
6329 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
6330 (stack_tls_protect_set_<mode>): Likewise.
6331 (stack_tls_protect_test_<mode>): Likewise.
6333 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
6336 * config/i386/i386.c (ix86_address_subreg_operand): New.
6337 (ix86_decompose_address): Use ix86_address_subreg_operand.
6338 (ix86_legitimate_address_p): Do not assert that subregs satisfy
6339 register_no_elim_operand in DImode.
6341 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
6343 PR tree-optimization/49926
6344 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
6345 in a chain doesn't have uses both inside and outside the loop.
6347 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
6349 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
6350 * config/avr/avr-devices.c (avr_mcu_types): Use it.
6351 * config/avr/avr-mcus.def (AVR_MCU): Use it.
6352 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
6353 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
6354 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
6355 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
6356 to detect if XJMP must not be skipped.
6358 2011-08-02 Alan Modra <amodra@gmail.com>
6360 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
6362 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
6363 (rs6000_emit_prologue): Don't prematurely return when
6364 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
6365 save_toc_in_prologue case.
6366 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
6369 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
6371 * config/avr/avr-devices.c: Delete SVN property svn:executable.
6372 * config/avr/predicates.md: Ditto.
6373 * config/avr/driver-avr.c: Ditto.
6374 * config/avr/genopt.sh: Set SVN property svn:executable to *.
6376 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
6378 * calls.c (emit_library_call_value_1): Declare size only if
6379 BLOCK_REG_PADDING is defined.
6381 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
6384 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
6385 (x86_64-*-*): Likewise.
6386 * config/i386/i386.opt (mlzcnt): New.
6387 * config/i386/abmintrin.h: File removed.
6388 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
6389 * config/i386/lzcntintrin.h: ... here. New file.
6390 (__lzcnt): Rename to ...
6391 (__lzcnt32): ... this.
6392 * config/i386/bmiintrin.h (head): Update copyright year.
6393 (__lzcnt_u16): Removed.
6394 (__lzcnt_u32): Likewise.
6395 (__lzcnt_u64): Likewise.
6396 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
6397 is defined, remove abmintrin.h.
6398 * config/i386/cpuid.h (bit_LZCNT): New.
6399 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6401 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6402 __LZCNT__ if needed.
6403 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
6404 (ix86_option_override_internal): Handle LZCNT option.
6405 (ix86_valid_target_attribute_inner_p): Likewise.
6406 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
6407 * config/i386/i386.h (TARGET_LZCNT): New.
6408 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
6409 * config/i386/i386.md (clz<mode>2): Update insn constraint.
6410 (clz<mode>2_lzcnt): Likewise.
6411 * doc/invoke.texi: Mention -mlzcnt option.
6412 * doc/extend.texi: Likewise.
6414 2011-08-01 Julian Brown <julian@codesourcery.com>
6416 * configure.ac (fixed-point): Add ARM support.
6417 * configure: Regenerate.
6418 * config/arm/arm.c (arm_fixed_mode_set): New struct.
6419 (arm_set_fixed_optab_libfunc): New.
6420 (arm_set_fixed_conv_libfunc): New.
6421 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
6423 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
6424 return values in SImode.
6425 (arm_return_in_msb): Return fixed-point types in the msb.
6426 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
6428 (arm_scalar_mode_supported_p): Support fixed-point modes.
6429 (arm_vector_mode_supported_p): Support vector fixed-point modes.
6430 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
6431 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
6432 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
6433 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
6434 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
6436 (qaddsub_suf): New mode attribute.
6437 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
6439 * config/arm/predicates.md (sat_shift_operator): New predicate.
6440 * config/arm/arm-fixed.md: New.
6441 * config/arm/arm.md: Include arm-fixed.md.
6442 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
6444 2011-08-01 Julian Brown <julian@codesourcery.com>
6446 * calls.c (emit_library_call_value_1): Support padding for libcall
6447 arguments and return values.
6448 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
6449 downwards in big-endian mode.
6451 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6454 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
6455 * config/sol2-protos.h: Likewise.
6456 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
6458 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
6459 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
6461 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
6463 2011-08-01 Julian Brown <julian@codesourcery.com>
6465 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
6467 2011-08-01 Julian Brown <julian@codesourcery.com>
6469 * final.c (output_addr_const): Print fixed-point constants as
6472 2011-08-01 Richard Guenther <rguenther@suse.de>
6474 * stor-layout.c (initialize_sizetypes): Properly sign-extend
6475 bitsiztype TYPE_MAX_VALUE.
6477 2011-08-01 Julian Brown <julian@codesourcery.com>
6479 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
6482 2011-07-31 Richard Henderson <rth@redhat.com>
6484 * config/h8300/crti.asm: Add flags to .section directive.
6485 * config/h8300/crtn.asm: Likewise.
6487 2011-07-31 Richard Henderson <rth@redhat.com>
6489 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
6490 * tree.c (build_common_tree_nodes): Likewise.
6492 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
6495 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
6496 (divsi3_i1): Likewise.
6498 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6500 PR tree-optimization/49749
6501 * tree-ssa-reassoc.c (get_rank): New forward declaration.
6502 (PHI_LOOP_BIAS): New macro.
6503 (phi_rank): New function.
6504 (loop_carried_phi): Likewise.
6505 (propagate_rank): Likewise.
6506 (get_rank): Add calls to phi_rank and propagate_rank.
6508 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
6510 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
6512 (PTRDIFF_TYPE): Likewise.
6514 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
6517 * config/i386/i386.md (strset): Do not expand strset_singleop
6518 when %eax or $edi are fixed.
6519 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
6520 (*strsetsi_1): Ditto.
6521 (*strsethi_1): Ditto.
6522 (*strsetqi_1): Ditto.
6523 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
6524 (*rep_stossi): Ditto.
6525 (*rep_stosqi): Ditto.
6526 (*strlenqi_1): Ditto.
6527 (cmpstrnsi): Also fail when %ecx is fixed.
6528 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
6529 (*cmpstrnqi_1): Ditto.
6530 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
6531 (*strmovsi_1): Ditto.
6532 (*strmovhi_1): Ditto.
6533 (*strmovqi_1): Ditto.
6534 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
6535 (*rep_movsi): Ditto.
6536 (*rep_movqi): Ditto.
6538 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
6541 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
6542 Disable instruction scheduling for non-ColdFire targets.
6543 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
6545 2011-07-31 Revital Eres <revital.eres@linaro.org>
6547 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
6548 of anti-dep edge from a branch.
6549 (add_cross_iteration_register_deps): Create anti-dep edge from
6552 2011-07-31 Revital Eres <revital.eres@linaro.org>
6554 * modulo-sched.c: Change comment.
6555 (reset_sched_times): Fix print message.
6556 (print_partial_schedule): Add print info.
6558 2011-07-31 Tom de Vries <tom@codesourcery.com>
6561 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
6562 get_object_alignment and TYPE_ALIGN.
6564 2011-07-30 Tom de Vries <tom@codesourcery.com>
6567 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
6568 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
6570 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6572 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
6574 (cpu_types): New array.
6575 (cputype): New function.
6576 (host_detect_local_cpu): Only define buf, f if !__sgi__.
6577 Use scaninvent instead of /proc/cpuinfo if __sgi__.
6578 * config.host: Also use driver-native.o, mips/x-native on
6580 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
6581 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
6582 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
6584 2011-07-29 Jakub Jelinek <jakub@redhat.com>
6588 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
6589 in nested parallel and outer is a gimple_reg, mark it as addressable
6590 and set its bit in task_shared_vars bitmap too.
6592 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
6594 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
6596 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6598 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
6599 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
6600 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
6601 AMASK_LOCKPFTCHOK): Define.
6602 (host_detect_local_cpu): Remove buf, f, cpu_names.
6603 Define cpu_types, implver, amask.
6604 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
6606 * config.host: Also use driver-alpha.o, alpha/x-alpha on
6608 * config/alpha/osf5.h [__alpha__ || __alpha]
6609 (host_detect_local_cpu): Declare.
6610 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
6611 (DRIVER_SELF_SPECS): Define.
6613 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
6616 * config/i386/i386.md (*load_tp_x32): New.
6617 (*load_tp_x32_zext): Ditto.
6618 (*add_tp_x32): Ditto.
6619 (*add_tp_x32_zext): Ditto.
6620 (*load_tp_<mode>): Disable for TARGET_X32 targets.
6621 (*add_tp_<mode>): Ditto.
6622 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
6623 ptr_mode and convert to Pmode if needed.
6625 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
6628 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
6629 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
6630 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
6631 Add X to register footprint: Clobber r26/r27.
6633 2011-07-29 Richard Guenther <rguenther@suse.de>
6635 * builtins.c (fold_builtin_signbit): Build the comparison
6638 2011-07-29 Richard Guenther <rguenther@suse.de>
6640 PR tree-optimization/49893
6641 * tree-predcom.c (suitable_reference_p): Volatile references
6644 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
6647 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
6648 (__ctzsi2): Result for 0 may be undefined.
6649 (__ctzhi2): Result for 0 may be undefined.
6650 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
6651 (__popcountsi2): Ditto. And don't clobber r26.
6652 (__popcountdi2): Ditto. And don't clobber r27.
6653 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
6654 (parityhi2): New expand.
6655 (paritysi2): New expand.
6656 (popcounthi2): New expand.
6657 (popcountsi2): New expand.
6658 (clzhi2): New expand.
6659 (clzsi2): New expand.
6660 (ctzhi2): New expand.
6661 (ctzsi2): New expand.
6662 (ffshi2): New expand.
6663 (ffssi2): New expand.
6664 (copysignsf3): New insn.
6665 (bswapsi2): New expand.
6666 (*parityhi2.libgcc): New insn.
6667 (*parityqihi2.libgcc): New insn.
6668 (*paritysihi2.libgcc): New insn.
6669 (*popcounthi2.libgcc): New insn.
6670 (*popcountsi2.libgcc): New insn.
6671 (*popcountqi2.libgcc): New insn.
6672 (*popcountqihi2.libgcc): New insn-and-split.
6673 (*clzhi2.libgcc): New insn.
6674 (*clzsihi2.libgcc): New insn.
6675 (*ctzhi2.libgcc): New insn.
6676 (*ctzsihi2.libgcc): New insn.
6677 (*ffshi2.libgcc): New insn.
6678 (*ffssihi2.libgcc): New insn.
6679 (*bswapsi2.libgcc): New insn.
6681 2011-07-29 Richard Guenther <rguenther@suse.de>
6683 * tree-vrp.c (get_value_range): Only set parameter default
6684 definitions to varying, leave others at undefined.
6685 (extract_range_from_binary_expr): Fix undefined handling.
6686 (vrp_visit_phi_node): Handle merged undefined state.
6688 2011-07-29 Wei Guozhi <carrot@google.com>
6690 PR rtl-optimization/49799
6691 * combine.c (make_compound_operation): Check if the bit field is valid
6692 before change it to bit field extraction.
6694 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
6696 PR rtl-optimization/49891
6697 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
6698 newly created returnjumps.
6700 2011-07-28 DJ Delorie <dj@redhat.com>
6702 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
6703 local frame in a naked function, and produce a suitable error for
6706 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
6707 registers to be reloaded in HI classes when the target is HI.
6709 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
6711 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
6712 bound_one, bound_two.
6714 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
6717 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
6719 (translate_clast): Same.
6720 (translate_clast_assignment): New.
6722 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
6724 PR tree-optimization/49876
6725 * sese.c (rename_uses): Do not return false on gloog_error: set
6726 the new_expr to integer_zero_node and continue code generation.
6727 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
6729 2011-07-28 Jakub Jelinek <jakub@redhat.com>
6732 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
6733 arguments also check if they aren't initialized with a MODE_INT
6734 mode of the same size.
6736 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
6738 * expr.c (get_bit_range): Handle *MEM_REF's.
6740 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
6742 * rtlanal.c (tablejump_p): False for returns.
6743 * reorg.c (first_active_target_insn): New static function.
6744 (find_end_label): Set JUMP_LABEL for a new returnjump.
6745 (optimize_skip, get_jump_flags, rare_destination,
6746 mostly_true_jump, get_branch_condition,
6747 steal_delay_list_from_target, own_thread_p,
6748 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
6749 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
6750 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
6751 * jump.c (delete_related_insns): Likewise.
6752 (jump_to_label_p): New function.
6753 (redirect_target): New static function.
6754 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
6755 (redirect_jump_1): Assert that the new label is nonnull.
6756 (redirect_jump): Likewise.
6757 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
6758 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
6760 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
6761 changed. Ensure that the right label is passed to redirect_jump.
6762 * function.c (emit_return_into_block,
6763 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
6764 ret_rtx in their JUMP_LABEL.
6765 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
6766 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
6767 pass ret_rtx as label.
6768 * cfglayout.c (fixup_reorder_chain): Use
6769 force_nonfallthru_and_redirect rather than force_nonfallthru.
6770 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
6771 * rtl.h (ANY_RETURN_P): New macro.
6772 (jump_to_label_p): Declare.
6773 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
6775 (mark_target_live_regs): Likewise.
6776 * basic-block.h (force_nonfallthru_and_redirect): Declare.
6777 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
6778 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
6779 alpha_tablejump_best_label): Remove functions.
6780 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
6781 alpha_tablejump_best_label): Remove declarations.
6782 * config/sh/sh.c (barrier_align, split_branches): Adjust for
6783 ret_rtx in JUMP_LABELs.
6784 * config/arm/arm.c (is_jump_table): Likewise.
6786 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
6788 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
6789 special predicate. Remove explicit mode checks.
6791 2011-07-28 Jakub Jelinek <jakub@redhat.com>
6793 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
6794 DW_AT_data_member_location containing just DW_OP_plus_uconst.
6797 * dwarf2out.c (size_of_die, value_format, output_die): Use
6798 DW_FORM_udata instead of DW_FORM_data[48] for
6799 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
6801 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
6803 * config/i386/i386.md (*tls_global_dynamic_64): Update
6806 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
6809 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
6810 tls_symbolic_operand check. Update code sequence for TARGET_X32.
6811 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
6812 (tls_dynamic_gnu2_64): Ditto.
6813 (*tls_dynamic_gnu2_lea_64): Ditto.
6814 (*tls_dynamic_gnu2_call_64): Ditto.
6815 (*tls_dynamic_gnu2_combine_64): Ditto.
6817 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
6819 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
6821 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
6824 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
6826 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6828 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
6829 before the core constraints. Adjust attributes.
6830 ("*thumb2_movdf_vfp"): Likewise.
6832 2011-07-28 Kai Tietz <ktietz@redhat.com>
6834 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
6835 (simplify_truth_ops_using_ranges): Likewise.
6836 (build_assert_expr_for): Likewise.
6837 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
6838 and handle BIT_NOT_EXPR for truth-operation.
6840 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
6843 Undo r176835 from trunk
6844 2011-07-27 Georg-Johann Lay
6846 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
6849 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
6850 Add _muluhisi3, _mulshisi3, _usmulhisi3.
6851 * config/avr/libgcc.S (__mulsi3): Rewrite.
6852 (__mulhisi3): Rewrite.
6853 (__umulhisi3): Rewrite.
6854 (__usmulhisi3): New.
6858 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
6860 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
6861 (pseudo_register_or_const_int_operand): New.
6862 (combine_pseudo_register_operand): New.
6866 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
6867 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
6868 (any_extend, any_extend2): New code iterators.
6869 (extend_prefix): New code attribute.
6870 (mulsi3): Rewrite. Turn insn to expander.
6873 (usmulhisi3): New expander.
6874 (*mulsi3): New insn-and-split.
6875 (mulu<mode>si3): New insn-and-split.
6876 (muls<mode>si3): New insn-and-split.
6877 (mulohisi3): New insn-and-split.
6878 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
6879 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
6880 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
6881 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
6883 (*mulsi3_call): Rewrite.
6884 (*mulhisi3_call): Rewrite.
6885 (*umulhisi3_call): Rewrite.
6886 (*usmulhisi3_call): New insn.
6887 (*muluhisi3_call): New insn.
6888 (*mulshisi3_call): New insn.
6889 (*mulohisi3_call): New insn.
6890 (extendqihi2): Use combine_pseudo_register_operand as predicate
6892 (extendqisi2): Ditto.
6893 (zero_extendqihi2): Ditto.
6894 (zero_extendqisi2): Ditto.
6895 (zero_extendhisi2): Ditto.
6896 (extendhisi2): Ditto. Don't early-clobber operand 0.
6898 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
6900 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
6902 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
6904 PR tree-optimization/49471
6905 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
6906 iv only when the largest type is unsigned. Do not call
6907 lang_hooks.types.type_for_size.
6909 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
6912 * graphite-poly.c (apply_poly_transforms): Disable legality check
6913 after an openscop read.
6915 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
6918 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
6919 copy_bb_and_scalar_dependences.
6920 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
6921 (graphite_copy_stmts_from_block): Update call to rename_uses.
6922 (copy_bb_and_scalar_dependences): Update call to
6923 graphite_copy_stmts_from_block.
6924 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
6926 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
6929 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
6930 (__ctzsi2): Result for 0 may be undefined.
6931 (__ctzhi2): Result for 0 may be undefined.
6932 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
6933 (__popcountsi2): Ditto. And don't clobber r26.
6934 (__popcountdi2): Ditto. And don't clobber r27.
6935 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
6936 (parityhi2): New expand.
6937 (paritysi2): New expand.
6938 (popcounthi2): New expand.
6939 (popcountsi2): New expand.
6940 (clzhi2): New expand.
6941 (clzsi2): New expand.
6942 (ctzhi2): New expand.
6943 (ctzsi2): New expand.
6944 (ffshi2): New expand.
6945 (ffssi2): New expand.
6946 (copysignsf3): New insn.
6947 (bswapsi2): New expand.
6948 (*parityhi2.libgcc): New insn.
6949 (*parityqihi2.libgcc): New insn.
6950 (*paritysihi2.libgcc): New insn.
6951 (*popcounthi2.libgcc): New insn.
6952 (*popcountsi2.libgcc): New insn.
6953 (*popcountqi2.libgcc): New insn.
6954 (*popcountqihi2.libgcc): New insn-and-split.
6955 (*clzhi2.libgcc): New insn.
6956 (*clzsihi2.libgcc): New insn.
6957 (*ctzhi2.libgcc): New insn.
6958 (*ctzsihi2.libgcc): New insn.
6959 (*ffshi2.libgcc): New insn.
6960 (*ffssihi2.libgcc): New insn.
6961 (*bswapsi2.libgcc): New insn.
6963 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
6965 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
6966 the mode of symbolic_opreand RTXes.
6968 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
6970 * config/i386/predicates.md (x86_64_movabs_operand): Return false
6971 for pic_32bit_operand RTXes.
6972 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
6975 2011-07-27 Kai Tietz <ktietz@redhat.com>
6977 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
6979 (ix86_handle_abi_attribute): Allow function attributes
6980 ms_abi/sysv_abi in 32-bit mode, too.
6981 * doc/extend.texi: Adjust attribute documentation.
6983 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
6984 expression handling.
6985 (and_var_with_comparison_1): Likewise.
6987 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
6989 * params.h (ALLOW_STORE_DATA_RACES): New.
6990 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
6991 * Makefile.in (expr.o): Depend on PARAMS_H.
6992 * machmode.h (get_best_mode): Add argument.
6993 * fold-const.c (optimize_bit_field_compare): Add argument to
6995 (fold_truthop): Same.
6996 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
6997 * expr.c (emit_group_store): Same.
6998 (copy_blkmode_from_reg): Same.
6999 (write_complex_part): Same.
7000 (optimize_bitfield_assignment_op): Add argument.
7001 Add argument to get_best_mode.
7002 (get_bit_range): New.
7003 (expand_assignment): Calculate maxbits and pass it down accordingly.
7004 (store_field): New argument.
7005 (expand_expr_real_2): New argument to store_field. Include params.h.
7006 * expr.h (store_bit_field): New argument.
7007 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
7008 into account maxbits.
7009 * calls.c (store_unaligned_arguments_into_pseudos): New argument
7011 * expmed.c (store_bit_field_1): New argument. Use it.
7012 (store_bit_field): Same.
7013 (store_fixed_bit_field): Same.
7014 (store_split_bit_field): Same.
7015 (extract_bit_field_1): Pass new argument to get_best_mode.
7016 (extract_bit_field): Same.
7017 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
7018 * doc/invoke.texi: Document parameter allow-store-data-races.
7020 2011-07-27 Jakub Jelinek <jakub@redhat.com>
7022 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
7024 2011-07-27 Kai Tietz <ktietz@redhat.com>
7026 * tree-vrp.c (extract_range_from_binary_expr): Remove
7027 TRUTH-binary cases and add new bitwise-cases.
7028 (extract_range_from_assignment): Likewise.
7029 (register_edge_assert_for_1): Likeiwise.
7030 (register_edge_assert_for): Likewise.
7031 (simplify_truth_ops_using_ranges): Likewise.
7032 (simplify_stmt_using_ranges): Likewise.
7034 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
7037 * config/i386/i386.c (ix86_delegitimize_address): Call
7038 simplify_gen_subreg for PIC with mode of x only if modes of
7039 x and orig_x are different.
7041 2011-07-26 Jakub Jelinek <jakub@redhat.com>
7043 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
7044 to GC allocated copy of the string.
7045 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
7046 before .debug_line, not after it.
7048 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
7051 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
7052 evolution_function_is_affine_p on CHREC_RIGHT.
7054 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
7056 * tree-data-ref.c (max_stmt_executions_tree): Do not call
7057 lang_hooks.types.type_for_size.
7059 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
7062 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
7063 loops using wrapping semantics.
7065 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
7068 * tree-scalar-evolution.c (instantiate_scev_r): Return
7069 chrec_dont_know for ADDR_EXPR.
7071 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
7072 H.J. Lu <hongjiu.lu@intel.com>
7076 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
7077 if legitimize_tls_address returned operand in wrong mode. Allow
7078 SImode and DImode symbolic operand for PIC. Call convert_to_mode
7079 if legitimize_pic_address returned operand in wrong mode.
7081 2011-07-26 Martin Jambor <mjambor@suse.cz>
7083 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
7084 return false for invariants.
7086 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
7088 * config/i386/i386.md (add->lea splitter): Implement using SWI
7089 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
7090 (add->lea zext splitter): Change operand 2 predicate to
7091 x86_64_nonmemory_operand.
7093 2011-07-26 Richard Guenther <rguenther@suse.de>
7095 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
7096 frequency makes everything hot.
7098 2011-07-26 Richard Guenther <rguenther@suse.de>
7100 PR tree-optimization/49840
7101 * tree-vrp.c (range_fits_type_p): Properly handle full
7102 double-int precision.
7104 2011-07-26 Martin Jambor <mjambor@suse.cz>
7107 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
7109 (update_specialized_profile): Likewise.
7111 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
7112 H.J. Lu <hongjiu.lu@intel.com>
7117 * config/i386/i386.md (i): Change SImode attribute to "e".
7118 (g): Change SImode attribute to "rme".
7119 (di): Change SImode attribute to "nF".
7120 (general_operand): Change SImode attribute to x86_64_general_operand.
7121 (general_szext_operand): Change SImode attribute to
7122 x86_64_szext_general_operand.
7123 (immediate_operand): Change SImode attribute to
7124 x86_64_immediate_operand.
7125 (nonmemory_operand): Change SImode attribute to
7126 x86_64_nonmemory_operand.
7127 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
7128 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
7129 (*lea_1): Use SWI48 mode iterator.
7130 (*lea_1_zext): New insn pattern.
7131 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
7133 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
7134 Update operand constraints.
7135 (addsi_1_zext): Ditto.
7136 (*add<mode>2): Ditto.
7137 (*addsi_3_zext): Ditto.
7138 (*subsi_1_zext): Ditto.
7139 (*subsi_2_zext): Ditto.
7140 (*subsi_3_zext): Ditto.
7141 (*addsi3_carry_zext): Ditto.
7142 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
7143 (*mulsi3_1_zext): Ditto.
7145 (*andsi_1_zext): Ditto.
7146 (*andsi_2_zext): Ditto.
7147 (*<any_or:code>si_1_zext): Ditto.
7148 (*<any_or:code>si_2_zext): Ditto.
7149 (*test<mode>_1): Use <general_operand> predicate for operand 1.
7150 (*and<mode>_2): Ditto.
7151 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
7152 (add->lea splitter): Check operand modes in insn constraint. Extend
7153 operands less than SImode wide to SImode.
7154 (add->lea zext splitter): Do not extend input operands to DImode.
7155 (*lea_general_1): Handle only QImode and HImode operands.
7156 (*lea_general_2): Ditto.
7157 (*lea_general_3): Ditto.
7158 (*lea_general_1_zext): Remove.
7159 (*lea_general_2_zext): Ditto.
7160 (*lea_general_3_zext): Ditto.
7161 (*lea_general_4): Check operand modes in insn constraint. Extend
7162 operands less than SImode wide to SImode.
7163 (ashift->lea splitter): Ditto.
7164 * config/i386/i386.c (ix86_print_operand_address): Print address
7165 registers with 'q' modifier on 64bit targets.
7166 * config/i386/predicates.md (pic_32bit_opreand): Define as special
7167 predicate. Reject non-SI and non-DI modes.
7169 2011-07-25 Andrew Pinski <apinski@cavium.com>
7172 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
7173 TREE_THIS_NOTRAP into the inner most MEM_REF.
7174 Always copy TREE_THIS_VOLATILE.
7175 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
7176 arguments are not volatile references.
7178 2011-07-25 Richard Henderson <rth@redhat.com>
7180 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
7181 * final.c (final_scan_insn): Don't test for it.
7182 (rest_of_clean_state): Likewise.
7184 2011-07-25 Richard Henderson <rth@redhat.com>
7187 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
7188 (emit_frame_save): Likewise.
7189 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
7190 insn onto a dummy blockage insn after the join label.
7192 2011-07-25 Richard Henderson <rth@redhat.com>
7194 * dwarf2cfi.c (dw_trace_info): Add ID member.
7195 (get_trace_index): Remove. Change users to use ID member.
7196 (before_next_cfi_note): New.
7197 (connect_traces): Remove unreachable traces before the main loop.
7198 Look across one trace and generate remember/restore_state if needed.
7200 2011-07-25 Richard Henderson <rth@redhat.com>
7202 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
7204 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
7206 * genattr.c (write_upcase, gen_attr <enum definition writing>):
7208 * genattr-common.c ... here.
7209 (main): Call gen_attr.
7210 * optc-gen.awk: Make generated program include insn-attr-common.h .
7211 * Makefile.in (oprions.o): Depend on insn-attr-common.h
7213 2011-07-25 Anatoly Sokolov <aesok@post.ru>
7215 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7216 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
7217 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
7218 m32c_print_operand, m32c_print_operand_address): Remove.
7219 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
7220 Change return type to bool. Change argument type to bool.
7221 (m32c_print_operand, m32c_print_operand_address): Make static.
7222 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
7223 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7225 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7227 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
7228 attributes): Document mmap.
7230 2011-07-25 Anatoly Sokolov <aesok@post.ru>
7232 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7233 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
7234 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
7235 mmix_print_operand, mmix_print_operand_address): Remove.
7236 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
7237 Change return type to bool. Change argument type to bool.
7238 (mmix_print_operand, mmix_print_operand_address): Make static.
7239 (mmix_intval, mmix_output_condition): Change 'x' argument type
7241 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
7242 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7244 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
7247 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
7248 shift counter for x << x and x >> x shifts.
7250 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7253 * config.gcc: Reject *-*-solaris2 configuration.
7255 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
7257 PR tree-optimization/49809
7258 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
7259 gimple_get_lhs instead of gimple_assign_lhs.
7261 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7263 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
7265 2011-07-25 Richard Guenther <rguenther@suse.de>
7267 PR tree-optimization/49822
7268 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
7269 more. Make sure to preserve stmts with side-effects. Properly
7270 handle virtual defs, follow a longer def chain.
7272 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
7277 * Makefile.in: Do not flatten c-family directory when installing
7280 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
7282 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
7283 original nodes if we are dealing with virtual clones.
7285 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
7287 * common/config/c6x/c6x-common.c: New file.
7289 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
7291 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
7293 2011-07-25 Richard Guenther <rguenther@suse.de>
7295 PR tree-optimization/49715
7296 * tree-vrp.c: Include expr.h and optabs.h.
7297 (range_fits_type_): New function.
7298 (simplify_float_conversion_using_ranges): Likewise.
7299 (simplify_stmt_using_ranges): Call it.
7300 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
7301 * optabs.c (can_float_p): Export.
7302 * optabs.h (can_float_p): Declare.
7304 2011-07-25 Richard Guenther <rguenther@suse.de>
7306 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
7307 (get_value_range): For out-of-range SSA names or names created
7308 after propagation return a read-only varying range.
7309 (dump_all_value_ranges): Adjust.
7310 (vrp_initialize): Likewise.
7311 (vrp_finalize): Likewise.
7313 2011-07-24 Richard Henderson <rth@redhat.com>
7316 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
7319 2011-07-24 Richard Henderson <rth@redhat.com>
7322 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
7323 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
7325 2011-07-24 Richard Henderson <rth@redhat.com>
7328 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
7330 2011-07-24 Richard Henderson <rth@redhat.com>
7332 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
7333 Zero args_size for abnormal edges. Adjust all callers.
7335 2011-07-24 Richard Henderson <rth@redhat.com>
7338 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
7340 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
7343 * collect2.c (demangle_flag): Removed.
7345 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
7347 * configure.ac (demangler_in_ld): Default to yes.
7348 * configure: Regenerated.
7349 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
7350 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
7351 --no-demangle options straight through to ld. When
7352 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
7353 way that has the intended effect on Windows.
7355 2011-07-23 Richard Henderson <rth@redhat.com>
7357 * dwarf2cfi.c: Include basic-block.h.
7358 (dw_label_info): Remove.
7359 (trace_work_list, trace_index): New.
7360 (remember_row, emit_cfa_remember): Remove.
7361 (dw_trace_info_hash, dw_trace_info_eq): New.
7362 (get_trace_index, get_trace_info): New.
7363 (save_point_p): New.
7364 (free_cfi_row): Remove.
7365 (add_cfi): Do not emit DW_CFA_remember_state.
7366 (cfa_row_equal_p): New.
7367 (barrier_args_size): Remove.
7368 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
7369 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
7370 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
7371 (dwarf2out_cfi_begin_epilogue): Remove.
7372 (dwarf2out_frame_debug_restore_state): Remove.
7373 (connect_traces, create_pseudo_cfg): New.
7374 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
7375 * Makefile.in (dwarf2cfi.o): Update.
7377 2011-07-23 Richard Henderson <rth@redhat.com>
7379 * dwarf2cfi.c (dw_trace_info): New.
7380 (dw_label_info): New.
7381 (cie_return_save): New.
7383 (queued_args_size): Rename from args_size. Update all users.
7384 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
7385 (def_cfa_1): Use cur_trace instead of cfa_*.
7386 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
7387 (clobbers_queued_reg_save, reg_saved_in): Likewise.
7388 (dwarf2out_frame_debug_expr): Likewise.
7389 (create_cie_data): Split out from ...
7390 (execute_dwarf2_frame): ... here. Initialize cur_trace.
7392 2011-07-23 Richard Henderson <rth@redhat.com>
7394 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
7395 Update all users to match.
7396 (execute_dwarf2_frame): Free reg_saved_in_data.
7398 2011-07-23 Richard Henderson <rth@redhat.com>
7400 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
7401 (queued_reg_saves): Don't GTY. Change to a VEC.
7402 (queue_reg_save): Update to match.
7403 (dwarf2out_flush_queued_reg_saves): Likewise.
7404 (clobbers_queued_reg_save): Likewise.
7405 (reg_saved_in): Likewise.
7406 (execute_dwarf2_frame): Free queued_reg_saves.
7408 2011-07-23 Richard Henderson <rth@redhat.com>
7410 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
7412 2011-07-23 Richard Henderson <rth@redhat.com>
7414 * dwarf2cfi.c (add_cfi_args_size): Split out from...
7415 (dwarf2out_args_size): ... here.
7416 (add_cfi_restore): Split out from ...
7417 (dwarf2out_frame_debug_cfa_restore): ... here.
7418 (def_cfa_0): Split out from ...
7419 (def_cfa_1): ... here.
7420 (cfi_oprnd_equal_p, cfi_equal_p): New.
7421 (change_cfi_row): New.
7422 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
7423 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
7424 (output_cfis): Remove.
7425 * dwarf2out.c (output_fde): Simplify output_cfi loop.
7426 (dwarf2out_switch_text_section): Don't call output_cfis.
7427 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
7428 * dwarf2out.h: Update decls.
7429 (enum dw_val_class): Add dw_val_class_none.
7431 2011-07-23 Richard Henderson <rth@redhat.com>
7433 * dwarf2cfi.c (update_row_reg_save): New.
7434 (dwarf2out_frame_debug_cfa_expression): Use it.
7435 (dwarf2out_frame_debug_cfa_restore): Likewise.
7436 (reg_save): Likewise. Do not emit DW_CFA_same_value.
7438 2011-07-23 Richard Henderson <rth@redhat.com>
7440 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
7442 2011-07-23 Richard Henderson <rth@redhat.com>
7444 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
7446 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
7447 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
7448 (cur_row, remember_row): New.
7449 (def_cfa_1): Use cur_row instead of the old_* variables.
7450 (dwarf2out_frame_debug_restore_state): Similarly.
7451 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
7452 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
7453 (dwarf2out_frame_debug_adjust_cfa): Likewise.
7454 (dwarf2out_frame_debug_cfa_offset): Likewise.
7455 (dwarf2out_frame_debug_expr): Likewise.
7456 (execute_dwarf2_frame): Set up cur_row.
7457 * dwarf2out.h (struct cfa_loc): Mark for GTY.
7459 2011-07-23 Richard Henderson <rth@redhat.com>
7461 * basic-block.h (EDGE_PRESERVE): New.
7462 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
7463 * bb-reorder.c: Include except.h.
7464 (fix_up_crossing_landing_pad): New.
7465 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
7466 landing pads in the right partition. Duplicate as necessary.
7467 (partition_hot_cold_basic_blocks): Fix up DF info after
7468 duplicating landing pads.
7469 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
7470 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
7471 is set properly. Validate that EH edges are not CROSSING.
7472 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
7473 (dw2_build_landing_pads): ... here.
7474 (convert_to_eh_region_ranges): Remove code to fixup crossing
7476 * except.h (expand_dw2_landing_pad_for_region): Declare.
7477 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
7479 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
7482 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
7484 2011-07-22 Jason Merrill <jason@redhat.com>
7486 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
7488 2011-07-22 Richard Henderson <rth@redhat.com>
7490 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
7492 2011-07-22 Richard Henderson <rth@redhat.com>
7494 * jump.c (maybe_propagate_label_ref): Split out of...
7495 (mark_all_labels): ... here. Do not attempt label_ref
7496 propagation while in cfglayout mode.
7498 2011-07-22 Jakub Jelinek <jakub@redhat.com>
7500 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
7501 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
7502 (dwarf_attr_name): Handle DW_AT_GNU_macros.
7503 (dwarf2out_define): If the vector is empty and
7504 lineno is 0, emit a dummy entry first.
7505 (dwarf2out_undef): Likewise. Remove redundant semicolon.
7506 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
7507 optimize_macinfo_range): New functions.
7508 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
7509 mergeable, optimize longer strings using
7510 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
7511 optimize longer sequences of define/undef ops from headers
7512 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
7513 emit a section headers.
7514 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
7515 and macinfo_section_label to DEBUG_MACRO_SECTION
7516 resp. DEBUG_MACRO_SECTION_LABEL.
7517 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
7518 instead of DW_AT_macro_info.
7521 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
7523 * dwarf2out.c: Include opts.h.
7524 (dchar_p): New typedef. Define heap VEC for it.
7525 (producer_string): New variable.
7526 (gen_producer_string): New function.
7527 (gen_compile_unit_die): Use it.
7528 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
7529 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
7530 * doc/invoke.texi: Document -grecord-gcc-switches and
7531 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
7532 to -frecord-gcc-switches description.
7534 2011-07-22 Jason Merrill <jason@redhat.com>
7537 * c-decl.c (c_linkage_bindings): Define.
7539 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
7542 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
7544 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
7546 * config/i386/i386.c (ix86_option_override_internal): Disallow
7548 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
7549 only for TARGET_LP64.
7550 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
7552 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
7554 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
7555 avoid warnings when GCC is built with a C++ compiler.
7557 2011-07-22 Martin Jambor <mjambor@suse.cz>
7560 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
7561 if decl node is in another partition, call cgraph_get_node only once.
7563 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
7565 * config.gcc (x86_64-*-linux*): Set
7566 default_gnu_indirect_function to yes.
7568 2011-07-22 Richard Guenther <rguenther@suse.de>
7570 PR tree-optimization/45819
7571 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
7572 preserve volatile and notrap flags.
7574 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7575 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7578 * configure.ac: Test AM_ICONV with CXX.
7579 * configure: Regenerate.
7580 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
7582 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7585 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
7586 (set_cloog_options): Use it.
7588 2011-07-22 Jakub Jelinek <jakub@redhat.com>
7591 * gcc.c (main): Call stack_limit_increase (64MB).
7592 * toplev.c (toplev_main): Likewise.
7594 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7596 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
7597 instead of force_reg.
7599 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7601 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
7602 needed and use force_reg after convert.
7603 (ix86_expand_call): Likewise.
7604 (ix86_expand_special_args_builtin): Likewise.
7605 (ix86_expand_builtin): Likewise.
7607 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7611 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
7612 in parameter. Initialize v1 and v2 based on the values returned
7613 by clast_name_to_lb_ub.
7614 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
7616 (type_for_clast_bin): Same.
7617 (type_for_clast_expr): Same.
7618 (type_for_clast_eq): Update calls to type_for_clast_expr.
7619 (type_for_clast_for): Same.
7620 (build_iv_mapping): Same.
7621 * graphite-ppl.h (value_min): New.
7623 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7625 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
7626 types whenever possible.
7628 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7630 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
7632 (new_clast_name_index): Add lb and ub parameters.
7633 (free_clast_name_index): New.
7634 (clast_name_to_lb_ub): New.
7635 (save_clast_name_index): Add lb and ub parameters.
7636 (compute_bounds_for_param): New.
7637 (type_for_level): Removed.
7638 (type_for_clast_for): Removed level parameter. Do not call
7640 (graphite_create_new_loop): Store the lb and ub for the clast_name
7641 of the iterator of the loop that has been generated.
7642 (graphite_create_new_loop_guard): Remove parameter level.
7643 (create_params_index): Store the lb and ub of each parameter.
7644 (gloog): Use free_clast_name_index. Pass to create_params_index
7647 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7649 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
7650 (max_precision_type): Inline max_signed_precision_type.
7651 (type_for_clast_red): Use max_precision_type.
7652 (type_for_clast_bin): Same.
7653 (type_for_clast_for): Same.
7655 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7657 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
7659 (gcc_type_for_value): Renamed type_for_value.
7660 (gcc_type_for_clast_term): Renamed type_for_clast_term.
7661 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
7662 (gcc_type_for_clast_red): Renamed type_for_clast_red.
7663 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
7664 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
7665 (graphite_translate_clast_equation): Update calls.
7666 (compute_type_for_level): Renamed type_for_level.
7667 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
7668 (build_iv_mapping): Update calls.
7669 (graphite_create_new_loop_guard): Same.
7671 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7673 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
7676 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7678 * graphite-clast-to-gimple.c (struct ivs_params): New.
7679 (clast_name_to_gcc): Use ivs_params to pass around parameters.
7680 (clast_to_gcc_expression): Same.
7681 (clast_to_gcc_expression_red): Same.
7682 (gcc_type_for_clast_term): Same.
7683 (gcc_type_for_clast_expr): Same.
7684 (gcc_type_for_clast_red): Same.
7685 (gcc_type_for_clast_bin): Same.
7686 (gcc_type_for_clast_eq): Same.
7687 (graphite_translate_clast_equation): Same.
7688 (graphite_create_guard_cond_expr): Same.
7689 (graphite_create_new_guard): Same.
7690 (graphite_create_new_loop): Same.
7691 (build_iv_mapping): Same.
7692 (translate_clast_user): Same.
7693 (graphite_create_new_loop_guard): Same.
7694 (translate_clast): Same.
7695 (translate_clast_for_loop): Same.
7696 (translate_clast_for): Same.
7697 (translate_clast_guard): Same.
7698 (initialize_cloog_names): Fix typo.
7699 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
7701 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7703 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
7704 (new_clast_name_index): Add level parameter.
7705 (clast_name_to_level): New.
7706 (save_clast_name_index): Add level parameter.
7707 (newivs_to_depth_to_newiv): Removed.
7708 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
7709 (graphite_create_new_loop): Add level parameter. Pass level to
7710 save_clast_name_index.
7711 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
7712 (create_params_index): Pass level to save_clast_name_index.
7714 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7716 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
7717 recompute type, lb, and ub. Get them from...
7718 (graphite_create_new_loop_guard): ...here. Pass in parameter
7719 pointers to type, lb, and ub.
7720 (translate_clast_for_loop): Update function calls.
7721 (translate_clast_for): Same.
7723 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7725 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
7727 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
7728 (gcc_type_for_iv_of_clast_loop): Update use of level.
7729 (gloog): Start counting nesting level from 0.
7730 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
7731 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
7732 psct_dynamic_dim on level.
7734 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7736 * config/i386/i386.c (ix86_legitimize_address): Convert to
7739 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7741 * config/i386/i386.c (function_value_64): Always return pointers
7743 (ix86_promote_function_mode): New.
7744 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
7746 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7748 PR tree-optimization/49749
7749 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
7750 remove no-longer-used maxrank variable.
7752 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
7754 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
7756 2011-07-21 Jason Merrill <jason@redhat.com>
7758 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
7759 * recog.h (struct insn_data_d): Check it instead of
7760 HAVE_DESIGNATED_INITIALIZERS.
7761 * genoutput.c (output_insn_data): Likewise.
7763 2011-07-21 Richard Guenther <rguenther@suse.de>
7765 PR tree-optimization/49770
7766 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
7767 valueized any operand. Renamed from ...
7768 (valueize_refs): ... this. New wrapper around valueize_refs_1.
7769 (valueize_shared_reference_ops_from_ref): Return whether we
7770 valueized any operand.
7771 (vn_reference_lookup): Only when we valueized any operand
7772 use the valueized reference for alias analysis. Do not preserve
7773 the original reference tree in this case.
7775 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
7777 * config/i386/i386.c (ix86_decompose_address): Reject all but
7778 register operands and subregs of DImode hard registers in index.
7780 2011-07-21 Kai Tietz <ktietz@redhat.com>
7782 * fold-const.c (fold_unary_loc): Preserve indirect
7783 comparison cast to none-boolean type.
7784 * tree-ssa.c (useless_type_conversion_p): Preserve cast
7785 from/to boolean-type.
7786 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
7787 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
7788 * tree-cfg.c (verify_gimple_comparison): Check result
7789 type of comparison expression.
7790 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
7791 of condition result and disallow type-cast sinking into comparison.
7793 2011-07-21 Richard Guenther <rguenther@suse.de>
7795 * tree-ssa-forwprop.c (combine_conversions): Return whether
7796 we have to run cfg-cleanup. Properly remove dead stmts.
7797 (ssa_forward_propagate_and_combine): Adjust.
7799 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
7801 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
7803 2011-07-21 Kai Tietz <ktietz@redhat.com>
7805 * tree-ssa-propagate.c (substitute_and_fold): Use
7806 do_dce flag to deside, if BB's statements are scanned
7807 in last to first, or first to last order.
7809 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
7811 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
7813 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
7814 Uros Bizjak <ubizjak@gmail.com>
7815 Richard Henderson <rth@redhat.com>
7817 * config/i386/constraints.md (w): New.
7819 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
7820 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
7822 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
7823 instead of TARGET_64BIT.
7825 * config/i386/i386.md (indirect_jump): Replace
7826 nonimmediate_operand with indirect_branch_operand.
7827 (*indirect_jump): Likewise. Replace constraint "m" with "w".
7828 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
7829 Convert operand 0 to Pmode for x32 if not PIC.
7830 (*tablejump_1): Replace nonimmediate_operand with
7831 indirect_branch_operand. Replace constraint "m" with "w".
7832 (*call_vzeroupper): Replace constraint "m" with "w".
7834 (*call_rex64_ms_sysv_vzeroupper): Likewise.
7835 (*call_rex64_ms_sysv): Likewise.
7836 (*call_value_vzeroupper): Likewise.
7837 (*call_value): Likewise.
7838 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
7839 (*call_value_rex64_ms_sysv): Likewise.
7840 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
7842 * config/i386/predicates.md (indirect_branch_operand): New.
7843 (call_insn_operand): Support x32.
7845 2011-07-20 Michael Eager <eager@eagercon.com>
7847 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
7849 2011-07-20 Richard Henderson <rth@redhat.com>
7851 * cfg.c (dump_bb_info): Dump basic_block->flags.
7852 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
7854 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
7856 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
7857 of DImode hard registers in index.
7858 (ix86_legitimate_address_p): Allow subregs of base and index to span
7859 more than a word. Assert that subregs of base and index satisfy
7860 register_no_elim_operand predicates. Reject addresses where
7861 base and index have different modes.
7863 2011-07-20 Robert Millan <rmh@gnu.org>
7865 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
7867 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7869 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
7870 removing now-unnecessary assignment.
7872 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7874 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
7875 memory address space to the type's address space.
7877 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
7881 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
7882 and expand appropriately if there is a CONST_INT in operand2.
7883 (usmulqihi3): New insn.
7884 (*sumulqihi3): New insn.
7885 (*osmulqihi3): New insn.
7886 (*oumulqihi3): New insn.
7887 (*muluqihi3.uconst): New insn_and_split.
7888 (*muluqihi3.sconst): New insn_and_split.
7889 (*mulsqihi3.sconst): New insn_and_split.
7890 (*mulsqihi3.uconst): New insn_and_split.
7891 (*mulsqihi3.oconst): New insn_and_split.
7892 (*ashifthi3.signx.const): New insn_and_split.
7893 (*ashifthi3.signx.const7): New insn_and_split.
7894 (*ashifthi3.zerox.const): New insn_and_split.
7895 (mulsqihi3): New insn.
7896 (muluqihi3): New insn.
7897 (muloqihi3): New insn.
7898 * config/avr/predicates.md (const_2_to_7_operand): New.
7899 (const_2_to_6_operand): New.
7904 (register_or_s9_operand): New.
7906 2011-07-20 Kai Tietz <ktietz@redhat.com>
7908 * builtins.c (fold_builtin_expect): See through the cast
7909 from truthvalue_type_node to long.
7911 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
7913 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
7914 where we can use them from the standard and altivec instruction
7915 sets, instead of always using the 3 operand VSX forms that require
7916 the destination to overlap one of the inputs.
7921 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
7923 (fmsdf4_fpr): Ditto.
7924 (nfmadf4_fpr): Ditto.
7925 (nfmsdf4_fpr): Ditto.
7927 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
7929 * genrecog.c (make_insn_sequence): Correct position numbering
7930 when filtering out match_scratch and match_dup.
7932 2011-07-20 Richard Guenther <rguenther@suse.de>
7934 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
7935 against already removed statements.
7936 (forward_propagate_into_comparison): Remove dead defining stmts.
7937 (forward_propagate_into_gimple_cond): Likewise.
7938 (forward_propagate_into_cond): Simplify.
7939 (ssa_forward_propagate_and_combine): Handle changed cfg from
7940 forward_propagate_into_comparison.
7941 * tree-ssa-phiopt.c (conditional_replacement): Use proper
7942 locations for newly built statements.
7944 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
7946 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
7948 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7950 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
7951 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
7953 2011-07-20 Richard Guenther <rguenther@suse.de>
7956 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
7957 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
7958 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
7960 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
7962 * config/frv/frv.c (frv_register_move_cost): Define explicitly
7963 costs for subclasses of GR_REGS.
7965 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
7968 * config/i386/predicates.md (no_seg_addres_operand): No more special.
7969 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
7970 of DImode hard registers in base.
7971 (ix86_legitimate_address_p): Allow SImode and DImode base and index
7974 2011-07-20 Richard Guenther <rguenther@suse.de>
7976 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
7977 (unify_nodes): Deal with that.
7978 (solve_graph): Likewise.
7980 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
7982 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
7983 canonicalize left operand from ZERO_EXTEND to AND.
7985 2011-07-20 Anatoly Sokolov <aesok@post.ru>
7987 * target.def (class_max_nregs): New hook.
7988 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
7989 * doc/tm.texi: Regenerate.
7990 * targhooks.c (default_class_max_nregs): New function.
7991 * targhooks.h (default_class_max_nregs): Declare.
7992 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
7993 x_ira_reg_class_min_nregs arrays to unsigned char.
7994 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
7995 hook instead of CLASS_MAX_NREGS macro.
7996 * reginfo.c (restore_register_info): Ditto.
7997 * ira-conflicts.c (process_regs_for_copy): Use
7998 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
7999 Change type rclass and aclass vars to reg_class_t.
8000 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
8001 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
8003 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
8004 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
8006 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
8007 * config/i386/i386.c (ix86_class_max_nregs): New function.
8008 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
8009 instead of CLASS_MAX_NREGS macro.
8010 (TARGET_CLASS_MAX_NREGS): Define.
8011 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
8012 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
8013 * config/avr/avr.c (class_max_nregs): Remove function.
8014 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
8015 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
8016 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
8017 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
8018 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
8019 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
8020 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
8021 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
8022 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
8023 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
8024 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
8025 * config/score/score.h (CLASS_MAX_NREGS): Remove.
8026 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
8027 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
8028 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
8030 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
8032 * cif-code.def (OVERWRITABLE): Fix typo and move around.
8033 (TARGET_OPTIMIZATION_MISMATCH): Delete.
8034 (EH_PERSONALITY): Fix typo.
8035 (NON_CALL_EXCEPTIONS): Fix message.
8036 (OPTIMIZATION_MISMATCH): Adjust message.
8037 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
8039 2011-07-19 Ian Lance Taylor <iant@google.com>
8041 * doc/install.texi (Configuration): Document
8042 --enable-build-poststage1-with-cxx.
8044 2011-07-19 Robert Millan <rmh@gnu.org>
8046 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
8047 (GLIBC_DYNAMIC_LINKER): Remove.
8049 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
8050 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
8051 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
8052 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
8053 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
8054 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
8056 * config/mips/linux.h: Remove everything except for ...
8057 (GLIBC_DYNAMIC_LINKER): ... this macro.
8059 * config/mips/linux64.h: Remove everything except for ...
8060 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
8061 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
8062 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
8063 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
8064 (GNU_USER_LINK_EMULATIONN32): New macros.
8066 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
8067 Use the new headers.
8069 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
8071 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
8072 Add offset_known_p and size_known_p fields.
8073 (MEM_OFFSET_KNOWN_P): Update accordingly.
8074 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
8075 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
8076 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
8077 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
8078 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
8079 (init_emit_regs): Likewise.
8081 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
8083 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
8084 (MEM_OFFSET): Change from returning an rtx to returning a
8086 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
8087 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
8088 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
8089 (clear_mem_offset): Declare.
8090 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
8091 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
8092 MEM_OFFSET to get a HOST_WIDE_INT offset.
8093 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
8094 (adjust_offset_for_component_ref): Take a bool "known_p"
8095 parameter and a HOST_WIDE_INT "offset" parameter.
8096 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
8097 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
8098 than an rtx. Use clear_mem_offset to clear the offset.
8099 * cfgcleanup.c (merge_memattrs): Likewise.
8100 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
8101 * function.c (assign_parm_find_stack_rtl): Likewise.
8102 (assign_parm_setup_stack): Likewise.
8103 * print-rtl.c (print_rtx): Likewise.
8104 * reload.c (find_reloads_subreg_address): Likewise.
8105 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
8106 * var-tracking.c (INT_MEM_OFFSET): Likewise.
8107 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
8108 (get_mem_align_offset): Likewise.
8109 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
8110 (clear_mem_offset): New function.
8111 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
8112 offset rather than an rtx. Assume both the expressio and offset
8114 (r10k_needs_protection_p_1): Update accordingly, checking the
8115 expression and offset availability here instead.
8117 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
8119 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
8120 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
8121 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
8122 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
8123 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
8124 (clear_mem_size): Declare.
8125 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
8126 (clear_mem_size): New function.
8127 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
8128 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
8129 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
8130 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
8132 (nonoverlapping_memrefs_p): Likewise.
8133 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
8134 (expand_builtin_init_trampoline): Likewise.
8135 * calls.c (compute_argument_addresses): Likewise.
8136 * cfgcleanup.c (merge_memattrs): Likewise.
8137 * dce.c (find_call_stack_args): Likewise.
8138 * dse.c (record_store, scan_insn): Likewise.
8139 * dwarf2out.c (dw_sra_loc_expr): Likewise.
8140 * expr.c (emit_block_move_hints): Likewise.
8141 * function.c (assign_parm_find_stack_rtl): Likewise.
8142 * print-rtl.c (print_rtx): Likewise.
8143 * reload.c (find_reloads_subreg_address): Likewise.
8144 * rtlanal.c (may_trap_p_1): Likewise.
8145 * var-tracking.c (track_expr_p): Likewise.
8146 * varasm.c (assemble_trampoline_template): Likewise.
8147 * config/arm/arm.c (arm_print_operand): Likewise.
8148 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
8149 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
8150 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
8151 (expand_constant_setmem_prologue): Likewise.
8152 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
8153 * config/rs6000/rs6000.c (expand_block_move): Likewise.
8154 (adjacent_mem_locations): Likewise.
8155 * config/s390/s390.c (s390_expand_setmem): Likewise.
8156 (s390_expand_insv): Likewise.
8157 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
8158 (*extendqi<mode>2_short_displ): Likewise.
8159 * config/sh/sh.c (expand_block_move): Likewise.
8160 * config/sh/sh.md (extv, extzv): Likewise.
8162 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
8164 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
8165 (mem_attrs_htab_eq): ...here.
8166 (find_mem_attrs): Replace with...
8167 (set_mem_attrs): ...this function. Take a mem_attrs structure
8168 rather than individual fields.
8169 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
8170 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
8171 (set_mem_size, change_address, adjust_address_1, offset_address)
8172 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
8175 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
8177 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
8178 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
8179 Provide a dummy definition of MEM_ADDR_SPACE for generators.
8180 (target_rtl): Add x_mode_mem_attrs.
8181 (mode_mem_attrs): New macro.
8182 (get_mem_attrs): New function.
8183 * emit-rtl.c (get_mem_attrs): Rename to...
8184 (find_mem_attrs): ...this.
8185 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
8186 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
8187 (set_mem_size, change_address, adjust_address_1, offset_address)
8188 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
8190 (init_emit_regs): Initialize mode_mem_attrs.
8192 2011-07-19 Richard Guenther <rguenther@suse.de>
8194 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
8195 TRUTH_*_EXPR handling.
8196 * tree-ssa-operands.c (get_expr_operands): Likewise.
8197 * tree-ssa-pre.c (fully_constant_expression): Likewise.
8198 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
8200 (is_and_or_or): Likewise.
8201 (is_norm_cond_subset_of): Likewise.
8203 2011-07-19 Richard Guenther <rguenther@suse.de>
8205 * tree.h (fold_build_pointer_plus_loc): New helper function.
8206 (fold_build_pointer_plus_hwi_loc): Likewise.
8207 (fold_build_pointer_plus): Define.
8208 (fold_build_pointer_plus_hwi): Likewise.
8209 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
8210 (fold_builtin_memory_op): Likewise.
8211 (fold_builtin_stpcpy): Likewise.
8212 (fold_builtin_memchr): Likewise.
8213 (fold_builtin_strstr): Likewise.
8214 (fold_builtin_strchr): Likewise.
8215 (fold_builtin_strrchr): Likewise.
8216 (fold_builtin_strpbrk): Likewise.
8217 (fold_builtin_strcat): Likewise.
8218 (expand_builtin_memory_chk): Likewise.
8219 (fold_builtin_memory_chk): Likewise.
8220 * c-typeck.c (build_unary_op): Likewise.
8221 * cgraphunit.c (thunk_adjust): Likewise.
8222 * fold-const.c (build_range_check): Likewise.
8223 (fold_binary_loc): Likewise.
8224 * omp-low.c (extract_omp_for_data): Likewise.
8225 (expand_omp_for_generic): Likewise.
8226 (expand_omp_for_static_nochunk): Likewise.
8227 (expand_omp_for_static_chunk): Likewise.
8228 * tree-affine.c (add_elt_to_tree): Likewise.
8229 * tree-data-ref.c (split_constant_offset_1): Likewise.
8230 * tree-loop-distribution.c (generate_memset_zero): Likewise.
8231 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
8232 * tree-predcom.c (ref_at_iteration): Likewise.
8233 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
8234 (add_to_parts): Likewise.
8235 (create_mem_ref): Likewise.
8236 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
8237 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
8238 (number_of_iterations_le): Likewise.
8239 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
8240 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8241 (vect_create_addr_base_for_vector_ref): Likewise.
8242 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
8243 (vect_create_cond_for_alias_checks): Likewise.
8244 * tree-vrp.c (extract_range_from_assert): Likewise.
8245 * config/alpha/alpha.c (alpha_va_start): Likewise.
8246 (alpha_gimplify_va_arg_1): Likewise.
8247 * config/i386/i386.c (ix86_va_start): Likewise.
8248 (ix86_gimplify_va_arg): Likewise.
8249 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
8250 * config/mep/mep.c (mep_expand_va_start): Likewise.
8251 (mep_gimplify_va_arg_expr): Likewise.
8252 * config/mips/mips.c (mips_va_start): Likewise.
8253 (mips_gimplify_va_arg_expr): Likewise.
8254 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
8255 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
8256 (rs6000_gimplify_va_arg): Likewise.
8257 * config/s390/s390.c (s390_va_start): Likewise.
8258 (s390_gimplify_va_arg): Likewise.
8259 * config/sh/sh.c (sh_va_start): Likewise.
8260 (sh_gimplify_va_arg_expr): Likewise.
8261 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
8262 * config/spu/spu.c (spu_va_start): Likewise.
8263 (spu_gimplify_va_arg_expr): Likewise.
8264 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
8266 (xstormy16_gimplify_va_arg_expr): Likewise.
8267 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
8268 (xtensa_gimplify_va_arg_expr): Likewise.
8270 2011-07-19 Richard Guenther <rguenther@suse.de>
8272 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
8273 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
8277 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
8278 result of BIT_*_EXPR to bitfield precision.
8280 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
8282 PR tree-optimization/49742
8283 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
8284 as a potential write.
8286 2011-07-19 Richard Guenther <rguenther@suse.de>
8288 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
8289 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
8290 (forward_propagate_comparison): Simplify, remove obsolete code.
8292 2011-07-19 Richard Guenther <rguenther@suse.de>
8294 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
8295 BIT_XOR_EXPR, same as the RTL expander does.
8296 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
8297 (verify_gimple_assign_unary): Likewise.
8298 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
8299 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
8300 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
8302 2011-07-19 Jakub Jelinek <jakub@redhat.com>
8304 PR tree-optimization/49768
8305 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
8306 if offset is smaller than bitoffset, but offset+size is bigger
8309 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
8311 PR tree-optimization/49771
8312 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
8313 zero step, set segment length to the size of the data-ref's type.
8315 2011-07-18 Martin Jambor <mjambor@suse.cz>
8317 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
8319 (ipcp_values_pool): Declare.
8320 (ipcp_sources_pool): Likewise.
8321 (ipcp_lattice): Changed to forward declaration.
8322 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
8323 cannot_devirtualize.
8324 (ipa_node_params): New fields descriptors, lattices, known_vals,
8325 clone_for_all_contexts and node dead, removed fields params and
8327 (ipa_set_param_count): Removed.
8328 (ipa_get_param_count): Made to work with descriptors vector.
8329 (ipa_get_param): Updated.
8330 (ipa_param_cannot_devirtualize_p): Removed.
8331 (ipa_param_types_vec_empty): Likewise.
8332 (ipa_set_param_used): New function.
8333 (ipa_get_param_used): Updated to use descriptors vector.
8334 (ipa_func_list): Removed.
8335 (ipa_init_func_list): Removed declaration.
8336 (ipa_push_func_to_list_1): Likewise.
8337 (ipa_pop_func_from_list): Likewise.
8338 (ipa_push_func_to_list): Removed.
8339 (ipa_lattice_from_jfunc): Remove declaration.
8340 (ipa_get_jf_pass_through_result): Declare.
8341 (ipa_get_jf_ancestor_result): Likewise.
8342 (ipa_value_from_jfunc): Likewise.
8343 (ipa_get_lattice): Update.
8344 (ipa_lat_is_single_const): New function.
8345 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
8346 (ipa_init_func_list): Likewise.
8347 (ipa_pop_func_from_list): Likewise.
8348 (ipa_get_param_decl_index): Fix coding style.
8349 (count_formal_params): Removed.
8350 (count_formal_params_1): Renamed to count_formal_params.
8351 (ipa_populate_param_decls): Update to use descriptors vector.
8352 (ipa_initialize_node_params): Likewise.
8353 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
8354 (ipa_analyze_params_uses): Likewise.
8355 (ipa_free_node_params_substructures): Likewise and free also lattices
8357 (duplicate_array): Removed.
8358 (ipa_edge_duplication_hook): Add the new edge to the list of edge
8360 (ipa_node_duplication_hook): Update to use new lattices.
8361 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
8362 (ipa_free_all_structures_after_iinln): Likewise.
8363 (ipa_write_node_info): Update to use new lattices.
8364 (ipa_read_node_info): Likewise.
8365 (ipa_get_jf_pass_through_result): New function.
8366 (ipa_get_jf_ancestor_result): Likewise.
8367 (ipa_value_from_jfunc): Likewise.
8368 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
8369 * ipa-cp.c: Reimplemented.
8370 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
8371 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
8372 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
8373 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
8374 * doc/invoke.texi (devirt-type-list-size): Removed description.
8375 (ipa-cp-value-list-size): Added description.
8377 2011-07-18 Richard Henderson <rth@redhat.com>
8379 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
8380 before calling create_basic_block.
8382 2011-07-18 Jakub Jelinek <jakub@redhat.com>
8385 * tree.c (build_common_builtin_nodes): Register
8386 __builtin_return_address, __cyg_profile_func_enter
8387 and __cyg_profile_func_exit.
8389 2011-07-18 Richard Henderson <rth@redhat.com>
8391 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
8392 (add_labels_and_missing_jumps): ... here.
8393 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
8395 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
8398 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
8399 of DImode hard registers in PLUS address chains.
8401 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8404 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
8405 (alpha*-*-freebsd*): Likewise.
8406 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
8407 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
8408 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
8409 crtprec80.o, crtfastmath.o to extra_parts for all targets.
8410 (ia64*-*-elf*): Remove extra_parts.
8411 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
8412 (sparc64-*-linux*): Likewise.
8413 (sparc64-*-freebsd*): Likewise.
8416 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
8417 (ia64*-*-linux*): Likewise.
8418 (mips64*-*-linux*): Likewise.
8419 (mips*-*-linux*): Likewise.
8421 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
8423 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
8425 2011-07-18 Richard Guenther <rguenther@suse.de>
8427 * gimplify.c (gimplify_expr): Use input_location, not saved_location
8428 when building new trees.
8430 2011-07-18 Richard Guenther <rguenther@suse.de>
8432 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
8433 expansion result to bitfield precision if required.
8435 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8437 * config.gcc (i[3456x]86-*-netware*): Remove.
8439 * gthr-nks.h: Remove.
8440 * configure.ac (enable_threads): Remove nks.
8441 * configure: Regenerate.
8443 * config/i386/i386.c (ix86_encode_section_info): Remove netware
8445 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
8446 <netware.h> reference.
8448 * config/i386/netware-libgcc.c,
8449 gcc/config/i386/netware-libgcc.def,
8450 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
8451 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
8452 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
8453 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
8455 * doc/extend.texi (Function Attributes,
8456 callee_pop_aggregate_return): Remove i?86-netware reference.
8457 * doc/install.texi (Configuration, --enable-threads): Remove nks.
8459 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8463 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8465 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
8468 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
8471 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
8473 2011-07-16 Matthias Klose <doko@ubuntu.com>
8475 * doc/install.texi: Document --enable-static-libjava.
8477 2011-07-15 Richard Henderson <rth@redhat.com>
8479 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
8480 Replace all three arguments by returning a VEC of edges.
8481 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
8482 pointers and counts.
8483 (fix_edges_for_rarely_executed_code): Merge ...
8484 (rest_of_handle_partition_blocks): ... into...
8485 (partition_hot_cold_basic_blocks): ... here. Return todo items if
8486 any work was performed.
8487 (pass_partition_blocks): Clear todo_flags_finish.
8489 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
8490 Jakub Jelinek <jakub@redhat.com>
8491 Jonathan Wakely <jwakely.gcc@gmail.com>
8494 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
8495 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
8497 2011-07-15 Jason Merrill <jason@redhat.com>
8500 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
8501 rather than --tool_opts.
8503 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
8505 * doc/plugins.texi (Building GCC plugins): gengtype needs its
8506 corresponding gtype.state.
8508 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8511 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
8513 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
8516 * doc/md.texi (Standard Names): Document window_save.
8517 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
8518 expand_debug_expr and expand_debug_source_expr. If the target has
8519 a window_save instruction, adjust the ENTRY_VALUE_EXP.
8520 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
8521 SSA_NAME_VAR is a parameter.
8522 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
8523 * var-tracking.c (parm_reg_t): New type and associated vector type.
8524 (windowed_parm_regs): New variable.
8525 (adjust_insn): If the target has a window_save instruction and this
8526 is the instruction, make its effect on parameter registers explicit.
8527 (next_non_note_insn_var_location): New function.
8528 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
8529 (vt_add_function_parameter): If the target has a window_save insn,
8530 adjust the incoming RTL and record that in windowed_parm_regs.
8531 (vt_finalize): Free windowed_parm_regs.
8533 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
8535 * doc/invoke.texi (C6X Options): New section.
8536 * doc/md.texi (TI C6X family): New section.
8537 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
8539 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
8540 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
8541 Provide C6X definitions.
8542 * config/c6x/c6x.md: New file.
8543 * config/c6x/constraints.md: New file.
8544 * config/c6x/predicates.md: New file.
8545 * config/c6x/c6x-sched.md.in: New file.
8546 * config/c6x/c6x-sched.md: New file.
8547 * config/c6x/gensched.sh: New file.
8548 * config/c6x/c6x-mult.md.in: New file.
8549 * config/c6x/genmult.sh: New file.
8550 * config/c6x/c6x-mult.md: New file.
8551 * config/c6x/sync.md: New file.
8552 * config/c6x/c6x-protos.h: New file.
8553 * config/c6x/sfp-machine.h: New file.
8554 * config/c6x/c6x.c: New file.
8555 * config/c6x/c6x.h: New file.
8556 * config/c6x/crti.s: New file.
8557 * config/c6x/crtn.s: New file.
8558 * config/c6x/lib1funcs.asm: New file.
8559 * config/c6x/c6x-modes.def: New file.
8560 * config/c6x/genopt.sh: New file.
8561 * config/c6x/c6x.opt: New file.
8562 * config/c6x/c6x-tables.opt: New file.
8563 * config/c6x/c6x-opts.h: New file.
8564 * config/c6x/c6x-isas.def: New file.
8565 * config/c6x/elf.h: New file.
8566 * config/c6x/elf-common.h: New file.
8567 * config/c6x/uclinux-elf.h: New file.
8568 * config/c6x/t-c6x: New file.
8569 * config/c6x/t-c6x-elf: New file.
8570 * config/c6x/t-c6x-uclinux: New file.
8571 * config/c6x/t-c6x-softfp: New file.
8572 * config/c6x/gtd.c: New file.
8573 * config/c6x/gtf.c: New file.
8574 * config/c6x/ltd.c: New file.
8575 * config/c6x/ltf.c: New file.
8576 * config/c6x/ged.c: New file.
8577 * config/c6x/gef.c: New file.
8578 * config/c6x/led.c: New file.
8579 * config/c6x/lef.c: New file.
8580 * config/c6x/eqd.c: New file.
8581 * config/c6x/eqf.c: New file.
8582 * config/c6x/libgcc-c6xeabi.ver: New file.
8585 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
8586 PR rtl-optimization/11320
8587 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
8588 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
8589 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
8590 current_sched_info->compute_jump_reg_dependencies. Record which
8591 registers are used and which registers are set by the jump.
8592 Clear deps->reg_conditional_sets after a barrier.
8593 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
8594 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
8595 (init_deps): Initialize reg_conditional_sets.
8596 (free_deps): Clear reg_conditional_sets.
8597 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
8598 Mark registers live on entry of the fallthrough block and conditionally
8599 set as set by the jump. Mark registers live on entry of non-fallthrough
8600 blocks as used by the jump.
8601 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
8602 Mark new parameters as unused.
8604 2011-07-14 Andrew Pinski <pinskia@gmail.com>
8607 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
8608 Use fold_build2_loc instead of build2.
8609 Use the correct type for the new tree.
8611 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
8613 PR rtl-optimization/11320
8614 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
8615 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
8617 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
8620 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
8622 (*rotw<mode>): Use const_int_operand for operand2.
8623 Use match_scatch for operand3.
8624 (*rotb<mode>): Ditto
8625 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
8627 2011-07-14 Richard Guenther <rguenther@suse.de>
8629 PR tree-optimization/49651
8630 * tree-ssa-structalias.c (get_constraint_for_1): Properly
8631 handle dereferences with subvariables.
8633 2011-07-14 Richard Guenther <rguenther@suse.de>
8635 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
8636 (fold_stmt_1): Do it here directly on gimple and as a first thing.
8638 2011-07-14 Richard Guenther <rguenther@suse.de>
8640 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
8641 not bool_var when folding bool_var != 1 or bool_var == 0.
8643 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
8645 * haifa-sched.c (schedule_insns): Remove outdated comment.
8646 (schedule_block): When computing a known value for TODO_SPEC,
8647 just set it rather than using logical operations.
8648 (try_ready): Likewise. Use a local variable rather than a
8649 pointer to TODO_SPEC. Reorder an if statement to move the
8650 easy case to the then block.
8651 * sched-deps.c (dep_spec_p): New static function.
8652 (update_dep): Use it to decide whether to call
8653 change_spec_dep_to_hard.
8654 (get_back_and_forw_lists): Use it.
8655 (sd_resolve_dep): Likewise.
8656 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
8657 (haifa_note_mem_dep): Likewise.
8658 (check_dep): Likewise.
8659 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
8660 (sched_free_deps): Free in two passes.
8662 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
8665 * expr.c (all_zeros_p): Undo bogus part of last change.
8667 2011-07-14 Matthias Klose <doko@ubuntu.com>
8669 * doc/extend.texi (optimize attribute): Fix typo.
8671 2011-07-14 Richard Guenther <rguenther@suse.de>
8673 * gimplify.c (gimplify_expr): Only do required conversions.
8675 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
8678 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
8679 i.e. use default_elf_select_section.
8680 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
8681 (READONLY_DATA_SECTION_ASM_OP): Remove.
8682 (TARGET_ASM_NAMED_SECTION): Move from here...
8683 * config/avr/avr.c: ...to here.
8684 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
8685 (avr_asm_named_section): Make static.
8687 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8690 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
8691 and crtfastmath.o for Linux/x86.
8693 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
8695 * haifa-sched.c: Include "hashtab.h"
8696 (sched_no_dce): New global variable.
8697 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
8698 SHADOW_P): New macros.
8699 (last_clock_var, cycle_issued_insns): Move declarations.
8700 (must_backtrack): New static variable.
8701 (struct delay_pair): New structure.
8702 (delay_htab, delay_htab_i2): New static variables.
8703 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
8704 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
8706 (dep_cost_1): If delay pairs exist, try to look up the insns and
8707 use the correct pair delay if we find them.
8708 (rank-for_schedule): Tweak priority for insns that must be scheduled
8709 soon to avoid backtracking.
8710 (queue_insn): Detect conditions which force backtracking.
8711 (ready_add): Likewise.
8712 (struct sched_block_state): Add member shadows_only_p.
8713 (struct haifa_save_data): New structure.
8714 (backtrack_queue): New static variable.
8715 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
8716 unschedule_insns_until, restore_last_backtrack_point,
8717 free_topmost_backtrack_point, free_backtrack_queue,
8718 estimate_insn_tick, estimate_shadow_tick): New functions.
8719 (prune_ready_list): New arg shadows_only_p. All callers changed.
8720 If true, remove everything that isn't SHADOW_P. Look up delay
8721 pairs and estimate ticks to avoid scheduling the first insn too early.
8722 (verify_shadows): New function.
8723 (schedule_block): Add machinery to enable backtracking.
8724 (sched_init): Take sched_no_dce into account when setting
8726 (free_delay_pairs): New function.
8727 (init_h_i_d): Initialize INSN_EXACT_TICK.
8728 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
8729 * sched-deps.c (sd_unresolve_dep): New function.
8730 * sched-int. (struct haifa_sched_info): New fields save_state
8732 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
8733 feeds_backtrack_insn and shadow_p.
8734 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
8735 (sched_no_dce): Declare variable.
8736 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
8737 sd_unresolve_dep): Declare functions.
8738 * modulo-sched.c (sms_sched_info): Clear the two new fields.
8739 * sched-rgn.c (rgn_const_sched_info): Likewise.
8740 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8741 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
8742 (ebb_sched_info): Add them for the two new fields.
8743 (add_deps_for_risky_insns): Call add_delay_dependencies.
8745 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
8747 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
8749 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
8750 (rs6000_call_indirect_aix): Ditto.
8751 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
8752 (call_indirect_aix<ptrsize>_internal): Ditto.
8753 (call_indirect_aix<ptrsize>_nor11): Ditto.
8754 (call_indirect_aix<ptrsize>_internal2): Ditto.
8755 (call_value_indirect_aix<ptrsize>): Ditto.
8756 (call_value_indirect_aix<ptrsize>_internal): Ditto.
8757 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
8758 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
8759 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
8761 2011-07-13 Jason Merrill <jason@redhat.com>
8763 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
8765 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8767 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
8768 * config/spu/spu.md ("clrsb<mode>2"): New expander.
8770 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
8772 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
8773 * configure: Regenerate.
8775 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8777 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
8778 (asm_file_start): Remove.
8779 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
8780 free_bb_for_insn around code that modifies insns before
8781 restarting df analysis.
8783 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8786 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
8787 (LINK_SPEC): ... here.
8789 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
8791 * haifa-sched.c (struct sched_block_state): New.
8792 (schedule_block): Move some local variables into such a structure.
8794 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8796 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
8797 * config/i386/t-crtpc: Remove.
8798 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
8799 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
8801 (x86_64-*-darwin*): Likewise.
8802 (i[34567]86-*-linux*): Likewise.
8803 (x86_64-*-linux*): Likewise.
8805 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
8806 Handle -mpc32, -mpc64, -mpc80.
8808 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8810 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
8811 * config/alpha/t-crtfm: Remove.
8812 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
8813 * config/i386/t-crtfm: Remove.
8814 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
8815 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
8816 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
8817 * config/sparc/t-crtfm: Remove.
8819 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
8820 (alpha*-*-freebsd*): Likewise.
8821 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
8822 (x86_64-*-darwin*): Likewise.
8823 (i[34567]86-*-linux*): Likewise.
8824 (x86_64-*-linux*): Likewise.
8825 (x86_64-*-mingw*): Likewise.
8826 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
8827 (ia64*-*-freebsd*): Likewise.
8828 (ia64*-*-linux*): Likewise.
8829 (mips64*-*-linux*): Likewise.
8830 (mips*-*-linux*): Likewise.
8831 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
8832 (sparc64-*-linux*): Likewise.
8833 (sparc64-*-freebsd*): Likewise.
8835 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8837 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
8838 * config/darwin-crt3.c: Move to ../libgcc/config.
8839 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
8840 ($(T)crt3$(objext)): Remove.
8841 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
8842 ($(T)crt2$(objext)): Remove.
8843 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
8844 (powerpc64-*-darwin*): Likewise.
8846 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
8848 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
8850 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
8851 (addsi_1_zext): This.
8853 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
8855 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
8856 * doc/tm.texi: Regenerate.
8857 * target.def (mergeable_rodata_prefix): New defhookpod.
8858 * varasm.c (mergeable_string_section, mergeable_constant_section):
8859 Use it. Allocate name with alloca.
8861 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
8863 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
8865 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
8867 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
8870 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
8872 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
8873 (count_type_elements): Delete.
8874 (complete_ctor_at_level_p): Declare.
8875 * expr.c (flexible_array_member_p): New function, split out from...
8876 (count_type_elements): ...here. Make static. Replace allow_flexarr
8877 parameter with for_ctor_p. When for_ctor_p is true, return the
8878 number of elements that should appear in the top-level constructor,
8879 otherwise return an estimate of the number of scalars.
8880 (categorize_ctor_elements): Replace p_must_clear with p_complete.
8881 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
8882 (complete_ctor_at_level_p): New function, borrowing union logic
8883 from old categorize_ctor_elements_1.
8884 (mostly_zeros_p): Return true if the constructor is not complete.
8885 (all_zeros_p): Update call to categorize_ctor_elements.
8886 * gimplify.c (gimplify_init_constructor): Update call to
8887 categorize_ctor_elements. Don't call count_type_elements.
8888 Unconditionally prevent clearing for variable-sized types,
8889 otherwise rely on categorize_ctor_elements to detect
8890 incomplete initializers.
8892 2011-07-13 Richard Guenther <rguenther@suse.de>
8894 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
8895 the final type is integral.
8897 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
8899 * sched-int.h (struct _dep): Add member cost.
8900 (DEP_COST, UNKNOWN_DEP_COST): New macros.
8901 * sched-deps.c (init_dep_1): Initialize DEP_COST.
8902 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
8903 (sched_change_pattern): Reset it for dependent insns.
8905 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8907 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
8908 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
8909 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
8910 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
8911 (CRT0_S, MCRT0_S): Remove.
8912 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
8915 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
8917 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
8919 * cse.c (insert_with_costs): Put semi-colon after empty loop body
8921 * emit-rtl.c (push_to_sequence): Likewise.
8922 * haifa-sched.c (max_issue): Likewise.
8923 * matrix-reorg.c (add_allocation_site): Likewise.
8924 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
8925 * reload.c (alternative_allows_const_pool_ref): Likewise.
8926 * sched-rgn.c (rgn_add_block): Likewise.
8927 (rgn_fix_recovery_cfg): Likewise.
8928 * tree.c (attribute_list_contained): Likewise.
8930 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
8932 * config/i386/i386.c: Tidy processor feature bitmasks.
8935 2011-07-12 Andrew Pinski <pinskia@gmail.com>
8938 * cprop.c (find_implicit_sets): Correct the condition.
8940 2011-07-12 Richard Henderson <rth@redhat.com>
8943 * dwarf2out.h (dwarf_frame_regnum): Remove.
8944 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
8945 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
8946 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
8947 (execute_dwarf2_frame): Initialize them.
8948 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
8949 users of the macros with the variables.
8950 (expand_builtin_dwarf_sp_column): Revert last change.
8951 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
8952 result of DWARF_FRAME_REGNUM into a local variable.
8954 2011-07-12 Richard Henderson <rth@redhat.com>
8957 * config/i386/i386.c (x86_output_mi_thunk): Use
8958 machopic_indirect_call_target instead of machopic_indirection_name
8961 2011-07-12 Laurent GUERBY <laurent@guerby.net>
8962 Eric Botcazou <ebotcazou@adacore.com>
8964 * prefix.h: Wrap up in extern "C" block.
8966 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
8968 AMD bdver2 Enablement
8969 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
8970 (case ${target}): Add bdver2.
8971 * config/i386/driver-i386.c (host_detect_local_cpu): Let
8972 -march=native recognize bdver2 processors.
8973 * config/i386/i386-c.c (ix86_target_macros_internal): Add
8974 bdver2 def_and_undef
8975 * config/i386/i386.c (struct processor_costs bdver2_cost): New
8977 (m_BDVER2): New definition.
8978 (m_AMD_MULTIPLE): Includes m_BDVER2.
8979 (initial_ix86_tune_features): Add bdver2 tuning.
8980 (processor_target_table): Add bdver2 entry.
8981 (static const char *const cpu_names): Add bdver2 entry.
8982 (ix86_option_override_internal): Add bdver2 instruction sets.
8983 (ix86_issue_rate): Add bdver2.
8984 (ix86_adjust_cost): Add bdver2.
8985 (has_dispatch): Add bdver2.
8986 * config/i386/i386.h (TARGET_BDVER2): New definition.
8987 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
8988 (enum processor_type): Add PROCESSOR_BDVER2.
8989 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
8990 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
8993 2011-07-12 Richard Henderson <rth@redhat.com>
8996 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
8997 destination address in memory on some paths.
8999 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
9001 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
9002 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
9003 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
9004 * function.c (locate_and_pad_parm): Take it into account.
9005 * target.def (function_arg_round_boundary): New hook.
9006 * targhooks.c (default_function_arg_round_boundary): New function.
9007 * targhooks.h (default_function_arg_round_boundary): Declare.
9008 * doc/tm.texi: Regenerate.
9010 2011-07-12 Richard Guenther <rguenther@suse.de>
9012 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
9013 Do not perform no-op changes.
9015 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
9017 * config/arm/predicates.md (neon_struct_operand): Make a normal
9019 (neon_struct_or_register_operand): New predicate.
9020 * config/arm/neon.md (movmisalign<mode>): Replace predicates
9021 with neon_struct_or_register_operand.
9022 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
9023 neon_struct_operand instead of memory_operand.
9025 2011-07-12 Martin Jambor <mjambor@suse.cz>
9027 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
9028 * cgraph.c (cgraph_get_node_or_alias): Removed.
9029 (change_decl_assembler_name): Changed all calls to
9030 cgraph_get_node_or_alias to a call to cgraph_get_node.
9031 (cgraph_make_decl_local): Likewise.
9032 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
9033 * varasm.c (default_binds_local_p_1): Likewise.
9034 (decl_binds_to_current_def_p): Likewise.
9036 2011-07-12 Jakub Jelinek <jakub@redhat.com>
9038 PR tree-optimization/49712
9039 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
9041 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
9043 * genautomata.c (add_arc): Return void. All callers changed.
9044 (make_automaton): Remove dead code.
9046 2011-07-11 Richard Henderson <rth@redhat.com>
9048 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
9049 (DW_FRAME_POINTER_REGNUM): New.
9050 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
9051 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
9053 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
9054 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
9055 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
9057 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
9058 * dwarf2out.h (dwarf_frame_regnum): New.
9059 (struct cfa_loc): Document the domain of the reg member.
9061 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
9063 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
9064 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
9066 2011-07-11 Jakub Jelinek <jakub@redhat.com>
9069 * dwarf2out.c (int_shift_loc_descriptor): New function.
9070 (int_loc_descriptor): If shorter, emit i as
9071 (i >> shift), shift, DW_OP_shl for suitable shift value.
9072 Similarly, try to optimize large negative values using
9073 DW_OP_neg of a positive value if shorter.
9074 (size_of_int_shift_loc_descriptor): New function.
9075 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
9077 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
9078 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
9079 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
9081 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
9082 addend as added DW_OP_plus if it is shorter.
9084 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9086 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
9087 (DTORS_SECTION_ASM_OP): Define.
9089 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9091 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
9092 * config/t-dfprules: Move to ../libgcc/config.
9093 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
9094 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
9095 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
9096 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
9098 (i[34567]86-*-cygwin*): Likewise.
9099 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
9100 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
9101 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
9102 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
9103 D64PBIT_FUNCS, D128PBIT_FUNCS.
9105 2011-07-11 Richard Guenther <rguenther@suse.de>
9107 * tree-vrp.c (simplify_conversion_using_ranges): Manually
9108 translate the source value-range through the conversion chain.
9110 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
9112 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
9114 2011-07-11 Arthur Loiret <aloiret@debian.org>
9116 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
9117 a bi-arch compiler defaulting to 31-bit. In this case:
9118 (tmake_file): Add s390/t-linux64.
9119 * doc/install.texi: Add s390-linux to the list of targets supporting
9120 --enable-targets=all.
9122 2011-07-11 Arthur Loiret <aloiret@debian.org>
9123 Matthias Klose <doko@debian.org>
9125 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
9126 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
9127 (tm_file): Add mips/linux64.h.
9128 (tmake_file): Add mips/t-linux64.
9129 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
9130 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
9131 instead of hardcoded mabi=n32.
9132 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
9133 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
9136 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9138 * passes.c (init_optimization_passes): Add invariant motion pass
9139 after induction variable optimization.
9141 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
9144 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
9145 offsets 1..5 set cc0 in a usable way.
9147 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
9149 * tree.h (call_expr_arg): Remove.
9150 (call_expr_argp): Likewise.
9152 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
9154 * config/sparc/sparc.md (save_register_window_1): Rename to...
9155 (window_save): ...this.
9156 * config/sparc/sparc.c (emit_save_register_window): Rename to...
9157 (emit_window_save): ...this.
9158 (sparc_expand_prologue): Adjust to above renaming.
9160 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
9162 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
9165 2011-07-10 Richard Henderson <rth@redhat.com>
9167 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
9168 run final, instead of emitting text directly.
9170 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
9172 * config/i386/i386.c (ix86_option_override_internal): Turn on
9173 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
9174 small PIC models for TARGET_X32.
9176 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
9179 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
9183 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
9184 stray notes and debug insns by using prev_nonnote_nondebug_insn
9185 instead of PREV_INSN.
9187 2011-07-09 Richard Henderson <rth@redhat.com>
9189 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
9190 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
9191 * dwarf2out.c: ... here.
9192 (output_all_cfis): Remove.
9193 (dwarf2out_switch_text_section): Use output_cfis directly.
9194 (size_of_locs): Export.
9195 (output_loc_sequence, output_loc_sequence_raw): Export.
9196 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
9197 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
9198 output_cfa_loc_raw): Move to ...
9199 * dwarfcfi.c: ... here.
9200 * dwarf2out.h: Update decls.
9202 2011-07-09 Richard Henderson <rth@redhat.com>
9204 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
9205 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
9206 * dwarf2cfi.c: ... here.
9207 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
9208 (DWARF_ROUND, DWARF_CIE_ID): Remove.
9209 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
9210 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
9211 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
9213 2011-07-09 Richard Henderson <rth@redhat.com>
9215 * dwarf2cfi.c (cie_return_save): New.
9216 (queue_reg_save): Use compare_reg_or_pc.
9217 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
9218 (dwarf2out_frame_debug_expr): Likewise.
9219 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
9220 (initial_return_save): Likewise.
9221 (execute_dwarf2_frame): Save and restore initial return save from
9223 * config/mips/mips.c (mips_frame_set): Remove special case for
9224 DWARF_FRAME_RETURN_COLUMN.
9226 2011-07-09 Richard Henderson <rth@redhat.com>
9228 * dwarf2cfi.c (lookup_cfa): Remove.
9229 (execute_dwarf2_frame): Assert queues are empty on entry.
9230 Setup initial cfa directly, not via lookup_cfa.
9231 Don't clear args_size state here.
9233 2011-07-09 Richard Henderson <rth@redhat.com>
9235 * dwarf2cfi.c (add_cfi_vec): New.
9236 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
9237 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
9238 (execute_dwarf2_frame): Set add_cfi_vec.
9240 2011-07-09 Richard Henderson <rth@redhat.com>
9242 * defaults.h (ASM_COMMENT_START): Move here...
9243 * dwarf2asm.c: ... from here.
9244 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
9245 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
9246 * varasm.c: Likewise.
9248 2011-07-09 Richard Henderson <rth@redhat.com>
9251 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
9252 (create_cfi_notes): ... do it here instead.
9254 2011-07-09 Jakub Jelinek <jakub@redhat.com>
9257 * dwarf2out.c (size_of_int_loc_descriptor): New function.
9258 (address_of_int_loc_descriptor): Use it.
9259 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
9261 2011-07-09 Richard Henderson <rth@redhat.com>
9263 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
9264 (prologue, epilogue): New.
9265 (return, *rts): New.
9266 (blockage, setd, seti): New.
9267 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
9268 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
9269 (pdp11_saved_regno): New.
9270 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
9271 generate rtl instead of text.
9272 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
9273 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
9274 * config/pdp11/pdp11-protos.h: Update.
9276 2011-07-09 Richard Henderson <rth@redhat.com>
9278 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
9279 try to insert an rtl prologue here.
9280 (rs6000_output_function_epilogue): Similarly.
9281 * config/rs6000/rs6000.md (prologue): Emit a barrier to
9282 satisfy !TARGET_SCHED_PROLOG.
9283 (epilogue, sibcall_epilogue): Likewise.
9285 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
9287 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
9289 (IN_OR_GLOBAL_P): Likewise.
9291 2011-07-08 Jason Merrill <jason@redhat.com>
9294 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
9295 compound assignment.
9297 * cgraph.c (cgraph_add_to_same_comdat_group): New.
9298 * cgraph.h: Declare it.
9299 * ipa.c (function_and_variable_visibility): Make sure thunks
9300 have the right visibility.
9302 2011-07-08 Richard Henderson <rth@redhat.com>
9305 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
9306 any tablejump vector.
9309 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
9310 end of the prologue.
9312 2011-07-08 Jakub Jelinek <jakub@redhat.com>
9315 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
9316 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
9317 * config/rs6000/vector.md (vector_select_<mode>,
9318 vector_select_<mode>_uns): Change second operand of NE to
9319 CONST0_RTX (<MODE>mode) instead of const0_rtx.
9320 * config/rs6000/altivec.md (*altivec_vsel<mode>,
9321 *altivec_vsel<mode>_uns): Expect second operand of NE to be
9322 zero_constant of the corresponding vector mode.
9323 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
9326 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
9328 * graphite-dependences.c (build_alias_set_powerset): Remove
9329 continue from loop, add one more assert.
9331 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
9334 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
9335 In particular, allow 8-bit values in r28 and r29.
9336 (avr_hard_regno_scratch_ok): Disallow any register that might be
9337 part of the frame pointer.
9338 (avr_hard_regno_rename_ok): Same.
9339 (avr_legitimate_address_p): Don't allow SUBREGs.
9341 2011-07-08 Julian Brown <julian@codesourcery.com>
9343 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
9345 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
9346 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
9347 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
9348 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
9349 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
9350 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
9351 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
9352 registers in big-endian mode.
9354 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
9356 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
9357 in terms of another.
9358 (write_attr_value): Write a cast if necessary.
9360 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
9361 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
9362 (REG_WORDS_BIG_ENDIAN): Document.
9363 * doc/tm.texi: Regenerate.
9364 * reload.c (operands_match_p): Take it into account.
9365 (reload_adjust_reg_for_mode): Likewise.
9366 * rtlanal.c (subreg_get_info): Likewise.
9368 2011-07-08 Richard Guenther <rguenther@suse.de>
9370 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
9373 2011-07-08 Kai Tietz <ktietz@redhat.com>
9375 * fold-const.c (fold_truth_andor): Factored out truth_andor
9376 label from fold_binary as function.
9377 (fold_binary_loc): Replace truth_andor lable
9378 by function fold_truth_andor.
9380 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
9383 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
9384 check if address is stored in register. If so - give up.
9385 (check_sibcall_argument_overlap_1): Do not perform check of
9386 overlapping when it is call to address.
9388 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
9390 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
9393 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
9395 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
9396 GET_MODE_BITSIZE where appropriate.
9397 (widen_leading, expand_parity, expand_ctz, expand_ffs,
9398 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
9399 expand_float, expand_fix): Likewise.
9400 * expr.c (convert_move, convert_modes, expand_expr_real_2,
9401 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
9402 * stor-layout.c (get_mode_bounds): Likewise.
9403 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
9405 * convert.c (convert_to_integer): Likewise.
9406 * expmed.c (expand_shift_1): Likewise.
9408 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
9411 * optabs.c (expand_binop): Tighten conditions for doubleword
9413 (widen_bswap): Assert that mode bitsize and precision are the same.
9414 * stor-layout.c (get_best_mode): Skip modes that have lower
9415 precision than bitsize.
9416 * recog.c (simplify_while_replacing): Assert that bitsize and
9417 precision are the same.
9419 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9421 * Makefile.in (LIBGCOV): Remove.
9422 (libgcc.mvars): Remove LIBGCOV.
9423 * libgov.c: Move to ../libgcc.
9425 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9427 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
9429 2011-07-08 Martin Jambor <mjambor@suse.cz>
9431 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
9432 is too big for total scalarization.
9434 2011-07-07 Richard Henderson <rth@redhat.com>
9436 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
9437 (DBX_DEBUGGING_INFO): Undef.
9439 2011-07-07 Richard Henderson <rth@redhat.com>
9441 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
9442 Handle some opcodes specially for debugging.
9443 * print-rtl.c: Include dwarf2out.h
9444 (print_rtx): Handle NOTE_INSN_CFI.
9445 * Makefile.in (print-rtl.o): Update.
9447 2011-07-07 Richard Henderson <rth@redhat.com>
9449 * tree-pass.h (pass_dwarf2_frame): Declare.
9450 * passes.c (init_optimization_passes): Add it.
9451 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
9452 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
9453 make static, do not call add_cfis_to_fde.
9454 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
9455 dwarf2out_frame_init): Merge into...
9456 (execute_dwarf2_frame): ... here. New function.
9457 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
9458 saved_do_cfi_asm to a tri-state variable.
9459 (gate_dwarf2_frame, pass_dwarf2_frame): New.
9460 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
9461 if it has yet to be done. Don't call dwarf2cfi_function_init.
9462 * dwarf2out.h, debug.h: Update decls.
9463 * final.c (final_start_function): Don't call
9464 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
9465 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
9466 * toplev.c (lang_dependent_init): Likewise.
9468 2011-07-07 Richard Henderson <rth@redhat.com>
9470 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
9471 FDE_TABLE_INCREMENT): Replace with...
9472 (fde_vec): ... this, a new vector.
9473 (current_fde): Remove. Replace all users with cfun->fde.
9474 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
9475 (size_of_aranges, dwarf2out_finish): Likewise.
9476 (dwarf2out_alloc_current_fde): Break out from ...
9477 (dwarf2out_begin_prologue): ... here.
9478 (dwarf2out_frame_init): Remove.
9479 * dwarf2cfi.c: Update all users of current_fde.
9480 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
9481 * dwarf2out.h: Update decls.
9482 (dw_fde_node): Add fde_index member.
9483 * function.h (struct function): Add fde member.
9485 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9486 Richard Henderson <rth@redhat.com>
9488 * dwarf2cfi.c (add_cfi): Remove.
9489 (dwarf2out_cfi_label): Remove force argument. Only generate the
9491 (add_fde_cfi): Simplify the different code paths.
9493 (old_cfa, old_cfa_remember): New.
9494 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
9495 (last_reg_save_label): Remove.
9496 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
9497 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
9498 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
9499 dwarf2out_frame_debug_cfa_expression,
9500 dwarf2out_frame_debug_cfa_restore,
9501 dwarf2out_frame_debug_cfa_window_save,
9502 dwarf2out_frame_debug_expr): Remove label parameter.
9503 (cfi_label_required_p, add_cfis_to_fde): New.
9504 (dwarf2out_frame_debug_after_prologue): New.
9505 (dwarf2cfi_frame_init): Initialize old_cfa.
9506 (dwarf2out_frame_debug_restore_state): Likewise.
9507 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
9508 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
9509 * final.c (final_start_function): Call
9510 dwarf2out_frame_debug_after_prologue.
9512 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9513 Richard Henderson <rth@redhat.com>
9515 * dwarf2cfi.c (cfi_insn): New.
9516 (dwarf2out_cfi_label): Don't emit cfi label here.
9517 (add_fde_cfi): Create a NOTE_INSN_CFI.
9518 (dwarf2out_frame_debug): Setup cfi_insn.
9519 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
9520 (dwarf2out_cfi_begin_epilogue): Make static.
9521 (dwarf2out_frame_debug_restore_state): Make static.
9522 * dwarf2out.c (output_cfi_directive): Make static.
9523 (dwarf2out_emit_cfi): New.
9524 * dwarf2out.h: Update.
9525 * final.c (final): Remove CFI notes.
9526 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
9527 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
9528 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
9529 * insn-notes.def (NOTE_INSN_CFI): New.
9530 (NOTE_INSN_CFI_LABEL): New.
9531 * rtl.h (union rtunion_def): Add rt_cfi member.
9532 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
9534 2011-07-07 Richard Henderson <rth@redhat.com>
9536 * dwarf2cfi.c: New file.
9537 * Makefile.in (OBJS): Add it.
9538 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
9539 * gengtype.c (open_base_files): Include dwarf2out.h.
9540 * coretypes.h (enum var_init_status): Move from ...
9542 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
9543 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
9544 expand_builtin_dwarf_sp_column, init_return_column_size,
9545 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
9546 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
9547 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
9548 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
9549 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
9550 compute_barrier_args_size, dwarf2out_args_size,
9551 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
9552 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
9553 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
9554 queue_reg_save, dwarf2out_flush_queued_reg_saves,
9555 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
9556 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
9557 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
9558 dwarf2out_frame_debug_cfa_expression,
9559 dwarf2out_frame_debug_cfa_restore,
9560 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
9561 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
9562 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
9563 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
9564 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
9565 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
9566 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
9567 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
9568 dw_loc_descr_node): Move to dwarf2out.h.
9569 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
9570 mem_loc_descriptor): Export.
9571 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
9572 (dwarf2out_frame_init): Extract CIE generation code to
9573 dwarf2cfi_frame_init.
9575 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
9578 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
9579 MASK_V8PLUS, remove commented out flag and reorder.
9581 2011-07-07 Jakub Jelinek <jakub@redhat.com>
9584 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
9585 one non-complex and one complex argument, call c_save_expr on both
9588 2011-07-07 Martin Jambor <mjambor@suse.cz>
9591 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
9592 (verify_cgraph_node): Some functinality moved to
9593 verify_edge_corresponds_to_fndecl, call it.
9595 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9597 * config.gcc (*local*): Remove.
9598 * doc/install-old.texi: Don't mention local configurations.
9600 2011-07-07 Jakub Jelinek <jakub@redhat.com>
9603 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
9604 referencing debug insns that have been reset.
9605 (dead_debug_insert_before): Don't assert reg is non-NULL,
9606 instead return immediately if it is NULL.
9608 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9610 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
9612 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9614 * hw-doloop.c: New file.
9615 * hw-doloop.h: New file.
9616 * Makefile.in (OBJS): Add hw-doloop.o.
9617 (hw-doloop.o): New rule.
9618 ($(obj_out_file)): Add hw-doloop.h dependency.
9619 * config/bfin/bfin.c: Include "hw-doloop.h".
9620 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
9621 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
9622 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
9623 type changed to hwloop_info. Return bool, true if the loop was
9624 successfully optimized. Remove code that was moved to
9625 hw-doloop.c, and adjust other parts.
9626 (hwloop_fail): New static function, containing parts that used
9627 to be in bfin_optimize_loop.
9628 (bfin_discover_loop, bfin_discover_loops, free_loops,
9629 bfin_reorder_loops): Remove.
9630 (hwloop_pattern_reg): New static function.
9631 (bfin_doloop_hooks): New variable.
9632 (bfin_reorg_loops): Remove most code, call reorg_loops.
9633 * config/bfin/bfin.md (doloop_end splitter): Also enable if
9634 loop counter is a memory_operand.
9636 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
9638 * config.gcc: Support --with-multilib-list for x86 Linux targets.
9640 * configure.ac: Mention x86-64 for --with-multilib-list.
9641 * configure: Regenerated.
9643 * config/i386/gnu-user64.h (SPEC_64): Support x32.
9644 (SPEC_32): Likewise.
9645 (ASM_SPEC): Likewise.
9646 (LINK_SPEC): Likewise.
9647 (TARGET_THREAD_SSP_OFFSET): Likewise.
9648 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
9651 * config/i386/i386.h (TARGET_X32): New.
9653 (LONG_TYPE_SIZE): Likewise.
9654 (POINTER_SIZE): Likewise.
9655 (POINTERS_EXTEND_UNSIGNED): Likewise.
9656 (OPT_ARCH64): Support x32.
9657 (OPT_ARCH32): Likewise.
9659 * config/i386/i386.opt (mx32): New.
9661 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
9662 (GLIBC_DYNAMIC_LINKERX32): Likewise.
9663 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
9664 (GLIBC_DYNAMIC_LINKERX32): Likewise.
9666 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
9667 (BIONIC_DYNAMIC_LINKERX32): Likewise.
9668 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
9670 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
9672 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
9674 * doc/invoke.texi: Document -mx32.
9676 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
9678 * doc/invoke.texi (mwords-little-endian): Deprecate.
9679 * config/arm/arm.opt (mwords-little-endian): Likewise.
9680 * config/arm/arm.c (arm_option_override): Warn about the deprecation
9681 of -mwords-little-endian.
9683 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
9685 * reload1.c (choose_reload_regs): Use mode sizes to check whether
9686 an old reload register completely defines the required value.
9688 2011-07-07 Richard Guenther <rguenther@suse.de>
9690 * fold-const.c (fold_unary_loc): Do not strip sign-changes
9693 2011-07-07 Richard Guenther <rguenther@suse.de>
9695 * tree-vrp.c (simplify_conversion_using_ranges): New function.
9696 (simplify_stmt_using_ranges): Call it.
9698 2011-07-07 Kai Tietz <ktietz@redhat.com>
9700 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
9701 (lookup_logical_inverted_value): Likewise.
9702 (simplify_bitwise_binary_1): Likewise.
9703 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
9705 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9707 * gcc.c (%[Spec]): Don't document.
9708 (struct spec_list): Update comment.
9709 (do_spec_1): Don't handle %[Spec].
9710 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
9712 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9714 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
9715 default based on TARGET_ASM_NAMED_SECTION.
9716 * common/common-target.def (have_named_sections): Default to true.
9717 * common/config/default-common.c: Don't include tm.h.
9718 * common/config/picochip/picochip-common.c
9719 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
9720 * common/config/m32c/m32c-common.c: Remove.
9721 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
9722 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9723 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9724 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9725 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9726 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9727 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9729 2011-07-07 Jakub Jelinek <jakub@redhat.com>
9732 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
9733 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
9735 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9738 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
9740 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9743 * configure.ac (gcc_cv_as_hidden): Also accept
9744 x86_64-*-solaris2.1[0-9]*.
9745 (gcc_cv_as_cfi_directive): Likewise.
9746 (gcc_cv_as_comdat_group_group): Likewise.
9747 (set_have_as_tls): Likewise.
9748 * configure: Regenerate.
9749 * config.gcc (i[34567]86-*-solaris2*): Also handle
9750 x86_64-*-solaris2.1[0-9]*.
9751 * config.host (i[34567]86-*-solaris2*): Likewise.
9752 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
9753 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
9754 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
9755 (TARGET_LD_EMULATION): Use it.
9756 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
9757 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
9758 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
9759 (ASM_CPU64_DEFAULT_SPEC): Define.
9760 (ASM_CPU_SPEC): Use %(asm_cpu_default).
9761 (ASM_SPEC): Redefine.
9762 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
9763 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
9764 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
9765 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
9767 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
9769 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9771 * config/sol2.h (ASM_SPEC): Split into ...
9772 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
9773 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
9774 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
9775 (ASM_SPEC): Use ASM_SPEC_BASE.
9776 * config/sparc/sol2.h (ASM_SPEC): Redefine.
9778 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
9780 * config/avr/avr.md (*reload_insi): Change predicate #1 to
9781 const_int_operand. Ditto for peep2 producing this insn.
9782 Add argument to output_reload_insisf call.
9783 (*movsi,*movsf): Add argument to output_movsisf call.
9784 (*reload_insf): New insn and new peep2 to produce it.
9785 * config/avr/avr-protos.h (output_movsisf): Change prototype.
9786 (output_reload_insisf): Change prototype.
9787 * config/avr/avr.c (avr_asm_len): New function.
9788 (output_reload_insisf): Rewrite.
9789 (output_movsisf): Change prototype. output_reload_insisf for
9790 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
9791 (adjust_insn_length): Add argument to output_movsisf and
9792 output_reload_insisf call.
9794 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9796 * emit-rtl.c (paradoxical_subreg_p): New function.
9797 * rtl.h (paradoxical_subreg_p): Declare.
9798 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
9799 apply_distributive_law, simplify_comparison, simplify_set): Use it.
9800 * cse.c (record_jump_cond, cse_insn): Likewise.
9801 * expr.c (force_operand): Likewise.
9802 * rtlanal.c (num_sign_bit_copies1): Likewise.
9803 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
9804 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
9805 (push_reload): Use precision to check for paradoxical subregs.
9806 * expmed.c (extract_bit_field_1): Likewise.
9808 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
9809 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
9810 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
9811 simplify_set, simplify_logical, expand_compound_operation,
9812 make_extraction, force_to_mode, if_then_else_cond, extended_count,
9813 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
9814 record_value_for_reg): Likewise.
9815 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
9816 * simplify-rtx. c (simplify_unary_operation_1,
9817 simplify_binary_operation_1, simplify_const_relational_operation):
9820 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
9821 instead of GET_MODE_BITSIZE where appropriate.
9822 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
9823 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
9824 init_num_sign_bit_copies_in_rep): Likewise.
9825 * cse.c (fold_rtx, cse_insn): Likewise.
9826 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
9827 * simplify-rtx.c (simplify_unary_operation_1,
9828 simplify_const_unary_operation, simplify_binary_operation_1,
9829 simplify_const_binary_operation, simplify_ternary_operation,
9830 simplify_const_relational_operation, simplify_subreg): Likewise.
9831 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
9832 simplify_if_then_else, simplify_set, expand_compound_operation,
9833 expand_field_assignment, make_extraction, if_then_else_cond,
9834 make_compound_operation, force_to_mode, make_field_assignment,
9835 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
9836 extended_count, try_widen_shift_mode, simplify_shift_const_1,
9837 simplify_comparison, record_promoted_value, simplify_compare_const,
9838 record_dead_and_set_regs_1): Likewise.
9841 * simplify-rtx.c (simplify_const_binary_operation): Use the
9842 shift_truncation_mask hook instead of performing modulo by width.
9843 Compare against mode precision, not bitsize.
9844 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
9845 Use shift_truncation_mask instead of constructing the value manually.
9847 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
9849 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
9851 (rs6000_save_toc_in_prologue_p): Ditto.
9853 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
9854 up the static chain (r11) during indirect function calls.
9855 (-msave-toc-indirect): New undocumented debug switch.
9857 * config/rs6000/rs6000.c (struct machine_function): Add
9858 save_toc_in_prologue field to note whether the prologue needs to
9859 save the TOC value in the reserved stack location.
9860 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
9861 to save the TOC in the prologue, do so.
9862 (rs6000_trampoline_init): Don't allow creating AIX style
9863 trampolines if -mno-r11 is in effect.
9864 (rs6000_call_indirect_aix): New function to create AIX style
9865 indirect calls, adding support for -mno-r11 to suppress loading
9866 the static chain, and saving the TOC in the prologue instead of
9868 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
9869 TOC in the prologue.
9871 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
9873 (TOC_REGNUM): Ditto.
9874 (STATIC_CHAIN_REGNUM): Ditto.
9875 (ARG_POINTER_REGNUM): Ditto.
9876 (SFP_REGNO): Delete, unused.
9877 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
9878 function descriptor offsets.
9879 (TOC_SAVE_OFFSET_64BIT): Ditto.
9880 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
9881 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
9882 (AIX_FUNC_DESC_SC_32BIT): Ditto.
9883 (AIX_FUNC_DESC_SC_64BIT): Ditto.
9884 (ptrload): New mode attribute for the appropriate load of a pointer.
9885 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
9886 (call_indirect_aix64): Ditto.
9887 (call_value_indirect_aix32): Ditto.
9888 (call_value_indirect_aix64): Ditto.
9889 (call_indirect_nonlocal_aix32_internal): Ditto.
9890 (call_indirect_nonlocal_aix32): Ditto.
9891 (call_indirect_nonlocal_aix64_internal): Ditto.
9892 (call_indirect_nonlocal_aix64): Ditto.
9893 (call): Rewrite AIX indirect function calls. Add support for
9894 eliminating the static chain, and for moving the save of the TOC
9895 to the function prologue.
9896 (call_value): Ditto.
9897 (call_indirect_aix<ptrsize>): Ditto.
9898 (call_indirect_aix<ptrsize>_internal): Ditto.
9899 (call_indirect_aix<ptrsize>_internal2): Ditto.
9900 (call_indirect_aix<ptrsize>_nor11): Ditto.
9901 (call_value_indirect_aix<ptrsize>): Ditto.
9902 (call_value_indirect_aix<ptrsize>_internal): Ditto.
9903 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
9904 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
9905 (call_nonlocal_aix32): Relocate in the rs6000.md file.
9906 (call_nonlocal_aix64): Ditto.
9908 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
9909 -mno-r11 documentation.
9911 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
9914 * doc/extend.texi (Compound Literals): Fix typo.
9916 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
9918 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
9920 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
9922 * configure.ac (plugin-version.h): Generate
9923 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
9924 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
9927 * configure: Regenerate.
9929 * doc/plugins.texi (Building GCC plugins): Mention
9930 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
9932 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
9934 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
9935 * combine.c (make_extraction, gen_lowpart_or_truncate,
9936 apply_distributive_law, simplify_comparison,
9937 reg_truncated_to_mode, record_truncated_value): Use it.
9938 * cse.c (notreg_cost): Likewise.
9939 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
9940 * expr.c (convert_move, convert_modes): Likewise.
9941 * optabs.c (expand_binop, expand_unop): Likewise.
9942 * postreload.c (move2add_last_label): Likewise.
9943 * regmove.c (optimize_reg_copy_3): Likewise.
9944 * rtlhooks.c (gen_lowpart_general): Likewise.
9945 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
9947 2011-07-06 Joseph Myers <joseph@codesourcery.com>
9949 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
9951 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
9953 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
9954 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
9955 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
9956 (simplify_const_unary_operation, simplify_binary_operation_1,
9957 simplify_const_binary_operation, simplify_const_relational_operation):
9958 Use them. Use GET_MODE_MASK for masking and sign-extensions.
9959 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
9960 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
9961 simplify_shift_const_1, simplify_comparison): Likewise.
9962 * expr.c (convert_modes): Likewise.
9963 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
9964 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
9965 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
9967 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
9969 2011-07-06 Richard Guenther <rguenther@suse.de>
9971 PR tree-optimization/49645
9972 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
9974 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
9975 in type qualification here ...
9976 (copy_reference_ops_from_ref): ... not here.
9977 (vn_reference_lookup_3): ... or here.
9978 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
9979 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
9981 2011-07-06 Ian Lance Taylor <iant@google.com>
9983 * doc/install.texi (Configuration): It's
9984 --enable-gnu-indirect-function, not --enable-indirect-function.
9986 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
9988 * simplify-rtx.c (simplify_const_binary_operation): Use the
9989 shift_truncation_mask hook instead of performing modulo by width.
9990 Compare against mode precision, not bitsize.
9991 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
9992 Use shift_truncation_mask instead of constructing the value manually.
9994 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
9997 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
9998 address computation and convert to address_mode if needed.
10000 2011-07-06 Richard Guenther <rguenther@suse.de>
10002 * tree.c (build_common_tree_nodes_2): Merge with
10003 build_common_tree_nodes.
10004 * tree.h (build_common_tree_nodes): Adjust prototype.
10005 (build_common_tree_nodes_2): Remove.
10006 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
10007 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
10009 2011-07-05 Jakub Jelinek <jakub@redhat.com>
10011 PR tree-optimization/49618
10012 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
10013 t recurse on the decl.
10014 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
10015 return true if expr isn't known to be defined in current
10016 TU or some other LTO partition.
10018 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
10020 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
10021 override CASE_VALUES_THRESHOLD.
10023 * stmt.c (toplevel): Include params.h.
10024 (case_values_threshold): Use the --param case-values-threshold
10025 value if non-zero, otherwise use machine dependent value.
10026 (expand_case): Use case_values_threshold.
10028 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
10030 * doc/invoke.texi (--param case-values-threshold): Document.
10032 2011-07-05 Richard Henderson <rth@redhat.com>
10034 * dwarf2out.c (dwarf2out_cfi_label): Make static.
10035 (dwarf2out_flush_queued_reg_saves): Make static.
10036 (dwarf2out_reg_save): Remove.
10037 (dwarf2out_return_save): Remove.
10038 (dwarf2out_return_reg): Remove.
10039 (dwarf2out_reg_save_reg): Remove.
10040 (dwarf2out_def_cfa): Merge into ...
10041 (dwarf2out_frame_init): ... here.
10042 * dwarf2out.h, tree.h: Remove declarations as necessary.
10044 2011-07-05 Richard Henderson <rth@redhat.com>
10046 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
10047 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
10048 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
10051 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
10052 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
10053 (process_epilogue): Don't call dwarf2out_def_cfa.
10055 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
10056 indicate the return address save.
10057 (process_cfa_register): Likewise.
10059 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
10060 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
10062 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
10063 for ar.pfs save at alloc insn.
10065 2011-07-05 Richard Henderson <rth@redhat.com>
10067 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
10068 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
10069 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
10070 stack pointer save.
10071 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
10072 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
10073 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
10074 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
10076 2011-07-05 Richard Henderson <rth@redhat.com>
10078 * config/vax/vax.md (define_c_enum unspecv): New. Define the
10079 VUNSPEC_* constants here instead of via define_constants.
10080 (VUNSPEC_PEM): New constant.
10081 (procedure_entry_mask): New insn.
10082 (prologue): New expander.
10083 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
10084 (vax_expand_prologue): Rename from vax_output_function_prologue;
10085 emit rtl instead of text.
10086 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
10087 (print_operand): Add 'x' prefix.
10089 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
10091 PR middle-end/47715
10092 * calls.c (precompute_register_parameters): Promote the function
10093 argument before checking non-legitimate constant.
10095 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
10097 PR tree-optimization/47654
10098 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
10099 (lst_do_strip_mine_loop): Return an int.
10100 (lst_do_strip_mine): Same.
10101 (scop_do_strip_mine): Same.
10102 (scop_do_block): Loop blocking should strip-mine at least two loops.
10103 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
10104 (scop_do_interchange): Same.
10105 * graphite-poly.h (scop_do_interchange): Update declaration.
10106 (scop_do_strip_mine): Same.
10108 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
10110 * graphite-clast-to-gimple.c (precision_for_value): Removed.
10111 (precision_for_interval): Removed.
10112 (gcc_type_for_interval): Use mpz_sizeinbase.
10114 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
10116 * graphite-ppl.h (value_max): Correct computation of max.
10118 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
10120 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
10122 2011-07-05 Richard Guenther <rguenther@suse.de>
10124 * c-decl.c (c_init_decl_processing): Defer building common
10125 tree nodes to c_common_nodes_and_builtins.
10127 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
10129 PR tree-optimization/49580
10130 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
10131 the loop's number of iterations.
10132 * tree-parloops.c (transform_to_exit_first_loop): Add the
10133 handling of the loop's number of iterations before the call
10134 to gimple_duplicate_sese_tail.
10135 Insert the stmt caclculating the new rhs of the loop's
10136 condition stmt to the preheader instead of iters_bb.
10138 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
10140 PR rtl-optimization/47449
10141 * fwprop.c (forward_propagate_subreg): Don't propagate hard
10142 register nor zero/sign extended hard register.
10144 2011-07-05 Richard Guenther <rguenther@suse.de>
10146 PR tree-optimization/49518
10147 PR tree-optimization/49628
10148 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
10149 irrelevant and invariant data-references.
10150 (vect_analyze_data_ref_access): For invariant loads clear the
10153 2011-07-04 Jakub Jelinek <jakub@redhat.com>
10155 PR rtl-optimization/49619
10156 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
10157 pass VOIDmode as op0_mode to recursive call, and return temp even
10158 when different from tor, just if it is not IOR of the original
10161 PR rtl-optimization/49472
10162 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
10163 negating MULT, negate the second operand instead of first.
10164 (simplify_binary_operation_1) <case MULT>: If one operand is
10165 a NEG and the other is MULT, don't attempt to optimize by negation
10166 of the MULT operand if it only moves the NEG operation around.
10169 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
10170 get_current_def return value if it can't be trusted to be
10171 the current value of the variable in the current bb.
10173 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
10176 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
10177 general register to memory for !TARGET_INTER_UNIT_MOVES.
10179 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
10182 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
10183 instead of TREE_READONLY.
10185 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
10187 * doc/extend.texi (AVR Built-in Functions): Update documentation
10188 of __builtin_avr_fmul*.
10189 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
10190 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
10191 * config/avr/avr.md (fmul): Rename to fmul_insn.
10192 (fmuls): Rename to fmuls_insn.
10193 (fmulsu): Rename to fmulsu_insn.
10194 (fmul,fmuls,fmulsu): New expander.
10195 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
10196 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
10197 * config/avr/libgcc.S (__fmul): New function.
10198 (__fmuls): New function.
10199 (__fmulsu,__fmulsu_exit): New function.
10201 2011-07-04 Richard Guenther <rguenther@suse.de>
10203 PR tree-optimization/49615
10204 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
10205 basic-block index check.
10207 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
10209 * longlong.h (count_leading_zeros, count_trailing_zeros,
10210 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
10213 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
10215 PR tree-optimization/49610
10216 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
10219 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
10220 Olivier Hainque <hainque@adacore.com>
10221 Nicolas Setton <setton@adacore.com>
10223 * tree.h (TYPE_ARTIFICIAL): New flag.
10224 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
10225 the DIE of the type if it is artificial.
10226 (gen_array_type_die): Likewise.
10227 (gen_enumeration_type_die): Likewise.
10228 (gen_struct_or_union_type_die): Likewise.
10229 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
10230 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
10232 2011-07-01 Jakub Jelinek <jakub@redhat.com>
10234 * tree-object-size.c (pass_through_call): Handle
10235 BUILT_IN_ASSUME_ALIGNED.
10237 2011-07-01 Martin Jambor <mjambor@suse.cz>
10239 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
10241 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
10243 PR middle-end/48016
10244 * explow.c (update_nonlocal_goto_save_area): Use proper mode
10245 for stack save area.
10246 * function.c (expand_function_start): Likewise.
10248 2011-07-01 Richard Guenther <rguenther@suse.de>
10250 PR middle-end/49596
10251 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
10252 may have unknown refs.
10254 2011-07-01 Kai Tietz <ktietz@redhat.com>
10256 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
10258 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10260 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
10261 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
10262 (Specific, mips-sgi-irix6): Likewise.
10264 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10266 PR libmudflap/49549
10267 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
10269 2011-07-01 Jakub Jelinek <jakub@redhat.com>
10271 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
10272 [idx]= and [idx1 ... idx2]= before initializers if needed for
10273 array initializers.
10275 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
10277 * config.gcc (score-*-elf): Remove score7.o.
10278 * config/score/t-score-elf: Likewise.
10279 * config/score/score.c: Merge score7 to score.c and
10280 remove forwarding functions.
10281 * config/score/score7.c: Deleted.
10282 * config/score/score7.h: Deleted.
10284 2011-07-01 Richard Guenther <rguenther@suse.de>
10286 PR tree-optimization/49603
10287 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
10289 2011-06-30 Martin Jambor <mjambor@suse.cz>
10291 * tree-sra.c (struct access): Rename total_scalarization to
10292 grp_total_scalarization
10293 (completely_scalarize_var): New function.
10294 (sort_and_splice_var_accesses): Set total_scalarization in the
10295 representative access.
10296 (analyze_access_subtree): Propagate total scalarization accross the
10297 tree, no holes in totally scalarized trees, simplify coverage
10299 (analyze_all_variable_accesses): Call completely_scalarize_var instead
10300 of completely_scalarize_record.
10302 2011-06-30 Richard Henderson <rth@redhat.com>
10304 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
10305 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
10306 * config/i386/i386.c: Don't include dwarf2out.h.
10307 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
10308 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
10309 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
10310 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
10311 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
10313 2011-06-30 Richard Henderson <rth@redhat.com>
10315 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
10316 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
10317 * final.c (final_scan_insn): Look for it, and invoke
10318 dwarf2out_frame_debug before the insn if found.
10320 2011-06-30 Richard Henderson <rth@redhat.com>
10322 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
10323 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
10325 2011-06-30 Richard Henderson <rth@redhat.com>
10327 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
10328 Define a vector of this type.
10329 (regs_saved_in_regs): Use a VEC.
10330 (num_regs_saved_in_regs): Remove.
10331 (compare_reg_or_pc): New.
10332 (record_reg_saved_in_reg): Split out from...
10333 (dwarf2out_flush_queued_reg_saves): ... here.
10334 (clobbers_queued_reg_save): Update for VEC.
10335 (reg_saved_in): Likewise.
10336 (dwarf2out_frame_debug_init): Likewise.
10337 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
10338 (dwarf2out_frame_debug_cfa_register): Likewise.
10340 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
10342 PR tree-optimization/49572
10343 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
10344 type of the RHS instead of that of the LHS for the expression type.
10346 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
10348 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
10351 2011-06-30 Richard Guenther <rguenther@suse.de>
10353 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
10354 * tree-ssa-structalias.c (create_variable_info_for): Do not
10355 add initial constraints for non-var-decls. Properly handle
10356 globals in other ltrans partitions.
10357 (intra_create_variable_infos): Manually create constraints for
10358 the fake no-alias parameter.
10359 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
10360 and assert there are no clones.
10362 2011-06-30 Richard Guenther <rguenther@suse.de>
10364 PR tree-optimization/46787
10365 * tree-data-ref.c (dr_address_invariant_p): Remove.
10366 (find_data_references_in_stmt): Invariant accesses are ok now.
10367 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
10368 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
10371 2011-06-30 Martin Jambor <mjambor@suse.cz>
10373 PR tree-optimization/49094
10374 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
10375 (build_accesses_from_assign): Use it.
10377 2011-06-30 Jakub Jelinek <jakub@redhat.com>
10379 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
10380 handling of BUILT_IN_ASSUME_ALIGNED.
10383 * dwarf2out.c (output_abbrev_section): Don't return early
10384 if abbrev_die_table_in_use is 1.
10385 (dwarf2out_finish): Instead don't call output_abbrev_section
10386 nor emit abbrev_section_label in that case.
10388 2011-06-30 Nick Clifton <nickc@redhat.com>
10390 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
10393 2011-06-30 Jakub Jelinek <jakub@redhat.com>
10395 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
10396 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
10398 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
10400 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
10401 both pattern and original statements if necessary.
10402 (vect_transform_loop): Likewise.
10403 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
10404 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
10405 Mark the pattern statement only if the original statement doesn't
10407 (process_use): Call vect_mark_relevant with additional parameter.
10408 (vect_mark_stmts_to_be_vectorized): Likewise.
10409 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
10410 (vect_analyze_stmt): Handle both pattern and original statements
10412 (vect_transform_stmt): Don't store vectorized pattern statement
10413 in the original statement.
10414 (vect_is_simple_use_1): Use related pattern statement only if the
10415 original statement is irrelevant.
10416 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
10418 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
10420 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
10422 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
10424 (TARGET_AVX128_OPTIMAL): New definition.
10425 * config/i386/i386.c (initial_ix86_tune_features): Initialize
10426 X86_TUNE_AVX128_OPTIMAL entry.
10427 (ix86_option_override_internal): Enable the generation
10428 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
10429 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
10430 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
10432 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
10434 PR tree-optimization/49539
10435 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
10436 names by means of stmt_references_abnormal_ssa_name.
10437 (associate_plusminus): Call can_propagate_from before propagating
10438 from definition statements.
10439 (ssa_forward_propagate_and_combine): Remove superfluous newline.
10441 2011-06-29 Richard Guenther <rguenther@suse.de>
10443 * doc/invoke.texi: Document -scev dump modifier.
10444 * tree-pass.h (TDF_SCEV): New dump flag.
10445 * tree-dump.c (dump_option_value_in): Add scev.
10446 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
10447 * tree-scalar-evolution.c: Likewise.
10449 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
10451 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
10452 (cxa_type_match): Correct declaration.
10453 (__gnu_unwind_pr_common): Reconstruct additional indirection
10454 when __cxa_type_match returns succeeded_with_ptr_to_base.
10456 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10458 PR rtl-optimization/49114
10459 * reload.c (struct replacement): Remove SUBREG_LOC member.
10460 (push_reload): Do not set it.
10461 (push_replacement): Likewise.
10462 (subst_reload): Remove dead code.
10463 (copy_replacements): Remove assertion.
10464 (copy_replacements_1): Do not handle SUBREG_LOC.
10465 (move_replacements): Likewise.
10466 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
10467 Detect subregs via recursive descent instead of via SUBREG_LOC.
10469 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
10471 * config/avr/avr.c (avr_encode_section_info): Dispatch to
10472 default_encode_section_info.
10474 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
10476 PR tree-optimization/49545
10477 * builtins.c (get_object_alignment_1): Update function comment.
10478 Do not use DECL_ALIGN for functions, but test
10479 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
10480 * fold-const.c (get_pointer_modulus_and_residue): Don't check
10481 for functions here.
10482 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
10484 2011-06-29 Jakub Jelinek <jakub@redhat.com>
10487 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
10488 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
10490 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
10493 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
10494 about uninitialized data attributed 'progmem' from here...
10495 (avr_encode_section_info): ...to this new function.
10496 (TARGET_ENCODE_SECTION_INFO): New define.
10497 (avr_section_type_flags): For data in ".progmem.data", remove
10498 section flag SECTION_WRITE.
10500 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
10502 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
10504 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
10505 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
10506 (__umulhisi3): Ditto.
10507 * config/avr/avr.md (mulhisi3): New insn expender.
10508 (umulhisi3): New insn expender.
10509 (*mulhisi3_call): New insn.
10510 (*umulhisi3_call): New insn.
10512 2011-06-28 Joseph Myers <joseph@codesourcery.com>
10514 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
10516 2011-06-28 Richard Henderson <rth@redhat.com>
10518 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
10519 all code and arguments that handled pushes. Update all callers.
10521 2011-06-28 Richard Henderson <rth@redhat.com>
10523 * config/arm/arm.c (arm_output_function_prologue): Don't call
10524 thumb1_output_function_prologue.
10525 (arm_expand_prologue): Avoid dead store.
10526 (number_of_first_bit_set): Use ctz_hwi.
10527 (thumb1_emit_multi_reg_push): New.
10528 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
10529 to emit the entire prologue as rtl.
10530 (thumb1_output_interwork): Split out from
10531 thumb1_output_function_prologue.
10532 (thumb1_output_function_prologue): Remove.
10533 (arm_attr_length_push_multi): Handle thumb1.
10534 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
10535 (prologue_thumb1_interwork): New.
10536 (*push_multi): Allow thumb1; use push_mult_memory_operand.
10537 * config/arm/predicates.md (push_mult_memory_operand): New.
10539 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
10541 * config/sparc/sync.md (*stbar): Delete.
10542 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
10544 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
10546 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
10548 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10550 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
10551 (TARGET_64BIT_DEFAULT): Define.
10552 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
10554 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
10556 2011-06-28 Joseph Myers <joseph@codesourcery.com>
10558 * common.opt (in_lto_p): New Variable entry.
10559 * flags.h (in_lto_p): Move to common.opt.
10560 * gcc.c: Include params.h.
10561 (set_option_handlers): Also use common_handle_option and
10562 target_handle_option.
10563 (main): Call global_init_params, finish_params and init_options_struct.
10564 * opts.c (debug_type_names): Move from toplev.c.
10565 (print_filtered_help): Access quiet_flag through opts pointer.
10566 (common_handle_option): Return early in the driver for some options.
10567 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
10569 * toplev.c (in_lto_p): Move to common.opt.
10570 (debug_type_names): Move to opts.c.
10571 * Makefile.in (OBJS): Remove opts.o.
10572 (OBJS-libcommon-target): Add opts.o.
10573 (gcc.o): Update dependencies.
10575 2011-06-28 Kai Tietz <ktietz@redhat.com>
10577 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
10579 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10581 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
10582 with '=' constraint modifier.
10583 (*divdf3_vfp): Likewise.
10584 ("*mulsf3_vfp"): Likewise.
10585 ("*muldf3_vfp"): Likewise.
10586 ("*mulsf3negsf_vfp"): Likewise.
10587 ("*muldf3negdf_vfp"): Likewise.
10589 2011-06-28 Nick Clifton <nickc@redhat.com>
10591 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
10592 relaxation when performing an incremental link.
10594 2011-06-28 Kai Tietz <ktietz@redhat.com>
10596 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
10597 within BB from last to first.
10599 2011-06-28 Joseph Myers <joseph@codesourcery.com>
10601 * genattr-common.c: New. Based on genattr.c.
10602 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
10603 (MOSTLYCLEANFILES): Add insn-attr-common.h.
10604 (opts.o): Update dependencies.
10605 (.PRECIOUS): Add insn-attr-common.h.
10606 (simple_rtl_generated_h): Add insn-attr-common.h.
10607 (build/genattr-common.o): New.
10608 (genprogrtl): Add attr-common.
10609 * genattr.c (main): Include insn-attr-common.h. Don't generate
10610 definitions of DELAY_SLOTS or INSN_SCHEDULING.
10611 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
10613 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
10615 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
10616 avr-*-* and avr-*-rtems* targets.
10618 * config/avr/elf.h: New file.
10619 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
10620 (TARGET_ASM_SELECT_SECTION): Define.
10621 (INIT_SECTION_ASM_OP): Undefine.
10622 (FINI_SECTION_ASM_OP): Undefine.
10623 (READONLY_DATA_SECTION_ASM_OP): Undefine.
10624 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
10625 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
10626 * config/avr/avr.h:
10627 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
10628 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
10629 (MAX_OFILE_ALIGNMENT): Move to elf.h.
10630 (STRING_LIMIT): Move to elf.h.
10631 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
10632 (ASM_DECLARE_OBJECT_NAME): Remove.
10634 (ASM_OUTPUT_SKIP): Remove.
10635 (DWARF2_DEBUGGING_INFO): Remove.
10636 (OBJECT_FORMAT_ELF): Remove.
10637 (USER_LABEL_PREFIX): Remove.
10638 (ASM_OUTPUT_EXTERNAL): Remove.
10639 (ASM_OUTPUT_ASCII): Remove.
10640 (TYPE_ASM_OP): Remove.
10641 (SIZE_ASM_OP): Remove.
10642 (WEAK_ASM_OP): Remove.
10643 (STRING_ASM_OP): Remove.
10644 (SET_ASM_OP): Remove.
10645 (ASM_WEAKEN_LABEL): Remove.
10646 (TYPE_OPERAND_FMT): Remove.
10647 (ASM_DECLARE_FUNCTION_SIZE): Remove.
10648 (ASM_FINISH_DECLARE_OBJECT): Remove.
10649 (NO_DOLLAR_IN_LABEL): Remove.
10650 (ASM_GENERATE_INTERNAL_LABEL): Remove.
10651 (ASM_OUTPUT_CASE_LABEL): Remove.
10652 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
10653 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
10654 (gas_output_ascii): Remove.
10655 (gas_output_limited_string): Remove.
10656 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
10657 * config/avr/avr-protos.h
10658 (gas_output_ascii): Remove prototye.
10659 (gas_output_limited_string): Remove prototype.
10661 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
10664 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
10667 2011-06-27 Jan Hubicka <jh@suse.cz>
10669 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
10670 node instead of references in node.
10672 2011-06-27 Richard Henderson <rth@redhat.com>
10674 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
10675 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
10678 2011-06-27 Jakub Jelinek <jakub@redhat.com>
10680 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
10682 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
10683 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
10684 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
10685 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
10686 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
10687 (evaluate_stmt, execute_fold_all_builtins): Handle
10688 BUILT_IN_ASSUME_ALIGNED.
10689 * tree-ssa-dce.c (propagate_necessity): Likewise.
10690 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
10691 call_may_clobber_ref_p_1): Likewise.
10692 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
10693 (expand_builtin_assume_aligned): New function.
10694 * doc/extend.texi (__builtin_assume_aligned): Document.
10697 * cselib.c (promote_debug_loc): If cselib_preserve_constants
10698 and l has two DEBUG_INSN owned locs instead of just one, adjust
10699 the second location's setting_insn too.
10701 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10703 PR libmudflap/38738
10704 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
10706 2011-06-27 Nick Clifton <nickc@redhat.com>
10708 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
10709 bit position of highest bit set into a count of the high zero bits.
10711 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
10713 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
10715 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
10718 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
10721 2011-06-27 Richard Guenther <rguenther@suse.de>
10723 PR tree-optimization/49394
10724 * passes.c (execute_one_pass): Restore current_pass after
10725 applying IPA transforms.
10727 2011-06-27 Kai Tietz <ktietz@redhat.com>
10729 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
10730 out of type precision after operation.
10731 (find_bswap): Take for limit value the integer auto-promotion
10734 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
10736 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
10737 forward scan as well.
10739 2011-06-27 Tristan Gingold <gingold@adacore.com>
10742 * config/vms/vms-protos.h: New file.
10743 * config/vms/vms-crtlmap.map: New file.
10744 * config/vms/vms.c: New file.
10745 * config/vms/make-crtlmap.awk: New file.
10746 * config/vms/vms-crtl.h: File removed.
10747 * config/vms/vms-crtl-64.h: File removed.
10748 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
10749 * config/alpha/vms64.h: Do not include vms-crtl-64.h
10750 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
10751 clear some builtins on VMS. Calls vms_patch_builtins.
10752 (avms_asm_output_external): Remove.
10753 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
10754 (struct crtl_name_spec): Remove
10755 (DO_CTRL_NAMES): Remove.
10756 * config/ia64/vms.h (struct crtl_name_spec): Remove
10757 (DO_CTRL_NAMES): Remove.
10758 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
10759 clear some builtins on VMS. Calls vms_patch_builtins.
10760 (ia64_asm_output_external): Remove DO_CRTL_NAME.
10761 * config/ia64/vms64.h: Do not include vms-crtl-64.h
10762 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
10764 2011-06-27 Tristan Gingold <gingold@adacore.com>
10766 * config/alpha/alpha.c (alpha_end_function): Always generate .end
10769 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
10771 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
10772 the function receives nonlocal gotos.
10774 2011-06-27 Richard Guenther <rguenther@suse.de>
10776 PR tree-optimization/49536
10777 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
10778 For non-scalar inner types use a scalar type according to
10779 the scalar inner mode.
10781 2011-06-27 Richard Guenther <rguenther@suse.de>
10783 PR tree-optimization/49365
10784 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
10786 2011-06-27 Richard Guenther <rguenther@suse.de>
10788 PR tree-optimization/49169
10789 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
10790 the alignment of function decls.
10792 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
10795 * config/darwin.c (darwin_mergeable_string_section): Place string
10796 constants in '.cstring' rather than '.const' when CF/NSStrings are
10799 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
10801 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
10802 (emit_save_register_window): Likewise.
10803 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
10804 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
10805 Swap back %o7/%i7 in register naming.
10807 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
10810 * config/darwin.c (darwin_override_options): Improve warning when
10811 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
10812 is given with fpie/fPIE.
10813 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
10814 * config/darwin9.h (PIE_SPEC): New.
10816 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
10818 * timevar.c (timevar_print): Increase width for display of timevar
10821 2011-06-24 Jakub Jelinek <jakub@redhat.com>
10824 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
10825 instead of TYPE_CHAIN for chain_next for types.
10827 2011-06-24 Richard Henderson <rth@redhat.com>
10829 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
10830 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
10831 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
10832 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
10833 (sparc_flat_expand_prologue): Emit individual instructions
10834 instead of one of the above.
10836 2011-06-24 Easwaran Raman <eraman@google.com>
10838 PR rtl-optimization/49429
10840 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
10841 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
10842 used to copy y into x.
10843 * calls.c (initialize_argument_information): Mark
10844 an argument addressable if it is passed by invisible reference.
10845 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
10846 if it is passed by reference.
10848 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
10850 PR rtl-optimization/49504
10851 * rtlanal.c (nonzero_bits1): Properly handle addition or
10852 subtraction of a pointer in Pmode if pointers extend unsigned.
10853 (num_sign_bit_copies1): Likewise.
10855 2011-06-24 Martin Jambor <mjambor@suse.cz>
10857 PR tree-optimizations/49516
10858 * tree-sra.c (sra_modify_assign): Choose the safe path for
10859 aggregate copies if we also did scalar replacements.
10861 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10864 * config/arm/predicates.md (add_operator): New.
10865 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
10867 2011-06-24 Andi Kleen <ak@linux.intel.com>
10869 * tree-sra.c (type_internals_preclude_sra_p): Add msg
10870 parameter. Split up ifs and report reason in *msg.
10872 (find_var_candiate): Add msg variable.
10873 Split up ifs and report reason to reject.
10874 (find_param_candidates): Add msg variable.
10875 Pass msg to type_internals_preclude_sra_p.
10877 2011-06-23 Jeff Law <law@redhat.com>
10879 PR middle-end/48770
10880 * reload.h (reload): Change to return a bool.
10881 * ira.c (ira): If requested by reload, run a fast DCE pass after
10882 reload has completed. Fix comment typo.
10883 * reload1.c (need_dce): New file scoped static.
10884 (reload): Set reload_completed here. Return whether or not a DCE
10885 pass after reload is needed.
10886 (delete_dead_insn): Set need_dce as needed.
10888 PR middle-end/49465
10889 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
10890 to detect threading through joiner block. If there was already
10891 an edge to the new target, then do not change the PHI nodes.
10893 2011-06-23 Jakub Jelinek <jakub@redhat.com>
10895 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
10896 get_pointer_alignment to see if base isn't sufficiently aligned.
10898 2011-06-23 Jan Hubicka <jh@suse.cz>
10900 PR tree-optimize/49373
10901 * tree-pass.h (all_late_ipa_passes): Declare.
10902 * cgraphunit.c (init_lowered_empty_function): Fix properties.
10903 (cgraph_optimize): Execute late passes; remove unreachable funcions
10904 after materialization.
10905 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
10907 * passes.c (all_late_ipa_passes): Declare.
10908 (dump_passes, register_pass): Handle late ipa passes.
10909 (init_optimization_passes): Move ipa_pta to late passes; schedule
10910 fixup_cfg at beggining of all_passes.
10911 (apply_ipa_transforms): New function.
10912 (execute_one_pass): When doing simple ipa pass, apply all transforms.
10914 2011-06-23 Joseph Myers <joseph@codesourcery.com>
10916 * params.c: Include common/common-target.h. Don't include tm.h.
10917 (lang_independent_params): Move from toplev.c.
10918 (global_init_params): New.
10919 * params.h (global_init_params): Declare.
10920 * target.def (default_params): Move to common-target.def.
10921 * toplev.c (lang_independent_options): Remove.
10922 (lang_independent_params): Move to params.c.
10923 (general_init): Use global_init_params.
10924 * common/common-target.def (option_default_params): Move from
10926 * common/config/ia64/ia64-common.c: Include params.h.
10927 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10929 * common/config/rs6000/rs6000-common.c: Include params.h.
10930 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10932 * common/config/sh/sh-common.c: Include params.h.
10933 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10935 * common/config/spu/spu-common.c: Include params.h.
10936 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10938 * config/ia64/ia64.c (ia64_option_default_params,
10939 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
10940 * config/rs6000/rs6000.c (rs6000_option_default_params,
10941 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
10942 * config/sh/sh.c (sh_option_default_params,
10943 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
10944 * config/spu/spu.c (spu_option_default_params,
10945 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
10946 * Makefile.in (OBJS): Remove params.o.
10947 (OBJS-libcommon-target): Add params.o.
10948 (params.o, $(common_out_object_file)): Update dependencies.
10949 * doc/tm.texi: Regenerate.
10951 2011-06-23 Alan Modra <amodra@gmail.com>
10954 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
10955 invocation for 2011-06-09 changes.
10957 2011-06-22 Jakub Jelinek <jakub@redhat.com>
10960 * omp-low.c (expand_omp_for_static_nochunk): Only
10961 use n ceil/ nthreads size for the first n % nthreads threads in the
10962 team instead of all threads except for the last few ones which
10963 get less work or none at all.
10966 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
10969 2011-06-22 Richard Guenther <rguenther@suse.de>
10971 PR tree-optimization/49493
10972 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
10973 Refer to the alias target of variables.
10974 (associate_varinfo_to_alias_1): Remove.
10975 (ipa_pta_execute): Do not associate aliases with anything.
10976 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
10977 (cgraph_function_node): Likewise.
10978 (cgraph_function_or_thunk_node): Likewise.
10979 (varpool_variable_node): Likewise.
10981 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
10983 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
10984 * config.gcc (arm*-*-linux*): Default to gnu tls.
10985 (arm*-*-*): Add --with-tls option.
10986 (all_defaults): Add 'tls'.
10988 2011-06-22 Richard Henderson <rth@redhat.com>
10990 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
10991 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
10992 (dwarf2out_frame_debug_cfa_window_save): Rename from
10993 dwarf2out_window_save; make static.
10994 * tree.h (dwarf2out_window_save): Don't declare.
10996 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
10997 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
10998 (emit_save_register_window): Rename from gen_save_register_window;
10999 emit the insn and add REG_CFA_* notes.
11000 (sparc_expand_prologue): Update to match.
11001 * config/sparc/sparc.md (save_register_window_1): Simplify from
11002 save_register_window<P:mode>.
11004 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
11007 * config/i386/i386.md (*lea_general_2): Always allow SImode.
11008 (*lea_general_2_zext): Likewise.
11009 (imul to lea peepholes): Use const359_operand and check
11010 TARGET_PARTIAL_REG_STALL.
11012 * config/i386/predicates.md (const359_operand): New.
11014 2011-06-22 Michael Matz <matz@suse.de>
11016 * cgraphunit.c (assemble_thunk): Use correct return type.
11018 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
11019 Dmitry Melnik <dm@ispras.ru>
11021 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
11022 (neon_output_shift_immediate): Ditto.
11023 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
11025 (neon_output_shift_immediate): Ditto.
11026 * config/arm/neon.md (vashl<mode>3): Modified constraint.
11027 (vashr<mode>3_imm): New insn pattern.
11028 (vlshr<mode>3_imm): Ditto.
11029 (vashr<mode>3): Modified constraint.
11030 (vlshr<mode>3): Ditto.
11031 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
11033 (imm_for_neon_rshift_operand): Ditto.
11034 (imm_lshift_or_reg_neon): Ditto.
11035 (imm_rshift_or_reg_neon): Ditto.
11037 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
11039 2011-06-22 Jakub Jelinek <jakub@redhat.com>
11041 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
11042 builtin calls even if likelyvalue is not CONSTANT.
11043 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
11044 Return get_value_for_expr of first operand
11045 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
11046 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
11047 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
11048 their non-checking counterparts.
11049 (call_may_clobber_ref_p_1): Likewise.
11050 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
11051 like their non-checking counterparts.
11052 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11053 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
11054 like their non-checking counterparts.
11055 (find_func_clobbers): Likewise.
11056 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
11057 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
11059 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
11060 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
11061 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
11062 of base type reference as argument.
11063 (resolve_addr_in_expr): Likewise. Fix keep computation.
11064 (convert_descriptor_to_signed): Renamed to...
11065 (convert_descriptor_to_mode): ... this. For wider types convert to
11066 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
11067 (typed_binop): New function.
11068 (scompare_loc_descriptor, ucompare_loc_descriptor,
11069 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
11070 default to unsigned type instead of signed.
11073 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
11074 (gimple_build_debug_source_bind_stat): New prototype.
11075 (gimple_build_debug_source_bind): Define.
11076 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
11077 gimple_debug_source_bind_get_value,
11078 gimple_debug_source_bind_get_value_ptr,
11079 gimple_debug_source_bind_set_var,
11080 gimple_debug_source_bind_set_value): New inlines.
11081 * gimple.c (gimple_build_debug_source_bind_stat): New function.
11082 * gimple-pretty-print.c (dump_gimple_debug): Handle
11083 GIMPLE_DEBUG_SOURCE_BIND.
11084 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
11085 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
11086 * tree-parloops.c (eliminate_local_variables,
11087 separate_decls_in_region): Likewise.
11088 (separate_decls_in_region_debug): Renamed from
11089 separate_decls_in_region_debug_bind. Handle
11090 gimple_debug_source_bind_p.
11091 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
11093 (DECL_HAS_DEBUG_ARGS_P): Define.
11094 (struct tree_function_decl): Add has_debug_args_flag field.
11095 * tree.c (debug_args_for_decl): New variable.
11096 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
11097 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
11098 (rewrite_debug_stmt_uses): New function.
11099 (rewrite_stmt): Use it to rewrite debug stmt uses.
11100 * rtl.def (DEBUG_PARAMETER_REF): New.
11101 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
11102 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
11103 DEBUG_PARAMETER_REF.
11104 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
11105 * print-rtl.c (print_rtx): Likewise.
11106 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
11107 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
11108 debug stmts in the first bb.
11109 * tree-inline.c (remap_ssa_name): If remapping default def
11110 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
11111 a source bind debug stmt.
11112 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
11113 (maybe_move_debug_stmts_to_successors): Likewise.
11114 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
11115 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
11116 debug args vector from old_decl to new_decl.
11117 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
11118 or modified parameters, add debug bind stmts before call
11119 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
11120 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
11121 on DECL_DEBUG_EXPRs from debug args vector.
11122 (expand_debug_source_expr): New function.
11123 (expand_debug_locations): Use it for source bind insns.
11124 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
11125 * var-tracking.c (prepare_call_arguments): Add debug args
11126 to call_arguments if any.
11127 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
11128 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
11129 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
11130 (get_ref_die_offset, parameter_ref_descriptor): New functions.
11131 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
11132 (gen_subprogram_die): Handle parameters identified by
11133 DEBUG_PARAMETER_REF.
11135 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
11137 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
11138 * doc/install.texi (Configuration): Document --with-tls.
11139 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
11140 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
11141 (arm_tls_descseq_addr): New.
11142 (legitimize_tls_address): Add tlsdesc support.
11143 (arm_cannot_copy_insn_p): Check for tlscall.
11144 (arm_emit_tls_decoration): Likewise.
11145 * config/arm/arm.h (TARGET_GNU2_TLS): New.
11146 (OPTION_DEFAULT_SPECS): Add with-tls support.
11147 * config/arm/arm.md (R1_REGNUM): Define.
11149 * config/arm/arm.opt (tls_type): New enumeration type and values.
11150 (mtls-dialect): New switch.
11151 * config/arm/arm-opts.h (enum tls_type): New.
11153 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
11155 * attribs.c (register_attribute): Added assert to check that all
11156 attribute specs are registered with a name that is not empty and
11157 does not start with '_'.
11158 (decl_attributes): Avoid the lookup of the "naked" attribute spec
11159 if the function has no attributes.
11160 * tree.c (is_attribute_with_length_p): Removed.
11161 (is_attribute_p): Removed.
11162 (private_is_attribute_p): New.
11163 (private_lookup_attribute): New.
11164 (lookup_attribute): Removed.
11165 (lookup_ident_attribute): New.
11166 (remove_attribute): Require the first argument to be in the form
11167 'text', not '__text__'. Updated asserts.
11168 (merge_attributes): Use lookup_ident_attributes instead of
11170 (merge_dllimport_decl_attributes): Use remove_attribute.
11171 (attribute_list_contained): Likewise.
11172 (attribute_list_equal): Immediately return 1 if the arguments are
11173 identical pointers.
11174 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
11175 'int'. Require the first argument to be in the form 'text', not
11176 '__text__'. Require the second argument to be an identifier.
11177 (lookup_attribute): Made inline. Require the first argument to be
11178 in the form 'text', not '__text__'.
11179 (private_is_attribute_p, private_lookup_attribute): New.
11182 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
11184 * builtins.c: Add sync_ or SYNC__ to builtin names.
11185 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
11186 * omp-low.c: Add sync_ or SYNC__ to builtin names.
11188 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
11191 * config/avr/avr.md (extzv): New expander.
11192 (*extzv): New insn.
11193 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
11194 * config/avr/constraints.md (C04): New constraint.
11195 * doc/md.texi (Machine Constraints): Document it.
11197 2011-06-21 Jakub Jelinek <jakub@redhat.com>
11199 PR middle-end/49489
11200 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
11201 unsignedp argument instead of 1 for clrsb_optab.
11202 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
11203 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
11204 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
11205 * optabs.c (widen_leading): Call widen_operand and expand_unop
11206 with 0 as unsignedp argument instead of 1 for clrsb_optab.
11207 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
11209 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
11211 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
11213 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
11215 * gensupport.c (add_define_attr): New static function.
11216 (is_predicable): Allow multi-alternative lists for the "predicable"
11218 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
11219 (process_one_cond_exec): Call alter_attrs_for_insn.
11220 * doc/md.texi (Defining Attributes): Mention some standard names.
11221 (Conditional Execution): Update documentation for "predicable".
11223 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
11224 __builtin_clrsbll): Document.
11225 * doc/rtl.texi (clrsb): New entry.
11226 * optabs.c (widen_leading): Renamed from widen_clz. New argument
11227 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
11228 (expand_unop): Handle clrsb_optab.
11229 (init_optabs): Initialize it.
11230 * optabs.h (enum optab_index): New entry OTI_clrsb.
11231 (clrsb_optab): Define.
11232 * genopinit.c (optabs): Add an entry for it.
11233 * builtins.c (expand_builtin): Handle clrsb builtin functions.
11234 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
11235 BUILT_IN_CLRSBLL): New.
11236 * rtl.def (CLRSB): New code.
11237 * dwarf2out.c (mem_loc_descriptor): Handle it.
11238 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11239 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
11241 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
11242 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
11243 (__ctzDI2): Move declaration.
11244 * config/bfin/bfin.md (clrsbsi2): New expander.
11245 (signbitssi2): Use the CLRSB rtx.
11246 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
11247 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
11249 2011-06-21 Richard Guenther <rguenther@suse.de>
11251 * ipa-inline-transform.c (inline_transform): Fix previous change.
11253 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
11255 PR tree-optimization/49478
11256 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
11257 with constant operand.
11259 2011-06-21 Richard Guenther <rguenther@suse.de>
11261 * ipa-inline-transform.c (inline_transform): Fix typo.
11263 2011-06-21 Richard Guenther <rguenther@suse.de>
11265 PR tree-optimization/49483
11266 * tree-vect-stmts.c (vectorizable_assignment): Also handle
11267 VIEW_CONVERT_EXPR conversions.
11269 2011-06-21 Joseph Myers <joseph@codesourcery.com>
11271 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
11272 * config/avr/avr-tables.opt: New file (generated).
11273 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
11274 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
11276 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
11277 (avr_option_override): Don't process -mmcu= argument here. Set
11278 avr_current_device using avr_mcu_index.
11279 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
11280 * config/avr/avr.opt (mmcu=): Use Enum.
11281 * config/avr/t-avr (avr-devices.o): Update dependencies.
11282 ($(srcdir)/config/avr/avr-tables.opt): New.
11283 * target.def (help): Remove.
11284 * doc/tm.texi.in (TARGET_HELP): Remove.
11285 * doc/tm.texi: Regenerate.
11286 * opts.c: Don't include target.h.
11287 (common_handle_option): Don't call targetm.help.
11288 * system.h (TARGET_HELP): Poison.
11289 * Makefile.in (opts.o): Update dependencies.
11291 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11293 * config/usegld.h: New file.
11294 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
11295 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
11296 (LIB_SPEC): Likewise. Search /lib.
11297 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
11298 (RDYNAMIC_SPEC): Handle GNU ld.
11299 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
11301 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
11302 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
11303 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
11304 (STACK_CHECK_STATIC_BUILTIN): Define.
11305 * config/sol2.opt (compat-bsd): Remove.
11306 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
11307 * config/sol2-bi.h: New file.
11308 * config/sol2-gld.h: Remove.
11309 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
11310 (NO_DBX_BNSYM_ENSYM): Remove.
11311 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
11312 (STACK_CHECK_STATIC_BUILTIN): Remove.
11313 Test USE_GLD instead of TARGET_GNU_LD.
11314 * config/i386/sol2-10.h: Rename to ...
11315 * config/i386/sol2-bi.h .. this.
11316 (SUBTARGET_EXTRA_SPECS): Redefine.
11317 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
11318 (MULTILIB_DEFAULTS): Remove.
11319 (DEFAULT_ARCH32_P): Define.
11320 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
11321 (ARCH64_SUBDIR): Define.
11322 Test USE_GLD instead of TARGET_GNU_LD.
11323 (I386_EMULATION): Rename to ...
11324 (ARCH32_EMULATION): ... this.
11325 (X86_64_EMULATION): Rename to ...
11326 (ARCH64_EMULATION): ... this.
11327 (TARGET_LD_EMULATION): Remove.
11328 (LINK_ARCH_SPEC): Remove.
11329 * config/i386/sol2-gas.h: Remove.
11330 * config/i386/t-sol2-10: Rename to ...
11331 * config/i386/t-sol2-64: ... this.
11332 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
11333 (AS_SPARC64_FLAG): Define.
11334 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
11335 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
11336 depending on TARGET_CPU_DEFAULT.
11337 (CPP_CPU_SPEC): Redefine.
11338 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
11339 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
11340 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
11341 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
11342 ASM_ARCH_DEFAULT_SPEC): Redefine.
11343 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
11344 LINK_ARCH_DEFAULT_SPEC.
11345 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
11346 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
11347 (ARCH64_SUBDIR): Define.
11348 (LINK_ARCH64_SPEC): Redefine.
11349 (CC1_SPEC): Redefine.
11350 (OPTION_DEFAULT_SPECS): Redefine.
11351 (MULTILIB_DEFAULTS): Define.
11352 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
11353 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
11354 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
11355 (NO_DBX_BNSYM_ENSYM): Remove.
11356 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
11357 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
11358 (TARGET_ASM_NAMED_SECTION): Likewise.
11359 (STACK_CHECK_STATIC_BUILTIN): Remove.
11360 * config/sparc/sol2-bi.h: Remove.
11361 * config/sparc/sol2-gas-bi.h: Remove.
11362 * config/sparc/sol2-gas.h: Remove.
11363 * config/sparc/sol2-gld-bi.h: Remove.
11364 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
11366 (*-*-solaris2*): ... here.
11368 2011-06-21 Christian Bruel <christian.bruel@st.com>
11371 * ipa-inline.c (can_inline_edge_p): Check
11372 !DECL_DISREGARD_INLINE_LIMITS.
11374 2011-06-21 Christian Bruel <christian.bruel@st.com>
11376 PR middle-end/49139
11377 * cgraphunit.c (process_function_and_variable_attributes): warn when
11378 always_inline functions that are not inline.
11379 * ipa-inline-transform.c (inline_transform): Always call
11381 * tree-inline.c (tree_inlinable_function_p): Use error instead
11383 (expand_call_inline): Likewise.
11385 2011-06-21 Jakub Jelinek <jakub@redhat.com>
11387 * Makefile.in (dg_target_exps): Set.
11388 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
11389 instead of 7, try to divide it more evenly.
11391 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
11394 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
11395 (avx256_split_unaligned_store): New definition.
11396 (ix86_option_override_internal): Enable avx256 unaligned load/store
11397 splitting only when avx256_split_unaligned_load/store is set.
11399 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
11401 * regrename.c (scan_rtx_reg): Handle the case where we write to an
11402 open chain in a smaller mode without failing the entire block.
11404 2011-06-21 Alan Modra <amodra@gmail.com>
11406 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
11407 CONST high part large-toc address.
11408 (rs6000_tls_referenced_p): Make static.
11409 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
11411 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11414 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
11415 one of the operands is a register.
11417 2011-06-20 Kai Tietz <ktietz@redhat.com>
11419 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
11420 operations in combination with binary and.
11422 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
11424 * regrename.c (do_replace): Don't update notes.
11426 2011-06-20 Alan Modra <amodra@gmail.com>
11428 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
11429 of toc-relative address in CONST.
11430 (rs6000_delegitimize_address): Recognize changed address.
11431 (rs6000_legitimize_reload_address): Likewise.
11432 (rs6000_emit_move): Don't force these constants to memory.
11433 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
11434 toc-relative address in CONST.
11435 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
11436 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
11438 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
11440 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
11441 (count_trailing_zeros): Likewise.
11443 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
11446 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
11447 .init_array can be used with .ctors on targets.
11448 * configure: Regenerated.
11450 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
11452 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
11453 if the element type is volatile.
11455 2011-06-18 Jan Hubicka <jh@suse.cz>
11457 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
11458 extra name aliases.
11459 (lto_symtab_resolve_can_prevail_p): Likewise.
11460 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
11461 * cgraphbuild.c (record_reference): Remove extra body alias code.
11462 (mark_load): Likewise.
11463 (mark_store): Likewise.
11464 * cgraph.h (varpool_node): Remove extra_name filed;
11465 add alias_of and extraname_alias.
11466 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
11467 (varpool_alias_aliased_node): New inline function.
11468 (varpool_variable_node): New function.
11469 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
11470 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
11471 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
11472 (input_varpool_node): Likewise.
11473 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
11474 (varpool_externally_visible_p): Remove extra body alias code.
11475 (function_and_variable_visibility): Likewise.
11476 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
11477 (ipa_pta_execute): Use it.
11478 * varpool.c (varpool_remove_node): Remove extra name alias code.
11479 (varpool_mark_needed_node): Likewise.
11480 (varpool_analyze_pending_decls): Analyze aliases.
11481 (assemble_aliases): New functoin.
11482 (varpool_assemble_decl): Use it.
11483 (varpool_create_variable_alias): New function.
11484 (varpool_extra_name_alias): Rewrite.
11485 (varpool_for_node_and_aliases): New function.
11487 2011-06-18 Jakub Jelinek <jakub@redhat.com>
11490 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
11491 last_arg_constant and last argument doesn't match its predicate,
11492 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
11493 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
11494 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
11495 spelling of error message.
11496 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
11497 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
11498 const_0_to_255_operand instead of const_int_operand.
11501 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
11503 * config/i386/sse.md (blendbits): Remove mode attribute.
11504 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
11505 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
11506 Check integer value of operand 3 in insn constraint.
11508 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
11510 PR rtl-optimization/48542
11511 * reload.c (find_equiv_reg): Stop looking when finding a
11513 * reload1.c (reload_as_needed): Invalidate all reload
11514 registers when crossing a setjmp-type call.
11516 2011-06-16 Jeff Law <law@redhat.com>
11518 * tree-ssa-threadupdate.c (struct redirection_data): New field
11520 (THREAD_TARGET2): Define.
11521 (redirection_data_eq): Also check that the intermediate edge is equal.
11522 (lookup_redirection_data): Drop useless argument. Extract the
11523 outgoing_edge and intermediate edge from E. Callers updated.
11524 (copy_phi_args, update_destination_phis): New functions.
11525 (fix_duplicate_block_edges): Likewise.
11526 (create_edge_and_update_destination_phis): Duplicate all the edges
11527 hung off e->aux. Use copy_phi_args.
11528 (create_duplicates): Use fix_duplicate_block_edges.
11529 (fixup_template_block): Likewise.
11530 (redirect_edges): If necessary, redirect the joiner block's incoming
11531 edge to the duplicate of the joiner block.
11532 (thread_block): Don't muck up loops when threading through a joiner
11534 (thread_through_loop_header): Handle threading through a joiner block.
11535 (mark_threaded_blocks, register_jump_thread): Likewise.
11536 * tree-flow.h (register_jump_thread): Add new argument. Callers
11538 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
11539 (thread_across_edge): Handle threading through a joiner block.
11541 2011-06-16 Martin Jambor <mjambor@suse.cz>
11543 PR tree-optimization/49343
11544 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
11545 calculate offset, provide 2nd operand for the new COMPONENT_REF.
11547 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
11549 * config/darwin-protos.h (machopic_select_rtx_section): Move to
11550 inside RTX_CODE ifdef.
11552 2011-06-16 Tom de Vries <tom@codesourcery.com>
11555 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
11556 Disallow NULL pointer for pointer arithmetic.
11558 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11562 2011-06-10 Wei Guozhi <carrot@google.com>
11565 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
11566 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
11567 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
11569 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
11571 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
11572 (arm_legitimate_ldrd_p): New prototype.
11573 (arm_output_ldrd): New prototype.
11574 * config/arm/arm.c (arm_check_ldrd_operands): New function.
11575 (arm_legitimate_ldrd_p): New function.
11576 (arm_output_ldrd): New function.
11578 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
11580 PR middle-end/46500
11581 * doc/tm.texi.in: Update Copyright date.
11582 * doc/tm.texi: Regenerate.
11583 * targhooks.c (default_setup_incoming_varargs): Replace
11584 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11585 (default_pretend_outgoing_varargs_named): Likewise.
11586 (hook_pass_by_reference_must_pass_in_stack): Likewise.
11587 (hook_callee_copies_named): Likewise.
11588 (default_function_arg_advance): Likewise.
11589 (default_function_arg): Likewise.
11590 (default_function_incoming_arg): Likewise.
11591 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
11592 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
11593 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
11594 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
11595 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
11596 * targhooks.h (default_setup_incoming_varargs): Likewise.
11597 (default_pretend_outgoing_varargs_named): Likewise.
11598 (hook_pass_by_reference_must_pass_in_stack): Likewise.
11599 (hook_callee_copies_named): Likewise.
11600 (default_function_arg_advance): Likewise.
11601 (default_function_arg): Likewise.
11602 (default_function_incoming_arg): Likewise.
11603 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
11604 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
11605 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
11606 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
11607 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
11608 * target.def (pass_by_reference): Likewise.
11609 (setup_incoming_varargs, strict_argument_naming): Likewise.
11610 (pretend_outgoing_varargs_named, callee_copies): Likewise.
11611 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
11612 (function_incoming_arg): Likewise.
11613 * target.h: Don't include "tm.h" .
11614 (cumulative_args_t): New typedef.
11615 [GCC_TM_H] (get_cumulative_args): New static inline function.
11616 [GCC_TM_H] (pack_cumulative_args): Likewise.
11617 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
11618 argument type with cumulative_args_t.
11619 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
11620 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
11621 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
11622 (frv_arg_partial_bytes, frv_function_arg): Likewise.
11623 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
11624 (frv_function_arg_1): Likewise.
11625 * config/s390/s390.c (s390_pass_by_reference): Likewise.
11626 (s390_function_arg_advance, s390_function_arg): Likewise.
11627 * config/m32c/m32c.c (m32c_function_arg): Likewise.
11628 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
11629 (m32c_strict_argument_naming): Likewise.
11630 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
11631 (spu_function_arg_advance): Likewise.
11632 (spu_setup_incoming_varargs): Likewise. Make static.
11633 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
11635 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
11636 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11637 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
11638 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
11639 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
11640 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
11641 (mep_pass_by_reference, mep_function_arg): Likewise.
11642 (mep_function_arg_advance): Likewise.
11643 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
11644 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
11645 (m32r_function_arg, m32r_function_arg_advance): Likewise.
11646 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
11647 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
11648 (ix86_function_arg, ix86_pass_by_reference): Likewise.
11649 (ix86_setup_incoming_varargs): Likewise.
11650 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
11651 (sh_strict_argument_naming): Likewise.
11652 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
11653 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
11654 (sh_function_arg_advance, sh_function_arg): Likewise.
11655 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
11656 (pdp11_function_arg_advance): Likewise.
11657 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
11659 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
11660 * config/avr/avr.c (avr_function_arg): Likewise.
11661 (avr_function_arg_advance): Likewise.
11662 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
11663 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
11664 (xtensa_function_arg_1): Likewise.
11665 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
11667 (xstormy16_function_arg): Likewise.
11668 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
11669 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
11670 (fr30_function_arg_advance): Likewise.
11671 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
11672 (lm32_function_arg, lm32_function_arg_advance): Likewise.
11673 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
11674 (moxie_function_arg, moxie_function_arg_advance): Likewise.
11675 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
11676 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
11677 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
11678 (cris_function_arg, cris_function_incoming_arg): Likewise.
11679 (cris_function_arg_advance, cris_function_arg_1): Likewise.
11680 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
11681 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
11682 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
11683 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
11684 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
11685 (mn10300_arg_partial_bytes): Likewise.
11686 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
11687 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
11688 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
11689 (ia64_function_arg_1): Likewise.
11690 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
11691 (m68k_function_arg): Likewise.
11692 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
11693 (rs6000_function_arg, setup_incoming_varargs): Likewise.
11694 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
11695 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
11696 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
11697 (picochip_arg_advance): Likewise.
11698 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
11699 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
11700 (mcore_function_arg_advance): Likewise.
11701 * config/score/score.c (score_pass_by_reference): Likewise.
11702 (score_function_arg_advance): Likewise.
11703 (score_arg_partial_bytes): Likewise. Make static.
11704 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
11705 * config/arm/arm.c (arm_arg_partial_bytes): Replace
11706 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11707 (arm_function_arg, arm_function_arg_advance): Likewise.
11708 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
11709 * config/pa/pa.c (pa_pass_by_reference): Likewise.
11710 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
11711 (pa_function_arg): Likewise.
11712 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
11713 (mips_function_arg, mips_function_arg_advance): Likewise.
11714 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
11715 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
11716 * config/vax/vax.c (vax_function_arg): Likewise.
11717 (vax_function_arg_advance): Likewise.
11718 * config/h8300/h8300.c (h8300_function_arg): Likewise.
11719 (h8300_function_arg_advance): Likewise.
11720 * config/v850/v850.c (v850_pass_by_reference): Likewise.
11721 (v850_strict_argument_naming, v850_function_arg): Likewise.
11722 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
11723 (v850_setup_incoming_varargs): Likewise.
11724 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
11725 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
11726 (mmix_function_arg, mmix_pass_by_reference): Likewise.
11727 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
11729 * config/bfin/bfin.c (setup_incoming_varargs): Replace
11730 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11731 (bfin_function_arg_advance, bfin_function_arg): Likewise.
11732 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
11733 * calls.c (emit_call_1): Change type of args_so_far to
11734 cumulative_args_t. Changed all callers.
11735 (initialize_argument_information): Likewise.
11736 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
11737 * dse.c (get_call_args): Likewise.
11738 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
11739 * function.c (pass_by_reference, reference_callee_copied): Likewise.
11740 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
11741 New member args_so_far_v. Changed all users.
11742 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
11743 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
11744 * config/mips/mips.c (mips_output_args_xfer): Likewise.
11745 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
11746 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
11747 * config/microblaze/microblaze.c (microblaze_expand_prologue):
11749 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
11750 m32r_pass_by_reference.
11752 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
11754 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
11755 argument to be a VEC of statements.
11756 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
11757 assert that pattern statements have to have their vector type set.
11758 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
11759 Change the first argument to be a VEC of statements. Update
11761 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
11762 (vect_handle_widen_mult_by_const): New function.
11763 (vect_recog_widen_mult_pattern): Change the first argument to be a
11764 VEC of statements. Update documentation. Check that the constant is
11765 INTEGER_CST. Support multiplication by a constant that fits an
11766 intermediate type - call vect_handle_widen_mult_by_const.
11767 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
11768 call. Handle additional pattern statements if necessary.
11770 2011-06-16 Nick Clifton <nickc@redhat.com>
11773 * config.gcc: Set cpu_type to v850 for any V850 architecture.
11774 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
11775 md_file, extra_modes, out_file and extra_options are these are all
11776 deduced from cpu_type.
11778 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
11780 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
11781 truncation mask to 63.
11783 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
11787 * longlong.h: Add AVR support:
11788 (count_leading_zeros): New macro.
11789 (count_trailing_zeros): New macro.
11790 (COUNT_LEADING_ZEROS_0): New macro.
11791 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
11792 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
11793 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
11794 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
11795 (LIB2FUNCS_EXCLUDE): Add _clz.
11796 * config/avr/libgcc.S (XCALL): Move up in file.
11797 (XJMP): New C Macro.
11798 (DEFUN): New asm macro.
11799 (ENDF): New asm macro.
11800 (__ffssi2): New function.
11801 (__ffshi2): New function.
11802 (__loop_ffsqi2): New function.
11803 (__ctzsi2): New function.
11804 (__ctzhi2): New function.
11805 (__clzdi2): New function.
11806 (__clzsi2): New function.
11807 (__clzhi2): New function.
11808 (__paritydi2): New function.
11809 (__paritysi2): New function.
11810 (__parityhi2): New function.
11811 (__parityqi2): New function.
11812 (__popcounthi2): New function.
11813 (__popcountsi2): New function.
11814 (__popcountdi2): New function.
11815 (__popcountqi2): New function.
11816 (__bswapsi2): New function.
11817 (__bswapdi2): New function.
11818 (__ashldi3): New function.
11819 (__ashrdi3): New function.
11820 (__lshrdi3): New function.
11821 Fix suspicous lines.
11823 2011-06-16 Richard Guenther <rguenther@suse.de>
11825 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
11826 the same as x != 0.
11827 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
11829 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
11830 equality compares against zero for the lower bit.
11832 2011-06-16 Jakub Jelinek <jakub@redhat.com>
11834 PR tree-optimization/49419
11835 * tree-vrp.c (execute_vrp): Call init_range_assertions
11836 before estimate_numbers_of_iterations, call
11837 free_number_of_iterations_estimates before calling
11838 remove_range_assertions.
11840 2011-06-16 Revital Eres <revital.eres@linaro.org>
11842 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
11843 (struct partial_schedule): Add rows_length field.
11844 (verify_partial_schedule): Check rows_length.
11845 (ps_insert_empty_row): Handle rows_length.
11846 (create_partial_schedule): Likewise.
11847 (free_partial_schedule): Likewise.
11848 (reset_partial_schedule): Likewise.
11849 (create_ps_insn): Remove rest_count argument.
11850 (remove_node_from_ps): Update rows_length.
11851 (add_node_to_ps): Update rows_length and call create_ps_insn
11852 without passing row_rest_count.
11853 (rotate_partial_schedule): Update rows_length.
11855 2011-06-16 Revital Eres <revital.eres@linaro.org>
11857 * ddg.c (add_intra_loop_mem_dep): New function.
11858 (build_intra_loop_deps): Call it.
11860 2011-06-13 Jeff Law <law@redhat.com>
11862 * df-problems.c (df_lr_local_compute): Manually CSE
11863 PIC_OFFSET_TABLE_REGNUM.
11864 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
11865 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
11867 2011-06-13 Jan Hubicka <jh@suse.cz>
11869 * cgraphunit.c (handle_alias_pairs): New function.
11870 (cgraph_finalize_compilation_unit): Use it.
11871 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
11872 as externally visible.
11874 2011-06-15 Richard Guenther <rguenther@suse.de>
11876 * expr.c (expand_expr_real_2): Reduce all integral types to
11877 bitfield precision.
11878 (expand_expr_real_1): Likewise.
11880 2011-06-15 Martin Jambor <mjambor@suse.cz>
11882 PR tree-optimization/48613
11883 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
11884 ipa_node_params_vector is NULL.
11886 2011-06-15 Jakub Jelinek <jakub@redhat.com>
11889 * dwarf2out.c (dw_loc_list_node): Add force field.
11890 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
11891 location in the list, even if it is modified before first real insn.
11892 (output_loc_list): Emit empty ranges with force flag set.
11893 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
11895 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
11898 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
11899 (fence_to_rewind). Use it to notice when bookkeeping will be placed
11900 above a fence. Update comments.
11901 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
11902 placed just above it. Do not allow NULL place_to_insert.
11904 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
11906 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
11907 (slpeel_tree_peel_loop_to_edge): Don't call
11908 remove_dead_stmts_from_loop.
11909 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
11910 remove irrelevant pattern statements. For irrelevant statements
11911 check if it is the last statement of a detected pattern, use
11912 corresponding pattern statement instead.
11913 (destroy_loop_vec_info): No need to remove pattern statements,
11914 only free stmt_vec_info.
11915 (vect_transform_loop): For irrelevant statements check if it is
11916 the last statement of a detected pattern, use corresponding
11917 pattern statement instead.
11918 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
11919 pattern statements. Set basic block for the new statement.
11920 (vect_pattern_recog): Update documentation.
11921 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
11922 operands of pattern statements.
11923 (vectorizable_call): Fix printing. In case of a pattern statement
11924 use the lhs of the original statement when creating a dummy
11925 statement to replace the original call.
11926 (vect_analyze_stmt): For irrelevant statements check if it is
11927 the last statement of a detected pattern, use corresponding
11928 pattern statement instead.
11929 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
11930 statements use gsi of the original statement.
11932 2011-06-14 Joseph Myers <joseph@codesourcery.com>
11934 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
11935 common/common-target-def.h.
11936 * target.def (default_target_flags, handle_option,
11937 supports_split_stack, optimization_table, init_struct,
11938 except_unwind_info, unwind_tables_default, have_named_sections):
11939 Move to common/common-target.def.
11940 * target.h (enum opt_levels, struct default_options): Move to
11941 common/common-target.h.
11942 * targhooks.c (default_except_unwind_info,
11943 dwarf2_except_unwind_info, sjlj_except_unwind_info,
11944 default_target_handle_option, empty_optimization_table): Move to
11945 common/common-targhooks.c.
11946 * targhooks.h (default_except_unwind_info,
11947 dwarf2_except_unwind_info, sjlj_except_unwind_info,
11948 default_target_handle_option, empty_optimization_table): Move to
11949 common/common-targhooks.h.
11950 * common/common-target-def.h: Include common/common-targhooks.h.
11951 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
11953 * common/common-target.def (handle_option, option_init_struct,
11954 option_optimization_table, default_target_flags,
11955 except_unwind_info, supports_split_stack, unwind_tables_default,
11956 have_named_sections): Move from target.def.
11957 (HOOK_PREFIX): Undefine at end of file.
11958 * common/common-target.h: Include input.h.
11959 (enum opt_levels, struct default_options): Move from target.h.
11960 * common/common-targhooks.c, common/common-targhooks.h: New.
11961 * config.gcc (target_has_targetm_common): Default to yes.
11962 (moxie*): Set target_has_targetm_common=no.
11963 (hppa*-*-*): Don't set target_has_targetm_common=yes.
11964 * doc/tm.texi: Regenerate.
11965 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
11966 (C_TARGET_DEF_H): Add common/common-targhooks.h.
11967 (GCC_OBJS): Remove vec.o.
11968 (OBJS): Remove hooks.o and vec.o.
11969 (OBJS-libcommon-target): Add vec.o, hooks.o and
11970 common/common-targhooks.o.
11971 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
11972 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
11973 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
11974 cfglayout.o, $(out_object_file), $(common_out_object_file)):
11975 Update dependencies.
11976 (common/common-targhooks.o): New.
11977 * common/config/default-common.c: Include tm.h. Add FIXME comment.
11978 * common/config/pa/pa-common.c: Include more headers. Take
11979 copyright dates from pa.c.
11980 (pa_option_optimization_table, pa_handle_option,
11981 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
11982 TARGET_HANDLE_OPTION): Move from pa.c.
11983 * common/config/alpha/alpha-common.c,
11984 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
11985 common/config/bfin/bfin-common.c,
11986 common/config/cris/cris-common.c,
11987 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
11988 common/config/h8300/h8300-common.c,
11989 common/config/i386/i386-common.c,
11990 common/config/ia64/ia64-common.c,
11991 common/config/iq2000/iq2000-common.c,
11992 common/config/lm32/lm32-common.c,
11993 common/config/m32c/m32c-common.c,
11994 common/config/m32r/m32r-common.c,
11995 common/config/m68k/m68k-common.c,
11996 common/config/mcore/mcore-common.c,
11997 common/config/mep/mep-common.c,
11998 common/config/microblaze/microblaze-common.c,
11999 common/config/mips/mips-common.c,
12000 common/config/mmix/mmix-common.c,
12001 common/config/mn10300/mn10300-common.c,
12002 common/config/pdp11/pdp11-common.c,
12003 common/config/picochip/picochip-common.c,
12004 common/config/rs6000/rs6000-common.c,
12005 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
12006 common/config/score/score-common.c, common/config/sh/sh-common.c,
12007 common/config/sparc/sparc-common.c,
12008 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
12009 common/config/vax/vax-common.c,
12010 common/config/xstormy16/xstormy16-common.c,
12011 common/config/xtensa/xtensa-common.c: New.
12012 * config/alpha/alpha.c: Include common/common-target.h.
12013 (alpha_option_optimization_table, alpha_handle_option,
12014 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12015 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
12016 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
12017 * config/arm/arm.c (arm_option_optimization_table,
12018 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
12019 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
12021 * config/avr/avr.c (avr_option_optimization_table,
12022 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
12024 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
12025 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
12026 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
12027 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
12028 * config/cris/cris.c (cris_option_optimization_table,
12029 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12030 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
12032 * config/fr30/fr30.c (fr30_option_optimization_table,
12033 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
12035 * config/frv/frv.c (frv_option_optimization_table,
12036 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
12037 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
12038 * config/h8300/h8300.c (h8300_option_optimization_table,
12039 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
12040 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
12041 * config/i386/i386-protos.h (ix86_handle_option): Declare.
12042 * config/i386/i386.c: Include common/common-target.h.
12043 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
12044 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
12045 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
12046 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
12047 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
12048 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
12049 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
12050 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
12051 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
12052 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
12053 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
12054 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
12055 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
12056 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
12057 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
12058 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
12059 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
12060 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
12061 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
12062 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
12063 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
12064 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
12065 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
12066 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
12067 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
12068 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
12069 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
12070 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
12071 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
12072 ix86_option_optimization_table, ix86_option_init_struct,
12073 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
12074 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
12075 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
12077 * config/i386/t-i386 (i386.o): Update dependencies.
12078 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
12079 * config/ia64/ia64.c (ia64_option_optimization_table,
12080 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
12081 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12082 ia64_handle_option): Move to ia64-common.c.
12083 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
12084 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
12085 * config/lm32/lm32.c (lm32_option_optimization_table,
12086 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
12088 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
12090 * config/m32r/m32r.c (m32r_option_optimization_table,
12091 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12092 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
12093 m32r_handle_option): Move to m32r-common.c.
12094 (m32r_memory_move_cost): Remove comment referring to
12095 TARGET_HANDLE_OPTION.
12096 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
12097 Move to m68k-common.c.
12098 * config/mcore/mcore.c (mcore_option_optimization_table,
12099 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
12100 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
12101 * config/mep/mep.c (mep_option_optimization_table,
12102 mep_handle_option, TARGET_HANDLE_OPTION,
12103 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
12104 Move to mep-common.c.
12105 * config/microblaze/microblaze.c
12106 (microblaze_option_optimization_table,
12107 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
12108 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
12109 * config/mips/mips.c (mips_handle_option,
12110 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
12111 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
12113 * config/mmix/mmix.c (mmix_option_optimization_table,
12114 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
12115 Move to mmix-common.c.
12116 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
12117 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
12118 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12119 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
12120 * config/pa/pa.c: Include common/common-target.h.
12121 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
12122 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12123 pa_handle_option): Move to pa-common.c.
12124 (pa_option_override): Use targetm_common.except_unwind_info.
12125 (pa_asm_output_mi_thunk, pa_function_section): Use
12126 targetm_common.have_named_sections.
12127 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
12128 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12129 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
12130 pdp11_handle_option, pdp11_option_init_struct): Move to
12132 * config/picochip/picochip.c (picochip_option_optimization_table,
12133 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
12134 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
12135 * config/rs6000/rs6000.c: Include common/common-target.h.
12136 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
12137 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
12138 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
12139 rs6000_handle_option): Move to rs6000-common.c.
12140 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
12141 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
12142 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
12143 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
12144 * config/s390/s390.c (processor_flags_table,
12145 s390_option_optimization_table, s390_option_init_struct,
12146 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
12147 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
12148 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
12149 * config/s390/s390.h (processor_flags_table): Declare.
12150 * config/score/score.c (score_option_optimization_table,
12151 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12152 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
12153 score_handle_option): Move to score-common.c.
12154 * config/sh/sh.c (sh_option_optimization_table,
12155 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
12156 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12157 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
12158 * config/sparc/sparc.c: Include common/common-target.h.
12159 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
12160 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
12161 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
12162 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
12163 spu_option_init_struct): Move to spu-common.c.
12164 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
12165 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
12166 * config/v850/v850.c (small_memory_physical_max,
12167 v850_handle_memory_optionn v850_handle_option,
12168 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
12169 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
12171 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
12172 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
12173 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
12174 Move to xtensa-common.c.
12175 * cfglayout.c: Include common/common-target.h.
12176 (fixup_reorder_chain): Use targetm_common.have_named_sections.
12177 * cfgrtl.c: Include common/common-target.h.
12178 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
12179 targetm_common.have_named_sections.
12180 * dbxout.c: Include common/common-target.h.
12181 (dbxout_function_end): Use targetm_common.have_named_sections.
12182 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
12183 targetm_common.except_unwind_info.
12184 * dwarf2out.c: Include common/common-target.h.
12185 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
12186 dwarf2out_begin_prologue, dwarf2out_frame_init,
12187 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
12188 targetm_common.except_unwind_info.
12189 * except.c: Include common/common-target.h.
12190 (init_eh, finish_eh_generation,
12191 output_one_function_exception_table): Use
12192 targetm_common.except_unwind_info.
12193 (switch_to_exception_section): Use targetm_common.have_named_sections.
12194 * explow.c: Include common/common-target.h.
12195 * expr.c: Include common/common-target.h.
12196 (build_personality_function): Use targetm_common.except_unwind_info.
12197 * function.c: Include common/common-target.h.
12198 (expand_function_end): Use targetm_common.except_unwind_info.
12199 * haifa-sched.c: Include common/common-target.h.
12200 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
12201 * lto-opts.c: Include common/common-target.h instead of target.h.
12202 (lto_reissue_options): Use targetm_common.handle_option.
12203 * opts.c: Include common/common-target.h.
12204 (target_handle_option): Use targetm_common.handle_option.
12205 (init_options_struct): Update comment referring to
12206 targetm.target_option.optimization. Use
12207 targetm_common.default_target_flags,
12208 targetm_common.unwind_tables_default and
12209 targetm_common.option_init_struct.
12210 (default_options_optimization): Use
12211 targetm_common.option_optimization_table.
12212 (finish_options): Use targetm_common.except_unwind_info,
12213 targetm_common.unwind_tables_default,
12214 targetm_common.have_named_sections and
12215 targetm_common.supports_split_stack.
12216 * toplev.c: Include common/common-target.h.
12217 (process_options): Use targetm_common.have_named_sections.
12218 * tree-tailcall.c: Include common/common-target.h.
12219 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
12220 * tree.c: Include common/common-target.h.
12221 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
12222 * varasm.c: Include common/common-target.h.
12223 (resolve_unique_section, hot_function_section,
12224 default_function_section): Use targetm_common.have_named_sections.
12226 2011-06-14 Easwaran Raman <eraman@google.com>
12228 PR rtl-optimization/44194
12229 * dse.c: Include tree-flow.h
12230 (insn_info): Add new field non_frame_wild_read.
12231 (group_info): Add new fields escaped_n and escaped_p.
12232 (kill_on_calls): New variable.
12233 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
12234 (dse_step0): Initialize kill_on_calls.
12235 (can_escape): New function.
12236 (set_usage_bits): Add additional parameter; record information
12237 about escaped locations.
12238 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
12239 (dse_step2_nospill): Set kill_on_calls based on
12240 group->escaped_n and group->escaped_n.
12241 (add_wild_read): Refactor into...
12242 (reset_active_stores): ... New function, and
12243 (free_read_records): ... New function.
12244 (add_non_frame_wild_read): New function.
12245 (scan_insn): Call add_non_frame_wild_read on non-const calls.
12246 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
12247 (dse_step5_nospill): Call scan_reads_nospill for instructions
12248 marked as non_frame_wild_read.
12249 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
12251 2011-06-14 Joseph Myers <joseph@codesourcery.com>
12253 * common/common-target-def.h, common/common-target.def,
12254 common/common-target.h, common/config/default-common.c,
12255 common/config/pa/pa-common.c: New files.
12256 * Makefile.in (common_out_file, common_out_object_file,
12257 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
12258 (OBJS-libcommon-target): Include $(common_out_object_file).
12259 (prefix.o): Update dependencies.
12260 ($(common_out_object_file), common/common-target-hooks-def.h,
12261 s-common-target-hooks-def-h): New.
12262 (s-tm-texi): Also check timestamp on common-target.def.
12263 (build/genhooks.o): Update dependencies.
12264 * config.gcc (common_out_file, target_has_targetm_common): Define.
12265 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
12266 TARGET_ALWAYS_STRIP_DOTDOT.
12267 * configure.ac (common_out_object_file): Define.
12268 (common_out_file, common_out_object_file): Substitute.
12269 (common): Create directory.
12270 * configure: Regenerate.
12271 * doc/tm.texi.in (targetm_common): Document.
12272 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
12273 * doc/tm.texi: Regenerate.
12274 * genhooks.c (hook_array): Also include common/common-target.def.
12275 * prefix.c (tm.h): Don't include.
12276 (common/common-target.h): Include.
12277 (ALWAYS_STRIP_DOTDOT): Don't define.
12278 (update_path): Use targetm_common.always_strip_dotdot instead of
12279 ALWAYS_STRIP_DOTDOT.
12280 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
12282 2011-06-14 David Li <davidxl@google.com>
12284 * passes.c (execute_function_todo): Remove TODO_dump_func.
12285 (execute_one_pass): Remove TODO_dump_func.
12286 (execute_function_dump): New function.
12287 * tree-vrp.c: Remove TODO_dump_func.
12288 * regrename.c: Remove TODO_dump_func.
12289 * fwprop.c: Remove TODO_dump_func.
12290 * tree-into-ssa.c: Remove TODO_dump_func.
12291 * tree-complex.c: Remove TODO_dump_func.
12292 * tracer.c: Remove TODO_dump_func.
12293 * tree-loop-distribution.c: Remove TODO_dump_func.
12294 * postreload-gcse.c: Remove TODO_dump_func.
12295 * postreload.c: Remove TODO_dump_func.
12296 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
12297 * tree-tailcall.c: Remove TODO_dump_func.
12298 * ipa-cp.c: Remove TODO_dump_func.
12299 * final.c: Remove TODO_dump_func.
12300 * tree-emutls.c: Remove TODO_dump_func.
12301 * omp-low.c: Remove TODO_dump_func.
12302 * tree-ssa-dse.c: Remove TODO_dump_func.
12303 * tree-ssa-uncprop.c: Remove TODO_dump_func.
12304 * auto-inc-dec.c: Remove TODO_dump_func.
12305 * reorg.c: Remove TODO_dump_func.
12306 * tree-ssa-copyrename.c: Remove TODO_dump_func.
12307 * tree-ssa-ccp.c: Remove TODO_dump_func.
12308 * compare-elim.c: Remove TODO_dump_func.
12309 * mode-switching.c: Remove TODO_dump_func.
12310 * modulo-sched.c: Remove TODO_dump_func.
12311 * tree-call-cdce.c: Remove TODO_dump_func.
12312 * cse.c: Remove TODO_dump_func.
12313 * web.c: Remove TODO_dump_func.
12314 * tree-stdarg.c: Remove TODO_dump_func.
12315 * lto-streamer-out.c: Remove TODO_dump_func.
12316 * tree-ssa-math-opts.c: Remove TODO_dump_func.
12317 * tree-ssa-dom.c: Remove TODO_dump_func.
12318 * tree-nrv.c: Remove TODO_dump_func.
12319 * loop-init.c: Remove TODO_dump_func.
12320 * gimple-low.c: Remove TODO_dump_func.
12321 * ipa-inline.c: Remove TODO_dump_func.
12322 * tree-ssa-sink.c: Remove TODO_dump_func.
12323 * jump.c: Remove TODO_dump_func.
12324 * ifcvt.c: Remove TODO_dump_func.
12325 * tree-ssa-loop.c: Remove TODO_dump_func.
12326 * recog.c: Remove TODO_dump_func.
12327 * dse.c: Remove TODO_dump_func.
12328 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
12329 * matrix-reorg.c: Remove TODO_dump_func.
12330 * tree-eh.c: Remove TODO_dump_func.
12331 * regmove.c: Remove TODO_dump_func.
12332 * function.c: Remove TODO_dump_func.
12333 * tree-vectorizer.c: Remove TODO_dump_func.
12334 * ipa-split.c: Remove TODO_dump_func.
12335 * gcse.c: Remove TODO_dump_func.
12336 * tree-if-conv.c: Remove TODO_dump_func.
12337 * init-regs.c: Remove TODO_dump_func.
12338 * tree-ssa-phiopt.c: Remove TODO_dump_func.
12339 * implicit-zee.c: Remove TODO_dump_func.
12340 * lower-subreg.c: Remove TODO_dump_func.
12341 * bt-load.c: Remove TODO_dump_func.
12342 * tree-dfa.c: Remove TODO_dump_func.
12343 * except.c: Remove TODO_dump_func.
12344 * emit-rtl.c: Remove TODO_dump_func.
12345 * store-motion.c: Remove TODO_dump_func.
12346 * cfgexpand.c: Remove TODO_dump_func.
12347 * tree-cfgcleanup.c: Remove TODO_dump_func.
12348 * cfgcleanup.c: Remove TODO_dump_func.
12349 * tree-ssa-pre.c: Remove TODO_dump_func.
12350 * tree-sra.c: Remove TODO_dump_func.
12351 * tree-mudflap.c: Remove TODO_dump_func.
12352 * tree-ssa-copy.c: Remove TODO_dump_func.
12353 * cfglayout.c: Remove TODO_dump_func.
12354 * tree-ssa-forwprop.c: Remove TODO_dump_func.
12355 * tree-ssa-dce.c: Remove TODO_dump_func.
12356 * ira.c: Remove TODO_dump_func.
12357 * tree-ssa.c: Remove TODO_dump_func.
12358 * integrate.c: Remove TODO_dump_func.
12359 * tree-optimize.c: Remove TODO_dump_func.
12360 * tree-ssa-phiprop.c: Remove TODO_dump_func.
12361 * tree-object-size.c: Remove TODO_dump_func.
12362 * combine.c: Remove TODO_dump_func.
12363 * bb-reorder.c: Remove TODO_dump_func.
12364 * cprop.c: Remove TODO_dump_func.
12365 * var-tracking.c: Remove TODO_dump_func.
12366 * tree-profile.c: Remove TODO_dump_func.
12367 * tree-vect-generic.c: Remove TODO_dump_func.
12368 * reg-stack.c: Remove TODO_dump_func.
12369 * sched-rgn.c: Remove TODO_dump_func.
12370 * tree-ssa-structalias.c: Remove TODO_dump_func.
12371 * tree-switch-conversion.c: Remove TODO_dump_func.
12372 * tree-cfg.c: Remove TODO_dump_func.
12373 * tree-ssa-reassoc.c: Remove TODO_dump_func.
12374 * combine-stack-adj.c: Remove TODO_dump_func.
12375 * dce.c: Remove TODO_dump_func.
12376 * tree-ssanames.c: Remove TODO_dump_func.
12377 * regcprop.c: Remove TODO_dump_func.
12379 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
12381 PR middle-end/47364
12382 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
12383 and properly handle result not in Pmode.
12385 2011-06-14 Robert Millan <rmh@gnu.org>
12387 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
12388 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
12391 * config/i386/kfreebsd-gnu64.h: New file.
12392 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
12393 with `i386/kfreebsd-gnu64.h'.
12395 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
12396 (GNU_USER_LINK_EMULATION64): New macros.
12397 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
12398 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
12399 of hardcoding `elf_i386' and `elf_x86_64'.
12401 2011-06-14 Nick Clifton <nickc@redhat.com>
12404 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
12407 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
12409 2011-06-14 Jakub Jelinek <jakub@redhat.com>
12412 * tree.h (DECL_NONSHAREABLE): Define.
12413 (struct tree_decl_common): Change decl_common_unused to
12414 decl_nonshareable_flag.
12415 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
12416 Ignore vars with DECL_NONSHAREABLE bit set.
12417 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
12418 on stores to automatic aggregate vars.
12420 PR rtl-optimization/49390
12422 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
12424 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
12427 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
12428 Tom de Vries <tom@codesourcery.com>
12431 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
12432 Document changed semantics.
12433 (max_stmt_executions, max_stmt_executions_int): Declare.
12434 * tree-data-ref.c (estimated_loop_iterations)
12435 (estimated_loop_iterations_int): Move functions...
12436 * tree-ssa-loop-niter.c (estimated_loop_iterations)
12437 (estimated_loop_iterations_int): here.
12438 (record_estimate): Change nb_iterations_upper_bound and
12439 nb_iterations_estimate semantics.
12440 (max_stmt_executions, max_stmt_executions_int): New function.
12441 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
12442 (max_stmt_executions_tree): this.
12443 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
12444 estimated_loop_iterations_tree.
12445 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
12446 max_stmt_executions_int instead of estimated_loop_iterations_int.
12447 * predict.c (predict_loops): Idem.
12448 * tree-parloops.c (parallelize_loops): Idem.
12449 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
12450 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
12451 (init_omega_for_ddr_1): Idem.
12452 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
12453 (loop_prefetch_arrays): Idem
12454 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
12455 max_stmt_executions instead of estimated_loop_iterations.
12456 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
12457 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
12458 instead of nb_iterations_upper_bound.
12460 2011-06-13 Jan Hubicka <jh@suse.cz>
12462 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
12464 2011-06-14 Richard Henderson <rth@redhat.com>
12467 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
12468 (based_loc_descr): Assert it's true.
12469 (compute_frame_pointer_to_fb_displacement): Set it, rather than
12470 aborting immediately.
12472 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
12473 Mingfeng Wu <mingfeng@faraday-tech.com>
12475 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
12477 2011-06-13 Jan Hubicka <jh@suse.cz>
12479 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
12481 2011-06-13 Jan Hubicka <jh@suse.cz>
12483 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
12484 similarly to DECL_COMDAT.
12485 * cgraphunit.c (cgraph_analyze_function): Likewise.
12486 * ipa.c (function_and_variable_visibility): Likewise.
12488 2011-06-13 Jan Hubicka <jh@suse.cz>
12490 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
12491 BINFO_VIRTUALS when streaming for ltrans unit.
12493 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
12495 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
12496 (movdi_internal64): Same.
12498 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
12501 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
12502 a set of similar patterns, where the MATCH_OPERAND for the function
12503 argument is replaced with individual references to hardware registers.
12504 (save_fpregs_<mode>): Ditto
12505 (restore_gpregs_<mode>): Ditto
12506 (return_and_restore_gpregs_<mode>): Ditto
12507 (return_and_restore_fpregs_<mode>): Ditto
12508 (return_and_restore_fpregs_aix_<mode>): Ditto
12510 2011-06-13 Jan Hubicka <jh@suse.cz>
12512 * ipa-utils.c (postorder_stack): New structure.
12513 (ipa_reverse_postorder): Handle aliases.
12515 2011-06-13 Jan Hubicka <jh@suse.cz>
12517 * ipa-inline.c (reset_edge_caches): Walk aliases.
12518 (update_caller_keys): Do not test inlinability of aliases.
12519 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
12520 (do_estimate_growth): Fix typo.
12522 2011-06-13 Jan Hubicka <jh@suse.cz>
12524 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
12525 (can_remove_node_now_p): ... here; handle same comdat groups.
12526 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
12527 (inline_call): Update use of can_remove_node_now_p.
12529 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
12531 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
12532 condition to disallow non-identical memory locations.
12533 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
12534 preference to bit manipulation instructions.
12536 2011-06-13 Jan Hubicka <jh@suse.cz>
12538 * cgraph.c (cgraph_for_node_thunks_and_aliases,
12539 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
12540 (nonremovable_p): New function.
12541 (cgraph_can_remove_if_no_direct_calls_p): New function.
12542 (used_from_object_file_p): New functoin.
12543 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
12544 references from aliases.
12545 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
12546 * ipa-inline.c (check_caller_edge): New function.
12547 (want_inline_function_called_once_p): Use it; accept aliases called
12549 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
12551 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12554 * config/arm/neon.md (vec_pack_trunc): Set the lengths
12555 correctly for the case with Quad vectors.
12557 2011-06-13 Jakub Jelinek <jakub@redhat.com>
12558 Ira Rosen <ira.rosen@linaro.org>
12560 PR tree-optimization/49352
12561 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
12562 all, make sure loop_use_stmt after the loop is a def stmt of a used
12563 SSA_NAME that is the only one defined inside of the loop. Don't
12564 check for COND_EXPR and GIMPLE_BINARY_RHS.
12565 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
12566 check_reduction is true.
12568 2011-06-11 Jan Hubicka <jh@suse.cz>
12570 PR middle-end/49373
12571 * ipa.c (cgraph_externally_visible_p): Check resolution info.
12573 2011-06-11 Jan Hubicka <jh@suse.cz>
12575 PR middle-end/48836
12576 * ipa-inline-transform.c: Include tree-pass.h
12577 (inline_transform): Set TODO_update_ssa_only_virtuals.
12578 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
12580 2011-06-11 Jan Hubicka <jh@suse.cz>
12582 PR middle-end/49378
12583 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
12584 aliases and thunks.
12586 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
12588 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
12589 Take number of iterations to peel into account for equally frequent
12590 misalignment values.
12592 2011-06-11 Jan Hubicka <jh@suse.cz>
12594 * lto-streamer-out.c (produce_symtab): Stream out the newly
12595 represented aliases.
12597 2011-06-11 Jan Hubicka <jh@suse.cz>
12599 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
12601 (ipa_update_after_lto_read): Likewise.
12602 (ipa_write_node_info): Do not sream call_with_var_arguments.
12603 (ipa_read_node_info): Likewise.
12605 2011-06-11 Jan Hubicka <jh@suse.cz>
12607 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
12609 2011-06-11 Jan Hubicka <jh@suse.cz>
12611 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
12612 (lto_symtab_resolve_can_prevail_p): Likewise.
12613 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
12614 * cgraph.c (same_body_aliases_done): New global var.
12615 (cgraph_same_body_alias_1): Rename to ...
12616 (cgraph_create_function_alias): ... this one; reorg to new
12618 (cgraph_same_body_alias): Use cgraph_create_function_alias;
12619 record references when asked to.
12620 (cgraph_add_thunk): Fix formating.
12621 (cgraph_get_node): Kill same body alias code.
12622 (cgraph_node_for_asm): Likewise.
12623 (cgraph_remove_same_body_alias): Remove.
12624 (cgraph_remove_node): Kill same body alias code.
12625 (cgraph_mark_address_taken_node): Mark also the aliased function
12626 as having address taken.
12627 (dump_cgraph_node): Dump same body aliases.
12628 (cgraph_for_node_thunks_and_aliases): Update for new alias
12630 (cgraph_for_node_and_aliases): Likewise.
12631 * cgraph.h (same_body): Kll pointer.
12632 (same_body_alias): Update comment.
12633 (same_body_aliases_done): Declare.
12634 (cgraph_remove_same_body_alias): Remove declaration.
12635 (cgraph_create_function_alias): Declare.
12636 (cgraph_process_same_body_aliases): Declare.
12637 (cgraph_function_with_gimple_body_p): Check for alias.
12638 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
12639 (cgraph_alias_aliased_node): New function.
12640 (cgraph_function_node): Update for new aliases.
12641 (cgraph_function_or_thunk_node): Likewise.
12642 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
12643 (inline_call): Remove dead aliases.
12644 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
12645 name hack for same body aliases.
12646 (clone_of_p): Look through aliases.
12647 (verify_cgraph_node): Verify aliases.
12648 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
12649 (cgraph_process_same_body_aliases): New function.
12650 (process_function_and_variable_attributes): Disable weakref warning on
12652 (cgraph_analyze_functions): Handle aliases.
12653 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
12654 (assemble_thunks): Rename to ...
12655 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
12656 (cgraph_expand_function): Remove alias output code.
12657 (cgraph_output_in_order): Skip aliases.
12658 (cgraph_preserve_function_body_p): Aliases don't need preserving.
12659 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
12660 (ipa_record_reference): Do not assert on alias references.
12661 (ipa_ref_has_aliases_p): New function.
12662 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
12663 (ipa_ref_has_aliases_p): Declare.
12664 * lto-cgraph.c (lto_output_node): Handle aliases.
12665 (input_node): Likewise.
12666 * lto-streamer-out.c (lto_output): Skip aliases.
12667 (produce_symtab): Kill same_body_alias code.
12668 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
12669 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
12670 * ipa-inline.c (update_caller_keys): Walk aliases.
12671 (inline_small_functions): Fix thinko in previous patch.
12672 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
12673 (function_and_variable_visibility): Do not walk same body aliases.
12674 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
12675 (ipa_pta_execute): Use it.
12677 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
12679 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
12680 (*vec_dupv2df): Rename from vec_dupv2df.
12681 (vec_dupv2df): New expander.
12683 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
12685 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
12687 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
12689 * config/i386/i386.md: Use default value in "isa" attribute.
12690 * config/i386/sse.md: Ditto.
12691 * config/i386/mmx.md: Ditto.
12693 2011-06-10 Wei Guozhi <carrot@google.com>
12696 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
12697 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
12698 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
12700 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
12702 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
12703 (arm_legitimate_ldrd_p): New prototype.
12704 (arm_output_ldrd): New prototype.
12705 * config/arm/arm.c (arm_check_ldrd_operands): New function.
12706 (arm_legitimate_ldrd_p): New function.
12707 (arm_output_ldrd): New function.
12709 2011-06-10 David Li <davidxl@google.com>
12711 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
12712 * passes.c (passr_eq): New function.
12713 (create_pass_tab): New function.
12714 (pass_traverse): New function.
12715 (dump_one_pass): New function.
12716 (dump_pass_list): New function.
12717 (dump_passes): New function.
12719 2011-06-10 Jan Hubicka <jh@suse.cz>
12721 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
12722 setting the nothrow flag.
12723 * ipa-reference.c (propagate): Skip aliases.
12724 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
12725 (propagate_nothrow): Skip aliases; do not update cgraph.
12726 (local_pure_const): Do not update cgraph.
12727 * tree-profile.c (tree_profiling): Do fixup_cfg.
12729 2011-06-10 Jan Hubicka <jh@suse.cz>
12731 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
12732 (cgraph_local_node_p): ... here; handle aliases.
12733 (has_addr_references_p): Break out from ...;
12734 (cgraph_remove_unreachable_nodes) ... here.
12736 2011-06-10 Jan Hubicka <jh@suse.cz>
12738 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
12739 * common.opt (flag_inline_functions_called_once): Do not
12742 2011-06-10 Jan Hubicka <jh@suse.cz>
12744 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
12745 (ipcp_initialize_node_lattices): Do not deal with aliases;
12746 Do not try to propagate through thunks.
12747 (ipcp_change_tops_to_bottom): Do not deal with aliases.
12749 2011-06-10 Jan Hubicka <jh@suse.cz>
12751 * ipa-prop.c (ipa_write_node_info): Stream jump functions
12752 for indirect calls.
12753 (ipa_read_node_info): Likewise.
12755 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12758 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
12759 (build_and_insert_call): Likewise.
12760 (build_and_insert_ref): New.
12761 (gimple_expand_builtin_pow): Minor cleanup.
12762 (gimple_expand_builtin_cabs): New.
12763 (execute_cse_sincos): Add case for BUILT_IN_CABS.
12765 2011-06-10 Jan Hubicka <jh@suse.cz>
12767 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
12768 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
12769 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
12770 (ipcp_propagate_stage): Skip aliases when propagating.
12771 (ipcp_need_redirect_p): Skip aliases.
12772 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
12773 collect_callers_of_node.
12774 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
12776 (ipa_compute_jump_functions): Look through aliases.
12778 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12780 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
12782 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
12784 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
12786 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
12788 2011-06-10 Jan Hubicka <jh@suse.cz>
12790 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
12791 Update call of gimple_get_virt_method_for_binfo.
12792 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
12793 refuse_thunks parameter.
12794 (gimple_fold_call): Update.
12795 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
12797 2011-06-10 Jan Hubicka <jh@suse.cz>
12799 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
12800 (not_all_callers_have_enough_arguments_p): ... this one; turn into
12801 worker for cgraph_for_node_and_aliases.
12802 (convert_callers_for_node): Break out from ...
12803 (convert_callers): ... here.
12804 (modify_function): Use collect_callers_of_node.
12805 (ipa_early_sra): Use cgraph_for_node_and_aliases.
12807 2011-06-10 Richard Guenther <rguenther@suse.de>
12809 PR tree-optimization/49361
12810 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
12811 when not already in gimple form.
12813 2011-06-10 Richard Guenther <rguenther@suse.de>
12816 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
12817 FOR_EACH_PHI_OR_STMT_USE.
12819 2011-06-10 Jan Hubicka <jh@suse.cz>
12821 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
12822 (clone_inlined_nodes): ... here.
12823 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
12824 to real destination prior inlining.
12825 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
12826 can_early_inline_edge_p, want_early_inline_function_p,
12827 want_early_inline_function_p, want_inline_small_function_p,
12828 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
12829 edge_badness, update_all_callee_keys, lookup_recursive_calls,
12830 add_new_edges_to_heap, inline_small_functions, flatten_function,
12831 inline_always_inline_functions, early_inline_small_functions): Use
12832 cgraph_function_or_thunk_node.
12833 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
12834 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
12835 (do_estimate_edge_growth_1): Break out from ...
12836 (do_estimate_growth) ... here; walk aliases.
12837 (inline_generate_summary): Skip aliases.
12839 2011-06-10 Richard Guenther <rguenther@suse.de>
12841 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
12842 forward when combining, visit inserted stmts when a stmt was changed.
12844 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
12846 * tree.h (error_operand_p): Add.
12847 * dbxout.c (dbxout_type_fields): Use the latter.
12848 * c-decl.c (add_stmt): Likewise.
12849 * gimplify.c (omp_add_variable, omp_notice_variable,
12850 gimplify_scan_omp_clauses): Likewise.
12852 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
12854 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
12855 when a value is actually passed in regs.
12857 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
12858 Laurent Rougé <laurent.rouge@menta.fr>
12860 * doc/invoke.texi (SPARC options): Add -mflat.
12861 * config/sparc/sparc.opt: Likewise.
12862 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
12863 (sparc_flat_expand_prologue): Declare.
12864 (sparc_flat_expand_epilogue): Likewise.
12865 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
12866 (CPP_ENDIAN_SPEC): Replace with...
12867 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
12868 (CPP_SPEC): Adjust to above change.
12869 (EXTRA_SPECS): Likewise.
12870 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
12871 (INCOMING_REGNO): Likewise.
12872 (OUTGOING_REGNO): Likewise.
12873 (LOCAL_REGNO): Likewise.
12874 (SETUP_FRAME_ADDRESSES): Likewise.
12875 (FIXED_REGISTERS): Set 0 for %fp.
12876 (CALL_USED_REGISTERS): Likewise.
12877 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
12878 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
12879 (RETURN_ADDR_REGNUM): Define.
12880 (RETURN_ADDR_RTX): Use it.
12881 (INCOMING_RETURN_ADDR_REGNUM): Define.
12882 (INCOMING_RETURN_ADDR_RTX): Use it.
12883 (DWARF_FRAME_RETURN_COLUMN): Likewise.
12884 (EH_RETURN_REGNUM): Define.
12885 (EH_RETURN_STACKADJ_RTX): Use it.
12886 (EH_RETURN_HANDLER_RTX): Delete.
12887 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
12888 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
12890 (struct machine_function): Add frame_size, apparent_frame_size,
12891 frame_base_reg, frame_base_offset, n_global_fp_regs and
12892 save_local_in_regs_p fields.
12893 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
12894 sparc_frame_base_offset, sparc_n_global_fp_regs,
12895 sparc_save_local_in_regs_p): New macros.
12896 (sparc_option_override): Error out if -fcall-saved-REG is specified
12898 (eligible_for_restore_insn): Fix formatting.
12899 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
12900 (eligible_for_sibcall_delay): Likewise.
12901 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
12902 (sparc_legitimate_address_p): Adjust to above change.
12903 (save_global_or_fp_reg_p): New predicate.
12904 (return_addr_reg_needed_p): Likewise.
12905 (save_local_or_in_reg_p): Likewise.
12906 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
12907 (SORR_SAVE, SORR_RESTORE): Delete.
12908 (sorr_pred_t): New typedef.
12909 (sorr_act_t): New enum.
12910 (save_or_restore_regs): Rename to...
12911 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
12912 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
12913 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
12914 mechanism. Add CFI information for double-word saves in 32-bit mode.
12915 (emit_adjust_base_to_offset): New function extracted from...
12916 (emit_save_or_restore_regs): ...this. Rename the rest to...
12917 (emit_save_or_restore_regs_global_fp_regs): ...this.
12918 (emit_save_or_restore_regs_local_in_regs): New function.
12919 (gen_create_flat_frame_[123]): New functions.
12920 (sparc_expand_prologue): Use SIZE local variable. Adjust.
12921 (sparc_flat_expand_prologue): New function.
12922 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
12923 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
12924 (sparc_flat_expand_epilogue): New function.
12925 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
12926 (output_return): Likewise.
12927 (output_sibcall): Likewise.
12928 (sparc_output_mi_thunk): Likewise.
12929 (sparc_frame_pointer_required): Likewise.
12930 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
12931 function optimization.
12932 * config/sparc/sparc.md (flat): New attribute.
12933 (prologue): Add TARGET_FLAT handling.
12934 (save_register_window): Disable if TARGET_FLAT.
12935 (create_flat_frame_[123]): New patterns.
12936 (epilogue): Add TARGET_FLAT handling.
12937 (sibcall_epilogue): Likewise.
12938 (eh_return): New expander.
12939 (eh_return_internal): New insn and splitter.
12940 (return_internal): Add TARGET_FLAT handling.
12941 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
12942 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
12943 (nonlocal_goto): Add TARGET_FLAT handling.
12944 * config/sparc/t-elf: Add -mflat multilib.
12945 * config/sparc/t-leon: Likewise.
12947 2011-06-10 Jan Hubicka <jh@suse.cz>
12949 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
12950 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
12951 (self_recursive_p): Use cgraph_function_node.
12952 (propagate_pure_const): Likewise.
12953 (propagate_nothrow): Likewise.
12954 * ipa-reference.c (ipa_reference_get_not_read_global): Use
12955 cgraph_function_node.
12956 (propagate_bits): Likewise.
12957 (propagate): Likewise.
12959 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12960 Richard Earnshaw <rearnsha@arm.com>
12962 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
12963 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
12964 (*thumb2_movdi_vfp): Delete.
12965 (*arm_movdi_vfp_cortexa8): Delete.
12966 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
12967 (*movdi_vfp_cortexa8): Likewise.
12969 2011-06-10 Richard Guenther <rguenther@suse.de>
12971 * stor-layout.c (initialize_sizetypes): Give names to all
12974 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
12976 PR tree-optimization/49318
12977 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
12978 irrelevant pattern statements.
12980 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
12982 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
12985 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
12986 to last assignment.
12988 2011-06-09 Jan Hubicka <jh@suse.cz>
12990 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
12991 do not recompute reachable flag.
12992 (cgraph_finalize_function, cgraph_analyze_functions): Set
12993 redefined_extern_inline here.
12995 2011-06-09 Jan Hubicka <jh@suse.cz>
12997 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
12998 (cgraph_only_called_directly_p): ... this one; bring offline.
12999 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
13000 varpool_used_from_object_file_p): Drop names from the declaratoin.
13001 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
13002 collect_callers_of_node): New.
13003 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
13004 (cgraph_edge_recursive_p): Use cgraph_function_node.
13005 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
13006 (cgraph_node_cannot_be_local_p_1): Break out from ...
13007 (cgraph_node_can_be_local_p): ... here; walk aliases.
13008 (cgraph_for_node_thunks_and_aliases): New function.
13009 (cgraph_for_node_and_aliases): New function.
13010 (cgraph_make_node_local_1): Break out from ...
13011 (cgraph_make_node_local) ... here; use
13012 cgraph_for_node_thunks_and_aliases.
13013 (cgraph_set_nothrow_flag_1): Break out from ...
13014 (cgraph_set_nothrow_flag) ... here;
13015 use cgraph_for_node_thunks_and_aliases.
13016 (cgraph_set_const_flag_1): Break out from ...
13017 (cgraph_set_const_flag) ... here;
13018 use cgraph_for_node_thunks_and_aliases.
13019 (cgraph_set_pure_flag_1): Break out from ...
13020 (cgraph_set_pure_flag) ... here;
13021 use cgraph_for_node_thunks_and_aliases.
13022 (cgraph_propagate_frequency_1): Break out from ...
13023 (cgraph_propagate_frequency) ... here; use
13024 cgraph_for_node_thunks_and_aliases.
13025 (cgraph_used_from_object_file_p): Do not care about aliases.
13026 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
13028 (collect_callers_of_node_1, collect_callers_of_node): New functions.
13030 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
13032 PR rtl-optimization/49154
13033 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
13034 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
13035 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
13036 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
13037 * config/cris/cris.h (cris_register_move_cost): Remove
13038 !TARGET_V32 code. Tweak comments.
13040 2011-06-09 Jan Hubicka <jh@suse.cz>
13042 * cgraphbuild.c (record_eh_tables): Mark personality function as having
13045 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
13047 PR rtl-optimization/49154
13048 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
13049 is a matching slot in the hashtable, assign it to classes_ptr.
13051 PR rtl-optimization/49154
13052 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
13054 * doc/tm.texi: Regenerate.
13056 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
13059 * config/sh/sh.md (UNSPEC_CHKADD): New.
13060 (chk_guard_add): New define_insn_and_split.
13061 (symGOT_load): Use chk_guard_add instead of blockage.
13063 2011-06-09 Kai Tietz <ktietz@redhat.com>
13065 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
13067 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
13069 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
13071 2011-06-09 Wei Guozhi <carrot@google.com>
13074 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
13075 (peephole2 for conditional move): Generate 16 bit instructions.
13077 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
13079 * config/i386/i386.md (*movdi_internal_rex64): Merge
13080 alternatives 6 and 8.
13082 2011-06-09 David Li <davidxl@google.com>
13084 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
13085 * passes.c (passr_eq): New function.
13086 (create_pass_tab): New function.
13087 (pass_traverse): New function.
13088 (dump_one_pass): New function.
13089 (dump_pass_list): New function.
13090 (dump_passes): New function.
13092 2011-06-09 David Li <davidxl@google.com>
13094 * tree-complex.c (tree_lower_complex): Gate cleanup.
13095 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
13096 (execute_optimize_stdarg): Ditto.
13097 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
13098 (execute_cleanup_eh_1): Ditto.
13099 (execute_cleanup_eh): Ditto.
13100 * gcse.c (gate_rtl_pre): Ditto.
13101 (execute_rtl_pre): Ditto.
13102 * except.c (finish_eh_generation): Ditto.
13103 (convert_to_eh_region_ranges): Ditto.
13104 * cprop.c (one_cprop_pass): Ditto.
13106 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
13109 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
13110 in all basic blocks.
13112 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13114 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
13115 (HAVE_ENABLE_EXECUTE_STACK): Define.
13116 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
13117 (HAVE_ENABLE_EXECUTE_STACK): Define.
13118 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
13119 (HAVE_ENABLE_EXECUTE_STACK): Define.
13120 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
13121 (ENABLE_EXECUTE_STACK): Remove.
13122 (HAVE_ENABLE_EXECUTE_STACK): Define.
13123 [IN_LIBGCC2]: Don't include <windows.h>.
13124 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
13125 (HAVE_ENABLE_EXECUTE_STACK): Define.
13126 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
13127 (HAVE_ENABLE_EXECUTE_STACK): Define.
13128 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
13129 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
13130 (HAVE_ENABLE_EXECUTE_STACK): Define.
13131 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
13132 (HAVE_ENABLE_EXECUTE_STACK): Define.
13133 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
13134 (HAVE_ENABLE_EXECUTE_STACK): Define.
13135 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
13136 (HAVE_ENABLE_EXECUTE_STACK): Define.
13137 * config/alpha/alpha.c (alpha_trampoline_init): Test
13138 HAVE_ENABLE_EXECUTE_STACK.
13139 * config/i386/i386.c (ix86_trampoline_init): Likewise.
13140 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
13141 (sparc64_initialize_trampoline): Likewise.
13142 * libgcc2.c [L_enable_execute_stack]: Remove.
13143 * system.h (ENABLE_EXECUTE_STACK): Poison.
13144 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
13145 * doc/tm.texi: Regenerate.
13146 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
13148 2011-06-09 Jakub Jelinek <jakub@redhat.com>
13150 PR middle-end/49308
13151 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
13152 variable. After resetting and rescanning insn continue with previous
13155 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13157 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
13158 (gcc_cv_ld_hidden): Likewise.
13159 * configure: Regenerate.
13160 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
13161 (ix86_stack_protect_fail): Mark unused.
13162 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
13163 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
13164 [TARGET_MACHO]: Don't define.
13165 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
13166 (TARGET_STACK_PROTECT_FAIL): Likewise.
13167 (rs6000_stack_protect_fail): Mark unused.
13168 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
13169 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
13171 2011-06-08 Andi Kleen <ak@linux.intel.com>
13173 * varasm.c (get_section): Print location of other conflict
13174 for section conflicts.
13176 2011-06-08 Andi Kleen <ak@linux.intel.com>
13178 * config/i386/driver-i386.c (host_detect_local_cpu):
13179 Add model 0x2d Intel CPU.
13181 2011-06-08 Andi Kleen <ak@linux.intel.com>
13183 * reginfo.c (global_regs_decl): Add.
13184 (globalize_reg): Add decl parameter. Compute location. Pass location
13185 to warnings and add inform. Store decl in global_regs_decl.
13186 * rtl.h (globalize_reg): Update prototype.
13187 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
13189 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
13191 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
13193 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
13196 * config/sh/predicates.md (general_movsrc_operand): Check
13197 mode for memory with indexed address for QI and HImode.
13198 (general_movdst_operand): Likewise.
13200 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
13202 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
13204 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
13206 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
13207 (num_ssa_operands): Likewise.
13208 (op_iter_init_phiuse): Forward-declare.
13209 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
13211 2011-06-08 Nick Clifton <nickc@redhat.com>
13213 * doc/invoke.texi (ARM Options): Update description of
13216 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
13218 * config/i386/driver-i386.c (host_detect_local_cpu): Support
13219 unknown Intel family 0x6 CPUs.
13221 2011-06-08 Martin Jambor <mjambor@suse.cz>
13223 * tree-sra.c (mark_rw_status): Removed.
13224 (analyze_access_subtree): New parameter parent instead of
13225 mark_read and mark_write, propagate from that.
13227 2011-06-08 Julian Brown <julian@codesourcery.com>
13229 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
13230 for double-precision helper functions in hard-float mode if only
13231 single-precision arithmetic is supported in hardware.
13233 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
13235 PR rtl-optimization/49303
13236 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
13237 code_motion_path_driver returned 0 or 1.
13238 (sel_region_finish): Clear h_d_i_d.
13240 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
13242 * config/sh/sh.c (prepare_move_operands): Set pic register
13243 appropriately for global and local dynamic tls models even
13244 if flag_pic is unset.
13246 2011-06-07 Jason Merrill <jason@redhat.com>
13248 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
13250 2011-06-07 Xinliang David Li <davidxl@google.com>
13251 * passes.c (enable_disable_pass): Handle assembler name.
13252 (is_pass_explicitly_enabled_or_disabled): Ditto.
13254 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13256 PR tree-optimization/48497
13257 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
13259 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13261 PR tree-optimization/46728
13262 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
13263 to use gimple_val_nonnegative_real_p.
13264 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
13265 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
13267 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
13269 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
13271 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
13273 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
13276 2011-06-07 Richard Guenther <rguenther@suse.de>
13278 * stor-layout.c (initialize_sizetypes): Initialize all
13279 sizetypes based on target definitions.
13280 (set_sizetype): Remove.
13281 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
13282 * tree.h (set_sizetype): Remove.
13284 2011-06-07 Nick Clifton <nickc@redhat.com>
13286 * config.gcc: Unify V850 architecture options and add support for
13287 newer V850 architectures.
13288 * config/v850/t-v850e: Delete.
13290 2011-06-07 Richard Guenther <rguenther@suse.de>
13292 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
13293 Call set_sizetype from here.
13295 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
13297 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
13298 (*maddhisi4tb, *maddhisi4tt): New define_insns.
13300 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
13301 Andrew Stubbs <ams@codesourcery.com>
13303 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
13305 * doc/md.texi (Canonicalization of Instructions): Document widening
13306 multiply canonicalization.
13308 2011-06-07 Jakub Jelinek <jakub@redhat.com>
13310 PR gcov-profile/49299
13311 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
13313 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
13315 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
13317 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
13318 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
13319 vect_recog_pow_pattern): Likewise.
13320 (vect_pattern_recog_1): Remove declaration.
13321 (widened_name_p): Remove declaration. Add new argument to specify
13322 whether to check that both types are either signed or unsigned.
13323 (vect_recog_widen_mult_pattern): Update documentation. Handle
13324 unsigned patterns and multiplication by constants.
13325 (vect_pattern_recog_1): Update vect_recog_func references. Use
13326 statement information from the statement returned from pattern
13327 detection functions.
13328 (vect_pattern_recog): Update vect_recog_func reference.
13329 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
13330 multiplication by a constant use the type of the other operand.
13332 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
13334 PR rtl-optimization/49145
13335 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
13337 2011-06-06 Jakub Jelinek <jakub@redhat.com>
13340 * dwarf2out.c (native_encode_initializer): Decrement count in each
13344 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
13345 non-MODE_INT modes.
13348 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
13349 if stmt folded into nothing.
13350 * tree-inline.c (fold_marked_statements): If a builtin at the end of
13351 a bb folded into nothing, just update cgraph edges and move to next bb.
13352 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
13353 to be NULL. Don't compute count and frequency if new_call is NULL.
13355 2011-06-04 Diego Novillo <dnovillo@google.com>
13357 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
13358 (cgraph.o): Likewise.
13359 (cgraphunit.o): Likewise.
13360 * cgraphunit.c: Include lto-streamer.h
13361 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
13363 * lto-streamer-in.c (unpack_value_fields): Call
13364 streamer_hooks.unpack_value_fields if set.
13365 (lto_materialize_tree): For unhandled nodes, first try to
13366 call lto_streamer_hooks.alloc_tree, if it exists.
13367 (lto_input_ts_decl_common_tree_pointers): Move reading of
13368 DECL_INITIAL to lto_streamer_read_tree.
13369 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
13370 (lto_streamer_read_tree): New.
13371 (lto_reader_init): Rename from lto_init_reader.
13372 Move initialization code to lto/lto.c.
13373 * lto-streamer-out.c (pack_value_fields): Call
13374 streamer_hooks.pack_value_fields if set.
13375 (lto_output_tree_ref): For tree nodes that are not normally indexable,
13376 call streamer_hooks.indexable_with_decls_p before giving up.
13377 (lto_output_ts_decl_common_tree_pointers): Move handling
13378 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
13379 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
13380 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
13381 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
13382 (lto_streamer_write_tree): New.
13383 (lto_output): Call lto_streamer_init directly.
13384 (lto_writer_init): Remove.
13385 * lto-streamer.c (streamer_hooks): New.
13386 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
13387 instead of lto_preload_common_nodes.
13388 (lto_is_streamable): Move from lto-streamer.h
13389 (lto_streamer_hooks_init): New.
13390 (streamer_hooks): New.
13391 (streamer_hooks_init): New.
13392 * lto-streamer.h (struct output_block): Forward declare.
13393 (struct lto_input_block): Likewise.
13394 (struct data_in): Likewise.
13395 (struct bitpack_d): Likewise.
13396 (struct streamer_hooks): Declare.
13397 (streamer_hooks): Declare.
13398 (lto_streamer_hooks_init): Declare.
13399 (lto_streamer_write_tree): Declare.
13400 (lto_streamer_read_tree): Declare.
13401 (streamer_hooks_init): Declare.
13402 (lto_is_streamable): Move to lto-streamer.c
13404 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13406 * longlong.h (smul_ppmm): The resulting register pair contains the
13407 higher order word first.
13409 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13411 PR tree-optimization/46728
13412 * builtins.c (powi_table): Remove.
13413 (powi_lookup_cost): Remove.
13414 (powi_cost): Remove.
13415 (expand_powi_1): Remove.
13416 (expand_powi): Remove.
13417 (expand_builtin_pow_root): Remove.
13418 (expand_builtin_pow): Remove.
13419 (expand_builtin_powi): Eliminate handling of constant exponent.
13420 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
13422 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13424 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
13426 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13428 * dce.c (reset_unmarked_insns_debug_uses): New.
13429 (delete_unmarked_insns): Skip debug insns.
13430 (prescan_insns_for_dce): Likewise.
13431 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
13432 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
13433 active reg can be found.
13434 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
13435 (convert_regs_1): Use it.
13437 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13439 * tree-pretty-print.c (dump_function_header): Add flags.
13440 Don't dump decl_uid with nouid.
13441 * tree-pretty-print.h (dump_function_header): Adjust.
13442 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
13443 * passes.c (pass_init_dump_file): Pass dump_flags on.
13444 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
13446 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13449 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
13451 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
13453 PR tree-optimization/49243
13454 * calls.c (setjmp_call_p): Also check if fndecl has the
13455 returns_twice attribute.
13457 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13459 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
13462 2011-06-06 Richard Henderson <rth@redhat.com>
13463 Georg-Johann Lay <avr@gjlay.de>
13466 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
13468 * config/avr/avr.md ("insv"): New insn expander.
13469 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
13470 "*insv.not.io", "*insv.reg"): New insns.
13472 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
13475 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
13476 to nonimmediate_operand from memory_operand for the operand that is to
13477 be forced to memory by the expander. Lose the constraints.
13479 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
13481 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
13482 EH return when delayed branches are disabled.
13484 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
13486 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
13487 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
13489 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
13490 Simplify MODE_V1DF and MODE_V2SF handling.
13491 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
13492 Simplify MODE_SF handling.
13494 2011-06-04 Jan Hubicka <jh@suse.cz>
13496 PR tree-optimization/48893
13497 PR tree-optimization/49091
13498 PR tree-optimization/49179
13499 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
13502 2011-06-04 Jan Hubicka <jh@suse.cz>
13505 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
13508 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
13510 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
13512 2011-06-04 Jakub Jelinek <jakub@redhat.com>
13515 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
13516 to be strictly smaller than 1 << shiftcount.
13518 2011-06-04 Jan Hubicka <jh@suse.cz>
13520 PR tree-optimize/48929
13521 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
13522 of empty predicate.
13524 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
13527 * calls.c (emit_call_1): Prefer the __builtin declaration of
13530 2011-06-03 Diego Novillo <dnovillo@google.com>
13532 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
13533 (lto_input_tree_pointers): Likewise.
13534 * lto-streamer-out.c (pack_value_fields): Likewise.
13535 (lto_output_tree_pointers): Likewise.
13536 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
13537 and OPTIMIZATION_NODE.
13539 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13541 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
13542 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
13543 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
13544 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
13545 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
13546 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
13547 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
13548 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
13549 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
13550 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
13551 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
13552 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
13553 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
13554 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
13555 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
13556 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
13557 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
13558 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
13559 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
13560 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
13561 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
13562 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
13563 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
13564 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
13565 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
13566 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
13567 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
13568 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
13569 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
13570 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
13571 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
13572 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
13573 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
13574 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
13575 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
13576 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
13577 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
13578 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
13579 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
13580 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
13581 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
13582 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
13583 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
13584 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
13585 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
13586 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
13587 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
13588 * system.h (MD_UNWIND_SUPPORT): Poison.
13589 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
13590 * doc/tm.texi: Regenerate.
13591 * unwind-dw2.c: Include md-unwind-support.h instead of
13593 * config/ia64/unwind-ia64.c: Likewise.
13594 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
13596 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
13598 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
13600 2011-06-03 Richard Henderson <rth@redhat.com>
13601 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13603 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
13604 (sigill_hdlr): Correct insn, insn size.
13605 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
13607 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13609 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
13611 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
13612 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
13613 * config/mips/t-iris: Remove.
13614 * config/mips/t-irix6: New file.
13615 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
13617 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13619 * Makefile.in (LIB2ADDEHDEP): Remove.
13620 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
13621 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
13622 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
13623 * config/t-darwin (LIB2ADDEHDEP): Remove.
13624 * config/t-freebsd (LIB2ADDEHDEP): Remove.
13625 * config/t-linux (LIB2ADDEHDEP): Remove.
13627 2011-06-03 Diego Novillo <dnovillo@google.com>
13629 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
13630 (lto_register_var_decl_in_symtab): Likewise.
13631 (lto_register_function_decl_in_symtab): Likewise.
13632 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
13633 logic to uniquify_nodes.
13635 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13637 * config/alpha/t-osf5: Remove.
13638 * config/alpha/t-osf-pthread: Remove.
13639 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
13640 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
13642 2011-06-03 Julian Brown <julian@codesourcery.com>
13644 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
13645 (strongarm1110): Use strongarm tuning.
13646 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
13647 * config/arm/arm.c (arm_strongarm_tune): New.
13648 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
13649 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
13650 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
13651 setting, using previous defaults or 1 for Cortex-A5.
13652 (arm_option_override): Set max_insns_skipped from current tuning.
13654 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
13656 * doc/install.texi (Options specification): Document --with-specs.
13658 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13660 * config/arm/neon.md (orndi3_neon): Actually split it.
13662 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
13664 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
13665 * var-tracking.c (reverse_op): Limite recurse depth to 5.
13667 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
13670 * target.def (delay_sched2, delay_vartrack): New.
13671 * doc/tm.texi.in: Update.
13672 * doc/tm.texi: Rebuild.
13673 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
13674 * var-tracking.c (gate_handle_var_tracking): Likewise.
13675 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
13676 (bfin_flag_var_tracking): Drop.
13677 (output_file_start): Don't save and override flag_var_tracking.
13678 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
13679 (bfin_reorg): Test original variables.
13680 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13681 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
13682 (ia64_flag_var_tracking): Drop.
13683 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13684 (ia64_file_start): Don't save and override flag_var_tracking.
13685 (ia64_override_options_after_change): Ditto
13686 flag_schedule_insns_after_reload.
13687 (ia64_reorg): Test original variables.
13688 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
13689 (picochip_flag_var_tracking): Drop.
13690 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13691 (picochip_option_override): Don't save and override
13692 flag_schedule_insns_after_reload.
13693 (picochip_asm_file_start): Ditto flag_var_tracking.
13694 (picochip_reorg): Test original variables.
13695 * config/spu/spu.c (spu_flag_var_tracking): Drop.
13696 (TARGET_DELAY_VARTRACK): Define.
13697 (spu_var_tracking): New.
13698 (spu_machine_dependent_reorg): Call it.
13699 (asm_file_start): Don't save and override flag_var_tracking.
13701 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
13704 * config/sh/predicates.md (general_movsrc_operand): Return 0
13705 for memory and memory subreg of which address is an invalid
13706 indexed address for QI and HImode.
13707 (general_movdst_operand): Likewise.
13709 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
13711 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
13712 edges only, when there is a non-local label in the function.
13713 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
13715 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
13717 * config/i386/constraints.md (Y3): New register constraint.
13718 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
13719 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
13720 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
13721 *sse2_interleave_lowv2df.
13723 2011-06-02 Julian Brown <julian@codesourcery.com>
13725 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
13726 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
13727 (arm_cortex_a5_tune): New.
13729 2011-06-02 Julian Brown <julian@codesourcery.com>
13731 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
13732 * config/arm/arm.c (arm_default_branch_cost): New.
13733 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
13734 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
13735 (arm_fa726_tune): Set branch_cost field using
13736 arm_default_branch_cost.
13737 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
13738 current_tune structure.
13739 * dojump.c (tm_p.h): Include file.
13741 2011-06-02 Julian Brown <julian@codesourcery.com>
13743 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
13745 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
13746 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
13747 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
13749 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
13750 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
13751 (arm_fa726te_tune): Add prefer_constant_pool setting.
13752 (arm_v6t2_tune, arm_cortex_tune): New.
13753 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
13754 prefer_constant_pool setting.
13756 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
13758 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
13760 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
13761 (*movdf_internal) <case 6,7,8>: Ditto.
13763 * config/i386/constraints.md (Y4): New register constraint.
13764 * config/i386/sse.md (vec_set<mode>_0): Merge with
13765 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
13766 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
13767 *vec_extractv2di_1_sse.
13768 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
13769 and *vec_concatv2di_rex64_sse.
13771 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
13774 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
13775 of cgraph_local_info for null before attempting to use it.
13777 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
13779 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
13780 (current_function_dynamic_alloc_count): Delete.
13781 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
13782 (expand_builtin_nonlocal_goto): Remove obsolete comment.
13783 (expand_builtin_update_setjmp_buf): Remove dead code.
13784 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
13785 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
13787 * function.c (instantiate_virtual_regs): Likewise.
13788 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
13789 for a block with a single abnormal incoming edge.
13790 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
13791 (SETJMP_VIA_SAVE_AREA): Delete.
13792 * config/sparc/sparc-protos.h (load_got_register): Declare.
13793 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
13794 (load_got_register): Make global.
13795 (sparc_frame_pointer_required): Add 'static'.
13796 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
13797 (sparc_builtin_setjmp_frame_value): New function.
13798 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
13799 (save_stack_nonlocal): New expander.
13800 (restore_stack_nonlocal): Likewise.
13801 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
13802 (nonlocal_goto_internal): New insn.
13803 (goto_handler_and_restore): Delete.
13804 (builtin_setjmp_setup): Likewise.
13805 (do_builtin_setjmp_setup): Likewise.
13806 (setjmp): Likewise.
13807 (builtin_setjmp_receiver): New expander.
13809 2011-06-01 David Li <davidxl@google.com>
13811 PR middle-end/49261
13812 * tree-pretty-print.c (dump_function_header): Format cleanup.
13814 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
13817 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
13818 needed when original operands are used for msw_skip comparison.
13820 2011-06-01 Jakub Jelinek <jakub@redhat.com>
13823 * var-tracking.c (add_uses, add_stores): Don't call
13824 cselib_subst_to_values on ENTRY_VALUE.
13826 2011-06-01 Diego Novillo <dnovillo@google.com>
13828 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
13829 output_record_start with LTO_null instead of output_zero.
13830 (lto_output_ts_binfo_tree_pointers): Likewise.
13831 (lto_output_tree): Likewise.
13832 (output_eh_try_list): Likewise.
13833 (output_eh_region): Likewise.
13834 (output_eh_lp): Likewise.
13835 (output_eh_regions): Likewise.
13836 (output_bb): Likewise.
13837 (output_function): Likewise.
13838 (output_unreferenced_globals): Likewise.
13839 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
13840 instead of NUM_TREE_CODES.
13841 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
13842 (lto_output_int_in_range): Change << to >> when shifting VAL.
13844 2011-06-01 Diego Novillo <dnovillo@google.com>
13846 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
13847 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
13849 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
13852 * optabs.h (valid_multiword_target_p): Declare.
13853 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
13854 doing multi-word operations.
13855 * optabs.c (expand_binop): Likewise.
13856 (expand_doubleword_bswap): Likewise.
13857 (expand_absneg_bit): Likewise.
13858 (expand_unop): Likewise.
13859 (expand_copysign_bit): Likewise.
13860 (multiword_target_p): New function.
13862 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
13864 PR rtl-optimization/48830
13865 PR rtl-optimization/48808
13866 PR rtl-optimization/48792
13867 * reload.c (push_reload): Check contains_reg_of_mode.
13868 * reload1.c (strip_paradoxical_subreg): New function.
13869 (gen_reload_chain_without_interm_reg_p): Use it to handle
13870 paradoxical subregs.
13871 (emit_output_reload_insns, gen_reload): Likewise.
13873 2011-06-01 David Li <davidxl@google.com>
13875 * predict.c : Change pass name
13878 * tree-profile.c: Ditto.
13881 2011-06-01 David Li <davidxl@google.com>
13883 * tree-pretty-print.c (dump_function_header): New function.
13884 * final.c (rest_of_clean_state): Use header dumper.
13885 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
13886 * passes.c (pass_init_dump_file): Use header dumper.
13888 2011-06-01 Jakub Jelinek <jakub@redhat.com>
13890 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
13891 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
13892 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
13894 (mem_loc_descriptor): Use them.
13896 * var-tracking.c (create_entry_value): New function.
13897 (vt_add_function_parameter): Use it.
13899 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13901 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
13902 Include <signal.h>, <ucontext.h>.
13903 (sigill_caught): Define.
13904 (sigill_hdlr): New function.
13905 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
13906 insns can be executed.
13907 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
13908 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
13910 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13912 * config/t-slibgcc-darwin: Move to ...
13913 * config/t-slibgcc-dummy: ... this. Clarify comments.
13914 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
13915 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
13916 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
13917 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
13918 Remove i386/t-crtstuff from tmake_file.
13919 (i[34567]86-*-solaris2*): Remove t-svr4,
13920 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
13922 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
13923 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
13924 sparc/t-crtfm from tmake_file.
13925 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
13926 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
13927 Remove extra_parts.
13928 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
13929 * config/i386/t-nwld (SHLIB_LINK): Remove.
13930 * config/i386/t-rtems-i386: Rename to ...
13931 * config/i386/t-rtems: ... this.
13932 ($(T)crti.o, $(T)crtn.o): Remove.
13933 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
13934 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
13935 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
13936 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
13937 EXTRA_MULTILIB_PARTS): Remove.
13938 * config/sparc/t-sol2-64: Likewise.
13939 * config/sparc/t-sol2: Remove.
13940 * config/sparc/t-crtin: Remove.
13941 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
13942 * config/i386/gmon-sol2.c: Remove.
13943 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
13944 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
13945 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
13946 * config/i386/sol2-gc1.asm: Remove.
13947 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
13948 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
13949 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
13950 * config/t-slibgcc-sld: Remove.
13952 2011-06-01 Jakub Jelinek <jakub@redhat.com>
13954 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
13955 base_type_for_mode with op_mode instead of mode.
13957 2011-06-01 Paul Brook <paul@cpodesourcery.com>
13959 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
13961 * config/arm/arm-tune.md: Regenerate.
13962 * config/arm/arm-tables.opt: Regenerate.
13963 * config/arm/arm.c (FL_DIV): Rename...
13964 (FL_THUMB_DIV): ... to this.
13965 (FL_ARM_DIV): Define.
13966 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
13967 (arm_arch_hwdiv): Remove.
13968 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
13969 (arm_issue_rate): Add cortexr5.
13970 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
13971 __ARM_ARCH_EXT_IDIV__.
13972 (TARGET_IDIV): Define.
13973 (arm_arch_hwdiv): Remove.
13974 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
13975 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
13976 (divsi3, udivsi3): New patterns.
13977 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
13978 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
13980 2011-06-01 Martin Jambor <mjambor@suse.cz>
13982 * ipa-utils.c (ipa_dfs_info): New field scc_no.
13983 * ipa-utils.c (searchc): Set scc_no.
13985 2011-06-01 Martin Jambor <mjambor@suse.cz>
13987 * ipa-utils.c (searchc_env): New field allow_overwritable.
13988 (searchc): do not ignore edges to overwritable nodes if indicated
13989 by env->allow_overwritable.
13990 (ipa_reduced_postorder): Set env.allow_overwritable.
13992 2011-06-01 Richard Guenther <rguenther@suse.de>
13994 * tree.c (free_lang_data): Do not reset boolean_type_node nor
13996 * lto-streamer.c (lto_record_common_node): Take node pointer,
13997 do not register types.
13998 (lto_preload_common_nodes): Explicitly skip preloading nodes
13999 that differ between frontends.
14001 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
14003 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
14006 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
14008 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
14009 parameter value for dump. Dump cost on outermost call only.
14010 (rs6000_memory_move_cost): Dump cost on outermost call only.
14012 2011-05-31 Jakub Jelinek <jakub@redhat.com>
14014 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
14015 DW_OP_GNU_convert ops.
14017 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
14018 cselib_preserve_constants.
14019 (cselib_lookup_1): If cselib_preserve_constants,
14020 a new VALUE is being created for REG and there is a VALUE for the
14021 same register in wider mode, add another loc with lowpart SUBREG of
14023 (cselib_subst_to_values): Handle ENTRY_VALUE.
14024 * var-tracking.c (replace_expr_with_values): Return NULL for
14026 * dwarf2out.c (convert_descriptor_to_signed): New function.
14027 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
14028 instead of two shifts.
14029 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
14030 the right mode if needed.
14031 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
14032 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
14033 convert_descriptor_to_signed.
14034 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
14035 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
14038 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
14040 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
14042 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
14043 of X87MODEI12 and SWI48x instead of SSEMODEI24.
14044 (SWI248x): New mode iterator, rename from X87MODEI.
14045 (X87MODEI): Remove mode iterator.
14046 (X87MODEI12): Ditto.
14047 (SSEMODEI24): Ditto.
14049 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
14051 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
14052 * doc/invoke.texi: Document max-vartrack-expr-depth.
14053 * var-tracking.c (EXPR_DEPTH): New.
14054 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
14056 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
14058 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
14059 * config/i386/sse.md: Add n to negated FMA pattern names.
14061 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
14063 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
14065 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
14067 * gengtype-state.c (read_state_params_structs): Initialize previous.
14069 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
14071 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
14072 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
14074 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
14076 * config/i386/i386.md (*movtf_internal): Avoid allocating general
14077 registers. Penalize F*r->o alternative to prevent partial memory
14078 stalls. Slightly penalize *roF->*r alternative. Generate SSE
14079 CONST_DOUBLE immediates when optimizing function for size. Do not move
14080 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
14081 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
14082 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
14083 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
14085 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
14087 (fp_register_operand splitters): Use fp_register_operand
14088 constraint. Do not use FP_REG_P in insn condition.
14089 (any_fp_register_operand splitters): Use any_fp_register_operand
14090 constraint. Do not use ANY_FP_REG_P in insn condition.
14092 2011-05-31 Jan Hubicka <jh@suse.cz>
14094 * cgraph.h (cgraph_inline_failed_t): Give enum a name
14095 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
14096 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
14097 (lto_output_edge): Use output_enum and var_len_unsigned.
14098 (lto_output_varpool_node): Likewise.
14099 (input_overwrite_node): Do not take resolution parameter;
14100 extract it from a bitpack.
14101 (input_node): Do not read resolution; use input_enum and
14103 (input_varpool_node): Likewise.
14104 (input_edge): Likewise.
14105 (input_cgraph_1): Likewise.
14107 2011-05-31 Richard Guenther <rguenther@suse.de>
14109 * gimple.c (gimple_register_canonical_type): Do not register
14110 any types via gimple_register_type.
14112 2011-05-31 Jan Hubicka <jh@suse.cz>
14114 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
14117 2011-05-31 Jakub Jelinek <jakub@redhat.com>
14119 PR rtl-optimization/49235
14120 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
14121 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
14123 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
14125 PR tree-optimization/49093
14126 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
14129 2011-05-31 Dodji Seketeli <dodji@redhat.com>
14132 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
14133 for concrete functions containing the code of cloned functions.
14135 2011-05-31 Richard Guenther <rguenther@suse.de>
14137 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
14139 (forward_propagate_into_comparison_1): ... this.
14140 (forward_propagate_comparison): Rename to ...
14141 (forward_propagate_into_comparison): ... this. Split out
14142 real forward propagation code to ...
14143 (forward_propagate_comparison): ... this.
14144 (forward_propagate_into_gimple_cond): Remove looping.
14145 (forward_propagate_into_cond): Likewise.
14146 (simplify_not_neg_expr): Return whether we have done something.
14147 (simplify_gimple_switch): Likewise.
14148 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
14149 (ssa_forward_propagate_and_combine): ... this. Re-structure
14150 to do a forward forward-propagation walk on BBs and a backward
14151 stmt combining walk on BBs. Consistently re-scan changed statements.
14152 (pass_forwprop): Adjust.
14154 2011-05-30 Ian Lance Taylor <iant@google.com>
14156 * godump.c (go_format_type): Correct length of name added to
14157 obstack for anonymous field.
14159 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
14162 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
14163 part of the second operand is 0.
14165 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
14167 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
14168 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
14169 to memory for !TARGET_MEMORY_MISMATCH_STALL.
14170 (*movdf_internal_rex64): Do not penalize F->r alternative.
14171 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
14172 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
14173 when optimizing function for size. Do not move CONST_DOUBLEs
14174 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
14175 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
14176 SUBREGs. Do not check for MEM_P operands in the insn condition,
14177 check for ANY_FP_REGNO_P instead.
14178 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
14179 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
14180 function for speed.
14181 * config/i386/i386.c (ix86_option_override_internal): Do not
14182 set TARGET_INTEGER_DFMODE_MOVES here.
14184 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
14187 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
14189 2011-05-30 Jakub Jelinek <jakub@redhat.com>
14191 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
14192 DW_TAG_rvalue_reference_type even for
14193 -gdwarf-4 -fno-debug-types-section.
14195 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14197 PR tree-optimization/46728
14198 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
14199 (build_and_insert_binop): New.
14200 (gimple_expand_builtin_pow): Reorder args for
14201 build_and_insert_call; use build_and_insert_binop; add more
14202 optimizations for fractional exponents.
14204 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
14209 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
14211 * tree.h (struct tree_identifier): Inherit from tree_typed, not
14213 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
14214 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
14215 TS_BASE instead of TS_COMMON.
14216 * varasm.c (assemble_name): Remove assert.
14218 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
14220 * config.gcc: Keep obselete list sorted.
14222 2011-05-30 Jakub Jelinek <jakub@redhat.com>
14223 Eric Botcazou <ebotcazou@adacore.com>
14225 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
14226 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
14227 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
14228 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
14229 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
14231 2011-05-30 Richard Guenther <rguenther@suse.de>
14233 * gimple.c (gimple_types_compatible_p_1): Compare record
14234 and union type members properly.
14236 2011-05-30 Richard Guenther <rguenther@suse.de>
14238 PR tree-optimization/49210
14239 * ipa-split.c (split_function): Care for the case where the call
14240 result is not trivially convertible to the result holding variable.
14242 2011-05-30 Richard Guenther <rguenther@suse.de>
14244 PR tree-optimization/49218
14245 * tree-vrp.c (adjust_range_with_scev): Properly check whether
14248 2011-05-30 Richard Guenther <rguenther@suse.de>
14250 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
14251 New function split out from ...
14252 (forward_propagate_into_gimple_cond): ... here. Adjust.
14253 (forward_propagate_into_cond): Likewise.
14254 (forward_propagate_comparison): Also propagate into
14255 comparisons on assignment RHS. Change return value to
14256 behave similar to forward_propagate_into_cond.
14257 (tree_ssa_forward_propagate_single_use_vars): Handle
14258 strict-overflow warnings properly for forward_propagate_comparison.
14260 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14262 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
14263 from plugin linker.
14264 * configure: Regenerate.
14266 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
14268 PR tree-optimization/49199
14269 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
14270 non-reduction operands are either defined in the loop or by induction.
14272 2011-05-29 Xinliang David Li <davidxl@google.com>
14274 * opts-global.c (handle_common_deferred_options): Handle new options.
14275 * passes.c (register_one_dump_file): Call register_pass_name.
14276 (execute_one_pass): Check explicit enable/disable flag.
14277 (passr_hash): New function.
14279 (register_pass_name): Ditto.
14280 (get_pass_by_name): Ditto.
14281 (pass_hash): Ditto.
14283 (enable_pass): Ditto.
14284 (disable_pass): Ditto.
14285 (is_pass_explicitly_enabled_or_disabled): Ditto.
14287 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
14289 * config/i386/i386.md (*movoi_internal_avx): Use
14290 standard_sse_constant_opcode for alternative 0.
14291 (*movti_internal_sse): Ditto.
14292 (*movti_internal_rex64): Use standard_sse_constant_opcode for
14294 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
14295 sselog1 type moves.
14296 (*movsi_internal): Ditto.
14297 (*movdi_internal): Ditto. Add ssecvt type moves.
14299 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
14302 * rtlanal.c (simplify_subreg_regno): Adjust comment.
14304 2011-05-29 Jakub Jelinek <jakub@redhat.com>
14306 PR rtl-optimization/49095
14307 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
14308 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
14310 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
14313 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
14314 recurse_p argument. Only follow register copies if it is set,
14315 and prevent mips_find_pic_call_symbol from recursing.
14316 (mips_find_pic_call_symbol): Add a recurse_p argument.
14317 Pass it to mips_pic_call_symbol_from_set.
14318 (mips_annotate_pic_calls): Update accordingly.
14320 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
14322 * emit-rtl.c (try_split): Use a loop to search for
14323 NOTE_INSN_CALL_ARG_LOCATIONs.
14325 2011-05-29 Richard Guenther <rguenther@suse.de>
14327 PR tree-optimization/49217
14328 * ipa-pure-const.c (propagate_pure_const): Fix typos.
14330 2011-05-28 Jan Hubicka <jh@suse.cz>
14332 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
14334 (string_slot_free): Remove
14335 (create_output_block): Initialize obstack.
14336 (destroy_output_block): Free obstack.
14337 (lto_string_index): Add PERSISTENT parameter; do not duplicate
14338 the string unless it needs to be added into the hash.
14339 (lto_output_string_with_length): Add persistent attribute;
14340 handle NULL strings.
14341 (lto_output_string): Add PERSISTENT parameter.
14342 (output_string_cst, output_identifier): Simplify.
14343 (lto_output_location_bitpack): Update.
14344 (lto_output_builtin_tree): Update.
14345 * lto-streamer.h (struct output_block): Add obstack.
14346 (lto_output_string, lto_output_string_with_length): Remove
14347 declarations; functions are static now.
14349 2011-05-28 Jan Hubicka <jh@suse.cz>
14351 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
14352 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
14353 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
14354 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
14355 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
14356 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
14357 unpack_ts_decl_with_vis_value_fields,
14358 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
14359 lto_get_builtin_tree): Use enum and variable length i/o.
14360 * basic-block.h (profile_status_d): Add PROFILE_LAST.
14361 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
14363 (bp_pack_enum, bp_unpack_enum): New macros.
14365 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14367 * genrecog.c: Remove redundant forward declarations.
14369 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14371 * config.gcc: Deprecate mips*-*-openbsd*.
14373 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14376 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
14379 2011-05-27 Andrew Pinski <pinskia@gmail.com>
14381 PR middle-end/48981
14382 * gengtype.c (vec_prefix_type): New function.
14383 (note_def_vec): Use vec_prefix_type and change the length
14384 attribute to be based on the prefix.
14385 * vec.c: Include coretypes.h before vec.h.
14386 (struct vec_prefix): Remove.
14387 (vec_gc_p_reserve): Change the offsetof to sizeof.
14388 (vec_gc_p_reserve_exact): Likewise.
14389 (vec_heap_p_reserve): Likewise.
14390 (vec_heap_p_reserve_exact): Likewise.
14391 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
14392 (vec_stack_p_reserve): Change the offsetof to sizeof.
14393 (vec_stack_p_reserve_exact): Likewise.
14394 * vec.h (struct vec_prefix): New struct definition.
14395 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
14396 (VEC_T_GTY(T,B)): Likewise.
14397 (DEF_VEC_FUNC_P(T)): Use prefix field.
14398 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
14399 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
14401 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14403 PR tree-optimization/46728
14404 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
14405 (powi_as_mults): Add gimple_set_location.
14406 (build_and_insert_call): New.
14407 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
14408 0.5, 0.25, 0.75, 1./3., or 1./6.
14410 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
14412 * doc/contrib.texi: Update copyright years.
14413 (Contributors): Add Zdenek Sojka.
14415 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
14417 * c-decl.c (c_push_function_context): Copy the current statement
14419 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
14420 (finish_struct): Call building_stmt_list_p instead of checking
14422 * c-parser.c (c_parser_postfix_expression): Likewise.
14423 * c-typeck.c (c_end_compound_stmt): Likewise.
14424 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
14425 * tree-iterator.c (stmt_list_cache): Change to a VEC.
14426 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
14427 (free_stmt_list): Likewise.
14428 * tree.h (struct tree_statement_list): Include typed_tree instead
14430 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
14431 as TS_TYPED instead of TS_COMMON.
14433 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14434 Uros Bizjak <ubizjak@gmail.com>
14436 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
14437 (HAVE_AS_IX86_TLSGDPTL): Define.
14438 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
14439 (HAVE_AS_IX86_TLSLDMPLT): Define.
14440 * configure: Regenerate.
14441 * config.in: Regenerate.
14442 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
14443 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
14444 TARGET_SUN_TLS, use @tlsgdplt or @plt.
14445 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
14446 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
14447 @tlsldmplt or @plt.
14448 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
14450 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
14452 * sched-int.h (struct _haifa_deps_insn_data): New members cond
14454 (INSN_COND, INSN_REVERSE_COND): New macros.
14455 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
14457 (sched_get_condition_with_rev): Cache the results, and look them up
14459 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
14460 are clobbered by the current insn.
14461 * target.def (exposed_pipline): New sched data hook.
14462 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
14463 * doc/tm.texi: Regenerate.
14465 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14467 PR tree-optimization/49170
14468 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
14471 2011-05-27 Richard Guenther <rguenther@suse.de>
14473 PR middle-end/49189
14474 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
14477 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
14479 * haifa-sched.c (sched_scan_info): Remove.
14480 (schedule_block): Call sched_extend_luids rather than sched_init_luids
14482 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
14484 (sched_scan): Remove.
14485 (sched_extend_luids): Renamed from luids_extend_insn and no longer
14486 static. All callers changed.
14487 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
14488 static. All callers changed.
14489 (sched_init_luids): Remove all arguments except the first. All
14490 callers changed. Don't use sched_scan.
14491 (haifa_init_h_i_d): Likewise.
14492 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
14493 manually rather than using sched_init_luids. Likewise with
14494 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
14495 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
14496 rather than sched_init_luids with NULL args.
14497 * sel-sched-ir.c (new_insns): Remove variable.
14498 (sched_scan): New static function, previously in haifa-sched.c. Remove
14499 all arguments but the first two; all callers changed.
14500 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
14501 rather than sched_init_luids.
14502 (sel_init_bbs): Remove second argument. All callers changed.
14503 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
14504 with NULL arguments.
14505 (create_insn_rtx_from_pattern): Likewise.
14506 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
14507 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
14508 (sched_init_insn_luid, sched_extend_luids): Declare.
14509 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
14512 2011-05-27 Richard Guenther <rguenther@suse.de>
14514 PR middle-end/49177
14515 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
14516 A CMP B ? (T) true : (T) false for non-integral types T again.
14518 2011-05-27 Jan Hubicka <jh@suse.cz>
14520 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
14521 so 0 means NULL string.
14522 (lto_output_string_with_length): ... here.
14523 (lto_output_string, output_string_cst, output_identifier): Update
14524 handling of NULL strings.
14525 (lto_output_location_bitpack): New function.
14526 (lto_output_location): Use it.
14527 (lto_output_tree_ref): Use output_record_start.
14528 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
14530 * lto-streamer-in.c (string_for_index): Break out from ...; offset
14532 (input_string_internal): ... here;
14533 (input_string_cst, input_identifier, lto_input_string): Update handling
14535 (lto_input_location_bitpack): New function
14536 (lto_input_location): Use it.
14537 (unpack_ts_type_common_value_fields): Pack align & alias in var len
14539 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
14540 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
14541 (bp_pack_value): Sanity check the value range.
14542 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
14544 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
14547 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
14549 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
14550 call_arg_location instructions down the floor.
14552 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
14554 PR rtl-optimization/49154
14555 * ira.c (setup_pressure_classes): Process class without sublcasses
14556 as a candidate for pressure classes.
14558 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
14560 PR rtl-optimization/48575
14561 * genrecog.c (position_type): New enum.
14562 (position): New structure.
14563 (decision): Use position structure instead of a string.
14564 (root_pos, peep2_insn_pos_list): New variables.
14565 (next_position, compare_positions): New functions.
14566 (new_decision): Use position structures instead of strings.
14567 (maybe_both_true): Likewise.
14568 (change_state): Likewise.
14569 (write_tree): Likewise.
14570 (make_insn_sequence): Likewise.
14572 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
14574 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
14575 TS_BASE instead of TS_COMMON.
14576 (find_decls_types_r): Check for TS_TYPED structure before looking at
14578 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
14580 (BLOCK_CHAIN): Use new chain field.
14582 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
14584 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
14585 moves expensive on Power7 also.
14587 2011-05-26 Richard Guenther <rguenther@suse.de>
14589 * fold-const.c (fold_unary_loc): Remove bogus code.
14591 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
14593 * tree.h (struct tree_identifier): Inherit from tree_typed, not
14595 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
14596 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
14597 TS_BASE instead of TS_COMMON.
14598 * varasm.c (assemble_name): Remove assert.
14600 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
14602 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
14604 * libgcc-std.ver: Delete file.
14606 2011-05-26 Richard Guenther <rguenther@suse.de>
14608 PR tree-optimization/48702
14609 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
14610 only when we know the base address is within bounds.
14611 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
14612 assume the base address of TARGET_MEM_REFs is in bounds.
14614 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14617 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
14618 declaration in TARGET_SOLARIS.
14620 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
14622 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
14623 The instruction is then expanded explicitly.
14624 (supported_compare): Callable instruction.
14625 (compare): Likewise.
14627 2011-05-26 Jakub Jelinek <jakub@redhat.com>
14630 * gimplify.c (shortcut_cond_r): Don't special case
14631 COND_EXPRs if they have void type on one of their arms.
14633 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
14635 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
14636 to reduce duplication, and to achieve a slightly more logical order
14639 2011-05-26 Jakub Jelinek <jakub@redhat.com>
14641 PR tree-optimization/49161
14642 * tree-vrp.c (struct case_info): New type.
14643 (compare_case_labels): Sort case_info structs instead of
14644 trees, and not primarily by CASE_LABEL uids but by
14645 label_for_block indexes.
14646 (find_switch_asserts): Put case labels into struct case_info
14647 array instead of TREE_VEC, adjust sorting, compare label_for_block
14648 values instead of CASE_LABELs.
14650 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14652 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
14653 ("orndi3_neon"): Likewise.
14654 ("bic<mode>3_neon"): Likewise.
14656 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
14658 PR tree-optimization/49038
14659 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
14660 Ensure at least one epilogue iteration if required by data
14661 accesses with gaps.
14662 * tree-vectorizer.h (struct _loop_vec_info): Add new field
14663 to mark loops that require peeling for gaps.
14664 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
14665 (vect_get_known_peeling_cost): Take peeling for gaps into
14667 (vect_transform_loop): Generate epilogue if required by data
14669 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
14670 loop as requiring an epilogue if there are gaps in the end of
14673 2011-05-25 Ian Lance Taylor <iant@google.com>
14675 * godump.c (go_format_type): Output the first field with a usable
14678 2011-05-25 Ian Lance Taylor <iant@google.com>
14680 * godump.c (go_format_type): Check for invalid type names, pointer
14681 target types, and struct field types.
14683 2011-05-25 Jason Merrill <jason@redhat.com>
14685 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
14687 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
14689 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
14691 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
14693 * config/i386/i386.md (*movqi_extv_1)): Put back
14694 "register_operand" check in "type" calculation.
14695 (*movqi_extzv_2): Likewise.
14697 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
14699 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
14701 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
14704 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
14705 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
14706 __divxc3, __divtc3): Wrap definitions in #ifndef.
14708 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
14711 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
14712 "register_operand" check and replace q_regs_operand with
14713 QIreg_operand in "type" calculation.
14714 (*movqi_extv_1): Likewise.
14715 (*movqi_extzv_2_rex64): Likewise.
14716 (*movqi_extzv_2): Likewise.
14718 * config/i386/predicates.md (QIreg_operand): New.
14720 2011-05-25 Richard Guenther <rguenther@suse.de>
14722 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
14723 type-based offset disambiguation, streamline MEM_REF and
14724 TARGET_MEM_REF handling.
14726 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
14728 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
14729 (bdesc_special_args): Add pause intrinsic.
14731 * config/i386/i386.md (UNSPEC_PAUSE): New.
14733 (*pause): Likewise.
14734 * config/i386/ia32intrin.h (__pause): Likewise.
14736 * doc/extend.texi (X86 Built-in Functions): Add documentation for
14739 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14741 PR tree-optimization/46728
14742 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
14743 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
14745 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
14747 * tree.h (struct tree_exp): Inherit from struct tree_typed.
14748 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
14749 instead of TS_COMMON.
14751 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
14753 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
14754 LIBGCC2_GNU_PREFIX is defined.
14756 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
14757 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
14758 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
14759 __clz_tab): Define using __N.
14760 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
14761 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
14762 * target.def (libfunc_gnu_prefix): New hook.
14763 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
14764 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
14765 * doc/tm.texi: Regenerate.
14766 * system.h (LIBGCC2_GNU_PREFIX): Poison.
14767 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
14769 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
14770 (init_optabs): Likewise for the bswap libfuncs.
14771 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
14773 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
14774 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
14775 * libgcc-std.ver: Remove.
14776 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
14777 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
14779 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
14780 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
14781 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
14782 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
14783 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
14784 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
14785 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
14786 * config/fixed-bit.h (FIXED_OP): Define differently depending on
14787 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
14788 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
14790 2011-05-25 Jan Hubicka <jh@suse.cz>
14792 * lto-streamer-out.c (output_record_start): Use lto_output_enum
14793 (lto_output_tree): Use output_record_start.
14794 * lto-streamer-in.c (input_record_start): Use lto_input_enum
14795 (lto_get_pickled_tree): Use input_record_start.
14796 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
14797 (lto_value_range_error): New function.
14798 * lto-streamer.h (lto_value_range_error): Declare.
14799 (lto_output_int_in_range, lto_input_int_in_range): New functions.
14800 (lto_output_enum, lto_input_enum): New macros.
14802 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
14804 * common.opt (flag_stack_usage_info): New variable.
14805 (-Wstack-usage): New option.
14806 * doc/invoke.texi (Warning options): Document -Wstack-usage.
14807 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
14808 <OPT_fstack_usage>: Likewise.
14809 * toplev.c (output_stack_usage): Handle -Wstack-usage.
14810 * calls.c (expand_call): Test flag_stack_usage_info variable instead
14811 of flag_stack_usage.
14812 (emit_library_call_value_1): Likewise.
14813 * explow.c (allocate_dynamic_stack_space): Likewise.
14814 * function.c (instantiate_virtual_regs ): Likewise.
14815 (prepare_function_start): Likewise.
14816 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
14817 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
14818 * config/arm/arm.c (arm_expand_prologue): Likewise.
14819 (thumb1_expand_prologue): Likewise.
14820 * config/avr/avr.c (expand_prologue): Likewise.
14821 * config/i386/i386.c (ix86_expand_prologue): Likewise.
14822 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
14823 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
14824 * config/mips/mips.c (mips_expand_prologue): Likewise.
14825 * config/pa/pa.c (hppa_expand_prologue): Likewise.
14826 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
14827 * config/s390/s390.c (s390_emit_prologue): Likewise.
14828 * config/sh/sh.c (sh_expand_prologue): Likewise.
14829 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
14830 * config/spu/spu.c (spu_expand_prologue): Likewise.
14832 2011-05-25 Richard Guenther <rguenther@suse.de>
14834 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
14835 (gimple_canonical_types_compatible_p): Likewise.
14837 2011-05-25 Jan Hubicka <jh@suse.cz>
14839 PR middle-end/49062
14840 * ipa.c (function_and_variable_visibility): Only add to same
14841 comdat group list if DECL_ONE_ONLY.
14843 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
14845 PR rtl-optimization/49014
14846 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
14848 2011-05-25 Jakub Jelinek <jakub@redhat.com>
14851 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
14853 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
14855 PR rtl-optimization/48757
14856 * ira-build.c (loop_with_eh_edge_p): Rename to
14857 loop_with_complex_edge_p, check edges on complexity, make function
14859 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
14862 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
14864 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
14865 force flag_ira_share_save_slots to 0.
14867 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
14869 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
14870 (vt_initialize): Set PROLOGUE_BB unconditionally.
14871 Add block comment about CFA_BASE_RTX machinery.
14872 Reset FP_CFA_OFFSET to -1 on all invalid paths.
14873 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
14875 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
14878 * c-parser.c (c_parser_objc_class_instance_variables): More robust
14879 parsing of syntax error in ObjC instance variable lists. In
14880 particular, avoid an infinite loop if there is a stray ']'.
14881 Updated error message.
14883 2011-05-24 Ian Lance Taylor <iant@google.com>
14885 * godump.c (go_define): Don't accept a string immediately after
14888 2011-05-24 Ian Lance Taylor <iant@google.com>
14890 * godump.c (struct godump_container): Add invalid_hash field.
14891 (go_format_type): Return false if type is found in invalid_hash.
14892 (go_output_typedef): Add invalid type to invalid_hash.
14893 (go_finish): Create and delete invalid_hash.
14895 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14897 PR tree-optimization/46728
14898 * tree-ssa-math-opts.c (powi_table): New.
14899 (powi_lookup_cost): New.
14901 (powi_as_mults_1): New.
14902 (powi_as_mults): New.
14903 (gimple_expand_builtin_powi): New.
14904 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
14905 (gate_cse_sincos): Remove sincos/cexp restriction.
14907 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14910 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
14912 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
14913 * mips-tdump.c: Likewise.
14915 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
14918 * config/i386/driver-i386.c (host_detect_local_cpu): Always
14919 add -mno-XXX. Handle FMA.
14921 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
14923 PR rtl-optimization/48633
14924 * ira-build.c (loop_with_eh_edge_p): New function.
14925 (mark_loops_for_removal): Use it.
14927 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
14929 PR rtl-optimization/48971
14930 * ira.c (setup_pressure_classes): Don't check register move cost
14931 for classes with one registers. Don't add pressure class if there
14932 is a pressure class with the same available hard registers.
14933 Check contains_reg_of_mode. Fix a typo in collecting
14934 temp_hard_regset. Ignore hard registers not belonging to a class.
14936 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
14939 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
14941 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
14942 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14944 PR gcov-profile/48845
14945 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
14947 2011-05-24 Richard Guenther <rguenther@suse.de>
14949 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
14950 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
14951 (gimple_types_compatible_p_1): Adjust.
14952 (iterative_hash_canonical_type): Do not bother about complete vs.
14954 (gimple_canonical_types_compatible_p): Likewise.
14956 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14958 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
14960 2011-05-24 Richard Guenther <rguenther@suse.de>
14963 * gimple.c (gimple_register_canonical_type): Revert
14965 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
14966 does not for a tree for the case where it matters. Cache
14967 pointer-type alias-sets.
14969 2011-05-24 Joseph Myers <joseph@codesourcery.com>
14971 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
14972 (OBJS): Remove options.o, opts-common.o and prefix.o.
14973 (OBJS-libcommon-target): New.
14974 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
14975 (BACKEND): Include libcommon-target.a.
14976 (MOSTLYCLEANFILES): Include libcommon-target.a.
14977 (libcommon-target.a): New.
14978 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
14981 2011-05-23 Joseph Myers <joseph@codesourcery.com>
14983 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
14984 parts of output shared with the driver.
14985 * optc-gen.awk: Don't generate parts of output not shared with the
14987 * opth-gen.awk: Remove GCC_DRIVER conditionals.
14988 * doc/options.texi (SourcerInclude): Mention options-save.c.
14989 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
14990 (OBJS): Add options-save.o.
14991 (options-save.c, options-save.o): New.
14992 (options.o): Update dependencies.
14993 (gcc-options.o): Remove.
14994 (mostlyclean): Remove options-save.c.
14996 2011-05-23 Jakub Jelinek <jakub@redhat.com>
14999 * dbxout.c: Include cgraph.h.
15000 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
15001 and without value expr, return NULL if no varpool node exists for
15002 it or if it is not needed.
15003 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
15006 * c-decl.c (start_decl): Convert expr to void_type_node.
15008 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
15010 PR rtl-optimization/48826
15011 * emit-rtl.c (try_split): When splitting a call that is followed
15012 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
15014 2011-05-23 Jakub Jelinek <jakub@redhat.com>
15016 * cfgexpand.c (expand_debug_expr): For unused non-addressable
15017 parameters passed in memory prefer using DECL_INCOMING_RTL over
15018 the pseudos it will be copied into.
15020 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
15023 * config/i386/i386.c (ix86_option_override_internal): Save the
15024 initial options after checking vzeroupper.
15026 2011-05-23 David Li <davidxl@google.com>
15028 PR tree-optimization/48988
15029 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
15030 Initialize has_valid_pred for each pred chain.
15032 2011-05-23 Richard Guenther <rguenther@suse.de>
15034 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
15035 (iterative_hash_gimple_type): Always hash type names.
15037 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
15039 * c-typeck.c (build_function_call_vec): Tweak call to
15040 check_function_arguments.
15042 2011-05-23 Richard Guenther <rguenther@suse.de>
15044 PR tree-optimization/49115
15045 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
15046 is not necessarily carried out, do not claim it kills the ref.
15047 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
15049 2011-05-23 Richard Guenther <rguenther@suse.de>
15051 PR middle-end/15419
15052 * builtins.c (fold_builtin_memory_op): Be less restrictive about
15053 what pointer types we accept for folding.
15055 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15057 * gthr-gnat.c: Remove.
15058 * gthr-gnat.h: Remove.
15059 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
15060 * config/t-freebsd (LIB2ADDEH): Likewise.
15061 * config/t-linux (LIB2ADDEH): Likewise.
15062 * config/t-sol2 (LIB2ADDEH): Likewise.
15063 * config/ia64/t-vms (LIB2ADDEH): Likewise.
15064 * configure.ac (target_thread_file): Remove gnat handling.
15065 * configure: Regenerate.
15066 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
15068 2011-05-23 Tristan Gingold <gingold@adacore.com>
15069 Eric Botcazou <ebotcazou@adacore.com>
15071 * gcov.c (create_file_names): If no object directory is specified,
15072 keep the directory of the file.
15074 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15076 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
15077 * configure: Regenerate.
15079 2011-05-23 Jakub Jelinek <jakub@redhat.com>
15081 PR middle-end/48973
15082 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
15083 failed and the comparison has a single bit signed type, use
15084 constm1_rtx instead of const1_rtx for true value.
15085 (do_store_flag): If ops->type is single bit signed type, disable
15086 signel bit test optimization and pass -1 instead of 1 as last
15087 parameter to emit_store_flag_force.
15089 2011-05-23 Tom de Vries <tom@codesourcery.com>
15092 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
15094 (infer_loop_bounds_from_undefined): Use new function.
15096 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
15098 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
15099 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
15100 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
15102 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
15104 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
15106 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
15107 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
15110 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
15112 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
15114 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
15116 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
15117 UNSPEC_MOVE_PIC pattern.
15119 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
15121 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
15122 (sparc-*-rtems*): Likewise.
15123 (sparc64-*-elf*): Likewise.
15124 (sparc64-*-rtems*): Likewise.
15125 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
15126 * config/sparc/t-crtin: New file.
15127 * config/sparc/t-sol2 (crti.o): Delete rule.
15128 (crtn.o): Likewise.
15129 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
15130 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
15131 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
15132 (ENDFILE_SPEC): Add crtn.o.
15134 2011-05-22 Tom de Vries <tom@codesourcery.com>
15136 PR middle-end/48689
15137 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
15138 CODE_CONTAINS_STRUCT (TS_COMMON).
15140 2011-05-22 Jakub Jelinek <jakub@redhat.com>
15142 PR middle-end/49029
15143 * expmed.c (extract_fixed_bit_field): Test whether target can be used
15144 only after deciding which mode to use.
15146 2011-05-22 Tom de Vries <tom@codesourcery.com>
15149 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
15150 for call to get_shiftadd_cost.
15152 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
15155 * config/i386/cpuid.h (bit_MMXEXT): New define.
15157 2011-05-22 Nick Clifton <nickc@redhat.com>
15159 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
15160 initialisation of non-existant args[2] element. Use args[] array
15161 not arg[] array to pass arguments to build_function_type_list.
15163 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
15165 PR tree-optimization/49087
15166 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
15168 2011-05-21 Jason Merrill <jason@redhat.com>
15171 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
15172 static storage duration.
15174 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
15176 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
15179 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
15181 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
15182 false if there are call-saved registers here...
15183 (sparc_can_use_return_insn_p): ...but here instead.
15184 (save_or_restore_regs): Fix thinko.
15185 (sparc_expand_prologue): Use current_function_is_leaf.
15186 (sparc_frame_pointer_required): Likewise.
15188 2011-05-21 Nick Clifton <nickc@redhat.com>
15191 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
15193 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
15195 * gengtype.c (walk_type): Implemented "atomic" GTY option.
15196 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
15198 2011-05-21 Joseph Myers <joseph@codesourcery.com>
15200 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
15201 * optc-gen.awk: Move common code to opt-read.awk.
15202 * opth-gen.awk: Likewise.
15203 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
15205 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
15207 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
15209 2011-05-20 Tom de Vries <tom@codesourcery.com>
15212 * tree-ssa-loop-ivopts.c: Include expmed.h.
15213 (get_shiftadd_cost): New function.
15214 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
15216 2011-05-20 Jakub Jelinek <jakub@redhat.com>
15219 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
15220 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
15222 2011-05-20 Joseph Myers <joseph@codesourcery.com>
15224 * Makefile.in: Update comment referring to $(OBJS-common).
15226 2011-05-20 Ian Lance Taylor <iant@google.com>
15228 * godump.c (go_output_typedef): Put enum constants in the macro
15229 hash table to avoid duplicate Go const definitions.
15231 2011-05-20 Joseph Myers <joseph@codesourcery.com>
15233 * Makefile.in (LIBDEPS): Add libcommon.a.
15235 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
15236 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
15237 pretty-print.o and version.o.
15238 (OBJS-libcommon): New.
15239 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
15240 (BACKEND): Add libcommon.a.
15241 (MOSTLYCLEANFILES): Likewise.
15242 (libcommon.a): New.
15243 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
15244 (cpp$(exeext)): Likewise.
15245 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
15246 pretty-print.o and input.o.
15247 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
15248 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
15249 (errors.o): Remove.
15250 (mips-tfile): Don't explicitly use version.o.
15251 (mips-tdump): Likewise.
15252 (gcov.o): Depend on $(DIAGNOSTIC_H).
15253 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
15254 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
15255 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
15256 * gcov-dump.c: Include intl.h and diagnostic.h.
15257 (main): Initialize diagnostics.
15258 * gcov.c: Include diagnostic.h.
15260 (main): Initialize diagnostics.
15261 * lto-wrapper.c: Include diagnostic.h.
15262 (main): Initialize diagnostics.
15264 2011-05-20 Michael Matz <matz@suse.de>
15266 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
15268 2011-05-20 Michael Matz <matz@suse.de>
15269 Richard Guenther <rguenther@suse.de>
15271 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
15272 use lto_streamer_cache_append directly instead of returning a VEC.
15273 (preload_common_node): Remove.
15274 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
15276 (lto_streamer_cache_create): Call lto_preload_common_nodes.
15278 2011-05-20 Richard Guenther <rguenther@suse.de>
15280 PR tree-optimization/49079
15281 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
15282 MEM_REFs correctly for the trailing array access detection.
15283 Special case constants the same way as decls for overall size
15286 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
15288 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
15289 argument expansion.
15291 2011-05-20 Jakub Jelinek <jakub@redhat.com>
15293 PR tree-optimization/49073
15294 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
15295 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
15296 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
15298 2011-05-20 Richard Guenther <rguenther@suse.de>
15300 PR middle-end/48849
15301 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
15302 of pointer types the same way the middle-end does.
15304 2011-05-20 Richard Guenther <rguenther@suse.de>
15306 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
15307 or pointer-to chains. Delay all fixup to uniquify_nodes.
15309 2011-05-19 Quentin Neill <quentin.neill@amd.com>
15311 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
15312 (fma4_fmaddsub): Likewise
15314 2011-05-19 Jan Hubicka <jh@suse.cz>
15316 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
15317 (GIMPLE_TYPE_PAIR_SIZE): New macro.
15318 (type_pair_cache): New static var.
15319 (lookup_type_pair): Use fixed sized custom hash; make inline.
15320 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
15321 calls of lookup_type_pair.
15322 (print_gimple_types_stats): Remove cache stats.
15323 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
15326 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
15328 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
15329 when TARGET_RDRND is active.
15330 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
15331 Generate dummy SImode target register when target is NULL.
15333 2011-05-19 Joseph Myers <joseph@codesourcery.com>
15335 * config/arm/arm-fpus.def: New.
15336 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
15338 * config/arm/arm-tables.opt: Regenerate.
15339 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
15340 (arm_option_override): Don't decode FPU name to string here.
15341 * config/arm/arm.opt (mfpu=): Use Enum.
15342 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
15343 Update dependencies.
15345 2011-05-19 Joseph Myers <joseph@codesourcery.com>
15347 * collect2.c: Include diagnostic.h.
15348 (fatal_perror, fatal, error, fancy_abort): Remove.
15349 (main): Set progname. Call xmalloc_set_program_name and
15350 diagnostic_initialize.
15351 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
15352 scan_libraries, resolve_lib_name): Call fatal_error instead of
15353 fatal and fatal_perror.
15354 * collect2.h (error, fatal, fatal_perror): Don't declare.
15355 * tlink.c: Include diagnostic-core.h.
15356 (recompile_files): Call fatal_error instead of fatal_perror.
15357 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
15358 pretty-print.o and input.o.
15359 (collect2.o, tlink.o): Update dependencies.
15361 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15363 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
15365 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15368 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
15369 COMDAT group syntax, both SPARC and x86 variants.
15370 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
15371 * configure: Regenerate.
15372 * config/sol2.h (TARGET_SOLARIS): Define.
15373 (PUSHSECTION_FORMAT): Remove.
15374 (SECTION_NAME_FORMAT): Define.
15375 * config/sol2.c: Include hashtab.h.
15376 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
15377 expansion, using SECTION_NAME_FORMAT.
15378 (solaris_comdat_htab): New variable.
15379 (struct comdat_entry): Define.
15380 (comdat_hash): New function.
15381 (comdat_eq): New function.
15382 (solaris_elf_asm_comdat_section): New function.
15383 (solaris_define_comdat_signature): New function.
15384 (solaris_code_end): New function.
15385 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
15386 (solaris_code_end): Declare.
15387 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
15388 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
15390 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
15391 Remove ATTRIBUTE_UNUSED.
15392 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
15393 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
15394 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
15395 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
15396 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
15397 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
15398 (PUSHSECTION_FORMAT): Remove.
15399 (SECTION_NAME_FORMAT): Redefine.
15401 2011-05-19 Kai Tietz <ktietz@redhat.com>
15403 * tree-cfg.c (verify_gimple_assign_binary): Barf on
15404 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
15405 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
15407 2011-05-19 Anatoly Sokolov <aesok@post.ru>
15408 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15410 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
15412 2011-05-19 Richard Guenther <rguenther@suse.de>
15414 PR middle-end/48985
15415 * tree-object-size.c (addr_object_size): If the pointed-to
15416 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
15418 2011-05-19 Richard Guenther <rguenther@suse.de>
15420 * gimple.c (gimple_types_compatible_p_1): Compare names of
15421 the types themselves.
15422 (iterative_hash_gimple_type): And hash them that way.
15423 (gimple_register_type_1): If we register a main variant properly
15424 initialize the leader to ourselves.
15426 2011-05-19 Tom de Vries <tom@codesourcery.com>
15429 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
15430 get_loop_invariant_expr_id.
15431 (get_loop_invariant_expr_id): Use get_expr_id.
15432 (parm_decl_cost): New function.
15433 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
15434 Improve bound cost estimation. Use different inv_expr_id for elim and
15437 2011-05-19 Tom de Vries <tom@codesourcery.com>
15440 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
15441 cost_base.cost == 0.
15443 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
15446 * config/i386/sse.md
15447 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
15450 2011-05-18 Jakub Jelinek <jakub@redhat.com>
15452 PR tree-optimization/49039
15453 * tree-vrp.c (extract_range_from_binary_expr): For
15454 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
15455 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
15457 2011-05-18 Tom de Vries <tom@codesourcery.com>
15460 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
15462 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
15464 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
15465 (*tls_global_dynamic_64): Ditto.
15466 (*tls_local_dynamic_base_32_gnu): Ditto.
15467 (*tls_local_dynamic_base_64): Ditto.
15468 (tls_initial_exec_64_sun): Ditto.
15470 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
15472 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
15473 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
15475 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
15476 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
15477 * config/bfin/bfin.c (bfin_cpus): Add bf592.
15478 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
15479 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
15480 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
15481 * config/bfin/elf.h (LIB_SPEC): Add bf592.
15483 2011-05-18 Joseph Myers <joseph@codesourcery.com>
15485 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
15486 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
15487 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
15488 target_thread_pointer, arm_structure_size_boundary, struct
15489 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
15490 struct abi_name, arm_all_abis): Remove.
15491 (arm_option_override) Don't process most enumerated option values here.
15492 Don't process target_fpe_name here. Work with integer not string for
15493 structure size boundary; use separate diagnostics for each case.
15494 * config/arm/arm.h (enum float_abi_type, enum
15495 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
15497 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
15498 arm_structure_size_boundary): Remove.
15499 * config/arm/arm.opt (mabi=): Use Enum and Init.
15500 (arm_abi_type): New Enum and EnumValue entries.
15501 (mfloat-abi=): Use Enum and Init.
15502 (float_abi_type): New Enum and EnumValue entries.
15503 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
15504 (mfp16-format=): Use Enum and Init.
15505 (arm_fp16_format_type): New Enum and EnumValue entries.
15506 (mstructure-size-boundary=): Use UInteger and Init.
15507 (mtp=): Use Enum and Init.
15508 (arm_tp_type): New Enum and EnumValue entries.
15510 2011-05-18 Richard Guenther <rguenther@suse.de>
15512 PR tree-optimization/49018
15513 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
15514 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
15515 gimple_has_side_effects.
15517 2011-05-18 Richard Guenther <rguenther@suse.de>
15519 * gimple.c (gimple_register_type_1): New function, split out from ...
15520 (gimple_register_type): ... here. Avoid infinite recursion.
15522 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
15524 PR tree-optimization/41881
15525 * tree-vectorizer.h (struct _loop_vec_info): Add new field
15526 reduction_chains along with a macro for its access.
15527 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
15528 (destroy_loop_vec_info): Free reduction chains.
15529 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
15530 (vect_is_slp_reduction): New function.
15531 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
15532 (vect_create_epilog_for_reduction): Support SLP reduction chains.
15533 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
15534 definition types for reduction chains.
15535 (vect_supported_load_permutation_p): Don't allow permutations for
15537 (vect_analyze_slp_instance): Support reduction chains.
15538 (vect_analyze_slp): Try to build SLP instance from reduction chains.
15539 (vect_get_constant_vectors): Handle reduction chains.
15540 (vect_schedule_slp_instance): Mark the first statement of the
15541 reduction chain as reduction.
15543 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
15545 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
15546 names for group elements access.
15547 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
15548 reduction chains as well. Remove data reference and interleaving
15549 related words from the fields names.
15550 * tree-vect-loop.c (vect_transform_loop): Use new names for group
15552 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
15553 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
15554 vect_update_interleaving_chain, vect_same_range_drs,
15555 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
15556 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
15557 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
15558 vect_analyze_group_access, vect_analyze_data_ref_access,
15559 vect_create_data_ref_ptr, vect_transform_strided_load,
15560 vect_record_strided_load_vectors): Likewise.
15561 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
15562 vect_model_load_cost, vectorizable_store, vectorizable_load,
15563 vect_remove_stores, new_stmt_vec_info): Likewise.
15564 * tree-vect-slp.c (vect_build_slp_tree,
15565 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
15567 2011-05-18 Richard Guenther <rguenther@suse.de>
15569 PR middle-end/48989
15570 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
15571 operand verification.
15572 (verify_gimple_assign_binary): Likewise.
15573 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
15574 to non-1-precision BOOLEAN_TYPEs.
15576 2011-05-18 Tom de Vries <tom@codesourcery.com>
15579 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
15581 2011-05-18 Jakub Jelinek <jakub@redhat.com>
15583 PR tree-optimization/49000
15584 * tree-ssa.c (execute_update_addresses_taken): Call
15585 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
15586 be rewritten and decl has been marked for renaming, reset
15589 2011-05-17 Joseph Myers <joseph@codesourcery.com>
15591 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
15592 enum_opts_set when testing if attributes have set -mfpmath=.
15594 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15596 * config/mips/mips.c (mips_handle_option): Remove unused variable.
15598 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
15600 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
15602 * tree-inline.c (maybe_inline_call_in_expr): Initialize
15603 id.transform_lang_insert_block with NULL.
15605 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
15607 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
15608 (output_fp_compare): Change args 3 and 4 to bool.
15609 (ix86_expand_call): Change arg 6 to bool.
15610 (ix86_attr_length_immediate_default): Change arg 2 to bool.
15611 (ix86_attr_length_vex_default): Change arg 3 to bool.
15612 * config/i386/i386.md: Update all uses.
15613 * config/i386/i386.c: Ditto.
15614 (ix86_flags_dependent): Change return type to bool.
15616 2011-05-17 Richard Guenther <rguenther@suse.de>
15618 * gimple.c (type_hash_pair_compare): Fix comparison.
15620 2011-05-17 Richard Guenther <rguenther@suse.de>
15622 * gimple.c (iterative_hash_gimple_type): Simplify singleton
15623 case some more, fix final hash value of the non-singleton case.
15625 2011-05-17 Richard Guenther <rguenther@suse.de>
15629 2011-05-16 Richard Guenther <rguenther@suse.de>
15631 * gimple.c (gimple_types_compatible_p_1): Use names of the
15632 type itself, not its main variant.
15633 (iterative_hash_gimple_type): Likewise.
15635 2011-05-17 Richard Guenther <rguenther@suse.de>
15637 * gimple.c (gimple_register_canonical_type): Use the main-variant
15638 leader for computing the canonical type.
15640 2011-05-17 Nick Clifton <nickc@redhat.com>
15642 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
15645 * config/rx/rx.md: Add peephole to remove redundant extensions
15647 (bitset_in_memory): Use rx_restricted_mem_operand.
15648 (bitinvert_in_memory): Likewise.
15649 (bitclr_in_memory): Likewise.
15651 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
15652 Nick Clifton <nickc@redhat.com>
15654 * config/rx/rx.md: Add peepholes to match a register move followed
15655 by a comparison of the moved register. Replace these with an
15656 addition of zero that does both actions in one instruction.
15658 2011-05-17 Jakub Jelinek <jakub@redhat.com>
15661 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
15662 predicate to allow CONST_INT.
15663 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
15665 2011-05-16 Joseph Myers <joseph@codesourcery.com>
15667 * opts-common.c (opt_enum_arg_to_value): New.
15668 * opts.h (opt_enum_arg_to_value): Declare.
15669 * config/i386/i386.opt (fpmath): Remove.
15670 (mfpmath=): Use Enum, Init and Save.
15671 (fpmath_unit): New Enum and EnumValue entries.
15672 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
15673 name for function fpmath state.
15674 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
15675 * config/i386/i386.c: Include diagnostic.h.
15676 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
15677 (ix86_target_string): Take enum fpmath_unit value instead of string.
15678 (ix86_debug_options): Update call to ix86_target_string.
15679 (ix86_option_override_internal): Don't process fpmath strings here.
15680 (x86_function_specific_save, ix86_function_specific_restore):
15681 Don't handle fpmath state specially.
15682 (ix86_function_specific_print): Pass fpmath state to
15683 ix86_target_string instead of printing in this function.
15684 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
15685 Handle enum attributes.
15686 (IX86_ATTR_ENUM, ix86_opt_enum): New.
15687 (ix86_valid_target_attribute_tree): Update option_strings
15688 handling. Handle fpmath as enum option.
15689 (ix86_can_inline_p): Update field names for function fpmath state.
15690 (ix86_expand_builtin): Update call to ix86_target_string.
15691 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
15692 (ix86_fpmath): Remove.
15693 * config/i386/t-i386 (i386.o): Update dependencies.
15695 2011-05-16 Joseph Myers <joseph@codesourcery.com>
15697 PR preprocessor/48677
15698 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
15699 from decoded_options[0], not from itself.
15701 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
15703 * config/i386/constraints.md (z): New constraint.
15704 * config/i386/i386.c (c): New mode attribute.
15705 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
15706 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
15707 constraint for operand 0.
15708 (*call_vzeroupper): Ditto.
15709 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
15710 (*call_rex64_ms_sysv_vzeroupper): Ditto.
15711 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
15712 Use "lzm" constraint for operand 0.
15713 (*call_pop_vzeroupper): Ditto.
15714 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
15715 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
15716 constraint for operand 0.
15717 (*sibcall_vzeroupper): Ditto.
15718 (*sibcall_rex64_ms_sysv): Ditto.
15719 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
15720 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
15721 *sibcall_pop_1. Use "Uz" constraint for operand 0.
15722 (*sibcall_pop_vzeroupper): Ditto.
15723 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
15724 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
15725 mode iterator. Use "<c>zm" constraint for operand 1.
15726 (*call_value_vzeroupper): Ditto.
15727 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
15729 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
15730 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
15731 *call_value_pop_1. Use "lzm" constraint for operand 1.
15732 (*call_value_pop_vzeroupper): Ditto.
15733 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
15734 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
15735 mode iterator. Use "Uz" constraint for operand 1.
15736 (*sibcall_value_vzeroupper): Ditto.
15737 (*sibcall_value_rex64_ms_sysv): Ditto.
15738 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
15739 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
15740 constraint for operand 1.
15741 (*sibcall_value_pop_vzeroupper): Ditto.
15742 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
15743 and "z" constraint for operand 2.
15744 (*tls_global_dynamic_32_gnu): Ditto.
15745 (*tls_local_dynamic_base_32_gnu): Ditto.
15746 (*tls_local_dynamic_base_64): Ditto.
15747 (*tls_local_dynamic_32_once): Ditto.
15748 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
15749 Update all callers.
15750 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
15752 2011-05-16 Richard Guenther <rguenther@suse.de>
15754 * gimple.c (gimple_types_compatible_p_1): Use names of the
15755 type itself, not its main variant.
15756 (iterative_hash_gimple_type): Likewise.
15758 2011-05-16 Richard Guenther <rguenther@suse.de>
15760 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
15761 always visit pointer target and function result and argument types.
15763 2011-05-16 Jason Merrill <jason@redhat.com>
15766 * tree-inline.c (copy_statement_list): Put back recursion.
15768 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
15772 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
15773 * config/avr/avr.md ("*ior<mode>qi.byte0",
15774 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
15776 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
15779 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
15780 register is needed for a function argument.
15782 2011-05-16 Richard Guenther <rguenther@suse.de>
15784 * gimple.c (struct type_hash_pair): New type.
15785 (type_hash_pair_compare): New function.
15786 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
15788 2011-05-16 Revital Eres <revital.eres@linaro.org>
15790 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
15792 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
15794 * config/i386/i386.md (floating point move splitters): Fix
15795 usage of standard_80387_constant_p.
15796 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
15798 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
15800 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
15802 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
15804 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
15805 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
15806 (tree_ssa_lim_finalize): Likewise.
15808 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
15810 * config/i386/constraint.md (Yd, Yx): New register constraints.
15811 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
15812 Yd conditional register constraint.
15813 (*movtf_internal): Use standard_sse_constant_opcode.
15814 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
15815 Yx conditional register constraint.
15816 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
15817 Yd conditional register constraint. Use standard_sse_constant_p to
15818 check for valid SSE constants and call standard_sse_constant_opcode to
15820 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
15821 constants and call standard_sse_constant_opcode to output SSE insn.
15822 * config/i386/i386.c (ix86_option_ovverride_internal): Set
15823 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
15824 optimize_size is set.
15825 (standard_sse_constant_opcode): Output conditional AVX insn templates.
15827 2011-05-14 Tobias Burnus <burnus@net-b.de>
15829 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
15831 2011-05-13 Martin Jambor <mjambor@suse.cz>
15833 * ipa-prop.c (ipa_cst_from_jfunc): New function.
15834 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
15835 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
15836 (evaluate_conditions_for_ipcp_clone): Removed.
15837 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
15838 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
15839 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
15841 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
15843 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
15844 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
15845 lieu of MAY_HAVE_DEBUG_STMTS.
15846 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
15847 debug statements if !MAY_HAVE_DEBUG_STMTS.
15849 2011-05-13 Martin Thuresson <martint@google.com>
15851 PR gcov-profile/47793
15852 * libgcov.c (gcov_exit): Support relative profile paths.
15853 * doc/invoke.texi (-fprofile-dir): Update for above change.
15855 2011-05-13 Richard Guenther <rguenther@suse.de>
15857 * gimple.c (gimple_canonical_types_compatible_p): Do not use
15858 type-pair caching, do not compare hashes.
15860 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
15862 PR middle-end/48965
15863 * tree-cfg.c (edge_to_cases_cleanup): Return true.
15864 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
15866 2011-05-13 Kai Tietz <ktietz@redhat.com>
15868 * gimplify.c (gimplify_expr): Make sure operand is boolified.
15869 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
15870 compatible type for TRUTH_NOT_EXPR.
15872 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
15874 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
15875 (ix86_hard_regno_mode_ok): Change return value to bool. Use
15876 can_create_pseudo_p ().
15878 2011-05-13 Richard Guenther <rguenther@suse.de>
15881 * gimple.c (iterative_hash_gimple_type): Revert change in
15882 pointer target and function result and argument hashing.
15884 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
15886 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
15887 (*movxf_internal_nointeger): Ditto.
15888 (*movdf_internal_rex64): Ditto.
15889 (*movdf_internal): Ditto.
15890 (*movdf_internal_nointeger): Ditto.
15891 (*movsf_internal): Ditto.
15892 (sincos splitters): Use can_create_pseudo ().
15894 2011-05-13 Joseph Myers <joseph@codesourcery.com>
15896 * config/i386/i386-opts.h: New.
15897 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
15898 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
15899 ix86_section_threshold): Remove.
15900 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
15901 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
15903 (ix86_option_override_internal): Don't decode strings for options
15904 other than -march=, -mtune= and -mfpmath=. Don't allow for
15905 __attribute__ uses in remaining diagnostics for options with
15906 string arguments. Don't check for integer arguments being negative.
15907 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
15908 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
15909 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
15910 ix86_branch_cost, ix86_section_threshold): Remove.
15911 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
15913 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
15915 (masm=): Use Enum and Init.
15916 (asm_dialect): New Enum and EnumValue entries.
15917 (mbranch-cost=): Use UInteger.
15918 (mlarge-data-threshold=): Use UInteger and Init.
15919 (mcmodel=): Use Enum and Init.
15920 (cmodel): New Enum and EnumValue entries.
15921 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
15922 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
15923 mregparm=): Use UInteger.
15924 (mstringop-strategy=): Use Enum and Init.
15925 (stringop_alg): New Enum and EnumValue entries.
15926 (mtls-dialect=): Use Enum and Init.
15927 (tls_dialect): New Enum and EnumValue entries.
15928 (mabi=): Use Enum and Init.
15929 (calling_abi): New Enum and EnumValue entries.
15930 (mveclibabi=): Use Enum and Init.
15931 (ix86_veclibabi): New Enum and EnumValue entries.
15933 2011-05-13 Nick Clifton <nickc@redhat.com>
15935 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
15936 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
15938 2011-05-13 Kai Tietz <ktietz@redhat.com>
15940 PR middle-end/48984
15941 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
15942 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
15943 (gimple_boolify): Check for cast for boolean_type_node instead for
15946 2011-05-13 Richard Guenther <rguenther@suse.de>
15948 PR tree-optimization/48172
15949 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
15950 multiplying by number of iterations for equal step.
15951 (vect_create_cond_for_alias_checks): Likewise.
15953 2011-05-13 Andreas Schwab <schwab@redhat.com>
15955 * configure.ac: Use AS_HELP_STRING throughout.
15956 * configure: Regenerate.
15958 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
15960 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
15961 (ix86_emit_restore_regs_using_mov): Likewise.
15962 (ix86_emit_restore_sse_regs_using_mov): Likewise.
15964 2011-05-12 Anatoly Sokolov <aesok@post.ru>
15966 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
15967 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
15968 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
15969 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
15970 RTX_OK_FOR_OLO10_P): ...here.
15971 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
15974 2011-05-12 Kai Tietz <ktietz@redhat.com>
15976 * gimplify.c (gimple_boolify): Re-boolify expression
15977 arguments even if expression type is of kind BOOLEAN_TYPE.
15978 (gimplify_boolean_expr): Removed.
15979 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
15980 and XOR. Additional take care that we keep expression's type.
15981 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
15982 of TRUTH_AND|OR|XOR_EXPR.
15984 2011-05-12 Jakub Jelinek <jakub@redhat.com>
15986 PR tree-optimization/48975
15987 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
15988 on all bbs here and free and clear ifc_bbs at the end.
15990 2011-05-12 Richard Guenther <rguenther@suse.de>
15992 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
15993 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
15994 until after simple checks.
15995 (gimple_types_compatible_p): Likewise.
15996 (iterative_hash_gimple_type): Always hash pointer targets
15997 and function return and argument types.
15998 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
15999 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
16000 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
16001 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
16002 completely in the simple compare section.
16003 (gimple_register_canonical_type): Query the cache again after
16006 2011-05-12 Richard Guenther <rguenther@suse.de>
16008 PR tree-optimization/48172
16009 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
16010 the number of iterations from the segment size calculation.
16011 (vect_create_cond_for_alias_checks): Adjust.
16013 2011-05-12 Jakub Jelinek <jakub@redhat.com>
16016 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
16017 if validate_subreg fails.
16019 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
16021 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
16022 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
16025 2011-05-12 DJ Delorie <dj@redhat.com>
16027 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
16028 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
16029 created builtin into rx_builtins array.
16030 (rx_builtin_decl): New function.
16031 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
16033 2011-05-12 DJ Delorie <dj@redhat.com>
16034 Nick Clifton <nickc@redhat.com>
16036 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
16037 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
16038 (rx_is_legitimate_address): Add pre-decrement and post-increment
16039 addressing in HImode and QImode. Fix test for out of range
16040 REG+INT addressing.
16041 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
16042 (rx_align_for_label): Test label before extracting its usage count.
16043 (rx_adjust_insn_lengths): Fix selection of insn codes.
16044 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
16046 2011-05-11 Jason Merrill <jason@redhat.com>
16048 * tree.c (type_hash_canon): Use struct tree_type_non_common.
16050 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
16052 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
16053 reindent the subsequent block.
16055 2011-05-11 Satoru Takabayashi <satorux@google.com>
16056 Paul Pluzhnikov <ppluzhnikov@google.com>
16058 * doc/install.texi (Configuration): Document --with-linker-hash-style.
16059 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
16060 * config.in: Add LINKER_HASH_STYLE.
16061 * configure.ac: Add --with-linker-hash-style.
16062 * configure: Regenerate.
16064 2011-05-11 Richard Guenther <rguenther@suse.de>
16066 PR middle-end/48964
16067 * gimple.c (iterative_hash_canonical_type): Fix typo.
16069 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
16071 * config/i386/i386.c (legitimize_tls_address)
16072 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
16073 expanders directly for TARGET_GNU2_TLS. Determine pic and
16074 __tls_get_addr symbol reference here. Update call to
16075 gen_tls_global_dynamic_{32,64} for added arguments.
16076 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
16077 expanders directly for TARGET_GNU2_TLS. Determine
16078 __tls_get_addr symbol reference here. Update call to
16079 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
16080 unique UNSPEC REG_EQUIV to libcall block.
16081 (ix86_tls_get_addr): Declare static.
16082 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
16083 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
16084 Do not determine pic and __tls_get_addr symbol reference here. Do not
16085 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
16086 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
16087 (tls_global_dynamic_64): Add operand 2. Do not determine
16088 __tls_get_addr symbol reference here. Do not call
16089 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
16090 (tls_local_dynamic_base64): Ditto for operand 1.
16092 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
16094 * function.c (expand_function_start): Initialize stack_check_probe_note
16095 only if the generic stack checking mechanism is used.
16097 2011-05-11 Richard Guenther <rguenther@suse.de>
16099 PR tree-optimization/15256
16100 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
16101 (A & B) | C, combine (A op CST1) op CST2.
16102 (tree_ssa_forward_propagate_single_use_vars): Only bother to
16103 visit assigns that have uses.
16105 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
16107 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
16108 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
16109 (unpack_ts_type_common_value_fields): ...this. Update comment.
16110 (unpack_value_fields): Adjust for renaming.
16111 (lto_input_ts_type_tree_pointers): Split into...
16112 (lto_input_ts_type_common_tree_pointer): ...this and...
16113 (lto_input_ts_type_non_common_tree_pointers): ...this.
16114 (lto_input_tree_pointers): Adjust for above split.
16115 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
16116 (pack_ts_type_common_value_fields): ...this. Update comment.
16117 (lto_output_ts_type_tree_pointers): Split into...
16118 (lto_output_ts_type_common_tree_pointers): ...this and...
16119 (lto_output_ts_type_non_common_tree_pointers): ...this.
16120 (lto_output_tree_pointers): Adjust for above split.
16121 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
16122 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
16123 * stor-layout.c (vector_type_mode): Adjust location of mode field.
16124 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
16126 (struct tree_type): Split into...
16127 (struct tree_type_common: ...this and...
16128 (struct tree_type_with_lang_specific): ...this and...
16129 (struct tree_type_non_common): ...this. Adjust accessor macros
16131 (TYPE_VALUES_RAW): Define.
16132 (union tree_node): Update for above changes.
16133 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
16134 TS_TYPE_NON_COMMON.
16135 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
16136 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
16137 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
16138 * treestructu.def (TS_TYPE): Remove.
16139 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
16142 2011-05-11 Jakub Jelinek <jakub@redhat.com>
16145 * tree-ssa.c (reset_debug_uses): New function.
16146 * tree-flow.h (reset_debug_uses): New prototype.
16147 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
16148 * tree-loop-distribution.c (generate_loops_for_partition): Call
16149 reset_debug_uses on the stmts that will be removed. Keep around
16150 all debug stmts, don't count them as bits in partition bitmap.
16151 (generate_builtin): Don't count debug stmts or labels as bits in
16154 2011-05-11 Richard Guenther <rguenther@suse.de>
16156 * gimple.c (gimple_type_hash_1): Merge with ...
16157 (gimple_type_hash): ... this.
16158 (gtc_visit): Remove mode parameter and simplify accordingly.
16159 (gimple_types_compatible_p_1): Likewise.
16160 (gimple_types_compatible_p): Likewise.
16161 (iterative_hash_gimple_type): Likewise.
16163 (gimple_type_eq): Adjust.
16165 2011-05-11 Revital Eres <revital.eres@linaro.org>
16167 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
16168 enters the branch create an anti edge in the opposite direction
16169 to prevent the creation of reg-moves.
16170 * modulo-sched.c: Adjust comment to reflect the fact we are
16171 scheduling closing branch.
16172 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
16173 (stage_count): New field in struct partial_schedule.
16174 (calculate_stage_count): New function.
16175 (normalize_sched_times): Rename to reset_sched_times and handle
16176 incrementing the sched time of the nodes by a constant value
16177 passed as parameter.
16178 (duplicate_insns_of_cycles): Skip closing branch.
16179 (sms_schedule_by_order): Schedule closing branch.
16180 (ps_insn_find_column): Handle closing branch.
16181 (sms_schedule): Call reset_sched_times and adjust the code to
16182 support scheduling of the closing branch.
16183 (ps_insert_empty_row): Update calls to normalize_sched_times
16184 and rotate_partial_schedule functions.
16186 2011-05-11 Richard Guenther <rguenther@suse.de>
16188 PR middle-end/48953
16189 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
16191 2011-05-11 Joseph Myers <joseph@codesourcery.com>
16193 * opts.c (finish_options): Move warning settings from process_options.
16194 * toplev.c (process_options): Move warning settings to finish_options.
16196 2011-05-11 Richard Guenther <rguenther@suse.de>
16198 PR tree-optimization/18041
16199 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
16200 (simplify_bitwise_binary): ... this. Handle operand conversions
16201 by applying them to the result instead.
16202 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
16204 2011-05-11 Richard Guenther <rguenther@suse.de>
16206 * gimple.c (gimple_canonical_types_compatible_p): Split out
16207 from gimple_types_compatible_p and friends. Do not recurse
16208 to pointed-to types.
16209 (gimple_canonical_type_eq): Use it.
16210 (iterative_hash_canonical_type): Split out from
16211 iterative_hash_gimple_type and friends. Do not recurse
16212 to pointed-to types.
16213 (gimple_canonical_type_hash): Use it, allocate the hash here.
16215 2011-05-11 Revital Eres <revital.eres@linaro.org>
16217 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
16218 recognizing doloop.
16220 2011-05-11 Revital Eres <revital.eres@linaro.org>
16222 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
16223 instead of PREV_INSN.
16225 2011-05-11 Revital Eres <revital.eres@linaro.org>
16227 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
16228 * loop-doloop.c (doloop_condition_get): Likewise.
16229 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
16231 * config/arm/arm.md (*addsi3_compare0): Remove "*".
16233 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
16235 * tree.def (CASE_LABEL_EXPR): Add an operand.
16236 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
16238 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16240 * c-decl.c (c_override_global_bindings_to_false): Remove.
16241 (global_bindings_p): Don't check
16242 c_override_global_bindings_to_false.
16243 * c-tree.h (c_override_global_bindings_to_false): Remove.
16244 * c-typeck.c (composite_type): Don't set
16245 c_override_global_bindings_to_false.
16247 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
16249 PR target/48857, 48495
16250 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
16252 (VSX_MOVE_MODE): Ditto.
16253 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
16254 VSX vector types. Add V2DImode.
16255 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
16256 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
16257 (MODES_TIEABLE_P): Ditto.
16259 * config/rs6000/rs6000.c (rs6000_emit_move): Use
16260 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
16262 (init_cumulative_args): Ditto.
16263 (rs6000_function_arg_boundary): Ditto.
16264 (rs6000_function_arg_advance_1): Ditto.
16265 (rs6000_function_arg): Ditto.
16266 (rs6000_function_ok_for_sibcall): Ditto.
16267 (emit_frame_save): Ditto.
16268 (rs6000_function_value): Ditto.
16269 (rs6000_libcall_value): Ditto.
16271 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16273 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
16274 i386/darwin-lib.h to $libgcc_tm_file.
16275 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
16277 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16279 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
16281 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16283 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
16284 * config/rs6000/rs6000-tables.opt: New file (generated).
16285 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
16286 rs6000/rs6000-tables.opt to extra_options.
16287 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
16288 * config/rs6000/rs6000.c (rs6000_select): Remove.
16289 (processor_target_table): Move contents to rs6000-cpus.def.
16290 (darwin_rs6000_override_options): Check
16291 global_options_set.x_rs6000_cpu_index instead of
16292 rs6000_select[1].string.
16293 (rs6000_option_override_internal): Likewise.
16294 (rs6000_handle_option): Don't assert that global structures are in
16295 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
16296 (rs6000_default_cpu): New variable.
16297 (rs6000_file_start): Set it instead of local default_cpu. Check
16298 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
16299 global_options_set.x_rs6000_tune_index instead of rs6000_select.
16300 (rs6000_darwin_file_start): Check rs6000_default_cpu and
16301 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
16302 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
16303 rs6000_select): Remove.
16304 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
16306 (mcpu=, mtune=): Use Var, Init, Enum and Save.
16307 * config/rs6000/t-rs6000
16308 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
16309 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
16310 global_options_set.x_rs6000_cpu_index instead of
16311 rs6000_select[1].string.
16312 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
16313 global_options_set.x_rs6000_cpu_index instead of
16314 rs6000_select[1].string.
16316 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16318 * config.gcc (libgcc_tm_file): Define instead of including files
16319 from ../../libgcc/config/ in tm_file.
16320 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
16321 * configure: Regenerate.
16322 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
16323 libgcc_tm.h, cs-libgcc_tm.h): New.
16324 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
16325 (clean): Remove libgcc_tm.h.
16326 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
16327 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
16328 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
16330 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
16333 * config/avr/avr.c (avr_ret_register): Return unsigned int
16335 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
16336 it to avr_libcall_value.
16337 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
16339 (avr_expand_binop_builtin): Ditto.
16340 (avr_expand_unop_builtin): Ditto.
16342 2011-05-10 DJ Delorie <dj@redhat.com>
16344 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
16345 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
16346 * config/rx/rx.c (rx_align_for_label): Add label and
16347 uses_threshold parameters. Do not align when the label is not
16349 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
16351 2011-05-10 Richard Guenther <rguenther@suse.de>
16353 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
16354 a series of conversions and apply foldings similar to what
16356 (tree_ssa_forward_propagate_single_use_vars): Call it.
16358 2011-05-10 Jakub Jelinek <jakub@redhat.com>
16360 PR tree-optimization/48611
16361 PR tree-optimization/48794
16362 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
16363 referenced from RESX or EH_DISPATCH arguments.
16366 * dfp.c (decimal_to_decnumber): Handle conversion from
16367 dconst{1,2,m1,half}.
16369 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16371 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
16372 for !flag_prefer_avx128.
16373 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
16375 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
16377 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
16378 (fold_ternary_loc): Use expr_location_or.
16380 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
16383 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
16384 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
16385 Pmode and mem_mode is not VOIDmode.
16387 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
16389 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
16390 TYPE_QUAL_RESTRICT): Convert to enum.
16392 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16394 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
16395 (const_pow2_1_to_8_operand): Ditto.
16396 (const_pow2_1_to_128_operand): Ditto.
16397 (const_pow2_1_to_32768_operand): Ditto.
16398 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
16399 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
16400 in insn constraint to check integer value of operand 3.
16401 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
16403 (PINSR_MODE): New mode iterator.
16404 (sse2p4_1): New mode attribute.
16405 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
16406 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
16407 iterator. Use const_int_operand instead of
16408 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
16409 exact_log2 in insn constraint to check integer value of operand 3.
16411 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16413 * config/i386/sse.md (blendbits): Remove mode attribute.
16414 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
16415 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
16416 Check integer value of operand 3 in insn constraint.
16418 2011-05-09 Richard Guenther <rguenther@suse.de>
16420 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
16422 (lto_symtab_merge): Likewise. Do not register types here.
16423 (lto_symtab_merge_decls_2): Likewise.
16424 (lto_symtab_merge_decls_1): Likewise.
16425 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
16426 * gimple.c (enum gtc_mode): Declare.
16427 (gimple_types_compatible_p): Make static.
16429 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16431 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
16432 temporary register to match Pmode.
16434 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16436 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
16437 and *vec_concatv4si_1_avx.
16439 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16441 PR rtl-optimization/48927
16442 * ira-conflicts.c (commutative_constraint_p): Use
16443 recog_data.alternative_enabled_p to disable alternatives where
16444 "enabled" attribute is false.
16445 (get_dup_num): Ditto.
16446 * ira-lives.c (single_reg_class): Ditto.
16447 (ira_implicitly_set_insn_hard_regs): Ditto.
16449 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
16451 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
16452 (dataflow_set_preserve_mem_locs): Likewise.
16454 2011-05-09 Philipp Thomas <pth@suse.de>
16456 * config/mep/mep.c (mep_validate_vliw): Syntax description
16457 should not be translated.
16459 2011-05-09 Joseph Myers <joseph@codesourcery.com>
16461 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
16462 * config/mips/mips-tables.opt: New file (generated).
16463 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
16464 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
16465 MIPS_ARCH_OPTION_NATIVE): Define.
16466 * config/mips/mips.c (mips_cpu_info_table): Move contents to
16468 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
16469 mips_parse_cpu): Remove.
16470 (mips_cpu_info_from_opt, mips_default_arch): New.
16471 (mips_handle_option): Don't assert that global structures are in
16472 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
16473 (mips_option_override): Use new variables and functions to set
16474 state of these options. Use strcmp to check for individual CPU names.
16475 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
16477 * config/mips/mips.opt (march=): Use ToLower and Enum.
16478 (mips): Use ToLower, Enum and Var.
16479 (mtune=): Use ToLower and Enum.
16480 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
16482 2011-05-08 Jan Hubicka <jh@suse.cz>
16484 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
16485 Arrange type pairs to be UID ordered.
16486 (gimple_lookup_type_leader): Make inline.
16488 2011-05-09 Nick Clifton <nickc@redhat.com>
16491 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
16495 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
16498 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
16500 * combine.c (simplify_comparison): Abstract out parts into...
16501 (simplify_compare_const): ... new function.
16502 (try_combine): Generalize parallel arithmetic/compare combining
16503 to call simplify_compare_const() and CANONICALIZE_COMPARE().
16505 2011-05-08 Jan Hubicka <jh@suse.cz>
16507 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
16508 (cgraph_create_virtual_clone): Call hooks once virtual clone
16510 * cgraph.h (cgraph_clone_node): Update prototype.
16511 * ipa-cp.c (ipcp_estimate_growth): Use
16512 estimate_ipcp_clone_size_and_time.
16513 * ipa-inline-transform.c (clone_inlined_nodes): Update.
16514 * lto-cgraph.c (input_node): Update.
16515 * ipa-inline.c (recursive_inlining): Update.
16516 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
16517 (evaluate_conditions_for_known_args): Break out from ...
16518 (evaluate_conditions_for_edge): ... here.
16519 (evaluate_conditions_for_ipcp_clone): New function.
16520 (inline_node_duplication_hook): Update clone summary based
16522 (estimate_callee_size_and_time): Rename to ...
16523 (estimate_node_size_and_time): take NODE instead of EDGE;
16524 take POSSIBLE_TRUTHS as argument.
16525 (estimate_callee_size_and_time): Update.
16526 (estimate_ipcp_clone_size_and_time): New function.
16527 (do_estimate_edge_time): Update.
16529 2011-05-08 Richard Guenther <rguenther@suse.de>
16531 PR middle-end/48908
16532 PR middle-end/48905
16533 * expmed.c (expand_shift_1): Compute adjusted constant shift
16536 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
16538 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
16540 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
16542 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
16544 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
16546 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
16548 2011-05-07 Jan Hubicka <jh@suse.cz>
16550 * ipa-inline-transform.c (inline_call): Account when program size
16552 * ipa-inline.c (relative_time_benefit): New function.
16553 (edge_badness): Reorganize to be power 2 based; fix thinko when
16554 computing badness for negative growth; update comments to match
16555 reality; better dumps.
16557 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
16559 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
16560 type to bool and adjust comment.
16561 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
16562 (fold_mathfn_compare): Remove calls to global_bindings_p.
16563 (fold_inf_compare): Likewise.
16564 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
16565 * c-tree.h (global_bindings_p): Adjust prototype.
16566 * c-decl.c (global_bindings_p): Return bool and simplify.
16568 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
16570 PR tree-optimization/48837
16571 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
16572 when accumulator transformation is performed.
16574 2011-05-06 Jan Hubicka <jh@suse.cz>
16576 * i386.h (ix86_tune_indices): Add
16577 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
16578 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
16579 * i386.c (initial_ix86_tune_features): Add
16580 X86_SOFTARE_PREFETCHING_BENEFICIAL.
16581 (software_prefetching_beneficial_p): Remove predicate.
16582 (ix86_option_override_internal): Use new macro.
16584 2011-05-06 Jan Hubicka <jh@suse.cz>
16586 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
16588 2011-05-06 Jan Hubicka <jh@suse.cz>
16590 * cgraph.c (cgraph_add_thunk): Create real function node instead
16591 of alias node; finalize it and mark needed/reachale; arrange visibility
16592 to be right and add it into the corresponding same comdat group list.
16593 (dump_cgraph_node): Dump thunks.
16594 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
16595 cgraph_function_with_gimple_body_p,
16596 cgraph_first_function_with_gimple_body,
16597 cgraph_next_function_with_gimple_body): New functions.
16598 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
16600 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
16601 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
16602 * cgraphunit.c (cgraph_finalize_function): Only look into possible
16603 devirtualization when optimizing.
16604 (verify_cgraph_node): Verify thunks.
16605 (cgraph_analyze_function): Analyze thunks.
16606 (cgraph_mark_functions_to_output): Output thunks only in combination
16607 with function they are assigned to.
16608 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
16609 alias into normal node.
16610 (assemble_thunks): New functoin.
16611 (cgraph_expand_function): Use it.
16612 * lto-cgraph.c (lto_output_node): Stream thunks.
16613 (input_overwrite_node): Stream in thunks.
16614 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
16615 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
16616 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
16617 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
16618 (inline_analyze_function): Do not care about thunk jump functions.
16619 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
16620 * ipa-prop.c (ipa_prop_write_jump_functions): Use
16621 cgraph_function_with_gimple_body_p.
16622 * passes.c (do_per_function_toporder): Use
16623 cgraph_function_with_gimple_body_p.
16624 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
16625 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
16626 (function_called_by_processed_nodes_p): Likewise.
16628 2011-05-06 Joseph Myers <joseph@codesourcery.com>
16630 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
16631 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
16633 (mabi=): Replace with separate entries for mabi=altivec,
16634 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
16635 mabi=ieeelongdouble and mabi=ibmlongdouble.
16636 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
16637 check for -mabi=spe without SPE ABI support here.
16638 (rs6000_handle_option): Replace OPT_mabi_ handling with
16639 OPT_mabi_altivec and OPT_mabi_spe handling.
16641 2011-05-06 Cary Coutant <ccoutant@google.com>
16643 * dwarf2out.c (contains_subprogram_definition): New function.
16644 (should_move_die_to_comdat): Call it.
16646 2011-05-06 Jeff Law <law@redhat.com>
16648 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
16649 remove_ctrl_stmt_and_useless_edges.
16650 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
16651 (fixup_template_block, thread_single_edge): Likewise.
16652 (mark_threaded_blocks): Use THREAD_TARGET.
16654 2011-05-06 Alan Modra <amodra@gmail.com>
16657 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
16658 const0_rtx as the arg to the dummy __tls_get_addr libcall.
16660 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
16662 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
16663 constraint modifier to "r".
16665 2011-05-06 Joseph Myers <joseph@codesourcery.com>
16667 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
16668 fall through for OPT_mcmodel_.
16670 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16672 * config/s390/s390.c (s390_asm_trampoline_template): Comment
16674 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
16676 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16679 * config/arm/arm.opt (marm): Document it.
16680 (mthumb): Reject negative variant.
16682 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
16685 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
16686 Fix typo in "ccvt" variable name.
16688 2011-05-06 Tristan Gingold <gingold@adacore.com>
16691 * config/vms/vms-ar.c (main): Remove cwd variable.
16693 2011-05-06 Jakub Jelinek <jakub@redhat.com>
16696 * var-tracking.c (prepare_call_arguments): Move else before #endif.
16698 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
16700 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
16701 * gimplify.c (gimplify_switch_expr): Likewise.
16702 * omp-low.c (expand_omp_sections): Likewise.
16703 * tree-eh.c (lower_try_finally_switch): Likewise.
16704 (lower_eh_dispatch): Likewise.
16705 * tree.h (build_case_label): Declare.
16706 * tree.c (build_case_label): Define.
16708 2011-05-05 Jason Merrill <jason@redhat.com>
16711 * tree-inline.c (copy_tree_r): Use copy_statement_list.
16712 (copy_statement_list): Don't recurse.
16713 * stor-layout.c (copy_self_referential_tree_r): Don't allow
16716 2011-05-05 Joseph Myers <joseph@codesourcery.com>
16718 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
16719 through from -mfpu= handling.
16720 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
16722 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
16724 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
16727 2011-05-05 Steve Ellcey <sje@cup.hp.com>
16729 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
16731 (hppa[12]*-*-hpux11*): Ditto.
16732 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
16733 * config/ia64/hpux-unix2003.h: New.
16734 * config/pa/pa-hpux1131.opt: New.
16735 * config/pa/pa-hpux1131.h: New.
16736 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
16737 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
16738 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
16740 2011-05-05 Jakub Jelinek <jakub@redhat.com>
16743 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
16744 instead of mode as 3rd argument to recursive call.
16745 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
16746 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
16748 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
16749 don't give up if mode is Pmode and mem_mode is not VOIDmode.
16750 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
16751 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
16753 2011-05-05 Julian Brown <julian@codesourcery.com>
16755 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
16756 parenthesis in D-register case.
16758 2011-05-05 Joseph Myers <joseph@codesourcery.com>
16760 * opt-functions.awk (var_type_struct): Handle Enum options.
16761 * optc-gen.awk: Don't check range of variables of character type.
16762 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
16763 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
16764 rs6000_sdata_name, rs6000_explicit_options): Remove.
16765 (rs6000_option_override_internal): Check for -malign-power here.
16766 Use global_options_set instead of rs6000_explicit_options.
16767 (rs6000_parse_fpu_option): Remove.
16768 (rs6000_handle_option): Access variables via opts and opts_set
16769 pointers. Use error_at and warning_at. Add fall-through
16770 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
16771 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
16772 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
16773 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
16774 here. Don't use rs6000_parse_fpu_option.
16775 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
16776 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
16777 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
16778 (mrecip=): Use Var.
16779 (mspe): Use Var and Save.
16780 (mtraceback=): Use Enum and Var.
16781 (rs6000_traceback_type): New Enum and EnumValue entries.
16782 (mfloat-gprs=): Use Enum, Var and Save.
16783 (rs6000_float_gprs): New Enum and EnumValue entries.
16784 (mlong-double-): use Var and Save.
16785 (msched-costly-dep=, minsert-sched-nops=): Use Var.
16786 (malign-): Use Enum and Var.
16787 (rs6000_alignment_flags): New Enum and EnumValue entries.
16789 (fpu_type_t): New Enum and EnumValue entries.
16790 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16791 global_options_set instead of rs6000_explicit_options.
16792 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16793 global_options_set instead of rs6000_explicit_options.
16794 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16795 global_options_set instead of rs6000_explicit_options.
16796 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16797 global_options_set instead of rs6000_explicit_options.
16798 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
16799 global_options_set instead of rs6000_explicit_options.
16800 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16801 global_options_set instead of rs6000_explicit_options.
16802 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
16804 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16805 global_options_set instead of rs6000_explicit_options.
16806 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
16807 (rs6000_cmodel): New Enum and EnumValue entries.
16808 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16809 global_options_set instead of rs6000_explicit_options.
16810 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
16811 (mtls-size=): Use Enum and Var.
16812 (rs6000_tls_size): New Enum and EnumValue entries.
16814 2011-05-05 Michael Matz <matz@suse.de>
16816 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
16817 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
16818 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
16819 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
16820 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
16821 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
16822 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
16823 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
16824 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
16825 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
16826 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
16827 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
16828 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
16829 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
16830 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
16831 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
16833 2011-05-05 Richard Guenther <rguenther@suse.de>
16835 * expmed.c (expand_variable_shift): Rename to ...
16836 (expand_shift_1): ... this. Take an expanded shift amount.
16837 For rotates recurse directly not building trees for the shift amount.
16838 (expand_variable_shift): Wrap around expand_shift_1.
16839 (expand_shift): Adjust.
16841 2011-05-05 Jakub Jelinek <jakub@redhat.com>
16843 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
16845 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
16847 * tree.h (get_pending_sizes): Remove prototype.
16848 (put_pending_size): Likewise.
16849 (put_pending_sizes): Likewise.
16850 * stor-layout.c (pending_sizes): Delete.
16851 (get_pending_sizes): Likewise.
16852 (put_pending_size): Likewise.
16853 (put_pending_sizes): Likewise.
16854 (variable_size): Do not call put_pending_size and tidy up.
16855 * function.h (struct function): Remove dont_save_pending_sizes_p.
16856 * lto-streamer-in.c (input_function): Do not stream it.
16857 * lto-streamer-out.c (output_function): Likewise.
16858 * tree-inline.c (initialize_cfun): Do not copy it.
16859 * c-decl.c (store_parm_decls): Do not set it.
16860 * omp-low.c (create_task_copyfn): Likewise.
16861 * tree-optimize.c (tree_rest_of_compilation): Likewise.
16863 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
16865 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
16867 (*movdf_internal): Ditto.
16868 (*movdf_internal_nointeger): Ditto.
16869 (*movsf_internal): Ditto.
16871 2011-05-05 Joseph Myers <joseph@codesourcery.com>
16873 * c-decl.c (finish_decl): Don't call get_pending_sizes.
16874 (grokparm): Add parameter expr. Pass it to grokdeclarator.
16875 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
16876 (c_variable_size): Remove.
16877 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
16878 call put_pending_sizes.
16879 (get_parm_info): Add parameter expr. Use it to set
16880 arg_info->pending_sizes.
16881 (store_parm_decls): Use arg_info->pending_sizes instead or calling
16883 * c-parser.c (c_parser_parms_declarator): Update call to
16884 c_parser_parms_list_declarator.
16885 (c_parser_parms_list_declarator): Take parameter expr. Update
16886 call to push_parm_decl. Update recursive call. Don't call
16887 get_pending_sizes. Update calls to get_parm_info.
16888 (c_parser_objc_method_definition): Update calls to
16889 c_parser_objc_method_decl and objc_start_method_definition.
16890 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
16891 (c_parser_objc_method_decl): Add parameter expr. Update call to
16893 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
16894 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
16895 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
16897 2011-05-05 Michael Hope <michael.hope@linaro.org>
16900 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
16901 __ARM_EABI__ hosts.
16903 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16905 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
16906 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
16907 (spu_output_mi_thunk): New function.
16909 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16911 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
16912 targetm.asm_out.print_operand.
16913 * config/sol2.c: Include target.h.
16915 2011-05-04 Jan Hubicka <jh@suse.cz>
16917 * ipa-inline.c (reset_edge_caches): New function.
16918 (update_caller_keys): Add check_inlinablity_for; do not
16919 reset edge caches; remove now unnecesary loop.
16920 (update_callee_keys): Add comments; reset node_growth_cache of callee.
16921 (update_all_callee_keys): Likewise.
16922 (inline_small_functions): Sanity check cache; update code
16925 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
16927 PR rtl-optimization/47612
16928 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
16929 as the last insn of the sequence to be moved.
16931 2011-05-04 Tobias Burnus <burnus@net-b.de>
16934 * doc/invoke.texi (Ofast): Document that it
16935 enables Fortran's -fno-protect-parens.
16937 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
16939 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
16941 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
16943 * stor-layout.c (variable_size): Do not issue errors.
16945 2011-05-04 Richard Guenther <rguenther@suse.de>
16947 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
16948 for array-ref indices.
16949 (tree_coverage_counter_addr): Likewise.
16950 (build_fn_info_type): Use size_int for index types.
16951 (build_gcov_info): Likewise.
16953 2011-05-04 Richard Guenther <rguenther@suse.de>
16955 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
16957 * c-typeck.c (really_start_incremental_init): Use bitsize_int
16958 for constructor indices.
16959 (push_init_level): Likewise.
16961 2011-05-04 Richard Guenther <rguenther@suse.de>
16963 * explow.c (promote_mode): Move variable declarations before code.
16965 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
16967 * tree.h (build_function_type_array): Declare.
16968 (build_varargs_function_type_array): Declare.
16969 (build_function_type_vec, build_varargs_function_type_vec): Define.
16970 * tree.c (build_function_type_array_1): New function.
16971 (build_function_type_array): New function.
16972 (build_varargs_function_type_array): New function.
16974 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
16976 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
16977 before setting STMT_VINFO_TYPE.
16979 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16981 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
16982 instead of spu_pass_by_reference.
16984 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16986 * calls.c (emit_library_call_value_1): Invoke
16987 promote_function_mode hook on libcall arguments.
16988 * explow.c (promote_function_mode, promote_mode): Handle TYPE
16989 argument being NULL.
16990 * targhooks.c (default_promote_function_mode): Lisewise.
16991 * config/s390/s390.c (s390_promote_function_mode): Likewise.
16992 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
16994 * doc/tm.texi: Document that TYPE argument might be NULL.
16996 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
16998 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
17000 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
17003 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
17005 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17007 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
17008 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
17010 * mips-tfile.c: ... here.
17011 Don't include coretypes.h, tm.h, filenames.h.
17012 (saber_stop): Remove definition and all calls.
17013 [__SABER__]: Remove.
17014 (__LINE__): Remove default.
17015 (Size_t, Ptrdiff_t): Remove definitions.
17016 Replace by size_t, ptrdiff_t.
17017 [!MIPS_DEBUGGING_INFO]: Remove.
17018 (SHASH_SIZE, THASH_SIZE): Remove defaults.
17019 (progname): Add const.
17021 Replace all uses by static.
17022 (ALIGN_SYMTABLE_OFFSET): Remove default.
17023 * mips-tdump.c: Don't include coretypes.h, tm.h.
17024 Remove !MIPS_IS_STAB guard.
17025 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
17026 $(TM_H), filenames.h dependencies.
17027 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
17029 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
17032 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
17033 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
17035 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
17038 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
17039 account and save/restore RETS.
17040 (PROFILE_BEFORE_PROLOGUE): Define.
17041 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
17042 the push insn to use predecrement.
17044 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
17047 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
17049 2011-05-04 Nick Clifton <nickc@redhat.com>
17051 * config/mn10300/mn10300.c: Include cfgloop.h.
17053 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
17054 Lcc or a FLcc insn into the instruction stream.
17055 (mn10300_block_contains_call): New function. Returns true if the
17056 given basic block contains a CALL insn.
17057 (mn10300_loop_contains_call_insn): New function. Returns true if
17058 the given loop contains a CALL insn.
17059 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
17060 to use the SETLB and Lcc or FLcc insns.
17061 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
17062 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
17063 * config/mn10300/mn10300.opt (msetlb): New option. Used to
17064 disable the SETLB optimization.
17065 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
17066 __SETLB__ or __NO_SETLB__.
17067 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
17068 (movsf_internal): Handle MDR register.
17069 (cmpsi): Make visible.
17070 (setlb): New pattern.
17071 (Lcc): New pattern.
17072 (FLcc): New pattern.
17074 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
17077 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
17078 for reg<->xmm moves.
17079 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
17080 (vec_concatv2di_rex64_sse): Ditto.
17081 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
17082 (*vec_extractv2di_1_rex64): Ditto.
17085 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
17087 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
17089 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
17091 2011-05-04 Richard Guenther <rguenther@suse.de>
17093 * tree.h (int_const_binop): Remove notrunc argument.
17094 * fold-const.c (int_const_binop): Remove notrunc argument. Always
17095 create integer constants that are properly truncated.
17096 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
17097 (const_binop): Remove zero notrunc argument to int_const_binop.
17098 (size_binop_loc): Likewise.
17099 (fold_div_compare): Likewise.
17100 (maybe_canonicalize_comparison_1): Likewise.
17101 (fold_comparison): Likewise.
17102 (fold_binary_loc): Likewise.
17103 (multiple_of_p): Likewise.
17104 * expr.c (store_constructor): Likewise.
17105 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
17106 (maybe_fold_stmt_addition): Likewise.
17107 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
17108 * stor-layout.c (layout_type): Likewise.
17109 * tree-data-ref.c (tree_fold_divides_p): Likewise.
17110 * tree-sra.c (build_ref_for_offset): Likewise.
17111 (build_user_friendly_ref_for_offset): Likewise.
17112 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
17113 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17114 * tree-ssa-loop-niter.c (inverse): Likewise.
17115 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
17116 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
17117 * tree-switch-conversion.c (check_range): Likewise.
17118 (build_constructors): Likewise.
17119 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
17120 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
17121 (extract_range_from_assert): Likewise.
17122 (vrp_int_const_binop): Likewise.
17123 (extract_range_from_binary_expr): Likewise.
17124 (extract_range_from_unary_expr): Likewise.
17125 (check_array_ref): Likewise.
17126 (find_case_label_range): Likewise.
17127 (simplify_div_or_mod_using_ranges): Likewise.
17128 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
17129 comparing case labels for merging.
17131 2011-05-03 Mark Wielaard <mjw@redhat.com>
17133 * dwarf2out.c (debug_str_hash_forced): Removed.
17134 (gen_label_for_indirect_string): Removed.
17135 (get_debug_string_label): Removed.
17136 (AT_string_form): Generate label directly.
17137 (output_indirect_string): Test indirect_string_node for
17138 DW_FORM_strp instead of checking label and refcount.
17139 (prune_indirect_string): Removed.
17140 (prune_unused_types): Don't check debug_str_hash_forced or
17141 call prune_indirect_string.
17143 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
17146 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
17148 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
17152 * combine.c (try_combine): Skip debug insns at m_split tests.
17154 2011-04-26 Mark Wielaard <mjw@redhat.com>
17157 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
17158 when info_section_emitted.
17160 2011-05-03 Joseph Myers <joseph@codesourcery.com>
17162 * config/mips/mips-opts.h: New.
17163 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
17165 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
17166 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
17167 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
17169 * config/mips/mips.h (enum mips_code_readable_setting): Move to
17171 (mips_abi, mips_code_readable): Don't declare.
17172 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
17173 (mabi=): Use Enum and Var.
17174 (mips_abi): New Enum and EnumValue entries.
17175 (mcode-readable=): Use Enum and Var.
17176 (mips_code_readable_setting): New Enum and EnumValue entries.
17177 (mr10k-cache-barrier=): Use Enum and Var.
17178 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
17180 2011-05-03 Jan Hubicka <jh@suse.cz>
17182 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
17183 replace hash by pointer map.
17184 (cgraph_node_set_element_def, cgraph_node_set_element,
17185 const_cgraph_node_set_element, varpool_node_set_element_def,
17186 varpool_node_set_element, const_varpool_node_set_element): Remove.
17187 (free_cgraph_node_set, free_varpool_node_set): New function.
17188 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
17189 * tree-emutls.c: Free varpool node set.
17190 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
17191 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
17192 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
17193 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
17194 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
17195 Move here from ipa.c; implement using pointer_map
17196 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
17197 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
17198 debug_cgraph_node_set, varpool_node_set_new,
17199 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
17200 dump_varpool_node_set, debug_varpool_node_set):
17201 Move to ipa-uitls.c.
17202 * passes.c (ipa_write_summaries): Update.
17204 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17206 From Mike Frysinger:
17207 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
17208 bf542/bf544/bf547/bf548/bf549.
17210 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
17212 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
17214 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17216 From Bernd Schmidt:
17217 * config/bfin/bfin.md (MOVCC): New mode_macro.
17218 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
17219 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
17220 comments from generated assembly.
17222 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17225 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
17226 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
17227 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
17228 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
17229 * config/bfin/lib1funcs.asm (___muldi3): New function.
17231 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17233 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
17234 build_function_type_list instead of build_function_type.
17235 Rearrange initialization of `args' to do so.
17237 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17239 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
17240 instead of build_function_type.
17242 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17244 * config/rs6000/rs6000.c (spe_init_builtins): Call
17245 build_function_type_list instead of build_function_type.
17246 (paired_init_builtins, altivec_init_builtins): Likewise.
17247 (builtin_function_type): Likewise.
17249 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17251 * config/sh/sh.c (sh_media_init_builtins): Call
17252 build_function_type_list instead of build_function_type.
17254 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17256 * config/sparc/sparc.c (sparc_file_end): Call
17257 build_function_type_list instead of build_function_type.
17259 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17261 * config/alpha/alpha.c (alpha_init_builtins): Call
17262 build_function_type_list instead of build_function_type.
17264 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17266 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
17267 build_function_type_list instead of build_function_type.
17269 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17271 * config/iq2000/i2000.c (iq2000_init_builtins): Call
17272 build_function_type_list instead of build_function_type.
17273 Delete `endlink' variable.
17275 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17277 * config/avr/avr.c (avr_init_builtins): Call
17278 build_function_type_list instead of build_function_type.
17280 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17282 * config/picochip/picochip.c (picochip_init_builtins): Call
17283 build_function_type_list instead of build_function_type.
17284 Delete `endlink' variable.
17286 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17288 * config/bfin/bfin.c (bfin_init_builtins): Call
17289 build_function_type_list instead of build_function_type.
17291 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17294 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
17295 that's not CONST_INT. Seemingly redundant check is due to PR39768.
17297 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17300 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
17301 libbffastfp overrides libgcc when -mfast-fp.
17303 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17305 Originally from Bernd Schmidt
17306 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
17307 * config/bfin/bfin.c (override_options): Test it and error if
17310 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17312 Originally From Bernd Schmidt
17313 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
17316 2011-05-03 Jeff Law <law@redhat.com>
17318 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
17319 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
17320 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
17321 than accessing AUX field directly. Free the AUX field before
17323 (thread_block, thread_through_loop_header): Likewise.
17324 (thread_single_edge, mark_threaded_blocks): Likewise.
17325 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
17326 (register_jump_thread): Do not attempt to thread to a NULL edge.
17328 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
17330 * function.c (init_function_start): Call decide_function_section.
17331 * varasm.c (decide_function_section): New function.
17332 (assemble_start_function): When not using
17333 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
17334 or first_function_block_is_cold.
17335 * rtl.h (decide_function_section): Declare.
17337 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
17338 Jakub Jelinek <jakub@redhat.com>
17341 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
17342 only succeed if req_mode is the same as set_mode.
17344 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
17346 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
17347 * genemit.c (gen_exp): Handle RETURN.
17348 * emit-rtl.c (verify_rtx_sharing): Likewise.
17349 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
17350 * rtl.c (copy_rtx): RETURN is shared.
17351 * rtl.h (enum global_rtl_index): Add GR_RETURN.
17353 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
17354 * config/s390/s390.c (s390_emit_epilogue): Likewise.
17355 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
17356 * config/cris/cris.c (cris_expand_return): Likewise.
17357 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
17358 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
17359 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
17360 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
17361 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
17363 * config/v850/v850.c (expand_epilogue): Likewise.
17364 * config/bfin/bfin.c (bfin_expand_call): Likewise.
17365 * config/arm/arm.md (epilogue): Likewise.
17366 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
17367 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
17368 variable to ret_reg.
17370 2011-05-03 Richard Guenther <rguenther@suse.de>
17373 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
17374 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
17375 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
17377 2011-05-03 Richard Guenther <rguenther@suse.de>
17379 * c-decl.c (grokdeclarator): Instead of looking at
17380 TREE_OVERFLOW check if the constant fits in the index type.
17382 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
17384 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
17385 (vec_store_lanes<mode><mode>): Likewise.
17387 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
17389 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
17390 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
17391 convert_optab_index values.
17392 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
17393 * genopinit.c (optabs): Initialize the new optabs.
17394 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
17395 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
17396 (expand_STORE_LANES): New functions.
17397 * tree.h (build_array_type_nelts): Declare.
17398 * tree.c (build_array_type_nelts): New function.
17399 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
17400 (vect_model_load_cost): Likewise.
17401 (vect_store_lanes_supported, vect_load_lanes_supported)
17402 (vect_record_strided_load_vectors): Declare.
17403 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
17404 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
17405 (vect_transform_strided_load): Split out statement recording into...
17406 (vect_record_strided_load_vectors): ...this new function.
17407 * tree-vect-stmts.c (create_vector_array, read_vector_array)
17408 (write_vector_array, create_array_ref): New functions.
17409 (vect_model_store_cost): Add store_lanes_p argument.
17410 (vect_model_load_cost): Add load_lanes_p argument.
17411 (vectorizable_store): Try to use store-lanes functions for
17412 interleaved stores.
17413 (vectorizable_load): Likewise load-lanes and loads.
17414 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
17415 to vect_model_store_cost.
17416 (vect_build_slp_tree): Likewise vect_model_load_cost.
17418 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
17420 * hooks.h (hook_bool_mode_uhwi_false): Declare.
17421 * hooks.c (hook_bool_mode_uhwi_false): New function.
17422 * target.def (array_mode_supported_p): New hook.
17423 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
17424 * doc/tm.texi: Regenerate.
17425 * stor-layout.c (mode_for_array): New function.
17426 (layout_type): Use it.
17427 * config/arm/arm.c (arm_array_mode_supported_p): New function.
17428 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
17430 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
17433 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
17434 for -fstack-check if the size to allocate is negative.
17436 2011-05-02 Lawrence Crowl <crowl@google.com>
17438 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
17439 (timevar_cond_start): New for starting a timer only when it is not
17441 (timevar_cond_stop): New for stopping a timer when it was not already
17444 * timevar.c (timevar_stop): Enable start/stop timers to start again.
17445 (timevar_cond_start): New as above.
17446 (timevar_cond_stop): New as above.
17448 * timevar.def: Add start/stop timers for compiler phases,
17449 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
17450 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
17451 and TV_PHASE_FINALIZE.
17452 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
17453 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
17454 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
17455 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
17456 Make unused TV_OVERLOAD into a start/stop timer.
17458 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
17459 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
17460 to indicate that they are start/stop timers.
17462 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
17463 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
17464 Move initialization to do_compile.
17465 (do_compile): Add initialization from above.
17466 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
17468 * c-decl.c (c_write_global_declarations): Add start/stop of
17469 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
17471 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
17472 or TV_PARSE_INLINE, as appropriate.
17473 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
17474 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
17476 2011-05-02 Jason Merrill <jason@redhat.com>
17479 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
17481 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
17484 * c-decl.c (finish_decl): Only create a composite if the types are
17487 2011-05-02 Joseph Myers <joseph@codesourcery.com>
17489 * config/fr30/fr30-protos.h (Mmode): Don't define.
17490 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
17491 definition where used.
17492 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
17493 define. Expand definitions where used.
17494 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
17495 Expand definitions where used.
17496 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
17497 rx_function_arg, rx_function_arg_advance,
17498 rx_function_arg_boundary): Expand definitions of those macros.
17499 * config/v850/v850-protos.h (Mmode): Don't define. Expand
17500 definition where used.
17502 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
17504 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
17506 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
17507 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
17508 with *movv2sf_internal_rex64_avx.
17509 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
17510 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
17511 Use %v prefix in insn mnemonic to handle TARGET_AVX.
17512 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
17513 "vex" in "prefix" attribute calculation.
17514 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
17516 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
17519 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
17520 inputs match the output.
17522 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
17525 * config/m68k/m68k.c (m68k_expand_prologue): Set
17526 current_function_static_stack_size.
17528 2011-05-02 Jan Hubicka <jh@suse.cz>
17530 * lto-streamer.c (lto_streamer_cache_insert_1,
17531 lto_streamer_cache_lookup, lto_streamer_cache_create,
17532 lto_streamer_cache_delete): Use pointer map instead of hashtable.
17533 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
17535 2011-05-02 Joseph Myers <joseph@codesourcery.com>
17537 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
17538 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
17539 config/m68k/t-opts: New files.
17540 * config/m68k/m68k-tables.opt: New file (generated).
17541 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
17542 extra_options and m68k/t-opts to tmake_file.
17543 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
17544 (all_isas): Initialize using m68k-isas.def.
17545 (all_microarchs): Initialize using m68k-microarchs.def.
17546 (m68k_find_selection): Remove.
17547 (m68k_handle_option): Don't assert that global structures are in
17548 use. Use error_at. Access variables via opts pointer. Don't
17549 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
17550 directly for -m68020-40 and -m68020-60.
17551 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
17552 m68k_tune_entry here.
17553 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
17555 (m68k_library_id_string): Remove declaration.
17556 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
17557 (m68k_library_id_string): New Variable.
17558 (march=, mcpu=, mtune=): Use Enum and Var.
17560 2011-05-02 Richard Guenther <rguenther@suse.de>
17562 * varasm.c (output_constructor_regular_field): Compute zero-based
17563 index with double-ints. Make sure to ICE instead of producing
17565 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
17566 in asserts. Properly use a signed type.
17568 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
17570 * config/i386/sse.md (V): New mode iterator.
17571 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
17573 (V_256): Rename from AVX256MODE.
17574 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
17575 condition to all users.
17577 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
17578 condition to all users.
17579 (VF_128): Make V4SF mode unconditional.
17580 (VF_256): Rename from AVX256MODEF2P.
17581 (VI4F_128): Rename from SSEMODE4S.
17582 (VI8F_128): Rename from SSEMODE2D.
17583 (VI4F_256): Rename from AVX256MODE8P.
17584 (VI8F_256): Rename from AVX256MODE4P.
17585 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
17586 (ssescalarmodesuffix): Remove SF and DF modes.
17587 (SSEMODE124): Remove.
17588 (SSEMODE1248): Ditto.
17589 (SSEMODEF2P): Ditto.
17590 (AVXMODEF2P): Ditto.
17591 (AVXMODEFDP): Ditto.
17592 (AVXMODEFSP): Ditto.
17593 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
17595 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
17597 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
17598 xop_pcmov_<mode>256. Use V mode iterator.
17600 Adjust RTX patterns globally for renamed mode attributes.
17602 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17604 * haifa-sched.c (sched_emit_insn): Emit insn before first
17605 non-scheduled insn. Inform back-end about new insn. Add
17606 new insn to scheduled_insns list.
17608 2011-05-02 Richard Guenther <rguenther@suse.de>
17610 PR tree-optimization/48822
17611 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
17612 (process_scc): Indicate which iteration we start.
17614 2011-05-02 Jan Hubicka <jh@suse.cz>
17616 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
17617 (lto_section_overrun): New.
17618 * lto-section-out.c (append_block): Rename to ...
17619 (lto_append_block): ... this one; export.
17620 (lto_output_1_stream): Move lto lto-streamer.h
17621 (lto_output_data_stream): Update.
17622 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
17623 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
17626 2011-05-02 Richard Guenther <rguenther@suse.de>
17628 * tree.c (tree_code_counts): New global array.
17629 (record_node_allocation_statistics): Count individual tree codes.
17630 (dump_tree_statistics): Dump individual code stats.
17632 2011-05-01 Jan Hubicka <jh@suse.cz>
17634 * ipa-inline.c (caller_growth_limits): Fix thinko when
17635 looking for largest stack frame.
17636 * ipa-inline.h (dump_inline_summary): Declare.
17637 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
17639 (dump_inline_summary): Export.
17640 (debug_inline_summary): Declare as DEBUG_FUNCTION.
17642 2011-05-01 Anatoly Sokolov <aesok@post.ru>
17644 * reginfo.c (memory_move_cost): Change rclass argument type form
17645 'enum reg_class' to reg_class_t.
17646 * reload.h (memory_move_cost): Update prototype.
17647 * postreload.c reload_cse_simplify_set): Change type dclass var to
17649 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
17651 (ira_allocate_and_set_costs): Change aclass argument type form
17652 'enum reg_class' to reg_class_t.
17653 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
17654 Change aclass argument type to reg_class_t.
17655 (update_conflict_hard_reg_costs): Change type aclass and pref vars
17657 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
17658 memory_move_cost call.
17660 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
17661 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
17662 Change type tmp var to reg_class_t.
17664 2011-04-30 Jan Hubicka <jh@suse.cz>
17666 * ipa-inline.c (can_inline_edge_p): Disregard limits when
17667 inlining into function with flatten attribute.
17668 (want_inline_small_function_p): Be more realistic about inlining
17669 cold calls where callee size grows.
17671 2011-04-30 Jan Hubicka <jh@suse.cz>
17673 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
17676 2011-04-30 Anatoly Sokolov <aesok@post.ru>
17678 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
17679 PRINT_OPERAND_PUNCT_VALID_P): Remove.
17680 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
17681 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
17682 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
17683 (print_operand): Rename to...
17684 (sparc_print_operand): ...this. Make static. Adjust
17685 sparc_print_operand function call.
17686 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
17689 2011-04-30 Jan Hubicka <jh@suse.cz>
17691 PR middle-end/48752
17692 * ipa-inline.c (early_inliner): Disable when doing late
17693 addition of function.
17695 2011-04-30 Jakub Jelinek <jakub@redhat.com>
17697 * dwarf2out.c (get_address_mode): New inline.
17698 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
17699 if not dwarf_strict emit
17700 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
17701 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
17702 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
17703 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
17704 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
17705 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
17706 mem_loc_descriptor callers.
17707 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
17708 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
17709 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
17710 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
17711 (base_types): New variable.
17712 (get_base_type_offset, calc_base_type_die_sizes,
17713 base_type_for_mode, mark_base_types, base_type_cmp,
17714 move_marked_base_types): New functions.
17715 (calc_die_sizes): Assert that die_offset is 0 or equal to
17717 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
17718 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
17719 callers. If not dwarf_strict, call mem_loc_descriptor even for
17720 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
17721 (gen_subprogram_die): Don't give up on call site parameters
17722 with non-integral or large integral modes. Adjust
17723 mem_loc_descriptor callers.
17724 (prune_unused_types): Call prune_unused_types_mark on base_types
17726 (resolve_addr): Call mark_base_types.
17727 (dwarf2out_finish): Call move_marked_base_types.
17729 PR tree-optimization/48809
17730 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
17732 (gen_inbound_check): Don't compute index_expr - range_min in utype
17733 again, instead reuse SSA_NAME initialized in build_arrays.
17734 Remove two useless gsi_for_stmt calls.
17736 2011-04-29 Jeff Law <law@redhat.com>
17738 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
17740 2011-04-29 Martin Jambor <mjambor@suse.cz>
17742 * cgraph.h (cgraph_postorder): Remove declaration.
17743 * ipa-utils.h (ipa_free_postorder_info): Declare.
17744 (ipa_reverse_postorder): Likewise.
17745 * cgraphunit.c: Include ipa-utils.h.
17746 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
17747 * ipa-inline.c: Include ipa-utils.h.
17748 (ipa_inline): Update call to ipa_reverse_postorder.
17749 * ipa-pure-const.c (propagate_pure_const): Update call to
17750 ipa_reduced_postorder and ipa_print_order. Call
17751 ipa_free_postorder_info to clean up.
17752 (propagate_nothrow): Likewise.
17753 * ipa-reference.c (propagate): Removed a useless call to
17754 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
17755 and ipa_print_order. Call ipa_free_postorder_info to clean up.
17756 * ipa.c: Include ipa-utils.h.
17757 (ipa_profile): Update call to ipa_reverse_postorder.
17758 (cgraph_postorder): Moved to...
17759 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
17760 (ipa_utils_print_order): Renamed to ipa_print_order.
17761 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
17763 (ipa_free_postorder_info): New function.
17764 * passes.c: Include ipa-utils.h.
17765 (do_per_function_toporder): Update call to ipa_reverse_postorder.
17766 (ipa_write_summaries): Likewise.
17767 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
17768 (cgraphunit.o): Likewise.
17770 (ipa-inline.o): Likewise.
17772 2011-04-29 Jan Hubicka <jh@suse.cz>
17774 * gcc.dg/tree-ssa/inline-10.c: New testcase.
17775 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
17776 * ipa-inline.h (clause_t): Turn into unsigned int.
17777 * ipa-inline-analysis.c (add_clause): Do more simplification.
17778 (and_predicates): Shortcut more cases.
17779 (predicates_equal_p): Move forward; check that clauses are properly
17781 (or_predicates): Shortcut more cases.
17782 (edge_execution_predicate): Rewrite as...
17783 (set_cond_stmt_execution_predicate): ... this function; handle
17784 __builtin_constant_p.
17785 (set_switch_stmt_execution_predicate): New .
17786 (compute_bb_predicates): New.
17787 (will_be_nonconstant_predicate): Update TODO.
17788 (estimate_function_body_sizes): Use compute_bb_predicates
17789 and free them later, always try to estimate if stmt is constant.
17790 (estimate_time_after_inlining, estimate_size_after_inlining):
17791 Gracefully handle optimized out edges.
17792 (read_predicate): Fix off by one error.
17794 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
17796 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
17798 2011-04-27 Xinliang David Li <davidxl@google.com>
17800 * tree-profile.c (init_ic_make_global_vars): Set
17801 tls attribute on ic vars.
17802 * coverage.c (coverage_end_function): Initialize
17803 function_list with zero.
17805 2011-04-29 Richard Guenther <rguenther@suse.de>
17807 * builtins.c (fold_builtin_classify_type): Use integer_type_node
17808 for the type of the result.
17809 (fold_builtin_isascii): Likewise.
17810 (fold_builtin_toascii): Use integer_type_node where appropriate.
17811 (fold_builtin_logb): Likewise.
17812 (fold_builtin_frexp): Likewise.
17813 (fold_builtin_strstr): Likewise.
17814 (fold_builtin_strpbrk): Likewise.
17815 (fold_builtin_fputs): Likewise.
17816 (fold_builtin_sprintf): Likewise.
17817 (fold_builtin_snprintf): Likewise.
17818 (fold_builtin_printf): Likewise.
17819 (do_mpfr_remquo): Use a proper type for the assigned constant.
17820 (do_mpfr_lgamma_r): Likewise.
17821 * dwarf2out.c (resolve_one_addr): Use size_int.
17822 * except.c (init_eh): Likewise.
17823 (assign_filter_values): Use integer_type_node for filter values.
17824 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
17826 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
17827 for EH region numbers.
17828 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
17829 for the shift amount.
17831 2011-04-29 Richard Guenther <rguenther@suse.de>
17833 * expr.h (expand_shift): Rename to ...
17834 (expand_variable_shift): ... this.
17835 (expand_shift): Take a constant shift amount.
17836 * expmed.c (expand_shift): Rename to ...
17837 (expand_variable_shift): ... this.
17838 (expand_shift): New wrapper around expand_variable_shift.
17839 * expr.c (convert_move, emit_group_load_1, emit_group_store,
17840 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
17841 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
17842 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
17843 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
17844 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
17845 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
17846 emit_store_flag_1, emit_store_flag): Likewise.
17847 * builtins.c (expand_builtin_signbit): Likewise.
17848 * calls.c (load_register_parameters): Likewise.
17849 * function.c (assign_parm_setup_block): Likewise.
17850 * lower-subreg.c (resolve_shift_zext): Likewise.
17851 * optabs.c (widen_bswap, expand_abs_nojump,
17852 expand_one_cmpl_abs_nojump, expand_float): Likewise.
17853 * spu/spu.c (spu_expand_extv): Likewise.
17854 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
17856 2011-04-29 Richard Guenther <rguenther@suse.de>
17858 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
17859 for the remapped region number.
17860 * predict.c (build_predict_expr): Use integer_type_node for the
17862 * fold-const.c (fold_binary_loc): Use integer_type_node for
17863 the shift amount. Use a proper type for the PLUS_EXPR operand.
17865 2011-04-29 Michael Matz <matz@suse.de>
17867 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
17868 other trees that just builtins.
17869 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
17871 2011-04-29 Richard Guenther <rguenther@suse.de>
17873 * tree-nested.c (get_trampoline_type): Use size_int.
17874 (get_nl_goto_field): Likewise.
17875 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
17877 (lower_eh_constructs_2): Likewise.
17878 (lower_resx): Likewise.
17879 (lower_eh_dispatch): Likewise.
17880 * tree-mudflap.c (mf_build_string): Use size_int.
17881 (mudflap_register_call): Use integer_type_node for the flag.
17882 (mudflap_enqueue_constant): Use size_int.
17883 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
17884 instead of rebuilding it.
17886 2011-04-29 Richard Guenther <rguenther@suse.de>
17888 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
17889 Handle OBJ_TYPE_REF.
17890 (find_func_aliases_for_call): Use it more consistently.
17892 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
17894 * haifa-sched.c (last_nondebug_scheduled_insn): New.
17895 (rank_for_schedule): Use it.
17896 (schedule_block): Set it.
17898 2011-04-28 David Li <davidxl@google.com>
17900 * tree.c (crc32_string): Use crc32_byte.
17901 (crc32_byte): New function.
17902 * tree.h (crc32_byte): New function.
17903 * gcov.c (read_graph_file): Handle new cfg_cksum.
17904 (read_count_file): Ditto.
17905 * profile.c (instrument_values): Ditto.
17906 (get_exec_counts): Ditto.
17907 (read_profile_edge_counts): Ditto.
17908 (compute_branch_probabilities): Ditto.
17909 (compute_value_histograms): Ditto.
17910 (branch_prob): Ditto.
17911 (end_branch_prob): Ditto.
17912 * coverage.c (read_counts_file): Ditto.
17913 (get_coverage_counts): Ditto.
17914 (tree_coverage_counter_addr): Ditto.
17915 (coverage_checksum_string): Ditto.
17916 (coverage_begin_output): Ditto.
17917 (coverage_end_function): Ditto.
17918 (build_fn_info_type): Ditto.
17919 (build_fn_info_value): Ditto.
17920 * libgcov.c (gcov_exit): Ditto.
17921 * gcov-dump.c (tag_function): Ditto.
17922 (compute_checksum): Remove.
17924 2011-04-29 Alan Modra <amodra@gmail.com>
17926 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
17927 unspec plus offset. Tidy macho code.
17929 2011-04-29 Martin Jambor <mjambor@suse.cz>
17931 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
17932 node instead of a decl. Update all callers.
17933 * cgraph.h: Update declaration.
17935 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
17937 PR tree-optimization/48765
17938 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
17939 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
17940 to indicate if loop aware SLP is being used. Scan the statements
17941 and update the vectorization factor according to the type of
17942 vectorization before statement analysis.
17943 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
17944 pass it to vect_analyze_loop_operations.
17945 (vectorizable_reduction): Set number of copies to 1 in case of pure
17947 * tree-vect-stmts.c (vectorizable_conversion,
17948 vectorizable_assignment, vectorizable_shift,
17949 vectorizable_operation, vectorizable_type_demotion,
17950 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
17952 (vectorizable_condition): Move the check that it is not SLP
17953 vectorization before the number of copies check.
17954 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
17955 to vectorize the loop using SLP.
17957 2011-04-28 Jakub Jelinek <jakub@redhat.com>
17959 PR middle-end/48597
17960 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
17963 2011-04-28 Joseph Myers <joseph@codesourcery.com>
17965 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
17966 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
17967 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
17968 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
17969 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
17971 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
17972 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17973 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17974 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17975 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17976 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
17978 * config/i386/linux.h (REG_NAME): Don't define.
17979 * config/i386/linux64.h (REG_NAME): Don't define.
17980 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
17981 Undefine before defining.
17983 2011-04-28 Jan Hubicka <jh@suse.cz>
17985 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
17986 nonconstant_names array.
17987 (estimate_function_body_sizes): Build nonconstant_names array; handle
17988 BUILT_IN_CONSTANT_P.
17990 2011-04-28 Richard Guenther <rguenther@suse.de>
17994 2011-04-28 Richard Guenther <rguenther@suse.de>
17996 * tree-ssa-structalias.c (solve_constraints): Build succ graph
17997 as late as possible.
17999 2011-04-28 Richard Guenther <rguenther@suse.de>
18001 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
18002 (debug_constraint): Do it here.
18003 (dump_constraints): And here.
18004 (rewrite_constraints): And here.
18005 (dump_constraint_edge): Remove.
18006 (dump_constraint_graph): Rewrite to produce DOT output.
18007 (solve_constraints): Build succ graph as late as possible.
18008 Dump constraint graphs before and after solving.
18010 2011-04-28 Richard Guenther <rguenther@suse.de>
18012 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18013 New function split out from ...
18014 (find_func_aliases): ... here. Call it.
18015 (find_func_aliases_for_call): Likewise.
18017 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
18019 * internal-fn.h (internal_fn_name_array): Declare.
18020 (internal_fn_flags_array): Likewise.
18022 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
18024 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
18025 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
18027 (ssemodefsuffix): Remove.
18028 (ssevecmodesuffix): New mode attribute.
18029 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
18030 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
18031 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
18032 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
18033 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
18034 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
18035 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
18036 ssemodesuffix mode attribute.
18037 (float splitters): Use ssevecmodesuffix mode attribute.
18038 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
18039 (sseinsmode): Rename from avxvecmode.
18040 (avxsizesuffix): Rename from avxmodesuffix.
18041 (sseintvecmode): Rename from avxpermvecmode.
18042 (ssedoublevecmode): Rename from ssedoublesizemode.
18043 (ssehalfvecmode): Rename from avxhalfvecmode.
18044 (ssescalarmode): Rename from avxscalarmode.
18045 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
18046 templates for ssemodesuffix mode attribute.
18047 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
18050 Adjust RTX patterns globally for renamed mode attributes.
18052 2011-04-27 Jan Hubcika <jh@suse.cz>
18054 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
18055 * ipa-inline-analysis.c: Include alloc-pool.h.
18056 (edge_predicate_pool): New.
18057 (trye_predicate_p): New function
18058 (false_predicate_p): New function.
18059 (add_clause): Sanity check that false clauses are "optimized";
18060 never add clauses to predicate that is already known to be false.
18061 (and_predicate): Use flase_predicate_p.
18062 (evaulate_predicate): Rename to ...
18063 (evaluate_predicate): ... this one; update all callers; assert
18064 that false is not listed among possible truths.
18065 (dump_predicate): Use true_predicate_p.
18066 (account_size_time): Use false_predicate_p.
18067 (evaulate_conditions_for_edge): Rename to ...
18068 (evaluate_conditions_for_edge) ... this one.
18069 (edge_set_predicate): New function.
18070 (inline_edge_duplication_hook): Duplicate edge predicates.
18071 (inline_edge_removal_hook): Free edge predicates.
18072 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
18073 (dump_inline_summary): Update.
18074 (estimate_function_body_sizes): Set edge predicates.
18075 (estimate_calls_size_and_time): Handle predicates.
18076 (estimate_callee_size_and_time): Update.
18077 (remap_predicate): Add toplev_predicate; update comment.
18078 (remap_edge_predicates): New function.
18079 (inline_merge_summary): Compute toplev predicate; update.
18080 (read_predicate): New function.
18081 (read_inline_edge_summary): Use it.
18082 (inline_read_section): Likewise.
18083 (write_predicate): New function.
18084 (write_inline_edge_summary): Use it.
18085 (inline_write_summary): Likewise.
18086 (inline_free_summary): Free alloc pool and edge summary vec.
18088 2011-04-27 Richard Guenther <rguenther@suse.de>
18090 * tree-ssa-structalias.c (changed_count): Remove.
18091 (changed): Use a bitmap.
18092 (unify_nodes): Adjust.
18093 (do_sd_constraint): Likewise.
18094 (do_ds_constraint): Likewise.
18095 (do_complex_constraint): Likewise.
18096 (solve_graph): Likewise.
18098 2011-04-27 Jan Hubicka <jh@suse.cz>
18100 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
18102 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
18104 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
18105 (avx_vperm2f128_*_operand): Ditto.
18106 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
18107 Use avx_vpermilp_parallel in insn condition.
18108 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
18109 Use avx_vperm2f128_parallel in insn condition.
18111 2011-04-27 Richard Guenther <rguenther@suse.de>
18113 * Makefile.in (tree-ssa-structalias.o): Remove
18114 gt-tree-ssa-structalias.h dependency.
18115 (GTFILES): Remove tree-ssa-structalias.c.
18116 * tree.c (allocate_decl_uid): New function.
18117 (make_node_stat): Use it.
18118 (copy_node_stat): Likewise.
18119 * tree.h (allocate_decl_uid): Declare.
18120 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
18121 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
18122 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
18123 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
18124 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
18125 (struct heapvar_map): Likewise.
18126 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
18127 heapvar_insert): Likewise.
18128 (make_heapvar_for): Rename to ...
18129 (make_heapvar): ... this. Simplify.
18130 (fake_var_decl_obstack): New global var.
18131 (build_fake_var_decl): New function.
18132 (make_constraint_from_heapvar): Adjust.
18133 (handle_lhs_call): Likewise.
18134 (create_function_info_for): Likewise.
18135 (intra_create_variable_infos): Likewise.
18136 (init_alias_vars): Allocate fake_var_decl_obstack.
18137 (init_alias_heapvars, delete_alias_heapvars): Remove.
18138 (compute_points_to_sets): Do not call init_alias_heapvars.
18139 (ipa_pta_execute): Likewise.
18140 (delete_points_to_sets): Free fake_var_decl_obstack.
18142 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18144 * config/spu/divmovti4.c (union qword_UTItype): New data type.
18145 (si_from_UTItype, si_to_UTItype): New functions.
18146 (__udivmodti4): Use them to implement type-punning.
18147 * config/spu/multi3.c (union qword_TItype): New data type.
18148 (si_from_TItype, si_to_TItype): New functions.
18149 (__multi3): Use them to implement type-punning.
18151 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18153 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
18155 2011-04-27 Jan Hubicka <jh@suse.cz>
18157 * ipa-prop.c (function_insertion_hook_holder): New holder.
18158 (ipa_add_new_function): New function.
18159 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
18160 Register/deregister holder.
18162 2011-04-27 Richard Guenther <rguenther@suse.de>
18164 PR tree-optimization/48772
18165 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
18167 2011-04-27 Richard Guenther <rguenther@suse.de>
18169 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
18170 TARGET_MEM_REF handling.
18172 2011-04-27 Nick Clifton <nickc@redhat.com>
18174 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
18175 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
18176 (REG_CLASS_NAMES): Likewise.
18177 (REG_CLASS_CONTENTS): Likewise.
18178 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
18179 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
18180 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
18181 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
18182 (EVEN_REGS): New macro. Alias for QUAD_REGS.
18183 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
18184 duplicate register classes.
18185 (frv_class_likely_spilled_p): Likewise.
18186 (frv_register_move_cost): Likewise.
18188 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
18189 end of the regno_reg_class array.
18191 2011-04-27 Jakub Jelinek <jakub@redhat.com>
18194 * c-typeck.c (build_binary_op): Don't wrap arguments if
18195 int_operands is true.
18197 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
18200 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
18201 targetm.calls.must_pass_in_stack for void type.
18203 2011-04-26 Jan Hubicka <jh@suse.cz>
18205 * cgraphbuild.c (build_cgraph_edges): Update call
18206 of cgraph_create_edge and cgraph_create_indirect_edge.
18207 * cgraph.c (cgraph_create_edge_including_clones,
18208 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
18209 cgraph_update_edges_for_call_stmt_node): Do not take nest
18210 argument; do not initialize call_stmt_size/time.
18211 (dump_cgraph_node): Do not dump nest.
18212 (cgraph_clone_edge): Do not take loop_nest argument;
18213 do not propagate it; do not clone call_stmt_size/time.
18214 (cgraph_clone_node): Likewise.
18215 (cgraph_create_virtual_clone): Update.
18216 * cgraph.h (struct cgraph_edge): Remove
18217 call_stmt_size/call_stmt_time/loop_nest.
18218 (cgraph_create_edge, cgraph_create_indirect_edge,
18219 cgraph_create_edge_including_clones, cgraph_clone_node): Update
18221 * tree-emutls.c (gen_emutls_addr): Update.
18222 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
18223 loop_nest; handle indirect calls, too.
18224 (clone_inlined_nodes): Do not care about updating inline summaries.
18225 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
18226 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
18227 stream call_stmt_size/call_stmt_time/loop_nest.
18228 * ipa-inline.c (edge_badness): Update.
18229 (ipa_inline): dump summaries after inlining.
18230 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
18232 (inline_edge_summary): New function.
18233 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
18234 (inline_edge_removal_hook): Handle edge summaries.
18235 (inline_edge_duplication_hook): New hook.
18236 (inline_summary_alloc): Alloc hooks.
18237 (initialize_growth_caches): Do not register removal hooks.
18238 (free_growth_caches); Do not free removal hook.
18239 (dump_inline_edge_summary): New function.
18240 (dump_inline_summary): Use it.
18241 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
18242 (inline_update_callee_summaries): New function.
18243 (inline_merge_summary): Use it.
18244 (do_estimate_edge_time, do_estimate_edge_growth): Update.
18245 (read_inline_edge_summary): New function.
18246 (inline_read_section): Use it.
18247 (write_inline_edge_summary): New function.
18248 (inline_write_summary): Use it.
18249 (inline_free_summary): Free edge new holders.
18250 * tree-inline.c (copy_bb): Update.
18252 2011-04-26 Jason Merrill <jason@redhat.com>
18254 * tree-eh.c (lower_try_finally_switch): Create the label along with
18255 the CASE_LABEL_EXPR.
18257 2011-04-26 David S. Miller <davem@davemloft.net>
18258 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18260 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
18261 * configure: Regenerate.
18263 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
18266 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
18268 (VEC_reduc): New code iterator and splitters for vector reduction.
18269 (VEC_reduc_name): Ditto.
18270 (VEC_reduc_rtx): Ditto.
18271 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
18272 (reduc_<VEC_reduc_name>_v4sf): Ditto.
18274 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
18275 support for extracting SF on VSX.
18277 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
18278 generating xscvspdp.
18279 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
18280 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
18281 double add, minimum, maximum vector reduction.
18282 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
18283 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
18284 optimize double vector reduction.
18285 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
18287 2011-04-26 Joseph Myers <joseph@codesourcery.com>
18289 * config/fr30/fr30.h (inhibit_libc): Don't define.
18290 * config/m32r/m32r-protos.h: Correct comment.
18291 * config/v850/v850.h (GHS_default_section_names,
18292 GHS_current_section_names): Use tree, not union tree_node *.
18294 2011-04-26 Xinliang David Li <davidxl@google.com>
18296 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
18297 * c-family/c-opts.c (c_common_handle_option): Set
18298 warn_maybe_uninitialized.
18299 * opts.c (common_handle_option): Ditto.
18300 * common.opt: New option.
18301 * tree-ssa.c (warn_uninit): Add one more parameter.
18302 (warn_uninitialized_var): Pass warning code.
18303 * tree-flow.h: Interface change.
18305 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18307 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
18308 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
18309 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
18311 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18313 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
18314 * config/mips/mips.opt (mmips-tfile): Remove.
18316 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
18317 mips-tdump reference to ...
18318 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
18319 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
18320 reference by Tru64 UNIX.
18322 2011-04-26 Jakub Jelinek <jakub@redhat.com>
18325 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
18326 is error_mark_node, set value to NULL.
18328 PR tree-optimization/48734
18329 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
18330 if return value from maybe_fold_*_comparsions isn't something
18331 the code is prepared to handle.
18333 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
18335 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
18337 (ext_QIreg_nomode_operands): Remove.
18338 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
18342 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
18344 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
18346 2011-04-26 Richard Guenther <rguenther@suse.de>
18348 * c-typeck.c (build_unary_op): Do not expand array-refs via
18349 pointer arithmetic. Only adjust qualifiers for function types.
18351 2011-04-26 Richard Guenther <rguenther@suse.de>
18353 PR middle-end/48694
18354 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
18355 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
18356 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
18357 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
18359 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
18361 * doc/extend.texi: Document __underlying_type.
18363 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
18365 * config/rs6000/titan.md (automata_option "progress"): Remove.
18367 2011-04-25 Jeff Law <law@redhat.com>
18369 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
18371 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
18373 * system.h (ENUM_BITFIELD): Remove.
18375 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
18376 Eric Botcazou <ebotcazou@adacore.com>
18378 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
18379 for STORE_FLAG_VALUE==-1 case.
18381 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
18384 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
18385 LEGITIMATE_PIC_OPERAND_P.
18387 2011-04-24 Jan Hubicka <jh@suse.cz>
18389 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
18391 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
18392 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
18393 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
18394 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
18395 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
18396 Sanity check predicate length.
18397 (remap_predicate): Likewise; sanity check jump functions.
18398 (inline_read_section, inline_write_summary): Sanity check
18401 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
18404 * doc/extend.texi (Type Traits): Document __is_standard_layout,
18405 __is_literal_type, and __is_trivial; update throughout about
18406 possibly cv-qualified void types.
18408 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
18410 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
18411 testsuite and make it version agnostic.
18413 2011-04-22 Jan Hubicka <jh@suse.cz>
18415 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
18417 2011-04-23 Jakub Jelinek <jakub@redhat.com>
18420 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
18421 to VOID_TYPE even around MODIFY_EXPR.
18423 2011-04-22 Mike Stump <mikestump@comcast.net>
18425 * gensupport.c (read_md_rtx): Fix typo in comment.
18426 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
18429 2011-04-22 Jan Hubicka <jh@suse.cz>
18431 * gengtype.c (open_base_files): Add ipa-inline.h include.
18432 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
18433 ipa-prop.c; update all uses.
18434 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
18435 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
18436 merge summary of inlined function into former caller.
18437 * ipa-inline.c (max_benefit): Remove.
18438 (edge_badness): Compensate for removal of benefits.
18439 (update_caller_keys): Use
18440 reset_node_growth_cache/reset_edge_growth_cache.
18441 (update_callee_keys): Likewise.
18442 (update_all_callee_keys): Likewise.
18443 (inline_small_functions): Do not collect max_benefit; do not reset
18444 estimated_growth; call free_growth_caches and initialize_growth_caches.
18445 * ipa-inline.h (struct condition, type clause_t, struct predicate,
18446 struct size_time_entry): New structures.
18447 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
18448 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
18449 and estimated_growth.
18450 (edge_growth_cache_entry): New structure.
18451 (node_growth_cache, edge_growth_cache): New global vars.
18452 (estimate_growth): Turn into inline.
18453 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
18454 initialize_growth_caches, free_growth_caches): Declare.
18455 (estimate_edge_growth): Rewrite.
18456 (estimate_edge_time): Implement as inline cache lookup.
18457 (reset_node_growth_cache, reset_edge_growth_cache): New inline
18459 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
18460 (NUM_CONDITIONS): New constant.
18461 (predicate_conditions): New enum.
18462 (IS_NOT_CONSTANT): New constant.
18463 (edge_removal_hook_holder): New var.
18464 (node_growth_cache, edge_growth_cache): New global vars.
18465 (true_predicate, single_cond_predicate, false_predicate,
18466 not_inlined_predicate, add_condition, add_clause, and_predicates,
18467 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
18468 dump_clause, dump_predicate, account_size_time,
18469 evaulate_conditions_for_edge): New functions.
18470 (inline_summary_alloc): Move to heap.
18471 (inline_node_removal_hook): Clear condition and entry vectors.
18472 (inline_edge_removal_hook): New function.
18473 (initialize_growth_caches, free_growth_caches): New function.
18474 (dump_inline_summary): Update.
18475 (edge_execution_predicate): New function.
18476 (will_be_nonconstant_predicate): New function.
18477 (estimate_function_body_sizes): Compute BB and constantness predicates.
18478 (compute_inline_parameters): Do not clear estimated_growth.
18479 (estimate_edge_size_and_time): New function.
18480 (estimate_calls_size_and_time): New function.
18481 (estimate_callee_size_and_time): New function.
18482 (remap_predicate): New function.
18483 (inline_merge_summary): New function.
18484 (do_estimate_edge_time): New function based on...
18485 (estimate_edge_time): ... this one.
18486 (do_estimate_edge_growth): New function.
18487 (do_estimate_growth): New function based on....
18488 (estimate_growth): ... this one.
18489 (inline_analyze_function): Analyze after deciding on jump functions.
18490 (inline_read_section): New function.
18491 (inline_read_summary): Use it.
18492 (inline_write_summary): Write all the new data.
18493 * ipa-prop.c (ipa_get_param_decl_index): Export.
18494 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
18495 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
18497 (ipa_get_lattice): Move here from ipa-cp.c
18498 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
18499 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
18500 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
18501 cgraph_edge_inlinable_p): Remove.
18502 * cgraphunit.c: Include ipainline.h
18503 (cgraph_process_new_functions): Update call of
18504 compute_inline_parameters.
18506 2011-04-22 Richard Guenther <rguenther@suse.de>
18508 * tree.c (build_int_cst): Properly create canonicalized integer
18510 (build_int_cst_type): Remove scary comments.
18512 2011-04-22 Xinliang David Li <davidxl@google.com>
18514 * toplev.c (process_options): Enable -Werror=coverage-mismatch
18515 by default when -Wno-error is not specified.
18516 * opts-global.c (decode_options): Remove call to
18517 control_warning_options.
18519 2011-04-22 Jakub Jelinek <jakub@redhat.com>
18521 PR tree-optimization/48717
18522 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
18523 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
18525 2011-04-22 Joseph Myers <joseph@codesourcery.com>
18527 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
18528 definition where used.
18530 2011-04-22 Jakub Jelinek <jakub@redhat.com>
18533 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
18534 TREE_STATIC variables declared inside of some OpenMP construct.
18536 2011-04-22 Martin Jambor <mjambor@suse.cz>
18538 PR middle-end/48585
18539 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
18541 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
18544 * c-typeck.c (pop_init_level): Do not warn about initializing
18547 2011-04-22 Alan Modra <amodra@gmail.com>
18549 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
18550 when returning call_cookie.
18551 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
18552 pointers, to functions with no more vector args than the current
18553 function, and some non-local calls for ABI_V4.
18554 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
18555 sibcall_nonlocal_aix64): Combine to ..
18556 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
18557 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
18558 (sibcall_value_nonlocal_aix<mode>): ..likewise.
18559 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
18560 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
18562 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
18563 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
18564 sibcall_value_symbolic_64): Delete.
18566 2011-04-21 Xinliang David Li <davidxl@google.com>
18568 * cgraph.h: Remove pid.
18569 * cgraph.c: Remove pid.
18570 * value-prof.c (init_node_map): New function.
18571 (del_node_map): New function.
18572 (find_func_by_funcdef_no): New function.
18573 (gimple_ic_transform): Call new function.
18574 * cgraphunit.c (cgraph_finalize_function): Remove pid.
18575 * function.c (get_last_funcdef_no): New function.
18576 * function.h (get_last_funcdef_no): New function.
18577 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
18578 to libgcov function.
18579 (tree-profiling): Call node map init and delete function.
18581 2011-04-21 Ian Lance Taylor <iant@google.com>
18583 * godump.c (go_format_type): Use exported Go name for anonymous
18586 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18588 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
18589 Call builtin_function_type_list instead of builtin_function_type.
18590 (UNARY, BINARY, TRINARY, QUAD): Likewise.
18592 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18594 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
18595 build_function_type_list instead of build_function_type.
18596 Delete variable `endlink'.
18598 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18600 * config/s390/s390.c (s390_init_builtins): Call
18601 build_function_type_list instead of build_function_type.
18603 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18605 * config/ia64/ia64.c (ia64_init_builtins): Call
18606 build_function_type_list instead of builtin_function_type.
18608 2011-04-21 Easwaran Raman <eraman@google.com>
18610 * cfgexpand.c (stack_var): Remove OFFSET...
18611 (add_stack_var): ...and its reference here...
18612 (expand_stack_vars): ...and here.
18613 (stack_var_cmp): Sort by descending order of size.
18614 (partition_stack_vars): Change heuristic.
18615 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
18616 (dump_stack_var_partition): Add newline after each partition.
18618 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
18619 Jeff Law <law@redhat.com>
18621 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
18622 * gengtype.c (matching_file_name_substitute): Likewise.
18624 2011-04-21 Richard Guenther <rguenther@suse.de>
18627 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
18629 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
18631 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
18633 2011-04-21 Richard Guenther <rguenther@suse.de>
18635 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
18638 2011-04-21 Richard Guenther <rguenther@suse.de>
18640 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
18641 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
18642 Use DECL_P, not SSA_VAR_P.
18643 (ptr_derefs_may_alias_p): Likewise.
18644 (ptr_deref_may_alias_ref_p_1): Likewise.
18645 (decl_refs_may_alias_p): Likewise.
18646 (refs_may_alias_p_1): Likewise.
18647 (ref_maybe_used_by_call_p_1): Likewise.
18648 (call_may_clobber_ref_p_1): Likewise.
18649 (indirect_ref_may_alias_decl_p): Assume indirect refrences
18650 are either MEM_REF or TARGET_MEM_REF.
18651 (indirect_refs_may_alias_p): Likewise.
18652 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
18653 for MEM_EXPR of indirect calls.
18655 2011-04-21 Tristan Gingold <gingold@adacore.com>
18657 * vmsdbgout.c (write_srccorr): Compute file length from the string.
18658 (dst_file_info_struct): Remove flen field.
18659 (lookup_filename): Remove code that set flen field.
18661 2011-04-21 Tristan Gingold <gingold@adacore.com>
18663 * config/ia64/ia64.c (ia64_start_function): Add a guard.
18665 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
18668 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
18669 vec_extract and vec_concat for non-SSE4_1 targets.
18671 2011-04-21 Richard Guenther <rguenther@suse.de>
18673 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
18676 2011-04-21 Joseph Myers <joseph@codesourcery.com>
18678 * config/i386/cygming.h (union tree_node, TREE): Don't define or
18680 (FILE): Don't undefine.
18682 2011-04-21 Joseph Myers <joseph@codesourcery.com>
18684 * config/alpha/alpha.c (struct machine_function): Use rtx, not
18686 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
18688 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
18689 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
18690 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
18692 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
18693 definitions where used.
18694 * config/microblaze/microblaze.h (struct microblaze_args): Use
18695 rtx, not struct rtx_def *.
18696 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
18698 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
18699 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
18700 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
18701 not struct rtx_def *.
18702 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
18704 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
18706 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
18708 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
18710 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
18711 operand_equal_p to compare DR_BASE_ADDRESSes.
18712 (vect_check_interleaving): Likewise.
18714 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
18717 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
18718 for all Neon struct constants.
18720 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
18722 * target.def (legitimate_constant_p): New hook.
18723 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
18724 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
18725 * doc/tm.texi: Regenerate.
18726 * hooks.h (hook_bool_mode_rtx_true): Declare.
18727 * hooks.c (hook_bool_mode_rtx_true): Define.
18728 * system.h (LEGITIMATE_CONSTANT_P): Poison.
18729 * calls.c (precompute_register_parameters): Replace uses of
18730 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
18731 (emit_library_call_value_1): Likewise.
18732 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
18733 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
18734 * ira-costs.c (scan_one_insn): Likewise.
18735 * recog.c (general_operand, immediate_operand): Likewise.
18736 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
18737 * reload1.c (init_eliminable_invariants): Likewise.
18739 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
18741 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
18742 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
18744 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18745 * config/alpha/predicates.md (input_operand): Update call to
18746 alpha_legitimate_constant_p.
18748 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
18749 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
18750 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
18751 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18752 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
18753 (arm_legitimate_constant_p): New functions.
18754 (arm_cannot_force_const_mem): Make static.
18756 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
18758 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
18759 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
18760 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
18761 instead of bfin_legitimate_constant_p.
18762 (bfin_legitimate_constant_p): Make static. Add a mode argument.
18763 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18765 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
18767 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
18769 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
18770 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
18771 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18772 (frv_legitimate_constant_p): Make static. Add a mode argument.
18774 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
18775 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
18776 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
18778 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
18779 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
18780 * config/i386/i386.c (legitimate_constant_p): Rename to...
18781 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
18783 (ix86_cannot_force_const_mem): Update accordingly.
18784 (ix86_legitimate_address_p): Likewise.
18785 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18786 * config/i386/i386.md: Update commentary.
18788 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
18789 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
18790 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18791 (ia64_legitimate_constant_p): Make static. Add a mode argument.
18793 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
18795 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
18796 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
18797 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18798 (lm32_legitimate_constant_p): Make static. Add a mode argument.
18800 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
18801 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
18802 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
18804 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
18805 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18806 (m32r_legitimate_constant_p): New function.
18808 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
18809 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
18810 LEGITIMATE_CONSTANT_P.
18811 (LEGITIMATE_CONSTANT_P): Delete.
18812 * config/m68k/m68k.c (m68k_expand_prologue): Call
18813 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
18814 (m68k_legitimate_constant_p): New function.
18815 * config/m68k/m68k.md: Update comments.
18817 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
18818 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18819 (mcore_legitimate_constant_p): New function.
18821 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
18822 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
18823 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
18824 Add a mode argument.
18825 (mep_legitimate_address): Update accordingly.
18826 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18828 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
18830 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
18831 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
18832 static. Check OP's mode for VOIDmode.
18833 (microblaze_legitimate_constant_p): New function.
18834 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18836 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
18837 * config/mips/mips.c (mips_legitimate_constant_p): New function.
18838 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
18839 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18840 * config/mips/predicates.md: Update comments.
18842 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
18843 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
18844 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18845 (mmix_legitimate_constant_p): Make static, return a bool, and take
18847 (mmix_print_operand_address): Update accordingly.
18849 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
18851 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
18852 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
18853 static. Add a mode argument.
18854 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18856 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
18858 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
18859 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18860 (pa_legitimate_constant_p): New function.
18862 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
18864 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
18865 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18866 (pdp11_legitimate_constant_p): New function.
18868 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
18869 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18870 (rs6000_legitimate_constant_p): New function.
18872 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
18873 (rx_legitimate_constant_p): ...this.
18874 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
18875 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
18876 (rx_legitimate_constant_p): ...this.
18877 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18878 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
18880 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
18881 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
18882 * config/s390/s390.c (legitimate_constant_p): Rename to...
18883 (s390_legitimate_constant_p): ...this. Make static, return a bool,
18884 and add a mode argument.
18885 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18887 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
18889 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
18890 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18891 (sh_legitimate_constant_p): New function.
18893 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
18894 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
18895 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18896 (legitimate_constant_p): Rename to...
18897 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
18899 (constant_address_p): Update accordingly.
18901 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
18902 argument and return a bool.
18903 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
18904 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18905 (spu_legitimate_constant_p): Add a mode argument and return a bool.
18906 (spu_rtx_costs): Update accordingly.
18907 * config/spu/predicates.md (vec_imm_operand): Likewise.
18909 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
18911 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
18912 * config/v850/v850.c (v850_legitimate_constant_p): New function.
18913 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18915 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
18916 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
18917 * config/vax/vax.c (legitimate_constant_p): Likewise.
18919 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
18920 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18921 (xtensa_legitimate_constant_p): New function.
18923 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
18925 * target.def (cannot_force_const_mem): Add a mode argument.
18926 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
18927 * doc/tm.texi: Regenerate.
18928 * hooks.h (hook_bool_mode_rtx_false): Declare.
18929 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
18930 (hook_bool_mode_const_rtx_true): Likewise.
18931 (hook_bool_mode_rtx_false): New function.
18932 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
18933 to be non-VOID. Update call to cannot_force_const_mem.
18934 (find_reloads): Update accordingly.
18935 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
18936 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
18938 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
18939 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
18940 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
18941 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
18942 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
18943 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
18944 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
18945 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
18946 (m68k_cannot_force_const_mem): ...this new function.
18947 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
18949 (mips_const_insns, mips_legitimize_const_move): Update calls.
18950 (mips_secondary_reload_class): Likewise.
18951 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
18952 (pa_cannot_force_const_mem): ...this new function.
18953 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
18954 (rs6000_cannot_force_const_mem): ...this new function.
18955 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
18957 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
18958 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
18960 (xtensa_cannot_force_const_mem): ...this new function.
18962 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
18964 * config/mips/mips.c (mips16_build_function_stub): Call
18965 build_function_type_list instead of build_function_type.
18966 (mips16_build_call_stub): Likewise.
18968 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
18970 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
18971 instead of build_function_type.
18973 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
18975 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
18976 instead of build_function_type.
18978 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
18981 * config/i386/i386.md (insv): Change operand 0 constraint to
18982 "register_operand". Change operand 1 and 2 constraint to
18983 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
18984 * config/i386/sse.md (sse4_1_pinsrb): Export.
18985 (sse2_pinsrw): Ditto.
18986 (sse4_1_pinsrd): Ditto.
18987 (sse4_1_pinsrq): Ditto.
18988 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
18989 * config/i386/i386.c (ix86_expand_pinsr): New.
18991 2011-04-20 Easwaran Raman <eraman@google.com>
18993 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
18994 containing union type only with -fstrict-aliasing.
18996 2011-04-20 Jim Meyering <meyering@redhat.com>
18998 Remove useless if-before-free tests.
18999 * calls.c (expand_call, save_area): Likewise.
19000 * cfgcleanup.c (try_forward_edges): Likewise.
19001 * collect2.c (collect_execute): Likewise.
19002 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
19003 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
19004 * coverage.c (coverage_checksum_string): Likewise.
19005 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
19006 * cselib.c (cselib_init): Likewise.
19007 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
19008 (df_set_clean_cfg): Likewise.
19009 * function.c (free_after_compilation): Likewise.
19010 * gcc.c (do_spec_1, main): Likewise.
19011 * gcov.c (create_file_names): Likewise.
19012 * gensupport.c (identify_predicable_attribute): Likewise.
19013 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
19014 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
19015 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
19016 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
19017 * ipa-pure-const.c (local_pure_const): Likewise.
19018 * ipa-reference.c (propagate): Likewise.
19019 * ira-costs.c (free_ira_costs): Likewise.
19020 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
19021 * matrix-reorg.c (mat_free): Likewise.
19022 * prefix.c (get_key_value): Likewise.
19023 * profile.c (compute_value_histograms): Likewise.
19024 * reload1.c (free_reg_equiv): Likewise.
19025 * sched-deps.c (free_deps): Likewise.
19026 * sel-sched-ir.c (fence_clear): Likewise.
19027 * sese.c (set_rename, if_region_set_false_region): Likewise.
19028 * tree-data-ref.c (free_rdg): Likewise.
19029 * tree-eh.c (lower_try_finally): Likewise.
19030 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
19031 * tree-ssa-live.c (delete_var_map): Likewise.
19032 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
19033 * tree-ssa-pre.c (phi_trans_add): Likewise.
19035 2011-04-20 Jakub Jelinek <jakub@redhat.com>
19037 PR tree-optimization/48611
19038 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
19039 beyond ERT_MUST_NOT_THROW region.
19041 2011-04-20 Catherine Moore <clm@codesourcery.com>
19043 * config/mips/mips.opt (mfix-24k): New.
19044 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
19045 * config/mips/mips.md (length): Increase by 4 for stores if
19047 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
19048 all noreorder if fixing 24K errata.
19049 * doc/invoke.texi: Document mfix-24k.
19051 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
19053 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
19054 quad-word modes, reduce to 9-bit index range when above 1016 limit.
19056 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
19058 * config/arm/arm.c (arm_gen_constant): Move movw support ....
19059 (const_ok_for_op): ... to here.
19061 2011-04-20 Kai Tietz <ktietz@redhat.com>
19063 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
19064 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
19066 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
19068 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
19070 2011-04-20 Richard Guenther <rguenther@suse.de>
19072 PR tree-optimization/47892
19073 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
19074 are if-convertible.
19076 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
19078 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
19080 2011-04-20 Tristan Gingold <gingold@adacore.com>
19082 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
19084 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
19088 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
19089 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
19090 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
19091 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
19092 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
19094 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
19097 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
19098 (avr_asm_named_section, avr_asm_output_aligned_common,
19099 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
19100 New functions to update...
19101 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
19102 (avr_asm_init_sections): Overwrite section callbacks for
19103 data_section, bss_section.
19104 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
19106 (avr_file_end): ...here.
19108 2011-04-20 Richard Guenther <rguenther@suse.de>
19110 PR middle-end/48695
19111 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
19112 objects and types here. Adjust for their offset before comparing.
19114 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
19116 * tree-vect-stmts.c (vectorizable_store): Only chain one related
19117 statement per copy.
19119 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
19121 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
19122 (GIMPLE_H): Include $(INTERNAL_FN_H).
19123 (OBJS-common): Add internal-fn.o.
19124 (internal-fn.o): New rule.
19125 * internal-fn.def: New file.
19126 * internal-fn.h: Likewise.
19127 * internal-fn.c: Likewise.
19128 * gimple.h: Include internal-fn.h.
19129 (GF_CALL_INTERNAL): New gf_mask.
19130 (gimple_statement_call): Put fntype into a union with a new
19132 (gimple_build_call_internal): Declare.
19133 (gimple_build_call_internal_vec): Likewise.
19134 (gimple_call_same_target_p): Likewise.
19135 (gimple_call_internal_p): New function.
19136 (gimple_call_internal_fn): Likewise.
19137 (gimple_call_fntype): Return null for internal calls.
19138 (gimple_call_set_fntype): Assert that the function is not internal.
19139 (gimple_call_set_fn): Likewise.
19140 (gimple_call_set_fndecl): Likewise.
19141 (gimple_call_set_internal_fn): New function.
19142 (gimple_call_addr_fndecl): Handle null functions.
19143 (gimple_call_return_type): Likewise null types.
19144 * gimple.c (gimple_build_call_internal_1): New function.
19145 (gimple_build_call_internal): Likewise.
19146 (gimple_build_call_internal_vec): Likewise.
19147 (gimple_call_same_target_p): Likewise.
19148 (gimple_call_flags): Handle calls to internal functions.
19149 (gimple_call_fnspec): New function.
19150 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
19151 (gimple_has_side_effects): Handle null functions.
19152 (gimple_rhs_has_side_effects): Likewise.
19153 (gimple_call_copy_skip_args): Handle calls to internal functions.
19154 * cfgexpand.c (expand_call_stmt): Likewise.
19155 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
19156 * gimple-fold.c (gimple_fold_call): Handle null functions.
19157 (gimple_fold_stmt_to_constant_1): Don't fold
19158 calls to internal functions.
19159 * gimple-low.c (gimple_check_call_args): Handle calls to internal
19161 * gimple-pretty-print.c (dump_gimple_call): Likewise.
19162 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
19163 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
19164 (do_warn_unused_result): Likewise.
19165 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
19166 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
19167 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
19168 the target of a call.
19169 (initialize_hash_element): Update accordingly.
19170 (hashable_expr_equal_p): Use gimple_call_same_target_p.
19171 (iterative_hash_hashable_expr): Handle calls to internal functions.
19172 (print_expr_hash_elt): Likewise.
19173 * tree-ssa-pre.c (can_value_number_call): Likewise.
19174 (eliminate): Handle null functions.
19175 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
19176 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
19177 (find_func_aliases): Likewise.
19178 * value-prof.c (gimple_ic_transform): Likewise.
19179 (gimple_indirect_call_to_profile): Likewise.
19180 * lto-streamer-in.c (input_gimple_stmt): Likewise.
19181 * lto-streamer-out.c (output_gimple_stmt): Likewise.
19183 2011-04-19 Jan Hubicka <jh@suse.cz>
19185 * ipa-inline-transform.c (save_inline_function_body): Add comments.
19186 * ipa-inline.c (inline_small_functions): Compute summaries first,
19187 populate heap later.
19189 2011-04-19 Jan Hubicka <jh@suse.cz>
19191 * cgraph.h (save_inline_function_body): Remove.
19192 * ipa-inline-transform.c: New file, broke out of...
19193 * ipa-inline.c: ... this one; Update toplevel comment.
19194 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
19196 (update_noncloned_frequencies): Move to ipa-inline-transform.c
19197 (cgraph_mark_inline_edge): Rename to inline_call; move to
19198 ipa-inline-transform.c.
19199 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
19200 move to ipa-inline-transform.c
19201 (recursive_inlining, inline_small_functions, flatten_function,
19202 ipa_inline, inline_always_inline_functions,
19203 early_inline_small_functions): Update.
19204 (inline_transform): Move to ipa-inline-transform.c.
19205 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
19207 * Makefile.in (ipa-inline-transform.o): New file.
19208 * cgraphunit.c (save_inline_function_body): Move to
19209 ipa-inline-transform.c
19211 2011-04-19 DJ Delorie <dj@redhat.com>
19213 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
19214 registers if we already know there aren't any.
19215 (m32c_emit_epilogue): Don't emit a barrier here.
19216 (m32c_emit_eh_epilogue): Likewise.
19217 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
19218 operands at expand time.
19219 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
19221 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
19222 duplicates. Provide aliases instead.
19223 * config/m32c/prologue.md (eh_return): Emit a barrier here.
19224 (eh_epilogue): Add a "(return)" here as a hint to other parts of
19227 2011-04-19 Anatoly Sokolov <aesok@post.ru>
19229 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
19230 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
19231 (general_or_i64_p, sparc_register_move_cost): New function.
19233 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19235 * doc/install.texi (Configuration, --enable-threads): Remove mach.
19236 Add lynx, mipssde. Sort table.
19238 2011-04-19 Xinliang David Li <davidxl@google.com>
19240 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
19243 2011-04-19 Jakub Jelinek <jakub@redhat.com>
19246 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
19247 is a SUBREG with non-MODE_INT mode inside of it.
19249 2011-04-19 Martin Jambor <mjambor@suse.cz>
19251 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
19252 also according to actual contants.
19253 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
19254 (gimple_fold_call): Use it.
19255 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
19257 2011-04-19 Martin Jambor <mjambor@suse.cz>
19259 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
19260 non-pointer assignments.
19262 2011-04-19 Martin Jambor <mjambor@suse.cz>
19264 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
19265 account anc_offset and otr_type from the indirect edge info.
19266 * ipa-prop.c (get_ancestor_addr_info): New function.
19267 (compute_complex_ancestor_jump_func): Assignment analysis moved to
19268 get_ancestor_addr_info, call it.
19269 (ipa_note_param_call): Do not initialize information about polymorphic
19270 calls, return the indirect call graph edge. Remove the last
19271 parameter, adjust all callers.
19272 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
19273 parameters. Initialize polymorphic information in the indirect edge.
19275 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
19278 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
19279 the types if they have different enumeration identifiers.
19281 2011-04-19 Jan Hubicka <jh@suse.cz>
19283 * cgraph.h (cgraph_optimize_for_size_p): Declare.
19284 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
19285 * predict.c (cgraph_optimize_for_size_p): Break out from ...
19286 (optimize_function_for_size_p) ... here.
19288 2011-04-19 Richard Guenther <rguenther@suse.de>
19291 * tree.c (free_lang_data): Do not reset the decl-assembler-name
19294 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
19296 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
19297 if DECL_NO_INLINE_WARNING_P is set on the function.
19299 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
19302 * reload1.c (inc_for_reload): Return void. All callers changed.
19303 (emit_input_reload_insns): Don't try to delete previous output
19304 reloads to a register, or record spill_reg_store for autoincs.
19306 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
19308 * gengtype.h: Updated copyright year.
19309 (struct input_file_st): Add inpisplugin field.
19310 (type_fileloc): New function.
19312 (write_typed_struct_alloc_def): Add gcc_assert.
19313 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
19314 (write_typed_alloc_defns): Don't output for plugin files.
19315 (input_file_by_name): Clear inpisplugin field.
19316 (main): Set inpisplugin field for plugin files.
19318 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
19320 * gengtype-state.c (string_eq): New.
19321 (read_state): Use string_eq instead of strcmp when creating the
19324 2011-04-19 Wei Guozhi <carrot@google.com>
19327 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
19328 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
19330 * config/arm/constraints.md (Uu): New constraint.
19331 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
19333 2011-04-19 Tristan Gingold <gingold@adacore.com>
19335 * config.gcc (-*-*-*vms): Added.
19336 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
19338 * config/vms/vms-ld.c: New file.
19339 * config/vms/vms-ar.c: New file.
19340 * config/vms/t-vmsnative: New file.
19342 2011-04-18 Xinliang David Li <davidxl@google.com>
19344 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
19346 2011-04-18 Jakub Jelinek <jakub@redhat.com>
19348 PR middle-end/48661
19349 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
19350 if TREE_TYPE (v) is non-NULL.
19352 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
19353 gimple_get_virt_mehtod_for_binfo.
19354 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
19355 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
19357 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19359 2011-04-18 Michael Matz <matz@suse.de>
19360 Steve Ellcey <sje@cup.hp.com>
19362 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
19363 use its mode as source mode if it isn't VOIDmode.
19365 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
19367 * doc/passes.texi: Fill crossref nodes.
19369 2011-04-18 Jim Meyering <meyering@redhat.com>
19371 Fix doubled-word typos in comments and strings
19372 * config/alpha/vms-unwind.h: s/for for/for/
19373 * config/arm/unwind-arm.h: Likewise.
19374 * config/microblaze/microblaze.c: Likewise.
19375 * config/sh/constraints.md: s/in in/in/
19376 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
19378 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
19380 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
19381 (AVX_FLOAT_MODE_P): Ditto.
19382 (AVX128_VEC_FLOAT_MODE_P): Ditto.
19383 (AVX256_VEC_FLOAT_MODE_P): Ditto.
19384 (AVX_VEC_FLOAT_MODE_P): Ditto.
19385 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
19386 (UNSPEC_MASKSTORE): Ditto.
19387 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
19388 Merge from <sse>_movmsk<ssemodesuffix> and
19389 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
19390 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
19392 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
19393 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
19394 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
19396 2011-04-18 Jan Hubicka <jh@suse.cz>
19398 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
19400 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
19401 (want_inline_function_called_once_p): Break out the logic from
19403 (edge_badness): Ensure that profile is not misupdated.
19404 (lookup_recursive_calls): Prioritize by call frequencies.
19405 (inline_small_functions): Move program size estimates here;
19406 actually process whole queue even when unit growth has been
19407 met. (to properly compute inline_failed reasons and for the
19408 case unit size decrease.) Revisit comments on recursive inlining.
19409 (ipa_inline): Remove unit summary code; first inline hot calls
19410 of functions called once, cold calls next.
19411 (order, nnodes): Remove unused variables.
19412 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
19413 (GTFILES): Remove ipa-inline.c
19414 * sel-sched.c (fill_insns): Silence uninitialized var warning.
19416 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
19418 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
19420 2011-04-18 Jie Zhang <jie@codesourcery.com>
19421 Richard Earnshaw <rearnsha@arm.com>
19423 * arm.c (neon_builtin_type_bits): Remove.
19424 (typedef enum neon_builtin_mode): New.
19425 (T_MAX): Don't define.
19426 (typedef enum neon_builtin_datum): Remove bits, codes[],
19427 num_vars and base_fcode. Add mode, code and fcode.
19428 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
19429 VAR10): Change accordingly.
19430 (neon_builtin_data[]): Change accordingly
19431 (arm_init_neon_builtins): Change accordingly.
19432 (neon_builtin_compare): Remove.
19433 (locate_neon_builtin_icode): Remove.
19434 (arm_expand_neon_builtin): Change accordingly.
19436 * arm.h (enum arm_builtins): Move to ...
19437 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
19439 * arm.c (arm_builtin_decl): Declare.
19440 (TARGET_BUILTIN_DECL): Define.
19441 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
19442 (arm_builtin_decls[]): New.
19443 (arm_init_neon_builtins): Store builtin declarations in
19444 arm_builtin_decls[].
19445 (arm_init_tls_builtins): Likewise.
19446 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
19447 (arm_builtin_decl): New.
19449 2011-04-18 Richard Guenther <rguenther@suse.de>
19451 * tree.c (upper_bound_in_type): Build properly canonicalized
19453 (lower_bound_in_type): Likewise.
19455 2011-04-18 Richard Guenther <rguenther@suse.de>
19457 * gimple.h (gimple_call_addr_fndecl): New function.
19458 (gimple_call_fndecl): Use it.
19459 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
19461 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
19462 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
19464 2011-04-18 Richard Guenther <rguenther@suse.de>
19466 PR middle-end/48650
19467 * tree.c (build_string): STRING_CST is now derived from tree_typed.
19469 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
19472 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
19473 DECL_IN_CONSTANT_POOL without RTL.
19475 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
19476 Ira Rosen <ira.rosen@linaro.org>
19479 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
19480 to match neon_vzip/vuzp/vtrn_internal.
19481 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
19482 outputs explicitly dependent on both inputs.
19483 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
19485 2011-04-18 Jakub Jelinek <jakub@redhat.com>
19487 PR tree-optimization/48616
19488 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
19489 whether the shift is by scalar or vector based on whether all SLP
19490 scalar stmts have the same rhs.
19492 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
19494 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
19497 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
19500 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
19503 2011-04-17 Jan Hubicka <jh@suse.cz>
19505 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
19506 * cgrpahunit.c (cgraph_finalize_function): Do not set
19507 finalized_by_frontend.
19508 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
19509 finalized_by_frontend.
19511 2011-04-17 Jan Hubicka <jh@suse.cz>
19513 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
19514 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
19515 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
19516 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
19518 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
19520 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
19522 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
19525 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
19526 is non-null before accessing it.
19527 (input_cgraph): Remove trailing spaces.
19529 2011-04-17 Revital Eres <revital.eres@linaro.org>
19531 * params.def (sms-min-sc): New param flag.
19532 * modulo-sched.c (sms_schedule): Use it.
19533 * doc/invoke.texi (sms-min-sc): Document it.
19535 2011-04-17 Jan Hubicka <jh@suse.cz>
19537 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
19538 present, also set gimple_call_set_cannot_inline.
19539 * ipa-inline.c: Update toplevel comment.
19540 (MAX_TIME): Remove.
19541 (cgraph_clone_inlined_nodes): Fix linebreaks.
19542 (cgraph_check_inline_limits): Restructure to ...
19543 (caller_growth_limits): ... this one; be more tolerant
19544 on growth in nested inline chains; add explanatory comment;
19545 fix stack accounting thinko introduced by previous patch.
19546 (cgraph_default_inline_p): Remove.
19547 (report_inline_failed_reason): New function.
19548 (can_inline_edge_p): New function.
19549 (can_early_inline_edge_p): New function.
19550 (leaf_node_p): Move upwards in file.
19551 (want_early_inline_function_p): New function.
19552 (want_inline_small_function_p): New function.
19553 (want_inline_self_recursive_call_p): New function.
19554 (cgraph_edge_badness): Rename to ...
19555 (edge_badness) ... this one; fix linebreaks.
19556 (update_edge_key): Update call of edge_baddness; add
19557 detailed dump about queue updates.
19558 (update_caller_keys): Use can_inline_edge_p and
19559 want_inline_small_function_p.
19560 (cgraph_decide_recursive_inlining): Rename to...
19561 (recursive_inlining): Use can_inline_edge_p and
19562 want_inline_self_recursive_call_p; simplify and remove no longer
19564 (cgraph_set_inline_failed): Remove.
19565 (add_new_edges_to_heap): Use can_inline_edge_p and
19566 want_inline_small_function_p.
19567 (cgraph_decide_inlining_of_small_functions): Rename to ...
19568 (inline_small_functions): ... this one; cleanup; use
19569 can/want predicates; cleanup debug ouput; work edges till fibheap
19570 is exhausted and do not stop once unit growth is reached; remove
19571 later loop processing remaining edges.
19572 (cgraph_flatten): Rename to ...
19573 (flatten_function): ... this one; use can_inline_edge_p
19574 and can_early_inline_edge_p predicates.
19575 (cgraph_decide_inlining): Rename to ...
19576 (ipa_inline): ... this one; remove unreachable nodes before
19577 inlining functions called once; simplify the pass.
19578 (cgraph_perform_always_inlining): Rename to ...
19579 (inline_always_inline_functions): ... this one; use
19580 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
19581 (cgraph_decide_inlining_incrementally): Rename to ...
19582 (early_inline_small_functions): ... this one; simplify
19583 using new predicates; cleanup; make dumps prettier.
19584 (cgraph_early_inlining): Rename to ...
19585 (early_inliner): newer inline regular functions into always-inlines;
19586 fix updating of call stmt summaries.
19587 (pass_early_inline): Update for new names.
19588 (inline_transform): Fix formating.
19589 (gate_cgraph_decide_inlining): Rename to ...
19590 (pass_ipa_inline): ... this one.
19591 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
19592 * ipa-inline-analysis.c (dump_inline_summary): Update.
19593 (compute_inline_parameters): Do not compute disregard_inline_limits;
19594 look for mismatching arguments.
19595 (estimate_growth): Fix handlig of non-trivial self recursion.
19596 (inline_read_summary): Do not read info->disregard_inline_limits.
19597 (inline_write_summary): Do not write info->disregard_inline_limits.
19598 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
19599 and move all checks into can_inline_edge_p predicate; re-enable code
19600 comparing optimization levels.
19601 (expand_call_inline): Do not test inline_forbidden_into_p.
19602 * Makefile.in (ipa-inline.o): Update arguments.
19604 2011-04-17 Revital Eres <revital.eres@linaro.org>
19606 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
19608 2011-04-17 Revital Eres <revital.eres@linaro.org>
19610 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
19612 2011-04-17 Michael Matz <matz@suse.de>
19614 PR tree-optimization/48622
19616 * ipa-inline-analysis.c (inline_read_summary): Read size/time
19617 in same order as they're written.
19619 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19621 * config/pa/predicates.md: Reorganize and simplify predicates.
19622 Eliminate duplicate code checks.
19623 (arith_operand): Rename to arith14_operand
19624 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
19625 * config/pa/pa.md: Use renamed operands.
19626 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
19627 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
19628 arith11_operand, adddi3_operand, indexed_memory_operand,
19629 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
19630 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
19631 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
19632 move_dest_operand, move_src_operand, prefetch_cc_operand,
19633 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
19634 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
19635 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
19636 div_operand, int5_operand, movb_comparison_operator,
19637 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
19638 arith_double_operand, ireg_operand, lhs_lshift_operand,
19639 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
19640 integer_store_memory_operand): Likewise.
19641 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
19642 (integer_store_memory_operand, read_only_operand,
19643 function_label_operand, borx_reg_operand,
19644 non_hard_reg_operand): Likewise.
19645 (eq_neq_comparison_operator): Delete unused operator.
19646 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
19647 function_label_operand.
19648 (emit_move_sequence): Likewise.
19650 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
19652 * config/i386/sse.md (sseunpackmode): New mode attribute.
19653 (ssepackmode): Ditto.
19654 (vec_pack_trunc_<mode>): Macroize expander from
19655 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
19656 (vec_unpacks_lo_<mode>): Macroize expander from
19657 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19658 (vec_unpacks_hi_<mode>): Macroize expander from
19659 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19660 (vec_unpacku_lo_<mode>): Macroize expander from
19661 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19662 (vec_unpacku_hi_<mode>): Macroize expander from
19663 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19664 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
19665 ix86_expand_sse4_unpack.
19666 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
19668 2011-04-16 Jan Hubicka <jh@suse.cz>
19670 * cgraphbuild.c: Include ipa-inline.h.
19671 (reset_inline_failed): Use initialize_inline_failed.
19672 * cgraph.c: Include ipa-inline.h.
19673 (cgraph_create_node_1): Do not initialize estimated_growth.
19674 (initialize_inline_failed): More to ipa-inline-analysis.c
19675 (dump_cgraph_node): Do not dump inline flags.
19676 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
19677 and disregard_inline_limits flags.
19678 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
19679 time, size, estimated_growth.
19680 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
19682 * cgraphunit.c (cgraph_decide_is_function_needed): Use
19683 DECL_DISREGARD_INLINE_LIMITS.
19684 (cgraph_analyze_function): Do not initialize
19685 node->local.disregard_inline_limits.
19686 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
19687 inlinable, versionable and disregard_inline_limits.
19688 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
19689 cgraph_check_inline_limits, cgraph_default_inline_p,
19690 cgraph_edge_badness, update_caller_keys, update_callee_keys,
19691 add_new_edges_to_heap): Update.
19692 (cgraph_decide_inlining_of_small_function): Update; set
19693 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
19694 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
19695 cgraph_decide_inlining_incrementally): Update.
19696 * ipa-inline.h (inline_summary): Add inlinable, versionable,
19697 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
19698 time, size and estimated_growth parameters.
19699 (estimate_edge_growth): Update.
19700 (initialize_inline_failed): Declare.
19701 * ipa-split.c: Include ipa-inline.h
19702 (execute_split_functions): Update.
19703 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
19704 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
19705 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
19706 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
19707 estimated_growth to INT_MIN.
19708 (inline_node_duplication_hook): Likewise.
19709 (dump_inline_summary): Dump new fields.
19710 (compute_inline_parameters): Update.
19711 (estimate_edge_time, estimate_time_after_inlining,
19712 estimate_size_after_inlining, estimate_growth, inline_read_summary,
19713 inline_write_summary):
19714 (initialize_inline_failed): Move here from cgraph.c.
19715 * tree-sra.c: Include ipa-inline.h.
19716 (ipa_sra_preliminary_function_checks): Update.
19717 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
19720 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
19722 * config/i386/sse.md (V16): New mode iterator.
19724 (AVXMODEQI, AVXMODEDI): Remove.
19725 (sse2, sse3): New mode attribute.
19726 (mov<mode>): Use V16 mode iterator.
19727 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
19728 (push<mode>1): Use V16 mode iterator.
19729 (movmisalign<mode>): Ditto.
19730 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
19731 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
19732 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
19733 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
19734 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
19735 avx_movdqu<avxmodesuffix>.
19736 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
19737 *avx_movdqu<avxmodesuffix>.
19738 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
19739 avx_lddqu<avxmodesuffix>.
19740 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
19741 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
19742 avx_movnt<AVXMODEDI:mode>.
19743 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
19744 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
19746 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
19749 * haifa-sched.c (prune_ready_list, schedule_block): Use
19750 sched_pressure_p rather than flag_sched_pressure.
19752 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
19754 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
19755 cgraph_get_node instead of cgraph_get_create_node.
19757 2011-04-15 Jakub Jelinek <jakub@redhat.com>
19759 * cfgexpand.c (expand_debug_expr): Use
19760 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
19762 2011-04-15 Michael Matz <matz@suse.de>
19764 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
19765 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
19766 * function.c (gimplify_parameters): Ditto.
19767 * gimplify.c (gimplify_vla_decl): Ditto.
19769 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
19770 (gimple_call_set_alloca_for_var): New inline function.
19771 (gimple_call_alloca_for_var_p): Ditto.
19772 * gimple.c (gimple_build_call_from_tree): Remember
19773 CALL_ALLOCA_FOR_VAR_P state.
19774 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
19776 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
19777 calls if they were for VLA objects.
19779 2011-04-15 Martin Jambor <mjambor@suse.cz>
19781 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
19784 2011-04-15 Martin Jambor <mjambor@suse.cz>
19786 PR middle-end/48601
19787 * tree-emutls.c (lower_emutls_function_body): Call
19788 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
19789 result is non-NULL.
19791 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
19793 * c-decl.c (detect_field_duplicates): Call
19794 objc_detect_field_duplicates instead of objc_get_interface_ivars.
19796 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
19798 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
19799 * gimple.c (gimple_asm_clobbers_memory_p): Define.
19800 * ipa-pure-const.c (check_stmt): Call it.
19801 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
19803 2011-04-15 Richard Guenther <rguenther@suse.de>
19805 PR tree-optimization/48290
19806 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
19807 Properly decide inhibiting propagation based on the valueized
19808 operand. Do loop-closed SSA form preserving here ...
19809 (init_copy_prop): ... not here.
19811 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
19814 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
19815 (*ieee_smax<mode>3): Likewise.
19817 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19819 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
19820 Replace match_operand with match_dup for the third operand in
19823 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
19825 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
19826 to track processing of conditionals. Update all callers.
19827 (try_combine, simplify_if_then_else): Update.
19829 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
19831 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
19834 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
19836 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
19837 instead of match_operand for operand 3.
19839 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
19841 * recog.h (insn_operand_data): Add an "allows_mem" field.
19842 * genoutput.c (output_operand_data): Initialize it.
19843 * optabs.c (maybe_legitimize_operand_same_code): New function.
19844 (maybe_legitimize_operand): Use it when matching the original
19847 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
19849 * gimplify.c: Fix issues in comments throughout.
19850 (voidify_wrapper_expr): Fix long line.
19851 (build_stack_save_restore): Likewise.
19852 (gimplify_loop_expr): Likewise.
19853 (gimplify_compound_lval): Likewise.
19854 (gimplify_init_ctor_eval): Likewise.
19855 (gimplify_modify_expr_rhs): Likewise.
19856 (omp_notice_threadprivate_variable): Likewise.
19858 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
19860 * cfgexpand.c (expand_call_stmt): Convert the function type to the
19861 original one if this is not a builtin function.
19863 2011-04-14 Jakub Jelinek <jakub@redhat.com>
19866 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
19867 offset it as needed based on top 2 bits in operands[3], change
19868 MEM mode to SFmode and mask those 2 bits away from operands[3].
19870 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
19872 * c-parser.c (c_parser_objc_protocol_definition): Updated for
19873 change from objc_declare_protocols() to objc_declare_protocol().
19875 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
19877 * config/i386/sse.md (sse4_1): New mode attribute.
19878 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
19879 avx_blend<ssemodesuffix><avxmodesuffix> and
19880 sse4_1_blend<ssemodesuffix> using VF mode iterator.
19881 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
19882 avx_blendv<ssemodesuffix><avxmodesuffix> and
19883 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
19884 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
19885 avx_dp<ssemodesuffix><avxmodesuffix> and
19886 sse4_1_dp<ssemodesuffix> using VF mode iterator.
19887 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
19888 (sse4_1_packusdw): Merge with *avx_packusdw.
19889 (sse4_1_pblendvb): Merge with *avx_pblendvb.
19890 (sse4_1_pblendw): Merge with *avx_pblendw.
19891 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
19892 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
19893 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
19895 (sse4_1_round<ssescalarmodesuffix>): Merge with
19896 *avx_round<ssescalarmodesuffix>.
19897 (aesenc): Merge with *avx_aesenc.
19898 (aesenclast): Merge with *avx_aesenclast.
19899 (aesdec): Merge with *avx_aesdec.
19900 (aesdeclast): Merge with *avx_aesdeclast.
19901 (pclmulqdq): Merge with *pclmulqdq.
19902 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
19904 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
19906 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
19908 PR middle-end/48608
19909 * cfgexpand.c (get_decl_align_unit): Renamed to ...
19910 (align_local_variable): This. Update DECL_ALIGN.
19911 (add_stack_var): Updated.
19912 (expand_one_stack_var): Likewise.
19914 2011-04-14 Richard Guenther <rguenther@suse.de>
19916 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
19918 (dse_initialize_block_local_data, dse_leave_block,
19919 record_voperand_set, get_stmt_uid): Likewise.
19920 (dse_possible_dead_store_p): Allow any kind of killing stmt.
19921 (dse_optimize_stmt): Remove voperand set handling code.
19922 Simplify and improve to handle any kind of killing stmt.
19923 (dse_record_phi): Remove.
19924 (dse_enter_block): Simplify.
19925 (tree_ssa_dse): Likewise.
19926 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
19928 2011-04-14 Jan Hubicka <jh@suse.cz>
19930 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
19931 * cgraph.h (struct inline_summary): Move to ipa-inline.h
19932 (cgraph_local_info): Remove inline_summary.
19933 * ipa-cp.c: Include ipa-inline.h.
19934 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
19935 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
19937 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
19938 (input_overwrite_node): Do not set inline summary.
19939 (input_node): Do not stream inline summary.
19940 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
19941 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
19942 growth; we do not have inline parameters computed for that anyway.
19943 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
19944 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
19945 (inline_summary_t): New type and VECtor.
19946 (debug_inline_summary, dump_inline_summaries): Declare.
19947 (inline_summary): Use VOCtor.
19948 (estimate_edge_growth): Kill hack computing call stmt size directly.
19949 * lto-section-in.c (lto_section_name): Add inline section.
19950 * ipa-inline-analysis.c: Include lto-streamer.h
19951 (node_removal_hook_holder, node_duplication_hook_holder): New holders
19952 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
19953 (inline_summary_vec): Define.
19954 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
19955 dump_inline_summaries): New functions.
19956 (estimate_function_body_sizes): Properly compute size/time of outgoing
19958 (compute_inline_parameters): Alloc inline_summary; do not compute
19959 size/time of incomming calls.
19960 (estimate_edge_time): Avoid missing time summary hack.
19961 (inline_read_summary): Read inline summary info.
19962 (inline_write_summary): Write inline summary info.
19963 (inline_free_summary): Free all hooks and inline summary vector.
19964 * lto-streamer.h: Add LTO_section_inline_summary section.
19965 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
19966 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
19968 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
19970 * tree-vectorizer.h (vect_strided_store_supported): Add a
19971 HOST_WIDE_INT argument.
19972 (vect_strided_load_supported): Likewise.
19973 (vect_permute_store_chain): Return void.
19974 (vect_transform_strided_load): Likewise.
19975 (vect_permute_load_chain): Delete.
19976 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
19977 count argument. Check that the count is a power of two.
19978 (vect_strided_load_supported): Likewise.
19979 (vect_permute_store_chain): Return void. Update after above changes.
19980 Assert that the access is supported.
19981 (vect_permute_load_chain): Likewise.
19982 (vect_transform_strided_load): Return void.
19983 * tree-vect-stmts.c (vectorizable_store): Update calls after
19984 above interface changes.
19985 (vectorizable_load): Likewise.
19986 (vect_analyze_stmt): Don't check for strided powers of two here.
19988 2011-04-14 Richard Guenther <rguenther@suse.de>
19990 PR tree-optimization/48590
19991 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
19992 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
19993 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
19994 BUILT_IN_STACK_SAVE.
19995 * tree-ssa-dce.c (propagate_necessity): Handle
19996 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
19998 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
20000 * c-parser.c (c_parser_objc_class_declaration): Updated call to
20001 objc_declare_class.
20003 2011-04-14 Richard Guenther <rguenther@suse.de>
20005 * tree.h (get_object_alignment_1): Declare.
20006 * builtins.c (get_object_alignment_1): Split out worker from ...
20007 (get_object_alignment): ... here.
20008 * fold-const.c (get_pointer_modulus_and_residue): Use
20009 get_object_alignment_1.
20011 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
20013 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
20015 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
20016 parameter. Generalise code to handle arrays as well as vectors.
20017 (vect_setup_realignment): Update accordingly.
20018 * tree-vect-stmts.c (vectorizable_store): Likewise.
20019 (vectorizable_load): Likewise.
20021 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
20023 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
20024 within the per-copy loop.
20026 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
20028 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
20031 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
20033 * doc/options.texi (Negative): Explicitly mention that the
20034 Negative chain must be circular.
20036 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
20038 * function.h (block_chainon): Declare.
20039 * function.c (block_chainon): Define.
20041 2011-04-14 Anatoly Sokolov <aesok@post.ru>
20042 Eric Weddington <eric.weddington@atmel.com>
20043 Georg-Johann Lay <avr@gjlay.de>
20045 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
20047 (avr_init_builtins, avr_expand_builtin,
20048 avr_expand_delay_cycles, avr_expand_unop_builtin,
20049 avr_expand_binop_builtin ): New functions.
20050 (avr_builtin_id): New enum
20051 (struct avr_builtin_description): New struct
20052 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
20053 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
20055 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
20056 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
20057 UNSPECV_DELAY_CYCLES): new enumeration values
20058 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
20059 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
20060 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
20061 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
20062 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
20063 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
20064 "fmulsu"): New insns
20066 * config/avr/avr-c.c: fix line endings
20067 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
20068 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
20069 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
20070 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
20071 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
20073 * doc/extend.texi (AVR Built-in Functions): New node
20074 (Target Builtins): Add documentation of AVR
20075 built-in functions.
20077 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
20080 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
20081 alone. Error if non-const data has attribute progmem.
20083 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
20085 * tree.h (struct tree_constructor): Include tree_typed instead of
20087 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
20088 TS_TYPED instead of TS_COMMON.
20090 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
20092 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
20093 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
20094 (sse2_psadbw): Merge with *avx_psadbw.
20095 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
20096 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
20097 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
20098 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
20099 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
20100 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
20101 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
20102 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
20103 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
20104 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
20105 (ssse3_palignrti): Merge with *avx_palignrti.
20107 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
20109 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
20110 * tree-ssanames.c (fini_ssanames): VEC_free it.
20111 (make_ssa_name_fn): Update for VECness of free_ssanames.
20112 (release_ssa_name, release_dead_ssa_names): Likewise.
20113 * tree.h (struct tree_ssa_name): Include tree_typed instead of
20115 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
20116 TS_TYPED instead of TS_COMMON.
20118 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
20120 * postreload-gcse.c (gcse_after_reload_main): Add calls to
20121 statistics_counter_event.
20122 * tree-ssa-copyrename.c (stats): Define.
20123 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
20124 statistics_counter_event.
20125 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
20126 (bswap_stats, widen_mul_stats): Define.
20127 (insert_reciprocals): Increment rdivs_inserted.
20128 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
20129 rfuncs_inserted. Add calls to statistics_counter_event.
20130 (execute_cse_sincos_1): Increment inserted.
20131 (execute_cse_sincos): Zeroize sincos_stats. Add call to
20132 statistics_counter_event.
20133 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
20134 of bswap_stats. Add calls to statistics_counter_event.
20135 (convert_mult_to_widen): Increment widen_mults_inserted.
20136 (convert_plusminus_to_widen): Increment maccs_inserted.
20137 (convert_mult_to_fma): Increment fmas_inserted.
20138 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
20139 calls to statistics_counter_event.
20141 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
20143 PR rtl-optimization/48455
20144 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
20145 `temp_costs->mem_cost'.
20147 2011-04-13 Jan Hubicka <jh@suse.cz>
20149 * ipa-inline.h: New file.
20150 * ipa-inline-analysis.c: New file. Broken out of ...
20151 * ipa-inline.c: ... this file; update toplevel comment;
20152 include ipa-inline.h
20153 (inline_summary): Move to ipa-inline.h
20154 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
20155 ipa-inline-analysis.c.
20156 (cgraph_estimate_time_after_inlining): Rename to
20157 estiamte_time_after_inlining; move to ipa-inline-analysis.c
20158 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
20159 to estimate_edge_growth.
20160 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
20161 rename to estimate_size_after_inlining.
20162 (cgraph_mark_inline_edge): Update for new naming convention.
20163 (cgraph_check_inline_limits): Likewise.
20164 (cgraph_edge_badness): Likewise.
20165 (cgraph_decide_recursive_inlining): Likewise.
20166 (cgraph_decide_inlining_of_small_functions): Likewise.
20167 (cgraph_decide_inlining_incrementally): Likewise.
20168 (cgraph_estimate_growth): Rename to estimate_growth; move to
20169 ipa-inline-analysis.c.
20170 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
20171 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
20172 (compute_inline_parameters): Likewise.
20173 (compute_inline_parameters_for_current): Likewise.
20174 (pass_inline_parameters): Likewise.
20175 (inline_indirect_intraprocedural_analysis): Likewise.
20176 (analyze_function): Rename to inline_analyze_function; likewise.
20177 (add_new_function): Move to ipa-inline-analysis.c.
20178 (inline_generate_summary): Likewise.
20179 (inline_read_summary): Likewise.
20180 (inline_write_summary): Likewise.
20181 * Makefile.in (ipa-inline-analysis.c): New file.
20183 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20185 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
20186 * configure: Regenerate.
20188 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
20190 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
20191 instead of tree_common.
20192 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
20194 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
20195 TS_TYPED rather than TS_COMMON.
20196 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
20198 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
20201 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
20202 r20 around calls of __tablejump_elpm__
20204 2011-04-13 Jakub Jelinek <jakub@redhat.com>
20206 PR middle-end/48591
20207 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
20209 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
20211 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
20213 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
20214 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
20215 (cfi_vec): New typedef.
20216 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
20217 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
20218 (cie_cfi_vec): New static variable.
20219 (cie_cfi_head): Delete.
20220 (add_cfi): Accept a cfi_vec * as first argument. All callers and
20221 declaration changed. Use vector rather than list operations.
20222 (new_cfi): Don't initialize the dw_cfi_next field.
20223 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
20224 rather than list operations.
20225 (lookup_cfa): Use vector rather than list operations.
20226 (output_cfis): New argument upto. Accept a cfi_vec rather than
20227 a dw_cfi_ref list head as argument. All callers changed.
20228 Iterate over the vector using upto as a maximum index.
20229 (output_all_cfis): New static function.
20230 (output_fde): Use vector rather than list operations. Use the
20231 new upto argument for output_cfis rather than manipulating a
20233 (dwarf2out_begin_prologue): Change initializations to match
20234 new struct members.
20235 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
20236 from the vector length rather than searching for the end of a list.
20237 Use output_all_cfis.
20238 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
20240 2011-04-13 Nick Clifton <nickc@redhat.com>
20242 * config/rx/rx.md (movmemsi): Do not use this pattern when
20243 volatile pointers are involved.
20245 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
20247 * config/i386/sse.md (pinsrbits): Remove.
20248 (sse2_packsswb): Merge with *avx_packsswb.
20249 (sse2_packssdw): Merge with *avx_packssdw.
20250 (sse2_packuswb): Merge with *avx_packuswb.
20251 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
20252 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
20253 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
20254 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
20255 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
20256 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
20257 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
20258 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
20259 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
20260 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
20261 (sse2_loadld): Merge with *avx_loadld.
20262 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
20263 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
20264 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
20265 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
20266 (vec_concatv2di): Merge with *vec_concatv2di_avx.
20268 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
20270 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
20271 calling TREE_CHAIN.
20272 * print-tree.c (print_node): Likewise.
20273 * tree-inline.c (copy_tree_r): Likewise.
20274 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
20275 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
20276 instead of TS_COMMON.
20277 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
20278 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
20279 (copy_node_stat): Zero TREE_CHAIN only if necessary.
20280 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
20281 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
20283 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
20285 (TREE_CHAIN): Check for a TS_COMMON structure.
20286 (TREE_TYPE): Check for a TS_TYPED structure.
20288 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
20290 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
20291 cgraph_get_create_node instead of cgraph_node.
20293 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
20295 * c-parser.c (c_parser_initelt): Updated call to
20296 objc_build_message_expr.
20297 (c_parser_postfix_expression): Likewise.
20299 2011-04-12 Kai Tietz <ktietz@redhat.com>
20301 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
20302 MASK_MS_BITFIELD_LAYOUT bit.
20304 2011-04-12 Jakub Jelinek <jakub@redhat.com>
20306 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
20307 assert it is always true.
20308 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
20311 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
20313 * c-parser.c (c_lex_one_token): Rewritten conditional used when
20314 compiling Objective-C to be more efficient.
20316 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
20318 * opts-common.c (decode_cmdline_options_to_array): Remove variable
20321 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
20323 * recog.h, genoutput.c, optabs.c: Revert last patch.
20325 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20328 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
20330 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
20332 * recog.h (insn_operand_data): Add an "allows_mem" field.
20333 * genoutput.c (output_operand_data): Initialize it.
20334 * optabs.c (maybe_legitimize_operand_same_code): New function.
20335 (maybe_legitimize_operand): Use it when matching the original
20338 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
20340 * genpreds.c (process_define_predicate): Move most processing
20341 to gensupport.c. Continue to validate the expression.
20342 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
20343 (process_define_predicate): Move processing to gensupport.c.
20344 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
20345 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
20346 (compute_predicate_codes): Moved from genrecog.c. Add lineno
20348 (valid_predicate_name_p): New function, split out from old
20349 genpreds.c:process_define_predicate.
20350 (process_define_predicate): New function, combining code from
20351 old genpreds.c and genrecog.c functions.
20352 (process_rtx): Call it for DEFINE_PREDICATE and
20353 DEFINE_SPECIAL_PREDICATE.
20355 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
20357 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
20358 size of a '%A' memory reference.
20359 (T_DREG, T_QREG): New neon_builtin_type_bits.
20360 (arm_init_neon_builtins): Assert that the load and store operands
20361 are neon_struct_operands.
20362 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
20363 (NEON_ARG_MEMORY): New builtin_arg.
20364 (neon_dereference_pointer): New function.
20365 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
20366 Handle NEON_ARG_MEMORY.
20367 (arm_expand_neon_builtin): Update after above interface changes.
20368 Use NEON_ARG_MEMORY for loads and stores.
20369 * config/arm/predicates.md (neon_struct_operand): New predicate.
20370 * config/arm/iterators.md (V_two_elem): Tweak formatting.
20371 (V_three_elem): Use BLKmode for accesses that have no associated mode.
20372 (V_four_elem): Tweak formatting.
20373 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
20374 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
20375 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
20376 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
20377 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
20378 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
20379 (neon_vst4<mode>): Replace pointer operand with a memory operand.
20380 Use %A in the output template.
20381 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
20382 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
20383 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
20384 the width of the memory access. Remove post-increment.
20385 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
20387 2011-04-12 Nick Clifton <nickc@redhat.com>
20389 * config/v850/v850.c (expand_prologue): Do not use the CALLT
20390 instruction for interrupt handlers if the target is the basic V850
20392 (expand_epilogue): Likewise.
20394 2011-04-12 Jakub Jelinek <jakub@redhat.com>
20396 PR rtl-optimization/48549
20397 * combine.c (propagate_for_debug): Also stop after BB_END of
20398 this_basic_block. Process LAST and just stop processing after it.
20399 (combine_instructions): If last_combined_insn has been deleted,
20400 set last_combined_insn to its PREV_INSN.
20402 2011-04-12 Richard Guenther <rguenther@suse.de>
20404 PR tree-optimization/46076
20405 * gimple.h (struct gimple_statement_call): Add fntype field.
20406 (gimple_call_fntype): Adjust.
20407 (gimple_call_set_fntype): New function.
20408 * gimple.c (gimple_build_call_1): Set the call function type.
20409 * gimplify.c (gimplify_call_expr): Preserve the function
20410 type the frontend used for the call.
20411 (gimplify_modify_expr): Likewise.
20412 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
20414 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
20416 * tree-ssa.c (useless_type_conversion_p): Function pointer
20417 conversions are useless.
20419 2011-04-12 Martin Jambor <mjambor@suse.cz>
20421 * cgraph.h (cgraph_node): Remove function declaration.
20422 (cgraph_create_node): Declare.
20423 (cgraph_get_create_node): Likewise.
20424 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
20425 Updated all callers.
20426 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
20427 the decl does not already exist. Call cgraph_get_create_node instead
20429 (cgraph_get_create_node): New function.
20430 (cgraph_same_body_alias): Update comment.
20431 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
20432 assert it does not return NULL.
20433 (cgraph_update_edges_for_call_stmt): Likewise.
20434 (cgraph_clone_edge): Likewise.
20435 (cgraph_create_virtual_clone): Likewise.
20436 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
20437 instead of cgraph_node.
20438 (cgraph_add_new_function): Call cgraph_create_node or
20439 cgraph_get_create_node instead of cgraph_node.
20440 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
20441 instead of cgraph_node.
20442 (record_eh_tables): Likewise.
20443 (mark_address): Likewise.
20444 (mark_load): Likewise.
20445 (build_cgraph_edges): Call cgraph_get_create_node instead
20447 (rebuild_cgraph_edges): Likewise.
20448 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
20449 instead of cgraph_node.
20450 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
20452 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
20453 cgraph_create_node instead of cgraph_node.
20454 * c-decl.c (finish_function): Call cgraph_get_create_node instead
20456 * lto-cgraph.c (input_node): Likewise.
20457 * lto-streamer-in.c (input_function): Likewise.
20458 * varasm.c (mark_decl_referenced): Likewise.
20459 (assemble_alias): Likewise.
20461 2011-04-12 Martin Jambor <mjambor@suse.cz>
20463 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
20464 instead of cgraph_node and assert it does not return NULL.
20465 * lto-streamer-in.c (lto_read_body): Likewise.
20466 * omp-low.c (new_omp_context): Likewise.
20467 (create_task_copyfn): Likewise.
20468 * tree-emutls.c (lower_emutls_function_body): Likewise.
20469 * matrix-reorg.c (transform_allocation_sites): Likewise.
20471 2011-04-12 Jakub Jelinek <jakub@redhat.com>
20474 * c-typeck.c (build_asm_expr): Error out on attempts to use
20475 void type outputs or inputs for constraints that allow reg or
20476 don't allow memory.
20478 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
20479 Richard Earnshaw <rearnsha@arm.com>
20482 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
20483 to use sign-magnitude offsets. Reject unsupported unaligned
20484 cases. Add detailed description in comments.
20485 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
20486 condition from TARGET_32BIT to TARGET_ARM.
20488 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
20490 * tree.h (struct typed_tree): New.
20491 (struct tree_common): Include it instead of tree_base.
20492 (TREE_TYPE): Update for new location of type field.
20493 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
20494 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
20495 (union tree_node): Add typed field.
20496 * treestruct.def (TS_TYPED): New.
20497 * lto-streamer.c (check_handled_ts_structures): Handle it.
20498 * tree.c (MARK_TS_TYPED): New macro.
20499 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
20501 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
20503 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
20504 (force_nonfallthru): Do not alter the loop nest if no basic block
20507 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
20509 * config/i386/sse.md (VI): New mode iterator.
20510 (SSEMODEI): Remove.
20511 (AVX256MODEI): Ditto.
20512 (AVXMODEF4P): Ditto.
20513 (avxvecpsmode): Ditto.
20514 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
20515 (sse2_andnot<mode>3): New expander.
20516 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
20517 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
20518 (<any_logic:code><mode>3): Use VI mode iterator.
20519 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
20520 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
20521 (*andnottf3): Handle AVX three-operand constraints.
20522 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
20524 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20525 Robert Millan <rmh@gnu.org>
20527 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
20528 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
20529 GNU_USER_DYNAMIC_LINKER64): Define.
20530 (REG_NAME): Don't undefine.
20531 (MD_UNWIND_SUPPORT): Undefine.
20532 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
20533 (REG_NAME): Don't undefine.
20534 (MD_UNWIND_SUPPORT): Undefine.
20535 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
20537 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20539 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
20540 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
20542 2011-04-11 Xinliang David Li <davidxl@google.com>
20544 * value-profile.c (check_ic_target): New function.
20545 (gimple_ic_transform): Sanity check indirect call target.
20546 * gimple-low.c (gimple_check_call_args): Interface change.
20547 (gimple_check_call_matching_types): New function.
20548 * tree-inline.c (tree_can_inline_p): Call new function.
20550 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
20552 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
20553 tree-pretty-print.h & realmpfr.h.
20555 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
20557 PR middle-end/48464
20558 * ira.c (setup_pressure_classes): Fix typo in loop condition.
20559 (setup_allocno_and_important_classes): Ditto.
20561 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20563 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
20564 GNU_USER_DYNAMIC_LINKER.
20565 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
20566 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20567 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
20568 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20569 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20570 GNU_USER_TARGET_OS_CPP_BUILTINS.
20571 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
20572 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20573 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20574 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20575 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
20576 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20577 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20578 GNU_USER_TARGET_OS_CPP_BUILTINS.
20579 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20580 GNU_USER_DYNAMIC_LINKER.
20581 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20582 GNU_USER_TARGET_OS_CPP_BUILTINS.
20583 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
20584 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20585 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
20586 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20587 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
20588 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
20589 GNU_USER_DYNAMIC_LINKER64): Remove.
20590 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
20591 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20592 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20593 GNU_USER_DYNAMIC_LINKER.
20594 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20595 GNU_USER_TARGET_OS_CPP_BUILTINS.
20596 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20597 GNU_USER_TARGET_OS_CPP_BUILTINS.
20598 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
20599 to GNU_USER_TARGET_OS_CPP_BUILTINS.
20600 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20601 GNU_USER_TARGET_OS_CPP_BUILTINS.
20602 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
20603 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
20604 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
20605 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
20606 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20607 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20608 GNU_USER_DYNAMIC_LINKER.
20609 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20610 GNU_USER_TARGET_OS_CPP_BUILTINS.
20611 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
20612 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20613 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20614 GNU_USER_DYNAMIC_LINKER.
20615 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20616 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20617 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
20618 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20619 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20620 GNU_USER_DYNAMIC_LINKER.
20621 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
20622 GNU_USER_DYNAMIC_LINKERN32.
20623 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
20624 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
20625 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
20626 GNU_USER_DYNAMIC_LINKER32.
20627 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
20628 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20629 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20630 GNU_USER_DYNAMIC_LINKER.
20631 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20632 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20633 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
20634 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20635 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20636 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
20637 GNU_USER_DYNAMIC_LINKER32.
20638 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
20639 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
20640 GNU_USER_DYNAMIC_LINKER.
20641 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
20642 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20643 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
20644 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
20645 GNU_USER_DYNAMIC_LINKER64.
20646 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
20647 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20648 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20649 GNU_USER_DYNAMIC_LINKER.
20650 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
20651 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20652 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20653 GNU_USER_DYNAMIC_LINKER.
20654 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
20655 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20656 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
20657 GNU_USER_DYNAMIC_LINKER32.
20658 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
20659 GNU_USER_DYNAMIC_LINKER64.
20660 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
20661 GNU_USER_DYNAMIC_LINKER64.
20662 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
20663 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20664 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
20665 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20666 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20668 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20670 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
20671 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
20672 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
20673 GNU_USER_DYNAMIC_LINKER.
20674 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
20675 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
20676 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
20677 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
20678 GNU_USER_DYNAMIC_LINKER64.
20679 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
20680 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
20681 GNU_USER_LINK_EMULATION.
20682 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
20683 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
20684 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
20685 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
20686 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
20687 CPP_SPEC, CC1_SPEC): Remove.
20688 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
20689 (GNU_USER_DYNAMIC_LINKER): Define.
20690 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
20691 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
20692 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
20693 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
20694 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
20695 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
20696 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
20697 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
20698 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
20699 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
20700 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
20701 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
20702 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
20703 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
20704 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
20705 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
20706 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20707 GNU_USER_DYNAMIC_LINKER.
20708 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20709 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
20710 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20711 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
20712 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20713 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
20714 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
20715 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
20716 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
20717 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
20719 2011-04-11 Kai Tietz <ktietz@redhat.com>
20723 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
20724 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
20726 (ix86_is_msabi_thiscall): Removed.
20727 (ix86_is_type_thiscall): Likewise.
20728 (ix86_get_callcvt): New function.
20729 (ix86_comp_type_attributes): Simplify check.
20730 (ix86_function_regparm): Use ix86_get_callcvt for calling
20731 convention attribute checks.
20732 (ix86_return_pops_args): Likewise.
20733 (ix86_static_chain): Likewise.
20734 (x86_this_parameter): Likewise.
20735 (x86_output_mi_thunk): Likewise.
20736 (ix86_function_type_abi): Optimize check for types without attributes.
20737 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
20738 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
20739 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
20741 (IX86_BASE_CALLCVT): Helper macro.
20742 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
20743 Use ix86_get_callcvt for calling convention attribute checks and avoid
20744 symbol-decoration for stdcall in TARGET_RTD case.
20745 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
20747 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
20750 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
20752 * config/i386/sse.md (VI_128): New mode iterator.
20753 (VI12_128): Rename from SSEMODE12.
20754 (VI14_128): Rename from SSEMODE14.
20755 (VI124_128): New mode iterator.
20756 (VI24_128): Rename from SSEMODE248.
20757 (VI248_128): Rename from SSEMODE248.
20758 (SSEMODE124C8): Remove.
20759 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
20760 (*sse2_<plusminus_insn><mode>3): Merge with
20761 *avx_<plusminus_insn><mode>3.
20762 (*mulv8hi3): Merge with *avx_mulv8hi3.
20763 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
20764 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
20765 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
20766 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
20767 (ashr<mode>3): Merge with *avx_ashr<mode>3.
20768 (lshr<mode>3): Merge with *avx_lshr<mode>3.
20769 (ashl<mode>3): Merge with *avx_ashl<mode>3.
20770 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
20771 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
20772 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
20773 (*<smaxmin:code>v8hi3): Ditto.
20774 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
20775 (*<smaxmin:code>v16qi3): Ditto.
20776 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
20777 (*sse2_eq<mode>3): Ditto.
20778 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
20779 (*sse2_gt<mode>3): Ditto.
20780 (vcondv2di): Split out of vcond<mode>.
20781 (vconduv2di): Split out of vcondu<mode>.
20783 2011-04-11 Richard Guenther <rguenther@suse.de>
20785 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
20786 before calling tree_low_cst.
20788 2011-04-11 Richard Guenther <rguenther@suse.de>
20790 * stor-layout.c (layout_type): Compute all array index size operations
20791 in the original type.
20792 (initialize_sizetypes): Add comment.
20793 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
20795 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20797 * common.opt (Tbss=, Tdata=, Ttext=): New options.
20799 2011-04-11 Martin Jambor <mjambor@suse.cz>
20801 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
20802 of cgraph_node, handle NULL return value.
20803 (cgraph_global_info): Likewise.
20804 (cgraph_rtl_info): Likewise.
20805 * tree-inline.c (estimate_num_insns): Likewise.
20806 * gimplify.c (unshare_body): Likewise.
20807 (unvisit_body): Likewise.
20808 (gimplify_body): Likewise.
20809 * predict.c (optimize_function_for_size_p): Likewise.
20810 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
20811 (call_may_clobber_ref_p_1): Likewise.
20812 * varasm.c (function_section_1): Likewise.
20813 (assemble_start_function): Likewise.
20815 2011-04-11 Martin Jambor <mjambor@suse.cz>
20817 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
20819 * final.c (rest_of_clean_state): Likewise.
20820 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
20821 * passes.c (pass_init_dump_file): Likewise.
20822 (execute_all_ipa_transforms): Likewise.
20823 (function_called_by_processed_nodes_p): Likewise.
20824 * predict.c (maybe_hot_frequency_p): Likewise.
20825 (probably_never_executed_bb_p): Likewise.
20826 (compute_function_frequency): Likewise.
20827 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
20828 (unnest_nesting_tree_1): Likewise.
20829 (lower_nested_functions): Likewise.
20830 * tree-optimize.c (execute_fixup_cfg): Likewise.
20831 (tree_rest_of_compilation): Likewise.
20832 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
20833 * tree-sra.c (ipa_early_sra): Likewise.
20834 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
20835 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
20836 * ipa.c (record_cdtor_fn): Likewise.
20837 * ipa-inline.c (cgraph_early_inlining): Likewise.
20838 (compute_inline_parameters_for_current): Likewise.
20839 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
20840 * ipa-pure-const.c (local_pure_const): Likewise.
20841 * ipa-split.c (split_function): Likewise.
20842 (execute_split_functions): Likewise.
20843 * cgraphbuild.c (build_cgraph_edges): Likewise.
20844 (rebuild_cgraph_edges): Likewise.
20845 (cgraph_rebuild_references): Likewise.
20846 (remove_cgraph_callee_edges): Likewise.
20847 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
20848 (verify_cgraph_node): Likewise.
20849 (cgraph_analyze_functions): Likewise.
20850 (cgraph_preserve_function_body_p): Likewise.
20851 (save_inline_function_body): Likewise.
20852 (save_inline_function_body): Likewise.
20853 * tree-inline.c (copy_bb): Likewise.
20854 (optimize_inline_calls): Likewise.
20856 2011-04-11 Martin Jambor <mjambor@suse.cz>
20858 PR tree-optimization/48195
20859 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
20860 ipa_check_create_edge_args.
20861 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
20862 ipa_check_create_edge_args.
20863 * ipa-inline.c (inline_generate_summary): Do not call
20864 ipa_check_create_node_params and ipa_check_create_edge_args.
20865 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
20866 ipa_check_create_edge_args.
20868 2011-04-09 Anatoly Sokolov <aesok@post.ru>
20870 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
20872 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
20873 * function.c (record_hard_reg_sets): Likewise.
20874 * ira.c (compute_regs_asm_clobbered): Likewise.
20875 * sched-deps.c (sched_analyze_1): Likewise.
20876 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
20878 2011-04-09 Xinliang David Li <davidxl@google.com>
20880 PR tree-optimization/PR48484
20881 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
20882 has_valid_pred lazily
20884 2011-04-09 Duncan Sands <baldrick@free.fr>
20886 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
20888 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
20890 * combine.c (combine_validate_cost): Adjust comments. Set registered
20891 cost of I0 to zero at the end, if any.
20893 2011-04-08 Xinliang David Li <davidxl@google.com>
20895 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
20896 to insane profile data.
20898 2011-04-08 Xinliang David Li <davidxl@google.com>
20900 * ipa-cp.c (ipcp_update_profiling): Correct
20901 negative scale factor due to insane profile data.
20903 2011-04-08 Xinliang David Li <davidxl@google.com>
20905 * final.c (dump_basic_block_info): New function.
20906 (final): Dump basic block.
20907 (final_scan_insn): Remove old dump.
20909 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
20912 * config.gcc (i386-*-freebsd): Disable unwind table generation for
20915 2011-04-08 Michael Matz <matz@suse.de>
20917 PR middle-end/48389
20918 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
20920 (rebuild_jump_labels): Call rebuild_jump_labels_1.
20921 * rtl.h (rebuild_jump_labels_chain): Declare.
20922 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
20923 insns inserted on edges.
20925 2011-04-08 Joseph Myers <joseph@codesourcery.com>
20927 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
20928 * config/arm/arm-arches.def: New.
20929 * config/arm/arm-opts.h: New.
20930 * config/arm/genopt.sh: New.
20931 * config/arm/arm-tables.opt: New (generated).
20932 * config/arm/arm.c (arm_handle_option, arm_target_help,
20933 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
20934 (all_architectures): Get most table contents from arm-arches.def.
20935 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
20936 arm_selected_tune here.
20937 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
20938 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
20939 (march=, mcpu=, mtune=): Use Enum and Var.
20940 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
20941 (arm.o): Update dependencies.
20943 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
20945 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
20947 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
20948 (write_typed_alloc_defns): Likewise.
20949 (main): Calls write_typed_alloc_defns with output_header.
20951 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
20953 PR inline-asm/48435
20954 * ira-color.c (setup_profitable_hard_regs): Add comments.
20955 Don't take prohibited hard regs into account.
20956 (setup_conflict_profitable_regs): Rename to
20957 get_conflict_profitable_regs.
20958 (check_hard_reg_p): Check prohibited hard regs.
20960 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
20962 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
20963 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
20964 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
20966 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20969 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
20970 move from floating point to shift amount register.
20971 (emit_move_sequence): Remove secondary reload support for floating
20972 point to shift amount amount register copies.
20973 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
20974 amount register copies.
20975 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
20976 register, return false if mode isn't a scalar integer mode.
20977 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
20979 2011-04-08 Richard Guenther <rguenther@suse.de>
20981 * gimple.c (gimple_call_flags): Remove kludge.
20983 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
20985 * sel-sched.c (sel_region_init): Move call to
20986 sel_setup_region_sched_flags after setup_current_loop_nest.
20988 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
20990 PR rtl-optimization/48272
20991 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
20992 init_insn_reg_pressure_info. Adjust a caller.
20993 * sched-int.h (init_insn_reg_pressure_info): Declare.
20994 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
20995 when sched-pressure is enabled.
20997 2011-04-08 Richard Guenther <rguenther@suse.de>
20999 * gimple.c (gimple_set_modified): Do not queue calls to
21000 MODIFIED_NORETURN_CALLS here ...
21001 * tree-ssa-operands.c (update_stmt_operands): ... but here.
21003 2011-04-08 Richard Guenther <rguenther@suse.de>
21006 * toplev.c (lang_dependent_init): Do not open asm_out_file
21007 in WPA mode, nor perform debug machinery initialization.
21008 (finalize): Do not unlink asm_out_file in WPA mode.
21010 2011-04-08 Richard Guenther <rguenther@suse.de>
21012 * gimple.h (gimple_call_fntype): New function.
21013 (gimple_call_return_type): Use it.
21014 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
21015 * gimple-low.c (gimple_check_call_args): Likewise.
21016 * gimple.c (gimple_call_flags): Likewise.
21017 (gimple_call_arg_flags): Likewise.
21018 (gimple_call_return_flags): Likewise.
21019 * tree-cfg.c (verify_gimple_call): Likewise.
21020 (do_warn_unused_result): Likewise.
21021 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
21022 * value-prof.c (gimple_ic_transform): Fix fndecl check.
21024 2011-04-08 Dmitry Melnik <dm@ispras.ru>
21026 PR rtl-optimization/48235
21027 * sel-sched.c (code_motion_process_successors): Recompute the last
21028 insn in basic block if control flow changed.
21029 (code_motion_path_driver): Ditto. Recompute the first insn as well.
21030 Update condition for ilist_remove.
21032 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
21034 PR rtl-optimization/48302
21035 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
21036 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
21037 it to record added preheader blocks.
21038 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
21039 on to sel_add_loop_preheaders.
21040 (sel_region_init): Move call to setup_current_loop_nest after
21043 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
21046 * cfgloop.h (loop_has_exit_edges): New helper.
21047 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
21049 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
21050 that have no exit edges.
21052 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
21054 PR rtl-optimization/48442
21055 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
21056 all callers. Adjust assert.
21058 2011-04-08 Jakub Jelinek <jakub@redhat.com>
21060 PR tree-optimization/48377
21061 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
21062 is_packed to true even for types with smaller TYPE_ALIGN than
21065 2011-04-08 Richard Guenther <rguenther@suse.de>
21068 * doc/tm.texi: Re-generate.
21070 2011-04-08 Wei Guozhi <carrot@google.com>
21073 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
21074 * config/arm/arm.c (arm_attr_length_push_multi): New function.
21075 * config/arm/arm.md (*push_multi): Change the length computation to
21078 2011-04-08 Anatoly Sokolov <aesok@post.ru>
21080 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
21081 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
21082 * doc/tm.texi: Regenerate.
21083 * system.h (ASM_OUTPUT_BSS): Poison.
21084 * varasm.c (asm_output_bss): Remove function.
21085 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
21087 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
21088 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
21089 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
21090 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
21092 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
21094 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
21096 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
21098 2011-04-07 Joseph Myers <joseph@codesourcery.com>
21100 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
21103 2011-04-07 Joseph Myers <joseph@codesourcery.com>
21105 * config/m68k/m68k.c (m68k_handle_option): Don't handle
21106 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
21107 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
21109 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
21110 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
21111 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
21112 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
21113 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
21114 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
21115 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
21116 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
21117 options. Don't map other m68k options manually. Don't handle
21118 old-style options as canonical.
21119 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
21120 * doc/install.texi (m68k-*-*): Document binutils version requirement.
21122 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
21124 * basic-block.h (force_nonfallthru): Move to...
21125 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
21126 (force_nonfallthru): ...here.
21127 * cfghooks.c (force_nonfallthru): New function.
21128 * cfgrtl.c (force_nonfallthru): Rename into...
21129 (rtl_force_nonfallthru): ...this.
21130 (commit_one_edge_insertion): Do not set AUX field.
21131 (commit_edge_insertions): Do not discover new basic blocks.
21132 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
21133 (cfg_layout_rtl_cfg_hooks): Likewise.
21134 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
21135 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
21136 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
21138 2011-04-07 Anatoly Sokolov <aesok@post.ru>
21140 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
21143 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
21145 * config/i386/sse.md: Update copyright year.
21146 (avxcvtvecmode): Remove.
21147 (sse_movhlps): Merge with *avx_movhlps.
21148 (sse_movlhps): Merge with *avx_movlhps.
21149 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
21150 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
21151 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
21152 (sse_loadhps): Merge with *avx_loadhps.
21153 (sse_storelps): Merge with *avx_storelps.
21154 (sse_loadlps): Merge with *avx_loadlps.
21155 (sse_movss): Merge with *avx_movss.
21156 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
21157 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
21158 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
21159 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
21160 (vec_set<mode>_0): Ditto.
21161 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
21162 (sse4_1_insertps): Merge with *avx_insertps.
21163 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
21164 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
21165 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
21166 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
21167 (sse2_storehpd): Merge with *avx_storehpd.
21168 (sse2_loadhpd): Merge with *avx_loadhpd.
21169 (sse2_loadlpd): Merge with *avx_loadlpd.
21170 (sse2_movsd): Merge with *avx_movsd.
21171 (*vec_concatv2df): Merge with *vec_concatv2df.
21173 2011-04-07 Jakub Jelinek <jakub@redhat.com>
21176 * combine.c (combine_instructions): Add last_combined_insn,
21177 update it if insn is after it, pass it to all try_combine calls.
21178 (try_combine): Add last_combined_insn parameter, pass it instead of
21179 i3 to propagate_for_debug.
21181 2011-04-07 Nick Clifton <nickc@redhat.com>
21183 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
21184 to handle MDR <-> data register transfers.
21185 (movhi_internal): Likewise.
21187 2011-04-07 Alan Modra <amodra@gmail.com>
21189 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
21190 previous stack info.
21192 2011-04-07 Tom de Vries <tom@codesourcery.com>
21195 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
21196 flow_find_cross_jump. Swap variables to implement backward replacement.
21197 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
21199 2011-04-07 Tom de Vries <tom@codesourcery.com>
21202 * cfgcleanup.c (walk_to_nondebug_insn): New function.
21203 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
21205 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
21206 src1 or src2. Redirect edges to the last basic block. Update
21207 frequency and count on multiple basic blocks in case of fallthru.
21209 2011-04-07 Tom de Vries <tom@codesourcery.com>
21212 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
21214 (old_insns_match_p): Change return type. Replace return false/true
21215 with return dir_none/dir_both. Use can_replace_by.
21216 (flow_find_cross_jump): Add dir_p parameter. Init replacement
21217 direction from dir_p. Register replacement direction in dir, last_dir
21218 and afterlast_dir. Handle new return type of old_insns_match_p using
21219 merge_dir. Return replacement direction in dir_p.
21220 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
21221 return type of old_insns_match_p.
21222 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
21223 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
21224 flow_find_cross_jump.
21225 * basic-block.h (enum replace_direction): New type.
21226 (flow_find_cross_jump): Add parameter to declaration.
21228 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
21230 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
21231 (AVXMODEDCVTPS2DQ): Ditto.
21232 (VEC_FLOAT_MODE): Ditto.
21233 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
21234 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
21235 (<any_logic:code><mode>3): Use VF mode iterator.
21236 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
21237 Use VF mode iterator.
21238 (copysign<mode>3): Use VF mode iterator.
21239 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
21240 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
21241 (*<any_logic:code><MODEF:mode>3): Merge with
21242 *avx_<any_logic:code><MODEF:mode>3.
21243 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
21244 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
21245 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
21246 (avx_cvtdq2ps<avxmodesuffix>): Remove.
21247 (sse2_cvtdq2ps): Use %v modifier.
21248 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
21249 (avx_cvtps2dq<avxmodesuffix>): Remove.
21250 (sse2_cvtps2dq): Use %v modifier.
21251 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
21252 (avx_cvttps2dq<avxmodesuffix>): Remove.
21253 (sse2_cvttps2dq): Use %v modifier.
21254 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
21255 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
21256 (sse2_cvtsd2siq): Fix insn template.
21257 (sse2_cvtsd2siq_2): Ditto.
21258 (sse2_cvttsd2siq): Ditto.
21259 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
21260 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
21262 2011-04-06 Joseph Myers <joseph@codesourcery.com>
21264 * gcov-io.c: Use GCC Runtime Library Exception.
21266 2011-04-06 Jakub Jelinek <jakub@redhat.com>
21269 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
21270 as base_reg whatever register reg has been eliminated to, instead
21271 of hardcoding STACK_POINTER_REGNUM.
21273 2011-04-06 Joseph Myers <joseph@codesourcery.com>
21275 * doc/tm.texi.in: Document C target hooks as separate from general
21277 * doc/tm.texi: Regenerate.
21278 * genhooks.c (struct hook_desc): Add docname field.
21279 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
21281 (hook_array): Include c-target.def.
21282 (emit_documentation): Use docname field in output.
21283 (emit_init_macros): Take docname argument. Only emit definitions
21284 for hooks matching docname.
21285 (main): Expect additional arguments in all cases. Pass argument
21286 to emit_init_macros.
21287 * target.def: Move initial macro definitions and comments to
21288 target-hooks-macros.h.
21289 (gcc_targetcm): Move to c-family/c-target.def.
21290 * target.h (targetcm): Move declaration to c-family/c-target.h.
21291 * targhooks.c (default_handle_c_option): Move to
21293 * targhooks.h (default_handle_c_option): Move declaration to
21294 c-family/c-common.h.
21295 * target-hooks-macros.h: New file.
21296 * config.gcc (target_has_targetcm): Define and use to add to
21297 c_target_objs and cxx_target_objs.
21298 * config/default-c.c: New file.
21299 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
21300 of target.h and target-def.h.
21301 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
21302 (darwin_objc_construct_string, darwin_cfstring_ref_p,
21303 darwin_check_cfstring_format_arg): Make static.
21304 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
21305 TARGET_STRING_OBJECT_REF_TYPE_P,
21306 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
21307 * config/darwin-protos.h (darwin_objc_construct_string,
21308 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
21310 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
21311 TARGET_STRING_OBJECT_REF_TYPE_P,
21312 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
21313 * config/t-darwin (darwin-c.o): Update dependencies.
21314 * system.h (TARGET_HAS_TARGETCM): Poison.
21315 * Makefile.in (TARGET_H): Update.
21316 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
21317 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
21318 (default-c.o): New target.
21319 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
21320 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
21321 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
21323 (build/genhooks.o): Update dependencies.
21325 2011-04-06 Richard Guenther <rguenther@suse.de>
21327 * ipa-inline.c (enum inlining_mode): Remove.
21328 (cgraph_flatten): Use some other token.
21329 (cgraph_edge_early_inlinable_p): New function, split out from ...
21330 (cgraph_perform_always_inlining): New function, split out from ...
21331 (cgraph_decide_inlining_incrementally): ... here.
21332 (cgraph_mark_inline_edge): Adjust.
21333 (cgraph_early_inlining): Re-structure.
21334 (pass_early_inline): Require SSA form.
21336 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
21337 Julian Brown <julian@codesourcery.com>
21338 Mark Shinwell <shinwell@codesourcery.com>
21340 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
21341 LO_REGS only for Thumb-1.
21342 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
21343 be used in short instructions when optimising for size on Thumb-2.
21345 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
21347 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
21348 associated with user returns to be preserved.
21350 2011-04-06 Tristan Gingold <gingold@adacore.com>
21352 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
21353 symbol_queue_size, DBXOUT_DECR_NESTING,
21354 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
21355 if XCOFF_DEBUGGING_INFO.
21357 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
21359 * config/i386/i386.md (attribute isa): New.
21360 (attribute enabled): New.
21361 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
21362 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
21363 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
21364 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
21365 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
21366 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21367 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
21368 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
21370 * config/i386/sse.md (VF): New mode iterator.
21374 (SSEMODEF4): Remove.
21375 (attribute sse): Handle V8SF and V4DF modes.
21376 (<absneg:code><mode>2): Use VF mode iterator.
21377 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
21379 (<plusminus_insn><mode>3): Use VF mode iterator.
21380 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
21381 Use VF mode iterator.
21382 (<sse>_vm<plusminus_insn><mode>3): Merge with
21383 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
21384 (mul<mode>3): Use VF mode iterator.
21385 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
21386 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
21388 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
21389 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
21390 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
21391 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
21393 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
21394 Use VF1 mode iterator.
21395 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
21396 (sqrt<VF2:mode>2): New expander.
21397 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
21398 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
21399 and sqrtv2df2. Use VF mode iterator.
21400 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
21402 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
21403 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
21404 Use VF1 mode iterator.
21405 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
21406 (<smaxmin:code><mode>3): Use VF mode iterator.
21407 (*<smaxmin:code><mode>3_finite): Merge with
21408 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
21409 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21410 (<sse>_vm<smaxmin:code><mode>2): Merge with
21411 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
21412 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
21414 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
21416 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
21417 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
21418 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
21419 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
21420 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
21422 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
21423 Use VF_128 mode iterator.
21424 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
21426 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
21427 VF_128 mode iterator.
21428 (vcond<mode>): Use VF mode iterator.
21429 * config/i386/predicates.md (sse_comparison_operator): Merge with
21430 avx_comparison_float_operator. Do not declare as special_predicate.
21431 * config/i386/i386.c (struct builtin_description): Update for renamed
21433 (ix86_expand_args_builtin): Ditto.
21434 (ix86_expand_sse_compare_mask): Ditto.
21436 2011-04-06 Richard Guenther <rguenther@suse.de>
21438 * tree-inline.c (estimate_num_insns): For calls simply account
21439 for all passed arguments and a used return value.
21441 2011-04-06 Richard Guenther <rguenther@suse.de>
21443 PR tree-optimization/47663
21444 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
21445 call_stmt_time fields.
21446 (cgraph_edge_inlinable_p): Declare.
21447 (cgraph_edge_recursive_p): New inline function.
21448 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
21449 (cgraph_clone_edge): Copy it.
21450 * ipa-inline.c (cgraph_estimate_edge_time): New function.
21451 Account for call stmt time.
21452 (cgraph_estimate_time_after_inlining): Take edge argument.
21453 (cgraph_estimate_edge_growth): Account call stmt size.
21454 (cgraph_estimate_size_after_inlining): Take edge argument.
21455 (cgraph_mark_inline_edge): Adjust.
21456 (cgraph_check_inline_limits): Likewise.
21457 (cgraph_recursive_inlining_p): Remove.
21458 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
21459 (cgraph_decide_recursive_inlining): Take edge argument and
21461 (cgraph_decide_inlining_of_small_functions): Do not avoid
21462 diags for recursive inlining here.
21463 (cgraph_flatten): Adjust.
21464 (cgraph_decide_inlining_incrementally): Likewise.
21465 (estimate_function_body_sizes): Remove call cost handling.
21466 (compute_inline_parameters): Initialize caller edge call costs.
21467 (cgraph_estimate_edge_growth): New function.
21468 (cgraph_estimate_growth): Use it.
21469 (cgraph_edge_badness): Likewise.
21470 (cgraph_check_inline_limits): Take an edge argument.
21471 (cgraph_decide_inlining_of_small_functions): Adjust.
21472 (cgraph_decide_inlining): Likewise.
21473 * tree-inline.c (estimate_num_insns): Only account for call
21474 return value if it is used.
21475 (expand_call_inline): Avoid diagnostics on recursive inline
21477 * lto-cgraph.c (lto_output_edge): Output edge call costs.
21478 (input_edge): Input edge call costs.
21480 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21482 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
21484 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
21486 * doc/invoke.texi (Spec Files): Fix typo.
21488 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
21490 * profile.c (branch_prob): Move declaration of local variable. Remove
21491 obsolete ??? comment. Expand the location explicitly instead of using
21492 the LOCATION_FILE and LOCATION_LINE macros.
21494 2011-04-06 Wei Guozhi <carrot@google.com>
21497 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
21498 (arm_cond_branch): Likewise.
21499 (arm_cond_branch_reversed): Likewise.
21500 (arm_jump): Likewise.
21501 (push_multi): Likewise.
21502 * config/arm/constraints.md (Py): New constraint.
21504 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21507 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
21509 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
21510 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
21511 #ifdef DBX_DEBUGGING_INFO.
21513 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
21516 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
21517 if old and new states differ.
21519 2011-04-05 Joseph Myers <joseph@codesourcery.com>
21521 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
21522 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
21523 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
21524 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
21525 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
21526 mcfv4e): Use Alias.
21527 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
21528 ColdFire options to -mcpu= options.
21530 2011-04-05 Jeff Law <law@redhat.com>
21532 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
21533 check if BB is a successor of LOOP->header and return
21534 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
21536 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
21538 * cprop.c (struct reg_use): Remove.
21539 (reg_use_table): Make an array of RTX.
21540 (find_used_regs, constprop_register, local_cprop_pass,
21541 bypass_block): Simplify users of reg_use_table.
21542 (cprop_insn): Likewise. Iterate if copy propagation succeeded
21543 on one of the uses found by find_used_regs.
21545 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21548 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
21551 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21553 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
21555 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
21557 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
21559 PR middle-end/48441
21560 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
21562 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21564 * combine.c: Include obstack.h.
21565 (struct insn_link): Define.
21566 (uid_log_links): Adjust type.
21567 (FOR_EACH_LOG_LINK): New macro.
21568 (insn_link_obstack): Declare.
21569 (alloc_insn_link): Define.
21570 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
21571 type of link variables.
21572 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
21573 (try_combine, record_promoted_values, distribute_notes): Likewise.
21574 (distribute_links): Likewise. Tweak prototype.
21575 (clear_log_links): Delete.
21576 (adjust_for_new_dest): Call alloc_insn_link.
21577 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
21579 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21581 * gcse.c (modify_mem_list): Convert to an array of VECs.
21582 (canon_modify_mem_list, compute_transp): Tweak formatting.
21583 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
21584 (load_killed_in_block_p): Likewise.
21585 (record_last_mem_set_info): Likewise.
21586 (clear_modify_mem_tables): Likewise.
21588 2011-04-05 Tom de Vries <tom@codesourcery.com>
21590 PR middle-end/48461
21591 * function.c (emit_use_return_register_into_block): Only define if
21594 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
21596 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
21598 2011-04-05 Joseph Myers <joseph@codesourcery.com>
21600 * config/rx/rx-opts.h: New.
21601 * config/rx/rx.c (rx_cpu_type): Remove.
21602 (rx_handle_option): Don't assert that global structures are in
21603 use. Access variables via opts pointer. Defer most handling of
21604 OPT_mint_register_. Use error_at.
21605 (rx_option_override): Handle deferred OPT_mint_register_ here.
21606 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
21607 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
21608 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
21609 (rx_cpu_types): New Enum and EnumValue entries.
21610 (mint-register=): Use Defer and use Var accordingly.
21612 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21614 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
21615 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
21616 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
21618 (debug_free_queue, debug_nesting, symbol_queue_index):
21620 * dbxout.c: ...to here. Make static.
21622 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21624 * gcse.c (modify_pair): Define. Define a VEC of it.
21625 (canon_modify_mem_list): Convert to an array of VECs.
21626 (free_insn_expr_list_list): Delete.
21627 (clear_modify_mem_tables): Call VEC_free instead.
21628 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
21629 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
21630 (canon_list_insert, compute_transp): Likewise.
21632 2011-04-05 Tom de Vries <tom@codesourcery.com>
21635 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
21638 2011-04-05 Tom de Vries <tom@codesourcery.com>
21641 * function.c (emit_use_return_register_into_block): New function.
21642 (thread_prologue_and_epilogue_insns): Use
21643 emit_use_return_register_into_block.
21645 2011-04-05 Tom de Vries <tom@codesourcery.com>
21648 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
21651 2011-04-05 Tom de Vries <tom@codesourcery.com>
21653 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
21655 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
21657 * config/arm/arm.md (define_constants for unspec): Replace with
21659 (define_constants for unspecv): Replace with define_c_enum.
21660 * config/arm/neon.md (define_constants for unspec): Replace with
21663 2011-04-04 Richard Henderson <rth@redhat.com>
21666 * dwarf2out.c (output_line_info): Always emit line info from
21667 at least one section.
21668 (dwarf2out_init): Create text_section_line_info here ...
21669 (set_cur_line_info_table): ... not here.
21671 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
21674 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
21677 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
21679 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
21681 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
21682 (expr_equiv_p): Remove.
21683 (insert_set_in_table): Look at <dest, src> pair instead of expr.
21684 (hash_scan_set): Update call to insert_set_in_table.
21685 (dump_hash_table): Dump <dest, src> pair.
21686 (lookup_set): Simplify. Lookup <dest, src> pair.
21687 (compute_transp): Remove, fold heavily simplified code into...
21688 (compute_local_properties): ...here. Expect COMP and TRANSP
21690 (find_avail_set): Take set directly from struct expr.
21691 (find_bypass-set): Likewise.
21692 (bypass_block): Likewise.
21693 (cprop_insn): Likewise. Remove redundant INSN_P test.
21695 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
21696 checks on form of COND from find_implicit_sets to here.
21697 (find_implicit_sets): Cleanup control flow. Split critical edges
21698 if it exposes implicit sets. Allocate/resize implicit_sets as
21700 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
21701 changed something. Run df_analyze after find_implicit_sets if any
21702 edges were split. Do not allocate implicit_sets here.
21704 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
21705 (gcse_obstack): Renamed to cprop_obstack.
21706 (GNEW, GNEWVEC, GNEWVAR): Remove.
21708 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
21709 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
21710 (gcse_alloc): Likewise, and rename to cprop_alloc.
21711 (alloc_gcse_men, free_gcse_mem): Remove.
21712 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
21713 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
21714 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
21716 * cprop.c (oprs_not_set_p): Remove.
21717 (mark_set, mark_clobber): Remove.
21718 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
21719 (reg_not_set_p): New function.
21720 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
21721 (cprop_insn): Likewise.
21722 (cprop_jump): Use FOR_EACH_EDGE.
21724 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
21727 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
21728 (rank_for_schedule): Use scheduled_insns vector instead of
21729 last_scheduled_insn.
21730 (ok_for_early_queue_removal): Likewise.
21731 (queue_to_ready): Search forward in nonscheduled_insns_begin if
21733 (choose_ready): Likewise.
21734 (commit_schedule): Use VEC_iterate.
21735 (schedule_block): Initialize nonscheduled_insns_begin. If we have
21736 a dbg_cnt, use it and ensure the first insn is in the ready list.
21737 (haifa_sched_init): Allocate scheduled_insns.
21738 (sched_extend_ready_list): Don't allocate it; reserve space.
21739 (haifa_sched_finish): Free it.
21741 2011-04-04 Joseph Myers <joseph@codesourcery.com>
21743 * optc-gen.awk: Always remove type from Variable entry before
21744 recording in var_seen.
21746 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
21748 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
21749 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
21750 call to tidy_fallthru_edges.
21752 2011-04-04 Joseph Myers <joseph@codesourcery.com>
21754 * doc/options.texi (ToLower): Document.
21755 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
21756 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
21757 * opts.h (cl_option): Add cl_tolower field.
21758 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
21759 arguments with lowercase strings.
21760 * config/rx/rx.opt (mcpu=): Add ToLower.
21761 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
21764 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
21766 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
21768 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
21770 * config/vax/vax.c: Include reload.h.
21772 2011-04-04 Anatoly Sokolov <aesok@post.ru>
21774 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
21775 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
21776 (sparc_preferred_reload_class): New function.
21778 2011-04-04 Jakub Jelinek <jakub@redhat.com>
21781 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
21782 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
21784 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
21786 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
21787 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
21789 2011-04-03 Anatoly Sokolov <aesok@post.ru>
21791 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
21792 (ASM_OUTPUT_ALIGNED_BSS): Define.
21794 2011-04-03 Michael Matz <matz@suse.de>
21796 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
21797 and next_slot members.
21798 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
21799 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
21800 (lto_streamer_cache_append): Declare.
21801 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
21802 unsigned index, remove offset parameter, ensure that we append
21803 or update existing entries.
21804 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
21805 parameter, update next_slot for append.
21806 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
21808 (lto_streamer_cache_insert_at): Likewise.
21809 (lto_streamer_cache_append): New function.
21810 (lto_streamer_cache_lookup): Use unsigned index.
21811 (lto_streamer_cache_get): Likewise.
21812 (lto_record_common_node): Don't test tree_node_can_be_shared.
21813 (preload_common_node): Adjust call to lto_streamer_cache_insert.
21814 (lto_streamer_cache_delete): Don't free offsets member.
21815 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
21816 (lto_output_string_with_length): Use lto_output_data_stream.
21817 (lto_output_tree_header): Remove ix parameter, don't write it.
21818 (lto_output_builtin_tree): Likewise.
21819 (lto_write_tree): Adjust callers to above, don't track and write
21820 offset, write unsigned index.
21821 (output_unreferenced_globals): Don't emit all global vars.
21822 (write_global_references): Use unsigned indices.
21823 (lto_output_decl_state_refs): Likewise.
21824 (write_symbol): Likewise.
21825 * lto-streamer-in.c (lto_input_chain): Move earlier.
21826 (input_function): Use unsigned index.
21827 (input_alias_pairs): Don't read and then ignore all global vars.
21828 (lto_materialize_tree): Remove ix_p parameter, don't read index,
21829 don't pass it back, use lto_streamer_cache_append.
21830 (lto_register_var_decl_in_symtab): Use unsigned index.
21831 (lto_register_function_decl_in_symtab): Likewise.
21832 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
21834 (lto_get_builtin_tree): Don't read index, use
21835 lto_streamer_cache_append.
21836 (lto_read_tree): Adjust call to lto_materialize_tree.
21838 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
21839 don't use function calls in arguments to MIN.
21841 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
21844 * gimple.c (gimple_type_leader_entry): Mark deletable.
21846 2011-04-03 Alan Modra <amodra@gmail.com>
21848 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
21850 2011-04-03 Michael Matz <matz@suse.de>
21852 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
21854 * tree.h (tree_decl_non_common.vindex): Adjust comment.
21856 2011-04-03 Michael Matz <matz@suse.de>
21858 * cgraphbuild.c (record_reference): Canonicalize constructor values.
21859 * gimple-fold.c (canonicalize_constructor_val): Accept being called
21860 without function context.
21861 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
21862 current_function_decl and cfun.
21864 2011-04-03 Michael Matz <matz@suse.de>
21866 * tree.c (decl_init_priority_insert): Don't create entry for
21868 (decl_fini_priority_insert): Ditto.
21869 (fields_compatible_p, find_compatible_field): Remove.
21870 * tree.h (fields_compatible_p, find_compatible_field): Remove.
21871 * gimple.c (gimple_compare_field_offset): Adjust block comment.
21873 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
21875 * combine.c (try_combine): Remove useless local variable.
21877 2011-04-03 Richard Guenther <rguenther@suse.de>
21878 Ira Rosen <ira.rosen@linaro.org>
21880 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
21881 non-variable offsets and compare the remaining bases of the two
21882 accesses instead of looking for exact same data-ref.
21884 2011-04-02 Kai Tietz <ktietz@redhat.com>
21887 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
21889 * i386.c (ix86_is_msabi_thiscall): New helper function.
21890 (ix86_is_type_thiscall): New helper function.
21891 (ix86_comp_type_attributes): Handle thiscall for method-functions
21893 (init_cumulative_args): Likewise.
21894 (find_drap_reg): Likewise.
21895 (ix86_static_chain): Likewise.
21896 (x86_this_parameter): Likewise.
21897 (x86_output_mi_thunk): Likewise.
21899 2011-04-01 Olivier Hainque <hainque@adacore.com>
21900 Nicolas Setton <setton@adacore.com>
21901 Eric Botcazou <ebotcazou@adacore.com>
21903 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
21904 (add_gnat_descriptive_type_attribute): New function.
21905 (gen_array_type_die): Call it.
21906 (gen_enumeration_type_die): Likewise.
21907 (gen_struct_or_union_type_die): Likewise.
21908 (modified_type_die): Likewise.
21909 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
21910 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
21911 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
21913 2011-04-01 Jakub Jelinek <jakub@redhat.com>
21916 * dwarf2out.c (resolve_addr): Don't call force_decl_die
21917 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
21920 2011-03-17 Richard Guenther <rguenther@suse.de>
21923 * lto-cgraph.c (input_overwrite_node): Clear the abstract
21924 origin for decls in other ltrans units.
21925 (input_varpool_node): Likewise.
21927 2011-04-01 Jakub Jelinek <jakub@redhat.com>
21929 PR middle-end/48335
21930 * expr.c (expand_assignment): Handle all possibilities
21931 if TO_RTX is CONCAT.
21932 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
21933 (store_split_bit_field): If SUBREG_REG (op0) or
21934 op0 itself has smaller mode than word, return it
21935 for offset 0 and const0_rtx for out-of-bounds stores.
21936 If word is const0_rtx, skip it.
21938 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
21940 * config/h8300/h8300.c (print_operand_address): Rename to...
21941 (h8300_print_operand_address): ...this. Make static. Adjust comments.
21942 Call h8300_print_operand and h8300_print_operand_address instead of
21943 print_operand and print_operand_address. Declare.
21944 (print_operand): Renake to...
21945 (h8300_print_operand): ...this. Make static. Adjust comments.
21946 Call h8300_print_operand instead of print_operand. Declare.
21947 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
21948 (h8300_register_move_cost): Likewise.
21949 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
21950 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
21951 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
21952 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
21953 * config/h8300/h8300-protos.h (print_operand): Delete.
21954 (print_operand_address): Delete.
21956 2011-04-01 Richard Henderson <rth@redhat.com>
21959 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
21960 in strict mode before dwarf4. Re-order tests to early out
21961 before switching sections.
21963 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
21965 * config/h8300/constraints.md: New file.
21966 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
21967 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
21968 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
21969 * config/h8300/predicates.md (bit_operand): Likewise.
21970 (incdec_operand): Use satisfies_constraint_M and
21971 satisfies_constraint_O. Don't use C code block.
21972 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
21973 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
21974 (compute_mov_length): Use satisfies_constraint_G.
21975 (fix_bit_operand): Use satisfies_constraint_U.
21976 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
21977 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
21978 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
21979 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
21980 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
21981 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
21982 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
21983 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
21984 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
21985 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
21986 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
21987 (EXTRA_MEMORY_CONSTRAINT): Delete.
21989 2011-04-01 Andrew Pinski <pinskia@gmail.com>
21990 Michael Meissner <meissner@linux.vnet.ibm.com>
21993 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
21994 operands, as per the specifications.
21996 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
21997 (vec_extract_evenv4sf): Ditto.
21998 (vec_extract_evenv8hi): Ditto.
21999 (vec_extract_evenv16qi): Ditto.
22000 (vec_extract_oddv4si): Ditto.
22002 2011-03-31 Mark Wielaard <mjw@redhat.com>
22004 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
22005 high_pc attribute if the CU has no associated code. Only output
22006 DW_AT_entry_pc for CU if not generating strict dwarf and
22009 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
22011 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
22012 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
22014 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
22015 * final.c (final_start_function): Call the new function rather
22016 than using a NULL argument for dwarf2out_frame_debug.
22018 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
22019 that contains the prologue.
22021 * haifa-sched.c (queue_insn): New arg REASON. All callers
22022 changed. Print it in debugging output.
22024 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
22026 * sched-ebb.c (begin_schedule_ready): Remove second argument.
22027 Split most of the code into...
22028 (begin_move_insn): ... here. New function.
22029 (ebb_sched_info): Add a pointer to it.
22030 * haifa-sched.c (scheduled_insns): New static variable.
22031 (sched_extend_ready_list): Allocate it.
22032 (schedule_block): Use it to record the order of scheduled insns.
22033 Perform RTL changes to move insns only after all scheduling
22034 decisions have been made.
22035 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
22036 begin_move_insn field.
22037 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
22038 * sched-int.h (struct haifa_sched_info): Remove second argument
22039 from begin_schedule_ready hook. Add new member begin_move_insn.
22040 * sched-rgn.c (begin_schedule_ready): Remove second argument.
22041 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
22043 * haifa-sched.c (prune_ready_list): New function, broken out of
22045 (schedule_block): Use it.
22047 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22049 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
22051 2011-04-01 Kai Tietz <ktietz@redhat.com>
22053 * config.gcc (*-*-mingw*): Allow as option the
22054 posix threading model.
22055 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
22056 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
22058 (CPP_SPEC): Add pthread/no-pthread handling.
22059 (LIB_SPEC): Likewise.
22060 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
22061 (LIB_SPEC): Likewise.
22062 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
22063 flag to pass -pthread option for shared libgcc build.
22064 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
22065 for shared libgcc build.
22066 * config/i386/t-mingw-pthread: New file.
22067 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
22068 New define to enable use of library pthread by default.
22069 * config/i386/mingw.opt (pthread): New driver option.
22070 (no-pthread): New driver option.
22071 * config/i386/cygming.opt: Make sure trailing empty line is retained.
22072 * config/i386/mingw-w64.opt: Likewise.
22074 2011-04-01 Gary Funck <gary@intrepid.com>
22076 * c-decl.c (grokdeclarator): Fix formatting.
22078 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
22080 * expr.c (emit_block_move_via_movmem): Use n_generator_args
22081 instead of n_operands.
22082 (set_storage_via_setmem): Likewise.
22083 * optabs.c (maybe_gen_insn): Likewise.
22084 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
22085 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
22086 (mips_expand_builtin_direct): Likewise.
22087 * config/spu/spu.c (expand_builtin_args): Likewise.
22089 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
22091 * recog.h (insn_data_d): Add n_generator_args.
22092 * genoutput.c (data): Likewise.
22093 (output_insn_data): Print it.
22094 (max_opno, num_dups): Delete.
22095 (scan_operands): Just fill in "d->operand[...]".
22096 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
22098 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
22100 * gensupport.h (pattern_stats): New structure.
22101 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
22102 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
22103 (max_operand_1, max_operand_vec): Delete.
22104 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
22106 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
22108 * emit-rtl.c (emit_pattern_after_setloc): New function.
22109 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
22110 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
22111 (emit_pattern_after): New function.
22112 (emit_insn_after, emit_jump_insn_after): Call it.
22113 (emit_call_insn_after, emit_debug_insn_after): Likewise.
22114 (emit_pattern_before_setloc): New function.
22115 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
22116 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
22118 (emit_pattern_before): New function.
22119 (emit_insn_before, emit_jump_insn_before): Call it.
22120 (emit_call_insn_before, emit_debug_insn_before): Likewise.
22122 2011-03-31 Richard Henderson <rth@redhat.com>
22124 * dwarf2out.c (dw_separate_line_info_ref): Remove.
22125 (dw_separate_line_info_entry): Remove.
22126 (enum dw_line_info_opcode): New.
22127 (dw_line_info_entry): Use it.
22128 (dw_line_info_table, dw_line_info_table_p): New.
22129 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
22130 (line_info_table, line_info_label_num): Remove.
22131 (line_info_table_in_use): Remove.
22132 (separate_line_info_table): Remove.
22133 (separate_line_info_table_allocated): Remove.
22134 (separate_line_info_table_in_use): Remove.
22135 (LINE_INFO_TABLE_INCREMENT): Remove.
22136 (line_info_label_num): New.
22137 (cur_line_info_table): New.
22138 (text_section_line_info, cold_text_section_line_info): New.
22139 (separate_line_info): New.
22140 (SEPARATE_LINE_CODE_LABEL): Remove.
22141 (print_dwarf_line_table): Remove.
22142 (debug_dwarf): Don't dump it.
22143 (output_one_line_info_table): New.
22144 (output_line_info): Use it.
22145 (new_line_info_table): New.
22146 (set_cur_line_info_table): New.
22147 (dwarf2out_switch_text_section): Use it.
22148 (dwarf2out_begin_function): Likewise.
22149 (push_dw_line_info_entry): New.
22150 (dwarf2out_source_line): Rewrite for new line info tables.
22151 (dwarf2out_init): Remove dead initailizations.
22153 2011-03-31 Joseph Myers <joseph@codesourcery.com>
22155 * opts.h (cl_option): Add comments to fields. Add bit-fields for
22157 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
22158 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
22159 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
22160 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
22161 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
22162 * opt-functions.awk (flag_init, switch_bit_fields): New.
22163 (switch_flags): Don't handle flags moved to bit-fields. Don't
22164 generate CL_MISSING_OK or CL_SAVE.
22165 * optc-gen.awk: Update to generate bit-field output as well as
22167 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
22168 bit-field instead of CL_REJECT_DRIVER flag.
22169 * opts-common.c (generate_canonical_option,
22170 decode_cmdline_option): Use bit-fields instead of CL_* flags.
22171 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
22172 instead of CL_REJECT_NEGATIVE flag.
22173 * toplev.c (print_switch_values): Use cl_report bit-field instead
22176 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
22178 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
22179 a zero minimum index only if it is redundant.
22181 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
22183 PR rtl-optimization/48381
22184 * ira-color.c (assign_hard_reg): Use hard reg set intersection
22185 instead of ira_class_hard_reg_index for calculating conflicting
22188 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
22190 * cprop.c: Clean up hash table building.
22191 (reg_avail_info): Remove.
22192 (oprs_available_p): Remove.
22193 (record_last_reg_set_info): Remove.
22194 (record_last_set_info): Remove.
22195 (reg_available_p): New function.
22196 (gcse_constant_p): Do not treat unfolded conditions as constants.
22197 (make_set_regs_unavailable): New function.
22198 (hash_scan_set): Simplify with new reg_available_p.
22199 (compute_hash_table_work): Traverse insns stream only once.
22200 Do not compute reg_avail_info. Traverse insns in reverse order.
22201 Record implicit sets after recording explicit sets from the block.
22203 2011-03-31 Michael Matz <matz@suse.de>
22205 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
22207 2011-03-31 Anatoly Sokolov <aesok@post.ru>
22209 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
22210 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
22211 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22212 (h8300_mode_dependent_address_p): New function.
22213 (h8300_get_index): Make static.
22215 2011-03-31 Jeff Law <law@redhat.com>
22217 * reload1.c (elimination_effects): Fix typo in recent change.
22219 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
22220 typo potentially leading to null pointer dereference.
22222 * caller-save.c (new_saved_hard_reg): Eliminate return value.
22223 (setup_save_areas): Corresponding changes to avoid useless
22226 * jump.c (reversed_comparison_code_parts): Avoid successive return
22227 statements when REVERSE_CONDITION is defined.
22229 * expr.c (expand_assignment): Avoid useless assignments.
22230 (expand_expr_real_1): Likewise.
22231 (expand_expr_real_2): Avoid useless statements.
22233 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
22235 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
22237 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
22240 * stmt.c (expand_expr_stmt): Avoid useless assignment.
22242 2011-03-31 Joseph Myers <joseph@codesourcery.com>
22245 * doc/tm.texi.in (TARGET_VERSION): Remove.
22246 * doc/tm.texi: Regenerate.
22247 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
22248 * collect2.c (main): Don't use TARGET_VERSION.
22249 * mips-tdump.c (main): Don't use TARGET_VERSION.
22250 * mips-tfile.c (main): Don't use TARGET_VERSION.
22251 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
22252 * config/rs6000/vxworksae.h: Remove.
22253 * config/alpha/alpha.h (TARGET_VERSION): Remove.
22254 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
22255 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
22256 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
22257 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
22258 * config/arm/arm.h (TARGET_VERSION): Remove.
22259 * config/arm/coff.h (TARGET_VERSION): Remove.
22260 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
22261 * config/arm/elf.h (TARGET_VERSION): Remove.
22262 * config/arm/freebsd.h (TARGET_VERSION): Remove.
22263 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
22264 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
22265 * config/arm/pe.h (TARGET_VERSION): Remove.
22266 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
22267 * config/arm/semi.h (TARGET_VERSION): Remove.
22268 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
22269 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
22270 * config/arm/vxworks.h (TARGET_VERSION): Remove.
22271 * config/avr/avr.h (TARGET_VERSION): Remove.
22272 * config/bfin/bfin.h (TARGET_VERSION): Remove.
22273 * config/fr30/fr30.h (TARGET_VERSION): Remove.
22274 * config/frv/frv.h (TARGET_VERSION): Remove.
22275 * config/h8300/h8300.h (TARGET_VERSION): Remove.
22276 * config/i386/cygwin.h (TARGET_VERSION): Remove.
22277 * config/i386/darwin.h (TARGET_VERSION): Remove.
22278 * config/i386/darwin64.h (TARGET_VERSION): Remove.
22279 * config/i386/djgpp.h (TARGET_VERSION): Remove.
22280 * config/i386/freebsd.h (TARGET_VERSION): Remove.
22281 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
22282 * config/i386/gnu.h (TARGET_VERSION): Remove.
22283 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
22284 * config/i386/i386elf.h (TARGET_VERSION): Remove.
22285 * config/i386/linux.h (TARGET_VERSION): Remove.
22286 * config/i386/linux64.h (TARGET_VERSION): Remove.
22287 * config/i386/lynx.h (TARGET_VERSION): Remove.
22288 * config/i386/mingw32.h (TARGET_VERSION): Remove.
22289 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
22290 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
22291 * config/i386/netware.h (TARGET_VERSION): Remove.
22292 * config/i386/nto.h (TARGET_VERSION): Remove.
22293 * config/i386/openbsd.h (TARGET_VERSION): Remove.
22294 * config/i386/vxworks.h (TARGET_VERSION): Remove.
22295 * config/ia64/elf.h (TARGET_VERSION): Remove.
22296 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
22297 * config/ia64/hpux.h (TARGET_VERSION): Remove.
22298 * config/ia64/linux.h (TARGET_VERSION): Remove.
22299 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
22300 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
22301 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
22302 * config/lm32/lm32.h (TARGET_VERSION): Remove.
22303 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
22304 * config/m32c/m32c.h (TARGET_VERSION): Remove.
22305 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
22306 * config/m32r/m32r.h (TARGET_VERSION): Remove.
22307 * config/m68k/linux.h (TARGET_VERSION): Remove.
22308 * config/m68k/m68k.h (TARGET_VERSION): Remove.
22309 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
22310 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
22311 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
22312 * config/mep/mep.h (TARGET_VERSION): Remove.
22313 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
22314 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
22315 * config/mips/iris6.h (MACHINE_TYPE): Remove.
22316 * config/mips/linux.h (TARGET_VERSION): Remove.
22317 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
22318 * config/mips/vxworks.h (TARGET_VERSION): Remove.
22319 * config/mmix/mmix.h (TARGET_VERSION): Remove.
22320 * config/mn10300/linux.h (TARGET_VERSION): Remove.
22321 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
22322 * config/pa/pa.h (TARGET_VERSION): Remove.
22323 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
22324 * config/picochip/picochip.h (TARGET_VERSION): Remove.
22325 * config/rs6000/aix.h (TARGET_VERSION): Remove.
22326 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
22327 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
22328 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
22329 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
22330 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
22331 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
22332 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
22333 * config/rs6000/linux.h (TARGET_VERSION): Remove.
22334 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
22335 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
22336 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
22337 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
22338 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
22339 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
22340 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
22341 * config/s390/linux.h (TARGET_VERSION): Remove.
22342 * config/s390/s390.h (TARGET_VERSION): Remove.
22343 * config/s390/tpf.h (TARGET_VERSION): Remove.
22344 * config/score/score.h (TARGET_VERSION): Remove.
22345 * config/sh/linux.h (TARGET_VERSION): Remove.
22346 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
22347 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
22348 * config/sh/sh.h (TARGET_VERSION): Remove.
22349 * config/sh/sh64.h (TARGET_VERSION): Remove.
22350 * config/sh/superh.h (TARGET_VERSION): Remove.
22351 * config/sh/vxworks.h (TARGET_VERSION): Remove.
22352 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
22353 * config/sparc/linux.h (TARGET_VERSION): Remove.
22354 * config/sparc/linux64.h (TARGET_VERSION): Remove.
22355 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
22356 TARGET_NAME32, TARGET_NAME): Remove.
22357 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
22358 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
22359 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
22360 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
22361 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
22362 * config/spu/spu.h (TARGET_VERSION): Remove.
22363 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
22364 * config/v850/v850.h (TARGET_VERSION): Remove.
22365 * config/vax/linux.h (TARGET_VERSION): Remove.
22366 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
22367 * config/xtensa/elf.h (TARGET_VERSION): Remove.
22368 * config/xtensa/linux.h (TARGET_VERSION): Remove.
22370 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
22373 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
22374 frame-related from frame-unrelated adjustments to the stack pointer.
22376 2011-03-31 Jakub Jelinek <jakub@redhat.com>
22378 * common.opt (fdebug-types-section): Move earlier.
22379 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
22381 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
22383 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
22386 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
22388 * tree.h (CASE_CHAIN): Define.
22389 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
22390 (gimple_redirect_edge_and_branch): Likewise.
22392 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
22394 PR middle-end/48367
22395 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
22398 2011-03-30 Jeff Law <law@redhat.com>
22400 * PR bootstrap/48371
22401 * reload1.c (reload): Fix botch in last change.
22403 * reload.h (struct reload): Fix typo introduced in last change.
22405 2011-03-30 Joseph Myers <joseph@codesourcery.com>
22407 * config/arm/arm.opt (mhard-float, msoft-float): Mark
22408 Undocumented. Remove help text.
22409 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
22412 2011-03-30 Joseph Myers <joseph@codesourcery.com>
22414 * doc/options.texi (NegativeAlias): Document.
22415 (Alias): Mention NegativeAlias.
22416 * opt-functions.awk: Handle NegativeAlias.
22417 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
22418 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
22419 * opts.h (CL_NEGATIVE_ALIAS): Define.
22420 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
22421 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
22423 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
22425 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
22426 mno-spe and mno-isel instead of mspe=no and -misel=no.
22428 2011-03-29 Mark Wielaard <mjw@redhat.com>
22430 * common.opt (fdebug-types-section): New flag.
22431 * doc/invoke.texi: Document new -fno-debug-types-section flag.
22432 * dwarf2out.c (use_debug_types): New define.
22433 (struct die_struct): Mark die_id with GTY desc use_debug_types.
22434 (print_die): Guard output of type unit signatures using
22436 (build_abbrev_table): Replace assert of dwarf_version >= 4
22437 with assert on use_debug_types.
22438 (size_of_die): Likewise.
22439 (unmark_dies): Likewise.
22440 (value_format): Decide AT_ref_external form on use_debug_types.
22441 (output_die): Replace dwarf_version version check guard with
22442 use_debug_types where appropriate.
22443 (modified_type_die): Likewise.
22444 (gen_reference_type_die): Likewise.
22445 (dwarf2out_start_source_file): Likewise.
22446 (dwarf2out_end_source_file): Likewise.
22447 (prune_unused_types_walk_attribs): Likewise.
22448 (dwarf2out_finish): Likewise.
22450 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
22452 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
22454 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
22456 PR rtl-optimization/48332
22457 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
22458 mode of input operand N and modeN to its actual mode.
22460 2011-03-30 Jeff Law <law@redhat.com>
22462 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
22463 define accessor macro.
22464 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
22465 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
22466 (reg_equiv_init): Likewise.
22467 (reg_equivs_size): New variable.
22468 (reg_equiv_init_size): Remove.
22469 (allocate_initial_values): Move prototype to here from....
22470 * integrate.h (allocate_initial_values): Remove prototype.
22471 * integrate.c: Include reload.h.
22472 (allocate_initial_values): Corresponding changes.
22473 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
22474 (fix_reg_equiv_init, no_equiv): Corresponding changes.
22475 (update_equiv_regs): Corresponding changes.
22476 (ira): Corresponding changes.
22477 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
22478 (push_secondary_reload): Corresponding changes.
22479 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
22480 (make_memloc, find_reloads_address): Corresponding changes.
22481 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
22482 (find_reloads_address_1): Corresponding changes.
22483 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
22484 (refers_to_regno_for_reload_p): Corresponding changes.
22485 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
22486 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
22487 * reload1.c: Include ggc.h.
22488 (grow_reg_equivs): New function.
22489 (replace_pseudos_in, reload): Corresponding changes.
22490 (calculate_needs_all_insns, alter_regs): Corresponding changes.
22491 (eliminate_regs_1, elimination_effects): Corresponding changes.
22492 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
22493 (delete_output_reload): Likewise.
22494 * caller-save.c (mark_referenced_regs): Corresponding changes.
22495 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
22496 * frv/predicates.md (frv_load_operand): Corresponding changes.
22497 * microblaze/microblaze.c (double_memory_operand): Corresponding
22499 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
22500 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
22501 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
22502 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
22503 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
22505 * pa/pa.c (emit_move_sequence): Corresponding changes.
22506 * vax/vax.c (nonindexed_address_p): Corresponding changes.
22508 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
22511 * config/arm/arm.c (coproc_secondary_reload_class): Handle
22512 structure modes. Don't check neon_vector_mem_operand for
22513 vector or structure modes.
22515 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
22516 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
22519 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
22520 operand 1 and reshuffle the operands to match.
22521 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
22523 2011-03-30 Christian Schüler <cschueler@gmx.de>
22526 * config/c.opt (F): Added 'Driver' to -F option.
22529 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
22531 * config/darwin.opt: Added '-arch' option.
22533 2011-03-30 Nick Clifton <nickc@redhat.com>
22535 * config/rx/rx.md: Add peepholes and patterns to combine
22536 extending loads and simple arithmetic instructions.
22537 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
22538 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
22539 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
22540 modes to use pre-decrement and post-increment addressing.
22541 (rx_is_restricted_memory_address): Add range checking of REG+INT
22543 (rx_print_operand): Add support for %Q. Fix handling of %Q.
22544 (rx_memory_move_cost): Adjust cost of stores.
22545 (rx_adjust_insn_length): New function.
22547 2011-03-30 Jakub Jelinek <jakub@redhat.com>
22550 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
22551 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
22552 matching arg00/arg01 types.
22554 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
22556 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
22557 last_location to UNKNOWN_LOCATION.
22559 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
22562 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
22565 2011-03-30 Joseph Myers <joseph@codesourcery.com>
22566 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22569 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
22570 Init(PROCESSOR_V7).
22571 (sparc_cpu): Likewise.
22572 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
22575 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
22578 PR middle-end/48342
22579 PR rtl-optimization/48345
22580 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
22581 hard regs for given mode from profitable regs when doing secondary
22584 2011-03-29 Jeff Law <law@redhat.com>
22587 * tree-ssa-threadupdate.c (struct redirection_data): Remove
22588 do_not_duplicate field.
22589 (lookup_redirection_data): Corresponding changes.
22590 (create_duplicates): Always create a template block.
22591 (redirect_edges): Remove code which reused the original block
22592 when it was going to become unreachable code.
22593 (thread_block): Don't set do_not_duplicate field.
22595 2011-03-29 Joseph Myers <joseph@codesourcery.com>
22597 * lto-opts.c (register_user_option_p, lto_register_user_option):
22598 Make type argument unsigned.
22599 * lto-streamer.h (lto_register_user_option): Make type argument
22601 * opth-gen.awk: Make CL_* macros unsigned.
22602 * opts-common.c (find_opt): Make lang_mask argument unsigned.
22603 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
22604 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
22605 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
22606 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
22607 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
22608 (find_opt): Make lang_mask argument unsigned.
22610 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
22612 PR rtl-optimization/48331
22613 PR rtl-optimization/48334
22614 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
22615 for any used algorithm.
22617 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
22619 * ira-conflicts.c (build_object_conflicts): Add unused attribute
22622 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
22624 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
22625 (alpha_option_override): Don't set alpha_sr_alias_set.
22626 (emit_frame_store_1): Use gen_frame_mem rather than calling
22628 (alpha_expand_epilogue): Ditto.
22630 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
22632 PR tree-optimization/48290
22633 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
22634 vectorization, check that relevant phis in the basic block after
22635 the inner loop are really inner loop's exit phis.
22637 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
22640 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
22641 (cached_dw_loc_list_def): New structure.
22642 (cached_dw_loc_list): New typedef.
22643 (cached_dw_loc_list_table): New variable.
22644 (cached_dw_loc_list_table_hash): New function.
22645 (cached_dw_loc_list_table_eq): Likewise.
22646 (add_location_or_const_value_attribute): Take a bool cache_p.
22647 Cache the list when the parameter is true.
22648 (gen_formal_parameter_die): Update caller.
22649 (gen_variable_die): Likewise.
22650 (dwarf2out_finish): Likewise.
22651 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
22652 while generating debug info for the decl.
22653 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
22654 (dwarf2out_init): Initialize cached_dw_loc_list_table.
22655 (resolve_addr): Cache the result of resolving a chain of
22658 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
22660 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
22661 conflict object hard regset nodes have intersecting hard reg sets.
22663 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
22664 after regstat_init_n_sets_and_refs.
22666 * ira.c: Add more comments at the top.
22667 (setup_stack_reg_pressure_class, setup_pressure_classes):
22668 Add comments how we compute the register pressure classes.
22669 (setup_allocno_and_important_classes): Add more comments.
22670 (setup_class_translate_array, reorder_important_classes)
22671 (setup_reg_class_relations): Add comments.
22673 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
22676 * ira-color.c: Add 2011 to the Copyright line.
22677 (assign_hard_reg): Add more comments.
22678 (improve_allocation): Ditto.
22680 * ira-costs.c: Add 2011 to the Copyright line.
22681 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
22683 (setup_regno_cost_classes_by_mode): Ditto.
22685 Initial patches from ira-improv branch:
22687 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
22689 * ira-build.c (ira_create_object): Remove initialization of
22690 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
22691 (ira_create_allocno): Remove initialization of
22692 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
22693 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
22694 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
22695 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
22696 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
22697 Initialize ALLOCNO_ADD_DATA.
22698 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
22699 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
22701 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
22702 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
22704 * ira.c (ira_reallocate): Remove.
22705 (setup_pressure_classes): Call
22706 ira_init_register_move_cost_if_necessary. Use
22707 ira_register_move_cost instead of ira_get_register_move_cost.
22708 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
22709 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
22711 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
22712 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
22713 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
22714 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
22715 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
22716 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
22718 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
22719 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
22720 (struct allocno_color_data): New.
22721 (allocno_color_data_t): New typedef.
22722 (allocno_color_data): New definition.
22723 (ALLOCNO_COLOR_DATA): New macro.
22724 (struct object_color_data): New.
22725 (object_color_data_t): New typedef.
22726 (object_color_data): New definition.
22727 (OBJECT_COLOR_DATA): New macro.
22728 (update_copy_costs, calculate_allocno_spill_cost): Call
22729 ira_init_register_move_cost_if_necessary. Use
22730 ira_register_move_cost instead of ira_get_register_move_cost.
22731 (move_spill_restore, update_curr_costs): Ditto.
22732 (allocno_spill_priority): Make it inline.
22733 (color_pass): Allocate and free allocno_color_dat and object_color_data.
22734 (struct coalesce_data, coalesce_data_t): New.
22735 (allocno_coalesce_data): New definition.
22736 (ALLOCNO_COALESCE_DATA): New macro.
22737 (merge_allocnos, coalesced_allocno_conflict_p): Use
22738 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
22739 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
22740 (coalesce_allocnos): Ditto.
22741 (setup_coalesced_allocno_costs_and_nums): Ditto.
22742 (collect_spilled_coalesced_allocnos): Ditto.
22743 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
22744 (setup_slot_coalesced_allocno_live_ranges): Ditto.
22745 (coalesce_spill_slots): Ditto.
22746 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
22747 free allocno_coalesce_data.
22749 * ira-conflicts.c: Fix formatting.
22750 (process_regs_for_copy): Call
22751 ira_init_register_move_cost_if_necessary. Use
22752 ira_register_move_cost instead of ira_get_register_move_cost.
22753 (build_object_conflicts): Optimize.
22755 * ira-costs.c (record_reg_classes): Optimize. Call
22756 ira_init_register_move_cost_if_necessary. Use
22757 ira_register_move_cost, ira_may_move_in_cost, and
22758 ira_may_move_out_cost instead of ira_get_register_move_cost and
22759 ira_get_may_move_cost.
22760 (record_address_regs): Ditto.
22761 (scan_one_insn): Optimize.
22762 (find_costs_and_classes): Optimize.
22763 (process_bb_node_for_hard_reg_moves): Call
22764 ira_init_register_move_cost_if_necessary. Use
22765 ira_register_move_cost instead of ira_get_register_move_cost.
22767 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
22768 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
22769 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
22770 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
22772 (ira_initiate_emit_data, ira_finish_emit_data)
22773 (create_new_allocno): New functions.
22774 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
22775 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
22776 Use ira_register_move_cost instead of ira_get_register_move_cost.
22778 * ira-int.h: Fix some comments.
22779 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
22780 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
22781 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
22782 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
22784 (struct ira_allocno): Make mode and aclass a bitfield. Move other
22785 bitfield after mode. Make hard_regno a short int. Make
22786 hard_regno short. Remove first_coalesced_allocno and
22787 next_coalesced_allocno. Move mem_optimized_dest_p,
22788 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
22789 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
22790 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
22791 temp, colorable_p. Add new member add_data.
22792 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
22793 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
22794 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
22795 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
22796 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
22797 (ALLOCNO_ADD_DATA): New macro.
22798 (ira_emit_data_t): New typedef.
22799 (struct ira_emit_data): New. Move mem_optimized_dest_p,
22800 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
22801 from struct ira_allocno.
22802 (ALLOCNO_EMIT_DATA): New macro.
22803 (ira_allocno_emit_data, allocno_emit_reg): New.
22804 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
22805 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
22806 (OBJECT_ADD_DATA): New macro.
22807 (ira_reallocate): Remove.
22808 (ira_initiate_emit_data, ira_finish_emit_data): New.
22809 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
22810 (ira_init_register_move_cost_if_necessary): New.
22811 (ira_object_conflict_iter_next): Merge into
22812 ira_object_conflict_iter_cond.
22813 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
22815 * ira-live.c (process_single_reg_class_operands): Call
22816 ira_init_register_move_cost_if_necessary. Use
22817 ira_register_move_cost instead of ira_get_register_move_cost.
22819 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
22821 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
22823 * ira-costs.c: Fix formatting.
22824 (cost_classes, cost_classes_num): Remove.
22825 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
22826 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
22827 (cost_classes_del, cost_classes_htab): New.
22828 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
22829 (initiate_regno_cost_classes, setup_cost_classes): New.
22830 (setup_regno_cost_classes_by_aclass): New.
22831 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
22832 (record_reg_classes): Use regno_cost_classes instead of
22833 cost_classes. Move checking opposite operand up.
22834 (record_address_regs): Use regno_cost_classes
22835 instead of cost_classes.
22836 (scan_one_insn): Ditto. Use always general register.
22837 (print_allocno_costs): Use regno_cost_classes instead of
22839 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
22840 (find_costs_and_classes): Set up cost classes for each registers.
22841 Use also their mode for this. Use regno_cost_classes instead of
22843 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
22845 (free_ira_costs, ira_init_costs): Don't use cost_classes.
22846 (ira_costs, ira_set_pseudo_classes): Call
22847 initiate_regno_cost_classes and finish_regno_cost_classes.
22849 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
22851 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
22853 * target.def (ira_cover_classes): Remove.
22855 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
22857 * doc/tm.texi.in: Ditto.
22859 * ira-conflicts.c: Remove mentioning cover classes from the file.
22860 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
22861 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
22863 * targhooks.c (default_ira_cover_classes): Remove.
22865 * targhooks.h (default_ira_cover_classes): Ditto.
22867 * haifa-sched.c: Remove mentioning cover classes from the file.
22868 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
22869 ira_pressure_classes and ira_pressure_classes_num instead of
22870 ira_reg_class_cover_size and ira_reg_class_cover. Use
22871 sched_regno_pressure_class instead of sched_regno_cover_class.
22872 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
22873 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
22875 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
22876 classes from the file.
22877 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
22878 (struct object_hard_regs, struct object_hard_regs_node): New.
22879 (struct ira_object): New members profitable_hard_regs,
22880 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
22881 (struct ira_allocno): Rename cover_class to aclass. Rename
22882 cover_class_cost and updated_cover_class_cost to class_cost and
22883 updated_class_cost. Remove splay_removed_p and
22884 left_conflict_size. Add new members colorable_p.
22885 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
22886 (ALLOCNO_COLORABLE_P): New macro.
22887 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
22888 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
22889 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
22890 (OBJECT_...): Rename parameter C to O.
22891 (OBJECT_PROFITABLE_HARD_REGS): New macro.
22892 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
22893 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
22894 (struct target_ira_int): New members x_ira_max_memory_move_cost,
22895 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
22896 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
22897 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
22898 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
22899 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
22900 x_ira_reg_class_subunion.
22901 (ira_max_memory_move_cost, ira_max_register_move_cost)
22902 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
22903 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
22904 (ira_important_class_nums, ira_reg_class_superunion): New macros.
22905 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
22906 (ira_reg_class_union): Rename to ira_reg_class_subunion.
22907 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
22908 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
22909 (ira_tune_allocno_costs_and_cover_classes): Rename to
22910 ira_tune_allocno_costs.
22911 (ira_debug_hard_regs_forest): New.
22912 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
22913 (ira_object_conflict_iter_next): Fix comments.
22914 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
22915 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
22916 cover_class to aclass.
22917 (ira_allocate_and_accumulate_costs): Ditto.
22918 (ira_allocate_and_set_or_copy_costs): Ditto.
22920 * opts.c (decode_options): Remove ira_cover_class check.
22922 * ira-color.c: Remove mentioning cover classes from the file. Use
22923 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
22924 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
22925 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
22926 (splay-tree.h): Remove include.
22927 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
22928 before copy_freq_compare_func.
22929 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
22930 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
22932 (hard_regs_roots, hard_regs_node_vec): Ditto.
22933 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
22934 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
22935 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
22936 (create_new_object_hard_regs_node): Ditto.
22937 (add_new_object_hard_regs_node_to_forest): Ditto.
22938 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
22939 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
22941 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
22942 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
22943 (remove_unused_object_hard_regs_nodes): Ditto.
22944 (enumerate_object_hard_regs_nodes): Ditto.
22945 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
22946 (object_hard_regs_subnode_t): Ditto.
22947 (struct object_hard_regs_subnode): Ditto.
22948 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
22949 (setup_object_hard_regs_subnode_index): Ditto.
22950 (get_object_hard_regs_subnodes_num): Ditto.
22951 (form_object_hard_regs_nodes_forest): Ditto.
22952 (finish_object_hard_regs_nodes_tree): Ditto.
22953 (finish_object_hard_regs_nodes_forest): Ditto.
22954 (allocnos_have_intersected_live_ranges_p): Rename to
22955 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
22956 (pseudos_have_intersected_live_ranges_p): Rename to
22957 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
22958 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
22959 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
22960 (update_copy_costs): Remove assert. Skip cost update if the hard
22961 reg does not belong the class.
22962 (assign_hard_reg): Process only profitable hard regs.
22963 (uncolorable_allocnos_num): Make it scalar.
22964 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
22965 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
22966 and ira_reg_class_max_nregs.
22967 (bucket_allocno_compare_func): Check frequency first.
22968 (sort_bucket): Add compare function as a parameter.
22969 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
22970 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
22971 (push_allocno_to_stack): Rewrite for checking new allocno
22973 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
22974 (push_only_colorable): Pass new parameter to sort_bucket.
22975 (push_allocno_to_spill): Remove.
22976 (allocno_spill_priority_compare): Make it inline and rewrite.
22977 (splay_tree_allocate, splay_tree_free): Remove.
22978 (allocno_spill_sort_compare): New function.
22979 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
22980 build and use splay tree. Choose first allocno in uncolorable
22981 allocno bucket to spill. Remove setting spill cost.
22982 (all_conflicting_hard_regs): Remove.
22983 (setup_allocno_available_regs_num): Check only profitable hard
22984 regs. Print info about hard regs nodes.
22985 (setup_allocno_left_conflicts_size): Remove.
22986 (put_allocno_into_bucket): Don't call
22987 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
22988 (improve_allocation): New.
22989 (color_allocnos): Call setup_profitable_hard_regs,
22990 form_object_hard_regs_nodes_forest, improve_allocation,
22991 finish_object_hard_regs_nodes_forest. Setup spill cost.
22992 (print_loop_title): Use pressure classes.
22993 (color_allocnso): Ditto.
22994 (do_coloring): Remove allocation and freeing splay_tree_node_pool
22995 and allocnos_for_spilling.
22996 (ira_sort_regnos_for_alter_reg): Don't setup members
22997 {first,next}_coalesced_allocno.
22998 (color): Remove allocating and freeing removed_splay_allocno_vec.
22999 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
23000 prohibited_class_mode_regs.
23002 * ira-lives.c: Remove mentioning cover classes from the file. Fix
23004 (update_allocno_pressure_excess_length): Use pressure classes.
23005 (inc_register_pressure, dec_register_pressure): Check for pressure
23007 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
23008 pressure class. Use ira_reg_class_nregs instead of
23009 ira_reg_class_max_nregs.
23010 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
23011 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
23012 (single_reg_class): Use ira_reg_class_nregs instead of
23013 ira_reg_class_max_nregs.
23014 (process_bb_node_lives): Use pressure classes.
23016 * ira-emit.c: Remove mentioning cover classes from the file. Use
23017 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
23018 (change_loop): Use pressure classes.
23019 (modify_move_list): Call ira_set_allocno_class instead of
23020 ira_set_allocno_cover_class.
23022 * ira-build.c: Remove mentioning cover classes from the file. Use
23023 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
23024 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
23025 ALLOCNO_UPDATED_CLASS_COST instead of
23026 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
23027 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
23028 (ira_create_allocno): Remove initialization of
23029 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
23030 ALLOCNO_COLORABLE_P.
23031 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
23032 Update conflict regs for the objects.
23033 (create_cap_allocno): Remove assert. Don't propagate
23034 ALLOCNO_AVAILABLE_REGS_NUM.
23035 (ira_free_allocno_costs): New function.
23036 (finish_allocno): Change a part of code into call of
23037 ira_free_allocno_costs.
23038 (low_pressure_loop_node_p): Use pressure classes.
23039 (object_range_compare_func): Don't compare classes.
23040 (setup_min_max_conflict_allocno_ids): Ditto.
23042 * loop-invariant.c: Remove mentioning cover classes from the file.
23043 Use ira_pressure_classes and ira_pressure_classes_num instead of
23044 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
23045 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
23046 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
23047 Use reg_allocno_class instead of reg_cover_class.
23048 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
23049 STACK_REG_COVER_CLASS.
23050 (get_regno_cover_class): Rename to get_regno_pressure_class.
23051 (move_loop_invariants): Initialize and finalize regstat.
23053 * ira.c: Remove mentioning cover classes from the file. Add
23054 comments about coloring without cover classes. Use ALLOCNO_CLASS
23055 instead of ALLOCNO_COVER_CLASS. Fix formatting.
23056 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
23057 setup_class_subset_and_memory_move_costs.
23058 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
23059 (setup_cover_and_important_classes): Rename to
23060 setup_allocno_and_important_classes.
23061 (setup_class_translate_array): New.
23062 (setup_class_translate): Call it for allocno and pressure classes.
23063 (cover_class_order): Rename to allocno_class_order.
23064 (comp_reg_classes_func): Use ira_allocno_class_translate instead
23065 of ira_class_translate.
23066 (reorder_important_classes): Set up ira_important_class_nums.
23067 (setup_reg_class_relations): Set up ira_reg_class_superunion.
23068 (print_class_cover): Rename to print_classes. Add parameter.
23069 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
23070 Print pressure classes too.
23071 (find_reg_class_closure): Rename to find_reg_classes. Don't call
23072 setup_reg_subclasses.
23073 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
23074 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
23075 (setup_prohibited_class_mode_regs): Use
23076 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
23077 (clarify_prohibited_class_mode_regs): New function.
23078 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
23079 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
23080 (ira_init_once): Initialize them.
23081 (free_register_move_costs): Process them.
23082 (ira_init): Move calls of find_reg_classes and
23083 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
23084 Call clarify_prohibited_class_mode_regs.
23085 (ira_no_alloc_reg): Remove.
23086 (too_high_register_pressure_p): Use pressure classes.
23088 * sched-deps.c: Remove mentioning cover classes from the file.
23089 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
23090 ira_pressure_classes and ira_pressure_classes_num instead of
23091 ira_reg_class_cover_size and ira_reg_class_cover.
23092 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
23093 sched_regno_pressure_class instead of sched_regno_cover_class.
23094 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
23095 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
23097 * ira.h: Add 2010 to Copyright.
23098 (ira_no_alloc_reg): Remove external.
23099 (struct target_ira): Rename x_ira_hard_regno_cover_class,
23100 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
23101 x_ira_class_translate to x_ira_hard_regno_allocno_class,
23102 x_ira_allocno_classes_num, x_ira_allocno_classes, and
23103 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
23104 x_ira_pressure_classes, x_ira_pressure_class_translate, and
23105 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
23106 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
23107 x_ira_no_alloc_regs.
23108 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
23109 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
23110 ira_allocno_classes_num and ira_allocno_classes.
23111 (ira_class_translate): Rename to ira_allocno_class_translate.
23112 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
23113 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
23114 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
23115 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
23116 (ira_no_alloc_regs): New.
23118 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
23119 classes from the file. Use ALLOCNO_CLASS instead of
23120 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
23121 ALLOCNO_COVER_CLASS_COST.
23122 (regno_cover_class): Rename to regno_aclass.
23123 (record_reg_classes): Use ira_reg_class_subunion instead of
23124 ira_reg_class_union.
23125 (record_address_regs): Check overflow.
23126 (scan_one_insn): Ditto.
23127 (print_allocno_costs): Print total mem cost fore regional allocation.
23128 (print_pseudo_costs): Use REG_N_REFS.
23129 (find_costs_and_classes): Use classes intersected with them on the
23130 1st pass. Check overflow. Use ira_reg_class_subunion instead of
23131 ira_reg_class_union. Use ira_allocno_class_translate and
23132 regno_aclass instead of ira_class_translate and regno_cover_class.
23133 Modify code for finding regno_aclass. Setup preferred classes for
23135 (setup_allocno_cover_class_and_costs): Rename to
23136 setup_allocno_class_and_costs. Use regno_aclass instead of
23137 regno_cover_class. Use ira_set_allocno_class instead of
23138 ira_set_allocno_cover_class.
23139 (init_costs, finish_costs): Use regno_aclass instead of
23141 (ira_costs): Use setup_allocno_class_and_costs instead of
23142 setup_allocno_cover_class_and_costs.
23143 (ira_tune_allocno_costs_and_cover_classes): Rename to
23144 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
23145 by processing objects. Use ira_reg_class_max_nregs instead of
23146 ira_reg_class_nregs.
23148 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
23150 * sched-int.h: Remove mentioning cover classes from the file.
23151 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
23153 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
23154 classes from the file.
23155 (struct reg_pref): Rename coverclass into allocnoclass.
23156 (reg_cover_class): Rename to reg_allocno_class.
23158 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
23160 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
23162 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
23164 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
23166 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
23168 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
23170 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
23172 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
23174 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
23176 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
23178 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
23179 (i386_ira_cover_classes): Ditto.
23181 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
23183 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
23185 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
23187 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
23189 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
23191 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
23193 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
23194 (mips_ira_cover_classes): Ditto.
23196 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
23198 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
23200 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
23202 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
23204 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
23206 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
23207 (IRA_COVER_CLASSES_VSX): Ditto.
23209 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
23210 (rs6000_ira_cover_classes): Ditto.
23212 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
23214 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
23216 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
23218 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
23220 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
23222 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
23224 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
23226 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
23228 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
23230 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
23232 2011-03-29 Jakub Jelinek <jakub@redhat.com>
23235 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
23236 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
23237 dw_fde_unlikely_section_end_label, cold_in_std_section,
23238 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
23239 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
23241 (output_fde): Use dw_fde_second_{begin,end} if second is
23242 true, otherwise dw_fde_{begin,end}.
23243 (output_call_frame_info): Test dw_fde_second_begin != NULL
23244 instead of dw_fde_switched_sections.
23245 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
23246 fields, initialize new fields. Initialize in_std_section
23247 unconditionally from the first partition.
23248 (dwarf2out_end_epilogue): Don't override dw_fde_end when
23249 dw_fde_second_begin is non-NULL.
23250 (dwarf2out_switch_text_section): Stop initializing removed
23251 dw_fde_struct fields, initialize new fields, initialize
23252 also dw_fde_end here. Set dw_fde_switch_cfi even when
23253 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
23254 (struct var_loc_list_def): Add last_before_switch field.
23255 (arange_table, arange_table_allocated, arange_table_in_use,
23256 ARANGE_TABLE_INCREMENT, add_arange): Removed.
23257 (size_of_aranges): Count !in_std_section and !second_in_std_section
23258 hunks in fdes, instead of looking at arange_table_in_use.
23259 (output_aranges): Add aranges_length argument, don't call
23260 size_of_aranges here. Instead of using aranges_table*
23261 emit ranges for fdes when !in_std_section resp.
23262 !second_in_std_section.
23263 (dw_loc_list): Break ranges crossing section switch.
23264 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
23265 use dw_fde_second_end instead of dw_fde_end as end of last range.
23266 (gen_subprogram_die): Don't call add_arange. Use
23267 dw_fde_{begin,end} for first partition and if switched
23268 section dw_fde_second_{begin,end} for the second.
23269 (var_location_switch_text_section_1,
23270 var_location_switch_text_section): New functions.
23271 (dwarf2out_begin_function): Initialize cold_text_section even
23272 when function_section () isn't text_section.
23273 (prune_unused_types): Don't walk arange_table.
23274 (dwarf2out_finish): Don't needlessly test
23275 flag_reorder_blocks_and_partition when testing cold_text_section_used.
23276 If info_section_emitted, call size_of_aranges and if it indicates
23277 non-empty .debug_aranges, call output_aranges with the computed
23278 size. Stop using removed dw_fde_struct fields, use
23279 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
23283 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
23284 create ENTRY_VALUE if incoming or address of incoming's MEM
23286 * dwarf2out.c (mem_loc_descriptor): Don't emit
23287 DW_OP_GNU_entry_value of DW_OP_fbreg.
23288 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
23289 on ENTRY_VALUE is able to find the canonical parameter VALUE.
23290 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
23291 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
23293 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
23294 is a REG_P or MEM_P with REG_P address, compute hash directly
23295 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
23296 (preserve_only_constants): Don't clear VALUES forwaring
23297 ENTRY_VALUE to some other VALUE.
23299 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
23301 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
23302 instead of GEN_INT.
23304 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
23306 * cfgexpand.c (expand_gimple_cond): Always set the source location and
23307 block before expanding the statement.
23308 (expand_gimple_stmt_1): Likewise. Set them here...
23309 (expand_gimple_stmt): ...and not here. Tidy.
23310 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
23313 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
23315 * Makefile.in: New rule for cprop.o.
23316 * gcse.c: Move constant/copy propagation to cprop.c.
23317 (compute_local_properties): Only handle expression tables.
23318 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
23319 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
23320 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
23321 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
23322 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
23323 compute_cprop_data, find_used_regs, try_replace_reg,
23324 find_avail_set, cprop_jump, constprop_register, cprop_insn,
23325 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
23326 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
23327 find_bypass_set, reg_killed_on_edge, bypass_block,
23328 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
23329 execute_rtl_cprop, pass_rtl_cprop): Move to...
23330 * cprop.c: ...here. New file, constant/copy propagation for RTL
23331 moved from gcse.c to here with minor cleanups in duplicated code.
23333 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
23335 * config/i386/i386.c (flag_opts): Fix a typo in
23336 -mavx256-split-unaligned-store.
23338 2011-03-28 Anatoly Sokolov <aesok@post.ru>
23340 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
23341 LIBCALL_VALUE): Remove macros.
23342 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23343 TARGET_FUNCTION_VALUE_REGNO_P): Define.
23344 (h8300_function_value, h8300_libcall_value,
23345 h8300_function_value_regno_p): New functions.
23347 2011-03-28 Anatoly Sokolov <aesok@post.ru>
23349 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
23351 2011-03-28 Jeff Law <law@redhat.com>
23353 * tree-ssa-threadupdate.c (redirect_edges): Call
23354 create_edge_and_update_destination_phis as needed.
23355 (create_edge_and_update_destination_phis): Accept new BB argument.
23356 All callers updated.
23357 (thread_block): Do not update the profile when threading around
23358 intermediate blocks.
23359 (thread_single_edge): Likewise.
23360 (determine_bb_domination_status): If BB is not a successor of the
23361 loop header, return NONDOMINATING.
23362 (register_jump_thread): Note when we register a jump thread around
23363 an intermediate block.
23364 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
23365 (thread_across_edge): Use it.
23367 2011-03-28 Tristan Gingold <gingold@adacore.com>
23369 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
23370 when for_return is 2.
23372 2011-03-28 Jeff Law <law@redhat.com>
23374 * var-tracking.c (canonicalize_values_mark): Delete unused
23376 (canonicalize_values_star, set_variable_part): Likewise.
23377 (clobber_variable_part, delete_variable_part): Likewise.
23379 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
23381 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
23383 2011-03-28 Martin Jambor <mjambor@suse.cz>
23385 * tree-inline.c (expand_call_inline): Do not check that destination
23387 (optimize_inline_calls): Assert that destination node is analyzed.
23388 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
23389 not call tree_lowering_passes.
23390 * cgraph.h (cgraph_analyze_function): Declare.
23391 * cgraphunit.c (cgraph_analyze_function): Make public.
23393 2011-03-28 Joseph Myers <joseph@codesourcery.com>
23395 * config/sparc/sparc-opts.h: New.
23396 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
23397 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
23398 (sparc_option_override): Store processor_type enumeration rather
23399 than string in cpu_default. Remove name and enumeration from
23400 cpu_table. Directly default -mcpu then default -mtune from -mcpu
23401 without using sparc_select. Use target_flags_explicit instead of
23403 * config/sparc/sparc.h (enum processor_type): Move to
23405 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
23406 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
23407 HeaderInclude entry.
23408 (mcpu=, mtune=): Use Var and Enum.
23409 (sparc_processor_type): New Enum and EnumValue entries.
23411 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23412 Iain Sandoe <iains@gcc.gnu.org>
23415 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
23417 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
23419 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
23420 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
23421 Insert new statements at it in lieu of STMT.
23422 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
23423 * tree-vect-stmts.c (vectorizable_store): Likewise.
23424 (vectorizable_load): Likewise.
23426 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
23428 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
23433 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
23435 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
23436 unaligned 256bit load/store.
23437 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
23438 (*avx_movdqu<avxmodesuffix>): Likewise.
23440 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23443 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
23444 * config/pa/pa.md (iordi3): Use new predicate in expander.
23445 (iorsi3): Likewise.
23447 2011-03-27 Anatoly Sokolov <aesok@post.ru>
23449 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
23450 FUNCTION_VALUE_REGNO_P): Remove macros.
23451 * config/mips/mips-protos.h (mips_function_value): Remove.
23452 * config/mips/mips.c (mips_function_value): Rename to...
23453 (mips_function_value_1): ... this. Make static. Handle receiving
23454 the function type in 'fn_decl_or_type' argument.
23455 (mips_function_value, mips_libcall_value,
23456 mips_function_value_regno_p): New function.
23457 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23458 TARGET_FUNCTION_VALUE_REGNO_P): Define.
23460 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
23462 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
23463 and -mavx256-split-unaligned-store.
23464 (ix86_option_override_internal): Split 32-byte AVX unaligned
23465 load/store by default.
23466 (ix86_avx256_split_vector_move_misalign): New.
23467 (ix86_expand_vector_move_misalign): Use it.
23469 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
23470 -mavx256-split-unaligned-store.
23472 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
23473 256bit load/store. Generate unaligned store on misaligned memory
23475 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
23477 (*avx_movdqu<avxmodesuffix>): Likewise.
23479 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
23480 -mavx256-split-unaligned-store.
23482 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
23485 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
23488 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
23490 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
23491 opno arguments with an expand_operand. Use create_input_operand.
23492 (mips_prepare_builtin_target): Delete.
23493 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
23495 (mips_expand_builtin_direct): Use create_output_operand and
23496 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
23497 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
23498 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
23500 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
23502 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
23504 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
23506 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
23508 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
23509 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
23510 basic blocks and call commit_edge_insertions directly.
23511 (fixup_abnormal_edges): Move from here to...
23512 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
23513 on the edges and return whether some have actually been inserted.
23514 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
23517 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
23519 PR rtl-optimization/48144
23520 * sel-sched-ir.c (merge_history_vect): Factor out from ...
23521 (merge_expr_data): ... here.
23522 (av_set_intersect): Rename to av_set_code_motion_filter.
23523 Update all callers. Call merge_history_vect when an expression
23524 is found in both sets.
23525 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
23527 2011-03-26 Alan Modra <amodra@gmail.com>
23529 * config/rs6000/predicates.md (word_offset_memref_op): Handle
23530 cmodel medium addresses.
23531 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
23532 64-bit gpr loads and stores.
23533 (rs6000_secondary_reload_ppc64): New function.
23534 * config/rs6000/rs6000-protos.h: Declare it.
23535 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
23537 2011-03-26 Alan Modra <amodra@gmail.com>
23540 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
23541 GNU Go in traceback table.
23543 2011-03-25 Richard Henderson <rth@redhat.com>
23545 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
23546 if there are exactly 6 operands.
23547 (set_storage_via_setmem): Similarly.
23549 2011-03-25 Kai Tietz <ktietz@redhat.com>
23551 * collect2.c (write_c_file_stat): Handle backslash
23552 as right-hand directory separator.
23553 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
23554 checking just for slash.
23555 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
23556 instead of checking for trailing slash.
23557 * gcc.c (record_temp_file): Use filename_cmp instead
23559 (do_spec_1): Likewise.
23560 (replace_outfile_spec_function): Likewise.
23561 (is_directory): Use filename_ncmp instead of strncmp.
23562 (print_multilib_info): Likewise.
23563 * gcov.c (find_source): Use filename_cmp instead
23565 (make_gcov_file_name): Fix order of slash/backslash
23567 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
23568 (add_standard_paths): Likewise.
23569 * mips-tfile.c (saber_stop): Handle backslash.
23570 * prefix.c (update_path): Use filename_ncmp instead of
23572 * profile.c (output_location): Use filename_cmp instead
23574 * read-md.c (handle_toplevel_file): Handle backslash.
23575 * tlink.c (frob_extension): Likewise.
23576 * tree-cfg.c (same_line_p): Use filename_cmp instead of
23578 * tree-dump.c (dequeue_and_dump): Handle backslash.
23579 * tree.c (get_file_function_name): Likewise.
23580 * gengtype.c (read_input_list): Likewise.
23581 (get_file_realbasename): Likewise.
23582 (get_output_file_with_visibility): Use filename_cmp
23585 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
23587 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
23590 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
23592 * fold-const.c (expr_location_or): New function.
23593 (fold_truth_not_expr): Call it.
23595 2011-03-25 Jeff Law <law@redhat.com>
23597 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
23599 * c-family/c-common.c (def_fn_type): Likewise.
23600 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
23601 * emit-rtl.c (gen_rtvec): Likewise.
23602 * lto/lto-lang.c (def_fn_type): Likewise.
23604 2011-03-25 Richard Guenther <rguenther@suse.de>
23606 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
23607 also generate copies.
23608 (fini_copy_prop): Handle constant values properly.
23610 2011-03-25 Jakub Jelinek <jakub@redhat.com>
23612 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
23613 mode size instead of bitsize with DWARF2_ADDR_SIZE.
23614 (hash_loc_operands, compare_loc_operands): Handle
23615 DW_OP_GNU_entry_value.
23617 2011-03-25 Kai Tietz <ktietz@redhat.com>
23619 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
23620 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
23621 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
23622 comment and use macro TARGET_64BIT_MS_ABI instead.
23623 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
23624 and change default behavior for 32-bit MS_ABI.
23625 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
23626 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
23628 (ix86_cfun_abi): Likewise.
23629 (ix86_maybe_switch_abi): Adjust comment.
23630 (init_cumulative_args): Check for bit-ness in MS_ABI case.
23631 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
23632 instead of checking for SYSV_ABI.
23633 (ix86_nsaved_sseregs): Likewise.
23634 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
23636 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
23637 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
23638 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
23639 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
23640 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
23642 2011-03-25 Richard Guenther <rguenther@suse.de>
23644 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
23645 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
23646 (verify_gimple): Remove.
23647 * tree-cfg.c (verify_gimple_call): Merge verification
23649 (verify_gimple_phi): Merge verification from verify_stmts.
23650 (verify_gimple_label): New function.
23651 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
23652 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
23653 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
23654 (verify_stmts): Rename to verify_gimple_in_cfg.
23655 (verify_gimple_in_cfg): New function.
23656 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
23657 * tree-ssa.c (verify_ssa): Likewise.
23658 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
23660 2011-03-25 Richard Guenther <rguenther@suse.de>
23662 * passes.c (init_optimization_passes): Add FRE pass after
23665 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
23666 Andrew Stubbs <ams@codesourcery.com>
23668 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
23670 (arm_movdi_vfp_cortexa8): New pattern.
23671 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
23672 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
23673 instructions when tuning for Cortex-A8. Set attribute "arch".
23674 * config/arm/arm.md: Move include arm-tune.md up a bit.
23675 (define_attr "arch"): Add "onlya8" and "nota8" values.
23676 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
23678 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
23682 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
23684 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
23685 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
23686 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
23687 * passes.c (init_optimization_passes): Move
23688 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
23690 2011-03-25 Kai Tietz <ktietz@redhat.com>
23692 * c-typeck.c (comptypes_internal): Replace target
23693 hook call of comp_type_attributes by version in tree.c file.
23694 * gimple.c (gimple_types_compatible_p_1): Likewise.
23695 * tree-ssa.c (useless_type_conversion_p): Likewise.
23696 * tree.c (build_type_attribute_qual_variant): Likewise.
23697 (attribute_value_equal): New static helper function.
23698 (comp_type_attributes): New function.
23699 (merge_attributes): Use attribute_value_equal for comparison.
23700 (attribute_list_contained): Likewise.
23701 * tree.h (comp_type_attributes): New prototype.
23703 2011-03-25 Richard Guenther <rguenther@suse.de>
23705 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
23706 of complex types at -O0.
23707 (verify_gimple_assign_binary): Likewise.
23708 (verify_gimple_assign_ternary): Likewise.
23710 2011-03-24 Mark Wielaard <mjw@redhat.com>
23712 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
23713 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
23715 2011-03-24 Mark Wielaard <mjw@redhat.com>
23718 * dwarf2out.c (output_abbrev_section): Only write table when
23719 abbrev_die_table_in_use > 1.
23721 2011-02-24 Richard Henderson <rth@redhat.com>
23723 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
23724 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
23725 (alpha_expand_unaligned_load_words): Use extql.
23726 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
23727 (emit_insxl): Handle all modes for consistency.
23729 2011-02-24 Richard Henderson <rth@redhat.com>
23731 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
23732 (alpha_expand_unaligned_load): Likewise.
23733 (alpha_expand_unaligned_store): Likewise.
23734 (alpha_expand_unaligned_load_words): Likewise.
23735 (alpha_expand_unaligned_store_words): Likewise.
23736 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
23737 (alpha_split_lock_test_and_set_12): Likewise.
23738 (print_operand, alpha_fold_builtin_extxx): Likewise.
23739 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
23740 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
23741 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
23742 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
23743 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
23744 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
23745 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
23746 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
23747 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
23748 (extwl, extll, extql): Similarly.
23749 (inswh, inslh, insqh): Similarly.
23750 (mskbl, mskwl, mskll, mskql): Similarly.
23751 (mskwh, msklh, mskqh): Similarly.
23753 2011-02-24 Richard Henderson <rth@redhat.com>
23755 * config/alpha/alpha.md (attribute isa): Add er, ner.
23756 (attribute enabled): Handle them.
23757 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
23759 2011-02-24 Richard Henderson <rth@redhat.com>
23761 * config/alpha/alpha.md (attribute isa): Add vms.
23762 (attribute enabled): Handle it.
23763 (*movsf): Merge *movsf_{nofix,fix,nofp}.
23764 (*movdf): Merge *movdf_{nofix,fix,nofp}.
23765 (*movtf): Rename from *movtf_internal for consistency.
23766 (*movsi): Merge with *movsi_nt_vms.
23767 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
23768 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
23769 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
23770 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
23772 2011-02-24 Richard Henderson <rth@redhat.com>
23774 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
23775 (extendqisi2, extendhisi2): Likewise.
23776 (extendqidi2): Simplify BWX/non-BWX expansions.
23777 (extendhidi2): Similarly.
23779 2011-02-24 Richard Henderson <rth@redhat.com>
23781 * config/alpha/alpha.md (attribute isa): New.
23782 (attribute enabled): New.
23783 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
23784 (zero_extendqisi2, zero_extendqidi2): Similarly.
23785 (zero_extendhisi2, zero_extendhidi2): Similarly.
23786 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
23788 2011-02-24 Richard Henderson <rth@redhat.com>
23790 * config/alpha/predicates.md (input_operand): Revert last change;
23791 update comment to mention 32-bit VMS rather than Windows.
23793 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
23795 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
23796 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
23797 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
23798 * passes.c (init_optimization_passes): Move
23799 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
23801 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
23803 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
23805 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
23807 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
23810 2011-03-24 Jakub Jelinek <jakub@redhat.com>
23813 * simplify-rtx.c (simplify_const_unary_operation): Call
23814 real_convert when changing mode class with FLOAT_EXTEND.
23816 2011-03-24 Nick Clifton <nickc@redhat.com>
23818 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
23819 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
23820 * config/rx/rx.c (rx_option_override): Set align_jumps,
23821 align_loops and align_labels if not set by the user.
23822 (rx_align_for_label): New function.
23823 (rx_max_skip_for_label): New function.
23824 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
23825 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
23826 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
23827 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
23828 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
23830 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
23832 PR rtl-optimization/48263
23833 * optabs.c (expand_binop_directly): Reinstate convert_modes code
23834 and original commutative_p handling. Use maybe_gen_insn.
23836 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23838 * reload.c (find_reloads_subreg_address): Add address_reloaded
23839 parameter and return true there if the full address has been
23841 (find_reloads_toplev): Pass address_reloaded flag.
23842 (find_reloads_address_1): Don't use address_reloaded parameter.
23844 2011-03-24 Jeff Law <law@redhat.com>
23846 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
23847 unused variable "ann".
23848 (remove_unused_locals): Likewise.
23850 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
23853 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
23856 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23858 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
23859 for invalid symbolic addresses.
23860 (s390_secondary_reload): Don't use s390_check_symref_alignment for
23863 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
23865 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
23866 the argument in calls to fold_truth_not_expr.
23868 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
23870 * tree.c (record_node_allocation_statistics): New function.
23871 (make_node_stat, copy_node_stat, build_string): Call it.
23872 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
23873 (build1_stat, build_omp_clause): Likewise.
23875 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
23877 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
23880 2011-03-24 Richard Guenther <rguenther@suse.de>
23882 PR tree-optimization/48271
23883 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
23884 blocks that still exist.
23886 2011-03-24 Richard Guenther <rguenther@suse.de>
23888 PR tree-optimization/48270
23889 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
23890 not free datarefs before ddrs.
23892 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
23894 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
23895 from the address built for a reference with variable offset.
23897 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
23900 * config/i386/i386.md (*movdf_internal_rex64): Do not split
23901 alternatives that can be handled with movq or movabsq insn.
23902 (*movdf_internal): Disable for !TARGET_64BIT.
23903 (*movdf_internal_nointeger): Ditto.
23904 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
23906 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
23908 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
23909 (FUNCTION_ARG_ADVANCE): Likewise.
23910 * tm.texi.in: Change references to them to hook references.
23911 * tm.texi: Regenerate.
23912 * targhooks.c (default_function_arg): Eliminate check for target macro.
23913 (default_function_incoming_arg): Likewise.
23914 (default_function_arg_advance): Likewise.
23915 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
23916 (function_arg_advance): Likewise.
23917 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
23919 2011-03-24 Richard Guenther <rguenther@suse.de>
23921 PR middle-end/48269
23922 * tree-object-size.c (addr_object_size): Do not double-account
23923 for MEM_REF offsets.
23925 2011-03-24 Diego Novillo <dnovillo@google.com>
23927 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
23928 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
23929 (lto_input_data_block): Move from lto-opts.c. Make extern.
23931 (lto_input_string): Rename from input_string. Make extern.
23933 * lto-streamer-out.c (lto_output_string_with_length): Rename from
23934 output_string_with_length.
23935 Output 0 to indicate a non-NULL string. Update all callers to
23937 (lto_output_string): Rename from output_string. Make extern.
23939 (lto_output_decl_state_streams): Make extern.
23940 (lto_output_decl_state_refs): Make extern.
23941 * lto-streamer.h (lto_input_string): Declare.
23942 (lto_input_data_block): Declare.
23943 (lto_output_string): Declare.
23944 (lto_output_string_with_length): Declare.
23945 (lto_output_decl_state_streams): Declare.
23946 (lto_output_decl_state_refs): Declare.
23948 2011-03-24 Richard Guenther <rguenther@suse.de>
23950 PR tree-optimization/46562
23951 * tree.c (build_invariant_address): New function.
23952 * tree.h (build_invariant_address): Declare.
23953 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
23954 a renamed function moved ...
23955 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
23956 Take valueization callback parameter.
23957 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
23958 * gimple-fold.h: New file.
23959 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
23960 (ccp_fold, fold_const_aggregate_ref,
23961 fold_ctor_reference, fold_nonarray_ctor_reference,
23962 fold_array_ctor_reference, fold_string_cst_ctor_reference,
23963 get_base_constructor): Move ...
23964 * gimple-fold.c: ... here.
23965 (gimple_fold_stmt_to_constant_1): New function
23966 split out from ccp_fold. Take a valueization callback parameter.
23967 Valueize all operands.
23968 (gimple_fold_stmt_to_constant): New wrapper function.
23969 (fold_const_aggregate_ref_1): New function split out from
23970 fold_const_aggregate_ref. Take a valueization callback parameter.
23971 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
23972 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
23973 invariant POINTER_PLUS_EXPRs to invariant form.
23974 (vn_valueize): New function.
23975 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
23976 * tree-vrp.c (vrp_valueize): New function.
23977 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
23978 to fold statements to constants.
23979 * tree-ssa-pre.c (eliminate): Properly guard propagation of
23980 function declarations.
23981 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
23982 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
23984 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
23986 * config/h8300/predicates.md (jump_address_operand): Fix register
23989 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
23991 * doc/invoke.texi (max-stores-to-sink): Document.
23992 * params.h (MAX_STORES_TO_SINK): Define.
23993 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
23994 if either vectorization or if-conversion is disabled.
23995 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
23996 tree-vect-data-refs.c vect_equal_offsets.
23997 (dr_equal_offsets_p): New function.
23998 (find_data_references_in_bb): Remove static.
23999 * tree-data-ref.h (find_data_references_in_bb): Declare.
24000 (dr_equal_offsets_p): Likewise.
24001 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
24002 (vect_drs_dependent_in_basic_block): Update calls to
24003 vect_equal_offsets.
24004 (vect_check_interleaving): Likewise.
24005 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
24006 (cond_if_else_store_replacement): Rename to...
24007 (cond_if_else_store_replacement_1): ... this. Change arguments and
24009 (cond_if_else_store_replacement): New function.
24010 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
24011 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
24013 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
24016 * config/arm/arm.md (casesi): Use the gen_int_mode() function
24017 to subtract lower bound instead of GEN_INT().
24019 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
24024 * doc/extend.texi (Alignment): Move section to match order in TOC.
24025 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
24026 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
24028 2011-03-23 Jeff Law <law@redhat.com>
24030 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
24031 before removing the edge.
24033 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
24034 it may have been freed by redirect_branch_edge or
24035 redirect_edge_succ_nodup.
24037 2011-03-23 Richard Guenther <rguenther@suse.de>
24039 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
24040 (check_va_list_escapes): Likewise.
24041 (check_all_va_list_escapes): Likewise.
24043 2011-03-23 Richard Guenther <rguenther@suse.de>
24045 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
24046 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
24047 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
24048 (alias.o): Likewise.
24049 (ipa-type-escape.o): Remove.
24050 (ipa-struct-reorg.o): Likewise.
24051 (GTFILES): Remove ipa-struct-reorg.c.
24052 * alias.c: Do not include ipa-type-escape.h.
24053 * tree-ssa-alias.c: Likewise.
24054 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
24055 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
24056 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
24057 and ipa-type-escape passes.
24058 * tree-pass.h (pass_ipa_type_escape): Remove.
24059 (pass_ipa_struct_reorg): Likewise.
24060 * ipa-struct-reorg.h: Remove.
24061 * ipa-struct-reorg.c: Likewise.
24062 * ipa-type-escape.h: Likewise.
24063 * ipa-type-escape.c: Likewise.
24064 * doc/invoke.texi (-fipa-struct-reorg): Remove.
24065 (--param struct-reorg-cold-struct-ratio): Likewise.
24066 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
24067 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
24068 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
24070 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24072 * config/s390/2084.md: Enable all insn reservations also for z9_ec
24073 cpu attribute value.
24074 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
24075 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
24076 * config/s390/s390.c (processor_flags_table): New constant array.
24077 (s390_handle_arch_option): Remove.
24078 (s390_handle_option): Remove s390_handle_arch_option invocations
24079 and OPT_mwarn_framesize_ handling.
24080 (s390_option_override): Remove s390_handle_arch_option invocation.
24081 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
24083 * config/s390/s390.md (cpu attribute): Add z9_ec value.
24084 * config/s390/s390.opt (s390_tune, s390_arch)
24085 (march=): Replace s390_arch_option enum and values with
24086 processor_type. Set variable name to s390_arch. Set
24087 initialization value.
24088 (mtune=): Replace s390_arch_option with processor_type. Set
24089 variable name to s390_tune. Set initialization value.
24091 2011-03-23 Julian Brown <julian@codesourcery.com>
24093 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
24094 accesses which are not naturally aligned.
24096 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
24099 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
24101 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
24103 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
24104 parameter from "int" to "enum insn_code".
24105 (expand_operand_type): New enum.
24106 (expand_operand): New structure.
24107 (create_expand_operand): New function.
24108 (create_fixed_operand, create_output_operand): Likewise
24109 (create_input_operand, create_convert_operand_to): Likewise.
24110 (create_convert_operand_from, create_address_operand): Likewise.
24111 (create_integer_operand): Likewise.
24112 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
24113 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
24114 (expand_insn, expand_jump_insn): Likewise.
24115 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
24116 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
24117 (expand_movstr, expand_builtin___clear_cache): Likewise.
24118 (expand_builtin_lock_release): Likewise.
24119 * explow.c (allocate_dynamic_stack_space): Likewise.
24120 (probe_stack_range): Likewise. Allow check_stack to FAIL,
24121 and use the default handling in that case.
24122 * expmed.c (check_predicate_volatile_ok): Delete.
24123 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
24124 (emit_cstore): Likewise.
24125 * expr.c (emit_block_move_via_movmem): Likewise.
24126 (set_storage_via_setmem, expand_assignment): Likewise.
24127 (emit_storent_insn, try_casesi): Likewise.
24128 (emit_single_push_insn): Likewise. Allow the expansion to fail.
24129 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
24130 (expand_vec_shift_expr, expand_binop_directly): Likewise.
24131 (expand_twoval_unop, expand_twoval_binop): Likewise.
24132 (expand_unop_direct, emit_indirect_jump): Likewise.
24133 (emit_conditional_move, vector_compare_rtx): Likewise.
24134 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
24135 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
24136 (expand_sync_lock_test_and_set): Likewise.
24137 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
24138 (emit_unop_insn): Likewise.
24139 (expand_copysign_absneg): Change icode to an insn_code.
24140 (create_convert_operand_from_type): New function.
24141 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
24142 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
24143 (expand_insn, expand_jump_insn): Likewise.
24144 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
24145 than const_int_operand for operand 2.
24147 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24149 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
24152 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
24154 * emit-rtl.c (emit_pattern_before_noloc): New function.
24155 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
24156 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
24157 (emit_pattern_after_noloc): New function.
24158 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
24159 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
24161 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
24163 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
24164 (__ffsDI2): Likewise.
24166 2011-03-22 Richard Henderson <rth@redhat.com>
24168 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
24169 of !TARGET_ABI_OPEN_VMS.
24170 (alpha_trampoline_init, alpha_start_function): Likewise.
24171 (alpha_expand_epilogue, alpha_file_start): Likewise.
24172 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
24173 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
24174 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
24175 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
24176 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
24178 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24180 * config/s390/s390-opts.h: New.
24181 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
24182 s390_arch_flags, s390_warn_framesize, s390_stack_size,
24183 s390_stack_guard): Remove.
24184 (s390_handle_arch_option): Return void. Take enum
24185 s390_arch_option value instead of string and searching array.
24186 (s390_handle_option): Don't assert that global structures are in
24187 use. Access variables via opts pointer. Use error_at. Don't use
24188 sscanf for -mstack-guard= or -mstack-size=. Update call to
24189 s390_handle_arch_option.
24190 (s390_option_override): Update call to s390_handle_arch_option.
24191 (s390_emit_prologue): Use %d format for s390_stack_size in
24192 diagnostic. Use %wd for HOST_WIDE_INT.
24193 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
24194 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
24195 * config/s390/s390.opt (config/s390/s390-opts.h): New
24196 HeaderInclude entry.
24197 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
24198 s390_arch_flags, s390_warn_framesize): New Variable entries.
24199 (s390_arch_option): New Enum and EnumValue entries.
24200 (march=): Use Enum instead of Var.
24201 (mstack-guard=, mstack-size=): Use UInteger and Var.
24202 (mtune=): Use Enum.
24204 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24206 * config/score/score.c (score_handle_option): Don't assert that
24207 global structures are in use. Access target_flags via opts
24208 pointer. Use value of -march= option to determine target_flags
24210 * config/score/score.opt (march=): Use Enum.
24211 (score_arch): New Enum and EnumValue entries.
24213 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24215 * config/mep/mep.c (option_mtiny_specified): Remove.
24216 (mep_option_override): Move register handling for -mivc2 from
24217 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
24218 instead of option_mtiny_specified.
24219 (mep_handle_option): Access target_flags via opts pointer. Don't
24220 assert that global structures are in use. Defer part of -mivc2
24221 handling and move it to mep_option_override.
24222 * config/mep/mep.opt (IVC2): New Mask entry.
24223 (mivc2): Use Var and Defer instead of Mask.
24225 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24227 * config/v850/v850-opts.h: New.
24228 * config/v850/v850.c (small_memory): Replace with
24229 small_memory_physical_max array. Make that array static const.
24230 (v850_handle_memory_option): Take integer value of argument. Take
24231 gcc_options pointer, option text and location. Return void.
24232 Update for changes to small memory structures.
24233 (v850_handle_option): Access target_flags via opts pointer. Don't
24234 assert that global structures are in use. Update calls to
24235 v850_handle_memory_option.
24236 (v850_encode_data_area): Update references to small memory settings.
24237 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
24238 (enum small_memory_type): Move to v850-opts.h.
24239 * config/v850/v850.opt (config/v850/v850-opts.h): New
24240 HeaderInclude entry.
24241 (small_memory_max): New Variable entry.
24242 (msda): Replace by pair of options msda= and msda-. Use UInteger.
24243 (mtda, mzda): Likewise.
24245 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24247 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
24248 pointer. Don't assert that global structures are in use.
24250 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24252 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
24253 via opts pointer. Don't assert that global structures are in use.
24255 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24257 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
24258 (munix=93): Use Var.
24259 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
24260 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
24261 * config/pa/pa-opts.h: New.
24262 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
24263 (pa_handle_option): Don't assert that global structures are in
24264 use. Access target_flags via opts pointer. Don't handle
24265 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
24267 (pa_option_override): Handle deferred OPT_mfixed_range_.
24269 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24271 * config/mn10300/mn10300-opts.h: New.
24272 * config/mn10300/mn10300.c (mn10300_processor,
24273 mn10300_tune_string): Remove.
24274 (mn10300_handle_option): Don't assert that global structures are
24275 in use. Access mn10300_processor via opts pointer. Don't handle
24277 * config/mn10300/mn10300.h (enum processor_type): Move to
24279 (mn10300_processor): Remove.
24280 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
24281 HeaderInclude entry.
24282 (mn10300_processor): New Variable entry.
24285 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24287 * config/microblaze/microblaze.c: Don't include opts.h.
24288 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
24289 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
24290 (mno-clearbss): Use Var and Warn.
24292 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24294 * config/m32r/m32r-opts.h: New.
24295 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
24296 (m32r_handle_option): Don't assert that global structures are in
24297 use. Access target_flags and m32r_cache_flush_func via opts
24298 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
24299 OPT_mno_flush_trap here.
24300 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
24301 include of m32r-opts.h.
24302 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
24303 HeaderInclude entry.
24304 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
24305 (mmodel=): Use Enum and Var.
24306 (m32r_model): New Enum and EnumValue entries.
24307 (mno-flush-trap): Use Var.
24308 (msdata=): Use Enum and Var.
24309 (m32r_sdata): New Enum and EnumValue entries.
24311 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24313 * config/m32c/m32c.c: Don't include opts.h.
24314 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
24315 m32c_handle_option): Remove.
24316 (m32c_option_override): Check global_options_set.x_target_memregs
24317 instead of target_memregs_set.
24318 * config/m32c/m32c.h (target_memregs): Remove.
24319 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
24322 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24324 * config/iq2000/iq2000-opts.h: New.
24325 * config/iq2000/iq2000.c: Don't include opts.h.
24326 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
24327 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
24328 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
24329 HeaderInclude entry.
24330 (iq2000_tune): New Variable entry.
24331 (march=): Add comment. Use Enum.
24332 (iq2000_arch): New Enum and EnumValue entries.
24333 (mcpu=): Use Enum and Var.
24334 (iq2000_tune): New Enum and EnumValue entries.
24336 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24338 * config/ia64/ia64-opts.h: New.
24339 * config/ia64/ia64.c (ia64_tune): Remove.
24340 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
24341 here. Use error_at.
24342 (ia64_option_override): Handle deferred OPT_mfixed_range_.
24343 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
24344 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
24345 HeaderInclude entry.
24346 (ia64_tune): New Variable entry.
24347 (mfixed-range=): Use Defer and Var.
24348 (mtune=): Use Enum and Var.
24349 (ia64_tune): New Enum and EnumValue entries.
24351 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24353 * config/frv/frv-opts.h: New.
24354 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
24356 (frv_cpu_type): Remove.
24357 * config/frv/frv.c: Don't include opts.h.
24358 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
24359 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
24360 (frv_cpu_type): New Variable entry.
24361 (frv_cpu): New Enum and EnumValue entries.
24363 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24365 * config/cris/cris.c (cris_handle_option): Access target_flags via
24366 opts pointer. Don't assert that global structures are in use.
24367 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
24368 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
24370 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24372 * config/bfin/bfin-opts.h: New.
24373 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
24374 bfin_si_revision, bfin_workarounds): Remove.
24375 (bfin_cpus): Make static const.
24376 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
24377 not bfin_lib_id_given.
24378 (bfin_handle_option): Don't set bfin_lib_id_given. Access
24379 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
24380 pointer. Use error_at. Don't assert that global structures are in use.
24381 * config/bfin/bfin.h: Include bfin-opts.h.
24382 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
24383 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
24384 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
24385 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
24388 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24390 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
24391 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
24392 or -msoft-float here.
24393 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
24394 -msoft-float and -mhard-float.
24395 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
24396 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
24398 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
24400 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
24401 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
24403 (LIBGCC_SPEC): Don't handle -msoft-float.
24404 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
24406 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
24408 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
24409 -mfloat-abi=*, not -msoft-float and -mhard-float.
24410 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
24412 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
24413 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
24414 mhard-float and msoft-float.
24415 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
24416 mfloat-abi=soft in comments, not mhard-float and msoft-float.
24417 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
24418 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
24420 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
24421 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
24423 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
24425 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
24428 2011-03-22 Richard Henderson <rth@redhat.com>
24430 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
24431 TARGET_ABI_WINDOWS_NT.
24432 (alpha_output_function_end_prologue): Likewise.
24433 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
24434 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
24435 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
24436 (trap, *movsi_nt_vms): Likewise.
24437 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
24438 (*tablejump_osf_nt_internal): Remove.
24439 * config/alpha/predicates.md (input_operand): Only test Pmode.
24441 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24443 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
24444 via opts pointer. Use error_at. Don't assert that global
24445 structures are in use.
24447 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24449 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
24450 (ix86_handle_option): Access ix86_isa_flags and
24451 ix86_isa_flags_explicit via opts pointer. Don't assert that
24452 global structures are in use.
24453 (ix86_function_specific_save, ix86_function_specific_restore):
24454 Update ix86_isa_flags_explicit field name.
24455 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
24456 (ix86_isa_flags_explicit): Rename TargetSave entry to
24457 x_ix86_isa_flags_explicit.
24459 2011-03-22 Richard Henderson <rth@redhat.com>
24461 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
24462 (alpha_option_override, direct_return): Likewise.
24463 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
24464 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
24465 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
24466 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
24467 (alpha_expand_epilogue, alpha_end_function): Likewise.
24468 (alpha_init_libfuncs): Likewise.
24469 (struct machine_function): Remove unicosmk members.
24470 (print_operand) ['t']: Remove.
24471 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
24472 unicosmk_output_module_name, unicosmk_output_common,
24473 current_section_align, unicosmk_output_text_section_asm_op,
24474 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
24475 unicosmk_section_type_flags, unicosmk_unique_section,
24476 unicosmk_asm_named_section, unicosmk_insert_attributes,
24477 unicosmk_output_align, unicosmk_defer_case_vector,
24478 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
24479 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
24480 unicosmk_output_ssib, unicosmk_add_call_info_word,
24481 unicosmk_extern_head, unicosmk_output_default_externs,
24482 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
24483 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
24484 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
24485 * config/alpha/alpha-protos.h: Update.
24486 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
24487 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
24488 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
24489 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
24490 (*mulsi_se, mulvsi3): Likewise.
24491 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
24492 (*divmodsi_internal, call, call_value, realign): Likewise.
24493 (moddi3, umoddi3): Likewise; remove duplicate expander.
24494 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
24495 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
24496 (*movdi_nofix): Remove r/U alternative.
24497 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
24498 * config/alpha/constraints.md ("U"): Remove.
24499 * config/alpha/predicates.md (call_operand"): Don't test
24500 TARGET_ABI_UNICOSMK.
24502 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24504 * target.def (handle_option): Take gcc_options and
24505 cl_decoded_option pointers and location_t.
24506 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
24507 * doc/tm.texi: Regenerate.
24508 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
24509 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
24510 * lto-opts.c (lto_reissue_options): Generate option structure for
24511 targetm.handle_option call.
24512 * opts.c (target_handle_option): Update call to
24513 targetm.handle_option. Remove assertions about values now passed
24515 * targhooks.c (default_target_handle_option): New.
24516 * targhooks.h (default_target_handle_option): Declare.
24517 * config/alpha/alpha.c: Include opts.h.
24518 (alpha_handle_option): Update to new hook interface.
24519 * config/arm/arm.c: Include opts.h.
24520 (arm_handle_option): Update to new hook interface.
24521 * config/arm/t-arm (arm.o): Update dependencies.
24522 * config/bfin/bfin.c: Include opts.h.
24523 (bfin_handle_option): Update to new hook interface.
24524 * config/cris/cris.c: Include opts.h.
24525 (cris_handle_option): Update to new hook interface.
24526 * config/frv/frv.c: Include opts.h.
24527 (frv_handle_option): Update to new hook interface.
24528 * config/i386/i386.c: Include opts.h.
24529 (ix86_handle_option): Update to new hook interface.
24530 (ix86_valid_target_attribute_inner_p): Generate option structure
24531 for call to ix86_handle_option.
24532 * config/i386/t-i386 (i386.o): Update dependencies.
24533 * config/ia64/ia64.c: Include opts.h.
24534 (ia64_handle_option): Update to new hook interface.
24535 * config/ia64/t-ia64 (ia64.o): Update dependencies.
24536 * config/iq2000/iq2000.c: Include opts.h.
24537 (iq2000_handle_option): Update to new hook interface.
24538 * config/m32c/m32c.c: Include opts.h.
24539 (m32c_handle_option): Update to new hook interface.
24540 * config/m32r/m32r.c: Include opts.h.
24541 (m32r_handle_option): Update to new hook interface.
24542 * config/m68k/m68k.c: Include opts.h.
24543 (m68k_handle_option): Update to new hook interface.
24544 * config/mep/mep.c: Include opts.h.
24545 (mep_handle_option): Update to new hook interface.
24546 * config/microblaze/microblaze.c: Include opts.h.
24547 (microblaze_handle_option): Update to new hook interface.
24548 * config/mips/mips.c: Include opts.h.
24549 (mips_handle_option): Update to new hook interface.
24550 * config/mn10300/mn10300.c: Include opts.h.
24551 (mn10300_handle_option): Update to new hook interface.
24552 * config/pa/pa.c: Include opts.h.
24553 (pa_handle_option): Update to new hook interface.
24554 * config/pdp11/pdp11.c: Include opts.h.
24555 (pdp11_handle_option): Update to new hook interface.
24556 * config/rs6000/rs6000.c: Include opts.h.
24557 (rs6000_handle_option): Update to new hook interface.
24558 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
24559 * config/rx/rx.c: Include opts.h.
24560 (rx_handle_option): Update to new hook interface.
24561 * config/s390/s390.c: Include opts.h.
24562 (s390_handle_option): Update to new hook interface.
24563 * config/score/score.c: Include opts.h.
24564 (score_handle_option): Update to new hook interface.
24565 * config/sh/sh.c: Include opts.h.
24566 (sh_handle_option): Update to new hook interface.
24567 * config/sparc/sparc.c: Include opts.h.
24568 (sparc_handle_option): Update to new hook interface.
24569 * config/v850/v850.c: Include opts.h.
24570 (v850_handle_option): Update to new hook interface.
24572 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24574 * gcc.c (driver_unknown_option_callback): Only permit and save
24575 unknown -Wno- options.
24576 (driver_wrong_lang_callback): Save options directly instead of via
24577 driver_unknown_option_callback.
24579 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
24581 * combine.c (simplify_set): Try harder to find the best CC mode when
24582 simplifying a nested COMPARE on the RHS.
24584 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24586 * config/alpha/gnu.h: Remove.
24587 * config/arc: Remove directory.
24588 * config/arm/netbsd.h: Remove.
24589 * config/arm/t-pe: Remove.
24590 * config/crx: Remove directory.
24591 * config/i386/netbsd.h: Remove.
24592 * config/m68hc11: Remove directory.
24593 * config/m68k/uclinux-oldabi.h: Remove.
24594 * config/mcore/mcore-pe.h: Remove.
24595 * config/mcore/t-mcore-pe: Remove.
24596 * config/netbsd-aout.h: Remove.
24597 * config/rs6000/gnu.h: Remove.
24598 * config/sh/sh-symbian.h: Remove.
24599 * config/sh/symbian-base.c: Remove.
24600 * config/sh/symbian-c.c: Remove.
24601 * config/sh/symbian-cxx.c: Remove.
24602 * config/sh/symbian-post.h: Remove.
24603 * config/sh/symbian-pre.h: Remove.
24604 * config/sh/t-symbian: Remove.
24605 * config/svr3.h: Remove.
24606 * config/vax/netbsd.h: Remove.
24607 * config.build: Don't handle i[34567]86-*-pe.
24608 * config.gcc: Remove handling of deprecations for most deprecated
24610 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
24611 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
24612 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
24613 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
24614 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
24615 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
24617 * config.host: Don't handle i[34567]86-*-pe.
24618 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
24619 (ASM_SPEC32): Don't handle -mcall-gnu.
24620 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
24622 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
24623 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
24624 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
24625 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
24626 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
24627 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
24628 conditional on SYMBIAN.
24629 * configure.ac: Don't handle powerpc*-*-gnu*.
24630 * configure: Regenerate.
24631 * doc/extend.texi (interrupt attribute): Don't mention CRX.
24632 * doc/install-old.texi (m6811, m6812): Don't mention.
24633 * doc/install.texi (arc-*-elf*): Don't document multilib option.
24634 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
24635 (m68k-uclinuxoldabi): Don't mention.
24636 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
24638 (-mcall-gnu): Remove.
24639 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
24640 families): Remove constraint documentation.
24642 2011-03-22 Marius Strobl <marius@FreeBSD.org>
24644 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
24645 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
24646 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
24648 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
24651 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
24652 vector when peeking at the next token for vector, don't expand the
24655 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
24657 * config/avr/avr-protos.h (expand_epilogue): Change prototype
24658 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
24659 * config/avr/avr.c (init_cumulative_args)
24660 (avr_function_arg_advance): Use it.
24661 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
24663 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
24664 (avr_function_ok_for_sibcall): ...this new function.
24665 (avr_lookup_function_attribute1): New static Function.
24666 (avr_naked_function_p, interrupt_function_p)
24667 (signal_function_p, avr_OS_task_function_p)
24668 (avr_OS_main_function_p): Use it.
24669 * config/avr/avr.md ("sibcall", "sibcall_value")
24670 ("sibcall_epilogue"): New expander.
24671 ("*call_insn", "*call_value_insn"): New insn.
24672 ("call_insn", "call_value_insn"): Remove
24673 ("call", "call_value", "epilogue"): Change expander to handle
24676 2011-03-21 Nick Clifton <nickc@redhat.com>
24678 * doc/invoke.texi (Overall Options): Move closing brace to end of
24680 (Optimization Options): Add missing @gol.
24681 (Directory Options): Likewise.
24682 (i386 and x86-64 Options): Likewise.
24683 (RS6000 and PowerPC Options): Likewise.
24684 (i386 and x86-64 Windows Options): Likewise.
24685 (V850 Options): Add text missing from descriptions.
24687 2011-03-22 Richard Henderson <rth@redhat.com>
24689 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
24690 (avr_incoming_return_addr_rtx): New.
24691 (emit_push_byte): New.
24692 (expand_prologue): Use it. Remove incorrect dwarf annotation for
24693 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
24694 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
24695 (emit_pop_byte): New.
24696 (expand_epilogue): Use it. Pop frame pointer by bytes.
24697 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
24698 (INCOMING_RETURN_ADDR_RTX): New.
24699 (INCOMING_FRAME_SP_OFFSET): New.
24700 (ARG_POINTER_CFA_OFFSET): New.
24701 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
24702 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
24705 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
24707 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
24709 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
24710 (FUNCTION_ARG_ADVANCE): Likewise.
24711 * tm.texi.in: Change references to them to hook references.
24712 * tm.texi: Regenerate.
24713 * targhooks.c (default_function_arg): Eliminate check for target
24715 (default_function_incoming_arg): Likewise.
24716 (default_function_arg_advance): Likewise.
24717 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
24718 (function_arg_advance): Likewise.
24719 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
24721 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
24723 * tree.c (build_call_1): New function.
24724 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
24726 2011-03-22 Richard Guenther <rguenther@suse.de>
24728 PR tree-optimization/48228
24729 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
24730 for single-arg PHIs.
24732 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
24734 PR rtl-optimization/48143
24735 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
24736 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
24737 sse2_cvtps2pd): Likewise.
24739 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24741 * recog.c (canonicalize_change_group): Use validate_unshare_change.
24743 2011-03-22 Richard Guenther <rguenther@suse.de>
24745 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
24746 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
24747 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
24748 and REALIGN_LOAD_EXPR.
24749 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
24750 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
24751 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
24752 DOT_PROD_EXPR case ...
24753 (expand_expr_real_2): ... here.
24754 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
24755 and REALIGN_LOAD_EXPR.
24756 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
24757 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
24758 (vect_create_epilog_for_reduction): Likewise.
24759 (vectorizable_reduction): Likewise.
24760 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
24761 * tree-vect-stmts.c (vectorizable_load): Likewise.
24763 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
24765 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
24767 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24769 * config/s390/s390.c (s390_delegitimize_address): Fix offset
24770 handling for PLTOFF/GOTOFF.
24772 2011-03-22 Nick Clifton <nickc@redhat.com>
24774 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
24775 trailing backslash from the end of the macro definition.
24777 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24779 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
24782 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
24784 * expr.h (prepare_operand): Move to...
24785 * optabs.h (prepare_operand): ...here and change the insn code
24786 parameter from "int" to "enum insn_code".
24787 (insn_operand_matches): Declare.
24788 * expr.c (init_expr_target): Use insn_operand_matches.
24789 (compress_float_constant): Likewise.
24790 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
24791 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
24792 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
24793 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
24795 (gen_cond_trap): Likewise.
24796 (prepare_operand): Likewise. Change icode to an insn_code.
24797 (insn_operand_matches): New function.
24798 * reload.c (find_reloads_address_1): Use insn_operand_matches.
24799 * reload1.c (gen_reload): Likewise.
24800 * targhooks.c (default_secondary_reload): Likewise.
24802 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
24804 * config/alpha/alpha.md (unspec): New define_c_enum.
24807 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
24810 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
24811 between a call and its CALL_ARG_LOCATION note.
24813 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
24815 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
24817 2011-03-21 Jakub Jelinek <jakub@redhat.com>
24821 * c-common.c (shorten_compare): If primopN is first sign-extended
24822 to opN and then zero-extended to result type, set primopN to opN.
24824 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
24826 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
24827 for barrier handlers.
24829 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
24831 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
24832 UNSPEC constants to be in the unspec enumeration, and redefine
24833 all UNSPECV constants to be in the unspecv enumeration, so that
24834 dumps print which unspec/unspec_volatile this is.
24835 * config/rs6000/vector.md (UNSPEC_*): Ditto.
24836 * config/rs6000/paired.md (UNSPEC_*): Ditto.
24837 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
24838 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
24839 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
24841 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
24842 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
24843 UNSPECV_LWSYNC, since these are used as unspec_volatile.
24844 * config/rs6000/sync.md (isync, lwsync): Ditto.
24846 2011-03-21 Richard Guenther <rguenther@suse.de>
24848 * params.def (lto-min-partition): Fix typo.
24850 2011-03-21 Richard Guenther <rguenther@suse.de>
24853 * c-decl.c (grokdeclarator): Drop to the main variant only
24854 for array types. Drop flag_gen_aux_info check.
24856 2011-03-21 Richard Guenther <rguenther@suse.de>
24858 PR translation/47911
24859 * params.def (lto-partitions): Fix typo.
24860 (lto-min-partition): Fix wording.
24862 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
24864 * config/rs6000/t-freebsd: Remove duplication from file.
24866 2011-03-21 Richard Guenther <rguenther@suse.de>
24868 PR middle-end/47661
24869 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
24871 2011-03-21 Richard Guenther <rguenther@suse.de>
24874 * params.def (lto-partitions): Require at least 1 partition.
24876 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24878 * gthr-solaris.h: Remove.
24879 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
24880 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
24881 (LIB_SPEC): Likewise.
24882 * config/sol2.opt (threads): Remove.
24883 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
24884 (sparc*-*-solaris2*): Likewise.
24885 * configure.ac (enable_threads): Enable solaris support.
24886 * configure: Regenerate.
24887 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
24888 * doc/install.texi (Configuration, --enable-threads=lib): Remove
24891 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24893 * config.gcc: Obsolete *-*-solaris2.8*.
24894 * doc/install.texi (Specific, *-*-solaris2*): Document it.
24896 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24899 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
24900 reference. Solaris 8 perl works.
24902 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24905 * doc/install.texi (Prerequisites): Move jar etc. up.
24906 Explain support library version requirements.
24908 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24911 * doc/install.texi (Prerequisites): Move Perl to build
24912 requirements. Always necessary on Solaris 2 with Sun ld.
24914 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24916 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
24918 (Specific, i?86-*-solaris2.[89]): Likewise.
24919 (Specific, i?86-*-solaris2.10): Likewise.
24920 (Specific, mips-sgi-irix6): Likewise.
24921 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
24922 Update for binutils 2.21.
24924 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24926 * configure.ac (gcc_cv_lto_plugin): Fix typo.
24927 Allow -fuse-linker-plugin for non-default plugin linker.
24928 * configure: Regenerate.
24930 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
24933 * gengtype.c (files_rules): Added rule for cp/parser.h.
24935 2011-03-21 Jakub Jelinek <jakub@redhat.com>
24938 * config/s390/s390.c (s390_delegitimize_address): Don't call
24939 lowpart_subreg if orig_x has BLKmode.
24941 2011-03-21 Kai Tietz <ktietz@redhat.com>
24944 * doc/plugins.texi: Adjust documentation for plugin register_callback.
24945 * tree.h (attribute_spec): Add new member affects_type_identity.
24946 * attribs.c (empty_attribute_table): Adjust attribute_spec
24948 * config/alpha/alpha.c: Likewise.
24949 * config/arc/arc.c: Likewise.
24950 * config/arm/arm.c: Likewise.
24951 * config/avr/avr.c: Likewise.
24952 * config/bfin/bfin.c: Likewise.
24953 * config/crx/crx.c: Likewise.
24954 * config/darwin.h: Likewise.
24955 * config/h8300/h8300.c: Likewise.
24956 * config/i386/cygming.h: Likewise.
24957 * config/i386/i386.c: Likewise.
24958 * config/ia64/ia64.c: Likewise.
24959 * config/m32c/m32c.c: Likewise.
24960 * config/m32r/m32r.c: Likewise.
24961 * config/m68hc11/m68hc11.c: Likewise.
24962 * config/m68k/m68k.c: Likewise.
24963 * config/mcore/mcore.c: Likewise.
24964 * config/mep/mep.c: Likewise.
24965 * config/microblaze/microblaze.c: Likewise.
24966 * config/mips/mips.c: Likewise.
24967 * config/rs6000/rs6000.c: Likewise.
24968 * config/rx/rx.c: Likewise.
24969 * config/sh/sh.c: Likewise.
24970 * config/sol2.h: Likewise.
24971 * config/sparc/sparc.c: Likewise.
24972 * config/spu/spu.c: Likewise.
24973 * config/stormy16/stormy16.c: Likewise.
24974 * config/v850/v850.c: Likewise.
24976 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
24978 * simplify-rtx.c (simplify_binary_operation_1): Handle
24979 (xor (and A B) C) case when B and C are both constants.
24981 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
24983 * tree-dfa.c (add_referenced_var): Fix typo in comment.
24985 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
24988 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
24990 2011-03-20 Jakub Jelinek <jakub@redhat.com>
24992 PR rtl-optimization/48156
24993 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
24994 assume df and df_lr are not NULL.
24996 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
24999 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
25000 between a call and its CALL_ARG_LOCATION note.
25002 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
25005 * config/sh/sh.c (find_barrier): Don't emit a constant pool
25006 between a call and its corresponding CALL_ARG_LOCATION note.
25008 2011-03-19 Anatoly Sokolov <aesok@post.ru>
25010 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
25011 instead of loop. Use HARD_REGISTER_NUM_P predicate.
25012 * haifa-sched.c (setup_ref_regs): Ditto.
25013 * caller-save.c (add_used_regs_1): Ditto.
25014 * dse.c (look_for_hardregs): Ditto.
25015 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
25016 * sched-rgn.c (check_live_1): Ditto.
25018 2011-03-18 Joseph Myers <joseph@codesourcery.com>
25020 * c-decl.c (diagnose_mismatched_decls): Give an error for
25021 redefining a typedef with variably modified type.
25023 2011-03-18 Joseph Myers <joseph@codesourcery.com>
25025 * c-decl.c (grokfield): Don't allow typedefs for structures or
25026 unions with no tag by default.
25027 * doc/extend.texi (Unnamed Fields): Update.
25029 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
25031 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
25032 Rewrite using indirect functions.
25033 (lwp_slwpcb): Ditto.
25034 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
25035 (avx_vinsertf128<mode>): Ditto.
25037 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25039 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
25042 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25044 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
25045 splitting between a call and its corresponding CALL_ARG_LOCATION note.
25047 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
25049 PR rtl-optimization/48170
25050 * gcse.c (hoist_code): Remove bogus asserts.
25052 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
25054 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
25055 computation for prologue/epilogue.
25057 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25059 * Makefile.in (check-consistency): Remove.
25061 2011-03-18 Jakub Jelinek <jakub@redhat.com>
25064 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
25065 arange_table_in_use is 0, but either text_section_used or
25066 cold_text_section_used is true. Don't call it if
25067 !info_section_emitted.
25069 2011-03-18 Anatoly Sokolov <aesok@post.ru>
25071 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
25072 FUNCTION_VALUE_REGNO_P): Remove.
25073 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
25075 * config/avr/avr.c (avr_ret_register): Make static inline.
25076 (avr_function_value_regno_p): New function.
25077 (avr_libcall_value): Make static. Add 'func' argument.
25078 (avr_function_value): Make static. Rename 'func' argument to
25079 'fn_decl_or_type', forward it to avr_libcall_value. Call
25080 avr_ret_register function instead of RET_REGISTER macro.
25081 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
25083 2011-03-18 Jason Merrill <jason@redhat.com>
25086 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
25088 2011-03-18 Richard Guenther <rguenther@suse.de>
25090 * doc/install.texi (--enable-gold): Remove.
25091 (--with-plugin-ld): Document.
25092 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
25094 2011-03-18 Andrew Pinski <pinskia@gmail.com>
25096 PR middle-end/47790
25097 * expr.c (optimize_bitfield_assignment_op): Revamp to work
25098 again after expansion changes.
25100 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
25102 * combine.c (try_combine): Do simplification only call of
25103 subst() on i2 even when i1 is present. Update comments.
25105 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
25107 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
25108 and UNSPEC_PCREL_SYMOFF.
25110 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25112 * config/s390/s390.md: Use define_c_enum for the unspec constant
25115 2011-03-18 Richard Henderson <rth@redhat.com>
25116 Jakub Jelinek <jakub@redhat.com>
25119 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
25120 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
25122 2011-03-17 Anatoly Sokolov <aesok@post.ru>
25124 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
25125 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
25126 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
25127 Change return type to bool.
25128 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
25130 2011-03-17 Jakub Jelinek <jakub@redhat.com>
25133 * var-tracking.c (prepare_call_arguments): If CALL target
25134 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
25135 pc instead of looking it up using cselib_lookup and use
25136 Pmode for it if x has VOIDmode.
25137 * dwarf2out.c (gen_subprogram_die): If also both first and
25138 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
25141 * function.c (assign_parms): For data.passed_pointer parms
25142 use MEM of data.entry_parm instead of data.entry_parm itself
25143 as DECL_INCOMING_RTL.
25144 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
25145 also when passed and declared mode is the same, DECL_RTL
25146 is a MEM with pseudo as address and DECL_INCOMING_RTL is
25149 2011-03-16 Jeff Law <law@redhat.com>
25151 PR rtl-optimization/37273
25152 * ira-costs.c (scan_one_insn): Detect constants living in memory and
25153 handle them like argument loads from stack slots. Do not double
25154 count memory for memory constants and argument loads from stack slots.
25156 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
25159 * var-tracking.c (prepare_call_arguments): Check SUBREG.
25161 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
25164 * config/i386/i386.opt: Add Save to -mavx and -mfma.
25166 2011-03-17 Jakub Jelinek <jakub@redhat.com>
25169 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
25171 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
25172 Clear call_arg_locations and call_arg_loc_last always.
25174 PR middle-end/48152
25175 * var-tracking.c (prepare_call_arguments): If argument needs to be
25176 passed by reference, adjust argtype and mode.
25178 2011-03-17 Richard Guenther <rguenther@suse.de>
25180 PR middle-end/48134
25181 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
25182 a value make sure to fold the statement.
25184 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
25187 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
25188 return condition with !cfun->calls_alloca.
25190 2011-03-17 Richard Guenther <rguenther@suse.de>
25193 * lto-cgraph.c (input_overwrite_node): Clear the abstract
25194 origin for decls in other ltrans units.
25195 (input_varpool_node): Likewise.
25197 2011-03-17 Richard Guenther <rguenther@suse.de>
25199 PR middle-end/48165
25200 * tree-object-size.c (compute_object_offset): Properly return
25201 the offset operand of MEM_REFs as sizetype.
25203 2011-03-17 Jakub Jelinek <jakub@redhat.com>
25205 PR rtl-optimization/48141
25206 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
25207 * dse.c: Include params.h.
25208 (active_local_stores_len): New variable.
25209 (add_wild_read, dse_step1): Clear it when setting active_local_stores
25211 (record_store, check_mem_read_rtx): Decrease it when removing
25213 (scan_insn): Likewise. Increase it when adding to chain, if it
25214 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
25215 set active_local_stores to NULL before the addition.
25216 * Makefile.in (dse.o): Depend on $(PARAMS_H).
25218 PR rtl-optimization/48141
25219 * dse.c (record_store): If no positions are needed in an insn
25220 that cannot be deleted, at least unchain it from active_local_stores.
25222 2011-03-16 Dodji Seketeli <dodji@redhat.com>
25225 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
25226 (lookup_type_die_strip_naming_typedef): ... here.
25227 (get_context_die): Use it.
25228 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
25229 the anonymous struct named by the naming typedef.
25231 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
25234 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
25235 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
25237 2011-03-16 Jeff Law <law@redhat.com>
25239 * tree-vrp.c (identify_jump_threads): Slightly simplify type
25240 check for operands of conditional. Allow type to be a pointer.
25242 2011-03-16 Richard Guenther <rguenther@suse.de>
25244 PR tree-optimization/48149
25245 * fold-const.c (fold_binary_loc): Fold
25246 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
25248 2011-03-16 Richard Guenther <rguenther@suse.de>
25250 PR tree-optimization/26134
25251 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
25252 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
25253 (non_rewritable_mem_ref_base): Handle complex type component
25254 accesses, constrain offsets for vector and complex extracts
25257 2011-03-16 Richard Guenther <rguenther@suse.de>
25259 PR tree-optimization/48146
25260 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
25261 operands avoiding the need for renaming.
25263 2011-03-16 Richard Guenther <rguenther@suse.de>
25265 * gimple-fold.c (maybe_fold_reference): Open-code relevant
25266 constant folding. Move MEM_REF canonicalization first.
25267 Rely on fold_const_aggregate_ref for initializer folding.
25268 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
25270 2011-03-16 Jakub Jelinek <jakub@redhat.com>
25272 PR middle-end/48136
25273 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
25274 arg0/arg1 or their arguments are always fold converted to matching
25277 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
25280 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25283 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
25284 Handle in-tree gold.
25285 (ld_vers): Extract binutils version for gold.
25286 (gcc_cv_ld_hidden): Handle gold here.
25287 (gcc_cv_lto_plugin): Determine level of linker plugin support.
25288 * configure: Regenerate.
25289 * config.in: Regenerate.
25290 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
25291 -fuse-linker-plugin otherwise.
25292 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
25293 (LINK_COMMAND_SPEC): Use it.
25294 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
25296 2011-03-16 Jakub Jelinek <jakub@redhat.com>
25298 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
25299 * calls.c: Remove debug.h include.
25300 (emit_call_1): Don't call virtual_call_token debug hook.
25301 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
25302 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
25303 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
25304 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
25305 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
25306 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
25307 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
25308 dwarf2out_virtual_call): Remove.
25309 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
25310 copy_call_info and virtual_call hooks.
25311 (dwarf2out_init): Don't initialize vcall_insn_table,
25312 debug_dcall_section and debug_vcall_section.
25313 (prune_unused_types): Don't mark nodes from dcall_table.
25314 (dwarf2out_finish): Don't output dcall or vcall tables.
25315 * final.c (final_scan_insn): Don't call direct_call or
25316 virtual_call debug hooks.
25317 * debug.h (struct gcc_debug_hooks): Remove direct_call,
25318 virtual_call_token, copy_call_info and virtual_call hooks.
25319 (debug_nothing_uid): Remove prototype.
25320 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
25321 copy_call_info and virtual_call hooks.
25322 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
25323 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
25324 * debug.c (do_nothing_debug_hooks): Likewise.
25325 (debug_nothing_uid): Remove.
25326 * doc/invoke.texi (-fenable-icf-debug): Remove.
25327 * common.opt (-fenable-icf-debug): Likewise.
25329 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
25330 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
25331 call's MEM. Handle functions returning aggregate through a hidden
25332 first pointer. For virtual calls add clobbered pc to call arguments
25334 * dwarf2out.c (gen_subprogram_die): Emit
25335 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
25339 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
25340 * rtl.h (ENTRY_VALUE_EXP): Define.
25341 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
25342 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
25343 * print-rtl.c (print_rtx): Likewise.
25344 * gengtype.c (adjust_field_rtx_def): Likewise.
25345 * var-tracking.c (vt_add_function_parameter): Adjust
25346 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
25347 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
25348 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
25349 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
25350 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
25352 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
25353 Call var_location debug hook even on CALL_INSNs.
25354 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
25355 * rtl.def (ENTRY_VALUE): New.
25356 * dwarf2out.c: Include cfglayout.h.
25357 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
25358 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
25359 (struct call_arg_loc_node): New type.
25360 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
25361 tail_call_site_count): New variables.
25362 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
25363 DW_TAG_GNU_call_site_parameter.
25364 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
25365 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
25366 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
25367 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
25368 and DW_AT_GNU_all_source_call_sites.
25369 (mem_loc_descriptor): Handle ENTRY_VALUE.
25370 (add_src_coords_attributes): Don't add enything if
25371 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
25372 (dwarf2out_abstract_function): Save and clear call_arg_location,
25373 call_site_count and tail_call_site_count around dwarf2out_decl call.
25374 (gen_call_site_die): New function.
25375 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
25376 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
25377 (dwarf2out_function_decl): Clear call_arg_locations,
25378 call_arg_loc_last, set call_site_count and tail_call_site_count
25379 to -1 and free block_map.
25380 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
25381 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
25382 followed by any real instructions.
25383 (dwarf2out_begin_function): Set call_site_count and
25384 tail_call_site_count to 0.
25385 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
25386 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
25387 attempt to force a DIE for it and worst case remove the attribute.
25388 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
25389 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
25391 * var-tracking.c: Include tm_p.h.
25392 (vt_stack_adjustments): For calls call note_register_arguments.
25393 (argument_reg_set): New variable.
25394 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
25395 ensure the VALUE is resolved.
25396 (call_arguments): New variable.
25397 (prepare_call_arguments): New function.
25398 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
25399 (struct expand_loc_callback_data): Add ignore_cur_loc field.
25400 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
25401 always use the best expression.
25402 (vt_expand_loc): Add ignore_cur_loc argument.
25403 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
25404 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
25405 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
25406 note for all calls.
25407 (vt_add_function_parameter): Use cselib_lookup_from_insn.
25408 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
25409 argument. Don't call cselib_preserve_only_values and
25410 cselib_reset_table.
25411 (note_register_arguments): New function.
25412 (vt_initialize): Compute argument_reg_set. Call
25413 vt_add_function_parameters before processing basic blocks instead of
25414 afterwards. For calls call prepare_call_arguments before calling
25415 cselib_process_insn.
25416 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
25417 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
25418 (var-tracking.o): Depend on $(TM_P_H).
25419 * cfglayout.h (insn_scope): New prototype.
25420 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
25421 * cfglayout.c (insn_scope): No longer static.
25422 * insn-notes.def (CALL_ARG_LOCATION): New.
25423 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
25424 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
25425 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
25426 nothing for DECL_EXTERNAL BLOCK_VARS.
25428 2011-03-16 Alan Modra <amodra@gmail.com>
25431 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
25432 create invalid offset address for vsx splat insn.
25433 * config/rs6000/predicates.md (splat_input_operand): New.
25434 * config/rs6000/vsx.md (vsx_splat_*): Use it.
25436 2011-03-15 Xinliang David Li <davidxl@google.com>
25439 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
25440 (normalize_preds): New function.
25441 (is_use_properly_guarded): Normalize def predicates.
25443 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
25446 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
25447 in the output template.
25449 2011-03-15 Richard Guenther <rguenther@suse.de>
25451 PR middle-end/47650
25452 * tree-pretty-print.c (dump_function_declaration): Properly
25453 dump unprototyped and varargs function types.
25455 2011-03-15 Richard Guenther <rguenther@suse.de>
25457 PR tree-optimization/13954
25458 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
25461 2011-03-15 Richard Guenther <rguenther@suse.de>
25463 PR tree-optimization/48037
25464 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
25465 selects into BIT_FIELD_REFs.
25466 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
25469 2011-03-15 Jakub Jelinek <jakub@redhat.com>
25471 PR tree-optimization/48129
25472 * builtins.c (fold_builtin_snprintf): Convert to type of
25473 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
25474 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
25476 2011-03-15 Richard Guenther <rguenther@suse.de>
25478 PR tree-optimization/41490
25479 * tree-ssa-dce.c (propagate_necessity): Handle returns without
25480 value but with VUSE.
25481 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
25483 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
25484 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
25485 * tree-tailcall.c (find_tail_calls): Ignore returns.
25487 2011-03-15 Richard Guenther <rguenther@suse.de>
25489 PR middle-end/48031
25490 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
25491 or variable-indexed array accesses when in gimple form.
25493 2011-03-15 Richard Guenther <rguenther@suse.de>
25495 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
25497 2011-03-15 Alan Modra <amodra@gmail.com>
25500 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
25501 presume symbol_refs without a symbol_ref_decl are suitably
25502 aligned, nor other trees we may see here. Handle anchor symbols.
25503 (legitimate_constant_pool_address_p): Comment. Add mode param.
25504 Check cmodel=medium addresses. Adjust all calls.
25505 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
25506 creating cmodel=medium optimized access to locals.
25507 * config/rs6000/constraints.md (R): Pass QImode to
25508 legitimate_constant_pool_address_p.
25509 * config/rs6000/predicates.md (input_operand): Pass mode to
25510 legitimate_constant_pool_address_p.
25511 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
25514 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
25517 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
25518 64-bit constants being loaded into registers other than GPRs such
25519 as loading 0 into a VSX register.
25521 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25523 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
25525 2011-03-14 Jakub Jelinek <jakub@redhat.com>
25527 PR middle-end/47917
25528 * builtins.c (fold_builtin_snprintf): New function.
25529 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
25530 (fold_builtin_4): Likewise.
25532 PR middle-end/38878
25533 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
25534 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
25535 and C - X == X also strip nops from +/-/p+ operand.
25536 When optimizing -X == C, fold C to arg0's type.
25539 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
25540 emit it as add_AT_int instead of add_AT_unsigned.
25542 2011-03-14 Tom Tromey <tromey@redhat.com>
25544 * unwind-dw2.c: Include sys/sdt.h if it exists.
25545 (_Unwind_DebugHook): Use STAP_PROBE2.
25546 * config.in, configure: Rebuild.
25547 * configure.ac: Check for sys/sdt.h.
25549 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
25551 * config/i386/i386.md (ROUND_FLOOR): New constant.
25552 (ROUND_CEIL): Ditto.
25553 (ROUND_TRUNC): Ditto.
25554 (ROUND_MXCSR): Ditto.
25555 (ROUND_NO_EXC): Ditto.
25556 (rint<mode>2): Use new defines instead of numerical constants.
25557 (floor<mode>2): Ditto.
25558 (ceil<mode>2): Ditto.
25559 (btrunc<mode>2): Ditto.
25560 * config/i386/i386-builtin-types.def: Define ROUND function type
25562 * config/i386/i386.c (enum ix86_builtins): Add
25563 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
25564 (struct builtin_description): Add
25565 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
25566 (ix86_expand_sse_round): New static function.
25567 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
25569 (ix86_builtin_vectorized_function): Handle
25570 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
25572 2011-03-14 Tom Tromey <tromey@redhat.com>
25574 * c-parser.c (c_parser_asm_string_literal): Clear
25575 warn_overlength_strings.
25577 2011-03-14 Tom Tromey <tromey@redhat.com>
25579 * c-parser.c (disable_extension_diagnostics): Save
25580 warn_overlength_strings.
25581 (restore_extension_diagnostics): Restore warn_overlength_strings.
25583 2011-03-14 Jakub Jelinek <jakub@redhat.com>
25585 * BASE-VER: Change to 4.7.0.
25587 2011-03-14 Richard Guenther <rguenther@suse.de>
25589 PR middle-end/48098
25590 * tree.c (build_vector_from_val): Adjust assert to requirements
25593 2011-03-14 Jakub Jelinek <jakub@redhat.com>
25596 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
25598 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
25600 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
25601 terms of target_flags_explicit. Adjust copyright year.
25603 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
25604 * config/rs6000/t-freebsd: New file. Add override for
25607 2011-03-13 Chris Demetriou <cgd@google.com>
25609 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
25610 (-fno-diagnostics-show-option): this, to reflect current default.
25611 (-Werror=): Update text about -fno-diagnostics-show-option.
25613 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
25616 * config/rs6000/predicates.md (easy_vector_constant_add_self,
25617 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
25618 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
25619 mode is not V2DImode or V2DFmode.
25620 (vspltis_constant): Do not handle V2DImode and V2DFmode.
25621 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
25622 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
25624 (movdi_internal64): Likewise.
25626 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
25628 PR tree-optimization/47127
25629 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
25631 (set_cloog_options): Same.
25632 (scop_to_clast): Same.
25633 (print_clast_stmt): Do not call cloog_state_malloc and
25635 (print_generated_program): Same.
25637 * graphite-clast-to-gimple.h (cloog_state): Declared.
25638 (scop_to_clast): Adjust declaration.
25639 * graphite.c (cloog_state): Defined here.
25640 (graphite_initialize): Call cloog_state_malloc.
25641 (graphite_finalize): Call cloog_state_free.
25643 2011-03-11 Jason Merrill <jason@redhat.com>
25645 * attribs.c (lookup_attribute_spec): Take const_tree.
25648 2011-03-11 Joseph Myers <joseph@codesourcery.com>
25650 * config/sparc/sparc.c (sparc_option_override): Use
25651 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
25653 2011-03-11 Richard Guenther <rguenther@suse.de>
25655 PR tree-optimization/48067
25656 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
25657 multiplication result will be only used once on the target
25660 2011-03-11 Richard Guenther <rguenther@suse.de>
25662 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
25664 2011-03-11 Richard Guenther <rguenther@suse.de>
25667 * tree.c (find_decls_types_r): Do not walk types only reachable
25668 from IDENTIFIER_NODEs.
25670 2011-03-11 Jakub Jelinek <jakub@redhat.com>
25672 PR middle-end/48044
25673 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
25674 all vnode->force_output nodes as needed.
25676 2011-03-11 Jason Merrill <jason@redhat.com>
25679 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
25680 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
25682 2011-03-11 Martin Jambor <mjambor@suse.cz>
25684 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
25687 2011-03-11 Jakub Jelinek <jakub@redhat.com>
25689 PR tree-optimization/48063
25690 * ipa-inline.c (cgraph_decide_inlining): Don't try to
25691 inline functions called once if !tree_can_inline_p (node->callers).
25693 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
25695 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
25697 * config/score/score3.c: Delete.
25698 * config/score/score3.h: Delete.
25699 * config/score/mul-div.S: Delete.
25700 * config/score/sfp-machine.h: Add new file.
25701 * config/score/constraints.md: Add new file.
25702 * config/score/t-score-softfp: Add new file.
25703 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
25704 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
25705 (score7_extra_constraint): Delete.
25706 (score7_option_override): Remove unused code.
25707 * config/score/score.c: Remove score3 and score5 define and code.
25708 * config/score/score.h: Remove score3 and score5 define and code.
25709 * config/score/score.md: Remove score3 template and unusual insn.
25710 * config/score/score.opt: Remove score3 and score5 options.
25712 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25714 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
25715 when _HPUX_SOURCE is defined.
25716 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
25718 2011-03-10 Jason Merrill <jason@redhat.com>
25721 * stor-layout.c (layout_type): Don't set structural equality
25722 on arrays of incomplete type.
25723 * tree.c (type_hash_eq): Handle comparing them properly.
25725 2011-03-10 Jakub Jelinek <jakub@redhat.com>
25728 * config/s390/s390.c (s390_delegitimize_address): Make sure the
25729 result mode matches original rtl mode.
25731 2011-03-10 Nick Clifton <nickc@redhat.com>
25733 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
25734 (andsi3, andsi3_flags): Fix timings for three operand alternative.
25736 2011-03-09 Jakub Jelinek <jakub@redhat.com>
25738 PR rtl-optimization/47866
25739 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
25740 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
25741 if target wasn't scalar.
25742 * function.c (assign_stack_temp_for_type): Assert that neither
25743 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
25744 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
25746 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
25748 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25750 * config/s390/s390-protos.h (s390_label_align): New prototype.
25751 * config/s390/s390.c (s390_label_align): New function.
25752 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
25754 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
25757 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
25758 V2DI/V2DF constants. Only all 0's or all 1's are easy.
25759 (output_vec_const_move): Ditto.
25761 2011-03-08 Anatoly Sokolov <aesok@post.ru>
25763 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
25764 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
25765 * config/mips/mips.c (mips_preferred_reload_class): Make static.
25766 Change 'rclass' argument and result type to reg_class_t.
25767 (TARGET_PREFERRED_RELOAD_CLASS): Define.
25769 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
25771 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
25772 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
25773 (TARGET_MEMORY_MOVE_COST): Define.
25774 (avr_register_move_cost, avr_memory_move_cost): New Functions.
25776 2011-03-08 Jakub Jelinek <jakub@redhat.com>
25779 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
25782 PR tree-optimization/48022
25783 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
25786 2011-03-07 Jakub Jelinek <jakub@redhat.com>
25789 * var-tracking.c (find_use_val): Return NULL for
25790 cui->sets && cui->store_p BLKmode MEMs.
25792 2011-03-07 Anatoly Sokolov <aesok@post.ru>
25794 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
25796 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
25797 xstormy16_print_operand_address): Remove.
25798 * config/stormy16/stormy16.c (xstormy16_print_operand,
25799 xstormy16_print_operand_address): Make static.
25800 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
25802 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
25805 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
25806 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
25809 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
25812 * cfgloopmanip.c (fix_bb_placements): Return immediately
25813 if FROM is BASE_LOOP's header.
25815 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
25817 * gimplify.c (gimplify_function_tree): Fix building calls
25818 to __builtin_return_address.
25820 2011-03-07 Alan Modra <amodra@gmail.com>
25822 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
25823 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
25824 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
25825 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
25827 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
25828 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
25829 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
25830 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
25831 * config/rs6000/rs6000.c
25832 (rs6000_elf_end_indicate_exec_stack): Rename to..
25833 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
25834 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
25835 (rs6000_file_start): ..here.
25836 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
25837 file scope variables.
25838 (call_ABI_of_interest): New function.
25839 (init_cumulative_args): Set above vars when function return value
25840 is a float, vector, or small struct.
25841 (rs6000_function_arg_advance_1): Likewise for function args.
25842 (rs6000_va_start): Set rs6000_passes_float if variable arg function
25843 references float args.
25845 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
25847 * doc/cfg.texi: Remove "See" before @ref.
25848 * doc/invoke.texi: Likewise.
25850 2011-03-05 Jason Merrill <jason@redhat.com>
25852 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
25854 2011-03-05 Anthony Green <green@moxielogic.com>
25856 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
25858 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
25860 PR rtl-optimization/47899
25861 * cfgloopmanip.c (fix_bb_placements): Fix first argument
25862 to flow_loop_nested_p when moving the loop upward.
25864 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
25867 * arm.md (movhi_insn_arch4): Accept any immediate constant.
25869 2011-03-05 Jakub Jelinek <jakub@redhat.com>
25871 PR tree-optimization/47967
25872 * ipa-cp.c (build_const_val): Return NULL instead of creating
25873 VIEW_CONVERT_EXPR for mismatching sizes.
25874 (ipcp_create_replace_map): Return NULL if build_const_val failed.
25875 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
25876 give up on versioning.
25878 2011-03-05 Alan Modra <amodra@gmail.com>
25881 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
25882 full cmodel medium/large lo_sum + high addresses.
25884 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25886 * config/s390/s390.c (s390_decompose_address): Reject non-literal
25887 pool references in UNSPEC_LTREL_OFFSET.
25889 2011-03-04 Jan Hubicka <jh@suse.cz>
25892 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
25893 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
25894 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
25896 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
25897 cgraph_add_thunk): Add node pointers.
25898 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
25899 associated to right node.
25900 (input_node): Update use of cgraph_same_body_alias
25901 and cgraph_add_thunk.
25903 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
25905 * config/i386/i386.opt (mprefer-avx128): New flag.
25906 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
25907 modes when the flag -mprefer-avx128 is on.
25909 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
25911 * dwarf2out.c (compare_loc_operands): Fix address handling.
25913 2011-03-04 Alan Modra <amodra@gmail.com>
25915 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
25917 2011-03-04 Richard Guenther <rguenther@suse.de>
25919 PR middle-end/47968
25920 * expmed.c (extract_bit_field_1): Prefer vector modes that
25921 vec_extract patterns can handle.
25923 2011-03-04 Richard Guenther <rguenther@suse.de>
25925 PR middle-end/47975
25926 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
25928 2011-03-04 Richard Henderson <rth@redhat.com>
25930 * explow.c (emit_stack_save): Remove 'after' parameter.
25931 (emit_stack_restore): Likewise.
25932 * expr.h: Update to match.
25933 * builtins.c, calls.c, stmt.c: Likewise.
25934 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
25935 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
25936 * function.c (expand_function_end): Insert the emit_stack_save
25937 sequence before parm_birth_insn instead of after.
25939 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
25941 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
25942 (ssse3_pmaddubsw128): Ditto.
25943 (ssse3_pmaddubsw): Ditto.
25945 2011-03-03 Steve Ellcey <sje@cup.hp.com>
25947 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
25949 2011-03-03 Jakub Jelinek <jakub@redhat.com>
25952 * gimplify.c (omp_add_variable): Only call omp_notice_variable
25953 on TYPE_SIZE_UNIT if it is a DECL.
25956 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
25957 first operand is not is_gimple_mem_ref_addr, try to fold it.
25958 If the operand still isn't is_gimple_mem_ref_addr, clear
25961 2011-03-03 Richard Guenther <rguenther@suse.de>
25963 PR middle-end/47283
25964 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
25966 (refs_may_alias_p_1): For release branches return true if
25967 we are confused by our input.
25969 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25971 * config/s390/s390.c (s390_function_value): Rename to ...
25972 (s390_function_and_libcall_value): ... this.
25973 (s390_function_value): New function.
25974 (s390_libcall_value): New function.
25975 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
25976 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
25977 target macro definitions.
25978 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
25980 2011-03-02 Joseph Myers <joseph@codesourcery.com>
25982 * config/i386/freebsd64.h (CC1_SPEC): Define.
25983 * config/i386/linux64.h (CC1_SPEC): Define.
25984 * config/i386/x86-64.h (CC1_SPEC): Don't define.
25986 2011-03-02 Anatoly Sokolov <aesok@post.ru>
25988 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
25990 * config/stormy16/stormy16.c: Include reload.h.
25991 (xstormy16_memory_move_cost): New function.
25992 (TARGET_MEMORY_MOVE_COST): Define.
25994 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
25996 PR rtl-optimization/47925
25997 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
25998 with side effects. Remove the more-specific check for volatile asms.
26000 2011-03-02 Alan Modra <amodra@gmail.com>
26003 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
26004 toc relative addresses for valid offsets.
26006 2011-03-01 Richard Guenther <rguenther@suse.de>
26008 PR tree-optimization/47890
26009 * tree-vect-loop.c (get_initial_def_for_induction): Set
26010 related stmt properly.
26012 2011-03-01 Richard Guenther <rguenther@suse.de>
26015 * lto-streamer.c (lto_record_common_node): Also register
26016 the canonical type.
26018 2011-03-01 Richard Guenther <rguenther@suse.de>
26021 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
26022 Do not stream DECL_ABSTRACT_ORIGIN.
26023 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
26024 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
26025 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
26026 Do not stream DECL_ABSTRACT_ORIGIN.
26027 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
26028 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
26030 2011-02-28 Anatoly Sokolov <aesok@post.ru>
26032 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
26033 FUNCTION_VALUE_REGNO_P): Remove.
26034 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
26035 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
26036 Add 'outgoing' argument.
26037 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
26039 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
26040 TARGET_FUNCTION_VALUE_REGNO_P): Define.
26042 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
26045 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
26046 (lookup_filename): Likewise.
26047 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
26049 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
26050 Jakub Jelinek <jakub@redhat.com>
26052 PR middle-end/47893
26053 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
26054 (assign_stack_local_1): Change last argument type to int.
26055 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
26056 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
26057 don't record padding space into frame_space_list nor use those areas.
26058 (assign_stack_local): Adjust caller.
26059 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
26060 of assign_stack_local, pass 0 as last argument.
26061 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
26064 2011-02-28 Jakub Jelinek <jakub@redhat.com>
26067 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
26068 Use target address_mode and pointer_mode hooks instead of hardcoded
26069 Pmode and ptr_mode. Handle some simple cases of extending if
26070 POINTERS_EXTEND_UNSIGNED < 0.
26071 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
26072 Call convert_debug_memory_address.
26073 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
26074 convert_debug_memory_address.
26076 PR middle-end/46790
26077 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
26078 * configure: Regenerated.
26079 * config.in: Regenerated.
26080 * varasm.c (default_function_section): Return NULL
26081 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
26083 2011-02-28 Martin Jambor <mjambor@suse.cz>
26085 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
26086 the description to match the printed values.
26088 2011-02-28 Richard Guenther <rguenther@suse.de>
26090 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
26091 of the copied scope tree.
26093 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26095 * doc/extend.texi (Function Attributes): Avoid deeply (and
26096 wrongly) nested tables.
26098 2011-02-27 Jakub Jelinek <jakub@redhat.com>
26100 PR middle-end/47903
26101 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
26102 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
26103 r isn't op0 nor op1.
26105 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
26107 * config/avr/avr.md: Remove magic comment for emacs.
26109 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
26112 * config/avr/avr.c (avr_option_override): Use error on bad options.
26113 (avr_help): New function.
26114 (TARGET_HELP): Define.
26116 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
26119 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
26120 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
26122 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
26124 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
26125 (ARM Options): Ditto.
26126 (i386 and x86-64 Options): Ditto.
26127 (RX Options): Ditto.
26128 (SPARC Options): Ditto.
26130 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
26132 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
26133 FreeBSD 6 and later. Generally use cpu generic.
26135 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
26137 * doc/cpp.texi: Update copyright years.
26139 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
26142 * config/lm32/lm32.md (ashrsi3): Added needed variable.
26144 2011-02-25 Jon Beniston <jon@beniston.com>
26147 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
26148 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
26149 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
26150 (lm32_block_move_inline): Add type cast to remove warning.
26151 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
26152 (gen_int_relational): Move declarations to start of function.
26154 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
26156 PR tree-optimization/45470
26157 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
26158 can throw internally only.
26159 * tree-vect-stmts.c (vectorizable_call): Likewise.
26161 2011-02-24 Anatoly Sokolov <aesok@post.ru>
26163 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
26164 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
26165 * config/stormy16/stormy16-protos.h
26166 (xstormy16_preferred_reload_class): Remove.
26167 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
26168 static. Change 'rclass' argument and return type to reg_class_t.
26169 (TARGET_PREFERRED_RELOAD_CLASS,
26170 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
26172 2011-02-24 Richard Guenther <rguenther@suse.de>
26174 * lto-streamer-in.c (input_bb): Do not find referenced vars
26175 in debug statements.
26177 2011-02-23 Jason Merrill <jason@redhat.com>
26179 * common.opt (fabi-version): Document v5 and v6.
26181 2011-02-23 Richard Guenther <rguenther@suse.de>
26183 PR tree-optimization/47849
26184 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
26186 2011-02-23 Jie Zhang <jie@codesourcery.com>
26188 * opts-common.c (decode_cmdline_option): Print empty string
26189 argument as "" in decoded->orig_option_with_args_text.
26190 * gcc.c (execute): Print empty string argument as ""
26191 in the verbose output.
26192 (do_spec_1): Keep empty string argument.
26194 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
26196 * config.gcc: Declare score-* and crx-* obsolete.
26198 2011-02-23 Jie Zhang <jie@codesourcery.com>
26200 PR rtl-optimization/47763
26201 * web.c (web_main): Ignore naked clobber when replacing register.
26203 2011-02-22 Anatoly Sokolov <aesok@post.ru>
26205 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
26208 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
26211 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
26213 2011-02-22 Mike Stump <mikestump@comcast.net>
26215 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
26217 * configure: Regenerate.
26219 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
26221 PR rtl-optimization/46002
26222 * ira-color.c (update_copy_costs): Change class intersection
26223 test to reg_class_contents[] test of 'hard_regno'.
26225 2011-02-21 Joseph Myers <joseph@codesourcery.com>
26227 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
26228 than Driver option.
26229 * config/hpux11.opt (mt): Likewise.
26230 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
26231 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
26232 * config/vax/elf.opt (mno-asm-pic): Likewise.
26233 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
26235 2011-02-21 Mike Stump <mikestump@comcast.net>
26238 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
26239 tree so we can get save the type.
26240 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
26241 for CFString instead of trying to use past the end of the builtins.
26242 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
26243 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
26244 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
26245 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
26246 Rename to darwin_builtin_cfstring.
26247 (darwin_init_cfstring_builtins): Return the built type.
26249 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
26252 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
26253 (_mm256_insert_epi64): Use _mm_insert_epi64.
26255 2011-02-21 Anatoly Sokolov <aesok@post.ru>
26257 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26258 * config/stormy16/stormy16-protos.h
26259 (xstormy16_mode_dependent_address_p): Remove.
26260 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
26261 Make static. Change return type to bool. Change argument type to
26262 const_rtx. Remove dead code.
26263 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26265 2011-02-21 Richard Guenther <rguenther@suse.de>
26268 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
26269 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
26270 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
26272 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
26273 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
26275 2011-02-20 Richard Guenther <rguenther@suse.de>
26278 * tree.c (free_lang_data_in_decl): Clean builtins from
26279 the TU decl BLOCK_VARS.
26281 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
26285 * haifa-sched.c (fix_tick_ready): Skip tick computation
26288 2011-02-19 Richard Guenther <rguenther@suse.de>
26291 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
26292 Remove lazy BLOCK_VARS streaming.
26293 (lto_input_ts_block_tree_pointers): Likewise.
26294 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
26296 2011-02-19 Joseph Myers <joseph@codesourcery.com>
26298 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
26300 2011-02-19 Joseph Myers <joseph@codesourcery.com>
26302 * config/i386/biarch32.h, config/i386/mach.h,
26303 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
26305 2011-02-19 Jakub Jelinek <jakub@redhat.com>
26308 * config/i386/i386.md (peephole2 for shift and plus): Use
26309 operands[1] original mode in the first insn.
26311 2011-02-18 Mike Stump <mikestump@comcast.net>
26313 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
26315 2011-02-18 Jan Hubicka <jh@suse.cz>
26317 PR middle-end/47788
26318 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
26319 to zero when the function is not inlinable at all.
26321 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26323 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
26324 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
26325 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
26326 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
26327 * config/pa/t-pa64: Likewise.
26328 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
26330 2011-02-18 Jakub Jelinek <jakub@redhat.com>
26333 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
26335 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26338 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
26340 2011-02-18 Anatoly Sokolov <aesok@post.ru>
26342 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
26343 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
26344 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
26345 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
26346 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
26347 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
26348 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
26349 m32r_load_postinc_p, m32r_store_preinc_predec_p,
26350 m32r_legitimate_address_p): New functions.
26351 * config/m32r/constraints.md (constraint "S"): Don't use
26352 STORE_PREINC_PREDEC_P.
26353 (constraint "U"): Don't use LOAD_POSTINC_P.
26355 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
26357 PR rtl-optimization/46178
26358 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
26359 compute ira_hard_regno_cover_class[].
26361 2011-02-18 Richard Guenther <rguenther@suse.de>
26364 * lto-streamer.h (lto_global_var_decls): Declare.
26365 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
26366 statics for global var processing.
26368 2011-02-18 Richard Guenther <rguenther@suse.de>
26370 PR tree-optimization/47737
26371 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
26372 edge dominance check.
26374 2011-02-18 Jakub Jelinek <jakub@redhat.com>
26377 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
26378 avoid invalid rtx sharing.
26380 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
26382 * doc/cpp.texi (Obsolete Features): Add background on the
26383 origin of assertions.
26385 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
26387 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
26389 * config/darwin.c (output_objc_section_asm_op): Added support for
26391 (is_objc_metadata): New.
26392 (darwin_objc2_section): New.
26393 (darwin_objc1_section): New.
26394 (machopic_select_section): Added support for ABI v1 and v2.
26395 (darwin_emit_objc_zeroed): New.
26396 (darwin_output_aligned_bss): Detect objc metadata and treat it
26398 (darwin_asm_output_aligned_decl_common): Same.
26399 (darwin_asm_output_aligned_decl_local): Same.
26400 * config/darwin-sections.def: Updated for ABI v1 and v2.
26401 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
26402 compiling Objective-C code for the NeXT runtime, default to using
26403 ABI version 0 for 32-bit, and version 2 for 64-bit.
26405 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26407 * common.opt (optimize_fast): New Variable.
26408 * opts.c (default_options_optimization): Use opts->x_optimize_fast
26409 instead of local variable ofast.
26411 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
26413 * doc/invoke.texi (fobjc-abi-version): Documented.
26414 (fobjc-nilcheck): Documented.
26415 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
26418 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26421 * common.opt (export-dynamic): New Driver option.
26422 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
26424 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26426 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
26428 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
26429 Jan Hubicka <jh@suse.cz>
26433 * cfgexpand.c (account_used_vars_for_block): Remove.
26434 (estimated_stack_frame_size): Use referenced vars.
26435 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
26436 that were referenced in the original function. Test src_fn
26437 rather than cfun. Drop redundant get_var_ann.
26438 (setup_one_parameter): Drop redundant get_var_ann.
26439 (declare_return_variable): Likewise.
26440 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
26441 (copy_arguments_for_versioning): Drop redundant get_var_ann.
26442 * ipa-inline.c (compute_inline_parameters): Do not compute
26443 disregard_inline_limits here.
26444 (compute_inlinable_for_current, pass_inlinable): New.
26445 (pass_inline_parameters): Require PROP_referenced_vars.
26446 * cgraphunit.c (cgraph_process_new_functions): Don't run
26447 compute_inline_parameters explicitly unless function is in SSA form.
26448 (cgraph_analyze_function): Set .disregard_inline_limits.
26449 * tree-sra.c (convert_callers): Compute inliner parameters
26450 only for functions already in SSA form.
26452 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26454 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
26455 -mlittle-endian-data.
26457 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26459 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
26460 -mno-fpu, not -fpu and -no-fpu.
26461 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
26462 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
26464 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
26467 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
26468 input reload with PLUS RTX.
26470 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26472 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
26473 of InverseVar(MDMX).
26475 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26477 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
26480 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26482 * config/mn10300/mn10300.opt (mno-crt0): New.
26484 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26486 * config/m68k/uclinux.opt (static-libc): New Driver option.
26488 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26490 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
26492 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26494 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
26495 %{muser-extend-enabled}.
26497 2011-02-16 Richard Guenther <rguenther@suse.de>
26499 PR tree-optimization/47738
26500 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
26501 the TODO from tree_predictive_commoning.
26503 2011-02-15 Jeff Law <law@redhat.com>
26506 2011-01-25 Jeff Law <law@redhat.com>
26508 PR rtl-optimization/37273
26509 * ira-costs.c (scan_one_insn): Detect constants living in memory and
26510 handle them like argument loads from stack slots. Do not double
26511 count memory for memory constants and argument loads from stack slots.
26513 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
26516 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
26517 mode for vector constants. Remove code that checks for TImode.
26519 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26523 * cgraph.h (compute_inline_parameters): Return void.
26524 * ipa-inline.c (compute_inline_parameters): Adjust.
26526 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26530 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
26532 * cfgexpand.c (estimated_stack_frame_size): Likewise.
26533 * ipa-inline.c (compute_inline_parameters): Adjust.
26535 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26539 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
26540 Adjust all users. Pass FN to...
26541 * tree-flow-inline.h (first_referenced_var): ... this. Add
26543 * ipa-struct-reorg.c: Adjust.
26544 * tree-dfa.c: Adjust.
26545 * tree-into-ssa.c: Adjust.
26546 * tree-sra.c: Adjust.
26547 * tree-ssa-alias.c: Adjust.
26548 * tree-ssa-live.c: Adjust.
26549 * tree-ssa.c: Adjust.
26550 * tree-ssanames.c: Adjust.
26551 * tree-tailcall.c: Adjust.
26553 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26557 * tree-flow.h (referenced_var_lookup): Add fn parameter.
26558 Adjust all callers.
26559 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
26560 * tree-flow-inline.h: Adjust.
26561 * gimple-pretty-print.c: Adjust.
26562 * tree-into-ssa.c: Adjust.
26563 * tree-ssa.c: Adjust.
26564 * cfgexpand.c: Adjust.
26566 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
26568 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
26569 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26570 (EXTRA_CONSTRAINT): Delete.
26571 * config/iq2000/constraints.md: New file.
26572 * config/iq2000/iq2000.md: Include it.
26573 (define_insn ""): Delete.
26574 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
26575 unsupported constraint letters from patterns.
26576 (call_value, call_value_internal1): Likewise.
26577 (call_value_multiple_internal1): Likewise.
26579 2011-02-15 Nick Clifton <nickc@redhat.com>
26581 * config/mn10300/mn10300.c: Include tm-constrs.h.
26582 (struct liw_data): New data structure describing an LIW candidate
26584 (extract_bundle): Use struct liw_data. Allow small integer
26585 operands for some instructions.
26586 (check_liw_constraints): Use struct liw_data. Remove swapped
26587 parameter. Add comments describing the checks. Fix bug when
26588 assigning the source of liw1 to the source of liw2.
26589 (liw_candidate): Delete. Code moved into extract_bundle.
26590 (mn10300_bundle_liw): Use struct liw_data. Check constraints
26592 * config/mn10300/predicates.md (liw_operand): New predicate.
26593 Allows registers and small integer constants.
26594 * config/mn10300/constraints.md (O): New constraint. Accetps
26595 integers in the range -8 to +7 inclusive.
26596 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
26597 for moving a small integer into a register. Give this alternative
26599 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
26600 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
26601 using the J,K,L and M constraints,
26602 (liw): Remove SI mode on second operands to allow for HI and QI
26604 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
26607 2011-02-15 Richard Guenther <rguenther@suse.de>
26609 PR tree-optimization/47743
26610 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
26611 for a non-type-compatible VN lookup bail out.
26613 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
26615 * config/fr30/constraints.md: New file.
26616 * config/fr30/fr30.md: Include it.
26617 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
26618 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26619 (EXTRA_CONSTRAINT): Delete.
26621 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
26623 * config/frv/constraints.md: New file.
26624 * config/frv/predicates.md: Include it.
26625 * config/frv/frv.c (reg_class_from_letter): Delete.
26626 (frv_option_override): Don't initialize it.
26627 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
26628 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
26629 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
26630 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
26631 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
26632 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26633 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
26634 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
26635 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
26636 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
26637 (REG_CLASS_FROM_CONSTRAINT): Delete.
26639 2011-02-15 Jakub Jelinek <jakub@redhat.com>
26641 PR middle-end/47581
26642 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
26643 if frame size is 0 in a leaf function.
26645 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26648 * config/alpha/host-osf.c: New file.
26649 * config/alpha/x-osf: New file.
26650 * config.host (alpha*-dec-osf*): Use it.
26652 2011-02-14 Anatoly Sokolov <aesok@post.ru>
26654 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26655 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
26656 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
26657 (rx_mode_dependent_address_p): ...this. Make static. Change argument
26659 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26661 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
26663 * config/stormy16/constraints.md: New file.
26664 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
26665 Use satisfies_constraint_Q and satisfies_constraint_R.
26666 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
26668 (xstormy16_legitiamte_address_p): Declare.
26669 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
26670 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26671 (EXTRA_CONSTRAINT): Delete.
26672 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
26674 (xstormy16_extra_constraint_p): Delete.
26676 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
26678 PR tree-optimization/46494
26679 * loop-unroll.c (split_edge_and_insert): Adjust comment.
26680 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
26681 (pass_rtl_loop_done): Add TODO_verify_flow.
26682 * fwprop.c (pass_rtl_fwprop): Likewise.
26683 * modulo-sched.c (pass_sms): Likewise.
26684 * tree-ssa-dom.c (pass_dominator): Likewise.
26685 * tree-ssa-loop-ch.c (pass_ch): Likewise.
26686 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
26687 (pass_tree_loop_done): Likewise.
26688 * tree-ssa-pre.c (execute_pre): Likewise.
26689 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
26690 * tree-ssa-sink.c (pass_sink_code): Likewise.
26691 * tree-vrp.c (pass_vrp): Likewise.
26693 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
26695 * config/v850/constraints.md: New file.
26696 * config/v850/v850.md: Include it.
26697 * config/v850/predicates.md (reg_or_0_operand): Use
26698 satisfies_constraint_G.
26699 (special_symbolref_operand): Use satisfies_constraint_K.
26700 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
26701 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
26702 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
26703 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
26704 (EXTRA_CONSTRAINT): Delete.
26705 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
26706 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
26707 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
26709 2011-02-14 Anatoly Sokolov <aesok@post.ru>
26712 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
26715 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
26717 * config/mcore/constraints.md: New file.
26718 * config/mcore/mcore.md: Include it.
26719 * config/mcore/mcore.c (reg_class_from_letter): Delete.
26720 * config/mcore/mcore.h (reg_class_from_letter): Delete.
26721 (REG_CLASS_FROM_LETTER): Delete.
26722 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
26723 insn_const_int_ok_for_constraint.
26724 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
26725 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
26726 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26727 (EXTRA_CONSTRAINT): Delete.
26729 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26732 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
26733 (IS_SIGHANDLER): Define.
26734 (sparc64_is_sighandler): New function, split off from
26735 sparc64_fallback_frame_state.
26736 (sparc_is_sighandler): New function, split off from
26737 sparc_fallback_frame_state.
26738 (sparc64_fallback_frame_state): Merge with ...
26739 (sparc_fallback_frame_state): ... this into ...
26740 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
26741 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
26742 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
26743 stack instead of hardcoded offsets.
26745 2011-02-14 Andriy Gapon <avg@freebsd.org>
26748 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
26750 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26752 * configure: Regenerate.
26754 2011-02-12 Joseph Myers <joseph@codesourcery.com>
26757 * gcc.c (asm_options): Correct spec matching --target-help.
26759 2011-02-12 Martin Jambor <mjambor@suse.cz>
26761 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
26762 to gimple call error.
26764 2011-02-12 Mike Stump <mikestump@comcast.net>
26766 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
26767 comments in backslash regions.
26769 2011-02-12 Mike Stump <mikestump@comcast.net>
26770 Jakub Jelinek <jakub@redhat.com>
26771 Iain Sandoe <iains@gcc.gnu.org>
26774 * dwarf2out.c (output_cfa_loc): When required, apply the
26775 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
26776 (output_loc_sequence): Likewise.
26777 (output_loc_operands_raw): Likewise.
26778 (output_loc_sequence_raw): Likewise.
26779 (output_cfa_loc): Likewise.
26780 (output_loc_list): Suppress register number adjustment when
26781 calling output_loc_sequence()
26782 (output_die): Likewise.
26784 2011-02-12 Anatoly Sokolov <aesok@post.ru>
26786 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
26788 * config/xtensa/xtensa.c (xtensa_register_move_cost,
26789 xtensa_memory_move_cost): New functions.
26790 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
26792 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
26795 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
26796 in the current directory.
26797 * configure: Rebuilt.
26799 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
26801 * config/darwin.c (darwin_override_options): Add a hunk missed
26802 from the commit of r168571. Trim comment line lengths and
26803 correct indents of the preceding block.
26805 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
26807 * gcc.c (driver_handle_option): Concatenate the argument to -F with
26810 2011-02-11 Joseph Myers <joseph@codesourcery.com>
26812 * common.opt (nostartfiles): New Driver option.
26814 2011-02-11 Xinliang David Li <davidxl@google.com>
26816 PR tree-optimization/47707
26817 * tree-chrec.c (convert_affine_scev): Keep type precision.
26819 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
26821 PR tree-optimization/47420
26822 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
26824 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
26826 PR rtl-optimization/47614
26827 * rtl.h (check_for_inc_dec): Declare.
26828 * dse.c (check_for_inc_dec): Externalize...
26829 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
26830 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
26832 2011-02-11 Joseph Myers <joseph@codesourcery.com>
26835 * gcc.c (main): Do not compile inputs if there were errors in
26837 * opts-common.c (read_cmdline_option): Check for wrong language
26838 after other error checks.
26840 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
26842 * cgraph.c: Fix comment typos.
26843 * cgraph.h: Likewise.
26844 * cgraphunit.c: Likewise.
26845 * ipa-cp.c: Likewise.
26846 * ipa-inline.c: Likewise.
26847 * ipa-prop.c: Likewise.
26848 * ipa-pure-const.c: Likewise.
26849 * ipa-ref.c: Likewise.
26850 * ipa-reference.c: Likewise.
26852 2011-02-11 Jakub Jelinek <jakub@redhat.com>
26855 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
26857 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26860 * doc/sourcebuild.texi (Require Support): Document
26861 dg-require-ascii-locale.
26863 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
26865 * doc/lto.texi (Write summary): Fix missing parentheses.
26867 2011-02-10 DJ Delorie <dj@redhat.com>
26869 * config/m32c/m32c.c (m32c_option_override): Disable
26870 -fcombine-stack-adjustments until flag value tracking and compare
26871 optimization can be rewritten.
26873 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
26875 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
26877 (PROCESSOR_DEFAULT64): Likewise.
26879 2011-02-10 Richard Henderson <rth@redhat.com>
26881 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
26882 change from 2011-02-03.
26883 * config/rx/rx.c (flags_from_code): Likewise.
26884 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
26885 is valid, n/pz otherwise.
26886 (rx_select_cc_mode): Return CCmode if Y is not zero.
26888 2011-02-10 Richard Guenther <rguenther@suse.de>
26890 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
26892 2011-02-10 Richard Guenther <rguenther@suse.de>
26894 PR tree-optimization/47677
26895 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
26897 2011-02-10 Jakub Jelinek <jakub@redhat.com>
26900 * combine.c (make_compound_operation): Only change shifts into
26901 multiplication for SCALAR_INT_MODE_P.
26903 2011-02-10 Jie Zhang <jie@codesourcery.com>
26907 2011-02-05 Jie Zhang <jie@codesourcery.com>
26909 * web.c (entry_register): Don't clobber the number of the
26910 first uninitialized reference in used[].
26912 2011-02-09 Richard Guenther <rguenther@suse.de>
26914 PR tree-optimization/47664
26915 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
26918 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
26922 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
26924 (PROCESSOR_DEFAULT64): Same.
26925 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
26927 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26929 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
26931 2011-02-09 Martin Jambor <mjambor@suse.cz>
26933 PR middle-end/45505
26934 * tree-sra.c (struct access): New flags grp_scalar_read and
26935 grp_scalar_write. Changed description of assignment read and write
26937 (dump_access): Dump new flags, reorder all of them.
26938 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
26939 to detect multiple scalar reads.
26940 (analyze_access_subtree): Use the new scalar read write flags instead
26941 of the old flags. Adjusted comments.
26943 2011-02-08 DJ Delorie <dj@redhat.com>
26946 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
26949 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26951 * config/m68k/uclinux.opt: New.
26952 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
26954 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26956 * config/cris/elf.opt (sim): New Driver option.
26958 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26960 * config/xtensa/elf.opt: New.
26961 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
26963 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26965 * config/vax/elf.opt: New.
26966 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
26968 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26970 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
26972 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26974 * config/gnu-user.opt: New.
26975 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
26976 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
26977 *-*-uclinux*): Use gnu-user.opt.
26979 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
26981 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
26982 * config/i386/gnu.h (CPP_SPEC): Likewise.
26984 2011-02-08 Ian Lance Taylor <iant@google.com>
26986 * common.opt (fcx-limited-range): Add SetByCombined flag.
26987 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
26988 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
26989 (fassociative-math, freciprocal-math): Likewise.
26990 (funsafe-math-optimizations): Likewise.
26991 * opth-gen.awk: Handle SetByCombined.
26992 * optc-gen.awk: Likewise.
26993 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
26994 (set_unsafe_math_optimizations_flags): Likewise.
26995 * doc/options.texi (Option properties): Document SetByCombined.
26997 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26999 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
27000 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
27001 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
27002 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
27003 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
27005 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
27007 PR tree-optimization/46834
27008 PR tree-optimization/46994
27009 PR tree-optimization/46995
27010 * graphite-sese-to-poly.c (used_outside_reduction): New.
27011 (detect_commutative_reduction): Call used_outside_reduction.
27012 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
27013 translate_scalar_reduction_to_array only when at least one
27014 loop-phi/close-phi tuple has been detected.
27016 2011-02-08 Richard Guenther <rguenther@suse.de>
27018 PR middle-end/47639
27019 * tree-vect-generic.c (expand_vector_operations_1): Update
27021 (expand_vector_operations): ... not here. Cleanup EH info
27022 and the CFG if required.
27024 2011-02-08 Richard Guenther <rguenther@suse.de>
27026 PR tree-optimization/47641
27027 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
27028 require type compatibility.
27030 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27032 * gimple-low.c (lower_function_body): Don't remove the location of
27033 the return statement here.
27034 (lower_gimple_return): Do it here instead but only if the return
27035 statement is actually used twice.
27037 2011-02-08 Richard Guenther <rguenther@suse.de>
27039 PR tree-optimization/47632
27040 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
27041 unused up_to_stmt parameter, return whether cfg-cleanup is
27042 necessary, remove EH info properly.
27043 (forward_propagate_into_gimple_cond): Adjust caller.
27044 (forward_propagate_into_cond): Likewise.
27045 (forward_propagate_comparison): Likewise.
27046 (tree_ssa_forward_propagate_single_use_vars): Make
27047 forward_propagate_comparison case similar to the two others.
27049 2011-02-08 Nick Clifton <nickc@redhat.com>
27051 * config/mn10300/mn10300.opt (mliw): New command line option.
27052 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
27053 (liw_bundling): New automaton.
27054 (liw): New attribute.
27055 (liw_op): New attribute.
27056 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
27057 (movsi_internal): Add LIW attributes.
27058 (andsi3): Likewise.
27059 (iorsi3): Likewise.
27060 (xorsi3): Likewise.
27061 (addsi3): Separate register and immediate alternatives.
27062 Add LIW attributes.
27063 (subsi3): Likewise.
27065 (aslsi3): Likewise.
27066 (lshrsi3): Likewise.
27067 (ashrsi3): Likewise.
27068 (liw): New pattern.
27069 * config/mn10300/mn10300.c (liw_op_names): New
27070 (mn10300_print_operand): Handle 'W' operand descriptor.
27071 (extract_bundle): New function.
27072 (check_liw_constraints): New function.
27073 (liw_candidate): New function.
27074 (mn10300_bundle_liw): New function.
27075 (mn10300_reorg): New function.
27076 (TARGET_MACHINE_DEPENDENT_REORG): Define.
27077 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
27078 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
27079 __LIW__ or __NO_LIW__.
27080 * doc/invoke.texi: Describe the -mliw command line option.
27082 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27084 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
27085 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
27086 pthread_mutex_unlock): Remove.
27087 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
27088 * config/pa/t-pa64: Likewise.
27089 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
27090 shared libc if not linking against libpthread.
27091 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
27093 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
27096 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
27097 on 10.6 and later to ensure that we always use the unwinder from
27098 the system. Only add -no_compact_unwind when tarteting darwin
27101 2011-02-07 Steve Ellcey <sje@cup.hp.com>
27104 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
27105 (vec_interleave_lowv2sf): Ditto.
27106 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
27107 (vec_extract_oddv2sf): Ditto.
27109 2011-02-07 Mike Stump <mikestump@comcast.net>
27112 Add __ieee_divdc3 entry point.
27113 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
27115 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
27116 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
27117 * config/darwin.c (darwin_rename_builtins): Add.
27118 * config/darwin-protos.h (darwin_rename_builtins): Add.
27120 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
27123 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
27126 2011-02-07 Mike Stump <mikestump@comcast.net>
27128 * config/darwin.opt (mmacosx-version-min): Update default OS version.
27130 2011-02-07 Denis Chertykov <chertykov@gmail.com>
27133 * config/avr/libgcc.S (exit): Move .endfunc
27135 2011-02-07 Richard Guenther <rguenther@suse.de>
27137 PR tree-optimization/47615
27138 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
27139 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
27140 (run_scc_vn): Initialize it.
27141 (visit_reference_op_load): Use it.
27142 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
27144 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27146 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
27147 DImode trapping arithmetic libfuncs.
27149 2011-02-07 Richard Guenther <rguenther@suse.de>
27151 PR tree-optimization/47621
27152 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
27154 (execute_update_addresses_taken): ... here. Make it more
27155 conservative in what we accept.
27157 2011-02-06 Joseph Myers <joseph@codesourcery.com>
27159 * config/sparc/freebsd.h (ASM_SPEC): Define.
27160 * config/sparc/vxworks.h (ASM_SPEC): Define.
27162 2011-02-06 Joseph Myers <joseph@codesourcery.com>
27164 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
27166 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
27168 * doc/invoke.texi: Remove reference to compiler internals from
27169 user documentation.
27171 * reg-notes.def: Remove REG_VALUE_PROFILE.
27172 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
27174 2011-02-05 Jakub Jelinek <jakub@redhat.com>
27176 PR middle-end/47610
27177 * varasm.c (default_section_type_flags): If decl is NULL,
27178 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
27180 2011-02-05 Jie Zhang <jie@codesourcery.com>
27183 * web.c (entry_register): Don't clobber the number of the
27184 first uninitialized reference in used[].
27186 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
27188 PR tree-optimization/46194
27189 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
27190 (build_classic_dist_vector_1): Do not represent classic distance
27191 vectors when the access functions are variating in different loops.
27193 2011-02-04 Joseph Myers <joseph@codesourcery.com>
27195 * config/mips/iris6.opt: New.
27196 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
27198 2011-02-04 Richard Henderson <rth@redhat.com>
27199 Steve Ellcey <sje@cup.hp.com>
27202 * config/ia64/predicates.md (mux1_brcst_element): New.
27203 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
27204 * config/ia64/ia64.c (ia64_unpack_assemble): New.
27205 (ia64_unpack_sign): New.
27206 (ia64_expand_unpack): Rewrite using new routines.
27207 (ia64_expand_widen_sum): Ditto.
27208 (ia64_expand_dot_prod_v8qi): Ditto.
27209 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
27210 routines, add endian check.
27211 (pmpy2_even): Rename from pmpy2_r, add endian check.
27212 (pmpy2_odd): Rename from pmpy2_l, add endian check.
27213 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
27214 (vec_widen_smult_hi_v4hi): Ditto.
27215 (vec_widen_umult_lo_v4hi): Ditto.
27216 (vec_widen_umult_hi_v4hi): Ditto.
27217 (mulv2si3): Change endian checks.
27218 (sdot_prodv4hi): Rewrite with new calls.
27219 (udot_prodv4hi): New.
27220 (vec_pack_ssat_v4hi): Add endian check.
27221 (vec_pack_usat_v4hi): Ditto.
27222 (vec_pack_ssat_v2si): Ditto.
27223 (max1_even): Rename from max1_r, add endian check.
27224 (max1_odd): Rename from max1_l, add endian check.
27225 (*mux1_rev): Format change.
27226 (*mux1_mix): Ditto.
27227 (*mux1_shuf): Ditto.
27228 (*mux1_alt): Ditto.
27229 (*mux1_brcst_v8qi): Use new predicate.
27230 (vec_extract_evenv8qi): Remove endian check.
27231 (vec_extract_oddv8qi): Ditto.
27232 (vec_interleave_lowv4hi): Format change.
27233 (vec_interleave_highv4hi): Ditto.
27234 (mix2_even): Rename from mix2_r, add endian check.
27235 (mix2_odd): Rename from mux2_l, add endian check.
27236 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
27237 (vec_extract_evenodd_helper): Format change.
27238 (vec_extract_evenv4hi): Remove endian check.
27239 (vec_extract_oddv4hi): Remove endian check.
27240 (vec_interleave_lowv2si): Format change.
27241 (vec_interleave_highv2si): Format change.
27242 (vec_initv2si): Remove endian check.
27243 (vecinit_v2si): Add endian check.
27244 (reduc_splus_v2sf): Add endian check.
27245 (reduc_smax_v2sf): Ditto.
27246 (reduc_smin_v2sf): Ditto.
27247 (vec_initv2sf): Remove endian check.
27248 (fpack): Add endian check.
27249 (fswap): Add endian check.
27250 (vec_interleave_highv2sf): Add endian check.
27251 (vec_interleave_lowv2sf): Add endian check.
27252 (fmix_lr): Add endian check.
27253 (vec_setv2sf): Format change.
27254 (*vec_extractv2sf_0_be): Use shift to extract operand.
27255 (*vec_extractv2sf_1_be): New.
27256 (vec_pack_trunc_v4hi): Add endian check.
27257 (vec_pack_trunc_v2si): Format change.
27259 2011-02-04 Jakub Jelinek <jakub@redhat.com>
27261 PR inline-asm/23200
27262 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
27263 do bb, locus and block comparison and disallow loads if it is not set.
27264 (stmt_is_replaceable_p): New function.
27265 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
27267 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
27268 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
27270 * tree-flow.h (stmt_is_replaceable_p): New prototype.
27272 2011-02-04 Joseph Myers <joseph@codesourcery.com>
27274 * config/rs6000/xilinx.opt: New.
27275 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
27277 2011-02-04 Joseph Myers <joseph@codesourcery.com>
27279 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
27281 2011-02-03 Anatoly Sokolov <aesok@post.ru>
27283 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
27284 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
27285 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
27286 secondary_reload_info, xtensa_secondary_reload): Remove.
27287 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
27288 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
27289 (xtensa_preferred_reload_class): Make static. Change return and
27290 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
27291 Use CONST_DOUBLE_P predicate.
27292 (xtensa_preferred_output_reload_class): New function.
27293 (xtensa_secondary_reload): Make static.
27295 2011-02-03 Joseph Myers <joseph@codesourcery.com>
27297 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
27298 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
27299 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
27301 2011-02-03 Jakub Jelinek <jakub@redhat.com>
27303 PR middle-end/31490
27304 * output.h (SECTION_RELRO): Define.
27305 (SECTION_MACH_DEP): Adjust.
27306 (get_variable_section): New prototype.
27307 * varpool.c (varpool_finalize_named_section_flags): New function.
27308 (varpool_assemble_pending_decls): Call it.
27309 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
27310 * cgraphunit.c (cgraph_output_in_order): Call
27311 varpool_finalize_named_section_flags.
27312 * varasm.c (get_section): Allow section flags conflicts between
27313 relro and read-only sections if the section hasn't been declared yet.
27314 Set SECTION_OVERRIDE after diagnosing section type conflict.
27315 (get_variable_section): No longer static.
27316 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
27317 readonly sections that need relocations.
27318 (decl_readonly_section_1): New function.
27319 (decl_readonly_section): Use it.
27322 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
27323 Steve Ellcey <sje@cup.hp.com>
27325 PR middle-end/31490
27326 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
27327 if section attribute used.
27329 2011-02-03 Jakub Jelinek <jakub@redhat.com>
27331 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
27332 * config/darwin.c (SECTION_NO_ANCHOR): Define.
27333 (darwin_init_sections): Remove assertion.
27335 2011-02-03 Nick Clifton <nickc@redhat.com>
27337 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
27339 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
27340 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
27341 instead of "n" and "pz".
27342 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
27345 2011-02-03 Jakub Jelinek <jakub@redhat.com>
27348 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
27349 fma, expand FMA_EXPR as fma{,f,l} call.
27352 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
27353 copy them into a unsigned char variable and pass address of it to
27354 lto_output_data_stream.
27357 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
27358 around backend_init_target and lang_dependent_init_target calls.
27359 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
27360 (verify_cgraph_node): Don't call set_cfun here. Use
27361 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
27362 Set error_found for incorrectly represented calls to thunks.
27364 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
27367 PR rtl-optimization/43494
27368 * rtl.h (for_each_inc_dec_fn): New type.
27369 (for_each_inc_dec): Declare.
27370 * rtlanal.c (struct for_each_inc_dec_ops): New type.
27371 (for_each_inc_dec_find_inc_dec): New fn.
27372 (for_each_inc_dec_find_mem): New fn.
27373 (for_each_inc_dec): New fn.
27374 * dse.c (struct insn_size): Remove.
27375 (replace_inc_dec, replace_inc_dec_mem): Remove.
27376 (emit_inc_dec_insn_before): New fn.
27377 (check_for_inc_dec): Use it, along with for_each_inc_dec.
27378 (canon_address): Pass mem modes to cselib_lookup.
27379 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
27380 (cselib_lookup_from_insn): Likewise.
27381 (cselib_subst_to_values): Likewise.
27382 * cselib.c (find_slot_memmode): New var.
27383 (cselib_find_slot): New fn. Use it instead of
27384 htab_find_slot_with_hash everywhere.
27385 (entry_and_rtx_equal_p): Use find_slot_memmode.
27386 (autoinc_split): New fn.
27387 (rtx_equal_for_cselib_p): Rename and implement in terms of...
27388 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
27389 Deal with autoinc. Special-case recursion into MEMs.
27390 (cselib_hash_rtx): Likewise.
27391 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
27392 address and MEM modes.
27393 (cselib_subst_to_values): Add memmode, pass it on.
27395 (cselib_lookup): Add memmode argument, pass it on.
27396 (cselib_lookup_from_insn): Add memmode.
27397 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
27398 (struct cselib_record_autoinc_data): New.
27399 (cselib_record_autoinc_cb): New fn.
27400 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
27401 mode to cselib_lookup. Reset autoinced REGs here instead of...
27402 (cselib_process_insn): ... here.
27403 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
27405 (add_uses): Likewise, also to cselib_subst_to_values.
27406 (add_stores): Likewise.
27407 * sched-deps.c (add_insn_mem_dependence): Pass mode to
27408 cselib_subst_to_values.
27409 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
27410 * gcse.c (do_local_cprop): Adjusted.
27411 * postreload.c (reload_cse_simplify_set): Adjusted.
27412 (reload_cse_simplify_operands): Adjusted.
27413 * sel-sched-dump (debug_mem_addr_value): Pass mode.
27415 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
27417 PR tree-optimization/45122
27418 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
27419 unsafe assumptions when there's more than one loop exit.
27421 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
27424 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27425 Document using vector double with the load/store builtins, and
27426 that the load/store builtins always use Altivec instructions.
27428 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
27429 to use altivec memory instructions, even on VSX.
27430 (vector_altivec_store_<mode>): Ditto.
27432 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
27435 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27436 V2DF, V2DI support to load/store overloaded builtins.
27438 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
27439 altivec load/store builtins for V2DF/V2DI types.
27441 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27442 set avoid indexed addresses on power6 if -maltivec.
27443 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
27444 vector_altivec_load/vector_altivec_store builtins.
27445 (altivec_expand_st_builtin): Ditto.
27446 (altivec_expand_builtin): Add VSX memory builtins.
27447 (rs6000_init_builtins): Add V2DI types to internal types.
27448 (altivec_init_builtins): Add support for V2DF/V2DI altivec
27449 load/store builtins.
27450 (rs6000_address_for_altivec): Insure memory address is appropriate
27453 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
27454 vec_vsx_ld and vec_vsx_st.
27455 (vsx_store_<mode>): Ditto.
27457 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
27458 variables to hold long long types for VSX vector memory builtins.
27459 (RS6000_BTI_unsigned_long_long): Ditto.
27460 (long_long_integer_type_internal_node): Ditti.
27461 (long_long_unsigned_type_internal_node): Ditti.
27463 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
27464 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
27465 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
27467 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
27469 (vec_vsx_st): Ditto.
27471 2011-02-02 Joseph Myers <joseph@codesourcery.com>
27473 * config/pa/pa-hpux10.opt: New.
27474 * config/hpux11.opt (pthread): New Driver option.
27475 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
27476 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
27478 2011-02-02 Joseph Myers <joseph@codesourcery.com>
27480 * config/ia64/vms.opt: New.
27481 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
27483 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
27486 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
27487 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
27488 generator functions.
27489 (vsx_floatuns<VSi><mode>2): Ditto.
27490 (vsx_fix_trunc<mode><VSi>2): Ditto.
27491 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
27493 2011-02-02 Joseph Myers <joseph@codesourcery.com>
27495 * config/i386/djgpp.opt (posix): New Driver option.
27497 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
27499 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
27500 Move to the unsupported targets list.
27502 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
27504 PR rtl-optimization/47525
27505 * df-scan.c: Update copyright years.
27506 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
27507 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
27509 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27511 * config/i386/sysv4.h (TARGET_VERSION): Remove.
27512 (SUBTARGET_RETURN_IN_MEMORY): Remove.
27513 (ASM_OUTPUT_ASCII): Remove.
27514 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
27516 2011-02-02 Jeff Law <law@redhat.com>
27518 PR middle-end/47543
27519 * reload.c (find_reloads_address): Handle reg+d address where both
27520 components are invalid by reloading the entire address.
27522 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
27523 Richard Guenther <rguenther@suse.de>
27525 PR tree-optimization/40979
27527 * passes.c (init_optimization_passes): After LIM call copy_prop
27528 and DCE to clean up.
27529 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
27531 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
27533 PR tree-optimization/47576
27534 PR tree-optimization/47555
27535 * doc/invoke.texi (scev-max-expr-complexity): Documented.
27536 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
27537 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
27538 * tree-scalar-evolution.c (follow_ssa_edge): Use
27539 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
27541 2011-02-02 Richard Guenther <rguenther@suse.de>
27543 PR tree-optimization/47566
27544 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
27546 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
27550 * tree-inline.c (declare_return_variable): Remove unused caller
27555 * tree-flow-inline.h (clear_is_used, is_used_p): New.
27556 * cfgexpand.c (account_used_vars_for_block): Use them.
27557 * tree-nrv.c (tree_nrv): Likewise.
27558 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
27559 (dump_scope_block): Likewise.
27560 (remove_unused_locals): Likewise.
27564 * tree-inline.c (declare_return_variable): Add result decl to
27565 local decls only once.
27566 * gimple-low.c (record_vars_into): Mark newly-created variables
27569 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
27575 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27577 (no_real_insns_p, schedule_block, set_priorities): Drop special
27578 treatment of boundary debug insns.
27579 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27580 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
27581 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27582 (BOUNDARY_DEBUG_INSN_P): Likewise.
27583 (SCHEDULE_DEBUG_INSN_P): Likewise.
27584 * sched-rgn.c (init_ready_list): Drop special treatment of
27585 boundary debug insns.
27586 * final.c (rest_of_clean_state): Clear notes' BB.
27588 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27590 * config/openbsd.opt (assert=): New Driver option.
27592 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27594 * config/i386/nto.opt: New.
27595 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
27597 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27599 * config/i386/netware.opt: New.
27600 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
27602 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27604 * config/interix.opt (posix): New Driver option.
27606 2011-02-01 DJ Delorie <dj@redhat.com>
27608 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
27610 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
27613 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
27615 PR tree-optimization/47561
27616 * toplev.c (process_options): Print the Graphite flags. Add
27617 flag_loop_flatten to the list of options requiring Graphite.
27619 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27621 * config/i386/cygming.opt (posix): New Driver option.
27623 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27625 * config/arm/vxworks.opt: New.
27626 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
27628 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27630 * config/alpha/elf.opt: New.
27631 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
27632 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
27634 2011-02-01 Richard Guenther <rguenther@suse.de>
27636 PR tree-optimization/47559
27637 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
27638 store-motion on references that can throw.
27640 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
27642 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
27643 * tree-pass.h (TDF_CSELIB): New macro.
27644 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
27645 cselib_lookup): Check for it rather than for TDF_DETAILS.
27647 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
27650 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
27651 is HOST_BIT_BUCKET.
27653 * opts.c (finish_options): Don't add x_aux_base_name if it is
27656 2011-02-01 Richard Guenther <rguenther@suse.de>
27658 PR tree-optimization/47555
27660 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
27662 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
27664 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
27667 * config/lm32/t-lm32: Add multilib for all CPU options.
27669 2011-02-01 Richard Guenther <rguenther@suse.de>
27671 PR tree-optimization/47541
27672 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
27673 sure to have a field at offset zero.
27675 2011-01-31 Joseph Myers <joseph@codesourcery.com>
27677 * config/arc/arc.opt (EB, EL): New Driver options.
27679 2011-01-31 Joseph Myers <joseph@codesourcery.com>
27681 * config/alpha/osf5.opt: New.
27682 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
27684 2011-01-31 Joseph Myers <joseph@codesourcery.com>
27686 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
27688 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
27690 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
27691 -floop-interchange.
27692 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
27693 is an alias of -floop-interchange and that it requires the
27694 Graphite infrastructure.
27695 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
27696 flag_loop_interchange based on the value of flag_tree_loop_linear.
27698 2011-01-31 Jakub Jelinek <jakub@redhat.com>
27699 Richard Guenther <rguenther@suse.de>
27701 PR tree-optimization/47538
27702 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
27703 type instead of r1type, except for comparisons. For right
27704 shifts and comparisons punt if there are mismatches in
27705 sizetype vs. non-sizetype types.
27707 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27709 * doc/sourcebuild.texi (Effective-Target Keywords): Document
27712 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27714 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
27716 * configure: Regenerate.
27718 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27720 * configure.ac (gcc_cv_ld_static_option): Define.
27721 (gcc_cv_ld_dynamic_option): Define.
27722 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
27724 (HAVE_LD_STATIC_DYNAMIC): Update message.
27725 (LD_STATIC_OPTION): Define.
27726 (LD_DYNAMIC_OPTION): Define.
27727 * configure: Regenerate.
27728 * config.in: Regenerate.
27729 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
27730 HAVE_LD_STATIC_DYNAMIC]: Use them.
27732 2011-01-31 Nick Clifton <nickc@redhat.com>
27734 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
27735 registers inside interrupt handlers if the handler is not a leaf
27738 2011-01-31 Nick Clifton <nickc@redhat.com>
27740 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
27741 reg_renumber returning an INVALID_REGNUM.
27743 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
27746 * doc/install.texi: Document host options discarded when cross
27747 configuring target libraries.
27749 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
27752 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
27755 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27757 (no_real_insns_p, schedule_block, set_priorities): Drop special
27758 treatment of boundary debug insns.
27759 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27760 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
27761 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27762 (BOUNDARY_DEBUG_INSN_P): Likewise.
27763 (SCHEDULE_DEBUG_INSN_P): Likewise.
27764 * sched-rgn.c (init_ready_list): Drop special treatment of
27765 boundary debug insns.
27766 * final.c (rest_of_clean-state): Clear notes' BB.
27768 2011-01-31 Alan Modra <amodra@gmail.com>
27770 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
27771 toc relative expressions as we do in print_operand_address.
27773 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
27775 * doc/extend.texi: Follow spelling conventions.
27776 * doc/invoke.texi: Fix a typo.
27778 2011-01-30 Joseph Myers <joseph@codesourcery.com>
27780 * config/hpux11.opt: New.
27781 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
27782 ia64*-*-hpux*): Use hpux11.opt.
27784 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
27786 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
27789 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
27791 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
27794 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
27796 * doc/install.texi (Binaries): Remove outdated reference for
27797 Motorola 68HC11/68HC12 downloads.
27799 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
27801 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
27804 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
27807 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
27810 2011-01-28 Ahmad Sharif <asharif@google.com>
27812 * value-prof.c (check_counter): Corrected error message.
27814 2011-01-29 Jie Zhang <jie@codesourcery.com>
27816 * config/arm/arm.c (arm_legitimize_reload_address): New.
27817 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
27818 arm_legitimize_reload_address.
27819 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
27821 2011-01-28 Ian Lance Taylor <iant@google.com>
27823 * godump.c (go_define): Ignore macros whose definitions include
27824 two adjacent operands.
27826 2011-01-28 Jakub Jelinek <jakub@redhat.com>
27829 * varasm.c (force_const_mem): Store copy of x in desc->constant
27830 instead of x itself.
27831 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
27832 itself into REG_EQUAL note.
27834 2011-01-28 Joseph Myers <joseph@codesourcery.com>
27836 * config/freebsd.opt (posix, rdynamic): New Driver options.
27838 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27840 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
27841 -Bstatic/-Bdynamic.
27842 * configure: Regenerate.
27844 2011-01-27 Joseph Myers <joseph@codesourcery.com>
27846 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
27847 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
27849 2011-01-27 Anatoly Sokolov <aesok@post.ru>
27851 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
27852 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
27853 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
27854 (s390_preferred_reload_class): Make static. Change return and
27855 'rclass' argument type to reg_class_t.
27857 2011-01-27 Jan Hubicka <jh@suse.cz>
27859 PR middle-end/46949
27860 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
27861 (process_function_and_variable_attributes): Check defined weakrefs.
27863 2011-01-27 Martin Jambor <mjambor@suse.cz>
27865 PR tree-optimization/47228
27866 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
27867 build_ref_for_offset.
27869 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27871 * config/spu/spu-elf.h (ASM_SPEC): Remove.
27873 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
27875 PR rtl-optimization/46856
27876 * postreload.c (reload_combine_recognize_const_pattern): Do not
27877 separate cc0 setter and user on cc0 targets.
27879 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
27882 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
27883 passed a VOID_TYPE expression, immediately emit an error and
27884 return error_mark_node.
27886 2011-01-26 Jeff Law <law@redhat.com>
27888 PR rtl-optimization/47464
27889 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
27890 rather than may_trap_p as needed.
27892 2011-01-26 DJ Delorie <dj@redhat.com>
27894 PR rtl-optimization/46878
27895 * combine.c (insn_a_feeds_b): Check for the implicit cc0
27896 setter/user dependency as well.
27898 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
27900 PR rtl-optimization/44469
27901 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
27902 after removing trivially dead basic blocks.
27904 2011-01-26 Joseph Myers <joseph@codesourcery.com>
27906 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
27907 * config/frv/frv.h (LINK_SPEC): Likewise.
27908 * config/i386/netware.h (LINK_SPEC): Likewise.
27909 * config/m68k/linux.h (ASM_SPEC): Likewise.
27910 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
27911 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
27912 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27913 * config/sparc/linux.h (ASM_SPEC): Likewise.
27914 * config/sparc/linux64.h (ASM_SPEC): Likewise.
27915 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27917 2011-01-26 Joseph Myers <joseph@codesourcery.com>
27919 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
27920 * config/frv/frv.h (ASM_SPEC): Likewise.
27921 * config/m68k/linux.h (ASM_SPEC): Likewise.
27922 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
27923 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
27924 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27925 * config/sparc/linux.h (ASM_SPEC): Likewise.
27926 * config/sparc/linux64.h (ASM_SPEC): Likewise.
27927 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27929 2011-01-26 Joseph Myers <joseph@codesourcery.com>
27931 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
27932 * config/frv/frv.h (LINK_SPEC): Likewise.
27933 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
27935 2011-01-26 Joseph Myers <joseph@codesourcery.com>
27937 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
27938 * config/frv/frv.h (ASM_SPEC): Likewise.
27939 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
27940 * config/m68k/linux.h (ASM_SPEC): Likewise.
27941 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
27942 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
27943 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27944 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
27945 * config/sparc/linux.h (ASM_SPEC): Likewise.
27946 * config/sparc/linux64.h (ASM_SPEC): Likewise.
27947 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27948 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
27950 2011-01-26 Steve Ellcey <sje@cup.hp.com>
27953 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
27955 (vec_extract_evenodd_help): Ditto.
27956 (vec_extract_evenv4hi): Ditto.
27957 (vec_extract_oddv4hi): Ditto.
27958 (vec_interleave_lowv2si): Ditto.
27959 (vec_interleave_highv2si): Ditto.
27960 (vec_extract_evenv2si): Ditto.
27961 (vec_extract_oddv2si: Ditto.
27962 (vec_pack_trunc_v2si): Ditto.
27964 2011-01-22 Jan Hubicka <jh@suse.cz>
27967 * cgraph.h (cgraph_local_info): New field can_change_signature.
27968 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
27969 signature can change.
27970 (ipcp_estimate_growth): Call sequence simplify only if calle signature
27972 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
27973 (cgraph_function_versioning): We can not change signature of functions
27974 that don't allow that.
27975 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
27976 (lto_input_node): Likewise.
27977 * ipa-inline.c (compute_inline_parameters): Compute
27978 local.can_change_signature.
27979 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
27980 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
27981 functions that can not change signature.
27982 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
27983 init_cumulative_args): Do not use local calling conventions
27984 for functions that can not change signature.
27986 2011-01-22 Jan Hubicka <jh@suse.cz>
27988 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
27990 2011-01-26 Richard Guenther <rguenther@suse.de>
27992 PR tree-optimization/47190
27993 * cgraphunit.c (process_common_attributes): New function.
27994 (process_function_and_variable_attributes): Use it.
27996 2011-01-26 Richard Guenther <rguenther@suse.de>
27999 * cgraphbuild.c (record_eh_tables): Record reference to personality
28002 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
28005 * sel-sched.c (moveup_expr): Don't let debug insns prevent
28006 non-debug insns from moving up.
28008 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
28011 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
28012 t-dlldir{,-x} fragment for build and add it to tmake_file.
28013 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
28014 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
28015 * config/i386/t-dlldir: New file.
28016 (SHLIB_DLLDIR): Define.
28017 * config/i386/t-dlldir-x: New file.
28018 (SHLIB_DLLDIR): Define.
28019 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
28020 (SHLIB_INSTALL): Use it.
28022 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
28025 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
28026 lower bound of the allowed Thumb-2 coprocessor load/store
28027 index range to -256. Add explaining comment.
28029 2011-01-25 Ian Lance Taylor <iant@google.com>
28031 * godump.c (go_define): Improve lexing of macro expansion to only
28032 accept expressions which match Go spec.
28034 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
28037 * tree.c (handle_dll_attribute): Handle it.
28038 * doc/extend.texi (@item dllexport): Mention it.
28039 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
28041 2011-01-25 Ian Lance Taylor <iant@google.com>
28043 PR tree-optimization/26854
28044 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
28045 (decl_jump_unsafe): Move higher in file, with no other change.
28046 (bind): Set has_jump_unsafe_decl if appropriate.
28047 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
28048 (check_earlier_gotos): Likewise.
28049 (c_check_switch_jump_warnings): Likewise.
28051 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
28053 * doc/invoke.texi (Warning Options): Add missing hyphen.
28054 (-fprofile-dir): Minor grammatical fixes.
28055 (-fbranch-probabilities): Likewise.
28057 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
28061 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
28063 (no_real_insns_p, schedule_block, set_priorities): Drop special
28064 treatment of boundary debug insns.
28065 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
28066 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
28067 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
28068 (BOUNDARY_DEBUG_INSN_P): Likewise.
28069 (SCHEDULE_DEBUG_INSN_P): Likewise.
28070 * sched-rgn.c (init_ready_list): Drop special treatment of
28071 boundary debug insns.
28072 * final.c (rest_of_clean-state): Clear notes' BB.
28074 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28076 * Makefile.in (LAMBDA_H): Removed.
28077 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
28078 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
28079 lambda-trans.o, and tree-loop-linear.o.
28080 (lto-symtab.o): Remove dependence on LAMBDA_H.
28081 (tree-loop-linear.o): Remove rule.
28082 (lambda-mat.o): Same.
28083 (lambda-trans.o): Same.
28084 (lambda-code.o): Same.
28085 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
28086 (tree-vect-slp.o): Same.
28087 * hwint.h (gcd): Moved here.
28088 (least_common_multiple): Same.
28089 * lambda-code.c: Removed.
28090 * lambda-mat.c: Removed.
28091 * lambda-trans.c: Removed.
28092 * lambda.h: Removed.
28093 * tree-loop-linear.c: Removed.
28094 * lto-symtab.c: Do not include lambda.h.
28095 * omega.c (gcd): Removed.
28096 * passes.c (init_optimization_passes): Remove pass_linear_transform.
28097 * tree-data-ref.c (print_lambda_vector): Moved here.
28098 (lambda_vector_copy): Same.
28099 (lambda_matrix_copy): Same.
28100 (lambda_matrix_id): Same.
28101 (lambda_vector_first_nz): Same.
28102 (lambda_matrix_row_add): Same.
28103 (lambda_matrix_row_exchange): Same.
28104 (lambda_vector_mult_const): Same.
28105 (lambda_vector_negate): Same.
28106 (lambda_matrix_row_negate): Same.
28107 (lambda_vector_equal): Same.
28108 (lambda_matrix_right_hermite): Same.
28109 * tree-data-ref.h: Do not include lambda.h.
28110 (lambda_vector): Moved here.
28111 (lambda_matrix): Same.
28112 (dependence_level): Same.
28113 (lambda_transform_legal_p): Removed declaration.
28114 (lambda_collect_parameters): Same.
28115 (lambda_compute_access_matrices): Same.
28116 (lambda_vector_gcd): Same.
28117 (lambda_vector_new): Same.
28118 (lambda_vector_clear): Same.
28119 (lambda_vector_lexico_pos): Same.
28120 (lambda_vector_zerop): Same.
28121 (lambda_matrix_new): Same.
28122 * tree-flow.h (least_common_multiple): Removed declaration.
28123 * tree-parloops.c (lambda_trans_matrix): Moved here.
28124 (LTM_MATRIX): Same.
28125 (LTM_ROWSIZE): Same.
28126 (LTM_COLSIZE): Same.
28127 (LTM_DENOMINATOR): Same.
28128 (lambda_trans_matrix_new): Same.
28129 (lambda_matrix_vector_mult): Same.
28130 (lambda_transform_legal_p): Same.
28131 * tree-pass.h (pass_linear_transform): Removed declaration.
28132 * tree-ssa-loop.c (tree_linear_transform): Removed.
28133 (gate_tree_linear_transform): Removed.
28134 (pass_linear_transform): Removed.
28135 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
28136 flag_loop_interchange.
28138 2011-01-25 Jakub Jelinek <jakub@redhat.com>
28140 PR tree-optimization/47265
28141 PR tree-optimization/47443
28142 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
28143 if name still has some uses.
28145 2011-01-25 Martin Jambor <mjambor@suse.cz>
28147 PR tree-optimization/47382
28148 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
28149 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
28151 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
28153 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
28154 sjlj_except_unwind_info.
28156 2011-01-25 Richard Guenther <rguenther@suse.de>
28158 PR tree-optimization/47426
28159 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
28160 visible functions results escape.
28162 2011-01-25 Jakub Jelinek <jakub@redhat.com>
28165 * config/arm/arm.c (any_sibcall_uses_r3): New function.
28166 (arm_get_frame_offsets): Use it.
28168 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28169 Jakub Jelinek <jakub@redhat.com>
28171 PR tree-optimization/47271
28172 * tree-if-conv.c (bb_postdominates_preds): New.
28173 (if_convertible_bb_p): Call bb_postdominates_preds.
28174 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
28175 (predicate_scalar_phi): Call bb_postdominates_preds.
28177 2011-01-25 Nick Clifton <nickc@redhat.com>
28179 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
28180 * config/rx/rx.c (rx_function_value): Likewise.
28181 (rx_promote_function_mode): Likewise.
28182 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
28183 in order to make it legitimate.
28184 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
28185 make sure that the first operand is the same as the result register.
28186 (addsi3_unspec): Delete.
28187 (subdi3): Do not accept immediate operands.
28188 (subdi3_internal): Likewise.
28190 2011-01-25 Jeff Law <law@redhat.com>
28192 PR rtl-optimization/37273
28193 * ira-costs.c (scan_one_insn): Detect constants living in memory and
28194 handle them like argument loads from stack slots. Do not double
28195 count memory for memory constants and argument loads from stack slots.
28197 2011-01-25 Jakub Jelinek <jakub@redhat.com>
28199 PR tree-optimization/47427
28200 PR tree-optimization/47428
28201 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
28202 coalesce if the new root var would be TREE_READONLY.
28204 2011-01-25 Richard Guenther <rguenther@suse.de>
28206 PR middle-end/47414
28207 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
28208 correct type for TBAA.
28210 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28212 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
28213 (close_phi_written_to_memory): Call for_each_index with
28214 dr_indices_valid_in_loop.
28216 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28218 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
28219 when it is initialized.
28221 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28223 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
28224 call to graphite_find_data_references_in_stmt.
28225 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
28226 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
28227 call to graphite_find_data_references_in_stmt.
28228 (analyze_drs_in_stmts): Same.
28229 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
28230 in which the scalar analysis of indices is performed.
28231 (create_data_ref): Same. Update call to dr_analyze_indices.
28232 (find_data_references_in_stmt): Update call to create_data_ref.
28233 (graphite_find_data_references_in_stmt): Same.
28234 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
28236 (create_data_ref): Same.
28237 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
28238 call to create_data_ref.
28240 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28242 * graphite-sese-to-poly.c (build_poly_scop): Move
28243 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
28245 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28247 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
28248 VAR_DECL, PARM_DECL, and RESULT_DECL.
28250 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28252 * graphite-dependences.c (reduction_dr_1): Allow several reductions
28253 in a reduction PBB.
28254 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
28255 that have already been marked as PBB_IS_REDUCTION.
28257 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28259 * graphite-scop-detection.c (same_close_phi_node): New.
28260 (remove_duplicate_close_phi): New.
28261 (make_close_phi_nodes_unique): New.
28262 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
28264 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28266 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
28267 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
28268 of both data references to be the same.
28270 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28272 * graphite-dependences.c (build_lexicographical_constraint): Remove
28273 the gdim parameter.
28274 (build_lexicographical_constraint): Adjust call to
28275 ppl_powerset_is_empty.
28276 (dependence_polyhedron): Same.
28277 (graphite_legal_transform_dr): Same.
28278 (graphite_carried_dependence_level_k): Same.
28279 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
28281 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
28283 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28285 * graphite-sese-to-poly.c
28286 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
28287 (close_phi_written_to_memory): New.
28288 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
28291 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28293 * doc/install.texi: Update the expected version number of PPL to 0.11.
28294 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
28295 #if PPL_VERSION_MINOR < 11.
28297 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28299 * graphite-dependences.c: Include graphite-cloog-util.h.
28300 (new_poly_ddr): Inlined into dependence_polyhedron.
28301 (free_poly_ddr): Moved close by new_poly_ddr.
28302 (dependence_polyhedron_1): Renamed dependence_polyhedron.
28303 Early return NULL when ppl_powerset_is_empty returns true.
28304 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
28305 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
28306 (graphite_legal_transform_dr): Call new_poly_ddr.
28307 (graphite_carried_dependence_level_k): Same.
28308 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
28309 (dot_transformed_deps_stmt_1): Removed.
28310 (dot_deps_stmt_1): Call dot_deps_stmt_2.
28311 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
28312 (dot_deps_1): Call dot_deps_2.
28313 * Makefile.in (graphite-dependences.o): Add missing dependence on
28314 graphite-cloog-util.h.
28316 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28318 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
28319 (build_lexicographical_constraint): Same.
28320 (dependence_polyhedron_1): Same.
28321 (graphite_legal_transform_dr): Same.
28322 (graphite_carried_dependence_level_k): Same.
28323 * graphite-ppl.c (ppl_powerset_is_empty): New.
28324 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
28325 * tree-data-ref.c (dump_data_reference): Print the basic block index.
28327 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28329 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
28330 the "a followed by b" relation and document it.
28332 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28334 * graphite-dependences.c (build_lexicographical_constraint): Stop the
28335 iteration when the bag of constraints is empty.
28337 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28339 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
28341 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28343 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
28344 nest and two loop depths as parameters.
28345 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
28346 lst_perfect_nestify.
28348 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28350 * graphite-dependences.c (print_pddr): Call
28351 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
28353 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28355 * graphite-ppl.c (debug_gmp_value): New.
28356 * graphite-ppl.h (debug_gmp_value): Declared.
28358 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
28360 * doc/install.texi: Document availability of cloog-0.16.
28362 2011-01-25 Vladimir Kargov <kargov@gmail.com>
28364 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
28365 invalid postdominance info.
28367 2011-01-24 Jan Hubicka <jh@suse.cz>
28370 * doc/extend.texi (weak pragma): Drop claim that it must
28371 appear before definition.
28372 * varasm.c (merge_weak, declare_weak): Only sanity check
28373 that DECL is not output at a time it is declared weak.
28375 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
28377 * machmode.def: Fixed comments.
28379 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
28381 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
28383 2011-01-24 Paul Koning <ni1d@arrl.net>
28385 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
28388 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
28391 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
28392 (block_info): Add scanned and prev.
28393 (move_or_delete_vzeroupper_2): Return if the basic block
28394 has been scanned and the upper 128bit state is unchanged
28395 from the last scan.
28396 (move_or_delete_vzeroupper_1): Return true if the exit
28398 (move_or_delete_vzeroupper): Visit basic blocks using the
28399 work-list based algorithm based on vt_find_locations in
28402 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
28404 2011-01-24 Nick Clifton <nickc@redhat.com>
28406 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
28407 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
28408 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
28409 then define __v850e1__.
28410 * doc/invoke.texi: Document -mv850es.
28412 2011-01-24 Richard Henderson <rth@redhat.com>
28414 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
28415 compound unordered comparisons.
28416 * config/rx/rx.c (rx_split_fp_compare): Remove.
28417 * config/rx/rx-protos.h: Update.
28418 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
28419 (cbranchsf4): Don't call rx_split_fp_compare.
28420 (*cbranchsf4): Use rx_split_cbranch.
28421 (*cmpsf): Don't accept "i" constraint.
28422 (*conditional_branch): Only valid after reload.
28423 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
28425 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
28428 * config/rs6000/altivec.md (vector constant splitters): Add
28429 support for creating vector single precision constants if -mvsx is
28430 used and we would create the constant using Altivec primitives.
28432 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
28433 Richard Sandiford <rdsandiford@googlemail.com>
28435 PR rtl-optimization/47166
28436 * reload1.c (emit_reload_insns): Disable the spill_reg_store
28437 mechanism for PRE_MODIFY and POST_MODIFY.
28438 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
28441 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
28443 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
28445 2011-01-22 Jan Hubicka <jh@suse.cz>
28448 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
28450 2011-01-22 Jan Hubicka <jh@suse.cz>
28452 PR tree-optimization/43884
28454 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
28455 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
28457 2011-01-22 Anatoly Sokolov <aesok@post.ru>
28459 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
28460 * config/s390/s390.c (s390_register_move_cost,
28461 s390_memory_move_cost): New.
28462 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
28464 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28466 PR middle-end/47401
28467 * except.c (sjlj_assign_call_site_values): Move setting the
28468 crtl->uses_eh_lsda flag to ...
28469 (sjlj_mark_call_sites): ... here.
28470 (sjlj_emit_function_enter): Support NULL dispatch label.
28471 (sjlj_build_landing_pads): In a function with no landing pads
28472 that still has must-not-throw regions, generate code to register
28473 a personality function with empty LSDA.
28475 2011-01-21 Richard Henderson <rth@redhat.com>
28477 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
28479 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
28481 * compare-elim.c: New file.
28482 * Makefile.in (OBJS-common): Add it.
28483 (compare-elim.o): New.
28484 * common.opt (fcompare-elim): New.
28485 * opts.c (default_options_table): Add OPT_fcompare_elim.
28486 * tree-pass.h (pass_compare_elim_after_reload): New.
28487 * passes.c (init_optimization_passes): Add it.
28488 * recog.h: Protect against re-inclusion.
28489 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
28490 * doc/invoke.texi (-fcompare-elim): Document it.
28491 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
28492 * doc/tm.texi: Rebuild.
28494 2011-01-22 Nick Clifton <nickc@redhat.com>
28496 * config/rx/rx.md (cstoresf4): Pass comparison operator to
28497 rx_split_fp_compare.
28499 2011-01-22 Nick Clifton <nickc@redhat.com>
28501 * config/rx/rx.md (UNSPEC_CONST): New.
28502 (deallocate_and_return): Wrap the amount popped off the stack in
28503 an UNSPEC_CONST in order to stop it being rejected by
28504 -mmax-constant-size.
28505 (pop_and_return): Add a "(return)" rtx.
28506 (call): Drop the immediate operand.
28507 (call_internal): Likewise.
28508 (call_value): Likewise.
28509 (call_value_internal): Likewise.
28510 (sibcall_internal): Likewise.
28511 (sibcall_value_internal): Likewise.
28512 (sibcall): Likewise. Generate an explicit call using
28514 (sibcall_value): Likewise.
28515 (mov<>): FAIL if a constant operand is not legitimate.
28516 (addsi3_unpsec): New pattern.
28518 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
28519 (ok_for_max_constant): New function.
28520 (gen_safe_add): New function.
28521 (rx_expand_prologue): Use gen_safe_add.
28522 (rx_expand_epilogue): Likewise.
28523 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
28526 2011-01-21 Jeff Law <law@redhat.com>
28528 PR tree-optimization/47053
28529 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
28530 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
28531 statements are deleted.
28532 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
28533 is nonempty, then purge dead edges and cleanup the CFG.
28535 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
28538 Temporarily revert:
28539 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
28541 * tree-dfa.c (create_var_ann): Mark variable as used.
28543 2011-01-21 Jakub Jelinek <jakub@redhat.com>
28545 PR middle-end/45566
28546 * except.c (convert_to_eh_region_ranges): Emit queued no-region
28547 notes from other section in hot/cold partitioning even if
28548 last_action is -3. Increment call_site_base.
28550 PR rtl-optimization/47366
28551 * fwprop.c (forward_propagate_into): Return bool. If
28552 any changes are made, -fnon-call-exceptions is used and
28553 REG_EH_REGION note is present, call purge_dead_edges
28554 and return true if it purged anything.
28555 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
28556 any EH edges were purged.
28558 2011-01-21 Jeff Law <law@redhat.com>
28560 PR rtl-optimization/41619
28561 * caller-save.c (setup_save_areas): Break out code to determine
28562 which hard regs are live across calls by examining the reload chains
28563 so that it is always used.
28564 Eliminate code which checked REG_N_CALLS_CROSSED.
28566 2011-01-21 Jakub Jelinek <jakub@redhat.com>
28568 PR tree-optimization/47355
28569 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
28570 NOP has non-debug uses beyond PHIs in new_bb.
28572 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
28575 * cfgexpand.c (account_used_vars_for_block): Only account vars
28576 that are annotated as used.
28577 (estimated_stack_frame_size): Don't set TREE_USED.
28578 * tree-dfa.c (create_var_ann): Mark variable as used.
28580 2011-01-21 Richard Guenther <rguenther@suse.de>
28582 PR middle-end/47395
28583 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
28585 2011-01-21 Richard Guenther <rguenther@suse.de>
28587 PR tree-optimization/47365
28588 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
28589 (vn_reference_lookup_pieces): Adjust.
28590 (vn_reference_lookup): Likewise.
28591 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
28592 (vn_reference_lookup_3): Only look through kills if in
28593 VN_WALKREWRITE mode.
28594 (vn_reference_lookup_pieces): Adjust.
28595 (vn_reference_lookup): Likewise.
28596 (visit_reference_op_load): Likewise.
28597 (visit_reference_op_store): Likewise.
28598 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
28599 (compute_avail): Likewise.
28600 (eliminate): Likewise.
28602 2011-01-21 Jakub Jelinek <jakub@redhat.com>
28604 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
28605 DECL_IGNORED_P non-reg vars if they are used.
28607 PR tree-optimization/47391
28608 * varpool.c (const_value_known_p): Return false if
28611 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
28614 * config/i386/i386.c (ix86_local_alignment): Handle
28615 case for va_list_type_node is nil.
28616 (ix86_canonical_va_list_type): Likewise.
28618 2011-01-21 Alan Modra <amodra@gmail.com>
28620 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
28621 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
28623 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28625 * config/arm/arm.md (define_attr type): Rename f_load
28626 and f_store to f_fpa_load and f_fpa_store. Update.
28627 (write_conflict): Deal with rename fallout.
28628 (*push_fp_multi): Likewise.
28629 * config/arm/fpa.md (f_load): Use f_fpa_load.
28630 (f_store): Use f_fpa_store.
28631 (*movsf_fpa): Likewise.
28632 (*movdf_fpa): Likewise.
28633 (*movxf_fpa): Likewise.
28634 (*thumb2_movsf_fpa): Likewise.
28635 (*thumb2_movdf_fpa): Likewise.
28636 (*thumb2_movxf_fpa): Likewise.
28637 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
28638 f_loadd and f_stored.
28639 (*thumb2_movdi_vfp): Likewise.
28640 (*thumb2_movsf_vfp): Fix attribute to f_loads.
28641 (*thumb2_movsi_vfp): Likewise.
28642 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
28643 Use f_loads instead of f_load.
28644 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
28646 2011-01-20 Anatoly Sokolov <aesok@post.ru>
28648 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28649 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
28650 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28651 (xtensa_mode_dependent_address_p): New function.
28652 (constantpool_address_p): Make static. Change return type to bool.
28653 Change argument type to const_rtx. Use CONST_INT_P predicate.
28655 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
28658 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
28660 2011-01-20 Jakub Jelinek <jakub@redhat.com>
28663 * cfgexpand.c (expand_debug_expr): Instead of generating
28664 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
28667 2011-01-20 Richard Guenther <rguenther@suse.de>
28669 PR middle-end/47370
28670 * tree-inline.c (remap_gimple_op_r): Recurse manually for
28671 the pointer operand of MEM_REFs.
28673 2011-01-20 Jakub Jelinek <jakub@redhat.com>
28675 PR tree-optimization/46130
28676 * ipa-split.c (consider_split): If return_bb contains non-virtual
28677 PHIs other than for retval or if split_function would not adjust it,
28680 2011-01-20 Richard Guenther <rguenther@suse.de>
28682 PR tree-optimization/47167
28683 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
28684 Revert previous change, only avoid enumeral type changes.
28686 2011-01-19 Mike Stump <mikestump@comcast.net>
28688 * doc/tm.texi.in (BRANCH_COST): Englishify.
28689 * doc/tm.texi (BRANCH_COST): Likewise.
28691 2011-01-19 Dodji Seketeli <dodji@redhat.com>
28694 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
28695 (gen_scheduled_generic_parms_dies): New functions.
28696 (gen_struct_or_union_type_die): Schedule template parameters DIEs
28697 generation for the end of CU compilation.
28698 (dwarf2out_finish): Generate template parameters DIEs here.
28700 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
28703 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
28704 debug bind stmt on merge edges.
28706 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
28710 * function.c (instantiate_expr): Instantiate incoming rtl of
28711 implicit arguments, and recurse on VALUE_EXPRs.
28712 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
28713 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
28715 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
28717 * c-parser.c (c_parser_for_statement): Initialize
28718 collection_expression.
28720 2011-01-19 Joseph Myers <joseph@codesourcery.com>
28722 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
28724 2011-01-19 Joseph Myers <joseph@codesourcery.com>
28726 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
28727 (LINK_SHLIB_SPEC): Don't use %(link_path).
28728 (SUBTARGET_EXTRA_SPECS): Remove link_path.
28730 2011-01-19 Joseph Myers <joseph@codesourcery.com>
28732 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
28733 (NO_SHARED_LIB_SUPPORT): Remove.
28734 (LINK_SHLIB_SPEC): Remove one conditional definition.
28736 2011-01-19 Joseph Myers <joseph@codesourcery.com>
28738 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
28740 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
28741 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
28742 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
28743 %{call_shared} and conditionals on these options not being passed.
28744 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
28747 2011-01-19 Jakub Jelinek <jakub@redhat.com>
28749 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
28752 * ipa-split.c: Spelling fixes.
28754 2011-01-19 Richard Henderson <rth@redhat.com>
28756 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
28757 (*mulsi3): Likewise.
28759 * longlong.h [__mn10300__] (count_leading_zeros): New.
28760 [__mn10300__] (umul_ppmm, smul_ppmm): New.
28761 [__mn10300__] (add_ssaaaa, subddmmss): New.
28762 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
28763 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
28765 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28767 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
28769 2011-01-19 Richard Henderson <rth@redhat.com>
28771 * config/mn10300/mn10300.md (addsi3_flags): New.
28772 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
28773 (subsi3_flags, subc_internal, subdi3): New.
28774 (subdi3_internal, *subdi3_degenerate): New.
28775 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
28777 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
28778 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
28779 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
28780 * config/mn10300/mn10300-protos.h: Update.
28781 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
28782 (return_ret): Likewise. Rename from return_internal_regs.
28783 (return_internal): Remove.
28785 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
28786 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
28787 (mn10300_legitimate_constant_p): Likewise.
28788 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
28789 (mn10300_frame_size): New.
28790 (mn10300_expand_prologue): Use it.
28791 (mn10300_expand_epilogue): Likewise.
28792 (mn10300_initial_offset): Likewise.
28793 * config/mn10300/mn10300-protos.h: Update.
28794 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
28795 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
28796 (prologue, epilogue, return_internal): Tidy output code.
28797 (mn10300_store_multiple_operation, return): Likewise.
28798 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
28799 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
28800 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
28801 (load_pic, am33_load_pic): New.
28802 (mn10300_load_pic0, mn10300_load_pic1): New.
28804 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
28805 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
28806 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
28807 (cc_flags_for_mode, cc_flags_for_code): New.
28808 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
28809 overflow flag is not valid. Validate that the flags we need
28810 for the comparison are valid.
28811 (mn10300_output_cmp): Remove.
28812 (mn10300_output_add): New.
28813 (mn10300_select_cc_mode): Use cc_flags_for_code.
28814 (mn10300_split_cbranch): New.
28815 (mn10300_match_ccmode): New.
28816 (mn10300_split_and_operand_count): New.
28817 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
28819 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
28820 (addsi3): ... here. Use mn10300_output_add.
28821 (*addsi3_flags): New.
28822 (*am33_subsi3, *mn10300_subsi3): Merge...
28823 (subsi3): ... here. Use attribute isa.
28824 (*subsi3_flags): New.
28825 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
28827 (*am33_andsi3, *mn10300_andsi3): Merge...
28828 (andsi3): ... here.
28829 (*andsi3_flags): New.
28830 (andsi3 splitters): New.
28831 (*am33_iorsi3, *mn10300_iorsi3): Merge...
28832 (iorsi3): ... here.
28833 (*iorsi3_flags): New.
28834 (*am33_xorsi3, *mn10300_xorsi3): Merge...
28835 (xorsi3): ... here.
28836 (*xorsi3_flags): New.
28837 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
28838 (one_cmplsi2): ... here.
28839 (*one_cmplsi2_flags): New.
28840 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
28841 instead of "dax" in constraints. Use mn10300_split_cbranch.
28842 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
28843 use matching constraints to eliminate a self-comparison.
28844 (*integer_conditional_branch): Rename from integer_conditional_branch.
28845 Use int_mode_flags to match CC_REG.
28846 (*cbranchsi4_btst, *btstsi): New.
28847 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
28848 mn10300_split_cbranch.
28849 (*am33_cmpsf): Rename from am33_cmpsf.
28850 (*float_conditional_branch): Rename from float_conditional_branch.
28851 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
28852 (zero_extendqisi2): ... here.
28853 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
28854 (zero_extendhisi2): ... here.
28855 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
28856 (extendqisi2): ... here.
28857 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
28858 (extendhisi2): ... here.
28859 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
28860 (ashlsi3): ... here.
28861 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
28862 (lshrsi3): ... here.
28863 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
28864 (ashrsi3): ... here.
28865 (consecutive add peephole): Remove.
28866 * config/mn10300/predicates.md (label_ref_operand): New.
28867 (int_mode_flags): New.
28868 (CCZN_comparison_operator): New.
28870 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
28871 (throughput_42_latency_43): New reservation.
28872 (mulsidi3, umulsidi3): New expanders.
28873 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
28874 the MDR register to allocation; separately allocate the low and
28875 high parts of the DImode result.
28876 (umulsidi3_internal): Similarly.
28877 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
28878 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
28879 (udivsi3, umodsi3): Remove.
28880 (udivmodsi4, divmodsi4): New expanders.
28881 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
28882 (*divmodsi4): Simiarly.
28883 (ext_internal): New.
28885 * config/mn10300/constraints.md ("z"): New constraint.
28886 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
28887 (FIXED_REGISTERS): Don't fix MDR.
28888 (CALL_USED_REGSITERS): Reformat nicely.
28889 (REG_ALLOC_ORDER): Add MDR.
28890 (enum regclass): Add MDR_REGS.
28891 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
28892 (IRA_COVER_CLASSES): Add MDR_REGS.
28893 (REGNO_REG_CLASS): Handle MDR_REG.
28894 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
28895 (mn10300_register_move_cost): Likewise.
28896 * config/mn10300/mn10300.md (MDR_REG): New.
28897 (*movsi_internal): Handle moves to/from MDR_REGS.
28899 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
28901 (mn10300_secondary_reload): Tidy combination reload classes.
28902 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
28903 addresses for AM33. Allow symbolic offsets for reg+imm.
28904 (mn10300_regno_in_class_p): New.
28905 (mn10300_legitimize_reload_address): New.
28906 * config/mn10300/mn10300.h (enum reg_class): Remove
28907 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
28908 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
28909 SP_OR_GENERAL_REGS.
28910 (REG_CLASS_NAMES): Update to match.
28911 (REG_CLASS_CONTENTS): Likewise.
28912 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
28913 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
28914 (REGNO_IN_RANGE_P): Remove.
28915 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
28916 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
28917 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
28918 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
28919 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
28920 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
28921 (REGNO_GENERAL_P): New.
28922 (HAVE_POST_MODIFY_DISP): New.
28923 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
28924 (LEGITIMIZE_RELOAD_ADDRESS): New.
28925 * config/mn10300/mn10300-protos.h: Update.
28927 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
28928 DATA_REGS for AM33 stack-pointer destination.
28929 (mn10300_preferred_output_reload_class): Likewise.
28930 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
28931 into a form appropriate for ...
28932 (TARGET_SECONDARY_RELOAD): New.
28933 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
28934 * config/mn10300/mn10300-protos.h: Update.
28935 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
28936 reload_insi; use the "A" constraint for the scratch; handle AM33
28937 moves of sp to non-address registers.
28939 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
28940 (*movqi_internal): ... here.
28941 (*am33_movhi, *mn10300_movhi): Merge into...
28942 (*movhi_internal): ... here.
28943 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
28944 as the source/destination of moves from/to SP.
28945 (movsf): Only allow for AM33-2.
28946 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
28947 any integer constant constraint. Only allow for AM33-2. Tidy
28948 all of the alternative outputs.
28949 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
28950 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
28952 (udivsi3, umodsi3): New patterns for MN103 only.
28954 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
28956 * doc/tm.texi.in: Spell out that a lack of register class unions
28958 * doc/tm.texi: Regenerate.
28960 2011-01-19 Jakub Jelinek <jakub@redhat.com>
28962 PR rtl-optimization/47337
28963 * dce.c (check_argument_store): New function.
28964 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
28966 PR tree-optimization/47290
28967 * tree-eh.c (infinite_empty_loop_p): New function.
28968 (cleanup_empty_eh): Use it.
28970 2011-01-18 Steve Ellcey <sje@cup.hp.com>
28973 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
28974 (a64_expand_widen_sum): Ditto.
28975 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
28976 (vec_extract_evenodd_help): Ditto.
28977 (vec_extract_evenv4hi): Ditto.
28978 (vec_extract_oddv4hi): Ditto.
28979 (vec_extract_evenv2si): Ditto.
28980 (vec_extract_oddv2si): Ditto.
28981 (vec_extract_evenv2sf): Ditto.
28982 (vec_extract_oddv2sf): Ditto.
28983 (vec_pack_trunc_v4hi: Ditto.
28984 (vec_pack_trunc_v2si): Ditto.
28985 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
28986 (vec_interleave_highv8qi): Ditto.
28988 (vec_extract_oddv8qi): Ditto.
28989 (vec_interleave_lowv4hi): Ditto.
28990 (vec_interleave_highv4hi): Ditto.
28991 (vec_interleave_lowv2si): Ditto.
28992 (vec_interleave_highv2si): Ditto.
28994 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28996 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
28997 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
28998 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
28999 (pa_c_mode_for_suffix): New.
29000 (TARGET_EXPAND_BUILTIN): Define.
29001 (TARGET_C_MODE_FOR_SUFFIX): Define.
29002 (pa_builtins): Define.
29003 (pa_init_builtins): Register __float128 type and init new support
29005 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
29006 * config/pa/quadlib.c (_U_Qfcopysign): New.
29008 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
29010 PR middle-end/46894
29011 * explow.c (allocate_dynamic_stack_space): Do not assume more than
29012 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
29015 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29017 PR tree-optimization/47179
29018 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
29019 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
29021 2011-01-18 Richard Guenther <rguenther@suse.de>
29023 PR rtl-optimization/47216
29024 * emit-rtl.c: Include tree-flow.h.
29025 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
29026 of replicating it with different semantics.
29027 * Makefile.in (emit-rtl.o): Adjust.
29029 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29031 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
29032 (cortex_a9_dp): Handle neon types correctly.
29034 2011-01-18 Jakub Jelinek <jakub@redhat.com>
29036 PR rtl-optimization/47299
29037 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
29038 subtarget. Use normal multiplication if both operands are constants.
29039 * expmed.c (expand_widening_mult): Don't try to optimize constant
29040 multiplication if op0 has VOIDmode. Convert op1 constant to mode
29043 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29045 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
29046 spacing after 'e.g.', typos, comma, hyphenation.
29048 2011-01-17 Richard Henderson <rth@redhat.com>
29050 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
29051 (rx_restricted_mem_operand): New.
29052 (rx_shift_operand): Use register_operand.
29053 (rx_source_operand, rx_compare_operand): Likewise.
29054 * config/rx/rx.md (addsi3_flags): New expander.
29055 (adddi3): Rewrite as expander.
29056 (adc_internal, *adc_flags, adddi3_internal): New patterns.
29057 (subsi3_flags): New expander.
29058 (subdi3): Rewrite as expander.
29059 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
29061 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
29062 (rx_init_builtins): Remove sat builtin.
29063 (rx_expand_builtin): Likewise.
29064 * config/rx/rx.md (ssaddsi3): New.
29065 (*sat): Rename from sat. Represent the CC_REG input.
29067 * config/rx/predicates.md (rshift_operator): New.
29068 * config/rx/rx.c (rx_expand_insv): Remove.
29069 * config/rx/rx-protos.h: Update.
29070 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
29071 operand to the canonical position.
29072 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
29073 (*bitclr, *bitclr_in_memory): Similarly.
29074 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
29075 (insv): Retain the zero_extract in the expansion.
29077 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
29078 (bswaphi2, bitinvert, revw): Likewise.
29080 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
29081 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
29082 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
29083 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
29084 (bitset, bitset_in_memory): Likewise.
29085 (bitinvert, bitinvert_in_memory): Likewise.
29086 (bitclr, bitclr_in_memory): Likewise.
29087 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
29088 (rx_strend, rx_cmpstrn): Likewise.
29089 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
29090 (bitop peep2 patterns): Remove.
29092 * config/rx/rx.c (rx_match_ccmode): New.
29093 * config/rx/rx-protos.h: Update.
29094 * config/rx/rx.md (abssi2): Clobber, don't set flags.
29095 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
29096 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
29097 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
29098 (fix_truncsfsi2, floatsisf2): Likewise.
29099 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
29100 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
29101 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
29102 (*subsi3_flags, *xorsi3_flags): New.
29104 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
29106 * config/rx/rx.c (rx_print_operand): Remove workaround for
29107 unsplit comparison operations.
29109 * config/rx/rx.md (movsicc): Split after reload.
29110 (*movsicc): Merge *movsieq and *movsine via match_operator.
29111 (*stcc): New pattern.
29113 * config/rx/rx.c (rx_float_compare_mode): Remove.
29114 * config/rx/rx.h (rx_float_compare_mode): Remove.
29115 * config/rx/rx.md (cstoresi4): Split after reload.
29116 (*sccc): New pattern.
29118 * config/rx/predicates.md (label_ref_operand): New.
29119 (rx_z_comparison_operator): New.
29120 (rx_zs_comparison_operator): New.
29121 (rx_fp_comparison_operator): New.
29122 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
29123 Validate that the flags are set properly for the comparison.
29124 (rx_gen_cond_branch_template): Remove.
29125 (rx_cc_modes_compatible): Remove.
29126 (mode_from_flags): New.
29127 (flags_from_code): Rename from flags_needed_for_conditional.
29128 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
29129 (rx_select_cc_mode): Likewise.
29130 (rx_split_fp_compare): New.
29131 (rx_split_cbranch): New.
29132 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
29133 (*cbranchsi4): Use match_operator and rx_split_cbranch.
29134 (*cbranchsf4): Similarly.
29135 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
29136 match_operator and rx_split_cbranch.
29137 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
29138 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
29139 (*cmpsi): Rename from cmpsi.
29140 (*tstsi): Rename from tstsi.
29141 (*cmpsf): Rename from cmpsf; use CC_Fmode.
29142 (*conditional_branch): Rename from conditional_branch.
29143 (*reveresed_conditional_branch): Remove.
29144 (b<code>): Remove expander.
29145 * config/rx/rx-protos.h: Update.
29147 * config/rx/rx.c (rx_compare_redundant): Remove.
29148 * config/rx/rx.md (cmpsi): Don't use it.
29149 * config/rx/rx-protos.h: Update.
29151 * config/rx/rx-modes.def (CC_F): New mode.
29152 * config/rx/rx.c (rx_select_cc_mode): New.
29153 * config/rx/rx.h (SELECT_CC_MODE): Use it.
29154 * config/rx/rx-protos.h: Update.
29156 2011-01-17 Richard Henderson <rth@redhat.com>
29158 * except.c (dump_eh_tree): Fix stray ; after for statement.
29160 2011-01-17 Richard Guenther <rguenther@suse.de>
29162 PR tree-optimization/47313
29163 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
29164 handling before copying the body. Properly deal with
29165 by-reference result in SSA form.
29167 2011-01-17 Ian Lance Taylor <iant@google.com>
29170 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
29171 (struct_value_alias_set): Don't define.
29172 (sparc_option_override): Don't set sparc_sr_alias_set and
29173 struct_value_alias_set.
29174 (save_or_restore_regs): Use gen_frame_mem rather than calling
29176 (sparc_struct_value_rtx): Likewise.
29178 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
29181 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
29182 (_mm_maskstore_pd): Likewise.
29183 (_mm_maskload_ps): Likewise.
29184 (_mm_maskstore_ps): Likewise.
29185 (_mm256_maskload_pd): Change mask to __m256i.
29186 (_mm256_maskstore_pd): Likewise.
29187 (_mm256_maskload_ps): Likewise.
29188 (_mm256_maskstore_ps): Likewise.
29190 * config/i386/i386-builtin-types.def: Updated.
29191 (ix86_expand_special_args_builtin): Likewise.
29193 * config/i386/i386.c (bdesc_special_args): Update
29194 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
29195 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
29196 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
29197 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
29199 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
29200 Use <avxpermvecmode> on mask register.
29201 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
29203 2011-01-17 Olivier Hainque <hainque@adacore.com>
29204 Michael Haubenwallner <michael.haubenwallner@salomon.at>
29205 Eric Botcazou <ebotcazou@adacore.com>
29208 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
29209 if <= USHRT_MAX in 32-bit mode.
29211 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29213 * doc/install.texi (Configuration, Specific): Wrap long
29214 lines in examples. Allow line wrapping in long options
29215 and URLs where beneficial for PDF output.
29217 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
29219 * config/mips/mips.c (mips_classify_symbol): Don't return
29220 SYMBOL_PC_RELATIVE for nonlocal labels.
29222 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
29224 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
29226 2011-01-15 Jan Hubicka <jh@suse.cz>
29228 PR tree-optimization/47276
29229 * ipa.c (function_and_variable_visibility): Do not try to mark alias
29230 declarations as needed.
29232 2011-01-15 Martin Jambor <mjambor@suse.cz>
29234 * common.opt (fdevirtualize): New flag.
29235 * doc/invoke.texi (Option Summary): Document it.
29236 * opts.c (default_options_table): Add devirtualize flag.
29237 * ipa-prop.c (detect_type_change): Return immediately if
29238 devirtualize flag is not set.
29239 (detect_type_change_ssa): Likewise.
29240 (compute_known_type_jump_func): Likewise.
29241 (ipa_analyze_virtual_call_uses): Likewise.
29243 2011-01-14 Martin Jambor <mjambor@suse.cz>
29245 PR tree-optimization/45934
29246 PR tree-optimization/46302
29247 * ipa-prop.c (type_change_info): New type.
29248 (stmt_may_be_vtbl_ptr_store): New function.
29249 (check_stmt_for_type_change): Likewise.
29250 (detect_type_change): Likewise.
29251 (detect_type_change_ssa): Likewise.
29252 (compute_complex_assign_jump_func): Check for dynamic type change.
29253 (compute_complex_ancestor_jump_func): Likewise.
29254 (compute_known_type_jump_func): Likewise.
29255 (compute_scalar_jump_functions): Likewise.
29256 (ipa_analyze_virtual_call_uses): Likewise.
29257 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
29259 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29261 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
29262 * config/i386/i386.opt (msse5): New Alias.
29264 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29266 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
29267 * config/sparc/linux64.h (CC1_SPEC): Likewise.
29268 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
29269 * config/sparc/sparc.h (CC1_SPEC): Likewise.
29271 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29273 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
29275 * config/sparc/linux64.h (CC1_SPEC): Likewise.
29276 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
29277 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
29278 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
29280 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
29282 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29284 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
29286 2011-01-14 Mike Stump <mikestump@comcast.net>
29288 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
29289 * config/fr30/fr30.md: Likweise
29290 (movsi_push): Likewise.
29291 (movsi_pop): Likewise.
29292 (enter_func): Likewise.
29293 * config/moxie/moxie.md (movsi_push): Likewise.
29294 (movsi_pop): Likewise.
29296 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29298 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
29299 %{no_archive} %{exact_version}.
29300 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
29301 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
29302 %{no_archive} %{exact_version}.
29303 * config/mips/openbsd.h (LINK_SPEC): Likewise.
29304 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
29305 * config/mips/vxworks.h: Likewise.
29307 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29309 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
29311 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29313 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
29314 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
29316 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29318 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
29321 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29323 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
29325 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
29326 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
29328 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
29329 Don't handle -shlib.
29331 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29333 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
29334 (CC1_SPEC): Don't handle -profile.
29336 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29338 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
29339 * config/mips/mips.h (CC1_SPEC): Likewise.
29341 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29343 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
29344 * config/mips/mips.h (CC1_SPEC): Likewise.
29346 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29348 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
29349 * config/m32r/linux.h (LINK_SPEC): Likewise.
29350 * config/mips/linux.h (LINK_SPEC): Likewise.
29351 * config/mips/linux64.h (LINK_SPEC): Likewise.
29352 * config/sparc/linux.h (LINK_SPEC): Likewise.
29353 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
29354 LINK_SPEC): Likewise.
29355 * config/xtensa/linux.h (LINK_SPEC): Likewise.
29357 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29359 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
29361 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
29363 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29365 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
29366 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
29368 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29370 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
29372 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29374 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
29375 supports -Bstatic/-Bdynamic.
29376 * configure: Regenerate.
29378 2011-01-14 Jan Hubicka <jh@suse.cz>
29379 Jack Howarth <howarth@bromo.med.uc.edu>
29382 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
29383 when checking debug_info_level. Test write_symbols instead of
29384 debug_hooks->var_location when setting flag_var_tracking_uninit.
29386 2011-01-14 Richard Guenther <rguenther@suse.de>
29388 PR tree-optimization/47179
29389 * target.def (ref_may_alias_errno): New target hook.
29390 * targhooks.h (default_ref_may_alias_errno): Declare.
29391 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
29392 (default_ref_may_alias_errno): New function.
29393 * target.h (struct ao_ref_s): Declare.
29394 * tree-ssa-alias.c: Include target.h.
29395 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
29396 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
29397 (targhooks.o): Likewise.
29398 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
29399 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
29401 2011-01-14 Richard Guenther <rguenther@suse.de>
29403 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
29405 2011-01-14 Richard Guenther <rguenther@suse.de>
29407 PR tree-optimization/47280
29408 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
29409 return CFG changes.
29410 (tree_ssa_forward_propagate_single_use_vars): Deal with
29411 CFG changes from associate_plusminus.
29413 2011-01-14 Richard Guenther <rguenther@suse.de>
29415 PR middle-end/47281
29417 2011-01-11 Richard Guenther <rguenther@suse.de>
29419 PR tree-optimization/46076
29420 * tree-ssa.c (useless_type_conversion_p): Conversions from
29421 unprototyped to empty argument list function types are useless.
29423 2011-01-14 Richard Guenther <rguenther@suse.de>
29425 PR tree-optimization/47286
29426 * tree-ssa-structalias.c (new_var_info): Register variables are global.
29428 2011-01-14 Martin Jambor <mjambor@suse.cz>
29430 PR middle-end/46823
29431 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
29433 2011-01-13 Anatoly Sokolov <aesok@post.ru>
29435 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
29436 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
29437 * config/xtensa/xtensa.c (xtensa_libcall_value,
29438 xtensa_function_value_regno_p): New functions.
29439 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
29441 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
29444 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
29446 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
29447 New function prototype.
29448 * config/i386/winnt.c (i386_pe_assemble_visibility):
29449 Warn only if attribute was specified by user.
29451 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
29454 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
29456 (floatunsdidf2_fcfidu): Ditto.
29458 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29460 * config/s390/s390.c (print_operand_address): Replace 'error' with
29461 'output_operand_lossage'.
29462 (print_operand): Likewise.
29464 2011-01-13 Jeff Law <law@redhat.com>
29466 PR rtl-optimization/39077
29467 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
29468 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
29469 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
29470 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
29471 * gcse.c (prune_insertions_deletions): New function.
29472 (compute_pre_data): Use it.
29474 2011-01-13 Dodji Seketeli <dodji@redhat.com>
29477 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
29479 (prune_unused_types_mark): Use it.
29481 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
29483 PR rtl-optimization/45352
29484 * sel-sched.c: Update copyright years.
29485 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
29486 in the advancing loop when we have issued issue_rate insns.
29488 2011-01-12 Richard Henderson <rth@redhat.com>
29490 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
29491 (TARGET_MD_ASM_CLOBBERS): New.
29493 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
29494 (TARGET_DELEGITIMIZE_ADDRESS): New.
29496 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
29497 (clzsi2, *bsch): New patterns.
29499 * config/mn10300/mn10300.md (INT): New mode iterator.
29500 (*mov<INT>_clr): New pattern, and peep2 to generate it.
29502 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
29503 flag_split_wide_types.
29505 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
29506 (mn10300_trampoline_init): Rewrite without a template, an immediate
29507 load and a direct branch.
29508 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
29510 2011-01-12 Anatoly Sokolov <aesok@post.ru>
29512 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
29513 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
29514 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
29515 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
29517 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
29520 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
29523 2011-01-12 Jan Hubicka <jh@suse.cz>
29526 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
29527 (PLUGIN_COND_CLOSE): New macro.
29528 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
29530 2011-01-12 Richard Guenther <rguenther@suse.de>
29533 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
29534 register variables in a MEM_REF.
29536 2011-01-12 Joseph Myers <joseph@codesourcery.com>
29538 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
29539 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
29540 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
29541 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
29542 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
29543 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
29544 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
29545 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
29546 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
29547 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
29548 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
29549 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
29550 * config/gnu-user.h: New. Copied from linux.h.
29551 (LINUX_TARGET_STARTFILE_SPEC): Rename to
29552 GNU_USER_TARGET_STARTFILE_SPEC.
29553 (LINUX_TARGET_ENDFILE_SPEC): Rename to
29554 GNU_USER_TARGET_ENDFILE_SPEC.
29555 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
29556 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
29557 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
29558 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
29559 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
29560 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
29561 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
29562 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
29563 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
29564 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
29565 * config/arm/linux-eabi.h (CC1_SPEC): Use
29566 GNU_USER_TARGET_CC1_SPEC.
29567 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
29568 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
29569 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
29570 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
29571 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
29572 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
29573 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
29574 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
29576 2011-01-12 Richard Guenther <rguenther@suse.de>
29579 * doc/invoke.texi (ffast-math): Document it is turned on
29582 2011-01-12 Jan Hubicka <jh@suse.cz>
29584 PR tree-optimization/47233
29585 * opts.c (common_handle_option): Disable ipa-reference with profile
29588 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
29590 * c-parser.c (c_parser_objc_at_property_declaration): Improved
29593 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
29595 * c-parser.c (c_lex_one_token): Updated and reindented some
29596 comments. No changes in code.
29598 2011-01-11 Ian Lance Taylor <iant@google.com>
29600 * godump.c (go_output_var): Don't output the variable if there is
29601 already a type with the same name.
29603 2011-01-11 Ian Lance Taylor <iant@google.com>
29605 * godump.c (go_format_type): Don't generate float80.
29607 2011-01-11 Richard Henderson <rth@redhat.com>
29609 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
29610 declaration. Rewrite for both speed and size.
29611 (mn10300_address_cost_1): Remove.
29612 (mn10300_register_move_cost): New.
29613 (mn10300_memory_move_cost): New.
29614 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
29615 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
29616 extensions, shifts, BSWAP, CLZ.
29617 (mn10300_wide_const_load_uses_clr): Remove.
29618 (TARGET_REGISTER_MOVE_COST): New.
29619 (TARGET_MEMORY_MOVE_COST): New.
29620 * config/mn10300/mn10300-protos.h: Update.
29621 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
29623 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
29624 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
29625 * config/mn10300/mn10300-protos.h: Update.
29626 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
29627 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
29628 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
29629 (*test_int_bitfield, *test_byte_bitfield): Remove.
29630 (*bit_test, *subreg_bit_test): Remove.
29631 * config/mn10300/predicates.md (const_8bit_operand): Remove.
29633 * config/mn10300/constraints.md ("c"): Rename from "A".
29634 ("A", "D"): New constraint letters.
29635 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
29636 (fmssf4, fnmasf4, fnmssf4): Likewise.
29638 * config/mn10300/mn10300.md (isa): New attribute.
29639 (enabled): New attribute.
29641 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
29642 (abssf2, negsf2): Define only for hardware fp.
29643 (sqrtsf2): Reformat.
29644 (addsf3, subsf3, mulsf3): Merge expander and insn.
29646 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
29647 (DEBUGGER_AUTO_OFFSET): Remove.
29648 (DEBUGGER_ARG_OFFSET): Remove.
29650 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
29651 Emit register stores with the same offsets as the hardware.
29652 (mn10300_store_multiple_operation): Don't check that the register
29653 save offsets are monotonic.
29654 * config/mn10300/mn10300-protos.h: Update.
29656 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
29658 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
29659 in terms of the value on the stack, not the MDR register.
29661 2011-01-11 Jan Hubicka <jh@suse.cz>
29665 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
29666 (symbol_alias_set_destroy, symbol_alias_set_contains,
29667 propagate_aliases_backward): Declare.
29668 * lto-streamer-out.c (struct sets): New sturcture.
29669 (trivally_defined_alias): New function.
29670 (output_alias_pair_p): Rewrite.
29671 (output_unreferenced_globals): Fix output of alias pairs.
29672 (produce_symtab): Likewise.
29673 * ipa.c (function_and_variable_visibility): Set weak alias destination
29675 * varasm.c (symbol_alias_set_t): Remove.
29676 (symbol_alias_set_destroy): Export.
29677 (propagate_aliases_forward, propagate_aliases_backward): New functions
29679 (compute_visible_aliases): ... this one; remove.
29680 (trivially_visible_alias): New
29681 (trivially_defined_alias): New.
29682 (remove_unreachable_alias_pairs): Rewrite.
29683 (finish_aliases_1): Reorganize code checking if alias is defined.
29684 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
29687 2011-01-11 Richard Guenther <rguenther@suse.de>
29689 PR tree-optimization/46076
29690 * tree-ssa.c (useless_type_conversion_p): Conversions from
29691 unprototyped to empty argument list function types are useless.
29693 2011-01-11 Richard Guenther <rguenther@suse.de>
29695 PR middle-end/45235
29696 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
29697 volatile MEMs as MEM_READONLY_P.
29699 2011-01-11 Richard Guenther <rguenther@suse.de>
29701 PR tree-optimization/47239
29702 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
29704 2011-01-11 Jeff Law <law@redhat.com>
29706 PR tree-optimization/47086
29707 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
29708 IVs from statements that might throw.
29710 2011-01-10 Jan Hubicka <jh@suse.cz>
29713 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
29715 2011-01-10 Jan Hubicka <jh@suse.cz>
29718 * profile.c (read_profile_edge_counts): Ignore profile inconistency
29719 when correcting profile.
29721 2011-01-10 Jan Hubicka <jh@suse.cz>
29724 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
29725 DECL_FINI_PRIORITY.
29726 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
29727 Restore DECL_FINI_PRIORITY.
29729 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29731 * doc/gimple.texi: Fix quoting of multi-word return values in
29732 @deftypefn statements. Ensure presence of return value. Wrap
29733 overlong @deftypefn lines.
29734 (is_gimple_operand, is_gimple_min_invariant_address): Remove
29735 descriptions of removed functions.
29736 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
29737 of multi-word return value in @deftypefn statement.
29739 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29741 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
29742 (Conditional Expressions, Logical Operators)
29743 (Statement and operand traversals): Do not indent smallexample
29744 code. Fix duplicate function argument in example.
29746 2011-01-10 Jeff Law <law@redhat.com>
29748 PR tree-optimization/47141
29749 * ipa-split.c (split_function): Handle case where we are
29750 returning a value and the return block has a virtual operand phi.
29752 2011-01-10 Jan Hubicka <jh@suse.cz>
29754 PR tree-optimization/47234
29755 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
29756 (pass_feedback_split_functions): Declare.
29757 * passes.c (init_optimization_passes): Add ipa-split as subpass of
29759 * ipa-split.c (gate_split_functions): Update comments; disable
29760 split-functions for profile_arc_flag and branch_probabilities.
29761 (gate_feedback_split_functions): New function.
29762 (execute_feedback_split_functions): New function.
29763 (pass_feedback_split_functions): New global var.
29765 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
29768 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
29769 calling gimple_call_set_cannot_inline.
29771 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
29773 * config/darwin-sections.def: Remove unused section.
29775 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
29778 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
29780 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
29783 * c-parser.c (c_parser_declaration_or_fndef): Improved
29786 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
29788 * config/i386/winnt.c (i386_pe_start_function): Make sure
29789 to switch back to function's section.
29791 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
29795 * plugin.c: Move include of dlfcn.h from here...
29796 * system.h: ... to here.
29798 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29800 * doc/cpp.texi (C++ Named Operators): Fix markup for header
29802 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
29803 two extra empty pages in PDF output.
29805 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
29808 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
29809 for error recovery purposes behave as if it was not specified so
29810 that the default type is usd.
29812 2011-01-07 Jan Hubicka <jh@suse.cz>
29814 PR tree-optmization/46469
29815 * ipa.c (function_and_variable_visibility): Clear needed flags on
29816 nodes with external decls; handle weakrefs merging correctly.
29818 2011-01-07 Joseph Myers <joseph@codesourcery.com>
29820 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
29823 2011-01-07 Jan Hubicka <jh@suse.cz>
29825 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
29826 and no longer claim that gold is required for linker plugin.
29827 * configure: Regenerate.
29828 * gcc.c (PLUGIN_COND): New macro.
29829 (LINK_COMMAND_SPEC): Use it.
29830 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
29831 * config.in (HAVE_LTO_PLUGIN): New.
29832 * configure.ac (--with-lto-plugin): New parameter; autodetect
29835 2011-01-07 Jan Hubicka <jh@suse.cz>
29837 PR tree-optimization/46367
29838 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
29839 when we can update original.
29840 (cgraph_mark_inline_edge): Sanity check.
29841 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
29843 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29845 * config/spu/spu.h (ASM_COMMENT_START): Define.
29847 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
29850 * gcc.c (%>S): New.
29851 (SWITCH_KEEP_FOR_GCC): Likewise.
29852 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
29853 (do_spec_1): Handle "%>".
29855 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
29857 2011-01-07 Jakub Jelinek <jakub@redhat.com>
29860 * config/i386/i386.c (ix86_delegitimize_address): If
29861 simplify_gen_subreg fails, return orig_x.
29864 * value-prof.c (gimple_stringop_fixed_value): Handle
29865 lhs of the call properly.
29867 2011-01-07 Jan Hubicka <jh@suse.cz>
29870 * lto-opt.c (lto_reissue_options): Set flag_shlib.
29872 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
29874 * target.def (function_switched_text_sections): New hook.
29875 * doc/tm.texi: Regenerated.
29876 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
29877 * final.c (default_function_switched_text_sections): New.
29878 (final_scan_insn): Call function_switched_text_sections when a
29879 mid-function section change occurs.
29880 * output.h (default_function_switched_text_sections): Declare.
29881 * config/darwin-protos.h (darwin_function_switched_text_sections):
29883 * config/darwin.c (darwin_function_switched_text_sections): New.
29884 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
29886 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
29888 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
29889 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
29890 the secondary code fragment when outputting for DWARF == 2.
29892 2011-01-07 Anatoly Sokolov <aesok@post.ru>
29894 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
29895 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
29897 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
29898 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
29900 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
29903 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
29904 when it is not empty.
29906 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
29909 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
29910 (case ${target}): Add btver1.
29911 * config/i386/driver-i386.c (host_detect_local_cpu): Let
29912 -march=native recognize btver1 processors.
29913 * config/i386/i386-c.c (ix86_target_macros_internal): Add
29914 btver1 def_and_undef
29915 * config/i386/i386.c (struct processor_costs btver1_cost): New
29917 (m_BTVER1): New definition.
29918 (m_AMD_MULTIPLE): Includes m_BTVER1.
29919 (initial_ix86_tune_features): Add btver1 tune.
29920 (processor_target_table): Add btver1 entry.
29921 (static const char *const cpu_names): Add btver1 entry.
29922 (software_prefetching_beneficial_p): Add btver1.
29923 (ix86_option_override_internal): Add btver1 instruction sets.
29924 (ix86_issue_rate): Add btver1.
29925 (ix86_adjust_cost): Add btver1.
29926 * config/i386/i386.h (TARGET_BTVER1): New definition.
29927 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
29928 (enum processor_type): Add PROCESSOR_BTVER1.
29929 * config/i386/i386.md (define_attr "cpu"): Add btver1.
29931 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29934 * config/i386/i386.c (legitimize_tls_address)
29935 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
29936 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
29937 (tls_initial_exec_64_sun): New pattern.
29939 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
29941 * doc/invoke.texi (Overall Options): Improve wording and markup
29942 of the description of -wrapper.
29944 2011-01-06 Joseph Myers <joseph@codesourcery.com>
29946 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
29947 rdynamic, threads): New Driver options.
29949 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29952 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
29953 if coming from .tdata.
29954 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
29956 2011-01-06 Jan Hubicka <jh@suse.cz>
29959 * collect2.c (main): Do not enable LTOmode when plugin is active.
29961 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29964 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
29965 --version output if supported.
29966 * configure: Regenerate.
29968 2011-01-06 Joseph Myers <joseph@codesourcery.com>
29970 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
29973 2011-01-06 Jakub Jelinek <jakub@redhat.com>
29976 * c-convert.c (convert): When converting a complex expression
29977 other than COMPLEX_EXPR to a different complex type, ensure
29978 c_save_expr is called instead of save_expr, unless in_late_binary_op.
29979 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
29980 when converting COMPLEX_TYPE.
29982 2011-01-06 Ira Rosen <irar@il.ibm.com>
29984 PR tree-optimization/47139
29985 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
29986 only the last reduction value is used outside the loop. Update
29989 2011-01-05 Joseph Myers <joseph@codesourcery.com>
29991 * config/rtems.opt: New.
29992 * config.gcc (*-*-rtems*): Use rtems.opt.
29994 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
29996 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
29997 processors do not support 3DNow instructions.
29999 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30001 * config/spu/spu.c (spu_option_override): Set parameter
30002 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
30004 2011-01-05 Jan Hubicka <jh@suse.cz>
30006 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
30007 at the command line.
30009 2011-01-05 Martin Jambor <mjambor@suse.cz>
30012 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
30013 deltas on streamed outgoing edges.
30014 (output_node_opt_summary): Output info for outgoing edges only when
30015 the node is in new parameter set.
30016 (output_cgraph_opt_summary): New parameter set, passed to the two
30017 aforementioned functions. Update its forward declaration and its
30020 2011-01-05 Tom Tromey <tromey@redhat.com>
30022 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
30023 operator to c_finish_omp_atomic.
30024 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
30025 (build_unary_op): Update.
30026 (build_modify_expr): Update.
30027 (build_asm_expr): Update.
30029 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30031 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
30032 newly inserted insns.
30033 (pad_bb): Likewise.
30034 (spu_emit_branch_hint): Likewise.
30035 (insert_hbrp_for_ilb_runout): Likewise.
30036 (spu_machine_dependent_reorg): Call df_finish_pass after
30037 schedule_insns returns.
30039 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30041 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
30043 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
30045 PR tree-optimization/47005
30046 * tree-sra.c (struct access): Add 'non_addressable' bit.
30047 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
30048 (decide_one_param_reduction): Return 0 if the parameter is passed by
30049 reference and one of the accesses in the group is non_addressable.
30051 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
30053 PR tree-optimization/47056
30054 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
30055 (mark_load): Likewise. Handle FUNCTION_DECL specially.
30056 (mark_store): Likewise. Pass STMT to ipa_record_reference.
30058 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
30060 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
30061 initializer. Skip view conversions from aggregate types.
30063 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
30066 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
30068 2011-01-04 Philipp Thomas <pth@suse.de>
30070 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
30073 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30075 * function.c (thread_prologue_and_epilogue_insns): Do not crash
30076 on empty epilogue sequences.
30078 2011-01-04 Joseph Myers <joseph@codesourcery.com>
30080 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
30081 non-static): New Driver options.
30083 2011-01-04 Jie Zhang <jie@codesourcery.com>
30086 * gcc.c (default_compilers[]): Set combinable field to 0
30087 for all assembly languages.
30089 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
30091 * config/mips/loongson3a.md: New file.
30092 * config/mips/mips.md: Include loongson3a.md.
30093 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
30096 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
30098 PR middle-end/47017
30099 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
30100 instead of convert_memory_address_addr_space on the base expression.
30102 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30104 * config/spu/spu.c (spu_option_override): Update error text
30105 for bad -march= / -mtune= values.
30107 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30109 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
30110 if branch-hint optimization will be performed.
30112 2011-01-03 Jakub Jelinek <jakub@redhat.com>
30114 PR tree-optimization/47148
30115 * ipa-split.c (split_function): Convert arguments to
30116 DECL_ARG_TYPE if possible.
30118 PR tree-optimization/47155
30119 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
30120 when computing uns.
30122 PR rtl-optimization/47157
30123 * combine.c (try_combine): If undobuf.other_insn becomes
30124 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
30125 and set *new_direct_jump_p too.
30127 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
30129 PR tree-optimization/47021
30130 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
30132 2011-01-03 Jakub Jelinek <jakub@redhat.com>
30134 * gcc.c (process_command): Update copyright notice dates.
30135 * gcov.c (print_version): Likewise.
30136 * gcov-dump.c (print_version): Likewise.
30137 * mips-tfile.c (main): Likewise.
30138 * mips-tdump.c (main): Likewise.
30140 2011-01-03 Martin Jambor <mjambor@suse.cz>
30142 PR tree-optimization/46801
30143 * tree-sra.c (type_internals_preclude_sra_p): Check whether
30144 aggregate fields start at byte boundary instead of the bit-field flag.
30146 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
30149 * gcc.c (main): Revert revision 168407.
30151 2011-01-03 Martin Jambor <mjambor@suse.cz>
30153 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
30155 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30157 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
30158 vector optab to expand vector/scalar shift, update gimple to vector.
30160 2011-01-03 Martin Jambor <mjambor@suse.cz>
30162 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
30165 2011-01-03 Martin Jambor <mjambor@suse.cz>
30167 PR tree-optimization/46984
30168 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
30170 (cgraph_create_indirect_edge): Fixed line length.
30171 (cgraph_indirect_call_info): Declare.
30172 (cgraph_make_edge_direct) Update declaration.
30173 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
30174 (cgraph_create_indirect_edge): Use it.
30175 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
30177 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
30178 the new thunk_delta representation.
30179 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
30181 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
30182 (ipa_read_indirect_edge_info): Likewise.
30183 * lto-cgraph.c (output_edge_opt_summary): New function.
30184 (output_node_opt_summary): Call it on all outgoing edges.
30185 (input_edge_opt_summary): New function.
30186 (input_node_opt_summary): Call it on all outgoing edges.
30188 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
30191 * gcc.c (main): Don't check have_o when settting combine_inputs.
30193 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
30195 * regrename.c: Add general comment describing the pass.
30196 (struct du_head): Remove 'length' field.
30197 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
30198 (regrename_optimize): Do not sort chains. Rework comments, add others.
30199 Force renaming to the preferred class (if any) in the first pass and do
30200 not consider registers that belong to it in the second pass.
30201 (create_new_chain): Do not set 'length' field.
30202 (scan_rtx_reg): Likewise.
30204 2011-01-02 Jakub Jelinek <jakub@redhat.com>
30206 PR tree-optimization/47140
30207 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
30208 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
30209 to bit_value_binop.
30211 PR rtl-optimization/47028
30212 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
30213 parm_birth_insn instead of at the beginning of first bb.
30215 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
30217 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
30218 Remove the word "see" before "@pxref".
30219 * doc/rtl.texi: Remove the word "see" before "@pxref".
30221 2011-01-01 Jan Hubicka <jh@suse.cz>
30223 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
30226 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
30229 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
30232 Copyright (C) 2011 Free Software Foundation, Inc.
30234 Copying and distribution of this file, with or without modification,
30235 are permitted in any medium without royalty provided the copyright
30236 notice and this notice are preserved.