re PR tree-optimization/50769 (ICE: in phi_alternatives_equal, at tree-cfgcleanup...
[gcc.git] / gcc / ChangeLog
1 2011-10-19 Tom de Vries <tom@codesourcery.com>
2
3 PR tree-optimization/50769
4 * tree-ssa-tail-merge.c (replace_block_by): Calculate phi_vuse2
5 unconditionally. Handle case that phi_vuse2 is not an SSA_NAME. Add
6 dummy argument .MEM to phi when increasing number of arguments of phi by
7 redirecting edges to the block with phi.
8
9 2011-10-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10
11 PR bootstrap/50777
12 * configure.ac: Save and restore CXXFLAGS around
13 gcc_AC_CHECK_DECLS uses.
14 Check for madvise() declaration with g++ if --enable-build-with-cxx.
15 * configure: Regenerate.
16 * config.in: Regenerate.
17 * ggc-page.c (USING_MADVISE): Also check HAVE_DECL_MADVISE.
18
19 2011-10-19 Alexandre Oliva <aoliva@redhat.com>
20
21 PR debug/49310
22 * var-tracking.c (loc_exp_dep, onepart_aux): New structs.
23 (variable_part): Replace offset with union.
24 (enum onepart_enum, onepart_enum_t): New.
25 (variable_def): Drop cur_loc_changed, add onepart.
26 (value_chain_def, const_value_chain): Remove.
27 (VAR_PART_OFFSET, VAR_LOC_1PAUX): New macros, with checking.
28 (VAR_LOC_DEP_LST, VAR_LOC_DEP_LSTP): New macros.
29 (VAR_LOC_FROM, VAR_LOC_DEPTH, VAR_LOC_DEP_VEC): Likewise.
30 (value_chain_pool, value_chains): Remove.
31 (dropped_values): New.
32 (struct parm_reg): Only if HAVE_window_save.
33 (vt_stack_adjustments): Don't record register arguments.
34 (dv_as_rtx): New.
35 (dv_onepart_p): Return a onepart_enum_t.
36 (onepart_pool): New.
37 (dv_pool): Remove.
38 (dv_from_rtx): New.
39 (variable_htab_free): Release onepart aux data. Reset flags.
40 (value_chain_htab_hash, value_chain_htab_eq): Remove.
41 (unshare_variable): Use onepart field. Propagate onepart aux
42 data or offset. Drop cur_loc_changed.
43 (val_store): Cope with NULL insn. Rephrase dump output. Check
44 for unsuitable locs. Add FIXME on using cselib locs.
45 (val_reset): Remove FIXME of unfounded concerns.
46 (val_resolve): Check for unsuitable locs. Add FIXME on using
47 cselib locs.
48 (variable_union): Use onepart field, adjust access to offset.
49 (NO_LOC_P): New.
50 (VALUE_CHANGED, DECL_CHANGED): Update doc.
51 (set_dv_changed): Clear NO_LOC_P when changed.
52 (find_loc_in_1pdv): Use onepart field.
53 (intersect_loc_chains): Likewise.
54 (unsuitable_loc): New.
55 (loc_cmp): Keep ENTRY_VALUEs at the end of the loc list.
56 (add_value_chain, add_value_chains): Remove.
57 (add_cselib_value_chains, remove_value_chain): Likewise.
58 (remove_value_chains, remove_cselib_value_chains): Likewise.
59 (canonicalize_loc_order_check): Use onepart. Drop cur_loc_changed.
60 (canonicalize_values_star, canonicalize_vars_star): Use onepart.
61 (variable_merge_over_cur): Likewise. Adjust access to offset.
62 Drop cur_loc_changed.
63 (variable_merge_over_src): Use onepart field.
64 (remove_duplicate_values): Likewise.
65 (variable_post_merge_new_vals): Likewise.
66 (find_mem_expr_in_1pdv): Likewise.
67 (dataflow_set_preserve_mem_locs): Likewise. Drop cur_loc_changed
68 and value chains.
69 (dataflow_set_remove_mem_locs): Likewise. Use VAR_LOC_FROM.
70 (variable_different_p): Use onepart field. Move onepart test out
71 of the loop.
72 (argument_reg_set): Drop.
73 (add_uses, add_stores): Preserve but do not record in dynamic
74 tables equivalences for ENTRY_VALUEs and CFA_based addresses.
75 Avoid unsuitable address expressions.
76 (EXPR_DEPTH): Unlimit.
77 (EXPR_USE_DEPTH): Repurpose PARAM_MAX_VARTRACK_EXPR_DEPTH.
78 (prepare_call_arguments): Use DECL_RTL_IF_SET.
79 (dump_var): Adjust access to offset.
80 (variable_from_dropped, recover_dropped_1paux): New.
81 (variable_was_changed): Drop cur_loc_changed. Use onepart.
82 Preserve onepart aux in empty_var. Recover empty_var and onepart
83 aux from dropped_values.
84 (find_variable_location_part): Special-case onepart. Adjust
85 access to offset.
86 (set_slot_part): Use onepart. Drop cur_loc_changed. Adjust
87 access to offset. Initialize onepaux. Drop value chains.
88 (delete_slot_part): Drop value chains. Use VAR_LOC_FROM.
89 (VEC (variable, heap), VEC (rtx, stack)): Define.
90 (expand_loc_callback_data): Drop dummy, cur_loc_changed,
91 ignore_cur_loc. Add expanding, pending, depth.
92 (loc_exp_dep_alloc, loc_exp_dep_clear): New.
93 (loc_exp_dep_insert, loc_exp_dep_set): New.
94 (notify_dependents_of_resolved_value): New.
95 (update_depth, vt_expand_var_loc_chain): New.
96 (vt_expand_loc_callback): Revamped.
97 (resolve_expansions_pending_recursion): New.
98 (INIT_ELCD, FINI_ELCD): New.
99 (vt_expand_loc): Use the new macros above. Drop ignore_cur_loc
100 parameter, adjust all callers.
101 (vt_expand_loc_dummy): Drop.
102 (vt_expand_1pvar): New.
103 (emit_note_insn_var_location): Operate on non-debug decls only.
104 Revamp multi-part cur_loc recomputation and one-part expansion.
105 Drop cur_loc_changed. Adjust access to offset.
106 (VEC (variable, heap)): Drop.
107 (changed_variables_stack, changed_values_stack): Drop.
108 (check_changed_vars_0, check_changed_vars_1): Remove.
109 (check_changed_vars_2, check_changed_vars_3): Remove.
110 (values_to_stack, remove_value_from_changed_variables): New.
111 (notify_dependents_of_changed_value, process_changed_values): New.
112 (emit_notes_for_changes): Revamp onepart updates.
113 (emit_notes_for_differences_1): Use onepart. Drop cur_loc_changed
114 and value chains. Propagate onepaux. Recover empty_var and onepaux
115 from dropped_values.
116 (emit_notes_for_differences_2): Drop value chains.
117 (emit_notes_in_bb): Adjust.
118 (vt_emit_notes): Drop value chains, changed_variables_stack.
119 Initialize and release dropped_values.
120 (create_entry_value): Revamp.
121 (vt_add_function_parameter): Use new interface.
122 (note_register_arguments): Remove.
123 (vt_initialize): Drop value chains and register arguments.
124 (vt_finalize): Drop value chains. Release windowed_parm_regs only
125 if HAVE_window_save.
126 * rtl.h: Document various pass-local uses of RTL flags.
127 * tree.h (DECL_RTL_KNOWN_SET): New.
128 * doc/invoke.texi (param max-vartrack-expr-depth): Update
129 description and default.
130
131 2011-10-19 Georg-Johann Lay <avr@gjlay.de>
132
133 PR target/50447
134 * config/avr/avr.md (cc): New alternative out_plus_noclobber.
135 (adjust_len): Ditto.
136 (addhi3): Don't pipe through short; use gen_int_mode instead.
137 Prior to reload, expand to gen_addhi3_clobber.
138 (*addhi3): Use avr_out_plus_noclobber if applicable, use
139 out_plus_noclobber in cc and adjust_len attribute.
140 (addhi3_clobber): 2 new RTL peepholes.
141 (addhi3_clobber): New insn.
142 * config/avr/avr-protos.h: (avr_out_plus_noclobber): New prototype.
143 * config/avr/avr.c (avr_out_plus_noclobber): New function.
144 (notice_update_cc): Handle CC_OUT_PLUS_NOCLOBBER.
145 (avr_out_plus_1): Tweak if only MSB is +/-1 and other bytes are 0.
146 Set cc0 to set_zn for adiw on 16-bit values.
147 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS_NOCLOBBER.
148 (expand_epilogue): No need to add 0 to frame_pointer_rtx.
149
150 2011-10-19 Richard Guenther <rguenther@suse.de>
151
152 PR middle-end/50780
153 * tree-ssa-forwprop.c (forward_propagate_into_cond): Verify
154 the condition is properly gimple before using it.
155 * tree-eh (stmt_could_throw_1_p): Properly extract the
156 operation type from comparisons.
157
158 2011-10-19 Roland Stigge <stigge@antcom.de>
159
160 PR translation/48638
161 * plugin.c (add_new_plugin): Fix typo in fatal_error message.
162
163 2011-10-19 Roland Stigge <stigge@antcom.de>
164
165 PR translation/49517
166 * config/rx/rx.c (rx_print_operand): Fix typo in warning message.
167
168 2011-10-19 Richard Guenther <rguenther@suse.de>
169
170 PR middle-end/50768
171 * gimple-fold.c (gimplify_and_update_call_from_tree): Rewrite.
172
173 2011-10-19 Andrey Belevantsev <abel@ispras.ru>
174
175 PR rtl-optimization/50340
176 * sel-sched-ir.c (update_target_availability): LHS register
177 availability is not known if the unavailable LHS of the other
178 expression is a different register.
179
180 2011-10-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
181
182 PR target/50310
183 * config/spu/spu.c (spu_emit_vector_compare): Support unordered
184 floating-point comparisons.
185
186 2011-10-19 Jan Hubicka <jh@suse.cz>
187
188 * cgraphunit.c (handle_alias_pairs): Also handle wekref with destination
189 declared.
190 (output_weakrefs): New function.
191 * varpool.c (varpool_create_variable_alias): Handle external aliases.
192
193 2011-10-19 Jakub Jelinek <jakub@redhat.com>
194
195 * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
196 second argument instead of mode.
197
198 2011-10-18 Jakub Jelinek <jakub@redhat.com>
199
200 * config/i386/i386.c (ix86_expand_vec_perm): In merge_two use
201 mode SUBREG of operands[0] as target.
202 (valid_perm_using_mode_p): Don't ignore higher bits of d->perm.
203 (expand_vec_pshufb): For V8SImode vmode emit avx2_permvarv8si.
204 (expand_vec_perm_1): Handle identity and some broadcast
205 permutations.
206 (expand_vec_perm_interleave2): Handle also 32-byte modes, using
207 vperm2[fi]128 or vpunpck[lh]* followed by single insn permutation.
208 For d->testing_p return true earlier to avoid creating more GC
209 garbage.
210 (expand_vec_perm_vpermq_perm_1): New function.
211 (expand_vec_perm_vpshufb2_vpermq): For d->testing_p return true
212 earlier to avoid creating more GC garbage. Fix handling of
213 V16HImode. Avoid some SUBREGs in SET_DEST.
214 (expand_vec_perm_broadcast_1): Return false for 32-byte integer
215 vector modes.
216 (expand_vec_perm_vpshufb4_vpermq2): New function.
217 (ix86_expand_vec_perm_builtin_1): Call expand_vec_perm_vpermq_perm_1
218 and expand_vec_perm_vpshufb4_vpermq2.
219
220 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
221
222 * config/arm/driver-arm.c (host_detect_local_cpu): Close the file
223 before exiting.
224
225 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
226
227 PR tree-optimization/50717
228
229 * tree-ssa-math-opts.c (is_widening_mult_p): Remove the 'type'
230 parameter. Calculate 'type' from stmt.
231 (convert_mult_to_widen): Update call the is_widening_mult_p.
232 (convert_plusminus_to_widen): Likewise.
233
234 2011-10-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
235
236 * config/spu/spu.c (struct machine_function): New data structure.
237 (spu_init_machine_status): New function.
238 (spu_option_override): Install it.
239 (get_pic_reg): Set and use cfun->machine->pic_reg.
240 (spu_split_immediate): Do not set crtl->uses_pic_offset_table.
241 (need_to_save_reg): Use cfun->machine->pic_reg instead of
242 checking crtl->uses_pic_offset_table.
243 (spu_expand_prologue): Likewise.
244
245 2011-10-18 Jakub Jelinek <jakub@redhat.com>
246
247 PR tree-optimization/50735
248 * function.c (gimplify_parameters): Use create_tmp_var instead of
249 create_tmp_reg. If parm is not TREE_ADDRESSABLE and type is complex
250 or vector type, set DECL_GIMPLE_REG_P.
251
252 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
253
254 * config.host (arm*-*-linux*): Add driver-arm.o and x-arm.
255 * config/arm/arm.opt: Add 'native' processor_type and
256 arm_arch enum values.
257 * config/arm/arm.h (host_detect_local_cpu): New prototype.
258 (EXTRA_SPEC_FUNCTIONS): New define.
259 (MCPU_MTUNE_NATIVE_SPECS): New define.
260 (DRIVER_SELF_SPECS): New define.
261 * config/arm/driver-arm.c: New file.
262 * config/arm/x-arm: New file.
263 * doc/invoke.texi (ARM Options): Document -mcpu=native,
264 -mtune=native and -march=native.
265
266 2011-10-18 Alexander Monakov <amonakov@ispras.ru>
267
268 PR rtl-optimization/50205
269 * sel-sched.c (count_occurrences_1): Simplify on the assumption that
270 p->x is a register. Forbid substitution when the same register is
271 found in a different mode.
272 (count_occurrences_equiv): Assert that 'what' is a register.
273
274 2011-10-18 Richard Guenther <rguenther@suse.de>
275
276 PR tree-optimization/50767
277 * tree-ssa-pre.c (create_expression_by_pieces): Update the
278 folded statement.
279
280 2011-10-18 Julian Brown <julian@codesourcery.com>
281
282 * config/arm/arm.c (arm_block_move_unaligned_straight)
283 (arm_adjust_block_mem, arm_block_move_unaligned_loop)
284 (arm_movmemqi_unaligned): New.
285 (arm_gen_movmemqi): Support unaligned block copies.
286
287 2011-10-18 Ira Rosen <ira.rosen@linaro.org>
288
289 * doc/md.texi (vec_widen_ushiftl_hi, vec_widen_ushiftl_lo,
290 vec_widen_sshiftl_hi, vec_widen_sshiftl_lo): Document.
291 * tree-pretty-print.c (dump_generic_node): Handle WIDEN_LSHIFT_EXPR,
292 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
293 (op_code_prio): Likewise.
294 (op_symbol_code): Handle WIDEN_LSHIFT_EXPR.
295 * optabs.c (optab_for_tree_code): Handle
296 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
297 (init-optabs): Initialize optab codes for vec_widen_u/sshiftl_hi/lo.
298 * optabs.h (enum optab_index): Add OTI_vec_widen_u/sshiftl_hi/lo.
299 * genopinit.c (optabs): Initialize the new optabs.
300 * expr.c (expand_expr_real_2): Handle
301 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
302 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
303 * tree-vectorizer.h (NUM_PATTERNS): Increase to 8.
304 * tree.def (WIDEN_LSHIFT_EXPR, VEC_WIDEN_LSHIFT_HI_EXPR,
305 VEC_WIDEN_LSHIFT_LO_EXPR): New.
306 * cfgexpand.c (expand_debug_expr): Handle new tree codes.
307 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
308 vect_recog_widen_shift_pattern.
309 (vect_handle_widen_mult_by_const): Rename...
310 (vect_handle_widen_op_by_const): ...to this. Handle shifts.
311 Add a new argument, update documentation.
312 (vect_recog_widen_mult_pattern): Assume that only second
313 operand can be constant. Update call to
314 vect_handle_widen_op_by_const.
315 (vect_recog_over_widening_pattern): Fix typo.
316 (vect_recog_widen_shift_pattern): New.
317 * tree-vect-stmts.c (vectorizable_type_promotion): Handle
318 widening shifts.
319 (supportable_widening_operation): Likewise.
320 * tree-inline.c (estimate_operator_cost): Handle new tree codes.
321 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
322 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
323 * config/arm/neon.md (neon_vec_<US>shiftl_<mode>): New.
324 (vec_widen_<US>shiftl_lo_<mode>, neon_vec_<US>shiftl_hi_<mode>,
325 vec_widen_<US>shiftl_hi_<mode>, neon_vec_<US>shift_left_<mode>):
326 Likewise.
327 * config/arm/predicates.md (const_neon_scalar_shift_amount_operand):
328 New.
329 * config/arm/iterators.md (V_innermode): New.
330 * tree-vect-slp.c (vect_build_slp_tree): Require same shift operand
331 for widening shift.
332
333 2011-10-18 Richard Guenther <rguenther@suse.de>
334
335 * tree-ssa-alias.h (struct pt_solution): Remove
336 vars_contains_restrict member.
337 (pt_solutions_same_restrict_base): Remove.
338 (pt_solution_set): Adjust.
339 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Remove
340 vars_contains_restrict handling.
341 (dump_points_to_solution): Likewise.
342 (ptr_derefs_may_alias_p): Do not call pt_solutions_same_restrict_base.
343 * tree-ssa-structalias.c (struct variable_info): Remove is_restrict_var
344 field.
345 (new_var_info): Do not initialize it.
346 (ipa_escaped_pt): Adjust.
347 (make_constraint_from_restrict): Make the tag global.
348 (make_constraint_from_global_restrict): New function.
349 (make_constraint_from_heapvar): Remove.
350 (create_variable_info_for): Do not make restrict vars point
351 to NONLOCAL.
352 (intra_create_variable_infos): Likewise.
353 (find_what_var_points_to): Remove vars_contains_restrict handling.
354 (pt_solution_set): Adjust.
355 (pt_solution_ior_into): Likewise.
356 (pt_solutions_same_restrict_base): Remove.
357 (compute_points_to_sets): Do not test is_restrict_var.
358 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
359 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
360
361 2011-10-18 Tom de Vries <tom@codesourcery.com>
362
363 PR tree-optimization/50672
364 * tree-ssa-dce.c (mark_virtual_operand_for_renaming): New function,
365 factored out of ...
366 (mark_virtual_phi_result_for_renaming): Use
367 mark_virtual_operand_for_renaming.
368 * tree-flow.h (mark_virtual_operand_for_renaming): Declare.
369 * tree-ssa-tail-merge.c (release_last_vdef): New function.
370 (purge_bbs): Add update_vops parameter. Call release_last_vdef for each
371 deleted basic block.
372 (tail_merge_optimize): Add argument to call to purge_bbs.
373
374 2011-10-18 Richard Guenther <rguenther@suse.de>
375
376 PR middle-end/50716
377 * expr.c (get_object_or_type_alignment): New function.
378 (expand_assignment): Use it.
379 (expand_expr_real_1): Likewise.
380
381 2011-10-18 Dodji Seketeli <dodji@redhat.com>
382
383 PR bootstrap/50760
384 * input.c (dump_line_table_statistics): Use long, not size_t.
385
386 2011-10-17 Eric Botcazou <ebotcazou@adacore.com>
387
388 * config/sparc/sparc.md (in_call_delay): Fix formatting issues.
389
390 2011-10-17 Simon Baldwin <simonb@google.com>
391 Ian Lance Taylor <iant@google.com>
392
393 * configure.ac: Add --with-native-system-header-dir. Set and
394 substitute NATIVE_SYSTEM_HEADER_DIR. Use native_system_header
395 when setting target_header_dir.
396 * config.gcc: Always set native_system_header_dir.
397 (*-*-gnu*): Set native_system_header_dir. Don't use t-gnu.
398 (i[34567]86-pc-msdosdjgpp*): Set native_system_header_dir. Don't
399 use i386/t-djgpp.
400 (i[34567]86-*-mingw* | x86_64-*-mingw*): Set
401 native_system_header_dir.
402 (spu-*-elf*): Set native_system_header_dir.
403 * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): Set to
404 @NATIVE_SYSTEM_HEADER_DIR@.
405 (PREPROCESSOR_DEFINES): Define NATIVE_SYSTEM_HEADER_DIR.
406 * cppdefault.c (STANDARD_INCLUDE_DIR): Don't define.
407 (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
408 STANDARD_INCLUDE_COMPONENT.
409 (cpp_include_defaults): Don't use SYSTEM_INCLUDE_DIR. Rename
410 STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
411 * system.h: Poison SYSTEM_INCLUDE_DIR, STANDARD_INCLUDE_DIR, and
412 STANDARD_INCLUDE_COMPONENT.
413 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Remove.
414 * config/i386/t-mingw-w32: Likewise.
415 * config/i386/t-mingw-w64: Likewise.
416 * config/spu/t-spu-elf: Likewise.
417 * config/i386/t-djgpp: Remove.
418 * config/t-gnu: Remove.
419 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Don't define.
420 (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
421 STANDARD_INCLUDE_COMPONENT.
422 * config/i386/djgpp.h (STANDARD_INCLUDE_DIR): Don't define.
423 * config/spu/spu-elf.h: Likewise.
424 * config/vms/xm-vms.h: Likewise.
425 * config/gnu.h: Likewise.
426 * config/openbsd.h (INCLUDE_DEFAULTS): Change STANDARD_INCLUDE_DIR
427 and STANDARD_INCLUDE_COMPONENT to NATIVE_SYSTEM_HEADER_DIR and
428 NATIVE_SYSTME_HEADER_COMPONENT.
429 * doc/install.texi (Configuration): Document
430 --with-native-system-header-dir. Mention it in the documentation
431 for --with-sysroot and --with-build-sysroot.
432 * doc/tm.texi.in (Driver): Don't document SYSTEM_INCLUDE_DIR or
433 STANDARD_INCLUDE_DIR. Rename STANDARD_INCLUDE_COMPONENT to
434 NATIVE_SYSTEM_HEADER_COMPONENT. Rename uses of
435 STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
436 * doc/fragments.texi (Target Fragment): Don't document
437 NATIVE_SYSTEM_HEADER_DIR.
438 * configure, doc/tm.texi: Rebuild.
439
440 2011-10-17 Richard Henderson <rth@redhat.com>
441
442 * config/sparc/sparc.md: Use register_or_zero_operand where rJ
443 is the constraint.
444
445 * config/sparc/sparc.md (vec_perm_constv8qi, vec_perm<mode>): New
446 patterns.
447 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): New function.
448 * config/sparc/sparc-protos.h (sparc_expand_vec_perm_bmask): Declare.
449
450 2011-10-17 David S. Miller <davem@davemloft.net>
451
452 * config/sparc/sparc-modes.def: Add single entry vector modes for
453 DImode and SImode.
454 * config/sparc/sparc.md (V32, V32I, V64, V64I, V64N8): Delete
455 mode iterators.
456 (mov<V32:mode>): Revert back to plain SFmode pattern.
457 (*movsf_insn): Likewise.
458 (mov<V64:mode>): Revert back to plain DFmode pattern.
459 (*movdf_insn_sp32): Likewise.
460 (*movdf_insn_sp32_v9): Likewise.
461 (*movdf_insn_sp64): Likewise.
462 (V64 mode splitters) Likewise.
463 (addsi3): Remove VIS alternatives.
464 (subsi3): Likewise.
465 (and<V64I:mode>3): Revert to DImode only pattern.
466 (and<V64I:mode>3_sp32): Likewise.
467 (*and<V64I:mode>3_sp64): Likewise.
468 (and<V32I:mode>3): Likewise.
469 (*and_not_<V64I:mode>_sp32): Likewise.
470 (*and_not_<V64I:mode>_sp64): Likewise.
471 (*and_not_<V32I:mode>): Likewise.
472 (ior<V64I:mode>3): Likewise.
473 (*ior<V64I:mode>3_sp32): Likewise.
474 (*ior<V64I:mode>3_sp64): Likewise.
475 (ior<V32I:mode>3): Likewise.
476 (*or_not_<V64I:mode>_sp32): Likewise.
477 (*or_not_<V64I:mode>_sp64): Likewise.
478 (*or_not_<V32I:mode>): Likewise.
479 (xor<V64I:mode>3): Likewise.
480 (*xor<V64I:mode>3_sp32): Likewise.
481 (*xor<V64I:mode>3_sp64): Likewise.
482 (xor<V32I:mode>3): Likewise.
483 (V64I mode splitters): Likewise.
484 (*xor_not_<V64I:mode>_sp32): Likewise.
485 (*xor_not_<V64I:mode>_sp64): Likewise.
486 (*xor_not_<V32I:mode>): Likewise.
487 (one_cmpl<V64I:mode>2): Likewise.
488 (*one_cmpl<V64I:mode>2_sp32): Likewise.
489 (*one_cmpl<V64I:mode>2_sp64): Likewise.
490 (one_cmpl<V32I:mode>2): Likewise.
491 (VM32, VM64, VMALL): New mode iterators.
492 (vbits, vconstr, vfptype): New mode attributes.
493 (mov<VMALL:mode>): New expander.
494 (*mov<VM32:mode>_insn): New insn.
495 (*mov<VM64:mode>_insn_sp64): New insn.
496 (*mov<VM64:mode>_insn_sp32): New insn, and associated splitter
497 specifically for the register to memory case.
498 (vec_init<mode>): New expander.
499 (VADDSUB): New mode iterator.
500 (<plusminus_insn>v2si3, <plusminus_insn>v2hi3): Remove and replace
501 with...
502 (<plusminus_insn><mode>3): New consolidated pattern.
503 (VL): New mode iterator for logical operations.
504 (vlsuf): New more attribute.
505 (vlop): New code iterator.
506 (vlinsn, vlninsn): New code attributes.
507 (<code><mode>3): New insn to non-negated vector logical ops.
508 (*not_<code><mode>3): Likewise for negated variants.
509 (*nand<mode>_vis): New insn.
510 (vlnotop): New code iterator.
511 (*<code>_not1<mode>_vis, *<code>_not2<mode>_vis): New insns.
512 (one_cmpl<mode>2): New insn.
513 (faligndata<V64I:mode>_vis): Rewrite to use VM64 iterator.
514 (bshuffle<VM64:mode>_vis): Likewise.
515 (v<vis3_shift_patname><mode>3): Use GCM mode iterator.
516 (fp<plusminus_insn>64_vis): Use V1DI mode.
517 (VASS mode iterator): Use V1SI not SI mode.
518 * config/sparc/sparc.c (sparc_vis_init_builtins): Account for
519 single-entry vector mode changes.
520 (sparc_expand_builtin): Likewise.
521 (sparc_expand_vector_init): New function.
522 * config/sparc/sparc-protos.h (sparc_expand_vector_init): Declare.
523
524 2011-10-17 Kai Tietz <ktietz@redhat.com>
525
526 * fold-const.c (simple_operand_p_2): New function.
527 (fold_truthop): Rename to
528 (fold_truth_andor_1): function name.
529 Additionally remove branching creation for logical and/or.
530 (fold_truth_andor): Handle branching creation for logical and/or here.
531
532 2011-10-17 Andi Kleen <ak@linux.intel.com>
533
534 * ggc-page.c (USING_MADVISE): Adjust ifdef to check for USING_MMAP.
535
536 2011-10-17 Georg-Johann Lay <avr@gjlay.de>
537
538 * config/avr/avr.h (ASSEMBLER_DIALECT): Remove.
539 * config/avr/avr.md (mcu_have_movw, mcu_mega): Remove attributes.
540 (adjust_len): Add alternative "call".
541 (isa, enabled): New insn attributes.
542 (length): Use match_test with AVR_HAVE_JMP_CALL instead of
543 mcu_mega attribute.
544 (*sbrx_branch<mode>): Ditto.
545 (*sbrx_and_branch<mode>): Ditto.
546 (*sbix_branch): Ditto.
547 (*sbix_branch_bit7): Ditto.
548 (*sbix_branch_tmp): Ditto.
549 (*sbix_branch_tmp_bit7): Ditto.
550 (jump): Ditto.
551 (negsi2): Use attribute "isa" instead of assembler dialect.
552 (extendhisi2): Ditto.
553 (call_insn, call_value_insn): Set adjust_len attribute.
554 (indirect_jump): Indent to coding rules.
555 (call_prologue_saves): Use isa attribute instead of mcu_mega.
556 (epilogue_restores): Ditto. Fix setting of SP as described in the
557 RTX pattern.
558 (*indirect_jump): Fusion of *jcindirect_jump, *njcindirect_jump
559 and *indirect_jump_avr6.
560 (*tablejump): Fusion of *tablejump_rjmp and *tablejump_lib.
561 (*jcindirect_jump, *njcindirect_jump, *indirect_jump_avr6): Remove.
562 (*tablejump_rjmp, *tablejump_lib): Remove.
563 * config/avr/avr.c (adjust_insn_length): Handle ADJUST_LEN_CALL.
564
565 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
566
567 PR c++/50757
568 * doc/invoke.texi ([Wnonnull]): Update.
569
570 2011-10-17 Richard Henderson <rth@redhat.com>
571
572 PR 50746
573 * optabs.c (expand_vec_perm_expr): Fix indexing error.
574
575 2011-10-17 Sergio Durigan Junior <sergiodj@redhat.com>
576
577 * configure.ac: Display `yes' if the SystemTap header has been
578 found.
579 * configure: Regenerate.
580
581 2011-10-08 Andi Kleen <ak@linux.intel.com>
582
583 PR other/50636
584 * config.in, configure: Regenerate.
585 * configure.ac (madvise): Add to AC_CHECK_FUNCS.
586 * ggc-page.c (USING_MADVISE): Add.
587 (page_entry): Add discarded field.
588 (alloc_page): Check for discarded pages.
589 (release_pages): Add USING_MADVISE branch.
590
591 2011-10-17 Richard Guenther <rguenther@suse.de>
592
593 PR tree-optimization/50729
594 * tree-vrp.c (extract_range_from_unary_expr_1): Remove
595 redundant test.
596 (simplify_conversion_using_ranges): Properly test the
597 intermediate result.
598
599 2011-10-15 Tom Tromey <tromey@redhat.com>
600 Dodji Seketeli <dodji@redhat.com>
601
602 * ggc.h (ggc_round_alloc_size): Declare new public entry point.
603 * ggc-none.c (ggc_round_alloc_size): New public stub function.
604 * ggc-page.c (ggc_alloced_size_order_for_request): New static
605 function. Factorized from ggc_internal_alloc_stat.
606 (ggc_round_alloc_size): New public function. Uses
607 ggc_alloced_size_order_for_request.
608 (ggc_internal_alloc_stat): Use ggc_alloced_size_order_for_request.
609 * ggc-zone.c (ggc_round_alloc_size): New public function extracted
610 from ggc_internal_alloc_zone_stat.
611 (ggc_internal_alloc_zone_stat): Use ggc_round_alloc_size.
612 * toplev.c (general_init): Initialize
613 line_table->alloced_size_for_request.
614
615 2011-10-15 Tom Tromey <tromey@redhat.com>
616 Dodji Seketeli <dodji@redhat.com>
617
618 * input.c (ONE_K, ONE_M, SCALE, STAT_LABEL, FORMAT_AMOUNT): New
619 macros.
620 (num_expanded_macros_counter, num_macro_tokens_counter): Declare
621 new counters.
622 (dump_line_table_statistics): Define new function.
623 * input.h (dump_line_table_statistics): Declare new function.
624 * toplev.c (dump_memory_report): Call dump_line_table_statistics.
625
626 2011-10-15 Tom Tromey <tromey@redhat.com>
627 Dodji Seketeli <dodji@redhat.com>
628
629 * doc/cppopts.texi: Document -fdebug-cpp.
630 * doc/invoke.texi: Add -fdebug-cpp to the list of preprocessor
631 options.
632
633 2011-10-15 Tom Tromey <tromey@redhat.com>
634 Dodji Seketeli <dodji@redhat.com>
635
636 * gcc/diagnostic.h (diagnostic_report_current_module): Add a
637 location parameter.
638 * diagnostic.c (diagnostic_report_current_module): Add a location
639 parameter to the function definition. Use it instead of
640 input_location. Resolve the virtual location rather than just
641 looking up its map and risking to touch a resulting macro map.
642 (default_diagnostic_starter): Pass the relevant diagnostic
643 location to diagnostic_report_current_module.
644 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
645 (virt_loc_aware_diagnostic_finalizer): Likewise.
646 (diagnostic_report_current_function): Pass the
647 relevant location to diagnostic_report_current_module.
648 * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
649 new function.
650 * toplev.c (general_init): By default, use the new
651 virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
652 * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
653
654 2011-10-15 Tom Tromey <tromey@redhat.com>
655 Dodji Seketeli <dodji@redhat.com>
656
657 * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
658 * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
659 preprocessor related options.
660
661 2011-10-15 Tom Tromey <tromey@redhat>
662 Dodji Seketeli <dodji@redhat.com>
663
664 * input.h (struct expanded_location): Move to libcpp/line-map.h.
665 (LOCATION_COLUMN): New accessor
666 (in_system_header_at): Use linemap_location_in_system_header_p.
667 * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
668 touching the internals of struct line_map. Use the public API.
669 instead.
670 (diagnostic_report_diagnostic): Don't use relational operator '<'
671 on virtual locations. Use linemap_location_before_p instead.
672 * input.c (expand_location): Adjust to expand to the tokens'
673 spelling location when macro location tracking is on.
674
675
676 2011-10-08 Andi Kleen <ak@linux.intel.com>
677
678 * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
679
680 2011-10-13 Andi Kleen <ak@linux.intel.com>
681
682 * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
683
684 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
685
686 PR tree-optimization/50727
687 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
688 DEF_STMT to the list of statements to be replaced by the
689 pattern statements.
690
691 2011-10-16 Eric Botcazou <ebotcazou@adacore.com>
692
693 PR rtl-optimization/50615
694 * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
695
696 2011-10-16 Jakub Jelinek <jakub@redhat.com>
697
698 PR tree-optimization/50596
699 * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
700 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
701 vect_recog_bool_pattern.
702 (check_bool_pattern, adjust_bool_pattern_cast,
703 adjust_bool_pattern, vect_recog_bool_pattern): New functions.
704
705 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
706
707 * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
708 treat the first load of the node as the first element in its
709 interleaving chain.
710 * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
711 necessary and possible.
712 (vect_build_slp_tree): Add new argument. Allow load groups of any size
713 in basic blocks. Keep all the loads for further permutation check.
714 Use the new argument to determine if there is a permutation. Update
715 the recursive calls.
716 (vect_supported_load_permutation_p): Allow subchains of interleaving
717 chains in basic block vectorization.
718 (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
719 Check load permutation based on the new parameter.
720 (vect_schedule_slp_instance): Don't start from the first element in
721 interleaving chain unless the loads are permuted.
722
723 2011-10-15 Jan Hubicka <jh@suse.cz>
724
725 PR target/48668
726 PR target/50689
727 * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
728 after function body.
729
730 2011-10-15 Richard Henderson <rth@redhat.com>
731
732 * tree-vect-slp.c: Include langhooks.h.
733 (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
734 (vect_transform_slp_perm_load): Use can_vec_perm_expr_p. Simplify
735 mask creation for VEC_PERM_EXPR.
736 * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
737 not the builtin.
738 (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
739 * Makefile.in (tree-vect-slp.o): Update dependency.
740 * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
741
742 2011-10-15 Alan Modra <amodra@gmail.com>
743
744 PR bootstrap/50738
745 * ifcvt.c (dead_or_predicable): Revert accidental commit with
746 HAVE_simple_return test.
747
748 2011-10-15 Alan Modra <amodra@gmail.com>
749
750 * ifcvt.c (dead_or_predicable): Disable if-conversion when
751 doing so is likely to kill a shrink-wrapping opportunity.
752
753 PR rtl-optimization/49941
754 * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
755
756 * rtl.h (set_return_jump_label): Declare.
757 * function.c (set_return_jump_label): New function, extracted..
758 (thread_prologue_and_epilogue_insns): ..from here. Use it in
759 another instance to set return jump_label.
760 * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
761 * reorg.c (find_end_label): Likewise.
762
763 2011-10-14 David S. Miller <davem@davemloft.net>
764
765 * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
766 with a more complete cpp test.
767 * config/sparc/linux64.h: Likewise.
768 * config/sparc/linux.h: Likewise.
769 * config/sparc/sparc.opt (sparc_debug): New target variable.
770 (mdebug): New target option.
771 * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
772 TARGET_DEBUG_OPTIONS): New defines.
773 * config/sparc/sparc.c (debug_target_flag_bits,
774 debug_target_flags): New functions.
775 (sparc_option_override): Add name strings back to cpu_table[].
776 Parse -mdebug string. When TARGET_DEBUG_OPTIONS is true, print
777 out the target flags before and after override processing as well
778 as the selected cpu. If MASK_V8PLUS, make sure that the selected
779 cpu is at least v9.
780
781 2011-10-15 Oleg Endo <oleg.endo@t-online.de>
782
783 PR target/49263
784 * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
785 * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
786 * config/sh/sh.md (tstsi_t): Name existing insn. Make inner
787 and instruction commutative.
788 (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
789 tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
790 tstsi_t_zero_extract_subreg_xor_little,
791 tstsi_t_zero_extract_subreg_xor_big): New insns.
792 (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
793 asm output.
794 (*andsi_compact): Reorder alternatives so that K08 is considered first.
795
796 2011-10-14 Eric Botcazou <ebotcazou@adacore.com>
797
798 PR target/50354
799 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
800 processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
801
802 2011-10-14 Gerald Pfeifer <gerald@pfeifer.com>
803
804 * invoke.texi (AVR Options): Avoid \leq{}.
805
806 2011-10-14 Kai Tietz <ktietz@redhat.com>
807
808 * gimplify.c (gimplify_expr): Take care that for bitwise-binary
809 transformation the operands have compatible types.
810
811 2011-10-14 Jakub Jelinek <jakub@redhat.com>
812
813 * config/i386/sse.md (vec_widen_smult_hi_v8hi,
814 vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
815 vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
816 mode iterator and any_extend code iterator.
817 (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
818 (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
819 also for TARGET_SSE4_1 using pmuldq insn.
820 (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
821 (sse2_sse4_1): New code attr.
822 (udot_prodv4si): Macroize using any_extend code iterator.
823 (<s>dot_prodv8si): New expander.
824
825 2011-10-14 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
826
827 * config/i386/i386.c (atom_cost): Changed cost for loading
828 QImode using movzbl.
829
830 2011-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
831
832 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
833 change on October 11th, 2011.
834
835 2011-10-14 Jakub Jelinek <jakub@redhat.com>
836
837 * config/i386/sse.md (vec_interleave_high<mode>,
838 vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
839 * config/i386/i386.c (expand_vec_perm_interleave3): New function.
840 (ix86_expand_vec_perm_builtin_1): Call it.
841
842 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
843
844 Fix thinko from r179765
845 * config/avr/avr.c (avr_option_override): Don't override
846 flag_omit_frame_pointer if not actually needed.
847
848 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
849
850 PR target/46278
851 * doc/invoke.texi (AVR Options): Document -mstrict-X.
852
853 * config/avr/avr.opt (-mstrict-X): New option.
854 (avr_strict_X): New variable reflecting -mstrict-X.
855 * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
856 outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
857 (avr_legitimate_address_p): Pass outer_code to
858 avr_reg_ok_for_addr_p and use that function in case PLUS.
859 (avr_mode_code_base_reg_class): Depend on avr_strict_X.
860 (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
861 (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
862
863 2011-10-14 Jakub Jelinek <jakub@redhat.com>
864
865 * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
866 of VI_128.
867
868 * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
869 (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
870 Use <sseinsnmode> instead of TI in mode attr.
871
872 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
873
874 * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
875 * config/arm/linux-atomic.c: Change comment to point to 64bit version.
876 (SYNC_LOCK_RELEASE): Instantiate 64bit version.
877 * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
878
879 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
880
881 * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
882 (arm_output_strex): Support strexd.
883 (arm_output_it): New helper to output it in Thumb2 mode only.
884 (arm_output_sync_loop): Support DI mode. Change comment to
885 not support const_int.
886 (arm_expand_sync): Support DI mode.
887 * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
888 and LDREXD.
889 * config/arm/iterators.md (NARROW): move from sync.md.
890 (QHSD): New iterator for all current ARM integer modes.
891 (SIDI): New iterator for SI and DI modes only.
892 * config/arm/sync.md (sync_predtab): New mode_attr.
893 (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
894 (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
895 (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
896 (sync_nandsi): Fold into sync_nand<mode>.
897 (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
898 (sync_new_nandsi): Fold into sync_new_nand<mode>.
899 (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
900 (sync_old_nandsi): Fold into sync_old_nand<mode>.
901 (sync_compare_and_swap<mode>): Support SI & DI.
902 (sync_lock_test_and_set<mode>): Likewise.
903 (sync_<sync_optab><mode>): Likewise.
904 (sync_nand<mode>): Likewise.
905 (sync_new_<sync_optab><mode>): Likewise.
906 (sync_new_nand<mode>): Likewise.
907 (sync_old_<sync_optab><mode>): Likewise.
908 (sync_old_nand<mode>): Likewise.
909 (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
910 (arm_sync_lock_test_and_setsi): Likewise.
911 (arm_sync_new_<sync_optab>si): Likewise.
912 (arm_sync_new_nandsi): Likewise.
913 (arm_sync_old_<sync_optab>si): Likewise.
914 (arm_sync_old_nandsi): Likewise.
915 (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
916 (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
917 (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
918 (arm_sync_new_nand<mode> NARROW): Likewise.
919 (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
920 (arm_sync_old_nand<mode> NARROW): Likewise.
921
922 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
923
924 PR target/48126
925 * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
926
927 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
928
929 * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
930
931 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
932
933 * doc/invoke.texi ([Wformat-zero-length]): Tidy.
934
935 2011-10-14 Jakub Jelinek <jakub@redhat.com>
936
937 * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
938 on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
939
940 2011-10-14 Richard Guenther <rguenther@suse.de>
941
942 PR tree-optimization/50723
943 * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
944
945 2011-10-14 Nicola Pero <nicola.pero@meta-innovation.com>
946
947 * gengtype.c (files_rules): Added rules for objc/objc-map.h and
948 objc/objc-map.c.
949
950 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
951
952 PR c++/17212
953 * doc/invoke.texi ([Wformat-zero-length]): Update.
954
955 2011-10-14 Iain Sandoe <iains@gcc.gnu.org>
956
957 PR bootstrap/50699
958 * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
959 build for powerpc targets. (darwin_patch_builtins): Only build for
960 powerpc targets.
961
962 2011-10-14 Jakub Jelinek <jakub@redhat.com>
963
964 * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
965 (avx_cvtdq2pd256_2): ... this.
966 (sseunpackfltmode): New mode attr.
967 (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
968 vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
969 using VI2_AVX2 iterator.
970 (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
971
972 2011-10-13 David S. Miller <davem@davemloft.net>
973
974 * config/sparc/sparc.md (plusminus): New code iterator.
975 (plusminus_insn): New code attr.
976 (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
977 using plusminus and plusminus_insn.
978 (fpadd64_vis, fpsub64_vis): Likewise.
979
980 2011-10-13 Richard Henderson <rth@redhat.com>
981
982 * doc/md.texi (vec_perm): Document fallback to byte permutation.
983 * genopinit.c (optabs): Add vec_perm_const.
984 * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
985 Reject non-vector modes. Allow fallback to byte permutation.
986 (expand_vec_perm_expr_1): Split out from ...
987 (expand_vec_perm_expr): ... here. Allow fallback to byte permutation.
988 * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
989 * tree-vect-generic.c (lower_vec_perm): Update for name change.
990
991 2011-10-13 Richard Henderson <rth@redhat.com>
992
993 * config/rs6000/altivec.md (vec_permv16qi): New pattern.
994
995 * config/rs6000/spu.md (vec_permv16qi): New pattern.
996
997 * config/i386/i386.c (ix86_expand_vec_perm_const): New.
998 * config/i386/i386-protos.h: Update.
999 * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
1000 (vec_perm_const<VEC_PERM_CONST>): New expander.
1001
1002 * optabs.c (expand_vector_broadcast): New.
1003 (expand_binop): Expand scalar shifts of vectors to vector shifts
1004 of vectors, if the former isn't supported.
1005 * tree-vect-generic.c (expand_vector_operations_1): Don't do that
1006 here; always simplify to scalar shift of vector if possible.
1007
1008 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
1009 test for vector splat.
1010
1011 2011-10-13 Jakub Jelinek <jakub@redhat.com>
1012
1013 * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
1014
1015 2011-10-13 Jakub Jelinek <jakub@redhat.com>
1016 Richard Guenther <rguenther@suse.de>
1017
1018 * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
1019 or complex vars even if their DECL_UID is in not_reg_needs bitmap.
1020
1021 2011-10-13 Jakub Jelinek <jakub@redhat.com>
1022
1023 * config/i386/sse.md (reduc_umin_v8hi): New pattern.
1024 * config/i386/i386.c (ix86_build_const_vector): Handle
1025 also V32QI, V16QI, V16HI and V8HI modes.
1026 (emit_reduc_half): New function.
1027 (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
1028 Use emit_reduc_half helper function.
1029
1030 2011-10-13 Lawrence Crowl <crowl@google.com>
1031 Diego Novillo <dnovillo@google.com>
1032
1033 * lto-streamer-in.c (input_struct_function_base): Factor out of ...
1034 (input_function): ... here.
1035 * lto-streamer-out.c (output_struct_function_base): Factor out of ...
1036 (output_function): ... here.
1037
1038 2011-10-13 Gabriel Charette <gchare@google.com>
1039 Diego Novillo <dnovillo@google.com>
1040
1041 * streamer-hooks.h (struct streamer_hooks): Add hooks
1042 input_location and output_location.
1043 * lto-streamer-in.c (lto_input_location): Use
1044 streamer_hooks.input_location, if set.
1045 * lto-streamer-out.c (lto_output_location): Use
1046 streamer_hooks.output_location, if set.
1047
1048 2011-10-13 Eric Botcazou <ebotcazou@adacore.com>
1049
1050 * doc/invoke.texi (SPARC options): Document -mfix-at697f.
1051 * config/sparc/sparc.opt (mfix-at697f): New option.
1052 * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1053 (sparc_reorg): New function.
1054
1055 2011-10-13 Richard Guenther <rguenther@suse.de>
1056
1057 PR tree-optimization/50712
1058 * ipa-split.c (split_function): Always re-gimplify parameters
1059 when they are not gimple vals before passing them. Properly
1060 check for type compatibility.
1061
1062 2011-10-13 Tom de Vries <tom@codesourcery.com>
1063
1064 * function.c (gimplify_parameters): Set number of arguments of call to
1065 BUILT_IN_ALLOCA_WITH_ALIGN to 2.
1066
1067 2011-10-13 Tom de Vries <tom@codesourcery.com>
1068
1069 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
1070 for static const strings.
1071 * varasm.c (build_constant_desc): Generate the memory location of the
1072 constant using gen_const_mem.
1073
1074 2011-10-13 Richard Guenther <rguenther@suse.de>
1075
1076 PR tree-optimization/50698
1077 * tree-data-ref.c (split_constant_offset_1): Also process
1078 offsets of &MEM.
1079
1080 2011-10-12 David S. Miller <davem@davemloft.net>
1081
1082 * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
1083 (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
1084 unspecs.
1085 (fpmerge_vis): Remove inaccurate comment, represent using vec_select
1086 of a vec_concat.
1087 (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
1088 (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
1089 Reimplement as unspecs and remove inaccurate comments.
1090 (vis3_shift_patname): New code attr.
1091 (<vis3_shift_insn><vbits>_vis): Rename to
1092 "v<vis3_shift_patname><mode>3".
1093 (vis3_addsub_ss_patname): New code attr.
1094 (<vis3_addsub_ss_insn><vbits>_vis): Rename to
1095 "<vis3_addsub_ss_patname><mode>3".
1096 * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
1097 accommodate pattern name changes.
1098
1099 * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
1100 to zero when assembler lacks support for such instructions.
1101 * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
1102 and MASK_FMAF in defaults when assembler lacks necessary support.
1103
1104 2011-10-12 Jakub Jelinek <jakub@redhat.com>
1105
1106 * config/i386/sse.md (vec_unpacks_lo_<mode>,
1107 vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
1108 vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
1109 * config/i386/i386.c (ix86_expand_sse_unpack): Handle
1110 V32QImode, V16HImode and V8SImode for TARGET_AVX2.
1111
1112 * config/i386/sse.md (vec_avx2): New mode_attr.
1113 (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
1114 (mul<mode>3): ... this.
1115
1116 * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
1117 * config/i386/i386.c (ix86_expand_vec_perm): Handle
1118 V16QImode and V32QImode for TARGET_AVX2.
1119 (MAX_VECT_LEN): Increase to 32.
1120 (expand_vec_perm_blend): Add support for 32-byte integer
1121 vectors with TARGET_AVX2.
1122 (valid_perm_using_mode_p): New function.
1123 (expand_vec_perm_pshufb): Add support for 32-byte integer
1124 vectors with TARGET_AVX2.
1125 (expand_vec_perm_vpshufb2_vpermq): New function.
1126 (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
1127 (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
1128 with TARGET_AVX2.
1129 (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
1130 and expand_vec_perm_vpshufb2_vpermq_even_odd.
1131 * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
1132 32-byte integer vector modes.
1133 (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
1134 (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
1135 (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
1136 4 new operands.
1137 (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
1138 match_dup, instead add 4 new operands and require they have
1139 right cross-lane values.
1140 (avx2_permv4di): Change into define_expand.
1141 (avx2_permv4di_1): New instruction.
1142 (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
1143 for "xm" constrained operand.
1144 (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
1145
1146 * config/i386/sse.md (avx2_gathersi<mode>,
1147 avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
1148 match_scratch, change memory_operand to register_operand,
1149 add (mem:BLK (scratch)) use.
1150 (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
1151 *avx2_gatherdi<mode>256): Add clobber of match_scratch,
1152 add earlyclobber to the output operand and match_scratch,
1153 add (mem:BLK (scratch)) use, change the other mem to match_operand.
1154 Use %p6 instead of %c6 in the pattern.
1155 * config/i386/i386.c (ix86_expand_builtin): Adjust for
1156 operand 2 being a Pmode register_operand instead of memory_operand.
1157
1158 2011-10-12 Kai Tietz <ktietz@redhat.com>
1159
1160 * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
1161
1162 2011-10-12 Steve Ellcey <sje@cup.hp.com>
1163
1164 * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
1165
1166 2011-10-12 Richard Guenther <rguenther@suse.de>
1167
1168 * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
1169 of the first store we visit in a basic-block.
1170 (get_continuation_for_phi): Search for a candidate VUSE that
1171 might dominates all others. Do pairwise disambiguation against
1172 that candidate.
1173
1174 2011-10-12 Paul Koning <pkoning@gcc.gnu.org>
1175
1176 PR tree-optimization/50189
1177 * tree-vrp.c (extract_range_from_assert): Use the type of
1178 the variable, not the limit.
1179
1180 2011-10-12 Richard Guenther <rguenther@suse.de>
1181
1182 PR tree-optimization/50700
1183 * tree-object-size.c (addr_object_size): Simplify and treat
1184 MEM_REF bases consistently.
1185
1186 2011-10-12 Bernd Schmidt <bernds@codesourcery.com>
1187
1188 * function.c (prepare_shrink_wrap, bb_active_p): New function.
1189 (thread_prologue_and_epilogue_insns): Use bb_active_p.
1190 Call prepare_shrink_wrap, then recompute bb_active_p for the
1191 last block.
1192
1193 2011-10-12 Joseph Myers <joseph@codesourcery.com>
1194
1195 PR c/50565
1196 * convert.c (convert_to_integer): Do not narrow operands of
1197 pointer subtraction.
1198
1199 2011-10-12 Nick Clifton <nickc@redhat.com>
1200
1201 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro. Used to
1202 emit a .eabi_attribute assembler directive, possibly with a
1203 comment attached.
1204 * config/arm/arm.c (arm_file_start): Use the new macro.
1205 * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
1206
1207 2011-10-12 Georg-Johann Lay <avr@gjlay.de>
1208
1209 PR target/49939
1210 * config/avr/avr.md (*movqi): Rename to movqi_insn.
1211 (*call_insn): Rename to call_insn.
1212 (*call_value_insn): Rename to call_value_insn.
1213 * config/avr/avr.c (avr_2word_insn_p): New static function.
1214 (jump_over_one_insn_p): Use it.
1215
1216 2011-10-12 Richard Sandiford <richard.sandiford@linaro.org>
1217
1218 * expr.h (copy_blkmode_to_reg): Declare.
1219 * expr.c (copy_blkmode_to_reg): New function.
1220 (expand_assignment): Don't expand register RESULT_DECLs before
1221 the lhs. Use copy_blkmode_to_reg to copy BLKmode values into a
1222 RESULT_DECL register.
1223 (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
1224 * stmt.c (expand_return): Move BLKmode-to-register code into
1225 copy_blkmode_to_reg.
1226
1227 2011-10-11 Eric Botcazou <ebotcazou@adacore.com>
1228
1229 PR target/49965
1230 * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
1231 (mov<F:mode>cc): Likewise.
1232
1233 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1234
1235 * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
1236
1237 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1238
1239 * tree.h (built_in_decls): Delete old interface with two parallel
1240 arrays to hold standard builtin declarations, and replace it with
1241 a function based interface that can support creating builtins on
1242 the fly in the future. Change all uses, and poison the old
1243 names. Make sure 0 is not a legitimate builtin index.
1244 (implicit_built_in_decls): Ditto.
1245 (built_in_info): Ditto.
1246 (BUILTIN_VALID_P): Ditto.
1247 (builtin_decl_explicit): Ditto.
1248 (builtin_decl_implicit): Ditto.
1249 (set_builtin_decl): Ditto.
1250 (set_builtin_decl_implicit_p): Ditto.
1251 (builtin_decl_explicit_p): Ditto.
1252 (builtin_decl_implicit_p): Ditto.
1253 * tree-complex.c (expand_complex_libcall): Ditto.
1254 * tree-loop-distribution.c (generate_memset_zero): Ditto.
1255 * tree-ssa-strlen.c (get_string_length): Ditto.
1256 (handle_builtin_strcpy): Ditto.
1257 (handle_builtin_strcat): Ditto.
1258 * tree.c (iterative_hash_expr): Ditto.
1259 (local_define_builtin): Ditto.
1260 (build_common_builtin_nodes): Ditto.
1261 * builtins.c (built_in_decls): Ditto.
1262 (implicit_built_in_decls): Ditto.
1263 (built_in_info): Ditto
1264 (expand_builtin_classify_type): Ditto.
1265 (mathfn_built_in_1): Ditto.
1266 (expand_builtin_cexpi): Ditto.
1267 (expand_builtin_mempcpy_args): Ditto.
1268 (expand_builtin_stpcpy): Ditto.
1269 (gimplify_va_arg_expr): Ditto.
1270 (expand_builtin_sync_operation): Ditto.
1271 (build_builtin_expect_predicate): Ditto.
1272 (fold_builtin_memory_op): Ditto.
1273 (fold_builtin_strcpy): Ditto.
1274 (fold_builtin_stpcpy): Ditto.
1275 (fold_builtin_strncpy): Ditto.
1276 (fold_builtin_interclass_mathfn): Ditto.
1277 (fold_builtin_classify): Ditto.
1278 (fold_builtin_2): Ditto.
1279 (fold_builtin_strstr): Ditto.
1280 (fold_builtin_strrchr): Ditto.
1281 (fold_builtin_strpbrk): Ditto.
1282 (fold_builtin_strcat): Ditto.
1283 (fold_builtin_strncat): Ditto.
1284 (fold_builtin_strcspn): Ditto.
1285 (fold_builtin_fputs): Ditto.
1286 (fold_builtin_sprintf): Ditto.
1287 (fold_builtin_snprintf): Ditto.
1288 (expand_builtin_memory_chk): Ditto.
1289 (fold_builtin_memory_chk): Ditto.
1290 (fold_builtin_stxcpy_chk): Ditto.
1291 (fold_builtin_strncpy_chk): Ditto.
1292 (fold_builtin_strcat_chk): Ditto.
1293 (fold_builtin_strncat_chk): Ditto.
1294 (fold_builtin_sprintf_chk_1): Ditto.
1295 (fold_builtin_snprintf_chk_1): Ditto.
1296 (fold_builtin_printf): Ditto.
1297 (fold_builtin_fprintf): Ditto.
1298 (fold_call_stmt): Ditto.
1299 (set_builtin_user_assembler_name): Ditto.
1300 * tree-emutls.c (emutls_common_1): Ditto.
1301 * omp-low.c (scan_omp): Ditto.
1302 (lower_rec_input_clauses): Ditto.
1303 (lower_reduction_clauses): Ditto.
1304 (expand_parallel_call): Ditto.
1305 (expand_task_call): Ditto.
1306 (maybe_catch_exception): Ditto.
1307 (optimize_omp_library_calls): Ditto.
1308 (expand_omp_for_generic): Ditto.
1309 (expand_omp_for_static_nochunk): Ditto.
1310 (expand_omp_for_static_chunk): Ditto.
1311 (expand_omp_sections): Ditto.
1312 (expand_omp_atomic_fetch_op): Ditto.
1313 (expand_omp_atomic_pipeline): Ditto.
1314 (expand_omp_atomic_mutex): Ditto.
1315 (lower_omp_single_simple): Ditto.
1316 (lower_omp_single_copy): Ditto.
1317 (lower_omp_master): Ditto.
1318 (lower_omp_ordered): Ditto.
1319 (lower_omp_critical): Ditto.
1320 * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
1321 * builtins.c (DEF_BUILTIN_STUB): Ditto.
1322 (BUILT_IN_NONE): Ditto.
1323 * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
1324 * gimple-low.c (lower_function_body): Ditto.
1325 (lower_builtin_setjmp): Ditto.
1326 * c-decl.c (merge_decls): Ditto.
1327 * tree-eh.c (lower_resx): Ditto.
1328 (lower_resx): Ditto.
1329 (lower_eh_dispatch): Ditto.
1330 * function (gimplify_parameters): Ditto.
1331 * c-typeck.c (build_function_call_vec): Ditto.
1332 * gimplify.c (build_stack_save_restore): Ditto.
1333 (gimplify_vla_decl): Ditto.
1334 (gimplify_modify_expr_to_memcpy): Ditto.
1335 (gimplify_modify_expr_to_memset): Ditto.
1336 (gimplify_variable_sized_compare): Ditto.
1337 (gimplify_function_tree): Ditto.
1338 * calls.c (emit_call_1): Ditto.
1339 * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
1340 * tree-nested.c (convert_nl_goto_reference): Ditto.
1341 (convert_tramp_reference_op): Ditto.
1342 (finalize_nesting_tree_1): Ditto.
1343 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
1344 (tree_ssa_prefetch_arrays): Ditto.
1345 * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
1346 * system.h (built_in_decls): Ditto.
1347 (implicit_built_in_decls): Ditto.
1348 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
1349 * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
1350 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
1351 (ix86_veclibabi_svml): Ditto.
1352 (ix86_veclibabi_acml): Ditto.
1353 * config/vms/vms.c (vms_patch_builtins): Ditto.
1354 * config/ia64/ia64.c (ia64_init_builtins): Ditto.
1355 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
1356 (rs6000_builtin_vectorized_libmass): Ditto.
1357 (rs6000_init_builtins): Ditto.
1358 * config/darwin.c (darwin_override_options): Ditto.
1359 (darwin_patch_builtin): Ditto.
1360 (darwin_rename_builtins): Ditto.
1361 * config/pa/pa.c (pa_init_builtins): Ditto.
1362
1363 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1364
1365 * tree.h (copy_ref_info): Expose existing function.
1366 * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
1367 * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
1368
1369 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
1370
1371 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
1372 prototype.
1373 (avr_regno_mode_code_ok_for_base_p): New prototype.
1374 * config/avr/avr.h (BASE_REG_CLASS): Remove.
1375 (REGNO_OK_FOR_BASE_P): Remove.
1376 (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
1377 (REG_OK_FOR_BASE_STRICT_P): Remove.
1378 (MODE_CODE_BASE_REG_CLASS): New define.
1379 (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
1380 * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
1381 (avr_regno_mode_code_ok_for_base_p): New function.
1382 (avr_reg_ok_for_addr_p): New static function.
1383 (avr_legitimate_address_p): Use it. Beautify.
1384
1385 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
1386
1387 PR target/50447
1388 * config/avr/avr.md (cc): Add out_plus attribute alternative.
1389 (addsi3): Use it. Adapt avr_out_plus to new prototype. Use
1390 avr_out_plus for all CONST_INT addends.
1391 * config/avr/avr-protos.h (avr_out_plus): Change prototype.
1392 * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
1393 CC_OUT_PLUS.
1394 (avr_out_plus_1): Change prototype and report effect on cc0.
1395 (avr_out_plus): Ditto.
1396 (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
1397
1398 2011-10-11 H.J. Lu <hongjiu.lu@intel.com>
1399
1400 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
1401 the extra break.
1402
1403 2011-10-11 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
1404
1405 * doc/invoke.texi: Document new warning.
1406 * common.opt (Wvector-operation-performance): Define new warning.
1407 * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
1408 vector operation.
1409 (exapnd_vector_parallel): Warn about expanded vector operation.
1410 (lower_vec_shuffle): Warn about expanded vector operation.
1411 * c-typeck.c (c_build_vec_perm_expr): Store correct location
1412 when creating VEC_PERM_EXPR.
1413
1414 2011-10-11 Richard Guenther <rguenther@suse.de>
1415
1416 PR tree-optimization/50204
1417 * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
1418 two argument handling from ...
1419 (get_continuation_for_phi): ... here. Handle arbitrary number
1420 of PHI args.
1421
1422 2011-10-11 Richard Sandiford <richard.sandiford@linaro.org>
1423
1424 * modulo-sched.c: Fix comment typo. Mention the possibility
1425 of using scheduling windows of II+1 cycles.
1426
1427 2011-10-11 Tristan Gingold <gingold@adacore.com>
1428
1429 * doc/invoke.texi (C Dialect Options): Document
1430 -fallow-parameterless-variadic-functions.
1431 * c-parser.c (c_parser_parms_list_declarator): Handle it.
1432
1433 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
1434
1435 * config/avr/avr.c (avr_option_override): Set
1436 flag_omit_frame_pointer to 0 if frame pointer is needed for unwinding.
1437
1438 2011-10-10 Uros Bizjak <ubizjak@gmail.com>
1439
1440 PR bootstrap/50665
1441 * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm. Move from enum
1442 optab_index to enum direct_optab_index.
1443 (vec_perm_optab): Update.
1444
1445 2011-10-10 Anatoly Sokolov <aesok@post.ru>
1446
1447 * config/cris/cris.c (cris_preferred_reload_class): New function.
1448 (TARGET_PREFERRED_RELOAD_CLASS): Define.
1449 * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
1450
1451 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
1452
1453 * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
1454 !AVR_HAVE_JMP_CALL.
1455 (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
1456 (*tablejump_enh, *tablejump): Remove insns.
1457 * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
1458 EIJMP for indirect jump. Use LPM Z+ where available.
1459
1460 2011-10-10 Richard Henderson <rth@redhat.com>
1461
1462 * doc/md.texi (vec_perm_const): Fix typo in cindex.
1463
1464 2011-10-10 Kirill Yukhin <kirill.yukhin@intel.com>
1465 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
1466
1467 * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
1468
1469 2011-10-10 Richard Guenther <rguenther@suse.de>
1470
1471 PR middle-end/50389
1472 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
1473 mark symbols for renaming. Append the VUSE to all statements
1474 that possibly can have one.
1475
1476 2011-10-10 Richard Guenther <rguenther@suse.de>
1477
1478 * ipa-split.c (pass_split_functions): Add verification TODOs.
1479 (pass_feedback_split_functions): Likewise.
1480
1481 2011-10-10 Richard Guenther <rguenther@suse.de>
1482
1483 PR middle-end/50195
1484 * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
1485 only when optimizing.
1486
1487 2011-10-10 Nick Clifton <nickc@redhat.com>
1488
1489 PR middle-end/49801
1490 * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
1491 df_get_live_out instead of accessing the bitmaps directly.
1492 (execute_compare_elim_after_reload): Remove calls to df_set_flags,
1493 df_live_add_problem and df_analyze.
1494
1495 2011-10-10 Michael Matz <matz@suse.de>
1496
1497 PR middle-end/50638
1498 * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
1499
1500 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
1501
1502 * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
1503 (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
1504 (node_sched_params): Remove first_reg_move and nreg_moves.
1505 (ps_num_consecutive_stages, extend_node_sched_params): New functions.
1506 (update_node_sched_params): Move up file.
1507 (print_node_sched_params): Print the stage. Don't dump info related
1508 to first_reg_move and nreg_moves.
1509 (set_columns_for_row): New function.
1510 (set_columns_for_ps): Move up file and use set_columns_for_row.
1511 (schedule_reg_move): New function.
1512 (schedule_reg_moves): Call extend_node_sched_params and
1513 schedule_reg_move. Extend size of uses bitmap. Initialize
1514 num_consecutive_stages. Return false if a move could not be
1515 scheduled.
1516 (apply_reg_moves): Don't emit moves here.
1517 (permute_partial_schedule): Handle register moves.
1518 (duplicate_insns_of_cycles): Remove for_prolog. Emit moves according
1519 to the same stage-count test as ddg nodes.
1520 (generate_prolog_epilog): Update calls accordingly.
1521 (sms_schedule): Allow move-scheduling to add a new first stage.
1522
1523 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
1524
1525 * modulo-sched.c (ps_insn): Adjust comment.
1526 (ps_reg_move_info): New structure.
1527 (partial_schedule): Add reg_moves field.
1528 (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
1529 (node_sched_params): Turn first_reg_move into an identifier.
1530 (ps_reg_move): New function.
1531 (ps_rtl_insn): Cope with register moves.
1532 (ps_first_note): Adjust comment and assert that the instruction
1533 isn't a register move.
1534 (node_sched_params): Replace with...
1535 (node_sched_param_vec): ...this vector.
1536 (set_node_sched_params): Adjust accordingly.
1537 (print_node_sched_params): Take a partial schedule instead of a ddg.
1538 Use ps_rtl_insn and ps_reg_move.
1539 (generate_reg_moves): Rename to...
1540 (schedule_reg_moves): ...this. Remove rescan parameter. Record each
1541 move in the partial schedule, but don't emit it here. Don't perform
1542 register substitutions here either.
1543 (apply_reg_moves): New function.
1544 (duplicate_insns_of_cycles): Use register indices directly,
1545 rather than finding instructions using PREV_INSN. Use ps_reg_move.
1546 (sms_schedule): Call schedule_reg_moves before committing to
1547 a partial schedule. Try the next ii if the schedule fails.
1548 Use apply_reg_moves instead of generate_reg_moves. Adjust
1549 call to print_node_sched_params. Free node_sched_param_vec
1550 instead of node_sched_params.
1551 (create_partial_schedule): Initialize reg_moves.
1552 (free_partial_schedule): Free reg_moves.
1553
1554 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
1555
1556 * modulo-sched.c (ps_insn): Replace node field with an identifier.
1557 (SCHED_ASAP): Replace with..
1558 (NODE_ASAP): ...this macro.
1559 (SCHED_PARAMS): New macro.
1560 (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
1561 (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
1562 (node_sched_params): Remove asap.
1563 (ps_rtl_insn, ps_first_note): New functions.
1564 (set_node_sched_params): Use XCNEWVEC. Don't copy across the
1565 asap values.
1566 (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
1567 (generate_reg_moves): Pass ids to the SCHED_* macros.
1568 (update_node_sched_params): Take a ps insn identifier rather than
1569 a node as parameter. Use ps_rtl_insn.
1570 (set_columns_for_ps): Update for above field and SCHED_* macro changes.
1571 (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
1572 (optimize_sc): Update for above field and SCHED_* macro changes.
1573 Update calls to try_scheduling_node_in_cycle and
1574 update_node_sched_params.
1575 (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
1576 macro changes. Use ps_rtl_insn and ps_first_note.
1577 (sms_schedule): Pass ids to the SCHED_* macros.
1578 (get_sched_window): Adjust for above field and SCHED_* macro changes.
1579 Use NODE_ASAP instead of SCHED_ASAP.
1580 (try_scheduling_node_in_cycle): Remove node parameter. Update
1581 call to ps_add_node_check_conflicts. Pass ids to the SCHED_* macros.
1582 (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
1583 (ps_insert_empty_row): Adjust for above field changes.
1584 (compute_split_row): Use ids rather than nodes.
1585 (verify_partial_schedule): Adjust for above field changes.
1586 (print_partial_schedule): Use ps_rtl_insn.
1587 (create_ps_insn): Take an id rather than a node.
1588 (ps_insn_find_column): Adjust for above field changes.
1589 Use ps_rtl_insn.
1590 (ps_insn_advance_column): Adjust for above field changes.
1591 (add_node_to_ps): Remove node parameter. Update call to
1592 create_ps_insn.
1593 (ps_has_conflicts): Use ps_rtl_insn.
1594 (ps_add_node_check_conflicts): Replace node parameter than an id.
1595
1596 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
1597
1598 * modulo-sched.c (undo_replace_buff_elem): Delete.
1599 (generate_reg_moves): Don't build and return an undo list.
1600 (free_undo_replace_buff): Delete.
1601 (sms_schedule): Adjust call to generate_reg_moves.
1602 Don't call free_undo_replace_buff.
1603
1604 2011-10-10 Matthias Klose <doko@ubuntu.com>
1605
1606 * common/config/m32c: Remove empty directory.
1607
1608 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
1609
1610 * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
1611
1612 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
1613
1614 PR target/50652
1615 * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
1616 atmega164a to 0x100.
1617
1618 2011-10-09 Eric Botcazou <ebotcazou@adacore.com>
1619
1620 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
1621 the replacement if the conversion to the LHS type is not useless.
1622
1623 2011-10-09 Ira Rosen <ira.rosen@linaro.org>
1624
1625 PR tree-optimization/50635
1626 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
1627 DEF_STMT to the list of statements to be replaced by the
1628 pattern statements.
1629 (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
1630
1631 2011-10-09 Anatoly Sokolov <aesok@post.ru>
1632
1633 * system.h: Commit forgotten hunk in previous patch.
1634 (OUTPUT_ADDR_CONST_EXTRA): Poison.
1635
1636 2011-10-08 Nicola Pero <nicola.pero@meta-innovation.com>
1637
1638 PR libobjc/50428
1639 * doc/objc.texi (Garbage Collection): Updated example to protect
1640 +initialize against execution in subclasses.
1641
1642 2011-10-07 Richard Henderson <rth@redhat.com>
1643
1644 * doc/extend.texi (__builtin_shuffle): Improve the description to
1645 include the modulus of the selector. Mention OpenCL.
1646 * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
1647
1648 * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
1649 * genopinit.c (optabs): Rename vshuffle to vec_perm.
1650 * c-typeck.c (c_build_vec_perm_expr): Rename from
1651 c_build_vec_shuffle_expr. Update for name changes.
1652 * optabs.c (expand_vec_perm_expr_p): Rename from
1653 expand_vec_shuffle_expr_p.
1654 (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
1655 * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
1656 (vec_perm_optab): Rename from vshuffle_optab.
1657 * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
1658 c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
1659 tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
1660
1661 * config/i386/i386.c (ix86_expand_vec_perm): Rename from
1662 ix86_expand_vshuffle.
1663 * config/i386/i386-protos.h: Update.
1664 * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
1665 (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
1666
1667 2011-10-07 Richard Henderson <rth@redhat.com>
1668
1669 * config/i386/predicates.md (avx2_pblendw_operand): New.
1670 * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
1671 (avx2_pblendw, *avx2_pblendw): New expander and insn.
1672
1673 2011-10-07 Richard Henderson <rth@redhat.com>
1674
1675 * config/i386/i386.c (bdesc_args): Update code for
1676 __builtin_ia32_palignr256. Change type of __builtin_ia32_pslldqi256,
1677 and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
1678 (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
1679 * config/i386/sse.md (mode iterator V16): Add V2TI.
1680 (mode iterator SSESCALARMODE): Use V2TI not V4DI.
1681 (mode attr ssse3_avx2): Add V2TI.
1682 (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
1683
1684 2011-10-07 David S. Miller <davem@davemloft.net>
1685
1686 PR 50655
1687 * configure.ac: Add .register directives to VIS3 test.
1688 * configure: Regenerate.
1689
1690 2011-10-07 Richard Henderson <rth@redhat.com>
1691
1692 * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
1693
1694 2011-10-07 Richard Henderson <rth@redhat.com>
1695
1696 PR 49752
1697 * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
1698
1699 2011-10-07 Andrew Stubbs <ams@codesourcery.com>
1700
1701 * config/arm/predicates.md (shift_amount_operand): Remove constant
1702 range check.
1703 (shift_operator): Check range of constants for all shift operators.
1704
1705 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1706
1707 * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
1708 Load GOT pointer for non-pic builds.
1709 (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
1710 (s390_emit_call): Likewise.
1711
1712 2011-10-07 Tom de Vries <tom@codesourcery.com>
1713
1714 PR middle-end/50527
1715 * tree.c (build_common_builtin_nodes): Add local_define_builtin for
1716 BUILT_IN_ALLOCA_WITH_ALIGN. Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
1717 throw.
1718 * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
1719 arglist. Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
1720 (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1721 (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1722 * tree-ssa-ccp.c (evaluate_stmt): Set align for
1723 BUILT_IN_ALLOCA_WITH_ALIGN.
1724 (fold_builtin_alloca_for_var): Rename to ...
1725 (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
1726 BUILT_IN_ALLOCA_WITH_ALIGN argument.
1727 (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
1728 fold_builtin_alloca_with_align.
1729 (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1730 * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
1731 DEF_BUILTIN_STUB.
1732 * ipa-pure-const.c (special_builtin_state): Handle
1733 BUILT_IN_ALLOCA_WITH_ALIGN.
1734 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
1735 (call_may_clobber_ref_p_1): Same.
1736 * function.c (gimplify_parameters): Lower vla to
1737 BUILT_IN_ALLOCA_WITH_ALIGN.
1738 * gimplify.c (gimplify_vla_decl): Same.
1739 * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1740 * tree-mudflap.c (mf_xform_statements): Same.
1741 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
1742 (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
1743 * varasm.c (incorporeal_function_p): Same.
1744 * tree-object-size.c (alloc_object_size): Same.
1745 * gimple.c (gimple_build_call_from_tree): Same.
1746
1747 2011-10-07 Bernd Schmidt <bernds@codesourcery.com>
1748
1749 * function.c (frame_required_for_rtx): Remove function.
1750 (requires_stack_frame_p): New arg set_up_by_prologue. All callers
1751 changed. Compute a set of mentioned registers and compare against
1752 the new arg rather than calling frame_required_for_rtx.
1753 (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
1754 reg set. Convert the unconverted_simple_returns mechanism to store
1755 jump insns rather than their basic blocks. Also check the
1756 orig_entry_edge destination for new blocks.
1757
1758 2011-10-07 Jakub Jelinek <jakub@redhat.com>
1759
1760 PR tree-optimization/50650
1761 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
1762 call vect_is_simple_cond here, instead fail if cond_expr isn't
1763 COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
1764 for cond_expr's first operand.
1765 * tree-vect-stmts.c (vect_is_simple_cond): Static again.
1766 * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
1767
1768 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1769
1770 * config/s390/s390.md (DWH, dwh): New mode macros.
1771 ("umulsidi3"): Extend to support "umulditi3" as well.
1772
1773 2011-10-07 Uros Bizjak <ubizjak@gmail.com>
1774 H.J. Lu <hongjiu.lu@intel.com>
1775
1776 PR target/50603
1777 * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
1778 integer PLUS RTX to a register to improve address combine.
1779
1780 2011-10-06 Richard Henderson <rth@redhat.com>
1781
1782 * combine-stack-adjust.c (maybe_move_args_size_note): Add after
1783 parameter; use it to decide whether to merge two notes.
1784 (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
1785 for the deallocation case as well.
1786
1787 2011-10-06 Anatoly Sokolov <aesok@post.ru>
1788
1789 * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
1790 * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
1791 * doc/tm.texi: Regenerate.
1792 * target.def (output_addr_const_extra): Use
1793 hook_bool_FILEptr_rtx_false.
1794 * targhooks.c (default_asm_output_addr_const_extra): Remove.
1795 * targhooks.h (default_asm_output_addr_const_extra): Remove.
1796 * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
1797 * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
1798
1799 2011-10-06 David S. Miller <davem@davemloft.net>
1800
1801 * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
1802 (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
1803 SI mode 64-bit code gen case explicitly zero-extend and truncate.
1804 (*popcount<mode>_sp64): Split up into...
1805 (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
1806 SImode case use truncate.
1807 (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
1808 subtract so the compiler can optimize it.
1809 (SIDI): Remove unused mode iterator.
1810
1811 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
1812
1813 * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
1814 on the orig_entry_edge. Don't account for it in prologue_clobbered.
1815
1816 2011-10-06 Jakub Jelinek <jakub@redhat.com>
1817
1818 PR tree-optimization/50596
1819 * tree-vectorizer.h (vect_is_simple_cond): New prototype.
1820 (NUM_PATTERNS): Change to 6.
1821 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
1822 function.
1823 (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
1824 (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
1825 if it already has one, and don't set STMT_VINFO_VECTYPE in it
1826 if it is already set.
1827 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
1828 COND_EXPR in pattern stmts.
1829 (vect_is_simple_cond): No longer static.
1830
1831 2001-10-06 Richard Henderson <rth@redhat.com>
1832
1833 * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
1834 * config/i386/sse.md (sseshuffint): Remove.
1835 (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
1836 (VSHUFFLE_AVX2): New mode iterator.
1837 (vshuffle<mode>): Use it.
1838 (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
1839
1840 * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
1841 for vector_all_ones_operand.
1842 (ix86_expand_int_vcond): Distinguish between comparison mode
1843 and data mode. Allow them to differ.
1844 (ix86_expand_vshuffle): Don't force data mode to match maskmode.
1845
1846 2001-10-06 Richard Henderson <rth@redhat.com>
1847
1848 * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
1849 mask operand. Tidy the code.
1850
1851 2011-10-06 Jakub Jelinek <jakub@redhat.com>
1852
1853 * tree-vect-patterns.c (vect_pattern_recog_1): Use
1854 vect_recog_func_ptr typedef for the first argument.
1855 (vect_pattern_recog): Rename vect_recog_func_ptr variable
1856 to vect_recog_func, use vect_recog_func_ptr typedef for it.
1857
1858 PR tree-optimization/49279
1859 * tree-ssa-structalias.c (find_func_aliases): Don't handle
1860 CAST_RESTRICT.
1861 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
1862 restrict propagation.
1863 * tree-ssa.c (useless_type_conversion_p): Don't return false
1864 if TYPE_RESTRICT differs.
1865
1866 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
1867
1868 * function.c (thread_prologue_and_epilogue_insns): Build a vector
1869 of unconverted simple return blocks rather than trying to
1870 recompute them later based on bb_flags bitmap tests.
1871
1872 2011-10-06 Michael Matz <matz@suse.de>
1873
1874 * tree-flow.h (get_var_ann): Don't declare.
1875 * tree-flow-inline.h (get_var_ann): Remove.
1876 (set_is_used): Use var_ann, not get_var_ann.
1877 * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
1878 * tree-profile.c (gimple_gen_edge_profiler): Call
1879 find_referenced_var_in.
1880 (gimple_gen_interval_profiler): Ditto.
1881 (gimple_gen_pow2_profiler): Ditto.
1882 (gimple_gen_one_value_profiler): Ditto.
1883 (gimple_gen_average_profiler): Ditto.
1884 (gimple_gen_ior_profiler): Ditto.
1885 (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
1886 (gimple_gen_ic_func_profiler): Call add_referenced_var.
1887 * tree-mudflap.c (execute_mudflap_function_ops): Call
1888 add_referenced_var.
1889
1890 2011-10-06 Jakub Jelinek <jakub@redhat.com>
1891
1892 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
1893 don't set SSA_NAME_DEF_STMT that has been already set by
1894 gimple_build_assign_with_ops.
1895 (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
1896 vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
1897 Likewise.
1898
1899 * tree.h (avoid_folding_inline_builtin): New prototype.
1900 * builtins.c (avoid_folding_inline_builtin): No longer static.
1901 * gimple-fold.c (gimple_fold_builtin): Give up if
1902 avoid_folding_inline_builtin returns true.
1903
1904 2011-10-06 Richard Guenther <rguenther@suse.de>
1905
1906 * tree-vect-generic.c (vector_element): Look at previous
1907 generated results.
1908
1909 2011-10-06 David Edelsohn <dje.gcc@gmail.com>
1910
1911 PR target/39950
1912 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
1913 __powerpc__, __PPC__, __unix__.
1914
1915 2011-10-06 Michael Matz <matz@suse.de>
1916
1917 * i386/i386.opt (recip_mask, recip_mask_explicit,
1918 x_recip_mask_explicit): New variables and cl_target member.
1919 (mrecip=): New option.
1920 * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
1921 RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
1922 (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
1923 TARGET_RECIP_VEC_SQRT): New tests.
1924 * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
1925 (sqrt<mode>2): Check TARGET_RECIP_SQRT.
1926 * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
1927 (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
1928 * i386/i386.c (ix86_option_override_internal): Set recip_mask
1929 for -mrecip and -mrecip=options.
1930 (ix86_function_specific_save): Save recip_mask_explicit.
1931 (ix86_function_specific_restore): Restore recip_mask_explicit.
1932
1933 * doc/invoke.texi (ix86 Options): Document the new option.
1934
1935 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
1936
1937 PR target/49049
1938 * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
1939
1940 2011-10-06 Ulrich Weigand <ulrich.weigand@linaro.org>
1941
1942 PR target/50305
1943 * config/arm/arm.c (arm_legitimize_reload_address): Recognize
1944 output of a previous pass through legitimize_reload_address.
1945 Do not attempt to optimize addresses if the base register is
1946 equivalent to a constant.
1947
1948 2011-10-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1949
1950 * function.c (thread_prologue_and_epilogue_insns): Mark
1951 last_bb_active as possibly unused. It is unused for targets which
1952 do neither have "return" nor "simple_return" expanders.
1953
1954 2011-10-06 Richard Guenther <rguenther@suse.de>
1955
1956 * fold-const.c (fold_ternary_loc): Also fold non-constant
1957 vector CONSTRUCTORs. Make more efficient.
1958 * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
1959 (cprop_into_stmt): Don't propagate into virtual operands.
1960 (optimize_stmt): Really dump original statement.
1961
1962 2011-10-06 Nick Clifton <nickc@redhat.com>
1963
1964 * config/rx/rx.md (smin3): Revert previous delta.
1965
1966 2011-10-06 Richard Guenther <rguenther@suse.de>
1967
1968 PR tree-optimization/38884
1969 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
1970 reads from aggregate SSA names.
1971
1972 2011-10-05 Jakub Jelinek <jakub@redhat.com>
1973
1974 * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
1975 argument, truncate it at the beginning instead of allocating there
1976 and freeing at the end.
1977 (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
1978 pass its address to vect_pattern_recog_1.
1979
1980 2011-10-05 David S. Miller <davem@davemloft.net>
1981
1982 * config/sparc/sparc.opt (POPC): New option.
1983 * doc/invoke.texi: Document it.
1984 * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
1985 default on Niagara-2 and later.
1986 * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
1987 * config/sparc/sparc.md (SIDI): New mode iterator.
1988 (ffsdi2): Delete commented out pattern and comments.
1989 (popcount<mode>2, clz<mode>2): New expanders.
1990 (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
1991 *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
1992
1993 2011-10-06 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
1994
1995 PR middle-end/50607
1996 * c-tree.h (c_expr_t): New typedef for struct c_expr.
1997 (C_EXPR_APPEND): New macro.
1998 * c-parser.c (c_parser_get_builtin_args): Preserve
1999 original_tree_code of c_expr structure.
2000 (c_parser_postfix_expression): Adjust to the new function.
2001
2002 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
2003
2004 * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
2005 if profiling after the prologue.
2006
2007 2011-10-05 Jakub Jelinek <jakub@redhat.com>
2008
2009 PR tree-optimization/50613
2010 * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
2011 operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
2012 and if it is neither that not SSA_NAME, give up.
2013
2014 2011-10-05 Richard Henderson <rth@redhat.com>
2015
2016 * tree-vect-generic.c (vector_element): Never fail. Use
2017 build_zero_cst. Tidy up type references.
2018 (lower_vec_shuffle): Never fail. Mask shuffle indicies. Reduce
2019 code duplication. Do update_stmt here ...
2020 (expand_vector_operations_1): ... not here.
2021
2022 * config/i386/i386.c (ix86_expand_vshuffle): Never fail. Handle
2023 TARGET_XOP. Fix pshufb constant vector creation. Reduce code
2024 duplication. Handle V2DI without SSE4.1.
2025 * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
2026 * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
2027
2028 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
2029
2030 * config/i386/i386.c (distance_non_agu_define): Simplify calculation
2031 of "found". Simplify return value calculation.
2032 (distance_agu_use): Ditto.
2033
2034 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
2035
2036 PR bootstrap/50621
2037 * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
2038 if the function was not shrink-wrapped.
2039 (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
2040 to an insn.
2041 * function.c (thread_prologue_and_epilogue_insns): Make sure the
2042 shrink_wrapped flag is set even if there is no dump file.
2043
2044 2011-10-05 DJ Delorie <dj@redhat.com>
2045 Nick Clifton <nickc@redhat.com>
2046
2047 * config/rx/rx.opt (mpid): Define.
2048 * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
2049 (MULTILIB_DIRNAMES): Add pid.
2050 * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
2051 (rx_num_interrupt_regs): New variable.
2052 (rx_gp_base_regnum): New function. Returns the number of the
2053 small data area register.
2054 (rx_pid_base_regnum): New function. Returns the number of the pid
2055 base register.
2056 (rx_decl_for_addr): New function. Returns the symbolic part of a MEM.
2057 (rx_pid_data_operand): New function. Returns whether an object is
2058 in the position independent data area.
2059 (rx_legitimize_address): New function. Puts undecided PID
2060 objects in the PID data area.
2061 (rx_is_legitimate_address): Add support for PID operands.
2062 (rx_print_operand_address): Likewise.
2063 (rx_print_operand): Likewise.
2064 (rx_maybe_pidify_operand): New function. Determine if an operand
2065 is suitable for PID addressing.
2066 (rx_gen_move_template): Add PID support.
2067 (rx_conditional_register_usage): Likewise.
2068 (rx_option_override): Initialise rx_num_interrupt_regs.
2069 (rx_is_legitimate_constant): Add support for PID constants.
2070 (TARGET_LEGITIMIZE_ADDRESS): Define.
2071 * config/rx/constraints.md (Rpid): Define.
2072 (Rpda): Define.
2073 * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
2074 (tablejump): Add PID support.
2075 (mov<>): Likewise.
2076 (mov<>_internal): Likewise.
2077 (addsi3): Convert to an expander. Add PID support.
2078 (pid_addr): New pattern.
2079 * config/rx/rx.h (CPP_SPEC): Define.
2080 (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
2081 (CASE_VECTOR_PC_RELATIVE): Define.
2082 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
2083 * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
2084 * doc/invoke.texi (RX Options): Document -mpid command line option.
2085
2086 2011-10-05 Richard Guenther <rguenther@suse.de>
2087
2088 PR tree-optimization/38885
2089 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
2090 from constants.
2091
2092 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
2093
2094 * doc/invoke.texi (-fshrink-wrap): Document.
2095 * opts.c (default_options_table): Add it.
2096 * common.opt (fshrink-wrap): Add.
2097 * function.c (emit_return_into_block): Remove useless declaration.
2098 (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
2099 requires_stack_frame_p, gen_return_pattern): New static functions.
2100 (emit_return_into_block): New arg simple_p. All callers changed.
2101 Use gen_return_pattern.
2102 (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
2103 * config/i386/i386.md (return): Expand into a simple_return.
2104 (simple_return): New expander):
2105 (simple_return_internal, simple_return_internal_long,
2106 simple_return_pop_internal_long, simple_return_indirect_internal):
2107 Renamed from return_internal, return_internal_long,
2108 return_pop_internal_long and return_indirect_internal; changed to use
2109 simple_return.
2110 * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
2111 simple returns.
2112 (ix86_pad_returns): Likewise.
2113 * function.h (struct rtl_data): Add member shrink_wrapped.
2114 * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
2115 are not jumps or sibcalls can't be compared.
2116
2117 2011-10-05 Richard Guenther <rguenther@suse.de>
2118
2119 * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
2120 vector type.
2121 (simplify_unary_expression): Handle BIT_FIELD_REFs.
2122 (try_to_simplify): Handle BIT_FIELD_REFs.
2123
2124 2011-10-05 Georg-Johann Lay <avr@gjlay.de>
2125
2126 * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
2127 * config/avr/avr.c (avr_out_addto_sp): New function.
2128 (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
2129 * config/avr/avr.md (adjust_len): Add "addto_sp".
2130 (*movhi_sp): Remove insn.
2131 (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
2132
2133 2011-10-05 Richard Guenther <rguenther@suse.de>
2134
2135 * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
2136 with an embedded expression valueize and fold that as well.
2137 * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
2138 results from gimple_fold_stmt_to_constant_1.
2139
2140 2011-10-05 Nick Clifton <nickc@redhat.com>
2141
2142 * config/rx/rx.md (tablejump): Add missing label.
2143 (adddi3_internal): Mark operand 0 as early-clobbered.
2144 (smaxsi3): Revert previous delta.
2145 (adc_internal): Fix whitespace in generated asm.
2146 (adc_flags): Likewise.
2147
2148 2011-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2149
2150 * expmed.c (expand_mult_highpart_optab): Replace optab_handler
2151 with the new widening_optab_handler.
2152
2153 2011-10-05 Richard Guenther <rguenther@suse.de>
2154
2155 PR tree-optimization/50609
2156 * gimple-fold.c (fold_array_ctor_reference): Also handle
2157 vector typed constructors.
2158 (fold_ctor_reference): Dispatch to fold_array_ctor_reference
2159 for vector typed constructors.
2160
2161 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
2162
2163 * config/i386/i386.c (ix86_emit_binop): New static function.
2164 (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
2165 instructions.
2166 (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
2167
2168 2011-10-04 David S. Miller <davem@davemloft.net>
2169
2170 * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
2171 UNSPEC_XMUL): New unspecs.
2172 (muldi3_v8plus): Use output_v8plus_mult.
2173 (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
2174 New VIS 3.0 combiner patterns.
2175 (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
2176 fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
2177 umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
2178 xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
2179 builtins patterns.
2180 * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
2181 (output_v8plus_mult): New function.
2182 * config/sparc/sparc-protos.h: Declare it.
2183 * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
2184 __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
2185 __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
2186 * doc/extend.texi: Document new builtins.
2187
2188 2011-10-04 Richard Henderson <rth@redhat.com>
2189
2190 * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
2191 Avoid save_expr unless two_arguments.
2192
2193 2011-10-04 Ozkan Sezer <sezeroz@gmail.com>
2194
2195 * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
2196 * config/i386/mingw32.h (CPP_SPEC): Likewise.
2197
2198 2011-10-04 David S. Miller <davem@davemloft.net>
2199
2200 * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
2201 under Linux.
2202
2203 2011-10-04 Jakub Jelinek <jakub@redhat.com>
2204
2205 PR tree-optimization/50604
2206 * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
2207 fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
2208 last argument to memcpy has size_type_node type instead of ssizetype.
2209 * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
2210 instead of TREE_TYPE (len) as type for newlen.
2211
2212 PR tree-optimization/50522
2213 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
2214 TYPE_RESTRICT.
2215 (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
2216 unconditionally.
2217
2218 * fold-const.c (fold_unary_loc): Don't optimize
2219 POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
2220 casting the inner pointer if it isn't TYPE_RESTRICT.
2221 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
2222 casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
2223
2224 2011-10-04 Joseph Myers <joseph@codesourcery.com>
2225
2226 * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
2227
2228 2011-10-04 Jan Hubicka <jh@suse.cz>
2229
2230 * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
2231 * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
2232 * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
2233 * lto-cgraph.c (order_base): New static var.
2234 (lto_output_node): Stream in order.
2235 (lto_output_varpool_node): Stream out order.
2236 (input_node): Stream in order.
2237 (input_varpool_node): Stream out order.
2238 (input_cgraph_1): Initialize order base; update call of
2239 lto_input_toplevel_asms.
2240
2241 2011-10-04 Georg-Johann Lay <avr@gjlay.de>
2242
2243 PR target/50566
2244 * config/avr/avr-protos.h (avr_legitimize_reload_address): New
2245 prototype.
2246 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
2247 from here...
2248 * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
2249 function. Log if avr_log.legitimize_reload_address.
2250
2251 2011-10-04 Eric Botcazou <ebotcazou@adacore.com>
2252
2253 * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
2254
2255 2011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2256
2257 * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
2258 variables. Fix second operand of DR. Swap inputs for sdiv_qrnnd.
2259
2260 2011-10-03 David S. Miller <davem@davemloft.net>
2261
2262 * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
2263 GSR_REG an input operand to UNSPEC instead of a parallel USE.
2264 (faligndata<V64I:mode>_vis): Likewise and use DI mode.
2265 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
2266 Reference GSR_REG in DI mode, simplify convoluted expressions by using
2267 zero_extract.
2268 (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
2269
2270 2011-10-03 Maxim Kuvyrkov <maxim@codesourcery.com>
2271
2272 * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
2273
2274 2011-10-03 Jakub Jelinek <jakub@redhat.com>
2275 Ian Lance Taylor <iant@google.com>
2276
2277 * godump.c (go_output_typedef): Support printing enum values that
2278 don't fit in a signed HOST_WIDE_INT.
2279
2280 2011-10-03 Anatoly Sokolov <aesok@post.ru>
2281
2282 * config/cris/cris.c (cris_output_addr_const_extra): Make static.
2283 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2284 * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2285 * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
2286
2287 2011-10-03 Anatoly Sokolov <aesok@post.ru>
2288
2289 * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
2290 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2291 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2292 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
2293
2294 2011-10-03 Steve Ellcey <sje@cup.hp.com>
2295
2296 PR target/49967
2297 * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
2298 (gcc_cv_ld_static_option): Ditto.
2299 (gcc_cv_ld_dynamic_option): Ditto.
2300 * configure: Regenerate.
2301
2302 2011-10-03 David S. Miller <davem@davemloft.net>
2303
2304 * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
2305 and 'si' patterns which describe the GSR changes explicitly in the
2306 RTL using zero_extract.
2307 (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
2308
2309 * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
2310 GSR_REG in a USE, since it's now a true arg to the UNSPEC.
2311
2312 2011-10-03 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
2313
2314 * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
2315 if given expression can be expanded by the target.
2316 (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
2317 using target vector instructions.
2318 * optabs.h: New optab vshuffle.
2319 (expand_vec_shuffle_expr_p): New prototype.
2320 (expand_vec_shuffle_expr): New prototype.
2321 (vshuffle_optab): New optab.
2322 * genopinit.c: Adjust to support vecshuffle.
2323 * c-tree.h (c_build_vec_shuffle_expr): New prototype.
2324 * expr.c (expand_expr_real_2): Adjust.
2325 * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
2326 recognizing the cases of two and three arguments.
2327 (convert_arguments) (build_binary_op)
2328 (scalar_to_vector) (build_array_ref): Spurious whitespace.
2329 * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
2330 * tree.def: New tree code VEC_SHUFFLE_EXPR.
2331 * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
2332 * tree-vect-generic.c (vector_element): New function. Returns an
2333 element of the vector at the given position.
2334 (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
2335 by the backend or expand an expression piecewise.
2336 (expand_vector_operations_1): Adjusted.
2337 (gate_expand_vector_operations_noop): New gate function.
2338 * Makefile.in (tree-vect-generic.o): New include.
2339 * gimple.c (get_gimple_rhs_num_ops): Adjust.
2340 * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
2341 * passes.c: Move veclower down.
2342 * tree-pretty-print.c (dump_generic_node): Recognize
2343 VEC_SHUFFLE_EXPR as valid expression.
2344 * c-parser.c (c_parser_get_builtin_args): Helper function for the
2345 builtins with variable number of arguments.
2346 (c_parser_postfix_expression): Use a new helper function for
2347 RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
2348 * tree-ssa-operands: Adjust.
2349 * c-family/c-common.c: New __builtin_shuffle keyword.
2350 * c-family/c-common.h: New __builtin_shuffle keyword.
2351 * gcc/doc/extend.texi: Adjust.
2352
2353 * gcc/config/i386/sse.md: (sseshuffint) New mode_attr. Correspondence
2354 between the vector and the type of the mask when shuffling.
2355 (vecshuffle<mode>): New expansion.
2356 * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
2357 * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
2358 (ix86_vectorize_builtin_vec_perm_ok): Adjust.
2359
2360 2011-10-03 Jakub Jelinek <jakub@redhat.com>
2361
2362 PR tree-optimization/50587
2363 * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
2364 arg0 is not a SSA_NAME.
2365
2366 2011-10-03 Richard Sandiford <rdsandiford@googlemail.com>
2367
2368 * ipa-inline-analysis.c (MAX_TIME): Update comment.
2369
2370 2011-10-02 Richard Henderson <rth@redhat.com>
2371 David S. Miller <davem@davemloft.net>
2372
2373 * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
2374 conditional insn type setting, we always emit a shift.
2375 (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
2376 (*lshrsi3_extend): Rename to *lshrsi3_extend1.
2377 * config/sparc/predicates.md (const_one_operand): Delete.
2378
2379 2011-10-02 Gerald Pfeifer <gerald@pfeifer.com>
2380
2381 * invoke.texi (SPARC Options): Refer to GNU/Linux.
2382
2383 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
2384
2385 * config/mips/mips.c (mips_frame_barrier): New function.
2386 (mips_expand_prologue): Call it after allocating stack space.
2387 (mips_deallocate_stack): New function.
2388 (mips_expand_epilogue): Call mips_frame_barrier and
2389 mips_deallocate_stack.
2390
2391 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
2392
2393 PR target/49696
2394 * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
2395 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
2396 (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
2397
2398 2011-10-02 Jan Hubicka <jh@suse.cz>
2399
2400 * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
2401
2402 * cgraphunit.c (ipa_passes): Remove unrechable nodes.
2403 * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
2404 * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
2405 functions are reachable when address is taken.
2406 * tree-sra.c (modify_function): Free dominance info.
2407
2408 2011-10-02 Jan Hubicka <jh@suse.cz>
2409
2410 * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
2411
2412 * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
2413 (reset_inline_summary): New function.
2414 (compute_inline_parameters, inline_node_removal_hook,
2415 inline_edge_removal_hook): Use it.
2416 (inline_free_summary): Reset holders correctly.
2417 (inline_generate_summary): Free summary before computing it.
2418
2419 2011-10-02 Paolo Carlini <paolo.carlini@oracle.com>
2420
2421 PR preprocessor/36819
2422 * incpath.c (merge_include_chains): Call free_path on
2423 heads[QUOTE] and tails[QUOTE].
2424
2425 2011-10-02 Jan Hubicka <jh@suse.cz>
2426
2427 PR lto/47247
2428 * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
2429 when resolution is already availbale from plugin.
2430 (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
2431 * cgraph.c (ld_plugin_symbol_resolution): Add
2432 prevailing_def_ironly_exp.
2433 * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
2434 * ipa.c (varpool_externally_visible_p): IRONLY variables are never
2435 externally visible.
2436 * varasm.c (resolution_to_local_definition_p): Add
2437 LDPR_PREVAILING_DEF_IRONLY_EXP.
2438 (resolution_local_p): Likewise.
2439
2440 2011-10-01 David S. Miller <davem@davemloft.net>
2441
2442 * config/sparc/sparc.opt (VIS3): New option.
2443 * doc/invoke.texi: Document it.
2444 * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
2445 not capable of such instructions.
2446 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
2447 to 0x300 when TARGET_VIS3.
2448 * config/sparc/sparc-modes.def: Create 16-byte vector modes.
2449 * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
2450 UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
2451 (V64N8, VASS): New mode iterators.
2452 (vis3_shift, vis3_addsub_ss): New code iterators.
2453 (vbits, vconstr): New mode attributes.
2454 (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
2455 (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
2456 fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
2457 fmean16_vis, fpadd64_vis, fpsub64_vis,
2458 <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
2459 VIS 3.0 instruction patterns.
2460 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
2461 default when targetting capable cpus. TARGET_VIS3 implies
2462 TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
2463 (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
2464 (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
2465 is ignored.
2466 * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
2467 __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
2468 __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
2469 __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
2470 __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
2471 __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
2472 __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
2473 __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
2474 * doc/extend.texi: Document new VIS 3.0 builtins.
2475
2476 2011-10-01 Eric Botcazou <ebotcazou@adacore.com>
2477
2478 * ira-color.c (assign_hard_reg): Fix typo.
2479
2480 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
2481
2482 * doc/extend.texi: Add missing ','.
2483
2484 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
2485
2486 * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
2487 Enable -fmodulo-sched at -O2 and above.
2488 * config/c6x/c6x.md (doloop_end): New expander.
2489 (mvilc, sploop, spkernel, loop_end): New patterns.
2490 (loop_end with memory destination splitter): New.
2491 * config/c6x/c6x.c: Include "hw-doloop.h".
2492 (enum unitreqs): New.
2493 (unit_req_table): New typedef.
2494 (unit_reqs): New static variable.
2495 (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
2496 res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
2497 hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
2498 hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
2499 (struct c6x_sched_context): New member last_scheduled_iter0.
2500 (init_sched_state): Initialize it.
2501 (c6x_variable_issue): Update it.
2502 (sploop_max_uid_iter0): New static variable.
2503 (c6x_sched_reorder_1): Be careful about issuing sploop.
2504 (c6x_reorg): Call c6x_hwlooops before the final schedule.
2505
2506 2011-09-30 Georg-Johann Lay <avr@gjlay.de>
2507
2508 PR target/50566
2509 * config/avr/avr-protos.h (avr_log_t): New field address_cost.
2510 * config/avr/avr.c (avr_address_cost): Use it.
2511 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
2512 (avr_log_vadump): Unknown %-codes finish printing.
2513
2514 2011-09-30 Jakub Jelinek <jakub@redhat.com>
2515
2516 PR inline-asm/50571
2517 * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
2518 input constraints allow mem and not reg, pass true instead of
2519 false as second argument to maybe_fold_reference.
2520
2521 PR tree-optimization/46309
2522 * fold-const.c (make_range, merge_ranges): Remove prototypes.
2523 (make_range_step): New function.
2524 (make_range): Use it.
2525 * tree.h (make_range_step): New prototypes.
2526 * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
2527 * tree-ssa-reassoc.c: Include diagnostic-core.h.
2528 (struct range_entry): New type.
2529 (init_range_entry, range_entry_cmp, update_range_test,
2530 optimize_range_tests): New functions.
2531 (reassociate_bb): Call optimize_range_tests.
2532
2533 2011-09-30 Jakub Jelinek <jakub@redhat.com>
2534 Richard Guenther <rguenther@suse.de>
2535
2536 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
2537 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
2538 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise. Fix
2539 handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
2540 (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
2541 BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
2542
2543 2011-09-30 Jan Beulich <jbeulich@suse.com>
2544
2545 * lto-cgraph.c (output_cgraph): Remove processing of
2546 'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
2547 (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
2548 lto_input_toplevel_asms() instead.
2549 * lto-section-in.c (lto_section_name): Add "asm" entry.
2550 * lto-streamer-in.c (lto_input_toplevel_asms): New.
2551 * lto-streamer-out.c (lto_output_toplevel_asms): New.
2552 * lto-streamer.h (LTO_minor_version): Bump.
2553 (enum lto_section_type): Add LTO_section_asm.
2554 (struct lto_asm_header): New.
2555 (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
2556 * tree-streamer.h (streamer_write_string_cst): Declare.
2557 * tree-streamer-out.c (write_string_cst): Rename to
2558 streamer_write_string_cst and make global. Handle incoming string
2559 being NULL.
2560 (streamer_write_tree_header): Adjust call to renamed function.
2561
2562 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
2563
2564 * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
2565 modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
2566 modulo_last_stage): New static variables.
2567 (set_modulo_params, discard_delay_pairs_above): New functions.
2568 (struct delay_pair): New member stages.
2569 (htab_i2_traverse, htab_i1_traverse): New static functions.
2570 (record_delay_slot_pair): New arg stages. All callers changed.
2571 Record it.
2572 (pair_delay): Take stages into account.
2573 (add_delay_dependencies): Don't do so for stage pairs.
2574 (struct sched_block_state): New member modulo_epilogue.
2575 (save_backtrack_point): Don't set SHADOW_P for stage pairs.
2576 (unschedule_insns_until): Decrease modulo_insns_scheduled.
2577 Set HARD_DEP without using or.
2578 (resolve_dependencies): New static function.
2579 (prune_ready_list): New arg modulo_epilogue_p. All callers changed.
2580 If it is true, allow only insns with INSN_EXACT_TICK set.
2581 (schedule_block): Return bool, always true for normal scheduling,
2582 true or false depending on modulo scheduling success otherwise.
2583 Add bookkeeping for modulo scheduling, and call resolve_dependencies
2584 on everything left over after a modulo schedule.
2585 (haifa_sched_init): Remove check_cfg call. Clear modulo_ii.
2586 * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
2587 declarations.
2588 (set_modulo_params, discard_delay_pairs_above): Declare.
2589 * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
2590 * doc/invoke.texi (--param): Document it.
2591
2592 * sched-ebb.c (schedule_ebb): No longer static. Remove declaration.
2593 New arg modulo_scheduling. All callers changed. Move note handling
2594 code here from schedule_ebbs.
2595 (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
2596 out of schedule_ebbs.
2597 (schedule_ebbs): Call them. Remove note handling code moved to
2598 schedule_ebb.
2599 * sched-int.h (schedule_ebb, schedule_ebbs_init,
2600 schedule_ebbs_finish): Declare.
2601
2602 2011-09-30 Richard Guenther <rguenther@suse.de>
2603
2604 PR middle-end/50574
2605 * tree-cfg.c (verify_gimple_comparison): Compare component
2606 mode sizes for vector comparisons.
2607
2608 2011-09-30 Revital Eres <revital.eres@linaro.org>
2609
2610 * ddg.c (autoinc_var_is_used_p): New function.
2611 (create_ddg_dep_from_intra_loop_link,
2612 add_cross_iteration_register_deps): Call it.
2613 * ddg.h (autoinc_var_is_used_p): Declare.
2614 * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
2615 (sms_schedule): Handle instructions with REG_INC.
2616
2617 2011-09-30 Revital Eres <revital.eres@linaro.org>
2618
2619 * modulo-sched.c (generate_reg_moves): Skip instructions that
2620 do not set a register and verify no regmoves are created for
2621 !single_set instructions.
2622
2623 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
2624
2625 * hw-doloop.c (scan_loop): Compute register usage only for non-debug
2626 insns.
2627
2628 2011-09-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2629
2630 PR target/50099
2631 * config/arm/iterators.md (qhs_zextenddi_cstr): New.
2632 (qhs_zextenddi_op): New.
2633 * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
2634 * config/arm/predicates.md ("arm_extendqisi_mem_op"):
2635 Distinguish between ARM and Thumb2 states.
2636
2637 2011-09-30 David S. Miller <davem@davemloft.net>
2638
2639 * config/sparc/sparc.opt (VIS2): New option.
2640 * doc/invoke.texi: Document it.
2641 * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
2642 UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
2643 UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
2644 (define_attr type): New insn type 'edgen'.
2645 (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
2646 edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
2647 edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
2648 patterns.
2649 * niagara.md: Handle edgen.
2650 * niagara2.md: Likewise.
2651 * ultra1_2.md: Likewise.
2652 * ultra3.md: Likewise.
2653 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
2654 to 0x200 when TARGET_VIS2.
2655 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
2656 default when targetting capable cpus. TARGET_VIS2 implies
2657 TARGET_VIS, clear and it when TARGET_FPU is disabled.
2658 (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
2659 (sparc_expand_builtin): Fix predicate indexing when builtin returns
2660 void.
2661 (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
2662 * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
2663 __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
2664 __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
2665 __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
2666 * doc/extend.texi: Document new VIS 2.0 builtins.
2667
2668 2011-09-29 Nick Clifton <nickc@redhat.com>
2669 Bernd Schmidt <bernds@codesourcery.com>
2670
2671 * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
2672 * config/frv/frvend.c: Likewise.
2673 * config/frv/frv.c (frv_function_prologue): Move misplaced
2674 CALL_ARG_LOCATION notes back to their proper locations.
2675
2676 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
2677
2678 PR target/50566
2679 * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
2680 * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
2681 from avr_rtx_costs.
2682 (avr_legitimate_address_p): Use avr_edump to print log information
2683 filtered by avr_log.
2684 (extra_constraint_Q): Ditto.
2685 (avr_legitimize_address): Ditto.
2686 (avr_rtx_costs): Ditto. Rewrite as wrapper for avr_rtx_costs_1.
2687 (final_prescan_insn): Use avr_log.rtx_costs as filter.
2688
2689 2011-09-29 Richard Sandiford <richard.sandiford@linaro.org>
2690
2691 * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
2692 * config/arm/arm.h (MODES_TIEABLE_P): Use it.
2693 * config/arm/arm.c (arm_modes_tieable_p): New function. Allow
2694 NEON vector and structure modes to be tied.
2695
2696 2011-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2697
2698 * graphite-scop-detection.c (make_close_phi_nodes_unique): New
2699 forward declaration.
2700 (remove_duplicate_close_phi): Detect and repair creation of
2701 duplicate close-phis for a containing loop.
2702
2703 2011-09-27 Andi Kleen <ak@linux.intel.com>
2704
2705 * gcc.c (get_local_tick). Rename to get_random_number. Read from
2706 /dev/urandom. Add getpid call.
2707 (compare_debug_dump_opt_spec_function): Drop getpid call.
2708
2709 2011-09-26 Andi Kleen <ak@linux.intel.com>
2710
2711 * toplev.c (init_local_tick): Try reading random seed
2712 from /dev/urandom.
2713
2714 2011-09-26 Andi Kleen <ak@linux.intel.com>
2715
2716 * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
2717 * lto-streamer.c (lto_get_section_name): Remove crc32_string.
2718 Handle numerical random seed.
2719 * lto-streamer.h (lto_file_decl_data): Change id to
2720 unsigned HOST_WIDE_INT.
2721 * toplev.c (random_seed): Add.
2722 (init_random_seed): Change for numerical random seed.
2723 (get_random_seed): Return as HOST_WIDE_INT.
2724 (set_random_seed): Crc32 existing string.
2725 * toplev.h (get_random_seed): Change to numercal return.
2726 * tree.c (get_file_function_name): Remove CRC. Handle
2727 numerical random seed.
2728
2729 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
2730
2731 PR target/50566
2732 * config.gcc (extra_objs): Add avr-log.o for $target in:
2733 avr-*-rtems*, avr-*-*.
2734 * config/avr/t-avr (avr-log.o): New rule to compile...
2735 * config/avr/avr-log.c: ...this new file.
2736 * config/avr/avr.opt (mlog=): New option.
2737 * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
2738 (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
2739 (avr_log_set_avr_log): New prototype.
2740 (avr_log_t): New typedef.
2741 (avr_log): New declaration.
2742 * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
2743
2744 2011-09-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
2745
2746 * expr.c (do_store_flag): Expand vector comparison by
2747 building an appropriate VEC_COND_EXPR.
2748 * c-typeck.c (build_binary_op): Typecheck vector comparisons.
2749 (c_objc_common_truthvalue_conversion): Adjust.
2750 * tree-vect-generic.c (do_compare): Helper function.
2751 (expand_vector_comparison): Check if hardware supports
2752 vector comparison of the given type or expand vector piecewise.
2753 (expand_vector_operation): Treat comparison as binary
2754 operation of vector type.
2755 (expand_vector_operations_1): Adjust.
2756
2757 2011-09-29 Richard Guenther <rguenther@suse.de>
2758
2759 * tree.c (build_opaque_vector_type): Make opaque vectors
2760 variant types of the corresponding non-opaque type. Make
2761 sure to share opaque vector types properly.
2762
2763 2011-09-29 David S. Miller <davem@davemloft.net>
2764
2765 * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
2766 UNSPEC_ARRAY32): New unspec.
2767 (define_attr type): New type 'array'.
2768 (array{8,16,32}<P:mode>_vis): New patterns.
2769 * config/sparc/ultra1_2.md: Add reservations for 'array'.
2770 * config/sparc/ultra3.md: Likewise.
2771 * config/sparc/niagara.md: Likewise.
2772 * config/sparc/niagara2.md: Likewise.
2773 * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
2774 array builtins.
2775 * config/sparc/visintrin.h (__vis_array8, __vis_array16,
2776 __vis_array32): New.
2777 * doc/extend.texi: Document new VIS builtins.
2778
2779 * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
2780 (VIS pixel-compare insn): Just use <gcond:name>.
2781
2782 * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
2783 code iterator used, so just use <code>. There are two mode iterators
2784 so explicitly use <GCM:gcm_name>.
2785
2786 2011-09-29 Iain Sandoe <iains@gcc.gnu.org>
2787
2788 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
2789 Darwin >= 9.
2790
2791 2011-09-28 David S. Miller <davem@davemloft.net>
2792
2793 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
2794 UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
2795 (UNSPEC_FCMP): New unspec.
2796 (gcond): New code iterator.
2797 (gcond_name): New code attr.
2798 (GCM): New mode iterator.
2799 (gcm_name): New mode attr.
2800 (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
2801
2802 2011-09-28 Oleg Endo <oleg.endo@t-online.de>
2803
2804 PR target/49486
2805 * config/sh/sh.md (negdi2): Move expansion into split to
2806 allow more combination options. Add T_REG clobber.
2807 (abssi2): New expander.
2808 (*negdi2, *abssi2, *negabssi2): New insns.
2809 (cneg): Change from insn to insn_and_split. Rename to
2810 negsi_cond. Add alternative for non-SH4.
2811
2812 2011-09-28 Richard Sandiford <richard.sandiford@linaro.org>
2813
2814 * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
2815 (neon_move_hi_quad_<mode>): Likewise.
2816 (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
2817
2818 2011-09-28 Nick Clifton <nickc@redhat.com>
2819
2820 * config/rx/predicates.md (rx_minmax_operand): New predicate.
2821 Accepts immediates and a restricted subset of MEMs.
2822 * config/rx/rx.md (int_modes): New iterator.
2823 (smaxsi3, sminsi3): Delete and replace with...
2824 (smax<int_mode>3, smin<int_mode>3): New patterns.
2825 (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
2826
2827 2011-09-28 Richard Guenther <rguenther@suse.de>
2828
2829 PR middle-end/50460
2830 * fold-const.c (try_move_mult_to_index): Handle &a.array the
2831 same as &a.array[0].
2832
2833 2011-09-28 Kai Tietz <ktietz@redhat.com>
2834
2835 * configure.ac: Add test for new section attribute
2836 specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
2837 * config.in: Regenerated.
2838 * configure: Regenerated.
2839 * config/i386/winnt.c (i386_pe_asm_named_section): Emit
2840 new section flag "e" for excluded sections, if supported.
2841 Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
2842
2843 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
2844
2845 * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
2846 throughout file.
2847
2848 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
2849
2850 * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
2851 throughout file.
2852
2853 2011-09-27 Sriraman Tallam <tmsriram@google.com>
2854
2855 * output.h (SECTION_EXCLUDE): New macro.
2856 * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
2857
2858 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
2859
2860 * fwprop.c (forward_propagate_and_simplify): After checking
2861 reg/subreg combinations, check whether the modes are the same.
2862
2863 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
2864 Richard Sandiford <rdsandiford@googlemail.com>
2865
2866 * config/mips/mips.c (mips_add_cfa_restore): New function.
2867 (mips16e_save_restore_reg): Use it.
2868 (mips_restore_reg): Likewise. Split double FPRs for
2869 REG_CFA_RESTORE notes.
2870
2871 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
2872
2873 PR middle-end/50386
2874 PR middle-end/50326
2875 * tree-sra.c (build_ref_for_model): Use the type of the field as
2876 the type of the COMPONENT_REF.
2877
2878 2011-09-27 Jeff Law <law@redhat.com>
2879
2880 * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument. Scale
2881 non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
2882 (find_if_case_1): Use the probability of the THEN clause when
2883 determining if speculation is profitable.
2884 (find_if_case_2): Similarly for the ELSE clause.
2885
2886 2011-09-27 Jakub Jelinek <jakub@redhat.com>
2887
2888 * common.opt: Add -foptimize-strlen option.
2889 * Makefile.in (OBJS): Add tree-ssa-strlen.o.
2890 (tree-sssa-strlen.o): Add dependencies.
2891 * opts.c (default_options_table): Enable -foptimize-strlen
2892 by default at -O2 if not -Os.
2893 * passes.c (init_optimization_passes): Add pass_strlen
2894 after pass_object_sizes.
2895 * timevar.def (TV_TREE_STRLEN): New timevar.
2896 * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
2897 * tree-pass.h (pass_strlen): Declare.
2898 * tree-ssa-strlen.c: New file.
2899 * c-decl.c (merge_decls): If compatible stpcpy prototype
2900 is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
2901
2902 2011-09-27 Tom de Vries <tom@codesourcery.com>
2903
2904 PR middle-end/43864
2905 * tree-ssa-tail-merge.c: New file.
2906 (struct same_succ_def): Define.
2907 (same_succ, const_same_succ): New typedef.
2908 (struct bb_cluster_def): Define.
2909 (bb_cluster, const_bb_cluster): New typedef.
2910 (struct aux_bb_info): Define.
2911 (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
2912 (gvn_uses_equal): New function.
2913 (same_succ_print, same_succ_print_traverse, update_dep_bb)
2914 (stmt_update_dep_bb, local_def, same_succ_hash)
2915 (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
2916 (same_succ_reset): New function.
2917 (same_succ_htab, same_succ_edge_flags)
2918 (deleted_bbs, deleted_bb_preds): New var.
2919 (debug_same_succ): New function.
2920 (worklist): New var.
2921 (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
2922 (init_worklist, delete_worklist, delete_basic_block_same_succ)
2923 (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
2924 (print_cluster, debug_cluster, update_rep_bb)
2925 (add_bb_to_cluster, new_cluster, delete_cluster): New function.
2926 (all_clusters): New var.
2927 (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
2928 (merge_clusters, set_cluster): New function.
2929 (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
2930 (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
2931 (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
2932 (find_clusters_1, find_clusters): New function.
2933 (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
2934 (update_bbs): New var.
2935 (apply_clusters): New function.
2936 (update_debug_stmt, update_debug_stmts): New function.
2937 (tail_merge_optimize): New function.
2938 tree-pass.h (tail_merge_optimize): Declare.
2939 * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
2940 * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
2941 (tree-ssa-tail-merge.o): New rule.
2942 * opts.c (default_options_table): Set OPT_ftree_tail_merge by
2943 default at OPT_LEVELS_2_PLUS.
2944 * tree-ssa-sccvn.c (vn_valueize): Move to ...
2945 * tree-ssa-sccvn.h (vn_valueize): Here.
2946 * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
2947 * common.opt (ftree-tail-merge): New switch.
2948 * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
2949 (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
2950 * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
2951 (-ftree-tail-merge, max-tail-merge-comparisons)
2952 (max-tail-merge-iterations): New item.
2953
2954 2011-09-27 Jan Hubicka <jh@suse.cz>
2955
2956 * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
2957
2958 2011-09-27 Jan Hubicka <jh@suse.cz>
2959
2960 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
2961 parameters passed by reference; handle loads from non-SSA scalars
2962 and update comments.
2963
2964 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
2965
2966 PR rtl-optimization/50249
2967 * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
2968 instead of opnum and type. All callers changed. Remove useless
2969 declaration.
2970 Search forward for other reloads of the same type for the same operand
2971 using the same register; if any are found, return false.
2972 (reload_regs_reach_end_p): Same argument changes; all callers changed.
2973
2974 2011-09-27 Andi Kleen <ak@linux.intel.com>
2975 Jan Hubicka <jh@suse.cz>
2976
2977 * doc/invoke.texi (ffat-lto-objects): Document.
2978 * toplev.c (compile_file): Do not output assembly when doing slim lto;
2979 Output __gnu_slim_lto when doing slim lto.
2980 * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
2981 (cgraph_optimize): Return early when doing slim lto.
2982 * opts.c (finish_options): Complain about lack of linker plugin
2983 when doing slim lto.
2984 * common.opt (ffat-lto-objects): New.
2985
2986 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
2987
2988 * ipa-inline-analysis.c (predicate_probability): Avoid comparison
2989 between signed and unsigned.
2990
2991 2011-09-27 Ira Rosen <ira.rosen@linaro.org>
2992
2993 * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
2994 vectorization.
2995 (vectorizable_type_promotion): Likewise.
2996 (vect_analyze_stmt): Call vectorizable_type_demotion and
2997 vectorizable_type_promotion for basic blocks.
2998 (supportable_widening_operation): Don't assume loop vectorization.
2999 * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
3000 basic blocks. Update vectorization factor for basic block
3001 vectorization.
3002 (vect_analyze_slp_instance): Allow multiple types for basic block
3003 vectorization. Recheck unrolling factor after construction of SLP
3004 instance.
3005
3006 2011-09-27 Richard Guenther <rguenther@suse.de>
3007
3008 * tree-object-size.c (compute_object_sizes): Fix dumping of
3009 folded statement.
3010
3011 2011-09-27 Richard Guenther <rguenther@suse.de>
3012
3013 PR tree-optimization/50363
3014 * tree-ssa-pre.c (create_expression_by_pieces): Handle
3015 pointer conversions in POINTER_PLUS_EXPRs properly.
3016
3017 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
3018
3019 * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
3020 (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
3021 (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
3022 (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
3023 that produce subreg moves. Define using VQX iterators.
3024
3025 2011-09-27 Georg-Johann Lay <avr@gjlay.de>
3026
3027 * config/avr/avr.md (ashrqi3): Split alternative "n"
3028 into its remaining parts C03, C04, C05, C06, C07 and describe
3029 impact in CC by attribute "cc" appropriately.
3030 * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
3031 by digging RTX.
3032
3033 2011-09-27 Jakub Jelinek <jakub@redhat.com>
3034
3035 * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
3036 from 3 x MAX_MACHINE_MODE.
3037 (CONSTM1_RTX): Define.
3038 * emit-rtl.c (const_tiny_rtx): Change into array of
3039 4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
3040 (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
3041 CONSTM1_RTX.
3042 (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
3043 MODE_VECTOR_INT modes.
3044 * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
3045 Optimize if one operand is CONSTM1_RTX.
3046 * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
3047 into mask | x.
3048
3049 2011-09-26 David S. Miller <davem@davemloft.net>
3050
3051 * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
3052 (fcmp{le,ne,gt,eq}{16,32}): Likewise.
3053 * config/sparc/visintrin.h: Update edge and pixel-compare
3054 intrinsics to return 'long' instead of 'int'.
3055 * doc/extend.texi: Update documentation to match.
3056 * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
3057 flat, allow any instruction. Otherwise, when V9 allow parallels
3058 which consist only of sets to registers outside of %o0 to %o5.
3059 (sparc_vis_init_builtins): Update VIS builtin types for edge
3060 and pixel-compare.
3061
3062 * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
3063 is enabled, mark %gsr as global.
3064 * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
3065 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
3066
3067 * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
3068 which will now define __VIS and __VIS__ when -mvis is enabled.
3069 * config/sparc/t-sparc: Likewise.
3070 * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
3071 and add t-sparc to tmake_file for all sparc targets.
3072 * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
3073 * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
3074
3075 * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
3076 builtins for VIS vector addition and subtraction.
3077 * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
3078 __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
3079 __vis_fpsub32, __vis_fpsub32s): New.
3080 * doc/extend.texi: Document new VIS intrinsics.
3081
3082 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
3083
3084 * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
3085 * config/avr/avr.c (avr_out_compare): Print shorter sequence for
3086 EQ/NE comparisons against +/-1 in the case of unused-after,
3087 non-ld-regs target.
3088
3089 2011-09-26 Jakub Jelinek <jakub@redhat.com>
3090
3091 * gimple-fold.c (gimplify_and_update_call_from_tree): Set
3092 gctx.into_ssa after push_gimplify_context.
3093
3094 * gimple.c (gimple_build_call_valist): New function.
3095 * gimple.h (gimple_build_call_valist): New prototype.
3096 * tree-ssa-propagate.c (finish_update_gimple_call): New function.
3097 (update_gimple_call): Likewise.
3098 (update_call_from_tree): Use finish_update_gimple_call.
3099 * tree-ssa-propagate.h (update_gimple_call): New prototype.
3100
3101 2011-09-26 Richard Guenther <rguenther@suse.de>
3102
3103 PR tree-optimization/50472
3104 * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
3105 volatile references.
3106
3107 2011-09-26 Bingfeng Mei <bmei@broadcom.com>
3108
3109 * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
3110 * target.def: (addr_space_subset_p): Likewise.
3111
3112 2011-09-26 Tom de Vries <tom@codesourcery.com>
3113
3114 * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
3115 * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
3116 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
3117 of new var.
3118
3119 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
3120
3121 PR target/50465
3122 * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
3123 * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
3124 output_reload_insisf.
3125 (adjust_len): Set default to "no".
3126 Remove alternative "yes". Add alternatives: "mov8", "mov16",
3127 "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
3128 "lshrhi", "ashlsi, "ashrsi", "lshrsi".
3129 (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
3130 *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
3131 *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
3132 *lshrsi3_const): Set attribute "adjust_len".
3133 * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
3134 (output_movsisf): Don't pass insn to output_reload_insisf.
3135 (adjust_insn_length): Handle new alternatives to adjust_len.
3136 Remove handling of ADJUST_LEN_YES. Clean-up code.
3137
3138 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
3139
3140 * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
3141 may_trap_p to detect loads that may trap of fault.
3142
3143 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
3144
3145 * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
3146 * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
3147 (*reload_inhi): Use it. Adapt call to output_reload_inhi to new
3148 prototype.
3149 (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
3150 * config/avr/avr.c: Rename output_reload_insisf_1 to
3151 output_reload_in_const.
3152 (avr_popcount_each_byte): Handle SFmode, too.
3153 (output_reload_in_const): Change so it can handle HI loads, too.
3154 Use avr_popcount_each_byte to work out if scratch register must be
3155 created on the fly.
3156 (output_reload_inhi): Rewrite using output_reload_in_const and...
3157 (output_movhi): ...use it to print constants' loads.
3158 (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
3159
3160 2011-09-25 David S. Miller <davem@davemloft.net>
3161
3162 * config/sparc/constraints.md (C, P, Z): New constraints for
3163 const_doube, const_int, and const_vector "all ones" values.
3164 Make unused constraint letters comment match reality.
3165 * config/sparc/predicates.md (const_all_ones_operand,
3166 register_or_zero_or_all_ones_operand): New predicates.
3167 * config/sparc/sparc.c (sparc_expand_move): Allow all ones
3168 as well as zero constants when VIS.
3169 (sparc_legitimate_constant_p): Likewise.
3170 * config/sparc/sparc.md (movsi_insn): Add fones alternative.
3171 (movsf_insn): Likewise
3172 (movdi_insn_sp64): Add fone alternative.
3173 (movdf_insn_sp32_v9): Likewise.
3174 (movdf_insn_sp64): Likewise.
3175
3176 * configure.ac: Add feature check to make sure the assembler
3177 supports the FMAF, HPC, and VIS 3.0 instructions found on
3178 Niagara-3 and later cpus.
3179 * configure: Rebuild.
3180 * config.in: Likewise.
3181 * config/sparc/sparc.opt: New option '-mfmaf'.
3182 * config/sparc/sparc.md: Add float fused multiply-add patterns.
3183 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
3184 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
3185 * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
3186 ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
3187 * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
3188 by default for Niagara-3 and later. Turn it off if TARGET_FPU is
3189 disabled.
3190 (sparc_rtx_costs): Handle 'FMA'.
3191 * doc/invoke.texi: Document -mfmaf.
3192
3193 2011-09-25 Jakub Jelinek <jakub@redhat.com>
3194
3195 * tree-ssa-structalias.c (intra_create_variable_infos): Treat
3196 TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
3197 DECL_BY_REFERENCE parameters.
3198
3199 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
3200
3201 * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
3202 if there is no outgoing edge.
3203
3204 * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
3205 integral types.
3206
3207 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
3208
3209 * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
3210 of vect_analyze_bb here.
3211 (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
3212
3213 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
3214
3215 * tree-data-ref.c (dr_analyze_innermost): Add new argument.
3216 Allow not simple iv if analyzing basic block.
3217 (create_data_ref): Update call to dr_analyze_innermost.
3218 (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
3219 * tree-loop-distribution.c (generate_memset_zero): Likewise.
3220 * tree-predcom.c (find_looparound_phi): Likewise.
3221 * tree-data-ref.h (dr_analyze_innermost): Add new argument.
3222
3223 2011-09-24 David S. Miller <davem@davemloft.net>
3224
3225 * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
3226 (SPARC_GSR_REG): Define.
3227 (FIXED_REGISTERS): Mark GSR as fixed.
3228 (CALL_USED_REGISTERS): Mark GSR as call used.
3229 (HARD_REGNO_NREGS): GSR is always 1 register.
3230 (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
3231 (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
3232 (REGISTER_NAMES): Add "%gsr".
3233 * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
3234 (UNSPEC_WRGSR): New unspec.
3235 (GSR_REG): New constant.
3236 (type): Add new insn type 'gsr'.
3237 (fpack16_vis, fpackfix_vis, fpack32_vis,
3238 faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
3239 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
3240 rdgsr_v8plus): New expanders and insns.
3241 (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
3242 using patterns which show that this is a plus in addition to a
3243 modification of GSR_REG, instead of an unspec.
3244 * config/sparc/ultra1_2.md: Handle 'gsr'.
3245 * config/sparc/ultra3.md: Likewise.
3246 * config/sparc/niagara.md: Likewise.
3247 * config/sparc/niagara2.md: Likewise.
3248 * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
3249 end of table.
3250 (sparc_option_override): Make -mvis imply -mv8plus.
3251 (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
3252 for %gsr.
3253 (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
3254 __builtin_vis_read_gsr.
3255 (sparc_expand_buildin): Handle builtins that take one argument and
3256 return void.
3257 (sparc_fold_builtin): Never fold writes to %gsr.
3258 * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
3259 * doc/extend.texi: Document new VIS intrinsics.
3260
3261 2011-09-23 Jan Hubicka <jh@suse.cz>
3262
3263 * ipa-inline-transform.c (inline_call): Add comment.
3264 * ipa-inline.h (inline_param_summary): New structure and vector.
3265 (struct inline_edge_summary): Add param field.
3266 * ipa-inline-analysis.c (CHANGED): New constant.
3267 (add_clause): Handle CHANGED and NOT_CONSTANT.
3268 (predicate_probability): New function.
3269 (dump_condition): Dump CHANGED predicate.
3270 (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
3271 of unknown function wide invariant.
3272 (evaluate_conditions_for_edge): Handle change probabilities.
3273 (inline_edge_duplication_hook): Copy param summaries.
3274 (inline_edge_removal_hook): Free param summaries.
3275 (dump_inline_edge_summary): Fix dumping of indirect edges and callee
3276 sizes; dump param summaries.
3277 (will_be_nonconstant_predicate): Use CHANGED predicate.
3278 (record_modified_bb_info): New structure.
3279 (record_modified): New function.
3280 (param_change_prob): New function.
3281 (estimate_function_body_sizes): Compute param summaries.
3282 (estimate_edge_size_and_time): Add probability argument.
3283 (estimate_node_size_and_time): Add inline_param_summary argument;
3284 handle predicate probabilities.
3285 (remap_predicate): Fix formating.
3286 (remap_edge_change_prob): New function.
3287 (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
3288 (remap_edge_predicates): ... this one.
3289 (inline_merge_summary): Remap edge summaries; handle predicate
3290 probabilities; remove param summaries after we are done.
3291 (do_estimate_edge_time): Update.
3292 (do_estimate_edge_growth): Update.
3293 (read_inline_edge_summary): Read param info.
3294 (inline_read_summary): Fix formating.
3295 (write_inline_edge_summary): Write param summaries.
3296
3297 2011-09-23 Jakub Jelinek <jakub@redhat.com>
3298
3299 * config/i386/i386.c (ix86_print_operand): Handle %~.
3300 (ix86_print_operand_punct_valid_p): Return true also for '~'.
3301 * config/i386/sse.md (i128): New mode_attr.
3302 (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
3303 avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
3304 *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
3305 vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
3306 patterns, use "<sseinsnmode>" for "mode" attribute.
3307 (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
3308 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
3309 %~128 in the patterns, use "OI" for "mode" attribute.
3310
3311 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
3312
3313 PR target/50447
3314 * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
3315 "tstsi", "compare".
3316 (*cmpqi_sign_extend): Use s8_operand.
3317 (*cmphi, *cmpsi): Rewrite using avr_out_compare.
3318 * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
3319 prototypes.
3320 (out_tsthi, out_tstsi): Remove prototypes.
3321 (avr_out_tsthi, avr_out_tstsi): New prototypes.
3322 * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
3323 (avr_asm_len): Negative length now sets *plen to -length.
3324 (compare_sign_p): Return bool instead of int.
3325 (compare_diff_p, compare_eq_p): Ditto and make static.
3326 (avr_out_tsthi): New function.
3327 (avr_out_tstsi): New function.
3328 (avr_out_compare): New function.
3329 (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
3330 ADJUST_LEN_COMPARE.
3331
3332 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
3333
3334 PR target/50447
3335 * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
3336 (addsi3): Rewrite using QI scratch register. Adjust text
3337 peepholes using plus:SI.
3338 (*addsi3_zero_extend.hi): New insn.
3339 (*subsi3_zero_extend.hi): New insn.
3340 (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
3341 (*subsi3_zero_extend): Ditto.
3342 (subsi3): Change predicate #2 to register_operand.
3343 * config/avr/avr-protos.h (avr_out_plus): New prototype.
3344 (avr_out_plus_1): New static function.
3345 (avr_out_plus): New function.
3346 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
3347
3348 2011-09-23 Jakub Jelinek <jakub@redhat.com>
3349
3350 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
3351 GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
3352
3353 2011-09-23 Ian Lance Taylor <iant@google.com>
3354
3355 * godump.c (go_define): Treat a single character in single quotes,
3356 or a string, as an operand.
3357
3358 2011-09-23 Martin Jambor <mjambor@suse.cz>
3359
3360 * ipa-prop.h (jump_func_type): Updated comments.
3361 (ipa_known_type_data): New type.
3362 (ipa_jump_func): Use it to describe known type jump functions.
3363 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
3364 reflect the new known type jump function contents.
3365 (compute_known_type_jump_func): Likewise.
3366 (combine_known_type_and_ancestor_jfs): Likewise.
3367 (try_make_edge_direct_virtual_call): Likewise.
3368 (ipa_write_jump_function): Likewise.
3369 (ipa_read_jump_function): Likewise.
3370 * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
3371 (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
3372 (propagate_accross_jump_function): Likewise.
3373
3374 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
3375
3376 PR target/50446
3377 * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
3378 (rotlqi3_4): Turn insn into expander.
3379 (*rotlqi3): New insn.
3380 (rotlhi3, rotlsi3): Support rotate left/right by 1.
3381 (*rotlhi2.1, *rotlhi2.15): New insns.
3382 (*rotlsi2.1, *rotlsi2.31): New insns.
3383 * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
3384
3385 2011-09-23 Bin Cheng <bin.cheng@arm.com>
3386
3387 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
3388
3389 2011-09-22 Maxim Kuvyrkov <maxim@codesourcery.com>
3390
3391 * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
3392
3393 2011-09-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3394
3395 * reload.c (find_reloads): Set operand_mode to Pmode for address
3396 operands consisting of just a CONST_INT.
3397
3398 2011-09-22 Uros Bizjak <ubizjak@gmail.com>
3399
3400 PR target/50482
3401 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
3402 blendv, force op_true to register if it doesn't satisfy
3403 nonimmediate_operand predicate.
3404
3405 2011-09-22 Richard Sandiford <rdsandiford@googlemail.com>
3406
3407 PR middle-end/50113
3408 PR middle-end/50061
3409 * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
3410 get the locate.where_pad value for register-only arguments.
3411 * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
3412 (arm_pad_reg_upward): Handle null types.
3413
3414 2011-09-22 Jan Hubicka <jh@suse.cz>
3415
3416 * ipa-inline-analysis.c: Fix overly long lines.
3417
3418 2011-09-22 Jan Hubicka <jh@suse.cz>
3419
3420 * ipa-inline-transform.c (inline_call): Always update jump functions
3421 after inlining.
3422 * ipa-inline.c (ipa_inline): Likewise; do not call
3423 ipa_create_all_structures_for_iinln.
3424 (ipa_inline): Always free jump functions.
3425 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
3426 (remap_edge_predicates): Fix pasto.
3427 (inline_merge_summary): Remove nlined edge predicate; remove hack.
3428 (inline_analyze_function): Always initialize jump functions.
3429 (inline_generate_summary): Likewise.
3430 (inline_write_summary): Always write jump functions when ipa-cp
3431 is not doing that.
3432 (inline_read_summary): Always read jump functions when ipa-cp
3433 is not doing that.
3434 * ipa-prop.c (iinlining_processed_edges): Remove.
3435 (update_indirect_edges_after_inlining): Do not use
3436 iinlining_processed_edges; instead set param_index to -1.
3437 (propagate_info_to_inlined_callees): Only try to indirect inlining
3438 when asked to do so; update jump functions of indirect calls, too;
3439 remove jump functions of the inlined edge.
3440 (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
3441 (ipa_create_all_structures_for_iinln): Remove.
3442 (ipa_free_all_structures_after_iinln): Do not free
3443 iinlining_processed_edges.
3444 * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
3445
3446 2011-09-22 Richard Sandiford <richard.sandiford@linaro.org>
3447
3448 * config/arm/predicates.md (expandable_comparison_operator): New
3449 predicate, extracted from...
3450 (arm_comparison_operator): ...here.
3451 * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
3452 (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
3453 (movdfcc): Use expandable_comparison_operator.
3454
3455 2011-09-22 Georg-Johann Lay <avr@gjlay.de>
3456
3457 PR target/50447
3458 PR target/50465
3459 * config/avr/avr-protos.h (avr_out_bitop): New prototype.
3460 (avr_popcount_each_byte): New prototype.
3461 * config/avr/avr.c (avr_popcount): New static function.
3462 (avr_popcount_each_byte): New function.
3463 (avr_out_bitop): New function.
3464 (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
3465 avr_out_bitop. Cleanup code.
3466 * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
3467 (Ca4, Co4, Cx4): New constraints.
3468 * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
3469 alternative.
3470 (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
3471 (andsi3, iorsi3, xorsi3): Ditto.
3472 (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
3473
3474 2011-09-22 Ira Rosen <ira.rosen@linaro.org>
3475
3476 PR tree-optimization/50451
3477 * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
3478 constant operands in reduction.
3479 (vect_get_slp_defs): Don't create vector operand for NULL scalar
3480 operand.
3481
3482 2011-09-22 David S. Miller <davem@davemloft.net>
3483
3484 * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
3485 fpack16, fpack32, fpackfix as const.
3486
3487 * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
3488 I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
3489 constants. Use them everywhere.
3490
3491 2011-09-22 Oleg Endo <oleg.endo@t-online.de>
3492
3493 * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
3494 Added AND special case. Adapted comments.
3495 (sh_rtx_costs): Added XOR and IOR case.
3496
3497 2011-09-21 Jan Hubicka <jh@suse.cz>
3498
3499 * ipa-inline-analsis.c (compute_inline_parameters): Set
3500 cfun and current_function_decl.
3501
3502 2011-09-21 Jan Hubicka <jh@suse.cz>
3503
3504 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
3505 handled components in parameter of builtin_constant_p.
3506 (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
3507
3508 2011-09-21 Jan Hubicka <jh@suse.cz>
3509
3510 * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
3511 * ipa-inline.h (estimate_edge_time): Fix pasto.
3512 * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
3513
3514 2011-09-21 Jakub Jelinek <jakub@redhat.com>
3515
3516 * config/i386/i386.c (ix86_expand_sse_movcc): Use
3517 blendvps, blendvpd and pblendvb if possible.
3518
3519 2011-09-21 Uros Bizjak <ubizjak@gmail.com>
3520
3521 PR target/50464
3522 * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
3523 operand 1 predicate to register_operand and operand 2 predicate
3524 to nonimmediate_operand.
3525 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
3526 xop_pcmov, force op_true to register. Also, force op_false to
3527 register if it doesn't satisfy nonimmediate_operand predicate.
3528
3529 2011-09-21 Kirill Yukhin <kirill.yukhin@intel.com>
3530
3531 * config/i386/bmi2intrin.h (_mulx_u64): New.
3532 (_mulx_u32): Ditto.
3533
3534 2011-09-21 Jan Hubicka <jh@suse.cz>
3535
3536 PR tree-optimization/50433
3537 * ipa-inline-analysis.c (eliminated_by_inlining_prob):
3538 Use get_base_address.
3539
3540 2011-09-21 Jakub Jelinek <jakub@redhat.com>
3541
3542 * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
3543 nonimmediate_operand instead of register_operand predicate for operands
3544 1 and 2, force them into registers if expanding them as comparison.
3545 (<code><mode>3 umaxmin:VI124_128 expander): Similarly. For UMAX
3546 V8HImode force into register just operand 1.
3547
3548 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
3549
3550 PR target/45099
3551 * config/avr/avr.c (avr_function_arg_advance): Change error to
3552 warning if a fixed register is needed as function argument.
3553
3554 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
3555
3556 PR target/50449
3557 PR target/50465
3558 * config/avr/avr.md (adjust_len): New insn attribute.
3559 (*reload_insi, *reload_insf): Use it.
3560 (*movsi, *movsf): Use new interface of output_movsisf.
3561 * config/avr/avr-protos.h (output_movsisf): Change prototype.
3562 * config/avr/avr.c (output_movsisf): Ditto.
3563 (adjust_insn_length): Use insn attribute "adjust_len" to adjust
3564 lengths of insns *reload_insi, *reload_insf.
3565 (output_reload_insisf_1): New static function.
3566 (output_reload_insisf): Use it.
3567
3568 2011-09-21 David S. Miller <davem@davemloft.net>
3569
3570 * config/sparc/sparc.c (def_builtin): Change from macro into function.
3571 (def_builtin_const): New.
3572 (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
3573 other than alignaddr and falignaddr.
3574
3575 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
3576 UNSPEC_FCMPEQ): New unspec codes.
3577 (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
3578 fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
3579 * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
3580 new pixel compare VIS patterns.
3581 * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
3582 __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
3583 __vis_fcmpeq16, __vis_fcmpeq32): New.
3584 * doc/extend.texi: Document new pixel compare VIS intrinsics.
3585
3586 2011-09-21 Tom de Vries <tom@codesourcery.com>
3587
3588 * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
3589
3590 2011-09-20 David S. Miller <davem@davemloft.net>
3591
3592 * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
3593 (aligneddrl<P:mode>_vis): New pattern.
3594 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
3595 edge32l_vis): Adjust to take Pmode arguments, and return SImode.
3596 * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
3597 alignaddrl insn, and adjust edge operations for updated types.
3598 * config/sparc/visintrin.h: Likewise.
3599 * doc/extend.texi: Make typing in VIS documentation match reality.
3600
3601 2011-09-20 Terry Guo <terry.guo@arm.com>
3602
3603 * config/arm/arm-arches.def: Add armv6s-m.
3604 * config/arm/arm-tables.opt: Regenerate.
3605
3606 2011-09-20 Wei Guozhi <carrot@google.com>
3607
3608 PR rtl-optimization/49452
3609 * postreload.c (reload_combine): Invalidate use information when across
3610 volatile insn.
3611
3612 2011-09-19 Maxim Kuvyrkov <maxim@codesourcery.com>
3613
3614 * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
3615 Remove maintenance overhead.
3616 (haifa_sched_init, sched_finish): Update.
3617
3618 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
3619
3620 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
3621 to calculate unit, prefix_rep and prefix_data16 attributes.
3622 (*mov<mode>_internal): Ditto for unit attribute.
3623 (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
3624 (*movv2sf_internal): Ditto.
3625 * config/i386/sse.md (VI1248_256): Remove mode iterator.
3626 (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
3627 (*avx2_eq<mode>3): Ditto.
3628 (avx2_gt<mode>3): Ditto.
3629
3630 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
3631
3632 * config/i386/i386.md (maxmin): New code iterator.
3633 * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
3634 from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
3635 code iterator.
3636 (*avx2_<maxmin:code><mode>3): Macroize isn from
3637 *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
3638 maxmin code iterator.
3639 (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
3640 (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
3641 <umaxmin:code>v16qi3.
3642
3643 2011-09-19 Alan Modra <amodra@gmail.com>
3644 Michael Meissner <meissner@linux.vnet.ibm.com>
3645
3646 PR target/50341
3647 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
3648 split the load of the indirect function's TOC from the call to
3649 prevent the compiler from moving the load of the new TOC above
3650 code that references the current function's TOC.
3651 (call_indirect_aix<ptrsize>_internal): Ditto.
3652 (call_indirect_aix<ptrsize>_nor11): Ditto.
3653 (call_indirect_aix<ptrsize>_internal2): Ditto.
3654 (call_value_indirect_aix<ptrsize>): Ditto.
3655 (call_value_indirect_aix<ptrsize>_internal): Ditto.
3656 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
3657 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
3658
3659 2011-09-19 Jakub Jelinek <jakub@redhat.com>
3660
3661 * config/i386/sse.md (*sse4_1_extractps): Change into
3662 define_insn_and_split, add =x 0 n and =x x n alternatives
3663 and split them after reload.
3664
3665 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
3666
3667 * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
3668
3669 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
3670
3671 * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
3672
3673 2011-09-19 Ira Rosen <ira.rosen@linaro.org>
3674
3675 PR tree-optimization/50413
3676 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
3677 a basic block if one of its data-refs can't be analyzed.
3678
3679 2011-09-19 Paul Brook <paul@codesourcery.com>
3680
3681 * config/arm/predicates.md (shift_amount_operand): Check constant
3682 shift count is in range.
3683 (const_shift_operand): Remove.
3684
3685 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
3686 Iain Sandoe <developer@sandoe-acoustics.co.uk>
3687
3688 PR target/50091
3689 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
3690 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
3691
3692 2011-09-18 H.J. Lu <hongjiu.lu@intel.com>
3693
3694 * config/i386/bmiintrin.h: Remove tmp.
3695 * config/i386/tbmintrin.h: Likewise.
3696
3697 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
3698
3699 PR tree-optimization/50414
3700 * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
3701 MIN_EXPR.
3702
3703 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
3704
3705 PR tree-optimization/50412
3706 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
3707 acceses that require epilogue loop if vectorizing outer loop.
3708
3709 2011-09-17 David S. Miller <davem@davemloft.net>
3710
3711 * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
3712 UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
3713 New unspecs.
3714 (define_attr type): New type 'edge'.
3715 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
3716 edge32l_vis): New patterns.
3717 * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
3718 * config/sparc/ultra3.md: Likewise.
3719 * config/sparc/niagara.md: Likewise.
3720 * config/sparc/niagara2.md: Likewise.
3721 * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
3722 builtins for VIS edge instructions.
3723 * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
3724 (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
3725 intrinsics.
3726 (__v8qi, __v4qi): Make unsigned.
3727 (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
3728 __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
3729 __vis_fpack32): Fix types.
3730 * doc/extend.texi: Document new 'edge' VIS intrinsics.
3731
3732 * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
3733 divide costs.
3734 (niagara3_costs): New.
3735 (sparc_option_override): Use it.
3736 * gcc/config/sparc/niagara2.md: Adjust with more accurate
3737 Niagara-3 reservations.
3738
3739 2011-09-17 Jakub Jelinek <jakub@redhat.com>
3740
3741 * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
3742 (sse2_avx, sseinsnmode): Add V2TI.
3743 (REDUC_SMINMAX_MODE): New mode iterator.
3744 (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
3745 reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
3746 (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
3747 (sse2_lshrv1ti3): Rename to...
3748 (<sse2_avx2>_lshr<mode>3): ... this. Use VIMAX_AVX2 mode
3749 iterator. Move before umaxmin expanders.
3750 * config/i386/i386.h (VALID_AVX256_REG_MODE,
3751 SSE_REG_MODE_P): Accept V2TImode.
3752 * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
3753 V16HImode, V8SImode and V4DImode.
3754
3755 * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
3756 and V4DImode.
3757 (ix86_build_signbit_mask): Likewise.
3758 (ix86_expand_int_vcond): Likewise. Handle V16HImode and V32QImode.
3759 (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
3760 instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
3761 * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
3762 (<code><mode>3) ... this.
3763 (avx2_<code><mode>3 smaxmin expand): Rename to...
3764 (<code><mode>3) ... this.
3765 (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
3766 (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
3767 VI8_AVX2 mode iterator.
3768 (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
3769 VI8_AVX2 mode iterator.
3770 (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
3771 New expanders.
3772
3773 2011-09-17 Richard Sandiford <rdsandiford@googlemail.com>
3774
3775 * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
3776 throughout file.
3777
3778 2011-09-16 David S. Miller <davem@davemloft.net>
3779
3780 * config/sparc/visintrin.h: New file.
3781 * config.gcc: Add it to extra_headers on sparc.
3782
3783 2011-09-16 Jakub Jelinek <jakub@redhat.com>
3784
3785 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
3786 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
3787 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
3788 reduc_smin_v4sf): Adjust callers.
3789 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
3790 New expanders.
3791
3792 * config/i386/sse.md (vec_extract_hi_<mode>,
3793 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
3794 vextracti128 instead of vextractf128 for -mavx2 and
3795 integer vectors. For V4DFmode fix up mode attribute.
3796 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
3797 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
3798 instead of V8SF mode attribute.
3799 (avx2_extracti128): Change into define_expand.
3800 * config/i386/i386.c (ix86_expand_vector_extract): Handle
3801 32-byte vector modes if TARGET_AVX.
3802
3803 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
3804
3805 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
3806 (umulqi3_highpart, smulqi3_highpart): Ditto.
3807 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
3808 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
3809 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
3810
3811 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
3812
3813 PR target/50358
3814 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
3815 (*maddqi4, *maddqi4.const): New insns.
3816 (*msubqi4, *msubqi4.const): New insns.
3817 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
3818 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
3819 HImode by 1 in the case of multiplying with a CONST_INT.
3820 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
3821
3822 2011-09-15 Jan Hubicka <jh@suse.cz>
3823
3824 PR lto/50430
3825 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
3826 error_mark_node in the DECL_INITIAL of vtable.
3827
3828 2011-09-15 Diego Novillo <dnovillo@google.com>
3829
3830 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
3831 @SYSROOT_CFLAGS_FOR_TARGET@.
3832 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
3833 * configure: Regenerate.
3834 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
3835 Remove setting of GCC_UNDER_TEST.
3836
3837 2011-09-15 Uros Bizjak <ubizjak@gmail.com>
3838
3839 * config/i386/i386.c (output_fp_compare): Return %v prefixed
3840 instruction mnemonics for TARGET_AVX.
3841
3842 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
3843 "type" attribute calculation.
3844 (*movdf_internal): Ditto.
3845 (*movsf_internal): Ditto.
3846
3847 2011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
3848
3849 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
3850
3851 2011-09-15 Jason Merrill <jason@redhat.com>
3852
3853 PR c++/50361
3854 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
3855
3856 2011-09-15 Jan Hubicka <jh@suse.cz>
3857
3858 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
3859 simplify obviously true clauses.
3860 (and_predicates, or_predicates): Add conditions parameter.
3861 (inline_duplication_hoook): Update.
3862 (mark_modified): New function.
3863 (unmodified_parm): New function.
3864 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
3865 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
3866 Use unmodified_parm.
3867 (estimate_function_body_sizes): Update.
3868 (remap_predicate): Update.
3869
3870 2011-09-15 Ira Rosen <ira.rosen@linaro.org>
3871
3872 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
3873 read-after-read dependencies in basic block SLP.
3874
3875 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
3876
3877 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
3878 throughout file.
3879
3880 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
3881
3882 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
3883 throughout file.
3884
3885 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
3886
3887 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
3888 throughout file.
3889
3890 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
3891
3892 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
3893 throughout file.
3894 * config/rs6000/constraints.md: Likewise.
3895
3896 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
3897
3898 * config/microblaze/microblaze.md: Use match_test rather than
3899 eq/ne symbol_ref throughout file.
3900
3901 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
3902
3903 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
3904 throughout file.
3905
3906 2011-09-14 Tom de Vries <tom@codesourcery.com>
3907
3908 PR middle-end/50251
3909 * explow.c (emit_stack_restore): Set crtl->need_drap if
3910 stack_restore is emitted.
3911
3912 2011-09-14 Julian Brown <julian@codesourcery.com>
3913
3914 * config/arm/arm.c (arm_override_options): Add unaligned_access
3915 support.
3916 (arm_file_start): Emit attribute for unaligned access as appropriate.
3917 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
3918 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
3919 (insv, extzv): Add unaligned-access support.
3920 (extv): Change to expander. Likewise.
3921 (extzv_t1, extv_regsi): Add helpers.
3922 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
3923 (unaligned_storesi, unaligned_storehi): New.
3924 (*extv_reg): New (previous extv implementation).
3925 * config/arm/arm.opt (munaligned_access): Add option.
3926 * config/arm/constraints.md (Uw): New constraint.
3927 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
3928 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
3929 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
3930 volatile accesses when -fstrict-volatile-bitfields is in effect.
3931 (extract_bit_field_1): Likewise.
3932
3933 2011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
3934
3935 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
3936 a scalar integer before applying integer-only optimisations to
3937 inner arithmetic.
3938
3939 2011-09-14 Bernd Schmidt <bernds@codesourcery.com>
3940
3941 * config/mips/mips.c (mips_expand_epilogue): Generate a
3942 simple_return only if the return address is in r31.
3943
3944 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
3945
3946 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
3947 NULL for a jump that is a cc0 insn, pick the previous insn for
3948 move_before.
3949
3950 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
3951
3952 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
3953 throughout file.
3954
3955 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
3956
3957 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
3958 throughout file.
3959
3960 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
3961
3962 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
3963 symbol_ref throughout file.
3964
3965 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
3966
3967 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
3968 throughout file.
3969
3970 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
3971
3972 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
3973 throughout file.
3974
3975 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
3976
3977 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
3978 throughout file.
3979 * config/arm/neon.md: Likewise.
3980 * config/arm/vfp.md: Likewise.
3981 * config/arm/thumb2.md: Likewise.
3982 * config/arm/cortex-m4.md: Likewise.
3983
3984 2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
3985
3986 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
3987 define_insn patterns for combine.
3988
3989 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
3990
3991 * reorg.c: Always define make_return_insns.
3992
3993 2011-09-13 Jan Hubicka <jh@suse.cz>
3994
3995 PR other/49533
3996 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
3997
3998 2011-09-13 Jan Hubicka <jh@suse.cz>
3999
4000 PR other/49533
4001 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
4002
4003 2011-09-13 Paul Brook <paul@codesourcery.com>
4004
4005 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4006 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
4007 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
4008 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
4009 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
4010 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
4011 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
4012 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
4013 enabling unwind tables.
4014 (c6x_debug_unwind_info): New function.
4015 (TARGET_ARM_EABI_UNWINDER): Define.
4016 (TARGET_DEBUG_UNWIND_INFO): Define.
4017 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
4018 (TARGET_EXTRA_CFI_SECTION): Remove.
4019 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
4020 * ginclude/unwind-arm-common.h: New file.
4021
4022 2011-09-13 Georg-Johann Lay <avr@gjlay.de>
4023
4024 PR target/50358
4025 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
4026 * config/avr/avr.md: (extend_s): New code attribute.
4027 (mul_r_d): New code attribute.
4028 (*maddqihi4, *umaddqihi4): New insns.
4029 (*msubqihi4, *umsubqihi4): New insns.
4030 (*usmaddqihi4, *sumaddqihi4): New insns.
4031 (*usmsubqihi4, *susubdqihi4): New insns.
4032 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
4033 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
4034 (*umsubqihi4.uconst.ashift): New insn-and-split.
4035 (*msubqihi4.sconst.ashift): New insn-and-split.
4036 (*sumaddqihi4.uconst): New insn-and-split.
4037 (*sumsubqihi4.uconst): New insn-and-split.
4038 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
4039 PLUS:HI and MINUS:HI.
4040
4041 2011-09-13 Revital Eres <revital.eres@linaro.org>
4042
4043 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
4044 (optimize_sc): Adjust call to remove_node_from_ps.
4045 (sms_schedule): Add print info.
4046
4047 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
4048
4049 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
4050 flags specially.
4051
4052 2011-09-12 Jakub Jelinek <jakub@redhat.com>
4053
4054 PR bootstrap/50010
4055 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
4056 NOTE_INSN_CFI notes, with the exception of
4057 NOTE_INSN_SWITCH_TEXT_SECTIONS.
4058
4059 2011-09-12 Bernd Schmidt <bernds@codesourcery.com>
4060 Richard Sandiford <rdsandiford@googlemail.com>
4061
4062 * config/mips/mips.c (mips_epilogue): New structure.
4063 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
4064 restoring registers.
4065 (mips_epilogue_emit_cfa_restores): New function.
4066 (mips_epilogue_set_cfa): Likewise.
4067 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
4068 the current CFA register from the stack, redefine the CFA in terms
4069 of the stack pointer.
4070 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
4071 to the epilogue instructions.
4072
4073 2011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
4074
4075 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
4076 argument.
4077 (mips16e_build_save_restore): Update accordingly.
4078
4079 2011-09-12 Jakub Jelinek <jakub@redhat.com>
4080
4081 PR rtl-optimization/50212
4082 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
4083 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
4084
4085 PR debug/50299
4086 * calls.c (load_register_parameters): Use use_reg_mode instead
4087 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
4088 entry.
4089 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
4090 for stack CALL_INSN_FUNCTION_USAGE uses.
4091 * expr.h (use_reg_mode): New prototype.
4092 (use_reg): Changed into inline around use_reg_mode.
4093 * expr.c (use_reg): Renamed to...
4094 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
4095 mode to that mode instead of VOIDmode.
4096 * var-tracking.c (prepare_call_arguments): Don't track parameters
4097 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
4098 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
4099 EXPR_LIST mode.
4100
4101 2011-09-12 Georg-Johann Lay <avr@gjlay.de>
4102
4103 PR target/43746
4104 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
4105 (progmem_section): New Variable.
4106 (avr_asm_init_sections): Initialize it.
4107 (TARGET_ASM_SELECT_SECTION): Define to...
4108 (avr_asm_select_section): ... this new Function.
4109 (avr_replace_prefix): New Function.
4110 (avr_asm_function_rodata_section): Use it.
4111 (avr_insert_attributes): Don't add section attribute for PROGMEM.
4112 (avr_section_type_flags): Use avr_progmem_p instead of section
4113 name to detect if object is in PROGMEM.
4114 (avr_asm_named_section): Set section name prefix for objects in
4115 PROGMEM.
4116
4117 2011-09-12 Jakub Jelinek <jakub@redhat.com>
4118
4119 PR bootstrap/50352
4120 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
4121 sprintf format string.
4122
4123 2011-09-12 Richard Guenther <rguenther@suse.de>
4124
4125 PR tree-optimization/50343
4126 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
4127 that the reduction is over an SSA name before checking its definition.
4128
4129 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
4130
4131 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
4132 throughout file.
4133
4134 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
4135
4136 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
4137 throughout file.
4138 * config/mips/sb1.md: Likewise.
4139 * config/mips/predicates.md: Replace (match_test "!...")
4140 with (not (match_test "..."))
4141 * config/mips/constraints.md: Likewise.
4142
4143 2011-09-09 Andrew Stubbs <ams@codesourcery.com>
4144
4145 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
4146 * config/arm/arm-tables.opt: Regenerate.
4147 * config/arm/arm-tune.md: Regenerate.
4148 * config/arm/arm.c (arm_file_start): Output .arch directive when
4149 user passes -mcpu=generic-*.
4150 (arm_issue_rate): Add genericv7a support.
4151 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
4152 (ASM_CPU_SPEC): New define.
4153 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
4154 * config/arm/semi.h (ASM_SPEC): Likewise.
4155 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
4156 and -mtune=generic-*.
4157
4158 2011-09-09 Richard Guenther <rguenther@suse.de>
4159
4160 PR tree-optimization/50328
4161 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
4162 constant or default-def operand.
4163
4164 2011-09-09 Richard Guenther <rguenther@suse.de>
4165
4166 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
4167 last statement.
4168
4169 2011-09-09 Richard Guenther <rguenther@suse.de>
4170
4171 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
4172 instead of a statement.
4173 * gimple-fold.c (fold_stmt_inplace): Likewise.
4174 * sese.c (graphite_copy_stmts_from_block): Adjust.
4175 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
4176 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
4177 fold_stmt.
4178 (forward_propagate_addr_into_variable_array_index): Likewise.
4179 (forward_propagate_addr_expr_1): adjust.
4180 (associate_plusminus): Likewise.
4181 (ssa_forward_propagate_and_combine): Likewise.
4182 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
4183 (execute_cse_reciprocals): Likewise.
4184 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
4185
4186 2011-09-09 Nick Clifton <nickc@redhat.com>
4187
4188 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
4189 Return a positive value to indicate that the bits at the
4190 bottom of the register should be cleared.
4191
4192 2011-09-09 Richard Guenther <rguenther@suse.de>
4193
4194 * tree-ssa-operands.c (swap_tree_operands): Always adjust
4195 existing operand positions.
4196
4197 2011-09-09 Richard Guenther <rguenther@suse.de>
4198
4199 PR middle-end/50333
4200 * tree-data-ref.c (split_constant_offset): Do not try to handle
4201 ternary ops.
4202
4203 2011-09-08 Andrew Stubbs <ams@codesourcery.com>
4204
4205 PR tree-optimization/50318
4206 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
4207 typo in use of mult_rhs1 and mult_rhs2.
4208
4209 2011-09-08 Uros Bizjak <ubizjak@gmail.com>
4210
4211 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
4212 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
4213
4214 2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
4215
4216 * config/arm/arm.md (push_multi): Emit predicates.
4217 (push_fp_multi): Likewise.
4218 * config/arm/arm.c (vfp_output_fstmd): Likewise.
4219
4220 2011-09-08 Dodji Seketeli <dodji@redhat.com>
4221
4222 PR c++/33255 - Support -Wunused-local-typedefs warning
4223 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
4224 (pushdecl): Use the new record_locally_defined_typedef.
4225 (store_parm_decls): Allocate cfun->language.
4226 (finish_function): Use the new maybe_warn_unused_local_typedefs,
4227 and free cfun->language.
4228 (c_push_function_context): Allocate cfun->language here only if needed.
4229 (c_pop_function_context): Likewise, mark cfun->language
4230 for collection only when it should be done.
4231 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
4232 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
4233 maybe_record_local_typedef_use.
4234 * doc/invoke.texi: Update documentation for
4235 -Wunused-local-typedefs.
4236
4237 2011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
4238
4239 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
4240 (ix86_avoid_lea_for_add): Likewise.
4241 (ix86_avoid_lea_for_addr): Likewise.
4242 (ix86_split_lea_for_addr): Likewise.
4243
4244 * config/i386/i386.c (LEA_MAX_STALL): New.
4245 (increase_distance): Likewise.
4246 (insn_defines_reg): Likewise.
4247 (insn_uses_reg_mem): Likewise.
4248 (distance_non_agu_define_in_bb): Likewise.
4249 (distance_agu_use_in_bb): Likewise.
4250 (ix86_lea_outperforms): Likewise.
4251 (ix86_ok_to_clobber_flags): Likewise.
4252 (ix86_avoid_lea_for_add): Likewise.
4253 (ix86_avoid_lea_for_addr): Likewise.
4254 (ix86_split_lea_for_addr): Likewise.
4255 (distance_non_agu_define): Search in pred BBs added.
4256 (distance_agu_use): Search in succ BBs added.
4257 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
4258 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
4259 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
4260
4261 * config/i386/i386.md: Split added to transform non destructive
4262 add into move and add.
4263 (lea_1): transformed into insn_and_split to avoid AGU stalls.
4264 (lea<mode>_2): Likewise.
4265
4266 2011-09-08 Martin Jambor <mjambor@suse.cz>
4267
4268 PR tree-optimization/50287
4269 * ipa-split.c (split_function): Do not create SSA names for
4270 non-gimple-registers.
4271
4272 2011-09-08 Richard Guenther <rguenther@suse.de>
4273
4274 PR tree-optimization/19831
4275 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
4276 skip builtins with vdefs that do not really store something.
4277 (propagate_necessity): For calls to free that we can associate
4278 with an allocation function do not mark the freed pointer
4279 definition necessary.
4280 (eliminate_unnecessary_stmts): Remove a call to free if
4281 the associated call to an allocation function is not necessary.
4282
4283 2011-09-08 Richard Guenther <rguenther@suse.de>
4284
4285 PR tree-optimization/19831
4286 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
4287 allocation functions as necessary.
4288
4289 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
4290
4291 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
4292 cut from ...
4293 (darwin_default_min_version): Amended to provide defaults
4294 for the cross directory case.
4295 (darwin_driver_init): call darwin_default_min_version unconditionally.
4296 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
4297 * config/darwin9.h: Likewise.
4298 * config/darwin10.h: Likewise.
4299 * config/rs6000/darwin7.h: Likewise.
4300
4301 2011-09-08 Jakub Jelinek <jakub@redhat.com>
4302
4303 PR target/50310
4304 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
4305 code early if TARGET_AVX.
4306 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
4307
4308 2011-09-07 Jakub Jelinek <jakub@redhat.com>
4309
4310 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
4311 duplicates.
4312
4313 PR target/50310
4314 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
4315 "mode" attribute computation.
4316
4317 2011-09-07 Bernd Schmidt <bernds@codesourcery.com>
4318
4319 * regrename.c (struct du_head): Make nregs signed.
4320 (closed_chains): Remove.
4321 (create_new_chain): Return the new chain.
4322 (chain_from_id): New static function.
4323 (dump_def_use_chain): Change argument to be an int, indicating
4324 the first ID to print. All callers changed.
4325 (merge_overlapping_regs): Use chain_from_id. Assert that
4326 chains don't conflict with themselves.
4327 (rename_chains): Take no argument. Iterate over id_to_chain
4328 rather to find chains to rename. Clear tick before the main loop.
4329 (struct incoming_reg_info): New struct.
4330 (struct bb_rename_info): New struct.
4331 (init_rename_info, set_incoming_from_chain, merge_chains): New
4332 static functions.
4333 (regrename_analyze): New static function, broken out of
4334 regrename_optimize. Record and make use of open chain information
4335 at basic block boundaries, and merge chains where possible.
4336 (scan_rtx_reg): Make this_nregs signed. Don't update
4337 closed_chains.
4338 (build_def_use): Return a bool to indicate success. All callers
4339 changed. Don't initialize global data here.
4340 (regrename_optimize): Move most code out of here into
4341 regrename_analyze.
4342 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
4343 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
4344 static inline functions.
4345 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
4346
4347 * bb-reorder.c (insert_section_boundary_note): Don't check
4348 optimize_function_for_speed_p.
4349 (gate_handle_partition_blocks): Do it here instead.
4350 (gate_handle_reorder_blocks): Move preliminary checks here ...
4351 (rest_of_handle_reorder_blocks): ... from here.
4352
4353 2011-09-07 Martin Jambor <mjambor@suse.cz>
4354
4355 PR middle-end/50301
4356 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
4357 function index bounds.
4358 (perhaps_add_new_callers): Likewise.
4359
4360 2011-09-07 Martin Jambor <mjambor@suse.cz>
4361
4362 PR tree-optimization/49911
4363 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
4364 enumerations to the corresponding plain integer type.
4365
4366 2011-09-07 Richard Guenther <rguenther@suse.de>
4367
4368 PR tree-optimization/50319
4369 * tree-if-conv.c (set_bb_predicate): Assert we only set
4370 canonical predicates.
4371 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
4372 around canonical predicates.
4373 (predicate_bbs): Do not re-gimplify already canonical
4374 predicates. Properly unshare them though.
4375 (find_phi_replacement_condition): Simplify.
4376
4377 2011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
4378
4379 PR target/49030
4380 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
4381 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
4382 reusing the old code from get_arm_condition_code. Return ARM_NV
4383 for invalid comparison codes.
4384 (get_arm_condition_code): Redefine in terms of
4385 maybe_get_arm_condition_code.
4386 * config/arm/predicates.md (arm_comparison_operator): Use
4387 maybe_get_arm_condition_code.
4388
4389 2011-09-07 Richard Guenther <rguenther@suse.de>
4390
4391 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
4392 Canonicalize negated predicates by swapping edges.
4393 (forward_propagate_into_cond): Likewise.
4394
4395 2011-09-07 Richard Guenther <rguenther@suse.de>
4396
4397 PR tree-optimization/50213
4398 * tree-flow.h (simple_iv_increment_p): Declare.
4399 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
4400 POINTER_PLUS_EXPR.
4401 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
4402 not propagate simple IV counter increments.
4403
4404 2011-09-07 Eric Botcazou <ebotcazou@adacore.com>
4405 Iain Sandoe <iains@gcc.gnu.org>
4406
4407 * config/rs6000/rs6000.c (compute_save_world_info): Test
4408 cfun->has_nonlocal_label to determine if the out-of-line save
4409 world call may be used.
4410
4411 2011-09-07 Nick Clifton <nickc@redhat.com>
4412
4413 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
4414 label on the parallel part of the insn.
4415
4416 2011-09-07 Jakub Jelinek <jakub@redhat.com>
4417
4418 PR debug/50191
4419 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
4420 avoid_constant_pool_reference first instead of last.
4421
4422 2011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
4423
4424 * doc/configfiles.texi (Configuration Files): Update documentation
4425 about tm_p.h and remove FIXME comment.
4426
4427 2011-09-06 Uros Bizjak <ubizjak@gmail.com>
4428
4429 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
4430 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
4431
4432 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
4433
4434 * config/darwin10.h Remove duplicate LIB_SPEC.
4435
4436 2011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
4437
4438 PR middle-end/44382
4439 * target.def (reassociation_width): New hook.
4440
4441 * doc/tm.texi.in (reassociation_width): Likewise.
4442
4443 * doc/tm.texi (reassociation_width): Likewise.
4444
4445 * doc/invoke.texi (tree-reassoc-width): New param documented.
4446
4447 * hooks.h (hook_int_uint_mode_1): New default hook.
4448
4449 * hooks.c (hook_int_uint_mode_1): Likewise.
4450
4451 * config/i386/i386.h (ix86_tune_indices): Add
4452 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
4453
4454 (TARGET_REASSOC_INT_TO_PARALLEL): New.
4455 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
4456
4457 * config/i386/i386.c (initial_ix86_tune_features): Add
4458 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
4459
4460 (ix86_reassociation_width): New function.
4461
4462 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
4463
4464 * tree-ssa-reassoc.c (get_required_cycles): New function.
4465 (get_reassociation_width): Likewise.
4466 (swap_ops_for_binary_stmt): Likewise.
4467 (rewrite_expr_tree_parallel): Likewise.
4468
4469 (rewrite_expr_tree): Refactored. Part of code moved into
4470 swap_ops_for_binary_stmt.
4471
4472 (reassociate_bb): Now checks reassociation width to be used and
4473 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
4474
4475 2011-09-06 Richard Guenther <rguenther@suse.de>
4476
4477 PR tree-optimization/47025
4478 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
4479 uses nothing.
4480 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
4481 BUILT_IN_FREE.
4482 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
4483 definitely points to.
4484 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4485 BUILT_IN_VA_START doesn't let its va_list argument escape.
4486 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
4487 not make any previous stores necessary.
4488
4489 2011-09-06 Martin Jambor <mjambor@suse.cz>
4490
4491 * ipa-inline.h (struct inline_summary): Move versionable flag...
4492 * cgraph.h (struct cgraph_local_info): ...here
4493 * ipa-cp.c (determine_versionability): Use the new versionable flag.
4494 (determine_versionability): Likewise.
4495 (ipcp_versionable_function_p): Likewise.
4496 (ipcp_generate_summary): Likewise.
4497 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
4498 versionable flag.
4499 (compute_inline_parameters): Do not clear the versionable flag.
4500 (inline_read_section): Do not stream the versionable flag.
4501 (inline_write_summary): Likewise.
4502 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
4503 (input_overwrite_node): Likewise.
4504
4505 2011-09-06 Richard Guenther <rguenther@suse.de>
4506
4507 PR tree-optimization/48149
4508 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
4509 (vn_valueize): Move earlier.
4510 (valueize_expr): Use vn_valueize.
4511 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
4512 operands.
4513 (simplify_unary_expression): Simplify.
4514
4515 2011-09-06 Richard Guenther <rguenther@suse.de>
4516
4517 PR tree-optimization/48317
4518 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
4519 trailing array.
4520 (sizeof_vn_nary_op): New inline function.
4521 (vn_nary_op_lookup_pieces): Adjust.
4522 (vn_nary_op_insert_pieces): Likewise.
4523 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
4524 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
4525 any number of operands.
4526 (vn_nary_length_from_stmt): New function.
4527 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
4528 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
4529 sized temporary.
4530 (vn_nary_op_lookup): Likewise.
4531 (vn_nary_op_lookup_stmt): Likewise.
4532 (vn_nary_op_insert_into): Likewise.
4533 (vn_nary_op_insert_stmt): Likewise.
4534 (visit_use): Handle CONSTRUCTOR as nary.
4535 * tree-ssa-pre.c (phi_translate_1): Adjust.
4536 (create_expression_by_pieces): Likewise.
4537 (compute_avail): Likewise.
4538
4539 2011-09-06 Ira Rosen <ira.rosen@linaro.org>
4540
4541 * config/arm/arm.c (arm_preferred_simd_mode): Check
4542 TARGET_NEON_VECTORIZE_DOUBLE instead of
4543 TARGET_NEON_VECTORIZE_QUAD.
4544 (arm_autovectorize_vector_sizes): Likewise.
4545 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
4546 mask of mvectorize-with-neon-double. Add RejectNegative.
4547 (mvectorize-with-neon-double): New.
4548
4549 2011-09-06 Richard Guenther <rguenther@suse.de>
4550
4551 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
4552
4553 2011-09-06 Tom de Vries <tom@codesourcery.com>
4554
4555 * recog.c (asm_labels_ok): New function.
4556 (check_asm_operands): Use asm_labels_ok.
4557
4558 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
4559
4560 PR target/49606
4561 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
4562 (PMODE_INSN): New macro.
4563 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
4564 (mips_got_load, mips_expand_synci_loop): Likewise.
4565 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
4566 cprestore patterns.
4567 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
4568 copygp_mips16 patterns.
4569 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
4570 and use_cprestore patterns.
4571 (mips_override_options): Check for incompatible -mabi and -mlong
4572 combinations.
4573 * config/mips/mips.md (unspec_got<mode>): Rename to...
4574 (unspec_got_<mode>): ...this.
4575 (copygp_mips16): Use the Pmode iterator.
4576 (potential_cprestore, cprestore, use_cprestore): Likewise.
4577 (clear_cache, indirect_jump): Use PMODE_INSN.
4578 (indirect_jump<mode>): Rename to...
4579 (indirect_jump_<mode>): ...this.
4580 (tablejump): Use PMODE_INSN.
4581 (tablejump<mode>): Rename to...
4582 (tablejump_<mode>): ...this.
4583 (exception_receiver): Handle restore_gp_si and restore_gp_di.
4584 (restore_gp): Use the Pmode iterator.
4585 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
4586 PMODE_INSN.
4587
4588 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
4589
4590 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
4591 Fix the type of the BIT_AND_EXPR.
4592
4593 2011-09-05 David S. Miller <davem@davemloft.net>
4594
4595 * config.host: Add driver-sparc.o and sparc/x-sparc on
4596 native sparc*-*-linux* builds.
4597 * config/sparc/driver-sparc.c: Correct Linux strings.
4598 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
4599 * config/sparc/linux64.h: Likewise.
4600 * doc/invoke.texi: Document that Linux also supports
4601 -mcpu=native and -mtune=native on sparc.
4602
4603 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
4604 PROCESSOR_NIAGARA4): New.
4605 * config/sparc/sparc.opt: Handle new processor types.
4606 * config/sparc/sparc.md: Add to "cpu" attribute.
4607 * config/sparc/sparc.h (TARGET_CPU_niagara3,
4608 TARGET_CPU_niagara4): New, treat as niagara2.
4609 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
4610 * config/sparc/sol2.h: Likewise.
4611 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
4612 * config/sparc/sparc.c (sparc_option_override): Add
4613 niagara3 and niagara4 handling.
4614 (sparc32_initialize_trampoline): Likewise.
4615 (sparc64_initialize_trampoline): Likewise.
4616 (sparc_use_sched_lookahead): Likewise.
4617 (sparc_issue_rate): Likewise.
4618 (sparc_register_move_cost): Likewise.
4619 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
4620 and niagara4 as appropriate.
4621 * doc/invoke.texi: Document new processor types.
4622 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
4623 and --with-tune options.
4624
4625 * config/sparc/sol2-64.h: Move ...
4626 * config/sparc/default-64.h: ... to here. Update comment.
4627 * config.gcc: Update Solaris sparc to use default-64.h, also
4628 prefix this header into the list on sparc64-*-linux.
4629 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
4630 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
4631 to MASK_HARD_QUAD.
4632
4633 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
4634
4635 PR target/50289
4636 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
4637 that contain global register variable.
4638
4639 2011-09-05 Richard Guenther <rguenther@suse.de>
4640
4641 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
4642
4643 2011-09-05 Richard Guenther <rguenther@suse.de>
4644
4645 * stor-layout.c (layout_type): Use size_binop for array size
4646 calculations.
4647
4648 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
4649
4650 * config/avr/avr.h (progmem_section): Remove Declaration.
4651 * config/avr/avr.c (progmem_section): Make static and rename to
4652 progmem_swtable_section.
4653 (avr_output_addr_vec_elt): No need to switch sections.
4654 (avr_asm_init_sections): Use output_section_asm_op as section
4655 callback for progmem_swtable_section.
4656 (avr_output_progmem_section_asm_op): Remove Function.
4657 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
4658 (avr_asm_function_rodata_section): New static Function.
4659 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
4660 alignment 2**1 for jump tables.
4661
4662 2011-09-04 Jan Hubicka <jh@suse.cz>
4663
4664 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
4665 parameter is SSA name.
4666
4667 2011-09-04 Richard Guenther <rguenther@suse.de>
4668
4669 Revert
4670 2011-08-31 Richard Guenther <rguenther@suse.de>
4671
4672 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
4673 special-casing.
4674
4675 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
4676
4677 PR debug/49901
4678 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
4679
4680 2011-09-04 Jakub Jelinek <jakub@redhat.com>
4681 Ira Rosen <ira.rosen@linaro.org>
4682
4683 PR tree-optimization/50208
4684 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
4685 argument. Check that def_stmt is inside the loop.
4686 (vect_recog_widen_mult_pattern): Update calls to
4687 vect_handle_widen_mult_by_cons.
4688 (vect_operation_fits_smaller_type): Check that def_stmt is
4689 inside the loop.
4690
4691 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
4692
4693 * tree-vectorizer.c (vect_print_dump_info): Print line
4694 number when dumping to a file.
4695 (vectorize_loops): Add new messages to dump file.
4696
4697 2011-09-03 Martin Jambor <mjambor@suse.cz>
4698
4699 * ipa-prop.h (ipa_jump_func_t): New typedef.
4700 (struct ipa_edge_args): Removed field argument_count, field
4701 jump_functions turned into a vector.
4702 (ipa_set_cs_argument_count): Removed.
4703 (ipa_get_cs_argument_count): Updated to work on vectors.
4704 (ipa_get_ith_jump_func): Likewise.
4705 * ipa-prop.c (ipa_count_arguments): Removed.
4706 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
4707 jump functions. Update caller.
4708 (compute_pass_through_member_ptrs): Likewise.
4709 (compute_cst_member_ptr_arguments): Likewise.
4710 (ipa_compute_jump_functions_for_edge): Get number of arguments from
4711 the statement, allocate vector.
4712 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
4713 (duplicate_ipa_jump_func_array): Removed.
4714 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
4715 (ipa_read_node_info): Allocate vector.
4716
4717 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4718
4719 PR middle-end/50232
4720 * config/pa/pa.md (return): Define "return" insn pattern.
4721 (epilogue): Use it when no epilogue is needed.
4722 * config/pa/pa.c (pa_can_use_return_insn): New function.
4723 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
4724
4725 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
4726
4727 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
4728 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
4729 Force at least BITS_PER_UNIT alignment on the new variable.
4730
4731 2011-09-02 Gary Funck <gary@intrepid.com>
4732
4733 * opts.c (print_specific_help): Fix off-by-one compare in
4734 assertion check.
4735 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
4736 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
4737 Increase by +5 to allow for more languages.
4738 * optc-gen.awk: Generate #if that ensures that the number of
4739 languages is within the implementation-defined limit.
4740
4741 2011-09-02 Michael Matz <matz@suse.de>
4742
4743 PR middle-end/50260
4744 * ipa-split.c (split_function): Call add_referenced_var.
4745
4746 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
4747 (cond_if_else_store_replacement_1): Ditto.
4748 * tree-ssa-pre.c (get_representative_for): Ditto.
4749 (create_expression_by_pieces): Ditto.
4750 (insert_into_preds_of_block): Ditto.
4751 * tree-sra.c (create_access_replacement): Ditto.
4752 (get_replaced_param_substitute): Ditto.
4753
4754 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
4755
4756 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
4757 automata_options.
4758 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
4759 (l1w, s1w, l2w, s2w): Define in the main automaton.
4760 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
4761 units.
4762 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
4763 (c6x_unit_names): Add the new units.
4764 (c6x_unit_codes): New static array.
4765 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
4766 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
4767 UNIT_QID_SIDE_OFFSET): New macros.
4768 (RESERVATION_S2): Adjust value.
4769 (c6x_option_override): Compute c6x_unit_codes.
4770 (assign_reservations): Take the unit_mask of the last instruction
4771 into account. Detect floating point reservations by looking for
4772 the new units. Don't assign reservations if the field is already
4773 nonzero.
4774 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
4775 (init_sched_state): Initialize it.
4776 (c6x_clear_sched_context): Free it.
4777 (insn_set_clock): Clear reservation.
4778 (prev_cycle_state): New static variable.
4779 (c6x_init_sched_context): Save it.
4780 (c6x_sched_init): Allocate space for it and clear it.
4781 (c6x_sched_dfa_pre_cycle_insn): New static function.
4782 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
4783 (c6x_variable_issue): Only record units in the unit_mask that
4784 were not set at the start of the cycle.
4785 (c6x_variable_issue): Compute and store the unit_mask from the
4786 current state.
4787 (reorg_split_calls): Ensure the new information remains correct.
4788 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
4789 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
4790 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
4791 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
4792 Add special reservations.
4793 * config/c6x/c6x-sched.md: Regenerate.
4794
4795 2011-09-02 Martin Jambor <mjambor@suse.cz>
4796
4797 * ipa-prop.h (ipa_node_params): Removed fields
4798 called_with_var_arguments and node_versionable.
4799 (ipa_set_called_with_variable_arg): Removed.
4800 (ipa_is_called_with_var_arguments): Likewise.
4801 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
4802 (determine_versionability): Do not check for type attributes and va
4803 builtins. Record versionability into inline summary.
4804 (initialize_node_lattices): Do not check
4805 ipa_is_called_with_var_arguments.
4806 (propagate_constants_accross_call): Likewise, ignore arguments we do
4807 not have PARM_DECLs for, set variable flag for parameters that were
4808 not passed a value.
4809 (create_specialized_node): Dump info that we cannot change signature.
4810 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
4811 number of arguments.
4812 (ipa_make_edge_direct_to_target): Likewise.
4813 (ipa_update_after_lto_read): Likewise.
4814 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
4815 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
4816 they were remapped.
4817
4818 2011-09-02 Richard Guenther <rguenther@suse.de>
4819
4820 PR tree-optimization/27460
4821 PR middle-end/29269
4822 * doc/md.texi (vcond): Document.
4823 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
4824 optab with two modes.
4825 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
4826 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
4827 (vcond_optab): Adjust.
4828 (vcondu_optab): Likewise.
4829 (expand_vec_cond_expr_p): Adjust prototype.
4830 * optabs.c (get_vcond_icode): Adjust.
4831 (expand_vec_cond_expr_p): Likewise.
4832 (expand_vec_cond_expr): Likewise.
4833 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
4834 vector type.
4835 (vectorizable_condition): Allow differing types for comparison
4836 and result.
4837 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
4838 for the comparison.
4839 * config/i386/sse.md (vcond<mode>): Split to
4840 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
4841 vcond<V_128:mode><VI124_128:mode> and
4842 vcondu<V_128:mode><VI124_128:mode>.
4843 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
4844 (vconduv2di): Likewise.
4845 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
4846 (vcondu<mode>): Likewise.
4847 * config/ia64/vect.md (vcond<mode>): Likewise.
4848 (vcondu<mode>): Likewise.
4849 (vcondv2sf): Likewise.
4850 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
4851 * config/rs6000/paired.md (vcondv2sf): Likewise.
4852 * config/rs6000/vector.md (vcond<mode>): Likewise.
4853 (vcondu<mode>): Likewise.
4854 * config/spu/spu.md (vcond<mode>): Likewise.
4855 (vcondu<mode>): Likewise.
4856
4857 2011-09-02 Richard Guenther <rguenther@suse.de>
4858
4859 * pretty-print.h (pp_unsigned_wide_integer): New.
4860 * tree-pretty-print.c (dump_generic_node): Print unsigned
4861 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
4862
4863 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
4864
4865 PR target/49987
4866 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
4867 valid CONST_VECTOR operands.
4868 (rs6000_expand_vector_init): Likewise.
4869
4870 2011-09-02 Martin Jambor <mjambor@suse.cz>
4871
4872 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
4873 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
4874 BINFO_VTABLE. Parameter delta removed, all callers updated.
4875 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
4876 BINFO_VTABLE.
4877 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
4878 all calls.
4879 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
4880 handling of thunk_delta.
4881 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
4882 (devirtualization_time_bonus): Do not handle thunk deltas.
4883 (ipcp_discover_new_direct_edges): Likewise.
4884 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4885 (try_make_edge_direct_simple_call): Likewise.
4886 (try_make_edge_direct_virtual_call): Likewise.
4887 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
4888 parameter set as unused.
4889 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
4890 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
4891 parameter set as unused.
4892 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
4893 (input_edge_opt_summary): Likewise.
4894 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
4895 BINFO_VIRTUALS at all.
4896 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
4897
4898 2011-09-02 Richard Guenther <rguenther@suse.de>
4899
4900 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
4901 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
4902
4903 2011-08-31 Richard Guenther <rguenther@suse.de>
4904
4905 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
4906 handling here, from ...
4907 (expand_expr_real_1): ... here.
4908 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
4909 and VEC_COND_EXPR.
4910 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
4911 a GIMPLE_TERNARY_RHS.
4912 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
4913 and VEC_COND_EXPR here ...
4914 (verify_gimple_assign_single): ... not here.
4915 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
4916 * tree-object-size.c (cond_expr_object_size): Adjust.
4917 (collect_object_sizes_for): Likewise.
4918 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
4919 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
4920 (ssa_forward_propagate_and_combine): Adjust.
4921 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
4922 as ternary.
4923 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
4924 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
4925 * tree-vect-stmt.c (vectorizable_condition): Likewise.
4926 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
4927 (extract_range_from_assignment): Likewise.
4928
4929 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
4930
4931 * config/i386/i386.md: Use (match_test ...) for attribute tests.
4932 * config/i386/mmx.md: Likewise.
4933 * config/i386/sse.md: Likewise.
4934 * config/i386/predicates.md (call_insn_operand): Use
4935 (not (match_test "...")) instead of (match_test "!...")
4936 * config/i386/constraints.md (w): Likewise.
4937
4938 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
4939
4940 * doc/md.texi: Describe the use of match_tests in attribute tests.
4941 * rtl.def (MATCH_TEST): Update commentary.
4942 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
4943 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
4944
4945 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
4946
4947 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
4948 (attr_string): Use copy_md_ptr_loc.
4949
4950 2011-08-31 Martin Jambor <mjambor@suse.cz>
4951
4952 PR middle-end/49886
4953 * ipa-inline-analysis.c (compute_inline_parameters): Set
4954 can_change_signature of noes with typde attributes.
4955 * ipa-split.c (split_function): Do not skip any arguments if
4956 can_change_signature is set.
4957
4958 2011-08-31 Martin Jambor <mjambor@suse.cz>
4959
4960 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
4961 check removed.
4962
4963 2011-08-31 Richard Guenther <rguenther@suse.de>
4964
4965 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
4966 special-casing.
4967
4968 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
4969
4970 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
4971
4972 2011-08-31 Tom de Vries <tom@codesourcery.com>
4973
4974 PR middle-end/43513
4975 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
4976 * tree-ssa-ccp.c (params.h): Include.
4977 (fold_builtin_alloca_for_var): New function.
4978 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
4979
4980 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
4981
4982 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
4983 Handle FMA option.
4984
4985 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
4986
4987 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
4988 b3 and b4 unsigned.
4989
4990 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
4991
4992 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
4993 when code is SET.
4994
4995 2011-08-30 Richard Guenther <rguenther@suse.de>
4996
4997 PR middle-end/48571
4998 * gimple.h (maybe_fold_offset_to_address): Remove.
4999 (maybe_fold_offset_to_reference): Likewise.
5000 (maybe_fold_stmt_addition): Likewise.
5001 (may_propagate_address_into_dereference): Likewise.
5002 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
5003 array references.
5004 * gimple-fold.c (canonicalize_constructor_val): Likewise.
5005 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
5006 addresses instead.
5007 (may_propagate_address_into_dereference): Remove.
5008 (maybe_fold_offset_to_array_ref): Likewise.
5009 (maybe_fold_offset_to_reference): Likewise.
5010 (maybe_fold_offset_to_address): Likewise.
5011 (maybe_fold_stmt_addition): Likewise.
5012 (fold_gimple_assign): Do not reconstruct array references but
5013 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
5014 MEM_REF addresses.
5015 (gimple_fold_stmt_to_constant_1): Likewise.
5016 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
5017 * gimplify.c (gimplify_conversion): Likewise.
5018 (gimplify_expr): Likewise.
5019
5020 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
5021
5022 * config/i386/fmaintrin.h: New.
5023 * config.gcc: Add fmaintrin.h.
5024 * config/i386/i386.c
5025 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
5026 <IX86_BUILTIN_VFMADDSD3>: Likewise.
5027 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
5028 (*fmai_fmadd_<mode>): Likewise.
5029 (*fmai_fmsub_<mode>): Likewise.
5030 (*fmai_fnmadd_<mode>): Likewise.
5031 (*fmai_fnmsub_<mode>): Likewise.
5032 * config/i386/immintrin.h: Add fmaintrin.h.
5033
5034 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
5035
5036 * genautomata.c (NO_COMB_OPTION): New macro.
5037 (no_comb_flag): New static variable.
5038 (gen_automata_option): Handle NO_COMB_OPTION.
5039 (comb_vect_p): False if no_comb_flag.
5040 (add_vect): Move computation of min/max values. Return early if
5041 no_comb_flag.
5042 * doc/md.texi (automata_option): Document no-comb-vect.
5043
5044 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
5045 "__x86.get_pc_thunk".
5046
5047 * bb-reorder.c (insert_section_boundary_note): Only do it if
5048 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
5049
5050 2011-08-30 Christian Bruel <christian.bruel@st.com>
5051
5052 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
5053 flag_profile_use.
5054
5055 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
5056
5057 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
5058 to off. Document switch.
5059 * doc/invoke.texi (-msave-toc-indirect): Ditto.
5060
5061 2011-08-29 Jakub Jelinek <jakub@redhat.com>
5062
5063 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
5064 conditionals and comments inside macro arguments.
5065
5066 2011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
5067 Richard Guenther <rguenther@suse.de>
5068
5069 * tree.h (constant_boolean_node): Adjust prototype.
5070 * fold-const.c (fold_convert_loc): Move aggregate conversion
5071 leeway down.
5072 (constant_boolean_node): Make value parameter boolean, add
5073 vector type handling.
5074 (fold_unary_loc): Use constant_boolean_node.
5075 (fold_binary_loc): Preserve types properly when folding
5076 COMPLEX_EXPR <__real x, __imag x>.
5077 * gimplify.c (gimplify_expr): Handle vector comparison.
5078 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
5079 comparison.
5080 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
5081 comparisons.
5082
5083 2011-08-29 Jakub Jelinek <jakub@redhat.com>
5084
5085 PR middle-end/48722
5086 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
5087 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
5088 (verify_rtl_sharing): Likewise and verify_rtx_sharing
5089 in there too.
5090 (unshare_all_rtl_in_chain): For CALL_INSNs
5091 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
5092
5093 2011-08-29 Richard Guenther <rguenther@suse.de>
5094
5095 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
5096 on the built ADDR_EXPR.
5097
5098 2011-08-29 Jakub Jelinek <jakub@redhat.com>
5099
5100 PR debug/50215
5101 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
5102 before adding ENTRY_VALUE to val->locs.
5103
5104 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
5105
5106 PR bootstrap/50218
5107 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
5108 comp.
5109
5110 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
5111
5112 * doc/rtl.texi (simple_return): Document.
5113 (parallel, PATTERN): Here too.
5114 * doc/md.texi (return): Mention it's allowed to expand to simple_return
5115 in some cases.
5116 (simple_return): Document standard pattern.
5117 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
5118 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
5119 * reorg.c (function_return_label, function_simple_return_label):
5120 New static variables, replacing...
5121 (end_of_function_label): ... this.
5122 (simplejump_or_return_p): New static function.
5123 (optimize_skip, steal_delay_list_from_fallthrough,
5124 fill_slots_from_thread): Use it.
5125 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
5126 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
5127 (find_end_label): Take a new arg which is one of the two return
5128 rtxs. Depending on which, set either function_return_label or
5129 function_simple_return_label. All callers changed.
5130 (make_return_insns): Make both kinds.
5131 (dbr_schedule): Adjust for two kinds of end labels.
5132 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
5133 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
5134 (gen_expand, gen_split): Use ANY_RETURN_P.
5135 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
5136 * rtl.def (SIMPLE_RETURN): New code.
5137 * ifcvt.c (find_if_case_1): Be more careful about
5138 redirecting jumps to the EXIT_BLOCK.
5139 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
5140 returnjump_p_1): Handle SIMPLE_RETURNs.
5141 * print-rtl.c (print_rtx): Likewise.
5142 * rtl.c (copy_rtx): Likewise.
5143 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
5144 * combine.c (simplify_set): Likewise.
5145 * resource.c (find_dead_or_set_registers, mark_set_resources):
5146 Likewise.
5147 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
5148 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
5149 (init_emit_regs): Initialize simple_return_rtx.
5150 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
5151 force_nonfallthru_and_redirect.
5152 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
5153 (GR_SIMPLE_RETURN): New enum value.
5154 (simple_return_rtx): New macro.
5155 * basic-block.h (force_nonfallthru_and_redirect): Adjust
5156 declaration.
5157 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
5158 argument. All callers changed. Be careful about what kinds of
5159 returnjumps to generate.
5160 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
5161 ix86_pad_short_function): Likewise.
5162 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
5163 of return.
5164 * config/mips/mips.md (any_return): New code_iterator.
5165 (optab): Add cases for return and simple_return.
5166 (return): Expand to a simple_return.
5167 (simple_return): New pattern.
5168 (*<optab>, *<optab>_internal for any_return): New patterns.
5169 (return_internal): Remove.
5170 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
5171 a simple_return_internal.
5172
5173 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
5174
5175 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
5176 (vec_extract_lo_<mode>): Prevent both operands in memory.
5177 (vec_extract_lo_v16hi): Ditto.
5178 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
5179
5180 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
5181
5182 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
5183 (*sse2_mulv4si3): Ditto.
5184 (mulv2di3): Ditto.
5185 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
5186 notes to REG_EQUAL.
5187
5188 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
5189
5190 PR target/50202
5191 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
5192 when all outputs are unused.
5193 (sse4_2_pcmpistr): Ditto.
5194
5195 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
5196
5197 * config/i386/i386.md (round<mode>2): New expander.
5198 * config/i386/i386.c (enum ix86_builtins): Add
5199 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
5200 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
5201 descriptions.
5202 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
5203 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
5204
5205 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
5206
5207 PR middle-end/50083
5208 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
5209 only when TARGET_C99_FUNCTIONS.
5210 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
5211 <BUILT_IN_RINT{,F,L}>: Ditto.
5212
5213 2011-08-26 Michael Matz <matz@suse.de>
5214 Jakub Jelinek <jakub@redhat.com>
5215
5216 PR lto/50165
5217 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
5218 don't call strlen twice, use memcpy.
5219
5220 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
5221
5222 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
5223 * config/i386/bmiintrin.h: Likewise.
5224 * config/i386/lzcntintrin.h: Likewise.
5225
5226 * config/i386/immintrin.h: Include <lzcntintrin.h>,
5227 <bmiintrin.h> and <bmi2intrin.h>.
5228
5229 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5230
5231 PR target/50166
5232 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
5233 * configure: Regenerate.
5234
5235 2011-08-26 Jakub Jelinek <jakub@redhat.com>
5236
5237 PR c/50179
5238 * c-typeck.c (c_process_expr_stmt): Skip over nops and
5239 call mark_exp_read even if exprv is ADDR_EXPR.
5240
5241 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
5242
5243 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
5244 to df_set_dead_notes_for_mw.
5245
5246 2011-08-26 Richard Guenther <rguenther@suse.de>
5247
5248 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
5249
5250 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
5251 Tom de Vries <tom@codesourcery.com>
5252
5253 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
5254 (struct ivopts_data): Add loop_single_exit_p field.
5255 (niter_for_exit): Change parameter desc_p into return value. Return
5256 desc if desc->may_be_zero. Free desc if unused.
5257 (niter_for_single_dom_exit): Change return type.
5258 (find_induction_variables): Handle changed return type of
5259 niter_for_single_dom_exit. Dump may_be_zero.
5260 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
5261 (set_use_iv_cost): Add and handle comp parameter.
5262 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
5263 comp argument to set_use_iv_cost.
5264 (strip_wrap_conserving_type_conversions, expr_equal_p)
5265 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
5266 (may_eliminate_iv): Add comp parameter. Handle new return type of
5267 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
5268 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
5269 and may_eliminate_iv.
5270 (rewrite_use_compare): Move call to iv_elimination_compare to ...
5271 (may_eliminate_iv): Here.
5272 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
5273
5274 2011-08-26 Tom de Vries <tom@codesourcery.com>
5275
5276 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
5277 accessing TREE_TYPE.
5278
5279 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
5280
5281 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
5282 (*ior_scc_scc_cmp): Likewise
5283 (*and_scc_scc): Likewise.
5284 (*and_scc_scc_cmp): Likewise.
5285 (*and_scc_scc_nodom): Likewise.
5286 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
5287
5288 2011-08-26 Jakub Jelinek <jakub@redhat.com>
5289
5290 * rtlanal.c (nonzero_bits1): Handle CLRSB.
5291
5292 2011-08-26 Richard Guenther <rguenther@suse.de>
5293
5294 * expr.c (string_constant): Handle &MEM_REF.
5295
5296 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
5297
5298 * config/arm/arm.c (struct four_ints): New type.
5299 (count_insns_for_constant): Delete function.
5300 (find_best_start): Delete function.
5301 (optimal_immediate_sequence): New function.
5302 (optimal_immediate_sequence_1): New function.
5303 (arm_gen_constant): Move constant splitting code to
5304 optimal_immediate_sequence.
5305 Rewrite constant negation/invertion code.
5306
5307 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
5308
5309 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
5310 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
5311 Remove prototype. Remove static function type.
5312 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
5313 Add arch attribute.
5314 * config/arm/constraints.md (Pj, PJ): New constraints.
5315
5316 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5317
5318 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
5319 ("cortex_a9_multiply_long"): New and use above. Handle all
5320 long multiply cases.
5321 ("cortex_a9_multiply"): Handle smmul and smmulr.
5322 ("cortex_a9_mac"): Handle smmla.
5323
5324 2011-08-25 Richard Henderson <rth@redhat.com>
5325
5326 PR 50132
5327 PR 49864
5328 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
5329 non-constant stack adjutment.
5330 * expr.c (find_args_size_adjust): Break out from ...
5331 (fixup_args_size_notes): ... here.
5332 * rtl.h (find_args_size_adjust): Declare.
5333
5334 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
5335
5336 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
5337 sse4 and sse4_noavx.
5338 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
5339 (*pushdf_rex64): Change Y2 register constraint to x.
5340 (*movdf_internal_rex64): Ditto.
5341 (*zero_extendsidi2_rex64): Ditto.
5342 (*movdi_internal): Change Y2 register constraint to x
5343 and update "isa" attribute.
5344 (*pushdf): Ditto.
5345 (*movdf internal): Ditto.
5346 (zero_extendsidi2_1): Ditto.
5347 (*truncdfdf_mixed): Ditto.
5348 (*truncxfdf2_mixed): Ditto.
5349 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
5350 register constraint to x.
5351 (*movv2sf_internal_rex64): Ditto.
5352 (*mov<mode>_internal): Change Y2 register constraint to x
5353 and add "isa" attribute.
5354 (*movv2sf_internal): Ditto.
5355 (*vec_extractv2si_1): Ditto.
5356 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
5357 constraints to x and update "isa" attribute.
5358 (*vec_interleave_highv2df): Change Y3 registerconstraint
5359 to x and update "isa" attribute.
5360 (*vec_interleave_lowv2df): Ditto.
5361 (*vec_concatv2df): Change Y2 register constraint to x and
5362 update "isa" attribute.
5363 (sse2_loadld): Ditto.
5364 (*vec_extractv2di_1): Ditto.
5365 (*vec_dupv4si): Ditto.
5366 (*vec_dupv2di): Ditto.
5367 (*vec_concatv4si): Ditto.
5368 (vec_concatv2di): Ditto.
5369 * config/i386/constraints.md (Y2): Remove.
5370 (Y3): Ditto.
5371 (Y4): Ditto.
5372
5373 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
5374
5375 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
5376 dump_def_use_chain): Don't declare.
5377 (mark_conflict, create_new_chain): Move before users.
5378 (regrename_optimize): Move to near end of file.
5379
5380 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
5381
5382 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
5383 (secondary_input_reload_class): Remove Prototype.
5384 * config/avr/avr.c (byte_immediate_operand): Remove Function.
5385 * config/avr/avr.md (setmemhi): Use u8_operand.
5386 (strlenhi): Use const0_rtx for comparison.
5387 * config/avr/avr.h (avr_reg_order): Remove Declaration.
5388
5389 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
5390
5391 * config/avr/avr.c (reg_class_tab): Make local to
5392 avr_regno_reg_class. Return smallest register class available.
5393
5394 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
5395
5396 * config/avr/avr.c (STR_PREFIX_P): New Define.
5397 (avr_asm_declare_function_name): Use it.
5398 (avr_asm_named_section): Use it.
5399 (avr_section_type_flags): Use it.
5400
5401 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
5402
5403 * doc/md.texi (automata_option): Document collapse-ndfa.
5404 * genautomata.c (COLLAPSE_OPTION): New macro.
5405 (collapse_flag): New static variable.
5406 (struct description): New member normal_decls_num.
5407 (struct automaton): New members advance_ainsn and collapse_ainsn.
5408 (gen_automata_option): Check for COLLAPSE_OPTION.
5409 (collapse_ndfa_insn_decl): New static variable.
5410 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
5411 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
5412 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
5413 necessary. Use normal_decls_num rather than decls_num, remove
5414 test for special decls.
5415 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
5416 (make_automaton); Likewise. Use the new advance_cycle_insn member
5417 of struct automaton.
5418 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
5419 is set.
5420 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
5421 transition. Create the necessary transitions for it.
5422 (create_ainsns): Return void. Take an automaton_t argument, and
5423 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
5424 callers changed.
5425 (COLLAPSE_NDFA_VALUE_NAME): New macro.
5426 (output_tables): Output code to define it.
5427 (output_internal_insn_code_evaluation): Output code to accept
5428 const0_rtx as collapse-ndfa transition.
5429 (output_default_latencies, output_print_reservation_func,
5430 output_print_description): Reorganize loops to use normal_decls_num
5431 as loop bound; remove special case for advance_cycle_insn_decl.
5432 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
5433 (check_automata_insn_issues): Check for collapse_ainsn.
5434 (expand_automate): Allocate sufficient space. Initialize
5435 normal_decls_num.
5436
5437 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
5438
5439 * config/avr/avr.md: Fix indentation from r177991.
5440
5441 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
5442
5443 * regrename.c (struct du_head): Remove member terminated.
5444 (create_new_chain): Don't initialize it.
5445 (scan_rtx_reg): Don't set or test it, test the open_chains_set
5446 bitmap instead.
5447 (tick, this_tick): New global variables, moved out of
5448 regrename_optimize.
5449 (current_id, open_chains, closed_chains, open_chains_set,
5450 live_in_chains, live_hard_regs): Reorder declarations.
5451 (dump_def_use_chain): Move function earlier in the file.
5452 (rename_chains): New static function, broken out of
5453 regrename_optimize.
5454 (regrename_optimize): Use it. Remove #if 0'ed code.
5455
5456 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5457
5458 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
5459
5460 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
5461
5462 PR target/50172
5463 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
5464
5465 2011-08-24 Richard Guenther <rguenther@suse.de>
5466
5467 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
5468 ref in the basic-block case. Move stripping array-refs
5469 to the place we create an access-function for it. Remove
5470 bogus stripping down a MEM_REF to its base.
5471
5472 2011-08-24 Richard Guenther <rguenther@suse.de>
5473
5474 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
5475 with -fno-strict-overflow.
5476
5477 2011-08-24 Richard Guenther <rguenther@suse.de>
5478
5479 * tree-vectorizer.c (vect_print_dump_info): Avoid the
5480 file and location clutter when dumping to dump files.
5481
5482 2011-08-24 Simon Baldwin <simonb@google.com>
5483
5484 * gengtype-state.c (write_state): Remove timestamped header line.
5485
5486 2011-08-24 Joseph Myers <joseph@codesourcery.com>
5487
5488 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
5489 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
5490 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
5491 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
5492 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
5493 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
5494 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
5495 rules.
5496 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
5497
5498 2011-08-24 Joseph Myers <joseph@codesourcery.com>
5499
5500 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
5501
5502 2011-08-24 Richard Guenther <rguenther@suse.de>
5503
5504 PR tree-optimization/50067
5505 * tree-data-ref.c (dr_analyze_indices): Do not add an access
5506 function for a MEM_REF base that has no evolution in the loop
5507 nest or that is not analyzable.
5508
5509 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
5510
5511 * ira.c (ira_init_register_move_cost): Check small subclasses
5512 through ira_reg_class_max_nregs and ira_available_class_regs.
5513
5514 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
5515
5516 * config/i386/constraints.md (Yp): New register constraint.
5517 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
5518 Yp register constraint.
5519 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
5520 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
5521 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
5522
5523 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
5524
5525 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
5526
5527 2011-08-23 Mark Heffernan <meheff@google.com>
5528
5529 PR middle-end/38509
5530 * common.opt (Wfree-nonheap-object): New option.
5531 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
5532 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
5533 to warning.
5534 (expand_builtin): Make warning conditional.
5535
5536 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
5537
5538 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
5539 (length_immediate): Handle imulx, ishiftx and rotatex.
5540 (imm_disp): Ditto.
5541 (isa): Add bmi2.
5542 (enabled): Handle bmi2.
5543 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
5544 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
5545 (*bmi2_umulditi3_1): New insn pattern.
5546 (*bmi2_umulsidi3_1): Ditto.
5547 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
5548 (*bmi2_ashl<mode>3_1): New insn pattern.
5549 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
5550 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
5551 (*bmi2_ashlsi3_1_zext): New insn pattern.
5552 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
5553 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
5554 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
5555 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
5556 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
5557 flags dependency.
5558 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
5559 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
5560 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
5561 flags dependency.
5562 (*bmi2_rorx<mode>3_1): New insn pattern.
5563 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
5564 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
5565 (*rotatert<mode>3_1 splitter): Ditto.
5566 (*bmi2_rorxsi3_1_zext): New insn pattern.
5567 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
5568 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
5569 (*rotatertsi3_1_zext splitter): Ditto.
5570
5571 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
5572
5573 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
5574 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
5575 (ix86_handle_option): Handle OPT_mbmi2 case.
5576 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
5577 (x86_64-*-*): Likewise.
5578 * config/i386/bmi2intrin.h: New file.
5579 * config/i386/cpuid.h (bit_BMI2): New.
5580 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5581 BMI2 feature.
5582 * config/i386/i386-c.c (ix86_target_macros_internal):
5583 Conditionally define __BMI2__.
5584 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
5585 Handle BMI2 option.
5586 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
5587 (print_reg): New code.
5588 (ix86_print_operand): Likewise.
5589 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
5590 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
5591 IX86_BUILTIN_PEXT64.
5592 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
5593 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
5594 IX86_BUILTIN_PEXT64.
5595 * config/i386/i386.h (TARGET_BMI2): New.
5596 * config/i386/i386.md (UNSPEC_PDEP): New.
5597 (UNSPEC_PEXT): Likewise.
5598 (*bmi2_bzhi_<mode>3): Likewise.
5599 (*bmi2_pdep_<mode>3): Likewise.
5600 (*bmi2_pext_<mode>3): Likewise.
5601 * config/i386/i386.opt (mbmi2): New.
5602 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
5603 is defined.
5604 * doc/extend.texi: Document BMI2 built-in functions.
5605 * doc/invoke.texi: Document -mbmi2.
5606
5607 2011-08-23 Jakub Jelinek <jakub@redhat.com>
5608
5609 PR middle-end/50161
5610 * simplify-rtx.c (simplify_const_unary_operation): If
5611 op is CONST_INT, don't look at op_mode, but use instead mode.
5612 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
5613 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
5614 operation and TRUNCATE/ZERO_EXTEND if needed.
5615 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
5616 Document that operand mode must be same as operation mode,
5617 or VOIDmode.
5618 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
5619 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
5620 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
5621 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
5622 use the mode of operand for the operation and add truncate
5623 or zero_extend around if needed.
5624 * config/c6x/c6x.md (ctzdi2): Likewise.
5625 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
5626
5627 2011-08-12 Michael Matz <matz@suse.de>
5628
5629 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
5630 (gimple_expand_cfg): Merge alignment info for coalesced pointer
5631 SSA names.
5632
5633 2011-08-23 Richard Guenther <rguenther@suse.de>
5634
5635 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
5636 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
5637 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
5638 from ...
5639 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
5640 (mem_refs_may_alias_p): Adjust.
5641 * tree-data-ref.h (dr_may_alias_p): Adjust.
5642 * tree-data-ref.c: Include tree-affine.h.
5643 (dr_analyze_indices): Do nothing for the non-loop case.
5644 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
5645 more cases in the non-loop case.
5646 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
5647 calls to dr_may_alias_p.
5648 (write_alias_graph_to_ascii_ecc): Likewise.
5649 (write_alias_graph_to_ascii_dot): Likewise.
5650 (build_alias_set_optimal_p): Likewise.
5651
5652 2011-08-23 Richard Guenther <rguenther@suse.de>
5653
5654 PR tree-optimization/50162
5655 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
5656
5657 2011-08-23 Richard Guenther <rguenther@suse.de>
5658
5659 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
5660 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
5661 (create_data_ref): Also dump access functions for the created data-ref.
5662
5663 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
5664 Kirill Yukhin <kirill.yukhin@intel.com>
5665
5666 PR target/50155
5667 * config/i386/sse.md (VI_AVX2): New.
5668 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
5669 (*<plusminus_insn><mode>3): Ditto.
5670 (<sse2_avx2>_andnot<mode>3): Ditto.
5671 (*andnot<mode>3): Fix order of cond operands.
5672 Add asserts for correct TARGET_xxx.
5673 (*<any_logic:code><mode>3): Ditto.
5674
5675 2011-08-22 Anatoly Sokolov <aesok@post.ru>
5676
5677 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
5678 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
5679 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
5680 regclass argument type to reg_class_t. Change 'max' and 'v' vars
5681 and return types to unsigned char. Use reg_class_contents instead
5682 of class_contents.
5683 (TARGET_CLASS_MAX_NREGS): Define.
5684
5685 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
5686
5687 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
5688 to make computed_jump_p return true.
5689
5690 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5691
5692 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
5693 (PICFLAG_FOR_TARGET): Substitute.
5694 * aclocal.m4: Regenerate.
5695 * configure: Regenerate.
5696
5697 2011-08-22 Dodji Seketeli <dodji@redhat.com>
5698
5699 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
5700 after reading in the pch.
5701
5702 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
5703
5704 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
5705 * configure: Regenerated.
5706
5707 2011-08-22 Jakub Jelinek <jakub@redhat.com>
5708
5709 PR tree-optimization/50133
5710 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
5711 from stmt instead of some statement around gsi.
5712
5713 PR middle-end/50141
5714 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
5715 innerdecl is a VAR_DECL.
5716
5717 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
5718
5719 * config/i386/avx2intrin.h: New file.
5720 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
5721 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
5722 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
5723 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
5724 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
5725 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
5726 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
5727 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
5728 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
5729 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
5730 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
5731 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
5732 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
5733 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
5734 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
5735 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
5736 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
5737 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
5738 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
5739 VOID_FTYPE_PV8SI_V8SI_V8SI,
5740 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
5741 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
5742 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
5743 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
5744 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
5745 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
5746 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
5747 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
5748 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
5749 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
5750 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
5751 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
5752 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
5753 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
5754 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
5755 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
5756 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
5757 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
5758 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
5759 V4DI_FTYPE_V4DI_INT_CONVERT,
5760 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
5761 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
5762 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
5763 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
5764 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
5765 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
5766 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
5767 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
5768 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
5769 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
5770 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
5771 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
5772 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
5773 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
5774 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
5775 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
5776 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
5777 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
5778 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
5779 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
5780 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
5781 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
5782 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
5783 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
5784 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
5785 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
5786 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
5787 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
5788 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
5789 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
5790 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
5791 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
5792 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
5793 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
5794 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
5795 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
5796 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
5797 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
5798 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
5799 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
5800 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
5801 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
5802 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
5803 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
5804 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
5805 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
5806 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
5807 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
5808 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
5809 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
5810 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
5811 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
5812 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
5813 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
5814 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
5815 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
5816 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
5817 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
5818 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
5819 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
5820 IX86_BUILTIN_VBROADCASTSS_PS256,
5821 IX86_BUILTIN_VBROADCASTSD_PD256,
5822 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
5823 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
5824 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
5825 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
5826 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
5827 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
5828 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
5829 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
5830 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
5831 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
5832 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
5833 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
5834 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
5835 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
5836 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
5837 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
5838 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
5839 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
5840 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
5841 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
5842 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
5843 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
5844 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
5845 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
5846 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
5847 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
5848 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
5849 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
5850 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
5851 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
5852 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
5853 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
5854 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
5855 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
5856 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
5857 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
5858 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
5859 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
5860 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
5861 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
5862 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
5863 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
5864 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
5865 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
5866 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
5867 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
5868 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
5869 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
5870 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
5871 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
5872 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
5873 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
5874 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
5875 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
5876 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
5877 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
5878 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
5879 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
5880 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
5881 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
5882 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
5883 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
5884 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
5885 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
5886 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
5887 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
5888 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
5889 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
5890 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
5891 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
5892 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
5893 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
5894 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
5895 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
5896 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
5897 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
5898 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
5899 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
5900 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
5901 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
5902 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
5903 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
5904 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
5905 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
5906 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
5907 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
5908 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
5909 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
5910 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
5911 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
5912 IX86_BUILTIN_VBROADCASTSD_PD256,
5913 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
5914 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
5915 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
5916 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
5917 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
5918 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
5919 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
5920 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
5921 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
5922 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
5923 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
5924 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
5925 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
5926 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
5927 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
5928 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
5929 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
5930 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
5931 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
5932 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
5933 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
5934 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
5935 IX86_BUILTIN_GATHERDIV8SI.
5936 (ix86_preferred_simd_mode): Support AVX2 modes.
5937 (ix86_expand_args_builtin): Support AVX2 builtins.
5938 (ix86_expand_special_args_builtin): Likewise.
5939 (ix86_expand_builtin): Likewise.
5940 * config/i386/i386.md (UNSPEC_VPERMSI): New.
5941 (UNSPEC_VPERMDF): Likewise.
5942 (UNSPEC_VPERMSF): Likewise.
5943 (UNSPEC_VPERMDI): Likewise.
5944 (UNSPEC_VPERMTI): Likewise.
5945 (UNSPEC_GATHER): Likewise.
5946 (ssemodesuffix): Extend.
5947 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
5948 is defined.
5949 * config/i386/predicates.md (const1248_operand): New.
5950 * config/i386/sse.md (VI1_AVX2): New mode iterator.
5951 (VI2_AVX2): Likewise.
5952 (VI4_AVX2): Likewise.
5953 (VI8_AVX2): Likewise.
5954 (VIMAX_AVX2): Likewise.
5955 (SSESCALARMODE): Likewise.
5956 (VI12_AVX2): Likewise.
5957 (VI24_AVX2): Likewise.
5958 (VI124_AVX2): Likewise.
5959 (VI248_AVX2): Likewise.
5960 (VI48_AVX2): Likewise.
5961 (VI4SD_AVX2): Likewise.
5962 (V48_AVX2): Likewise.
5963 (AVX256MODE2P): Likewise.
5964 (AVXMODE48P_DI): Likewise.
5965 (sse2_avx2): New mode attribute.
5966 (ssse3_avx2): Likewise.
5967 (sse4_1_avx2): Likewise.
5968 (avx_avx2): Likewise.
5969 (ssebytemode): Likewise.
5970 (AVXTOSSEMODE): Likewise.
5971 (AVXMODE48P_DI): Likewise.
5972 (gthrfirstp): Likewise.
5973 (gthrlastp): Likewise.
5974 (lshift): New code_iterator
5975 (lshift): New code attribute.
5976 (lshift): Likewise.
5977 (ssescalarmodesuffix): Update.
5978 (sseunpackmode): Likewise.
5979 (ssepackmode): Likewise.
5980 (avx2_vec_dupv4sf): New insn pattern.
5981 (avx2_vec_dupv8sf): Likewise.
5982 (avx2_interleave_highv4di): Likewise.
5983 (avx2_interleave_lowv4di): Likewise.
5984 (avx2_umulv4siv4di3): Likewise
5985 (*avx2_umulv4siv4di3): Likewise
5986 (avx2_pmaddwd): Likewise.
5987 (*avx2_pmaddwd): Likewise.
5988 (avx2_lshrqv4di3): Likewise.
5989 (avx2_lshlqv4di3): Likewise.
5990 (avx2_lshl<mode>3): Likewise.
5991 (avx2_<umaxmin:code><mode>3): Likewise.
5992 (*avx2_<umaxmin:code><mode>3): Likewise.
5993 (avx2_<smaxmin:code><mode>3): Likewise.
5994 (*avx2_<smaxmin:code><mode>3): Likewise.
5995 (avx2_eq<mode>3): Likewise.
5996 (*avx2_eq<mode>3): Likewise.
5997 (avx2_gt<mode>3): Likewise.
5998 (avx2_interleave_highv32qi): New.
5999 (avx2_interleave_lowv32qi): Likewise.
6000 (avx2_interleave_highv16hi): Likewise.
6001 (avx2_interleave_lowv16hi): Likewise.
6002 (avx2_interleave_highv8si): Likewise.
6003 (avx2_interleave_lowv8si): Likewise.
6004 (avx2_pshufd): Likewise.
6005 (avx2_pshufd_1): Likewise.
6006 (avx2_pshuflwv3): Likewise.
6007 (avx2_pshuflw_1): Likewise.
6008 (avx2_pshufhwv3): Likewise.
6009 (avx2_pshufhw_1): Likewise.
6010 (avx2_uavgv32qi3): Likewise.
6011 (*avx2_uavgv32qi3): Likewise.
6012 (avx2_uavgv16hi3): Likewise.
6013 (*avx2_uavgv16hi3): Likewise.
6014 (avx2_pmovmskb): Likewise.
6015 (avx2_phaddwv16hi3): Likewise.
6016 (avx2_phadddv8si3): Likewise.
6017 (avx2_phaddswv16hi3): Likewise.
6018 (avx2_phsubwv16hi3): Likewise.
6019 (avx2_phsubdv8si3): Likewise.
6020 (avx2_phsubswv16hi3): Likewise.
6021 (avx2_pmaddubsw256): Likewise.
6022 (avx2_umulhrswv16hi3): Likewise.
6023 (*avx2_umulhrswv16hi3): Likewise.
6024 (avx2_packusdw): Likewise.
6025 (avx2_pblendd<mode>): Likewise.
6026 (avx2_<code>v16qiv16hi2): Likewise.
6027 (avx2_<code>v8qiv8si2): Likewise.
6028 (avx2_<code>v8hiv8si2): Likewise.
6029 (avx2_<code>v4qiv4di2): Likewise.
6030 (avx2_<code>v4hiv4di2): Likewise.
6031 (avx2_<code>v4siv4di2): Likewise.
6032 (avx2_pbroadcast<mode>): Likewise.
6033 (avx2_permvarv8si): Likewise.
6034 (avx2_permv4df): Likewise.
6035 (avx2_permvarv8sf): Likewise.
6036 (avx2_permv4di): Likewise.
6037 (avx2_permv2ti): Likewise.
6038 (avx2_vec_dupv4df): Likewise.
6039 (avx2_vbroadcasti128_<mode>): Likewise.
6040 (avx2_vec_set_lo_v4di): Likewise.
6041 (avx2_vec_set_hi_v4di): Likewise.
6042 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
6043 (avx2_extracti128): Likewise.
6044 (avx2_inserti128): Likewise.
6045 (avx2_ashrvv8si): Likewise.
6046 (avx2_ashrvv4si): Likewise.
6047 (avx2_<lshift>vv8si): Likewise.
6048 (avx2_<lshift>v<mode>): Likewise.
6049 (avx2_<lshift>vv2di): Likewise.
6050 (avx2_gathersi<mode>): Likewise.
6051 (*avx2_gathersi<mode>): Likewise.
6052 (avx2_gatherdi<mode>): Likewise.
6053 (*avx2_gatherdi<mode>): Likewise.
6054 (avx2_gatherdi<mode>256): Likewise.
6055 (*avx2_gatherdi<mode>256): Likewise.
6056 (<plusminus_insn><mode>3): Use VI mode iterator.
6057 (*<plusminus_insn><mode>3): Use VI mode iterator.
6058 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
6059 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
6060 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
6061 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
6062 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
6063 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
6064 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
6065 Use VI2_AVX2 mode iterator.
6066 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
6067 Use VI2_AVX2 mode iterator.
6068 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
6069 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
6070 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
6071 Use VI4_AVX2 mode iterator.
6072 (ashr<mode>3): Use VI24_AVX2 mode iterator.
6073 (lshr<mode>3): Use VI248_AVX2 mode iterator.
6074 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
6075 Use VIMAX_AVX2 mode iterator.
6076 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
6077 Use VI mode iterator.
6078 (*andnot<mode>3): Update for AVX2.
6079 (*<any_logic:code><mode>3): Likewise.
6080 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
6081 Use VI1_AVX mode iterator.
6082 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
6083 Use VI2_AVX mode iterator.
6084 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
6085 Use VI1_AVX mode iterator.
6086 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
6087 Use VI8_AVX2 mode iterator.
6088 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
6089 Use VI1_AVX2 mode iterator.
6090 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
6091 Use VI124_AVX2 mode iterator.
6092 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
6093 Use SSESCALARMODE mode iterator.
6094 (abs<mode>2): Use VI124_AVX2 mode iterator.
6095 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
6096 Use VI8_AVX2 mode iterator.
6097 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
6098 Use VI1_AVX2 mode iterator.
6099 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
6100 Use VI1_AVX2 mode iterator.
6101 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
6102 Use VI2_AVX2 mode iterator.
6103 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
6104 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
6105 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
6106 avx_maskstore<ssemodesuffix><avxsizesuffix>.
6107 Use V48_AVX2 mode iterator.
6108 * doc/extend.texi: Document AVX2 built-in functions.
6109 * doc/invoke.texi: Document -mavx2.
6110
6111 2011-08-22 Matthias Klose <doko@debian.org>
6112
6113 Revert:
6114 2011-07-11 Arthur Loiret <aloiret@debian.org>
6115 Matthias Klose <doko@debian.org>
6116 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
6117 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
6118 convention.
6119 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
6120
6121 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
6122
6123 PR bootstrap/50146
6124 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
6125 to #ifndef HONOR_REG_ALLOC_ORDER block.
6126
6127 2011-08-21 Richard Henderson <rth@redhat.com>
6128
6129 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
6130 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
6131 * resource.c (next_insn_no_annul): Likewise.
6132 (mark_set_resources): Likewise.
6133 * reorg.c (delete_from_delay_slot): Likewise.
6134 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
6135 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
6136
6137 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
6138
6139 * config/i386/i386.md (any_div): Remove.
6140 (sgnprefix): Update for removal.
6141 (u): Ditto.
6142
6143 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
6144
6145 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
6146 for ira_reg_class_max_nregs. Increase pressure by 1.
6147 (mark_pseudo_regno_subword_dead): Use allocno class
6148 for ira_reg_class_max_nregs.
6149
6150 2011-08-20 Richard Henderson <rth@redhat.com>
6151
6152 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
6153 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
6154 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
6155 config/c6x/ltf.c: Adjust include path for soft-fp.
6156
6157 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
6158
6159 PR other/46770
6160 * config.gcc (tm_file): Add initfini-array.h if
6161 .init_arrary/.fini_array are supported.
6162
6163 * crtstuff.c: Don't generate .ctors nor .dtors sections if
6164 USE_INITFINI_ARRAY is defined.
6165
6166 * output.h (default_elf_init_array_asm_out_constructor): New.
6167 (default_elf_fini_array_asm_out_destructor): Likewise.
6168 * varasm.c (elf_init_array_section): Likewise.
6169 (elf_fini_array_section): Likewise.
6170 (get_elf_initfini_array_priority_section): Likewise.
6171 (default_elf_init_array_asm_out_constructor): Likewise.
6172 (default_elf_fini_array_asm_out_destructor): Likewise.
6173
6174 * config/initfini-array.h: New.
6175
6176 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
6177
6178 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
6179 OK for ST_REGS and FP_REGS before taking those classes into account.
6180
6181 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
6182
6183 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
6184 before checking for annulled branches.
6185
6186 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
6187
6188 * config/i386/i386.c (ix86_binary_operator_ok): Use
6189 satisfies_constraint_L.
6190
6191 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
6192 Michael Matz <matz@suse.de>
6193
6194 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
6195 trunc (a + copysign (nextafter (0.5, 0.0), a)).
6196
6197 2011-08-20 Anatoly Sokolov <aesok@post.ru>
6198
6199 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
6200 * doc/tm.texi: Regenerate.
6201 * targhooks.c (default_preferred_output_reload_class): Don't use
6202 PREFERRED_OUTPUT_RELOAD_CLASS macro.
6203 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
6204
6205 2011-08-20 Jakub Jelinek <jakub@redhat.com>
6206
6207 PR tree-optimization/48739
6208 * tree-ssa.c: Include cfgloop.h.
6209 (execute_update_addresses_taken): When updating ssa, if in loop closed
6210 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
6211 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
6212
6213 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
6214
6215 PR rtl-optimization/49936
6216 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
6217 for calculation of max register move costs.
6218
6219 2011-08-19 Joseph Myers <joseph@codesourcery.com>
6220
6221 * c-parser.c (c_parser_postfix_expression): Convert operands of
6222 __builtin_complex to their semantic types.
6223
6224 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
6225
6226 PR middle-end/49721
6227 * explow.c (convert_memory_address_addr_space): Also permute the
6228 conversion and addition of constant for zero-extend.
6229
6230 2011-08-19 Joseph Myers <joseph@codesourcery.com>
6231
6232 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
6233 * doc/extend.texi (__builtin_complex): Document.
6234
6235 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
6236
6237 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
6238 beyond conversions.
6239 (convert_mult_to_widen): Convert constant inputs to the right type.
6240 (convert_plusminus_to_widen): Don't automatically reject inputs that
6241 are not an SSA_NAME.
6242 Convert constant inputs to the right type.
6243
6244 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
6245
6246 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
6247 to the correct type.
6248
6249 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
6250
6251 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
6252 unsigned inputs of different modes.
6253 (convert_plusminus_to_widen): Likewise.
6254
6255 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
6256
6257 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
6258 'type'.
6259 Use 'type' from caller, not inferred from 'rhs'.
6260 Don't reject non-conversion statements. Do return lhs in this case.
6261 (is_widening_mult_p): Add new argument 'type'.
6262 Use 'type' from caller, not inferred from 'stmt'.
6263 Pass type to is_widening_mult_rhs_p.
6264 (convert_mult_to_widen): Pass type to is_widening_mult_p.
6265 (convert_plusminus_to_widen): Likewise.
6266
6267 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
6268
6269 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
6270 Ensure the the larger type is the first operand.
6271
6272 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
6273
6274 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
6275 unsupported unsigned multiplies to signed.
6276 (convert_plusminus_to_widen): Likewise.
6277
6278 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
6279
6280 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
6281 conversion statement separating multiply-and-accumulate.
6282
6283 2011-08-19 Richard Guenther <rguenther@suse.de>
6284
6285 PR tree-optimization/50067
6286 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
6287 offset only if we accounted for it.
6288
6289 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
6290
6291 * config/arm/arm.md (maddhidi4): Remove '*' from name.
6292 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
6293 * optabs.c (find_widening_optab_handler_and_mode): New function.
6294 (expand_widen_pattern_expr): Use find_widening_optab_handler.
6295 (expand_binop_directly): Likewise.
6296 (expand_binop): Likewise.
6297 * optabs.h (find_widening_optab_handler): New macro define.
6298 (find_widening_optab_handler_and_mode): New prototype.
6299 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
6300 type precision rules.
6301 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
6302 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
6303 (is_widening_mult_rhs_p): Allow widening by more than one mode.
6304 Explicitly disallow mis-matched input types.
6305 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
6306 input types to fit the new handler.
6307 (convert_plusminus_to_widen): Likewise.
6308
6309 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
6310
6311 * expr.c (expand_expr_real_2): Use widening_optab_handler.
6312 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
6313 (gen_insn): $N now means $a must be wider than $b, not consecutive.
6314 * optabs.c (widened_mode): New function.
6315 (expand_widen_pattern_expr): Use widening_optab_handler.
6316 (expand_binop_directly): Likewise.
6317 (expand_binop): Likewise.
6318 * optabs.h (widening_optab_handlers): New struct.
6319 (optab_d): New member, 'widening'.
6320 (widening_optab_handler): New function.
6321 (set_widening_optab_handler): New function.
6322 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
6323 widening_optab_handler.
6324 (convert_plusminus_to_widen): Likewise.
6325
6326 2011-08-19 Joseph Myers <joseph@codesourcery.com>
6327
6328 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
6329 pedantic.
6330 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
6331 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
6332
6333 2011-08-19 Joseph Myers <joseph@codesourcery.com>
6334
6335 * opth-gen.awk: Do not declare target save/restore structures and
6336 functions if IN_RTS defined.
6337
6338 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6339
6340 PR target/49437
6341 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
6342 when stack was realigned in interrupt handler prologue.
6343
6344 2011-08-18 Joseph Myers <joseph@codesourcery.com>
6345
6346 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
6347 (quals_from_declspecs): Assert _Noreturn not present.
6348 (grokdeclarator): Handle _Noreturn.
6349 (build_null_declspecs): Initialize noreturn_p.
6350 (declspecs_add_scspec): Handle RID_NORETURN.
6351 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
6352 (c_parser_attributes): Handle RID_NORETURN.
6353 * c-tree.h (struct c_declspecs): Add noreturn_p.
6354 * ginclude/stdnoreturn.h: New.
6355 * Makefile.in (USER_H): Add stdnoreturn.h.
6356
6357 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
6358
6359 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
6360 (OPTION_MASK_ISA_AVX_UNSET): Update.
6361 (OPTION_MASK_ISA_AVX2_UNSET): New.
6362 (ix86_handle_option): Handle OPT_mavx2 case.
6363 * config/i386/cpuid.h (bit_AVX2): New.
6364 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6365 AVX2 feature.
6366 * config/i386/i386-c.c (ix86_target_macros_internal):
6367 Conditionally define __AVX2__.
6368 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
6369 Define "core-avx2" processor alias. Handle avx2 option.
6370 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
6371 * config/i386/i386.h (TARGET_AVX2): New.
6372 * config/i386/i386.opt (mavx2): New.
6373 * doc/invoke.texi: Document -mavx2.
6374
6375 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
6376
6377 PR rtl-optimization/49890
6378 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
6379 subclasses of class which is superset of a pressure class.
6380
6381 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
6382 Igor Zamyatin <igor.zamyatin@intel.com>
6383
6384 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
6385 with HOST_WIDE_INT for isa_flag.
6386 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
6387 isa variables.
6388
6389 * config/i386/i386.c (ix86_target_string): Replace int with
6390 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
6391 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
6392 (pta_flags): Removed.
6393 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
6394 (pta): Use HOST_WIDE_INT on flags.
6395 (builtin_isa): Use HOST_WIDE_INT on isa.
6396 (ix86_add_new_builtins): Likewise.
6397 (def_builtin): Use HOST_WIDE_INT on mask.
6398 (def_builtin_const): Likewise.
6399 (builtin_description): Likewise.
6400
6401 * config/i386/i386.opt (ix86_isa_flags): Replace int with
6402 HOST_WIDE_INT.
6403 (ix86_isa_flags_explicit): Likewise.
6404 (x_ix86_isa_flags_explicit): Likewise.
6405
6406 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
6407
6408 PR rtl-optimization/50107
6409 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
6410 (ira_hard_reg_in_set_p): New.
6411
6412 * ira-color.c (calculate_saved_nregs): New.
6413 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
6414 hard regs.
6415 (allocno_reload_assign, fast_allocation): Use
6416 ira_hard_reg_set_intersection_p instead of
6417 ira_hard_reg_not_in_set_p.
6418
6419 * ira.c (setup_reg_renumber): Use
6420 ira_hard_reg_set_intersection_p instead of
6421 ira_hard_reg_not_in_set_p.
6422 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
6423 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
6424
6425 * ira-costs.c (ira_tune_allocno_costs): Use
6426 ira_hard_reg_set_intersection_p instead of
6427 ira_hard_reg_not_in_set_p.
6428
6429 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
6430 Igor Zamyatin <igor.zamyatin@intel.com>
6431
6432 * hwint.h (HOST_WIDE_INT_1): New.
6433
6434 * opt-functions.awk (switch_bit_fields): Initialize the
6435 host_wide_int field.
6436 (host_wide_int_var_name): New.
6437 (var_type_struct): Check and return HOST_WIDE_INT.
6438
6439 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
6440
6441 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
6442
6443 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
6444 check masks for HOST_WIDE_INT.
6445
6446 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
6447 (option_enabled): Likewise.
6448 (get_option_state): Likewise.
6449
6450 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
6451 to HOST_WIDE_INT.
6452
6453 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6454 Marc Glisse <marc.glisse@normalesup.org>
6455
6456 PR libstdc++-v3/1773
6457 * target.def (decl_mangling_context): New C++ hook.
6458 * doc/tm.texi: Regenerate.
6459 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
6460 * config/sol2-protos.h: Group by source file.
6461 (solaris_cxx_decl_mangling_context): Declare.
6462 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
6463 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
6464 Use $<.
6465 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
6466 Add sol2-stubs.o to extra_objs.
6467
6468 2011-08-18 Jakub Jelinek <jakub@redhat.com>
6469
6470 PR target/50009
6471 * stor-layout.c (update_alignment_for_field): Don't ICE on
6472 packed flexible array members if ms_bitfield_layout_p.
6473
6474 PR target/50092
6475 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
6476 on the result before returning it.
6477
6478 PR debug/50017
6479 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
6480 is a debug stmt, use location of the first non-debug stmt after it.
6481
6482 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
6483
6484 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
6485 (arm_size_rtx_costs): Likewise.
6486
6487 2011-08-18 Richard Guenther <rguenther@suse.de>
6488
6489 * tree.h (tree_int_cst_msb): Remove.
6490 * tree.c (tree_int_cst_msb): Likewise.
6491 (tree_int_cst_sign_bit): Move from ...
6492 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
6493
6494 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
6495
6496 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
6497 * doc/tm.texi: Regenerate.
6498 * target.def (rtx_costs): Add an opno parameter.
6499 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
6500 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
6501 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
6502 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
6503 * cse.c (COST_IN): Add an opno parameter.
6504 (notreg_cost): Likewise. Update call to rtx_cost.
6505 (COST, fold_rtx): Update accordingly.
6506 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
6507 * expmed.c (emit_store_flag): Likewise.
6508 * optabs.c (avoid_expensive_constant): Add an opno parameter.
6509 Update call to rtx_cost.
6510 (expand_binop_directly, expand_binop): Likewise.
6511 (expand_twoval_binop, prepare_cmp_insn): Likewise.
6512 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
6513 (set_src_cost, get_full_set_src_cost): Update accordingly.
6514 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
6515 to target hook.
6516 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
6517 (default_adress_cost): Update calls to rtx_cost.
6518
6519 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
6520 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
6521 (arm_rtx_costs): Add an opno parameter.
6522 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
6523 adjust any recursive rtx-cost calls.
6524 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
6525 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
6526 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
6527 * config/cris/cris.c (cris_rtx_costs): Likewise.
6528 * config/frv/frv.c (frv_rtx_costs): Likewise.
6529 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
6530 * config/i386/i386.c (ix86_rtx_costs): Likewise.
6531 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
6532 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
6533 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
6534 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
6535 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
6536 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
6537 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
6538 * config/mep/mep.c (mep_rtx_cost): Likewise.
6539 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
6540 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
6541 (mips_zero_extend_cost): Add an opno parameter.
6542 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
6543 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
6544 to rtx_cost.
6545 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
6546 rtx-cost calls.
6547 * config/pa/pa.c (hppa_rtx_costs): Likewise.
6548 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
6549 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
6550 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
6551 (rs6000_debug_rtx_costs): Likewise.
6552 * config/s390/s390.c (s390_rtx_costs): Likewise.
6553 * config/score/score-protos.h (score_rtx_costs): Likewise.
6554 * config/score/score.c (score_rtx_costs): Likewise.
6555 * config/sh/sh.c (andcosts): Update call to rtx_cost.
6556 (sh_rtx_costs): Add an opno parameter.
6557 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
6558 * config/spu/spu.c (spu_rtx_costs): Likewise.
6559 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
6560 * config/v850/v850.c (v850_rtx_costs): Likewise.
6561 * config/vax/vax.c (vax_rtx_costs): Likewise.
6562 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
6563
6564 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
6565
6566 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
6567 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
6568 rtx_cost.
6569 * calls.c (precompute_register_parameters): Likewise.
6570 * combine.c (expand_compound_operation, make_extraction): Likewise.
6571 (force_to_mode, distribute_and_simplify_rtx): Likewise.
6572 * dse.c (find_shift_sequence): Likewise.
6573 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
6574 * expr.c (compress_float_constant): Likewise.
6575 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
6576 * gcse.c (want_to_gcse_p): Likewise.
6577 * ifcvt.c (noce_try_sign_mask): Likewise.
6578 * loop-doloop.c (doloop_optimize): Likewise.
6579 * loop-invariant.c (create_new_invariant): Likewise.
6580 * optabs.c (avoid_expensive_constant): Likewise.
6581 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
6582 (try_replace_in_use, reload_cse_move2add): Likewise.
6583 * reload1.c (calculate_elim_costs_all_insns): Likewise.
6584 (note_reg_elim_costly): Likewise.
6585 * rtlanal.c (insn_rtx_cost): Likewise.
6586 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6587 * stmt.c (lshift_cheap_p): Likewise.
6588 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
6589 * config/avr/avr.c (final_prescan_insn): Likewise.
6590 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
6591 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
6592
6593 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
6594
6595 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
6596 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
6597 * cfgloopanal.c (seq_cost): Likewise.
6598 * loop-invariant.c (create_new_invariant): Likewise.
6599 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
6600 (reload_cse_move2add): Use get_full_set_rtx_cost.
6601
6602 2011-08-18 Richard Guenther <rguenther@suse.de>
6603
6604 * expr.c (get_inner_reference): Fix typo in last change.
6605
6606 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
6607 Joseph Myers <joseph@codesourcery.com>
6608
6609 PR tree-optimization/49963
6610 * hwint.c (absu_hwi): Define.
6611 * hwint.h (absu_hwi): Declare.
6612 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
6613 of abs_hwi.
6614 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
6615 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
6616
6617 2011-08-18 Richard Guenther <rguenther@suse.de>
6618
6619 * expr.c (get_inner_reference): Sign-extend the constant
6620 twos-complement offset before doing arbitrary precision
6621 arithmetic on it.
6622 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
6623 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
6624 to get_constraint_for_ptr_offset.
6625
6626 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
6627
6628 PR target/50068
6629 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
6630
6631 2011-08-17 Richard Guenther <rguenther@suse.de>
6632
6633 * tree.h (convert_to_ptrofftype_loc): New function.
6634 (convert_to_ptrofftype): Define.
6635 * builtins.c (expand_builtin_bzero): Use size_type_node.
6636 (fold_builtin_bzero): Likewise.
6637 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
6638 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
6639 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
6640 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
6641 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
6642 * fold-const.c (build_range_check): Negate using the original type.
6643 (fold_unary_loc): Use fold_build_pointer_plus_loc.
6644 * gimple-fold.c (gimple_adjust_this_by_delta): Use
6645 convert_to_ptrofftype.
6646 * gimplify.c (gimplify_self_mod_expr): Likewise.
6647 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
6648 (graphite_create_new_loop_guard): Likewise.
6649 * graphite-sese-to-poly.c (my_long_long): Remove.
6650 (scop_ivs_can_be_represented): Adjust.
6651 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
6652 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
6653 * tree-loop-distribution.c (build_size_arg_loc): Use
6654 size_type_node.
6655 (generate_memset_zero): Simplify.
6656 * tree-mudflap.c: Use fold_convert, not convert.
6657 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
6658 its own type.
6659 (determine_offset): Likewise for DR_STEP.
6660 (valid_initializer_p): Likewise.
6661 * tree-profile.c (prepare_instrumented_value): Convert the pointer
6662 to an integer type of same size.
6663 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
6664 to sizetype without need.
6665 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
6666 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
6667 * tree-ssa-loop-manip.c (create_iv): Likewise.
6668 (determine_exit_conditions): Adjust comment.
6669 * tree-ssa-pre.c (create_expression_by_pieces): Use
6670 convert_to_ptrofftype.
6671 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
6672 * varasm.c (array_size_for_constructor): Compute using double_ints.
6673
6674 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6675
6676 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
6677 when generating an integer result where possible. Short-cut
6678 comparison against 0 also for QImode.
6679
6680 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6681
6682 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
6683 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
6684 prototype.
6685 * config/spu/spu.c (spu_legitimize_reload_address): New function.
6686 (spu_legitimate_address_p): Do not check displacement if the base
6687 is an eliminable stack register.
6688
6689 2011-08-16 Anatoly Sokolov <aesok@post.ru>
6690
6691 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
6692 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
6693 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
6694 m32c_preferred_output_reload_class): Remove.
6695 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
6696 Change rclass argument and return types to reg_class_t. Use
6697 reg_class_subset_p instead of class_sizes.
6698 (m32c_preferred_output_reload_class): Make static. Change rclass
6699 argument and return types to reg_class_t.
6700 (TARGET_PREFERRED_RELOAD_CLASS,
6701 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6702
6703 2011-08-16 Kai Tietz <ktietz@redhat.com>
6704
6705 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
6706
6707 2011-08-16 Richard GUenther <rguenther@suse.de>
6708
6709 PR tree-optimization/50082
6710 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
6711 warnings here, instead of ...
6712 (ssa_forward_propagate_and_combine): ... here.
6713 (forward_propagate_into_comparison_1): Adjust.
6714 (forward_propagate_into_comparison): Likewise.
6715 (forward_propagate_into_gimple_cond): Likewise.
6716 (forward_propagate_into_cond): Likewise.
6717
6718 2011-08-16 Andreas Schwab <schwab@redhat.com>
6719
6720 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
6721 instead of ggc_alloc_zone_vec_rtvec_def.
6722
6723 2011-08-16 Richard Guenther <rguenther@suse.de>
6724
6725 * tree.h (ptrofftype_p): New helper function.
6726 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
6727 offset verification.
6728 (verify_gimple_assign_binary): Likewise.
6729 * tree.c (build2_stat): Likewise.
6730 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
6731 (reset_evolution_in_loop): Likewise.
6732 * tree-chrec.h (build_polynomial_chrec): Likewise.
6733
6734 2011-08-16 Liang Wang <lwang1@marvell.com>
6735
6736 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
6737 ggc_alloc_zone_vec_rtvec_def.
6738
6739 2011-08-16 Richard Guenther <rguenther@suse.de>
6740
6741 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
6742 helper factored out from ...
6743 (extract_range_from_binary_expr_1): ... here. Re-structure
6744 to not glob handling too different tree codes.
6745
6746 2011-08-15 Richard Henderson <rth@redhat.com>
6747
6748 PR middle-end/50006
6749 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
6750 setting out to include allocate_stack named pattern as well.
6751 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
6752 * stmt.c (expand_stack_restore): Likewise.
6753
6754 2011-08-15 Richard Guenther <rguenther@suse.de>
6755
6756 PR middle-end/50082
6757 * fold-const.c (maybe_canonicalize_comparison_1): Properly
6758 convert the modified operand to the other operand type.
6759 (fold_comparison): Call maybe_canonicalize_comparison_1 with
6760 useless conversions stripped from comparison operands.
6761
6762 2011-08-15 Richard Guenther <rguenther@suse.de>
6763
6764 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
6765 (extract_range_from_unary_expr_1): Restructure.
6766
6767 2011-08-15 Richard Guenther <rguenther@suse.de>
6768
6769 PR tree-optimization/50058
6770 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
6771 copy matching.
6772
6773 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6774
6775 PR target/50022
6776 * config/arm/arm.c (output_move_double): Add 2 parameters
6777 to count the number of insns emitted and whether to emit or not.
6778 Use the flag to decide when to emit and count number of instructions
6779 that will be emitted.
6780 Handle case where output_move_double might be called for calculating
6781 lengths with an invalid constant.
6782 (arm_count_output_move_double_insns): Define.
6783 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
6784 (output_move_double): Adjust prototype.
6785 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
6786 output_move_double.
6787 ("*movdi_vfp_cortexa8"): Likewise and add attribute
6788 for ce_count.
6789 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
6790 ("*movdf_soft_insn"): Likewise.
6791 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
6792 ("*cirrus_thumb2_movdi"): Likewise.
6793 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
6794 ("*cirrus_movdf_hard_insn"): Likewise.
6795 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
6796 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
6797 ("mov<mode>_internal VMMX"): Likewise.
6798 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
6799
6800 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
6801
6802 * config/i386/i386.c (ix86_expand_round_sse4): New function.
6803 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
6804 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
6805 for TARGET_ROUND.
6806
6807 (rint<mode>2): Simplify TARGET_ROUND check.
6808 (floor<mode>2): Ditto.
6809 (ceil<mode>2): Ditto.
6810 (btrunc<mode>2): Ditto.
6811
6812 2011-08-14 Anatoly Sokolov <aesok@post.ru>
6813
6814 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
6815 as mmix_preferred_output_reload_class.
6816
6817 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
6818
6819 * PR target/49903
6820 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
6821 (branch_unspec): New insn.
6822 (branch): Beauty farm.
6823 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
6824 to be IF_THEN_ELSE.
6825 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
6826 New static functions.
6827 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
6828 Use CONST_INT_P. Beauty.
6829
6830 2011-08-12 Richard Henderson <rth@redhat.com>
6831
6832 PR rtl-opt/49994
6833 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
6834 * sched-deps.c (init_deps): Clear it.
6835 (deps_analyze_insn): Consume it.
6836 (sched_analyze_insn): Fill it.
6837
6838 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6839
6840 PR target/48328
6841 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
6842 for tbh instructions.
6843
6844 2011-08-12 Diego Novillo <dnovillo@google.com>
6845
6846 * data-streamer.h (streamer_write_zero): Rename from output_zero.
6847 (streamer_write_uhwi): Rename from lto_output_uleb128.
6848 (streamer_write_hwi): Rename from output_sleb128.
6849 (streamer_write_string): Rename from lto_output_string.
6850 (streamer_string_index): Rename from lto_string_index.
6851 (streamer_write_string_with_length): Rename from
6852 lto_output_string_with_length.
6853 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
6854 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
6855 (streamer_read_string): Rename from lto_input_string.
6856 (streamer_read_indexed_string): Rename from input_string_internal.
6857 (streamer_read_uhwi): Rename from lto_input_uleb128.
6858 (streamer_read_hwi): Rename from lto_input_sleb128.
6859 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
6860 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
6861 (streamer_write_enum): Rename from lto_output_enum.
6862 (streamer_read_enum): Rename from lto_input_enum.
6863 (streamer_write_record_start): Rename from output_record_start.
6864 (streamer_read_record_start): Rename from input_record_start.
6865 (streamer_write_bitpack): Rename from lto_output_bitpack.
6866 (streamer_read_bitpack): Rename from lto_input_bitpack.
6867 (streamer_write_char_stream): Rename from lto_output_1_stream.
6868 (streamer_read_uchar): Rename from lto_input_1_unsigned.
6869 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
6870 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
6871 (streamer_read_string_cst): Rename from input_string_cst.
6872 (streamer_read_chain): Rename from lto_input_chain.
6873 (streamer_alloc_tree): Rename from lto_materialize_tree.
6874 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
6875 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
6876 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
6877 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
6878 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
6879 (streamer_write_chain): Rename from lto_output_chain.
6880 (streamer_write_tree_header): Rename from lto_output_tree_header.
6881 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
6882 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
6883 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
6884 (streamer_write_builtin): Rename from lto_output_builtin_tree.
6885 (streamer_check_handled_ts_structures): Rename from
6886 check_handled_ts_structures.
6887 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
6888 (streamer_tree_cache_insert_at): Rename from
6889 lto_streamer_cache_insert_at.
6890 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
6891 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
6892 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
6893 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
6894 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
6895 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
6896 (write_identifier): Rename from output_identifier.
6897 (write_ts_common_tree_pointers): Rename from
6898 lto_output_ts_common_tree_pointers.
6899 (write_ts_vector_tree_pointers): Rename from
6900 lto_output_ts_vector_tree_pointers.
6901 (write_ts_complex_tree_pointers): Rename from
6902 lto_output_ts_complex_tree_pointers.
6903 (write_ts_decl_minimal_tree_pointers): Rename from
6904 lto_output_ts_decl_minimal_tree_pointers.
6905 (write_ts_decl_common_tree_pointers): Rename from
6906 lto_output_ts_decl_common_tree_pointers.
6907 (write_ts_decl_non_common_tree_pointers): Rename from
6908 lto_output_ts_decl_non_common_tree_pointers.
6909 (write_ts_decl_with_vis_tree_pointers): Rename from
6910 lto_output_ts_decl_with_vis_tree_pointers.
6911 (write_ts_field_decl_tree_pointers): Rename from
6912 lto_output_ts_field_decl_tree_pointers.
6913 (write_ts_function_decl_tree_pointers): Rename from
6914 lto_output_ts_function_decl_tree_pointers.
6915 (write_ts_type_common_tree_pointers): Rename from
6916 lto_output_ts_type_common_tree_pointers.
6917 (write_ts_type_non_common_tree_pointers): Rename from
6918 lto_output_ts_type_non_common_tree_pointers.
6919 (write_ts_list_tree_pointers): Rename from
6920 lto_output_ts_list_tree_pointers.
6921 (write_ts_vec_tree_pointers): Rename from
6922 lto_output_ts_vec_tree_pointers.
6923 (write_ts_exp_tree_pointers): Rename from
6924 lto_output_ts_exp_tree_pointers.
6925 (write_ts_block_tree_pointers): Rename from
6926 lto_output_ts_block_tree_pointers.
6927 (write_ts_binfo_tree_pointers): Rename from
6928 lto_output_ts_binfo_tree_pointers.
6929 (write_ts_constructor_tree_pointers): Rename from
6930 lto_output_ts_constructor_tree_pointers.
6931 (write_ts_target_option): Rename from lto_output_ts_target_option.
6932 (write_ts_translation_unit_decl_tree_pointers): Rename from
6933 lto_output_ts_translation_unit_decl_tree_pointers.
6934 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
6935 Rename from lto_streamer_cache_add_to_node_array.
6936 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
6937 (record_common_node): Rename from lto_record_common_node.
6938
6939 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
6940 declarations.
6941 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
6942 function.
6943 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
6944 unused function.
6945 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
6946 (ipa-reference.o): Likewise.
6947 * lto-section-out.c: Include data-streamer.h.
6948 * ipa-reference.c: Include data-streamer.h.
6949
6950 2011-08-12 Nick Clifton <nickc@redhat.com>
6951
6952 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
6953 * doc/md.texi (cmpstrn): Note that the comparison stops if both
6954 fetched bytes are zero.
6955 (cmpstr): Likewise.
6956 (cmpmem): Note that the comparison does not stop if both of the
6957 fetched bytes are zero.
6958
6959 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
6960
6961 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
6962 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
6963 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
6964 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
6965 to integer_type_node.
6966 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
6967 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
6968 * builtins.c (expand_builtin_in): Ditto.
6969 (mathfn_built_in_1): Ditto.
6970 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
6971 BUILT_IN_IFLOOR.
6972 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
6973 BUILT_IN_IROUND.
6974 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
6975 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
6976 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
6977
6978 2011-08-12 Richard Guenther <rguenther@suse.de>
6979
6980 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
6981
6982 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
6983
6984 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
6985
6986 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
6987
6988 * config/arm/arm.c (get_label_padding): New function.
6989 (create_fix_barrier, arm_reorg): Use it.
6990
6991 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
6992
6993 PR target/49781
6994 * config/i386/i386.md (*lea_5_zext): New.
6995 (*lea_6_zext): Ditto.
6996 * config/i386/predicates.md (const_32bit_mask): New predicate.
6997 (lea_address_operand): Reject AND.
6998 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
6999 const_32bit_mask immediate.
7000 (ix86_print_operand_address): Handle AND.
7001 (memory_address_length): Ditto.
7002
7003 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
7004 Brian Hackett <bhackett1024@gmail.com>
7005
7006 * plugin.def: Add event for finish_decl.
7007 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
7008 * c-decl.c (finish_decl): Invoke callbacks on above event.
7009 * doc/plugins.texi: Document above event.
7010
7011 2011-08-11 Richard Guenther <rguenther@suse.de>
7012
7013 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
7014 lookups, make looking through aggregate copies stronger.
7015
7016 2011-08-11 Richard Henderson <rth@redhat.com>
7017
7018 PR bootstrap/50018
7019 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
7020
7021 2011-08-11 Richard Guenther <rguenther@suse.de>
7022
7023 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
7024 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
7025 (vrp_visit_stmt): Likewise.
7026
7027 2011-08-11 Richard Guenther <rguenther@suse.de>
7028
7029 PR middle-end/50040
7030 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
7031 load of the other piece with TREE_NO_WARNING.
7032 * tree-flow.h (warn_uninit): Adjust prototype.
7033 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
7034 the base variable and the expression that is used separately.
7035 Properly query all TREE_NO_WARNING flags.
7036 (struct walk_data): Remove.
7037 (warn_uninitialized_var): Likewise.
7038 (warn_uninitialized_vars): Do not walk gimple pieces but simply
7039 look at all SSA uses of the statement. Handle unused memory
7040 separately.
7041 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
7042
7043 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
7044
7045 * config/rx/rx.md (movsicc): Allow register to register transfers.
7046 (*movsicc): Likewise.
7047 (*stcc): Restrict this pattern to EQ and NE compares.
7048 (*stcc_reg): New pattern. Works for any comparison but only for
7049 register transfers.
7050
7051 2011-08-11 Diego Novillo <dnovillo@google.com>
7052
7053 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
7054 Call stream_write_tree instead of output_record_start.
7055 (lto_output_ts_binfo_tree_pointers): Likewise.
7056
7057 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
7058 Convert it to a macro.
7059 (stream_read_tree): Likewise.
7060
7061 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
7062 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
7063
7064 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
7065 and tree_read_bitfields.
7066 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
7067 (lto_write_tree): Call it.
7068 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
7069 * streamer-hooks.h (struct streamer_hooks): Remove fields
7070 name, is_streamable and alloc_tree. Update all users.
7071 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
7072 (lto_materialize_tree): ... here.
7073 Handle CALL_EXPR codes.
7074 Remove call to lto_streamer_cache_append.
7075 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
7076 * tree-streamer.h (tree_read_bitfields): Declare.
7077
7078 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
7079 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
7080 * tree-streamer.h (stream_read_tree): New. Replace all calls
7081 to lto_input_tree with it.
7082 (stream_write_tree): New. Replace all calls to lto_output_tree,
7083 lto_output_tree_ref and lto_output_tree_or_ref with it.
7084 * lto-streamer-in.c (lto_read_tree): Inline code from
7085 lto_streamer_read_tree.
7086 (lto_input_tree): Move from tree-streamer-in.c.
7087 * lto-streamer-out.c (lto_output_tree_ref): Make static.
7088 Remove handling of NULL values for EXPR.
7089 Do not handle EXPRs that are not indexable.
7090 (lto_write_tree): Move from tree-streamer-out.c.
7091 Inline lto_streamer_write_tree.
7092 (lto_output_tree): Move from tree-streamer-out.c.
7093 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
7094 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
7095 (lto_preload_common_nodes): Likewise.
7096 Remove assertions and adjustments for nodes
7097 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
7098 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
7099 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
7100 * lto-streamer.h (lto_input_tree): Declare.
7101 (lto_output_tree_ref): Remove.
7102 * streamer-hooks.h (struct streamer_hooks): Remove fields
7103 preload_common_nodes, indexable_with_decls_p,
7104 pack_value_fields, unpack_value_fields and output_tree_header.
7105 Update all users.
7106 * tree-streamer-in.c (lto_materialize_tree): Make extern.
7107 (lto_input_tree_pointers): Likewise.
7108 (lto_read_tree): Move to lto-streamer-in.c.
7109 (lto_input_integer_cst): Make extern.
7110 (lto_get_pickled_tree): Likewise.
7111 (lto_get_builtin_tree): Likewise.
7112 (lto_input_tree): Move to lto-streamer-in.c.
7113 * tree-streamer-out.c (pack_value_fields): Make extern.
7114 (lto_output_tree_or_ref): Remove. Replace all callers with
7115 calls to stream_write_tree.
7116 (lto_output_builtin_tree): Make extern.
7117 (lto_streamer_write_tree): Inline into lto_write_tree.
7118 (lto_output_tree_pointers): Make extern.
7119 (lto_output_tree_header): Likewise.
7120 (lto_output_integer_cst): Likewise.
7121 (lto_write_tree): Move to lto-streamer-out.c.
7122 (lto_output_tree): Likewise.
7123 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
7124 (preload_common_nodes): Likewise.
7125 (lto_streamer_cache_create): Call it.
7126 * tree-streamer.h: Include streamer-hooks.h.
7127 (stream_write_tree): New.
7128 (stream_read_tree): New.
7129 (lto_input_tree): Remove.
7130 (lto_materialize_tree): Declare.
7131 (lto_input_tree_pointers): Declare.
7132 (lto_get_pickled_tree): Declare.
7133 (lto_get_builtin_tree): Declare.
7134 (lto_input_integer_cst): Declare.
7135 (lto_output_tree_header): Declare.
7136 (pack_value_fields): Declare.
7137 (lto_output_tree_pointers): Declare.
7138 (lto_output_integer_cst): Declare.
7139 (lto_output_builtin_tree): Declare.
7140
7141 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
7142
7143 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
7144 only if producer writes to the register given by regno.
7145
7146 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
7147 Alexander Monakov <amonakov@ispras.ru>
7148
7149 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
7150 (sched_get_condition_with_rev_uncached): ... this. Factor out
7151 condition caching logic into ...
7152 (sched_get_condition_with_rev): ... this. Reimplement. Do not
7153 attempt to use cache for instructions with zero luid.
7154 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
7155 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
7156
7157 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
7158
7159 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
7160 get_seqno_for_a_jump. Update the caller.
7161 (get_seqno_by_succs): New. Use it ...
7162 (get_seqno_for_a_jump): ... here to find a seqno if looking at
7163 predecessors was not sufficient.
7164 (get_seqno_by_preds): Include head in iteration range, exclude insn.
7165
7166 2011-08-11 Dmitry Melnik <dm@ispras.ru>
7167
7168 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
7169
7170 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
7171
7172 * sel-sched-ir.h (register_unavailable_p): Declare.
7173 * sel-sched-ir.c (register_unavailable_p): New. Use it...
7174 (set_unavailable_target_for_expr): ... here to properly test
7175 availability of a register.
7176 (speculate_expr): Ditto.
7177 * sel-sched.c (substitute_reg_in_expr): Ditto.
7178 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
7179
7180 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
7181
7182 * sel-sched.c (verify_target_availability): Fix usage of
7183 hard_regno_nregs.
7184
7185 2011-08-11 Dmitry Melnik <dm@ispras.ru>
7186
7187 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
7188 recognized by cannot_copy_insn_p hook and volatile instructions.
7189
7190 2011-08-11 Dmitry Melnik <dm@ispras.ru>
7191
7192 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
7193
7194 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
7195
7196 * doc/md.texi (define_bypass): Say that the instruction names can
7197 be filename-style globs.
7198 * Makefile.in (FNMATCH_H): Define.
7199 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
7200 * genattrtab.c: Include fnmatch.h.
7201 (bypass_list): Change field name from "insn" to "pattern".
7202 (gen_bypass_1): Update accordingly.
7203 (process_bypasses): Use fnmatch to check for matches between
7204 insn reservations and define_bypasses.
7205 * genautomata.c: Include fnmatch.h.
7206 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
7207 and out_pattern respectively.
7208 (gen_bypass, insert_bypass): Update accordingly.
7209 (for_each_matching_insn, process_bypass_2, process_bypass_1)
7210 (process_bypass): New functions.
7211 (process_decls): Use process_bypass. Update after field name changes.
7212
7213 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
7214
7215 PR target/49687
7216 * config/avr/avr.md (smulqi3_highpart): New insn.
7217 (umulqi3_highpart): New insn.
7218 (*subqi3.ashiftrt7): New insn.
7219 (smulhi3_highpart): New expander.
7220 (umulhi3_highpart): Nex expander.
7221 (*smulhi3_highpart_call): New insn.
7222 (*umulhi3_highpart_call): New insn.
7223 (extend_u): New code attribute.
7224 (extend_prefix): Rename code attribute to extend_su.
7225 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
7226 widening QI/HI multiply.
7227
7228 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
7229
7230 PR tree-optimization/50039
7231 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
7232 that DEF_STMT has a stmt_vec_info.
7233
7234 2011-08-10 Richard Guenther <rguenther@suse.de>
7235
7236 * tree.h (can_trust_pointer_alignment): Remove.
7237 * builtins.c (can_trust_pointer_alignment): Remove.
7238
7239 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
7240
7241 * c-typeck.c (scalar_to_vector): New function. Try scalar to
7242 vector conversion.
7243 (stv_conv): New enum for scalar_to_vector return type.
7244 (build_binary_op): Adjust.
7245 * doc/extend.texi: Description of scalar to vector expansion.
7246
7247 2011-08-10 Richard Guenther <rguenther@suse.de>
7248
7249 * tree.h (get_pointer_alignment): Remove max-align argument.
7250 (get_object_alignment): Likewise.
7251 * builtins.c (get_object_alignment_1): Adjust.
7252 (get_object_alignment): Remove max-align argument.
7253 (get_pointer_alignment): Likewise.
7254 (expand_builtin_strlen): Adjust.
7255 (expand_builtin_memcpy): Likewise.
7256 (expand_builtin_mempcpy_args): Likewise.
7257 (expand_builtin_strncpy): Likewise.
7258 (expand_builtin_memset_args): Likewise.
7259 (expand_builtin_memcmp): Likewise.
7260 (expand_builtin_strcmp): Likewise.
7261 (expand_builtin_strncmp): Likewise.
7262 (get_builtin_sync_mem): Likewise.
7263 (fold_builtin_memset): Likewise.
7264 (fold_builtin_memory_op): Likewise.
7265 (expand_builtin_memory_chk): Likewise.
7266 * emit-rtl.c (get_mem_align_offset): Likewise.
7267 (set_mem_attributes_minus_bitpos): Likewise.
7268 * expr.c (expand_assignment): Likewise.
7269 (expand_expr_real_1): Likewise.
7270 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
7271 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
7272 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
7273 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
7274 * value-prof.c (gimple_stringops_transform): Likewise.
7275
7276 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
7277
7278 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
7279 * doc/tm.texi: Regenerate.
7280
7281 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
7282
7283 PR target/29560
7284 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
7285 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
7286 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
7287 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
7288 shift target is unused.
7289
7290 2011-08-10 Richard Guenther <rguenther@suse.de>
7291
7292 PR tree-optimization/49937
7293 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
7294 using get_object_alignment_1.
7295
7296 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
7297
7298 * config/i386/i386.c (ix86_emit_i387_round): New function.
7299 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
7300 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
7301 Use ix86_emit_i387_round to expand round function for i387 math.
7302 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
7303 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
7304
7305 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7306
7307 * config/sync.c: Move to ../libgcc.
7308 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
7309 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
7310 Remove.
7311
7312 2011-08-09 Anatoly Sokolov <aesok@post.ru>
7313
7314 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
7315 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
7316 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
7317 Change 'from' and 'to' arguments type to reg_class_t.
7318 (TARGET_REGISTER_MOVE_COST): Define.
7319
7320 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
7321
7322 PR target/50026
7323 Revert:
7324 PR rtl-optimization/49990
7325 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
7326 ignore classes which can not change mode.
7327 (find_costs_and_classes): Ditto.
7328
7329 2011-08-09 Richard Guenther <rguenther@suse.de>
7330
7331 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
7332 information for ranges with only negative values.
7333 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
7334 BIT_AND_EXPR handling to handle ranges with negative values.
7335
7336 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
7337
7338 * config/i386/i386.c: Remove traling spaces.
7339 * config/i386/sse.md: Likewise.
7340 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
7341 (*fma_fmsub_<mode>): Likewise.
7342 (*fma_fnmadd_<mode>): Likewise.
7343 (*fma_fnmsub_<mode>): Likewise.
7344
7345 2011-08-09 Nick Clifton <nickc@redhat.com>
7346
7347 * config/rx/rx.md: Disable extender peepholes at -O3.
7348
7349 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
7350
7351 PR target/49781
7352 * config/i386/i386.md (reload_noff_load): New.
7353 (reload_noff_store): Ditto.
7354 * config/i386/i386.c (ix86_secondary_reload): Use
7355 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
7356 double-word moves from/to non-offsetable addresses instead of
7357 generating XMM temporary.
7358
7359 2011-08-09 Anatoly Sokolov <aesok@post.ru>
7360
7361 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
7362
7363 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
7364
7365 PR tree-optimization/50014
7366 * tree-vect-loop.c (vectorizable_reduction): Get def type before
7367 calling vect_get_vec_def_for_stmt_copy ().
7368
7369 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
7370
7371 PR rtl-optimization/49990
7372 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
7373 ignore classes which can not change mode.
7374 (find_costs_and_classes): Ditto.
7375
7376 2011-08-08 Richard Henderson <rth@redhat.com>
7377
7378 PR middle-end/49990
7379 * config/i386/i386.c (ix86_expand_prologue): Call
7380 for SEH target gen_prologue_use instead of gen_blockage
7381 at prologue's end.
7382
7383 2011-08-08 Martin Jambor <mjambor@suse.cz>
7384
7385 PR middle-end/49923
7386 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
7387 memory alignment.
7388
7389 2011-08-08 Diego Novillo <dnovillo@google.com>
7390
7391 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
7392 (DATA_STREAMER_H): New.
7393 (GIMPLE_STREAMER_H): New.
7394 (TREE_STREAMER_H): New.
7395 (STREAMER_HOOKS_H): New.
7396 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
7397 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
7398 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
7399 (data-streamer.o): New.
7400 (data-streamer-in.o): New.
7401 (data-streamer-out.o): New.
7402 (gimple-streamer-in.o): New.
7403 (gimple-streamer-out.o): New.
7404 (streamer-hooks.o): New.
7405 (tree-streamer.o): New.
7406 (tree-streamer-in.o): New.
7407 (tree-streamer-out.o): New.
7408 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
7409 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
7410 GIMPLE_STREAMER_H and TREE_STREAMER_H.
7411 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
7412 GIMPLE_STREAMER_H and TREE_STREAMER_H.
7413 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
7414 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
7415 (ipa-inline-analysis.o): Likewise.
7416 (ipa-pure-const.o): Likewise.
7417 * data-streamer-in.c: New.
7418 * data-streamer-out.c: New.
7419 * data-streamer.c: New.
7420 * data-streamer.h: New.
7421 * gimple-streamer-in.c: New.
7422 * gimple-streamer-out.c: New.
7423 * gimple-streamer.h: New.
7424 * ipa-inline-analysis.c: Include data-streamer.h.
7425 * ipa-prop.c: Include data-streamer.h.
7426 * ipa-pure-const.c: Include data-streamer.h.
7427 * lto-cgraph.c: Include data-streamer.h.
7428 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
7429 (lto_input_widest_uint_uleb128): Likewise.
7430 (lto_input_sleb128): Likewise.
7431 (bp_unpack_var_len_unsigned): Likewise.
7432 (bp_unpack_var_len_int): Likewise.
7433 * lto-section-out.c (lto_output_uleb128_stream): Move to
7434 data-streamer-out.c.
7435 (lto_output_widest_uint_uleb128_stream): Likewise.
7436 (lto_output_sleb128_stream): Likewise.
7437 (bp_pack_var_len_unsigned): Likewise.
7438 (bp_pack_var_len_int): Likewise.
7439 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
7440 (struct string_slot): Remove. Update all users.
7441 (lto_tag_check_set): Make extern.
7442 (lto_tag_check_range): Move to lto-streamer.h.
7443 (lto_tag_check): Likewise.
7444 (hash_string_slot_node): Remove. Update all users.
7445 (eq_string_slot_node): Remove. Update all users.
7446 (string_for_index): Move to data-streamer-in.c
7447 (input_string_internal): Likewise.
7448 (input_string_cst): Move to tree-streamer-in.c.
7449 (input_identifier): Likewise.
7450 (lto_input_string): Move to data-streamer-in.c
7451 (input_record_start): Move to data-streamer.h
7452 (canon_file_name): Use new definition of struct string_slot
7453 from data-streamer.h. Set S_SLOT.LEN.
7454 (lto_input_location): Make extern.
7455 (lto_input_chain): Move to tree-streamer-in.c.
7456 (lto_init_eh): Make extern.
7457 (input_phi): Move to gimple-streamer-in.c.
7458 (input_gimple_stmt): Likewise.
7459 (input_bb): Likewise.
7460 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
7461 (unpack_ts_real_cst_value_fields): Likewise.
7462 (unpack_ts_fixed_cst_value_fields): Likewise.
7463 (unpack_ts_decl_common_value_fields): Likewise.
7464 (unpack_ts_decl_wrtl_value_fields): Likewise.
7465 (unpack_ts_decl_with_vis_value_fields): Likewise.
7466 (unpack_ts_function_decl_value_fields): Likewise.
7467 (unpack_ts_type_common_value_fields): Likewise.
7468 (unpack_ts_block_value_fields): Likewise.
7469 (unpack_ts_translation_unit_decl_value_fields): Likewise.
7470 (unpack_value_fields): Likewise.
7471 (lto_materialize_tree): Likewise.
7472 (lto_input_ts_common_tree_pointers): Likewise.
7473 (lto_input_ts_vector_tree_pointers): Likewise.
7474 (lto_input_ts_complex_tree_pointers): Likewise.
7475 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
7476 (lto_input_ts_decl_common_tree_pointers): Likewise.
7477 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
7478 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
7479 (lto_input_ts_field_decl_tree_pointers): Likewise.
7480 (lto_input_ts_function_decl_tree_pointers): Likewise.
7481 (lto_input_ts_type_common_tree_pointers): Likewise.
7482 (lto_input_ts_type_non_common_tree_pointers): Likewise.
7483 (lto_input_ts_list_tree_pointers): Likewise.
7484 (lto_input_ts_vec_tree_pointers): Likewise.
7485 (lto_input_ts_exp_tree_pointers): Likewise.
7486 (lto_input_ts_block_tree_pointers): Likewise.
7487 (lto_input_ts_binfo_tree_pointers): Likewise.
7488 (lto_input_ts_constructor_tree_pointers): Likewise.
7489 (lto_input_ts_target_option): Likewise.
7490 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
7491 (lto_input_tree_pointers): Likewise.
7492 (lto_get_pickled_tree): Likewise.
7493 (lto_get_builtin_tree): Likewise.
7494 (lto_read_tree): Likewise.
7495 (lto_input_integer_cst): Likewise.
7496 (lto_input_tree): Likewise.
7497 * lto-streamer-out.c: Include data-streamer.h,
7498 gimple-streamer.h and streamer-hooks.h.
7499 (struct string_slot): Move to data-streamer.h.
7500 (hash_string_slot_node): Likewise.
7501 (eq_string_slot_node): Likewise.
7502 (lto_string_index): Move to data-streamer-out.c.
7503 (lto_output_string_with_length): Likewise.
7504 (lto_output_string): Likewise.
7505 (output_string_cst): Move to tree-streamer-out.c.
7506 (output_identifier): Likewise.
7507 (output_zero): Move to data-streamer-out.c
7508 (output_uleb128): Likewise.
7509 (output_sleb128): Likewise.
7510 (output_record_start): Move to data-streamer.h
7511 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
7512 (pack_ts_real_cst_value_fields): Likewise.
7513 (pack_ts_fixed_cst_value_fields): Likewise.
7514 (pack_ts_decl_common_value_fields): Likewise.
7515 (pack_ts_decl_wrtl_value_fields): Likewise.
7516 (pack_ts_decl_with_vis_value_fields): Likewise.
7517 (pack_ts_function_decl_value_fields): Likewise.
7518 (pack_ts_type_common_value_fields): Likewise.
7519 (pack_ts_block_value_fields): Likewise.
7520 (pack_ts_translation_unit_decl_value_fields): Likewise.
7521 (pack_value_fields): Likewise.
7522 (lto_output_chain): Likewise.
7523 (lto_output_ts_common_tree_pointers): Likewise.
7524 (lto_output_ts_vector_tree_pointers): Likewise.
7525 (lto_output_ts_complex_tree_pointers): Likewise.
7526 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
7527 (lto_output_ts_decl_common_tree_pointers): Likewise.
7528 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
7529 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
7530 (lto_output_ts_field_decl_tree_pointers): Likewise.
7531 (lto_output_ts_function_decl_tree_pointers): Likewise.
7532 (lto_output_ts_type_common_tree_pointers): Likewise.
7533 (lto_output_ts_type_non_common_tree_pointers): Likewise.
7534 (lto_output_ts_list_tree_pointers): Likewise.
7535 (lto_output_ts_vec_tree_pointers): Likewise.
7536 (lto_output_ts_exp_tree_pointers): Likewise.
7537 (lto_output_ts_block_tree_pointers): Likewise.
7538 (lto_output_ts_binfo_tree_pointers): Likewise.
7539 (lto_output_ts_constructor_tree_pointers): Likewise.
7540 (lto_output_ts_target_option): Likewise.
7541 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
7542 (lto_output_tree_pointers): Likewise.
7543 (lto_output_tree_header): Likewise.
7544 (lto_output_builtin_tree): Likewise.
7545 (lto_write_tree): Likewise.
7546 (lto_output_integer_cst): Likewise.
7547 (lto_output_tree): Likewise.
7548 (output_phi): Move to gimple-streamer-out.c.
7549 (output_gimple_stmt): Likewise.
7550 (output_bb): Likewise.
7551 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
7552 (streamer_hooks): Move to streamer-hooks.c.
7553 (check_handled_ts_structures): Move to tree-streamer.c
7554 (lto_streamer_cache_add_to_node_array): Likewise.
7555 (lto_streamer_cache_insert_1): Likewise.
7556 (lto_streamer_cache_insert): Likewise.
7557 (lto_streamer_cache_insert_at): Likewise.
7558 (lto_streamer_cache_append): Likewise.
7559 (lto_streamer_cache_lookup): Likewise.
7560 (lto_streamer_cache_get): Likewise.
7561 (lto_record_common_node): Likewise.
7562 (lto_preload_common_nodes): Likewise.
7563 (lto_streamer_cache_create): Likewise.
7564 (lto_streamer_cache_delete): Likewise.
7565 (streamer_hooks_init): Move to streamer-hooks.c.
7566 * lto-streamer.h: Include diagnostic.h
7567 (struct output_block, struct lto_input_block,
7568 struct data_in, struct bitpack_d): Remove forward declarations.
7569 (struct bitpack_d): Move to data-streamer.h.
7570 (struct lto_streamer_cache_d): Move to tree-streamer.h.
7571 (struct streamer_hooks): Move to streamer-hooks.h.
7572 (bp_pack_var_len_unsigned): Move to data-streamer.h.
7573 (bp_pack_var_len_int): Likewise.
7574 (bp_unpack_var_len_unsigned): Likewise.
7575 (bp_unpack_var_len_int): Likewise.
7576 (lto_input_location): Declare.
7577 (lto_tag_check_set): Declare.
7578 (lto_init_eh): Declare.
7579 (lto_output_tree_ref): Declare.
7580 (lto_output_location): Declare.
7581 (bitpack_create): Move to data-streamer.h.
7582 (bp_pack_value): Likewise.
7583 (lto_output_bitpack): Likewise.
7584 (lto_input_bitpack): Likewise.
7585 (bp_unpack_value): Likewise.
7586 (lto_output_1_stream): Likewise.
7587 (lto_input_1_unsigned): Likewise.
7588 (lto_output_int_in_range): Likewise.
7589 (lto_input_int_in_range): Likewise.
7590 (bp_pack_int_in_range): Likewise.
7591 (bp_unpack_int_in_range): Likewise.
7592 (lto_output_enum): Likewise.
7593 (lto_input_enum): Likewise.
7594 (bp_pack_enum): Likewise.
7595 (bp_unpack_enum): Likewise.
7596 * streamer-hooks.c: New.
7597 * streamer-hooks.h: New.
7598 * tree-streamer-in.c: New.
7599 * tree-streamer-out.c: New.
7600 * tree-streamer.c: New.
7601 * tree-streamer.h: New.
7602
7603 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7604
7605 * gthr-posix95.h: Remove.
7606 * gthr.h [_PTHREADS95]: Remove.
7607 * configure.ac (enable_threads): Remove posix95.
7608 * configure: Regenerate.
7609 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
7610
7611 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
7612
7613 PR target/49781
7614 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
7615 SImode addresses.
7616 (ix86_print_operand_address): Handle zero-extended addresses.
7617 (memory_address_length): Add length of addr32 prefix for
7618 zero-extended addresses.
7619 (ix86_secondary_reload): Handle moves to/from double-word general
7620 registers from/to zero-extended addresses.
7621 * config/i386/predicates.md (lea_address_operand): Reject
7622 zero-extended operands.
7623
7624 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
7625
7626 PR other/48007
7627 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
7628
7629 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
7630 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
7631
7632 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
7633 (_Unwind_Context_Reg_Val): Likewise.
7634 (_Unwind_Get_Unwind_Word): Likewise.
7635 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
7636 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
7637 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
7638 for EXTENDED_CONTEXT_BIT.
7639 (__frame_state_for): Likewise.
7640 (uw_init_context_1): Likewise.
7641 (_Unwind_GetGR): Updated.
7642 (_Unwind_SetGR): Likewise.
7643 (_Unwind_GetGRPtr): Likewise.
7644 (_Unwind_SetGRPtr): Likewise.
7645 (_Unwind_SetGRValue): Likewise.
7646 (_Unwind_GRByValue): Likewise.
7647 (uw_install_context_1): Likewise.
7648
7649 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
7650 ASSUME_EXTENDED_UNWIND_CONTEXT.
7651 * doc/tm.texi: Regenerated.
7652
7653 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7654
7655 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
7656
7657 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7658
7659 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
7660 Linux/GNU-specific.
7661 (DEC Alpha Options, -mtune): Likewise.
7662 (MIPS Options, -march): native is supported on IRIX.
7663
7664 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7665
7666 * config/sparc/driver-sparc.c: New file.
7667 * config/sparc/x-sparc: New file.
7668 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
7669 * config/sparc/sparc.opt (native): New value for enum processor_type.
7670 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
7671 * config/sparc/sparc.c (sparc_option_override): Abort if
7672 PROCESSOR_NATIVE gets here.
7673 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
7674 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
7675 DRIVER_SELF_SPECS): Define.
7676 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
7677 (SPARC Options, -mtune): Likewise.
7678 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
7679 Substitute result.
7680 * configure: Regenerate.
7681 * Makefile.in (EXTRA_GCC_LIBS): Set.
7682 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
7683 (cpp$(exeext)): Likewise.
7684
7685 2011-08-08 Richard Guenther <rguenther@suse.de>
7686
7687 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
7688 split out from ...
7689 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
7690 by composition.
7691
7692 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
7693
7694 PR tree-optimization/50005
7695 * ipa-inline-analysis (remap_predicate): Add cast to
7696 silence signed/unsigned comparison warning.
7697
7698 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
7699
7700 * modulo-sched.c (get_sched_window): Use a table for the debug output.
7701 Print the current ii.
7702 (sms_schedule_by_order): Reduce whitespace in dump line.
7703
7704 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
7705
7706 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
7707 and one loop for successors. Fix upper bound of memory range.
7708
7709 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
7710
7711 PR target/50001
7712 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
7713 (TARGET_INSTANTIATE_DECLS): New define.
7714
7715 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
7716 Mikael Morin <mikael.morin@sfr.fr>
7717
7718 * Makefile.in (INCLUDES_FOR_TARGET): New.
7719 (LIBGCC2_CFLAGS): Use it.
7720 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
7721
7722 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
7723
7724 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
7725 frame->save_regs_using_mov calculation.
7726
7727 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
7728
7729 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
7730 * config/i386/sse.md (castmode): New mode attribute.
7731 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
7732 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
7733
7734 2011-08-05 Jan Hubicka <jh@suse.cz>
7735
7736 PR middle-end/49494
7737 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
7738
7739 2011-08-05 Jan Hubicka <jh@suse.cz>
7740
7741 PR middle-end/49500
7742 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
7743 handle aliases.
7744 (create_emultls_var):New function.
7745 (ipa_lower_emutls): Handle aliases correctly.
7746
7747 2011-08-05 Jan Hubicka <jh@suse.cz>
7748
7749 PR middle-end/49735
7750 * ipa-inline.c (recursive_inlining): Look through aliases.
7751
7752 2011-08-05 Jason Merrill <jason@redhat.com>
7753
7754 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
7755 declarations to beginning of function.
7756
7757 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
7758
7759 PR rtl-optimization/49900
7760 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
7761 ensure basic blocks stay in the same order.
7762
7763 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
7764
7765 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
7766 store_bit_field.
7767 (s390_expand_atomic): Same.
7768
7769 2011-08-05 Richard Henderson <rth@redhat.com>
7770
7771 PR rtl-opt/49977
7772 * dwarf2cfi.c (scan_insn_after): Split out of ...
7773 (scan_trace): ... here. Correctly place notes wrt sequences.
7774
7775 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
7776 Richard Henderson <rth@redhat.com>
7777
7778 PR rtl-opt/49982
7779 * expr.c (fixup_args_size_notes): Look through no-op moves.
7780
7781 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
7782
7783 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
7784 of "m" for operand 0. Add type and mode attribute.
7785 (*pushxf_nointeger"): Use "<" constraint for operand 0.
7786 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
7787 constraint instead of "o" for opreand 1.
7788 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
7789 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
7790 operand 0, alternative 4.
7791 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
7792
7793 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
7794
7795 * config/i386/predicates.md (lea_address_operand): Rename from
7796 no_seg_address_operand.
7797 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
7798 (*lea_1_zext): Ditto.
7799 (*lea_2): Ditto.
7800 (*lea_2_zext): Ditto.
7801
7802 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
7803
7804 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
7805 parts.base and parts.index.
7806 * config/i386/predicates.md (aligned_operand): Ditto.
7807 (cmpxchg8b_pic_memory_operand): Ditto.
7808
7809 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7810
7811 * config/soft-fp: Move to ../libgcc.
7812 * Makefile.in (SFP_MACHINE): Remove.
7813 (libgcc-support): Remove $(SFP_MACHINE) dependency.
7814 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
7815 * config/arm/t-arm-softfp: Move to
7816 ../libgcc/config/arm/t-softfp.
7817 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
7818 * config/c6x/t-c6x-softfp: Remove.
7819 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
7820 * config/i386/t-fprules-softfp: Move to
7821 ../libgcc/config/t-softfp-tf.
7822 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
7823 * config/ia64/t-fprules-softfp: Remove.
7824 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
7825 * config/lm32/t-fprules-softfp: Remove.
7826 * config/moxie/sfp-machine.h: Remove.
7827 * config/moxie/t-moxie-softfp: Remove.
7828 * config/rs6000/darwin-ldouble-format: Move to
7829 ../libgcc/config/rs6000/ibm-ldouble-format.
7830 * config/rs6000/darwin-ldouble.c: Move to
7831 ../libgcc/config/rs6000/ibm-ldouble.c
7832 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
7833 * config/rs6000/libgcc-ppc64.ver: Likewise.
7834 * config/rs6000/sfp-machine.h: Likewise.
7835 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
7836 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
7837 (LIB2FUNCS_EXTRA): Remove.
7838 (TARGET_LIBGCC2_CFLAGS): Remove.
7839 * config/rs6000/t-aix52: Likewise
7840 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
7841 $(srcdir)/config/rs6000/darwin-ldouble.c.
7842 (SHLIB_MAPFILES): Remove.
7843 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
7844 $(srcdir)/config/rs6000/darwin-ldouble.c.
7845 * config/rs6000/t-fprules-softfp: Move to
7846 ../libgcc/config/t-softfp-sfdf.
7847 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
7848 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
7849 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
7850 $(srcdir)/config/rs6000/darwin-ldouble.c.
7851 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
7852 * config/score/t-score-softfp: Remove.
7853 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
7854 soft-fp/t-softfp from tmake_file.
7855 (arm*-*-uclinux*): Likewise.
7856 (arm*-*-ecos-elf): Likewise.
7857 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
7858 (arm*-*-rtems*): Likewise.
7859 (arm*-*-elf): Likewise.
7860 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
7861 tmake_file.
7862 (moxie-*-uclinux*): Likewise.
7863 (moxie-*-rtems*): Likewise.
7864 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
7865 tmake_file.
7866 (lm32-*-rtems*): Likewise.
7867 (lm32-*-uclinux*): Likewise.
7868 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
7869 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
7870 (powerpc-*-linux*, powerpc64-*-linux*): Remove
7871 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
7872 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
7873 tmake_file.
7874 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
7875 tmake_file.
7876 (tic6x-*-uclinux): Likewise.
7877 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
7878 soft-fp/t-softfp from tmake_file.
7879 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
7880 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
7881 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
7882 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
7883 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
7884
7885 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7886
7887 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
7888 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
7889 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
7890 TPBIT, TPBIT_FUNCS.
7891 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
7892 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
7893 Remove.
7894 * config/arm/t-vxworks: Likewise.
7895 * config/arm/t-wince-pe: Likewise.
7896 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
7897 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7898 * config/bfin/t-bfin-elf: Likewise.
7899 * config/bfin/t-bfin-linux: Likewise.
7900 * config/bfin/t-bfin-uclinux: Likewise.
7901 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
7902 Remove.
7903 * config/fr30/t-fr30: Likewise.
7904 * config/frv/t-frv: Likewise.
7905 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
7906 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7907 * config/m32c/t-m32c: Likewise.
7908 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
7909 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7910 * config/mcore/t-mcore: Likewise.
7911 * config/mep/t-mep: Likewise.
7912 * config/microblaze/t-microblaze: Likewise.
7913 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
7914 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7915 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
7916 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7917 * config/mn10300/t-linux: Remove.
7918 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7919 * config/pdp11/t-pdp11: Likewise.
7920 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
7921 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
7922 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7923 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
7924 * config/rs6000/t-aix52: Likewise.
7925 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
7926 $(srcdir)/config/rs6000/ppc64-fp.c.
7927 * config/rs6000/t-fprules-fpbit: Remove.
7928 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
7929 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7930 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
7931 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7932 * config/sparc/t-elf: Likewise.
7933 * config/sparc/t-leon: Likewise.
7934 * config/sparc/t-leon3: Likewise.
7935 * config/spu/t-spu-elf: Likewise.
7936 (DPBIT_FUNCS): Remove.
7937 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7938 * config/v850/t-v850: Likewise.
7939 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
7940 (avr-*-*): Likewise.
7941 (h8300-*-rtems*): Set libgcc_tm_file.
7942 (h8300-*-elf*): Likewise.
7943 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
7944 tmake_file.
7945 (powerpc-*-eabisim*): Likewise.
7946 (powerpc-*-elf*): Likewise.
7947 (powerpc-*-eabialtivec*): Likewise.
7948 (powerpc-xilinx-eabi*): Likewise.
7949 (powerpc-*-eabi*): Likewise.
7950 (powerpc-*-rtems*): Likewise.
7951 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
7952 (powerpcle-*-elf*): Likewise.
7953 (powerpcle-*-eabisim*): Likewise.
7954 (powerpcle-*-eabi*): Likewise.
7955 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
7956 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
7957 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
7958 Remove.
7959
7960 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7961
7962 * Makefile.in (UNWIND_H): Remove.
7963 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
7964 ../libgcc/Makefile.in.
7965 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
7966 (LIBUNWINDDEP): Remove.
7967 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
7968 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
7969 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
7970 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
7971 Don't copy $(UNWIND_H).
7972 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
7973 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
7974 * aclocal.m4: Regenerate.
7975 * configure: Regenerate.
7976 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
7977 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
7978 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
7979 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
7980 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
7981 * config/arm/libunwind.S, config/arm/pr-support.c,
7982 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
7983 ../libgcc/config/arm.
7984 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
7985 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
7986 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
7987 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
7988 ($(T)frvend$(objext)): Likewise.
7989 * config/ia64/t-glibc (LIB2ADDEH): Remove.
7990 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
7991 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
7992 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
7993 ../libgcc/config/ia64.
7994 * config/ia64/t-hpux (LIB2ADDEH): Remove.
7995 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
7996 * config/ia64/t-vms (LIB2ADDEH): Remove.
7997 * config/ia64/vms.h (UNW_IVMS_MODE,
7998 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
7999 * config/picochip/t-picochip (LIB2ADDEH): Remove.
8000 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
8001 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
8002 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
8003 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
8004 $(srcdir)/../libgcc to refer to unwinder sources.
8005 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
8006 * config/t-darwin (LIB2ADDEH): Remove.
8007 * config/t-freebsd (LIB2ADDEH): Remove.
8008 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
8009 * config/t-libunwind-elf: Move to ../libgcc/config.
8010 * config/t-linux (LIB2ADDEH): Remove.
8011 * config/t-sol2 (LIB2ADDEH): Remove.
8012 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
8013 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
8014
8015 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
8016
8017 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
8018
8019 * doc/invoke.texi: Document core-avx-i.
8020
8021 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8022
8023 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
8024
8025 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
8026
8027 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
8028 result of multiple results reduction when extracting the final
8029 value using scalar code.
8030
8031 2011-08-05 Richard Guenther <rguenther@suse.de>
8032
8033 PR tree-optimization/49984
8034 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
8035
8036 2011-08-05 Richard Guenther <rguenther@suse.de>
8037
8038 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
8039 return true for constant integer ranges.
8040 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
8041 BIT_IOR_EXPR handling.
8042
8043 2011-08-04 Kai Tietz <ktietz@redhat.com>
8044
8045 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
8046 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
8047
8048 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
8049
8050 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
8051 pattern def statement, and its access macro.
8052 (NUM_PATTERNS): Set to 5.
8053 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
8054 pattern def statement.
8055 (vect_transform_loop): Likewise.
8056 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
8057 function vect_recog_over_widening_pattern ().
8058 (vect_operation_fits_smaller_type): New function.
8059 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
8060 Likewise.
8061 (vect_pattern_recog_1): Move the code that marks pattern
8062 statements to vect_mark_pattern_stmts (), and call it. Update
8063 documentation.
8064 * tree-vect-stmts.c (vect_supportable_shift): New function.
8065 (vect_analyze_stmt): Handle pattern def statement.
8066 (new_stmt_vec_info): Initialize pattern def statement.
8067
8068 2011-08-04 Richard Henderson <rth@redhat.com>
8069
8070 PR target/49964
8071 * config/i386/i386.c (ix86_expand_call): Don't create nested
8072 PARALLELs for TARGET_VZEROUPPER.
8073 (ix86_split_call_vzeroupper): Fix extraction of the original call.
8074 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
8075 recognize nested PARALLELs.
8076 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
8077 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
8078 *sibcall_value_pop_vzeroupper): Likewise.
8079
8080 2011-08-04 Richard Henderson <rth@redhat.com>
8081
8082 PR middle-end/49968
8083 * calls.c (expand_call): Use fixup_args_size_notes for
8084 emit_stack_restore.
8085 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
8086 in non-standard modes.
8087
8088 2011-08-04 Jakub Jelinek <jakub@redhat.com>
8089
8090 * gcc.c (self_spec): New variable.
8091 (static_specs): Add self_spec.
8092 (main): Call do_self_spec on "self_spec" specs after reading
8093 user specs files. Move compare_debug handling right after that.
8094
8095 2011-08-04 Richard Guenther <rguenther@suse.de>
8096
8097 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
8098 (value_range_nonnegative_p): New function.
8099 (ssa_name_nonnegative_p): Use it.
8100 (value_range_constant_singleton): New function.
8101 (op_with_constant_singleton_value_range): Use it.
8102 (extract_range_from_binary_expr_1): New function, split out from ...
8103 (extract_range_from_binary_expr): ... this. Remove fallback
8104 constant folding done here.
8105
8106 2011-08-04 Richard Guenther <rguenther@suse.de>
8107
8108 PR tree-optimization/49806
8109 * tree-vrp.c (op_with_boolean_value_range_p): New function.
8110 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
8111 a new statement for a final conversion to bool.
8112
8113 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
8114
8115 * gengtype-state.c: Include "bconfig.h" if
8116 GENERATOR_FILE is defined, "config.h" otherwise.
8117 * gengtype.c: Likewise.
8118 * gengtype-lex.l: Likewise.
8119 * gengtype-parse.c: Likewise.
8120 * Makefile.in (gengtype-lex.o-warn): New variable.
8121 (plugin_resourcesdir): Likewise.
8122 (plugin_bindir): Likewise.
8123 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
8124 (MOSTLYCLEANFILES): Add gengtype$(exeext).
8125 (native): Depend on gengtype$(exeext) is $enable_plugin
8126 is set to "yes".
8127 (gtype.state): Depend on s-gtype. Use temporary file.
8128 (gengtype-lex.o): New rule.
8129 (gengtype-parse.o): Likewise.
8130 (gengtype-state.o): Likewise.
8131 (gengtype$(exeext)): Likewise.
8132 (install-gengtype): Likewise.
8133 (gengtype.o): Likewise.
8134 (build/gengtype.o): Depend on version.h.
8135 (build/gengtype-state): Depend on double-int.h, version.h,
8136 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
8137 (install-plugin): Depend on install-gengtype.
8138
8139 2011-08-04 Jakub Jelinek <jakub@redhat.com>
8140
8141 PR middle-end/49905
8142 * tree.h (init_attributes): New prototype.
8143 * attribs.c (init_attributes): No longer static.
8144
8145 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8146
8147 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
8148 maybe_suffix.
8149
8150 2011-08-03 David Li <davidxl@google.com>
8151
8152 * tree-optimize.c (execute_fixup_cfg): Fix up entry
8153 outgoing edge counts after inlining.
8154
8155 2011-08-03 David Li <davidxl@google.com>
8156
8157 * profile.c (compute_branch_probabilities): Compute
8158 function frequency after profile annotation.
8159
8160 2011-08-04 Alan Modra <amodra@gmail.com>
8161
8162 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
8163 use_backchain_to_restore_sp initialisation.
8164 (rs6000_legitimate_offset_address_p): Simplify offset test.
8165
8166 2011-08-03 Richard Henderson <rth@redhat.com>
8167
8168 * config/spu/spu.md: Use define_c_enum instead of define_constants.
8169 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
8170 (UNSPECV_NOP): New.
8171
8172 2011-08-03 Richard Henderson <rth@redhat.com>
8173
8174 PR target/34888
8175 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
8176
8177 2011-08-03 Jakub Jelinek <jakub@redhat.com>
8178
8179 PR tree-optimization/49948
8180 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
8181
8182 2011-08-03 Anatoly Sokolov <aesok@post.ru>
8183
8184 * config/m32c/m32c.c (class_sizes): Remove.
8185 (reduce_class): Change arguments and return type to reg_class_t.
8186 Change type cc var to HARD_REG_SET. Change type best var to
8187 reg_class_t. Change type best_size var to unsigned int. Remove
8188 initialization class_sizes var. Use reg_class_size array instead
8189 of class_sizes. Use reg_class_contents array instead
8190 of class_contents.
8191
8192 2011-08-03 Richard Guenther <rguenther@suse.de>
8193
8194 PR middle-end/49958
8195 * fold-const.c (fold_binary_loc): Only associate
8196 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
8197 overflow wraps.
8198
8199 2011-08-03 Alan Modra <amodra@gmail.com>
8200
8201 PR rtl-optimization/49941
8202 * jump.c (mark_jump_label): Comment.
8203 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
8204 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
8205 (mark_used_flags): Don't mark RETURN.
8206
8207 2011-08-03 Richard Guenther <rguenther@suse.de>
8208
8209 PR tree-optimization/49938
8210 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
8211 deal with a POLYNOMIAL_CHREC.
8212
8213 2011-08-03 Revital Eres <revital.eres@linaro.org>
8214
8215 * modulo-sched.c (calculate_stage_count,
8216 calculate_must_precede_follow, get_sched_window,
8217 try_scheduling_node_in_cycle, remove_node_from_ps): Add
8218 declaration.
8219 (update_node_sched_params, set_must_precede_follow, optimize_sc):
8220 New functions.
8221 (reset_sched_times): Call update_node_sched_params.
8222 (sms_schedule): Call optimize_sc.
8223 (get_sched_window): Change function arguments.
8224 (sms_schedule_by_order): Update call to get_sched_window.
8225 Call set_must_precede_follow.
8226 (calculate_stage_count): Add function argument.
8227
8228 2011-08-02 Richard Henderson <rth@redhat.com>
8229
8230 PR target/49864
8231 PR target/49879
8232 * reg-notes.def (REG_ARGS_SIZE): New.
8233 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
8234 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
8235 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
8236 different stack levels.
8237 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
8238 (maybe_move_args_size_note): New.
8239 (combine_stack_adjustments_for_block): Use it.
8240 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
8241 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
8242 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
8243 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
8244 (cur_cfa): New.
8245 (queued_args_size): Remove.
8246 (add_cfi_args_size): Assert size is non-negative.
8247 (stack_adjust_offset, dwarf2out_args_size): Remove.
8248 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
8249 (notice_args_size, notice_eh_throw): New.
8250 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
8251 (dwarf2out_frame_debug_adjust_cfa): Likewise.
8252 (dwarf2out_frame_debug_cfa_offset): Likewise.
8253 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
8254 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
8255 (change_cfi_row): Don't emit args_size.
8256 (maybe_record_trace_start_abnormal): Split out from ...
8257 (maybe_record_trace_start): Here. Set args_size_undefined.
8258 (create_trace_edges): Update to match.
8259 (scan_trace): Handle REG_ARGS_SIZE.
8260 (connect_traces): Connect args_size between EH insns.
8261 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
8262 * explow.c (suppress_reg_args_size): New.
8263 (adjust_stack_1): Split out from ...
8264 (adjust_stack): ... here.
8265 (anti_adjust_stack): Use it.
8266 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
8267 * expr.c (mem_autoinc_base): New.
8268 (fixup_args_size_notes): New.
8269 (emit_single_push_insn_1): Rename from emit_single_push_insn.
8270 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
8271 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
8272 * reload1.c (reload_as_needed): Likewise.
8273 * rtl.h (fixup_args_size_notes): Declare.
8274
8275 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
8276
8277 PR bootstrap/49914
8278 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
8279 of abs.
8280 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
8281 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
8282
8283 2011-08-02 Richard Henderson <rth@redhat.com>
8284
8285 * config/h8300/h8300.c (push, pop): Return the insn.
8286 (h8300_swap_into_er6): Generate correct unwind info.
8287 (h8300_swap_out_of_er6): Likewise.
8288 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
8289 complex cfa expression.
8290 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
8291
8292 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
8293
8294 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
8295
8296 2011-08-02 Richard Henderson <rth@redhat.com>
8297
8298 PR target/49878
8299 * config/h8300/h8300.c (h8300_move_ok): New.
8300 * config/h8300/h8300-protos.h: Declare it.
8301 * config/h8300/h8300.md (P): New mode iterator.
8302 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
8303 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
8304 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
8305 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
8306 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
8307 and pushqi1_h8300hs_normal; use PRE_MODIFY and
8308 register_no_sp_elim_operand.
8309 (*pushhi1_h8300hs_<P>): Similarly.
8310 (pushqi1, pushhi1, pushhi1_h8300): Remove.
8311 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
8312
8313 2011-08-02 Richard Henderson <rth@redhat.com>
8314
8315 PR target/49881
8316 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
8317
8318 2011-08-02 Jakub Jelinek <jakub@redhat.com>
8319
8320 * c-parser.c (enum c_parser_prec): New enum, moved from within
8321 c_parser_binary_expression.
8322 (c_parser_binary_expression): Add PREC argument. Stop parsing
8323 if operator has lower or equal precedence than PREC.
8324 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
8325 callers.
8326 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
8327 Adjust c_finish_omp_atomic caller.
8328 (c_parser_omp_taskyield): New function.
8329 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
8330 (c_parser_omp_clause_name): Handle final and mergeable clauses.
8331 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
8332 functions.
8333 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
8334 and PRAGMA_OMP_CLAUSE_MERGEABLE.
8335 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
8336 (c_parser_omp_clause_reduction): Handle min and max.
8337 * c-typeck.c (c_finish_omp_clauses): Don't complain about
8338 const qualified predetermined vars in firstprivate clause.
8339 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8340 Handle MIN_EXPR and MAX_EXPR.
8341 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
8342 and OMP_CLAUSE_MERGEABLE.
8343 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
8344 and OMP_ATOMIC_CAPTURE_NEW.
8345 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
8346 OMP_CLAUSE_MERGEABLE.
8347 (omp_clause_code_name): Likewise.
8348 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8349 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
8350 and OMP_CLAUSE_MERGEABLE.
8351 (OMP_CLAUSE_FINAL_EXPR): Define.
8352 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
8353 OMP_CLAUSE_MERGEABLE.
8354 (expand_task_call): Likewise.
8355 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
8356 (expand_omp_atomic_fetch_op): Handle cases where old or new
8357 value is needed afterwards.
8358 (expand_omp_atomic): Call expand_omp_atomic_load resp.
8359 expand_omp_atomic_store.
8360 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
8361 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
8362 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
8363 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8364 * tree-nested.c (convert_nonlocal_omp_clauses,
8365 convert_local_omp_clauses): Likewise.
8366 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
8367 OMP_ATOMIC_CAPTURE_NEW): New.
8368 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
8369 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
8370 New inlines.
8371 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
8372 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
8373 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8374
8375 2011-08-02 Kai Tietz <ktietz@redhat.com>
8376
8377 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
8378 boolean-type.
8379 (ssa_forward_propagate_and_combine): Interprete result of
8380 forward_propagate_comparison.
8381 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
8382 boolean-typed operands for comparisons.
8383
8384 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
8385
8386 * config/avr/libgcc.S: Gather related function in the
8387 same input section.
8388 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
8389 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
8390 references.
8391 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
8392 __udivmodsi4, __divmodsi4, __prologue_saves__,
8393 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
8394 __do_copy_data, __do_clear_bss, __do_global_ctors,
8395 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
8396
8397 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
8398
8399 PR target/47766
8400 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
8401 (stack_protect_test): The pattern compares ptr_mode value.
8402
8403 2011-08-02 Alan Modra <amodra@gmail.com>
8404
8405 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
8406 note for save_LR_around_toc_setup sequence.
8407
8408 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
8409
8410 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
8411
8412 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
8413 Joseph Myers <joseph@codesourcery.com>
8414
8415 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
8416 * hwint.c: Include diagnostic-core.h.
8417 (abs_hwi): New.
8418 (gcd): Moved here...
8419 (pos_mul_hwi): New.
8420 (mul_hwi): New.
8421 (least_common_multiple): Moved here...
8422 * hwint.h (gcd): ... from here.
8423 (least_common_multiple): ... from here.
8424 (HOST_WIDE_INT_MIN): New.
8425 (HOST_WIDE_INT_MAX): New.
8426 (abs_hwi): Declared.
8427 (gcd): Declared.
8428 (pos_mul_hwi): Declared.
8429 (mul_hwi): Declared.
8430 (least_common_multiple): Declared.
8431 * omega.c (check_pos_mul): Removed.
8432 (check_mul): Removed.
8433 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
8434 mul_hwi instead of check_mul.
8435
8436 2011-08-01 Richard Henderson <rth@redhat.com>
8437
8438 PR target/49881
8439 * config/avr/avr.h (PUSH_ROUNDING): New.
8440 * config/avr/avr.md (pushqi1): Rename from *pushqi.
8441 (*pushhi, *pushsi, *pushsf): Remove.
8442 (MPUSH): New mode iterator.
8443 (push<MPUSH>1): New expander.
8444
8445 2011-08-01 Anatoly Sokolov <aesok@post.ru>
8446
8447 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
8448 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
8449 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
8450 mmix_preferred_output_reload_class): Remove.
8451 * config/mmix/mmix.c (mmix_preferred_reload_class,
8452 mmix_preferred_output_reload_class): Make static. Change rclass
8453 argument and return type to reg_class_t.
8454 (TARGET_PREFERRED_RELOAD_CLASS,
8455 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8456
8457 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
8458
8459 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
8460 handling.
8461
8462 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
8463
8464 PR target/47766
8465 * config/i386/i386.md (PTR): New.
8466 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
8467 (stack_protect_test): Likewise.
8468 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
8469 (stack_tls_protect_set_<mode>): Likewise.
8470 (stack_tls_protect_test_<mode>): Likewise.
8471
8472 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
8473
8474 PR target/49927
8475 * config/i386/i386.c (ix86_address_subreg_operand): New.
8476 (ix86_decompose_address): Use ix86_address_subreg_operand.
8477 (ix86_legitimate_address_p): Do not assert that subregs satisfy
8478 register_no_elim_operand in DImode.
8479
8480 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
8481
8482 PR tree-optimization/49926
8483 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
8484 in a chain doesn't have uses both inside and outside the loop.
8485
8486 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
8487
8488 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
8489 * config/avr/avr-devices.c (avr_mcu_types): Use it.
8490 * config/avr/avr-mcus.def (AVR_MCU): Use it.
8491 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
8492 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
8493 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
8494 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
8495 to detect if XJMP must not be skipped.
8496
8497 2011-08-02 Alan Modra <amodra@gmail.com>
8498
8499 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
8500 Delete.
8501 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
8502 (rs6000_emit_prologue): Don't prematurely return when
8503 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
8504 save_toc_in_prologue case.
8505 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
8506 calls_alloca.
8507
8508 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
8509
8510 * config/avr/avr-devices.c: Delete SVN property svn:executable.
8511 * config/avr/predicates.md: Ditto.
8512 * config/avr/driver-avr.c: Ditto.
8513 * config/avr/genopt.sh: Set SVN property svn:executable to *.
8514
8515 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
8516
8517 * calls.c (emit_library_call_value_1): Declare size only if
8518 BLOCK_REG_PADDING is defined.
8519
8520 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
8521
8522 PR target/49547
8523 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
8524 (x86_64-*-*): Likewise.
8525 * config/i386/i386.opt (mlzcnt): New.
8526 * config/i386/abmintrin.h: File removed.
8527 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
8528 * config/i386/lzcntintrin.h: ... here. New file.
8529 (__lzcnt): Rename to ...
8530 (__lzcnt32): ... this.
8531 * config/i386/bmiintrin.h (head): Update copyright year.
8532 (__lzcnt_u16): Removed.
8533 (__lzcnt_u32): Likewise.
8534 (__lzcnt_u64): Likewise.
8535 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
8536 is defined, remove abmintrin.h.
8537 * config/i386/cpuid.h (bit_LZCNT): New.
8538 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8539 LZCNT feature.
8540 * config/i386/i386-c.c (ix86_target_macros_internal): Define
8541 __LZCNT__ if needed.
8542 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
8543 (ix86_option_override_internal): Handle LZCNT option.
8544 (ix86_valid_target_attribute_inner_p): Likewise.
8545 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
8546 * config/i386/i386.h (TARGET_LZCNT): New.
8547 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
8548 * config/i386/i386.md (clz<mode>2): Update insn constraint.
8549 (clz<mode>2_lzcnt): Likewise.
8550 * doc/invoke.texi: Mention -mlzcnt option.
8551 * doc/extend.texi: Likewise.
8552
8553 2011-08-01 Julian Brown <julian@codesourcery.com>
8554
8555 * configure.ac (fixed-point): Add ARM support.
8556 * configure: Regenerate.
8557 * config/arm/arm.c (arm_fixed_mode_set): New struct.
8558 (arm_set_fixed_optab_libfunc): New.
8559 (arm_set_fixed_conv_libfunc): New.
8560 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
8561 ARM-specific names.
8562 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
8563 return values in SImode.
8564 (arm_return_in_msb): Return fixed-point types in the msb.
8565 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
8566 upwards.
8567 (arm_scalar_mode_supported_p): Support fixed-point modes.
8568 (arm_vector_mode_supported_p): Support vector fixed-point modes.
8569 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
8570 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
8571 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
8572 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
8573 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
8574 New mode iterators.
8575 (qaddsub_suf): New mode attribute.
8576 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
8577 vector modes.
8578 * config/arm/predicates.md (sat_shift_operator): New predicate.
8579 * config/arm/arm-fixed.md: New.
8580 * config/arm/arm.md: Include arm-fixed.md.
8581 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
8582
8583 2011-08-01 Julian Brown <julian@codesourcery.com>
8584
8585 * calls.c (emit_library_call_value_1): Support padding for libcall
8586 arguments and return values.
8587 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
8588 downwards in big-endian mode.
8589
8590 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8591
8592 PR debug/49887
8593 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
8594 * config/sol2-protos.h: Likewise.
8595 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
8596 solaris_code_end.
8597 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
8598 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
8599 solaris_file_end.
8600 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
8601
8602 2011-08-01 Julian Brown <julian@codesourcery.com>
8603
8604 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
8605
8606 2011-08-01 Julian Brown <julian@codesourcery.com>
8607
8608 * final.c (output_addr_const): Print fixed-point constants as
8609 decimal not hex.
8610
8611 2011-08-01 Richard Guenther <rguenther@suse.de>
8612
8613 * stor-layout.c (initialize_sizetypes): Properly sign-extend
8614 bitsiztype TYPE_MAX_VALUE.
8615
8616 2011-08-01 Julian Brown <julian@codesourcery.com>
8617
8618 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
8619 comparison helpers.
8620
8621 2011-07-31 Richard Henderson <rth@redhat.com>
8622
8623 * config/h8300/crti.asm: Add flags to .section directive.
8624 * config/h8300/crtn.asm: Likewise.
8625
8626 2011-07-31 Richard Henderson <rth@redhat.com>
8627
8628 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
8629 * tree.c (build_common_tree_nodes): Likewise.
8630
8631 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
8632
8633 PR target/49880
8634 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
8635 (divsi3_i1): Likewise.
8636
8637 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8638
8639 PR tree-optimization/49749
8640 * tree-ssa-reassoc.c (get_rank): New forward declaration.
8641 (PHI_LOOP_BIAS): New macro.
8642 (phi_rank): New function.
8643 (loop_carried_phi): Likewise.
8644 (propagate_rank): Likewise.
8645 (get_rank): Add calls to phi_rank and propagate_rank.
8646
8647 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
8648
8649 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
8650 of TARGET_64BIT.
8651 (PTRDIFF_TYPE): Likewise.
8652
8653 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
8654
8655 PR target/49920
8656 * config/i386/i386.md (strset): Do not expand strset_singleop
8657 when %eax or $edi are fixed.
8658 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
8659 (*strsetsi_1): Ditto.
8660 (*strsethi_1): Ditto.
8661 (*strsetqi_1): Ditto.
8662 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
8663 (*rep_stossi): Ditto.
8664 (*rep_stosqi): Ditto.
8665 (*strlenqi_1): Ditto.
8666 (cmpstrnsi): Also fail when %ecx is fixed.
8667 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
8668 (*cmpstrnqi_1): Ditto.
8669 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
8670 (*strmovsi_1): Ditto.
8671 (*strmovhi_1): Ditto.
8672 (*strmovqi_1): Ditto.
8673 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
8674 (*rep_movsi): Ditto.
8675 (*rep_movqi): Ditto.
8676
8677 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
8678
8679 PR target/47908
8680 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
8681 Disable instruction scheduling for non-ColdFire targets.
8682 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
8683
8684 2011-07-31 Revital Eres <revital.eres@linaro.org>
8685
8686 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
8687 of anti-dep edge from a branch.
8688 (add_cross_iteration_register_deps): Create anti-dep edge from
8689 a branch.
8690
8691 2011-07-31 Revital Eres <revital.eres@linaro.org>
8692
8693 * modulo-sched.c: Change comment.
8694 (reset_sched_times): Fix print message.
8695 (print_partial_schedule): Add print info.
8696
8697 2011-07-31 Tom de Vries <tom@codesourcery.com>
8698
8699 PR middle-end/43513
8700 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
8701 get_object_alignment and TYPE_ALIGN.
8702
8703 2011-07-30 Tom de Vries <tom@codesourcery.com>
8704
8705 PR middle-end/43513
8706 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
8707 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
8708
8709 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8710
8711 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
8712 <sys/sbd.h>.
8713 (cpu_types): New array.
8714 (cputype): New function.
8715 (host_detect_local_cpu): Only define buf, f if !__sgi__.
8716 Use scaninvent instead of /proc/cpuinfo if __sgi__.
8717 * config.host: Also use driver-native.o, mips/x-native on
8718 mips-sgi-irix*.
8719 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
8720 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
8721 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
8722
8723 2011-07-29 Jakub Jelinek <jakub@redhat.com>
8724
8725 PR middle-end/49897
8726 PR middle-end/49898
8727 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
8728 in nested parallel and outer is a gimple_reg, mark it as addressable
8729 and set its bit in task_shared_vars bitmap too.
8730
8731 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
8732
8733 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
8734
8735 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8736
8737 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
8738 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
8739 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
8740 AMASK_LOCKPFTCHOK): Define.
8741 (host_detect_local_cpu): Remove buf, f, cpu_names.
8742 Define cpu_types, implver, amask.
8743 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
8744 native CPU.
8745 * config.host: Also use driver-alpha.o, alpha/x-alpha on
8746 alpha*-dec-osf*.
8747 * config/alpha/osf5.h [__alpha__ || __alpha]
8748 (host_detect_local_cpu): Declare.
8749 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
8750 (DRIVER_SELF_SPECS): Define.
8751
8752 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
8753
8754 PR target/47715
8755 * config/i386/i386.md (*load_tp_x32): New.
8756 (*load_tp_x32_zext): Ditto.
8757 (*add_tp_x32): Ditto.
8758 (*add_tp_x32_zext): Ditto.
8759 (*load_tp_<mode>): Disable for TARGET_X32 targets.
8760 (*add_tp_<mode>): Ditto.
8761 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
8762 ptr_mode and convert to Pmode if needed.
8763
8764 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
8765
8766 PR target/49687
8767 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
8768 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
8769 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
8770 Add X to register footprint: Clobber r26/r27.
8771
8772 2011-07-29 Richard Guenther <rguenther@suse.de>
8773
8774 * builtins.c (fold_builtin_signbit): Build the comparison
8775 with a proper type.
8776
8777 2011-07-29 Richard Guenther <rguenther@suse.de>
8778
8779 PR tree-optimization/49893
8780 * tree-predcom.c (suitable_reference_p): Volatile references
8781 are not suitable.
8782
8783 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
8784
8785 PR target/49313
8786 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
8787 (__ctzsi2): Result for 0 may be undefined.
8788 (__ctzhi2): Result for 0 may be undefined.
8789 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
8790 (__popcountsi2): Ditto. And don't clobber r26.
8791 (__popcountdi2): Ditto. And don't clobber r27.
8792 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
8793 (parityhi2): New expand.
8794 (paritysi2): New expand.
8795 (popcounthi2): New expand.
8796 (popcountsi2): New expand.
8797 (clzhi2): New expand.
8798 (clzsi2): New expand.
8799 (ctzhi2): New expand.
8800 (ctzsi2): New expand.
8801 (ffshi2): New expand.
8802 (ffssi2): New expand.
8803 (copysignsf3): New insn.
8804 (bswapsi2): New expand.
8805 (*parityhi2.libgcc): New insn.
8806 (*parityqihi2.libgcc): New insn.
8807 (*paritysihi2.libgcc): New insn.
8808 (*popcounthi2.libgcc): New insn.
8809 (*popcountsi2.libgcc): New insn.
8810 (*popcountqi2.libgcc): New insn.
8811 (*popcountqihi2.libgcc): New insn-and-split.
8812 (*clzhi2.libgcc): New insn.
8813 (*clzsihi2.libgcc): New insn.
8814 (*ctzhi2.libgcc): New insn.
8815 (*ctzsihi2.libgcc): New insn.
8816 (*ffshi2.libgcc): New insn.
8817 (*ffssihi2.libgcc): New insn.
8818 (*bswapsi2.libgcc): New insn.
8819
8820 2011-07-29 Richard Guenther <rguenther@suse.de>
8821
8822 * tree-vrp.c (get_value_range): Only set parameter default
8823 definitions to varying, leave others at undefined.
8824 (extract_range_from_binary_expr): Fix undefined handling.
8825 (vrp_visit_phi_node): Handle merged undefined state.
8826
8827 2011-07-29 Wei Guozhi <carrot@google.com>
8828
8829 PR rtl-optimization/49799
8830 * combine.c (make_compound_operation): Check if the bit field is valid
8831 before change it to bit field extraction.
8832
8833 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
8834
8835 PR rtl-optimization/49891
8836 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
8837 newly created returnjumps.
8838
8839 2011-07-28 DJ Delorie <dj@redhat.com>
8840
8841 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
8842 local frame in a naked function, and produce a suitable error for
8843 that specific case.
8844
8845 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
8846 registers to be reloaded in HI classes when the target is HI.
8847
8848 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
8849
8850 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
8851 bound_one, bound_two.
8852
8853 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
8854
8855 PR middle-end/48648
8856 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
8857 CLAST assignments.
8858 (translate_clast): Same.
8859 (translate_clast_assignment): New.
8860
8861 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
8862
8863 PR tree-optimization/49876
8864 * sese.c (rename_uses): Do not return false on gloog_error: set
8865 the new_expr to integer_zero_node and continue code generation.
8866 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
8867
8868 2011-07-28 Jakub Jelinek <jakub@redhat.com>
8869
8870 PR debug/49846
8871 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
8872 arguments also check if they aren't initialized with a MODE_INT
8873 mode of the same size.
8874
8875 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
8876
8877 * expr.c (get_bit_range): Handle *MEM_REF's.
8878
8879 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
8880
8881 * rtlanal.c (tablejump_p): False for returns.
8882 * reorg.c (first_active_target_insn): New static function.
8883 (find_end_label): Set JUMP_LABEL for a new returnjump.
8884 (optimize_skip, get_jump_flags, rare_destination,
8885 mostly_true_jump, get_branch_condition,
8886 steal_delay_list_from_target, own_thread_p,
8887 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
8888 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
8889 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
8890 * jump.c (delete_related_insns): Likewise.
8891 (jump_to_label_p): New function.
8892 (redirect_target): New static function.
8893 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
8894 (redirect_jump_1): Assert that the new label is nonnull.
8895 (redirect_jump): Likewise.
8896 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
8897 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
8898 exit block.
8899 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
8900 changed. Ensure that the right label is passed to redirect_jump.
8901 * function.c (emit_return_into_block,
8902 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
8903 ret_rtx in their JUMP_LABEL.
8904 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
8905 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
8906 pass ret_rtx as label.
8907 * cfglayout.c (fixup_reorder_chain): Use
8908 force_nonfallthru_and_redirect rather than force_nonfallthru.
8909 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
8910 * rtl.h (ANY_RETURN_P): New macro.
8911 (jump_to_label_p): Declare.
8912 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
8913 JUMP_LABELs.
8914 (mark_target_live_regs): Likewise.
8915 * basic-block.h (force_nonfallthru_and_redirect): Declare.
8916 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
8917 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
8918 alpha_tablejump_best_label): Remove functions.
8919 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
8920 alpha_tablejump_best_label): Remove declarations.
8921 * config/sh/sh.c (barrier_align, split_branches): Adjust for
8922 ret_rtx in JUMP_LABELs.
8923 * config/arm/arm.c (is_jump_table): Likewise.
8924
8925 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
8926
8927 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
8928 special predicate. Remove explicit mode checks.
8929
8930 2011-07-28 Jakub Jelinek <jakub@redhat.com>
8931
8932 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
8933 DW_AT_data_member_location containing just DW_OP_plus_uconst.
8934
8935 PR debug/49871
8936 * dwarf2out.c (size_of_die, value_format, output_die): Use
8937 DW_FORM_udata instead of DW_FORM_data[48] for
8938 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
8939
8940 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
8941
8942 * config/i386/i386.md (*tls_global_dynamic_64): Update
8943 length attribute.
8944
8945 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
8946
8947 PR target/47715
8948 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
8949 tls_symbolic_operand check. Update code sequence for TARGET_X32.
8950 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
8951 (tls_dynamic_gnu2_64): Ditto.
8952 (*tls_dynamic_gnu2_lea_64): Ditto.
8953 (*tls_dynamic_gnu2_call_64): Ditto.
8954 (*tls_dynamic_gnu2_combine_64): Ditto.
8955
8956 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
8957
8958 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
8959
8960 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
8961
8962 PR target/47364
8963 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
8964
8965 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8966
8967 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
8968 before the core constraints. Adjust attributes.
8969 ("*thumb2_movdf_vfp"): Likewise.
8970
8971 2011-07-28 Kai Tietz <ktietz@redhat.com>
8972
8973 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
8974 (simplify_truth_ops_using_ranges): Likewise.
8975 (build_assert_expr_for): Likewise.
8976 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
8977 and handle BIT_NOT_EXPR for truth-operation.
8978
8979 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
8980
8981 PR target/49313
8982 Undo r176835 from trunk
8983 2011-07-27 Georg-Johann Lay
8984
8985 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
8986
8987 PR target/49687
8988 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
8989 Add _muluhisi3, _mulshisi3, _usmulhisi3.
8990 * config/avr/libgcc.S (__mulsi3): Rewrite.
8991 (__mulhisi3): Rewrite.
8992 (__umulhisi3): Rewrite.
8993 (__usmulhisi3): New.
8994 (__muluhisi3): New.
8995 (__mulshisi3): New.
8996 (__mulohisi3): New.
8997 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
8998 declare.
8999 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
9000 (pseudo_register_or_const_int_operand): New.
9001 (combine_pseudo_register_operand): New.
9002 (u16_operand): New.
9003 (s16_operand): New.
9004 (o16_operand): New.
9005 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
9006 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
9007 (any_extend, any_extend2): New code iterators.
9008 (extend_prefix): New code attribute.
9009 (mulsi3): Rewrite. Turn insn to expander.
9010 (mulhisi3): Ditto.
9011 (umulhisi3): Ditto.
9012 (usmulhisi3): New expander.
9013 (*mulsi3): New insn-and-split.
9014 (mulu<mode>si3): New insn-and-split.
9015 (muls<mode>si3): New insn-and-split.
9016 (mulohisi3): New insn-and-split.
9017 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
9018 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
9019 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
9020 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
9021 insn-and-split.
9022 (*mulsi3_call): Rewrite.
9023 (*mulhisi3_call): Rewrite.
9024 (*umulhisi3_call): Rewrite.
9025 (*usmulhisi3_call): New insn.
9026 (*muluhisi3_call): New insn.
9027 (*mulshisi3_call): New insn.
9028 (*mulohisi3_call): New insn.
9029 (extendqihi2): Use combine_pseudo_register_operand as predicate
9030 for operand 1.
9031 (extendqisi2): Ditto.
9032 (zero_extendqihi2): Ditto.
9033 (zero_extendqisi2): Ditto.
9034 (zero_extendhisi2): Ditto.
9035 (extendhisi2): Ditto. Don't early-clobber operand 0.
9036
9037 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
9038
9039 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
9040
9041 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
9042
9043 PR tree-optimization/49471
9044 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
9045 iv only when the largest type is unsigned. Do not call
9046 lang_hooks.types.type_for_size.
9047
9048 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
9049
9050 PR middle-end/45450
9051 * graphite-poly.c (apply_poly_transforms): Disable legality check
9052 after an openscop read.
9053
9054 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
9055
9056 PR middle-end/47691
9057 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
9058 copy_bb_and_scalar_dependences.
9059 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
9060 (graphite_copy_stmts_from_block): Update call to rename_uses.
9061 (copy_bb_and_scalar_dependences): Update call to
9062 graphite_copy_stmts_from_block.
9063 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
9064
9065 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
9066
9067 PR target/49313
9068 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
9069 (__ctzsi2): Result for 0 may be undefined.
9070 (__ctzhi2): Result for 0 may be undefined.
9071 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
9072 (__popcountsi2): Ditto. And don't clobber r26.
9073 (__popcountdi2): Ditto. And don't clobber r27.
9074 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
9075 (parityhi2): New expand.
9076 (paritysi2): New expand.
9077 (popcounthi2): New expand.
9078 (popcountsi2): New expand.
9079 (clzhi2): New expand.
9080 (clzsi2): New expand.
9081 (ctzhi2): New expand.
9082 (ctzsi2): New expand.
9083 (ffshi2): New expand.
9084 (ffssi2): New expand.
9085 (copysignsf3): New insn.
9086 (bswapsi2): New expand.
9087 (*parityhi2.libgcc): New insn.
9088 (*parityqihi2.libgcc): New insn.
9089 (*paritysihi2.libgcc): New insn.
9090 (*popcounthi2.libgcc): New insn.
9091 (*popcountsi2.libgcc): New insn.
9092 (*popcountqi2.libgcc): New insn.
9093 (*popcountqihi2.libgcc): New insn-and-split.
9094 (*clzhi2.libgcc): New insn.
9095 (*clzsihi2.libgcc): New insn.
9096 (*ctzhi2.libgcc): New insn.
9097 (*ctzsihi2.libgcc): New insn.
9098 (*ffshi2.libgcc): New insn.
9099 (*ffssihi2.libgcc): New insn.
9100 (*bswapsi2.libgcc): New insn.
9101
9102 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
9103
9104 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
9105 the mode of symbolic_opreand RTXes.
9106
9107 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
9108
9109 * config/i386/predicates.md (x86_64_movabs_operand): Return false
9110 for pic_32bit_operand RTXes.
9111 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
9112 in DImode.
9113
9114 2011-07-27 Kai Tietz <ktietz@redhat.com>
9115
9116 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
9117 for 32-bit, too.
9118 (ix86_handle_abi_attribute): Allow function attributes
9119 ms_abi/sysv_abi in 32-bit mode, too.
9120 * doc/extend.texi: Adjust attribute documentation.
9121
9122 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
9123 expression handling.
9124 (and_var_with_comparison_1): Likewise.
9125
9126 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
9127
9128 * params.h (ALLOW_STORE_DATA_RACES): New.
9129 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
9130 * Makefile.in (expr.o): Depend on PARAMS_H.
9131 * machmode.h (get_best_mode): Add argument.
9132 * fold-const.c (optimize_bit_field_compare): Add argument to
9133 get_best_mode.
9134 (fold_truthop): Same.
9135 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
9136 * expr.c (emit_group_store): Same.
9137 (copy_blkmode_from_reg): Same.
9138 (write_complex_part): Same.
9139 (optimize_bitfield_assignment_op): Add argument.
9140 Add argument to get_best_mode.
9141 (get_bit_range): New.
9142 (expand_assignment): Calculate maxbits and pass it down accordingly.
9143 (store_field): New argument.
9144 (expand_expr_real_2): New argument to store_field. Include params.h.
9145 * expr.h (store_bit_field): New argument.
9146 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
9147 into account maxbits.
9148 * calls.c (store_unaligned_arguments_into_pseudos): New argument
9149 to store_bit_field.
9150 * expmed.c (store_bit_field_1): New argument. Use it.
9151 (store_bit_field): Same.
9152 (store_fixed_bit_field): Same.
9153 (store_split_bit_field): Same.
9154 (extract_bit_field_1): Pass new argument to get_best_mode.
9155 (extract_bit_field): Same.
9156 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
9157 * doc/invoke.texi: Document parameter allow-store-data-races.
9158
9159 2011-07-27 Jakub Jelinek <jakub@redhat.com>
9160
9161 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
9162
9163 2011-07-27 Kai Tietz <ktietz@redhat.com>
9164
9165 * tree-vrp.c (extract_range_from_binary_expr): Remove
9166 TRUTH-binary cases and add new bitwise-cases.
9167 (extract_range_from_assignment): Likewise.
9168 (register_edge_assert_for_1): Likeiwise.
9169 (register_edge_assert_for): Likewise.
9170 (simplify_truth_ops_using_ranges): Likewise.
9171 (simplify_stmt_using_ranges): Likewise.
9172
9173 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
9174
9175 PR target/47372
9176 * config/i386/i386.c (ix86_delegitimize_address): Call
9177 simplify_gen_subreg for PIC with mode of x only if modes of
9178 x and orig_x are different.
9179
9180 2011-07-26 Jakub Jelinek <jakub@redhat.com>
9181
9182 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
9183 to GC allocated copy of the string.
9184 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
9185 before .debug_line, not after it.
9186
9187 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
9188
9189 PR middle-end/47046
9190 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
9191 evolution_function_is_affine_p on CHREC_RIGHT.
9192
9193 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
9194
9195 * tree-data-ref.c (max_stmt_executions_tree): Do not call
9196 lang_hooks.types.type_for_size.
9197
9198 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
9199
9200 PR middle-end/47653
9201 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
9202 loops using wrapping semantics.
9203
9204 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
9205
9206 PR middle-end/48805
9207 * tree-scalar-evolution.c (instantiate_scev_r): Return
9208 chrec_dont_know for ADDR_EXPR.
9209
9210 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
9211 H.J. Lu <hongjiu.lu@intel.com>
9212
9213 PR target/47369
9214 PR target/49853
9215 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
9216 if legitimize_tls_address returned operand in wrong mode. Allow
9217 SImode and DImode symbolic operand for PIC. Call convert_to_mode
9218 if legitimize_pic_address returned operand in wrong mode.
9219
9220 2011-07-26 Martin Jambor <mjambor@suse.cz>
9221
9222 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
9223 return false for invariants.
9224
9225 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
9226
9227 * config/i386/i386.md (add->lea splitter): Implement using SWI
9228 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
9229 (add->lea zext splitter): Change operand 2 predicate to
9230 x86_64_nonmemory_operand.
9231
9232 2011-07-26 Richard Guenther <rguenther@suse.de>
9233
9234 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
9235 frequency makes everything hot.
9236
9237 2011-07-26 Richard Guenther <rguenther@suse.de>
9238
9239 PR tree-optimization/49840
9240 * tree-vrp.c (range_fits_type_p): Properly handle full
9241 double-int precision.
9242
9243 2011-07-26 Martin Jambor <mjambor@suse.cz>
9244
9245 PR bootstrap/49786
9246 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
9247 counts.
9248 (update_specialized_profile): Likewise.
9249
9250 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
9251 H.J. Lu <hongjiu.lu@intel.com>
9252
9253 PR target/47381
9254 PR target/49832
9255 PR target/49833
9256 * config/i386/i386.md (i): Change SImode attribute to "e".
9257 (g): Change SImode attribute to "rme".
9258 (di): Change SImode attribute to "nF".
9259 (general_operand): Change SImode attribute to x86_64_general_operand.
9260 (general_szext_operand): Change SImode attribute to
9261 x86_64_szext_general_operand.
9262 (immediate_operand): Change SImode attribute to
9263 x86_64_immediate_operand.
9264 (nonmemory_operand): Change SImode attribute to
9265 x86_64_nonmemory_operand.
9266 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
9267 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
9268 (*lea_1): Use SWI48 mode iterator.
9269 (*lea_1_zext): New insn pattern.
9270 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
9271 (*bt<mode>): Ditto.
9272 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
9273 Update operand constraints.
9274 (addsi_1_zext): Ditto.
9275 (*add<mode>2): Ditto.
9276 (*addsi_3_zext): Ditto.
9277 (*subsi_1_zext): Ditto.
9278 (*subsi_2_zext): Ditto.
9279 (*subsi_3_zext): Ditto.
9280 (*addsi3_carry_zext): Ditto.
9281 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
9282 (*mulsi3_1_zext): Ditto.
9283 (*andsi_1): Ditto.
9284 (*andsi_1_zext): Ditto.
9285 (*andsi_2_zext): Ditto.
9286 (*<any_or:code>si_1_zext): Ditto.
9287 (*<any_or:code>si_2_zext): Ditto.
9288 (*test<mode>_1): Use <general_operand> predicate for operand 1.
9289 (*and<mode>_2): Ditto.
9290 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
9291 (add->lea splitter): Check operand modes in insn constraint. Extend
9292 operands less than SImode wide to SImode.
9293 (add->lea zext splitter): Do not extend input operands to DImode.
9294 (*lea_general_1): Handle only QImode and HImode operands.
9295 (*lea_general_2): Ditto.
9296 (*lea_general_3): Ditto.
9297 (*lea_general_1_zext): Remove.
9298 (*lea_general_2_zext): Ditto.
9299 (*lea_general_3_zext): Ditto.
9300 (*lea_general_4): Check operand modes in insn constraint. Extend
9301 operands less than SImode wide to SImode.
9302 (ashift->lea splitter): Ditto.
9303 * config/i386/i386.c (ix86_print_operand_address): Print address
9304 registers with 'q' modifier on 64bit targets.
9305 * config/i386/predicates.md (pic_32bit_opreand): Define as special
9306 predicate. Reject non-SI and non-DI modes.
9307
9308 2011-07-25 Andrew Pinski <apinski@cavium.com>
9309
9310 PR tree-opt/49671
9311 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
9312 TREE_THIS_NOTRAP into the inner most MEM_REF.
9313 Always copy TREE_THIS_VOLATILE.
9314 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
9315 arguments are not volatile references.
9316
9317 2011-07-25 Richard Henderson <rth@redhat.com>
9318
9319 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
9320 * final.c (final_scan_insn): Don't test for it.
9321 (rest_of_clean_state): Likewise.
9322
9323 2011-07-25 Richard Henderson <rth@redhat.com>
9324
9325 PR debug/49841
9326 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
9327 (emit_frame_save): Likewise.
9328 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
9329 insn onto a dummy blockage insn after the join label.
9330
9331 2011-07-25 Richard Henderson <rth@redhat.com>
9332
9333 * dwarf2cfi.c (dw_trace_info): Add ID member.
9334 (get_trace_index): Remove. Change users to use ID member.
9335 (before_next_cfi_note): New.
9336 (connect_traces): Remove unreachable traces before the main loop.
9337 Look across one trace and generate remember/restore_state if needed.
9338
9339 2011-07-25 Richard Henderson <rth@redhat.com>
9340
9341 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
9342
9343 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
9344
9345 * genattr.c (write_upcase, gen_attr <enum definition writing>):
9346 Move to ...
9347 * genattr-common.c ... here.
9348 (main): Call gen_attr.
9349 * optc-gen.awk: Make generated program include insn-attr-common.h .
9350 * Makefile.in (oprions.o): Depend on insn-attr-common.h
9351
9352 2011-07-25 Anatoly Sokolov <aesok@post.ru>
9353
9354 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
9355 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
9356 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
9357 m32c_print_operand, m32c_print_operand_address): Remove.
9358 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
9359 Change return type to bool. Change argument type to bool.
9360 (m32c_print_operand, m32c_print_operand_address): Make static.
9361 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
9362 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9363
9364 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9365
9366 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
9367 attributes): Document mmap.
9368
9369 2011-07-25 Anatoly Sokolov <aesok@post.ru>
9370
9371 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
9372 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
9373 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
9374 mmix_print_operand, mmix_print_operand_address): Remove.
9375 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
9376 Change return type to bool. Change argument type to bool.
9377 (mmix_print_operand, mmix_print_operand_address): Make static.
9378 (mmix_intval, mmix_output_condition): Change 'x' argument type
9379 to const_rtx.
9380 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
9381 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9382
9383 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
9384
9385 PR target/39386
9386 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
9387 shift counter for x << x and x >> x shifts.
9388
9389 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9390
9391 PR target/47124
9392 * config.gcc: Reject *-*-solaris2 configuration.
9393
9394 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
9395
9396 PR tree-optimization/49809
9397 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
9398 gimple_get_lhs instead of gimple_assign_lhs.
9399
9400 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9401
9402 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
9403
9404 2011-07-25 Richard Guenther <rguenther@suse.de>
9405
9406 PR tree-optimization/49822
9407 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
9408 more. Make sure to preserve stmts with side-effects. Properly
9409 handle virtual defs, follow a longer def chain.
9410
9411 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
9412
9413 PR plugins/45348
9414 PR plugins/48425
9415 PR plugins/46577
9416 * Makefile.in: Do not flatten c-family directory when installing
9417 plugin headers.
9418
9419 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
9420
9421 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
9422 original nodes if we are dealing with virtual clones.
9423
9424 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
9425
9426 * common/config/c6x/c6x-common.c: New file.
9427
9428 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
9429
9430 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
9431
9432 2011-07-25 Richard Guenther <rguenther@suse.de>
9433
9434 PR tree-optimization/49715
9435 * tree-vrp.c: Include expr.h and optabs.h.
9436 (range_fits_type_): New function.
9437 (simplify_float_conversion_using_ranges): Likewise.
9438 (simplify_stmt_using_ranges): Call it.
9439 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
9440 * optabs.c (can_float_p): Export.
9441 * optabs.h (can_float_p): Declare.
9442
9443 2011-07-25 Richard Guenther <rguenther@suse.de>
9444
9445 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
9446 (get_value_range): For out-of-range SSA names or names created
9447 after propagation return a read-only varying range.
9448 (dump_all_value_ranges): Adjust.
9449 (vrp_initialize): Likewise.
9450 (vrp_finalize): Likewise.
9451
9452 2011-07-24 Richard Henderson <rth@redhat.com>
9453
9454 PR debug/49831
9455 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
9456 them entirely.
9457
9458 2011-07-24 Richard Henderson <rth@redhat.com>
9459
9460 PR debug/49825
9461 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
9462 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
9463
9464 2011-07-24 Richard Henderson <rth@redhat.com>
9465
9466 PR debug/49827
9467 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
9468
9469 2011-07-24 Richard Henderson <rth@redhat.com>
9470
9471 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
9472 Zero args_size for abnormal edges. Adjust all callers.
9473
9474 2011-07-24 Richard Henderson <rth@redhat.com>
9475
9476 PR debug/49825
9477 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
9478
9479 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
9480
9481 PR bootstrap/49835
9482 * collect2.c (demangle_flag): Removed.
9483
9484 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
9485
9486 * configure.ac (demangler_in_ld): Default to yes.
9487 * configure: Regenerated.
9488 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
9489 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
9490 --no-demangle options straight through to ld. When
9491 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
9492 way that has the intended effect on Windows.
9493
9494 2011-07-23 Richard Henderson <rth@redhat.com>
9495
9496 * dwarf2cfi.c: Include basic-block.h.
9497 (dw_label_info): Remove.
9498 (trace_work_list, trace_index): New.
9499 (remember_row, emit_cfa_remember): Remove.
9500 (dw_trace_info_hash, dw_trace_info_eq): New.
9501 (get_trace_index, get_trace_info): New.
9502 (save_point_p): New.
9503 (free_cfi_row): Remove.
9504 (add_cfi): Do not emit DW_CFA_remember_state.
9505 (cfa_row_equal_p): New.
9506 (barrier_args_size): Remove.
9507 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
9508 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
9509 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
9510 (dwarf2out_cfi_begin_epilogue): Remove.
9511 (dwarf2out_frame_debug_restore_state): Remove.
9512 (connect_traces, create_pseudo_cfg): New.
9513 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
9514 * Makefile.in (dwarf2cfi.o): Update.
9515
9516 2011-07-23 Richard Henderson <rth@redhat.com>
9517
9518 * dwarf2cfi.c (dw_trace_info): New.
9519 (dw_label_info): New.
9520 (cie_return_save): New.
9521 (cur_trace): New.
9522 (queued_args_size): Rename from args_size. Update all users.
9523 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
9524 (def_cfa_1): Use cur_trace instead of cfa_*.
9525 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
9526 (clobbers_queued_reg_save, reg_saved_in): Likewise.
9527 (dwarf2out_frame_debug_expr): Likewise.
9528 (create_cie_data): Split out from ...
9529 (execute_dwarf2_frame): ... here. Initialize cur_trace.
9530
9531 2011-07-23 Richard Henderson <rth@redhat.com>
9532
9533 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
9534 Update all users to match.
9535 (execute_dwarf2_frame): Free reg_saved_in_data.
9536
9537 2011-07-23 Richard Henderson <rth@redhat.com>
9538
9539 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
9540 (queued_reg_saves): Don't GTY. Change to a VEC.
9541 (queue_reg_save): Update to match.
9542 (dwarf2out_flush_queued_reg_saves): Likewise.
9543 (clobbers_queued_reg_save): Likewise.
9544 (reg_saved_in): Likewise.
9545 (execute_dwarf2_frame): Free queued_reg_saves.
9546
9547 2011-07-23 Richard Henderson <rth@redhat.com>
9548
9549 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
9550
9551 2011-07-23 Richard Henderson <rth@redhat.com>
9552
9553 * dwarf2cfi.c (add_cfi_args_size): Split out from...
9554 (dwarf2out_args_size): ... here.
9555 (add_cfi_restore): Split out from ...
9556 (dwarf2out_frame_debug_cfa_restore): ... here.
9557 (def_cfa_0): Split out from ...
9558 (def_cfa_1): ... here.
9559 (cfi_oprnd_equal_p, cfi_equal_p): New.
9560 (change_cfi_row): New.
9561 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
9562 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
9563 (output_cfis): Remove.
9564 * dwarf2out.c (output_fde): Simplify output_cfi loop.
9565 (dwarf2out_switch_text_section): Don't call output_cfis.
9566 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
9567 * dwarf2out.h: Update decls.
9568 (enum dw_val_class): Add dw_val_class_none.
9569
9570 2011-07-23 Richard Henderson <rth@redhat.com>
9571
9572 * dwarf2cfi.c (update_row_reg_save): New.
9573 (dwarf2out_frame_debug_cfa_expression): Use it.
9574 (dwarf2out_frame_debug_cfa_restore): Likewise.
9575 (reg_save): Likewise. Do not emit DW_CFA_same_value.
9576
9577 2011-07-23 Richard Henderson <rth@redhat.com>
9578
9579 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
9580
9581 2011-07-23 Richard Henderson <rth@redhat.com>
9582
9583 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
9584 (cie_cfi_row): New.
9585 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
9586 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
9587 (cur_row, remember_row): New.
9588 (def_cfa_1): Use cur_row instead of the old_* variables.
9589 (dwarf2out_frame_debug_restore_state): Similarly.
9590 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
9591 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
9592 (dwarf2out_frame_debug_adjust_cfa): Likewise.
9593 (dwarf2out_frame_debug_cfa_offset): Likewise.
9594 (dwarf2out_frame_debug_expr): Likewise.
9595 (execute_dwarf2_frame): Set up cur_row.
9596 * dwarf2out.h (struct cfa_loc): Mark for GTY.
9597
9598 2011-07-23 Richard Henderson <rth@redhat.com>
9599
9600 * basic-block.h (EDGE_PRESERVE): New.
9601 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
9602 * bb-reorder.c: Include except.h.
9603 (fix_up_crossing_landing_pad): New.
9604 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
9605 landing pads in the right partition. Duplicate as necessary.
9606 (partition_hot_cold_basic_blocks): Fix up DF info after
9607 duplicating landing pads.
9608 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
9609 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
9610 is set properly. Validate that EH edges are not CROSSING.
9611 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
9612 (dw2_build_landing_pads): ... here.
9613 (convert_to_eh_region_ranges): Remove code to fixup crossing
9614 landing pads.
9615 * except.h (expand_dw2_landing_pad_for_region): Declare.
9616 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
9617
9618 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
9619
9620 PR target/49816
9621 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
9622
9623 2011-07-22 Jason Merrill <jason@redhat.com>
9624
9625 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
9626
9627 2011-07-22 Richard Henderson <rth@redhat.com>
9628
9629 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
9630
9631 2011-07-22 Richard Henderson <rth@redhat.com>
9632
9633 * jump.c (maybe_propagate_label_ref): Split out of...
9634 (mark_all_labels): ... here. Do not attempt label_ref
9635 propagation while in cfglayout mode.
9636
9637 2011-07-22 Jakub Jelinek <jakub@redhat.com>
9638
9639 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
9640 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
9641 (dwarf_attr_name): Handle DW_AT_GNU_macros.
9642 (dwarf2out_define): If the vector is empty and
9643 lineno is 0, emit a dummy entry first.
9644 (dwarf2out_undef): Likewise. Remove redundant semicolon.
9645 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
9646 optimize_macinfo_range): New functions.
9647 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
9648 mergeable, optimize longer strings using
9649 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
9650 optimize longer sequences of define/undef ops from headers
9651 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
9652 emit a section headers.
9653 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
9654 and macinfo_section_label to DEBUG_MACRO_SECTION
9655 resp. DEBUG_MACRO_SECTION_LABEL.
9656 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
9657 instead of DW_AT_macro_info.
9658
9659 PR other/32998
9660 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
9661 options.
9662 * dwarf2out.c: Include opts.h.
9663 (dchar_p): New typedef. Define heap VEC for it.
9664 (producer_string): New variable.
9665 (gen_producer_string): New function.
9666 (gen_compile_unit_die): Use it.
9667 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
9668 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
9669 * doc/invoke.texi: Document -grecord-gcc-switches and
9670 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
9671 to -frecord-gcc-switches description.
9672
9673 2011-07-22 Jason Merrill <jason@redhat.com>
9674
9675 PR c++/30112
9676 * c-decl.c (c_linkage_bindings): Define.
9677
9678 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
9679
9680 PR debug/49815
9681 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
9682
9683 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
9684
9685 * config/i386/i386.c (ix86_option_override_internal): Disallow
9686 MS ABI in x32 mode.
9687 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
9688 only for TARGET_LP64.
9689 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
9690
9691 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
9692
9693 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
9694 avoid warnings when GCC is built with a C++ compiler.
9695
9696 2011-07-22 Martin Jambor <mjambor@suse.cz>
9697
9698 PR lto/49796
9699 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
9700 if decl node is in another partition, call cgraph_get_node only once.
9701
9702 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
9703
9704 * config.gcc (x86_64-*-linux*): Set
9705 default_gnu_indirect_function to yes.
9706
9707 2011-07-22 Richard Guenther <rguenther@suse.de>
9708
9709 PR tree-optimization/45819
9710 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
9711 preserve volatile and notrap flags.
9712
9713 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9714 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9715
9716 PR bootstrap/49794
9717 * configure.ac: Test AM_ICONV with CXX.
9718 * configure: Regenerate.
9719 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
9720
9721 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9722
9723 PR bootstrap/49797
9724 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
9725 (set_cloog_options): Use it.
9726
9727 2011-07-22 Jakub Jelinek <jakub@redhat.com>
9728
9729 PR c++/49756
9730 * gcc.c (main): Call stack_limit_increase (64MB).
9731 * toplev.c (toplev_main): Likewise.
9732
9733 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
9734
9735 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
9736 instead of force_reg.
9737
9738 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
9739
9740 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
9741 needed and use force_reg after convert.
9742 (ix86_expand_call): Likewise.
9743 (ix86_expand_special_args_builtin): Likewise.
9744 (ix86_expand_builtin): Likewise.
9745
9746 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9747
9748 PR middle-end/47654
9749 PR middle-end/49649
9750 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
9751 in parameter. Initialize v1 and v2 based on the values returned
9752 by clast_name_to_lb_ub.
9753 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
9754 values.
9755 (type_for_clast_bin): Same.
9756 (type_for_clast_expr): Same.
9757 (type_for_clast_eq): Update calls to type_for_clast_expr.
9758 (type_for_clast_for): Same.
9759 (build_iv_mapping): Same.
9760 * graphite-ppl.h (value_min): New.
9761
9762 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9763
9764 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
9765 types whenever possible.
9766
9767 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9768
9769 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
9770 and ub fields.
9771 (new_clast_name_index): Add lb and ub parameters.
9772 (free_clast_name_index): New.
9773 (clast_name_to_lb_ub): New.
9774 (save_clast_name_index): Add lb and ub parameters.
9775 (compute_bounds_for_param): New.
9776 (type_for_level): Removed.
9777 (type_for_clast_for): Removed level parameter. Do not call
9778 type_for_level.
9779 (graphite_create_new_loop): Store the lb and ub for the clast_name
9780 of the iterator of the loop that has been generated.
9781 (graphite_create_new_loop_guard): Remove parameter level.
9782 (create_params_index): Store the lb and ub of each parameter.
9783 (gloog): Use free_clast_name_index. Pass to create_params_index
9784 the current scop.
9785
9786 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9787
9788 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
9789 (max_precision_type): Inline max_signed_precision_type.
9790 (type_for_clast_red): Use max_precision_type.
9791 (type_for_clast_bin): Same.
9792 (type_for_clast_for): Same.
9793
9794 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9795
9796 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
9797 type_for_interval.
9798 (gcc_type_for_value): Renamed type_for_value.
9799 (gcc_type_for_clast_term): Renamed type_for_clast_term.
9800 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
9801 (gcc_type_for_clast_red): Renamed type_for_clast_red.
9802 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
9803 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
9804 (graphite_translate_clast_equation): Update calls.
9805 (compute_type_for_level): Renamed type_for_level.
9806 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
9807 (build_iv_mapping): Update calls.
9808 (graphite_create_new_loop_guard): Same.
9809
9810 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9811
9812 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
9813 comment.
9814
9815 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9816
9817 * graphite-clast-to-gimple.c (struct ivs_params): New.
9818 (clast_name_to_gcc): Use ivs_params to pass around parameters.
9819 (clast_to_gcc_expression): Same.
9820 (clast_to_gcc_expression_red): Same.
9821 (gcc_type_for_clast_term): Same.
9822 (gcc_type_for_clast_expr): Same.
9823 (gcc_type_for_clast_red): Same.
9824 (gcc_type_for_clast_bin): Same.
9825 (gcc_type_for_clast_eq): Same.
9826 (graphite_translate_clast_equation): Same.
9827 (graphite_create_guard_cond_expr): Same.
9828 (graphite_create_new_guard): Same.
9829 (graphite_create_new_loop): Same.
9830 (build_iv_mapping): Same.
9831 (translate_clast_user): Same.
9832 (graphite_create_new_loop_guard): Same.
9833 (translate_clast): Same.
9834 (translate_clast_for_loop): Same.
9835 (translate_clast_for): Same.
9836 (translate_clast_guard): Same.
9837 (initialize_cloog_names): Fix typo.
9838 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
9839
9840 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9841
9842 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
9843 (new_clast_name_index): Add level parameter.
9844 (clast_name_to_level): New.
9845 (save_clast_name_index): Add level parameter.
9846 (newivs_to_depth_to_newiv): Removed.
9847 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
9848 (graphite_create_new_loop): Add level parameter. Pass level to
9849 save_clast_name_index.
9850 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
9851 (create_params_index): Pass level to save_clast_name_index.
9852
9853 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9854
9855 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
9856 recompute type, lb, and ub. Get them from...
9857 (graphite_create_new_loop_guard): ...here. Pass in parameter
9858 pointers to type, lb, and ub.
9859 (translate_clast_for_loop): Update function calls.
9860 (translate_clast_for): Same.
9861
9862 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9863
9864 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
9865 psct_dynamic_dim.
9866 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
9867 (gcc_type_for_iv_of_clast_loop): Update use of level.
9868 (gloog): Start counting nesting level from 0.
9869 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
9870 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
9871 psct_dynamic_dim on level.
9872
9873 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
9874
9875 * config/i386/i386.c (ix86_legitimize_address): Convert to
9876 Pmode if needed.
9877
9878 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
9879
9880 * config/i386/i386.c (function_value_64): Always return pointers
9881 in Pmode.
9882 (ix86_promote_function_mode): New.
9883 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
9884
9885 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9886
9887 PR tree-optimization/49749
9888 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
9889 remove no-longer-used maxrank variable.
9890
9891 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
9892
9893 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
9894
9895 2011-07-21 Jason Merrill <jason@redhat.com>
9896
9897 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
9898 * recog.h (struct insn_data_d): Check it instead of
9899 HAVE_DESIGNATED_INITIALIZERS.
9900 * genoutput.c (output_insn_data): Likewise.
9901
9902 2011-07-21 Richard Guenther <rguenther@suse.de>
9903
9904 PR tree-optimization/49770
9905 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
9906 valueized any operand. Renamed from ...
9907 (valueize_refs): ... this. New wrapper around valueize_refs_1.
9908 (valueize_shared_reference_ops_from_ref): Return whether we
9909 valueized any operand.
9910 (vn_reference_lookup): Only when we valueized any operand
9911 use the valueized reference for alias analysis. Do not preserve
9912 the original reference tree in this case.
9913
9914 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
9915
9916 * config/i386/i386.c (ix86_decompose_address): Reject all but
9917 register operands and subregs of DImode hard registers in index.
9918
9919 2011-07-21 Kai Tietz <ktietz@redhat.com>
9920
9921 * fold-const.c (fold_unary_loc): Preserve indirect
9922 comparison cast to none-boolean type.
9923 * tree-ssa.c (useless_type_conversion_p): Preserve cast
9924 from/to boolean-type.
9925 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
9926 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
9927 * tree-cfg.c (verify_gimple_comparison): Check result
9928 type of comparison expression.
9929 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
9930 of condition result and disallow type-cast sinking into comparison.
9931
9932 2011-07-21 Richard Guenther <rguenther@suse.de>
9933
9934 * tree-ssa-forwprop.c (combine_conversions): Return whether
9935 we have to run cfg-cleanup. Properly remove dead stmts.
9936 (ssa_forward_propagate_and_combine): Adjust.
9937
9938 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
9939
9940 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
9941
9942 2011-07-21 Kai Tietz <ktietz@redhat.com>
9943
9944 * tree-ssa-propagate.c (substitute_and_fold): Use
9945 do_dce flag to deside, if BB's statements are scanned
9946 in last to first, or first to last order.
9947
9948 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
9949
9950 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
9951
9952 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
9953 Uros Bizjak <ubizjak@gmail.com>
9954 Richard Henderson <rth@redhat.com>
9955
9956 * config/i386/constraints.md (w): New.
9957
9958 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
9959 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
9960
9961 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
9962 instead of TARGET_64BIT.
9963
9964 * config/i386/i386.md (indirect_jump): Replace
9965 nonimmediate_operand with indirect_branch_operand.
9966 (*indirect_jump): Likewise. Replace constraint "m" with "w".
9967 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
9968 Convert operand 0 to Pmode for x32 if not PIC.
9969 (*tablejump_1): Replace nonimmediate_operand with
9970 indirect_branch_operand. Replace constraint "m" with "w".
9971 (*call_vzeroupper): Replace constraint "m" with "w".
9972 (*call): Likewise.
9973 (*call_rex64_ms_sysv_vzeroupper): Likewise.
9974 (*call_rex64_ms_sysv): Likewise.
9975 (*call_value_vzeroupper): Likewise.
9976 (*call_value): Likewise.
9977 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
9978 (*call_value_rex64_ms_sysv): Likewise.
9979 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
9980
9981 * config/i386/predicates.md (indirect_branch_operand): New.
9982 (call_insn_operand): Support x32.
9983
9984 2011-07-20 Michael Eager <eager@eagercon.com>
9985
9986 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
9987
9988 2011-07-20 Richard Henderson <rth@redhat.com>
9989
9990 * cfg.c (dump_bb_info): Dump basic_block->flags.
9991 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
9992
9993 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
9994
9995 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
9996 of DImode hard registers in index.
9997 (ix86_legitimate_address_p): Allow subregs of base and index to span
9998 more than a word. Assert that subregs of base and index satisfy
9999 register_no_elim_operand predicates. Reject addresses where
10000 base and index have different modes.
10001
10002 2011-07-20 Robert Millan <rmh@gnu.org>
10003
10004 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
10005
10006 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10007
10008 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
10009 removing now-unnecessary assignment.
10010
10011 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10012
10013 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
10014 memory address space to the type's address space.
10015
10016 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
10017
10018 PR target/36467
10019 PR target/49687
10020 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
10021 and expand appropriately if there is a CONST_INT in operand2.
10022 (usmulqihi3): New insn.
10023 (*sumulqihi3): New insn.
10024 (*osmulqihi3): New insn.
10025 (*oumulqihi3): New insn.
10026 (*muluqihi3.uconst): New insn_and_split.
10027 (*muluqihi3.sconst): New insn_and_split.
10028 (*mulsqihi3.sconst): New insn_and_split.
10029 (*mulsqihi3.uconst): New insn_and_split.
10030 (*mulsqihi3.oconst): New insn_and_split.
10031 (*ashifthi3.signx.const): New insn_and_split.
10032 (*ashifthi3.signx.const7): New insn_and_split.
10033 (*ashifthi3.zerox.const): New insn_and_split.
10034 (mulsqihi3): New insn.
10035 (muluqihi3): New insn.
10036 (muloqihi3): New insn.
10037 * config/avr/predicates.md (const_2_to_7_operand): New.
10038 (const_2_to_6_operand): New.
10039 (u8_operand): New.
10040 (s8_operand): New.
10041 (o8_operand): New.
10042 (s9_operand): New.
10043 (register_or_s9_operand): New.
10044
10045 2011-07-20 Kai Tietz <ktietz@redhat.com>
10046
10047 * builtins.c (fold_builtin_expect): See through the cast
10048 from truthvalue_type_node to long.
10049
10050 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
10051
10052 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
10053 where we can use them from the standard and altivec instruction
10054 sets, instead of always using the 3 operand VSX forms that require
10055 the destination to overlap one of the inputs.
10056 (vsx_fms*): Ditto.
10057 (vsx_fnma*): Ditto.
10058 (vsx_fnms*): Ditto.
10059
10060 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
10061 for DF types.
10062 (fmsdf4_fpr): Ditto.
10063 (nfmadf4_fpr): Ditto.
10064 (nfmsdf4_fpr): Ditto.
10065
10066 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
10067
10068 * genrecog.c (make_insn_sequence): Correct position numbering
10069 when filtering out match_scratch and match_dup.
10070
10071 2011-07-20 Richard Guenther <rguenther@suse.de>
10072
10073 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
10074 against already removed statements.
10075 (forward_propagate_into_comparison): Remove dead defining stmts.
10076 (forward_propagate_into_gimple_cond): Likewise.
10077 (forward_propagate_into_cond): Simplify.
10078 (ssa_forward_propagate_and_combine): Handle changed cfg from
10079 forward_propagate_into_comparison.
10080 * tree-ssa-phiopt.c (conditional_replacement): Use proper
10081 locations for newly built statements.
10082
10083 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
10084
10085 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
10086
10087 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10088
10089 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
10090 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
10091
10092 2011-07-20 Richard Guenther <rguenther@suse.de>
10093
10094 PR middle-end/18908
10095 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
10096 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
10097 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
10098
10099 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
10100
10101 * config/frv/frv.c (frv_register_move_cost): Define explicitly
10102 costs for subclasses of GR_REGS.
10103
10104 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
10105
10106 PR target/49780
10107 * config/i386/predicates.md (no_seg_addres_operand): No more special.
10108 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
10109 of DImode hard registers in base.
10110 (ix86_legitimate_address_p): Allow SImode and DImode base and index
10111 registers.
10112
10113 2011-07-20 Richard Guenther <rguenther@suse.de>
10114
10115 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
10116 (unify_nodes): Deal with that.
10117 (solve_graph): Likewise.
10118
10119 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
10120
10121 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
10122 canonicalize left operand from ZERO_EXTEND to AND.
10123
10124 2011-07-20 Anatoly Sokolov <aesok@post.ru>
10125
10126 * target.def (class_max_nregs): New hook.
10127 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
10128 * doc/tm.texi: Regenerate.
10129 * targhooks.c (default_class_max_nregs): New function.
10130 * targhooks.h (default_class_max_nregs): Declare.
10131 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
10132 x_ira_reg_class_min_nregs arrays to unsigned char.
10133 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
10134 hook instead of CLASS_MAX_NREGS macro.
10135 * reginfo.c (restore_register_info): Ditto.
10136 * ira-conflicts.c (process_regs_for_copy): Use
10137 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
10138 Change type rclass and aclass vars to reg_class_t.
10139 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
10140 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
10141 reg_class_t.
10142 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
10143 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
10144
10145 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
10146 * config/i386/i386.c (ix86_class_max_nregs): New function.
10147 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
10148 instead of CLASS_MAX_NREGS macro.
10149 (TARGET_CLASS_MAX_NREGS): Define.
10150 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
10151 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
10152 * config/avr/avr.c (class_max_nregs): Remove function.
10153 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
10154 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
10155 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
10156 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
10157 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
10158 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
10159 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
10160 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
10161 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
10162 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
10163 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
10164 * config/score/score.h (CLASS_MAX_NREGS): Remove.
10165 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
10166 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
10167 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
10168
10169 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
10170
10171 * cif-code.def (OVERWRITABLE): Fix typo and move around.
10172 (TARGET_OPTIMIZATION_MISMATCH): Delete.
10173 (EH_PERSONALITY): Fix typo.
10174 (NON_CALL_EXCEPTIONS): Fix message.
10175 (OPTIMIZATION_MISMATCH): Adjust message.
10176 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
10177
10178 2011-07-19 Ian Lance Taylor <iant@google.com>
10179
10180 * doc/install.texi (Configuration): Document
10181 --enable-build-poststage1-with-cxx.
10182
10183 2011-07-19 Robert Millan <rmh@gnu.org>
10184
10185 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
10186 (GLIBC_DYNAMIC_LINKER): Remove.
10187
10188 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
10189 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
10190 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
10191 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
10192 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
10193 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
10194
10195 * config/mips/linux.h: Remove everything except for ...
10196 (GLIBC_DYNAMIC_LINKER): ... this macro.
10197
10198 * config/mips/linux64.h: Remove everything except for ...
10199 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
10200 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
10201 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
10202 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
10203 (GNU_USER_LINK_EMULATIONN32): New macros.
10204
10205 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
10206 Use the new headers.
10207
10208 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
10209
10210 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
10211 Add offset_known_p and size_known_p fields.
10212 (MEM_OFFSET_KNOWN_P): Update accordingly.
10213 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
10214 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
10215 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
10216 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
10217 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
10218 (init_emit_regs): Likewise.
10219
10220 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
10221
10222 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
10223 (MEM_OFFSET): Change from returning an rtx to returning a
10224 HOST_WIDE_INT.
10225 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
10226 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
10227 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
10228 (clear_mem_offset): Declare.
10229 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
10230 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
10231 MEM_OFFSET to get a HOST_WIDE_INT offset.
10232 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
10233 (adjust_offset_for_component_ref): Take a bool "known_p"
10234 parameter and a HOST_WIDE_INT "offset" parameter.
10235 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
10236 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
10237 than an rtx. Use clear_mem_offset to clear the offset.
10238 * cfgcleanup.c (merge_memattrs): Likewise.
10239 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
10240 * function.c (assign_parm_find_stack_rtl): Likewise.
10241 (assign_parm_setup_stack): Likewise.
10242 * print-rtl.c (print_rtx): Likewise.
10243 * reload.c (find_reloads_subreg_address): Likewise.
10244 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
10245 * var-tracking.c (INT_MEM_OFFSET): Likewise.
10246 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
10247 (get_mem_align_offset): Likewise.
10248 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
10249 (clear_mem_offset): New function.
10250 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
10251 offset rather than an rtx. Assume both the expressio and offset
10252 are available.
10253 (r10k_needs_protection_p_1): Update accordingly, checking the
10254 expression and offset availability here instead.
10255
10256 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
10257
10258 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
10259 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
10260 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
10261 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
10262 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
10263 (clear_mem_size): Declare.
10264 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
10265 (clear_mem_size): New function.
10266 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
10267 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
10268 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
10269 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
10270 to clear the size.
10271 (nonoverlapping_memrefs_p): Likewise.
10272 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
10273 (expand_builtin_init_trampoline): Likewise.
10274 * calls.c (compute_argument_addresses): Likewise.
10275 * cfgcleanup.c (merge_memattrs): Likewise.
10276 * dce.c (find_call_stack_args): Likewise.
10277 * dse.c (record_store, scan_insn): Likewise.
10278 * dwarf2out.c (dw_sra_loc_expr): Likewise.
10279 * expr.c (emit_block_move_hints): Likewise.
10280 * function.c (assign_parm_find_stack_rtl): Likewise.
10281 * print-rtl.c (print_rtx): Likewise.
10282 * reload.c (find_reloads_subreg_address): Likewise.
10283 * rtlanal.c (may_trap_p_1): Likewise.
10284 * var-tracking.c (track_expr_p): Likewise.
10285 * varasm.c (assemble_trampoline_template): Likewise.
10286 * config/arm/arm.c (arm_print_operand): Likewise.
10287 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
10288 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
10289 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
10290 (expand_constant_setmem_prologue): Likewise.
10291 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
10292 * config/rs6000/rs6000.c (expand_block_move): Likewise.
10293 (adjacent_mem_locations): Likewise.
10294 * config/s390/s390.c (s390_expand_setmem): Likewise.
10295 (s390_expand_insv): Likewise.
10296 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
10297 (*extendqi<mode>2_short_displ): Likewise.
10298 * config/sh/sh.c (expand_block_move): Likewise.
10299 * config/sh/sh.md (extv, extzv): Likewise.
10300
10301 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
10302
10303 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
10304 (mem_attrs_htab_eq): ...here.
10305 (find_mem_attrs): Replace with...
10306 (set_mem_attrs): ...this function. Take a mem_attrs structure
10307 rather than individual fields.
10308 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
10309 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
10310 (set_mem_size, change_address, adjust_address_1, offset_address)
10311 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
10312 Update accordingly.
10313
10314 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
10315
10316 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
10317 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
10318 Provide a dummy definition of MEM_ADDR_SPACE for generators.
10319 (target_rtl): Add x_mode_mem_attrs.
10320 (mode_mem_attrs): New macro.
10321 (get_mem_attrs): New function.
10322 * emit-rtl.c (get_mem_attrs): Rename to...
10323 (find_mem_attrs): ...this.
10324 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
10325 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
10326 (set_mem_size, change_address, adjust_address_1, offset_address)
10327 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
10328 Update accordingly.
10329 (init_emit_regs): Initialize mode_mem_attrs.
10330
10331 2011-07-19 Richard Guenther <rguenther@suse.de>
10332
10333 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
10334 TRUTH_*_EXPR handling.
10335 * tree-ssa-operands.c (get_expr_operands): Likewise.
10336 * tree-ssa-pre.c (fully_constant_expression): Likewise.
10337 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
10338 Likewise.
10339 (is_and_or_or): Likewise.
10340 (is_norm_cond_subset_of): Likewise.
10341
10342 2011-07-19 Richard Guenther <rguenther@suse.de>
10343
10344 * tree.h (fold_build_pointer_plus_loc): New helper function.
10345 (fold_build_pointer_plus_hwi_loc): Likewise.
10346 (fold_build_pointer_plus): Define.
10347 (fold_build_pointer_plus_hwi): Likewise.
10348 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
10349 (fold_builtin_memory_op): Likewise.
10350 (fold_builtin_stpcpy): Likewise.
10351 (fold_builtin_memchr): Likewise.
10352 (fold_builtin_strstr): Likewise.
10353 (fold_builtin_strchr): Likewise.
10354 (fold_builtin_strrchr): Likewise.
10355 (fold_builtin_strpbrk): Likewise.
10356 (fold_builtin_strcat): Likewise.
10357 (expand_builtin_memory_chk): Likewise.
10358 (fold_builtin_memory_chk): Likewise.
10359 * c-typeck.c (build_unary_op): Likewise.
10360 * cgraphunit.c (thunk_adjust): Likewise.
10361 * fold-const.c (build_range_check): Likewise.
10362 (fold_binary_loc): Likewise.
10363 * omp-low.c (extract_omp_for_data): Likewise.
10364 (expand_omp_for_generic): Likewise.
10365 (expand_omp_for_static_nochunk): Likewise.
10366 (expand_omp_for_static_chunk): Likewise.
10367 * tree-affine.c (add_elt_to_tree): Likewise.
10368 * tree-data-ref.c (split_constant_offset_1): Likewise.
10369 * tree-loop-distribution.c (generate_memset_zero): Likewise.
10370 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
10371 * tree-predcom.c (ref_at_iteration): Likewise.
10372 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
10373 (add_to_parts): Likewise.
10374 (create_mem_ref): Likewise.
10375 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
10376 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
10377 (number_of_iterations_le): Likewise.
10378 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
10379 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
10380 (vect_create_addr_base_for_vector_ref): Likewise.
10381 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
10382 (vect_create_cond_for_alias_checks): Likewise.
10383 * tree-vrp.c (extract_range_from_assert): Likewise.
10384 * config/alpha/alpha.c (alpha_va_start): Likewise.
10385 (alpha_gimplify_va_arg_1): Likewise.
10386 * config/i386/i386.c (ix86_va_start): Likewise.
10387 (ix86_gimplify_va_arg): Likewise.
10388 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
10389 * config/mep/mep.c (mep_expand_va_start): Likewise.
10390 (mep_gimplify_va_arg_expr): Likewise.
10391 * config/mips/mips.c (mips_va_start): Likewise.
10392 (mips_gimplify_va_arg_expr): Likewise.
10393 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
10394 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
10395 (rs6000_gimplify_va_arg): Likewise.
10396 * config/s390/s390.c (s390_va_start): Likewise.
10397 (s390_gimplify_va_arg): Likewise.
10398 * config/sh/sh.c (sh_va_start): Likewise.
10399 (sh_gimplify_va_arg_expr): Likewise.
10400 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
10401 * config/spu/spu.c (spu_va_start): Likewise.
10402 (spu_gimplify_va_arg_expr): Likewise.
10403 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
10404 Likewise.
10405 (xstormy16_gimplify_va_arg_expr): Likewise.
10406 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
10407 (xtensa_gimplify_va_arg_expr): Likewise.
10408
10409 2011-07-19 Richard Guenther <rguenther@suse.de>
10410
10411 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
10412 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
10413 handling.
10414
10415 PR middle-end/18908
10416 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
10417 result of BIT_*_EXPR to bitfield precision.
10418
10419 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
10420
10421 PR tree-optimization/49742
10422 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
10423 as a potential write.
10424
10425 2011-07-19 Richard Guenther <rguenther@suse.de>
10426
10427 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
10428 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
10429 (forward_propagate_comparison): Simplify, remove obsolete code.
10430
10431 2011-07-19 Richard Guenther <rguenther@suse.de>
10432
10433 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
10434 BIT_XOR_EXPR, same as the RTL expander does.
10435 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
10436 (verify_gimple_assign_unary): Likewise.
10437 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
10438 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
10439 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
10440
10441 2011-07-19 Jakub Jelinek <jakub@redhat.com>
10442
10443 PR tree-optimization/49768
10444 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
10445 if offset is smaller than bitoffset, but offset+size is bigger
10446 than bitoffset.
10447
10448 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
10449
10450 PR tree-optimization/49771
10451 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
10452 zero step, set segment length to the size of the data-ref's type.
10453
10454 2011-07-18 Martin Jambor <mjambor@suse.cz>
10455
10456 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
10457 comments.
10458 (ipcp_values_pool): Declare.
10459 (ipcp_sources_pool): Likewise.
10460 (ipcp_lattice): Changed to forward declaration.
10461 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
10462 cannot_devirtualize.
10463 (ipa_node_params): New fields descriptors, lattices, known_vals,
10464 clone_for_all_contexts and node dead, removed fields params and
10465 count_scale.
10466 (ipa_set_param_count): Removed.
10467 (ipa_get_param_count): Made to work with descriptors vector.
10468 (ipa_get_param): Updated.
10469 (ipa_param_cannot_devirtualize_p): Removed.
10470 (ipa_param_types_vec_empty): Likewise.
10471 (ipa_set_param_used): New function.
10472 (ipa_get_param_used): Updated to use descriptors vector.
10473 (ipa_func_list): Removed.
10474 (ipa_init_func_list): Removed declaration.
10475 (ipa_push_func_to_list_1): Likewise.
10476 (ipa_pop_func_from_list): Likewise.
10477 (ipa_push_func_to_list): Removed.
10478 (ipa_lattice_from_jfunc): Remove declaration.
10479 (ipa_get_jf_pass_through_result): Declare.
10480 (ipa_get_jf_ancestor_result): Likewise.
10481 (ipa_value_from_jfunc): Likewise.
10482 (ipa_get_lattice): Update.
10483 (ipa_lat_is_single_const): New function.
10484 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
10485 (ipa_init_func_list): Likewise.
10486 (ipa_pop_func_from_list): Likewise.
10487 (ipa_get_param_decl_index): Fix coding style.
10488 (count_formal_params): Removed.
10489 (count_formal_params_1): Renamed to count_formal_params.
10490 (ipa_populate_param_decls): Update to use descriptors vector.
10491 (ipa_initialize_node_params): Likewise.
10492 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
10493 (ipa_analyze_params_uses): Likewise.
10494 (ipa_free_node_params_substructures): Likewise and free also lattices
10495 and known values.
10496 (duplicate_array): Removed.
10497 (ipa_edge_duplication_hook): Add the new edge to the list of edge
10498 clones.
10499 (ipa_node_duplication_hook): Update to use new lattices.
10500 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
10501 (ipa_free_all_structures_after_iinln): Likewise.
10502 (ipa_write_node_info): Update to use new lattices.
10503 (ipa_read_node_info): Likewise.
10504 (ipa_get_jf_pass_through_result): New function.
10505 (ipa_get_jf_ancestor_result): Likewise.
10506 (ipa_value_from_jfunc): Likewise.
10507 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
10508 * ipa-cp.c: Reimplemented.
10509 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
10510 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
10511 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
10512 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
10513 * doc/invoke.texi (devirt-type-list-size): Removed description.
10514 (ipa-cp-value-list-size): Added description.
10515
10516 2011-07-18 Richard Henderson <rth@redhat.com>
10517
10518 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
10519 before calling create_basic_block.
10520
10521 2011-07-18 Jakub Jelinek <jakub@redhat.com>
10522
10523 PR middle-end/49675
10524 * tree.c (build_common_builtin_nodes): Register
10525 __builtin_return_address, __cyg_profile_func_enter
10526 and __cyg_profile_func_exit.
10527
10528 2011-07-18 Richard Henderson <rth@redhat.com>
10529
10530 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
10531 (add_labels_and_missing_jumps): ... here.
10532 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
10533
10534 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
10535
10536 PR target/47744
10537 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
10538 of DImode hard registers in PLUS address chains.
10539
10540 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10541
10542 PR bootstrap/49769
10543 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
10544 (alpha*-*-freebsd*): Likewise.
10545 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
10546 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
10547 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
10548 crtprec80.o, crtfastmath.o to extra_parts for all targets.
10549 (ia64*-*-elf*): Remove extra_parts.
10550 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
10551 (sparc64-*-linux*): Likewise.
10552 (sparc64-*-freebsd*): Likewise.
10553
10554 Revert:
10555 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
10556 (ia64*-*-linux*): Likewise.
10557 (mips64*-*-linux*): Likewise.
10558 (mips*-*-linux*): Likewise.
10559
10560 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
10561
10562 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
10563
10564 2011-07-18 Richard Guenther <rguenther@suse.de>
10565
10566 * gimplify.c (gimplify_expr): Use input_location, not saved_location
10567 when building new trees.
10568
10569 2011-07-18 Richard Guenther <rguenther@suse.de>
10570
10571 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
10572 expansion result to bitfield precision if required.
10573
10574 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10575
10576 * config.gcc (i[3456x]86-*-netware*): Remove.
10577
10578 * gthr-nks.h: Remove.
10579 * configure.ac (enable_threads): Remove nks.
10580 * configure: Regenerate.
10581
10582 * config/i386/i386.c (ix86_encode_section_info): Remove netware
10583 reference.
10584 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
10585 <netware.h> reference.
10586
10587 * config/i386/netware-libgcc.c,
10588 gcc/config/i386/netware-libgcc.def,
10589 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
10590 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
10591 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
10592 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
10593
10594 * doc/extend.texi (Function Attributes,
10595 callee_pop_aggregate_return): Remove i?86-netware reference.
10596 * doc/install.texi (Configuration, --enable-threads): Remove nks.
10597
10598 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10599
10600 PR target/49746
10601 Revert:
10602 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10603
10604 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
10605 patterns.
10606
10607 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
10608
10609 PR middle-end/49732
10610 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
10611
10612 2011-07-16 Matthias Klose <doko@ubuntu.com>
10613
10614 * doc/install.texi: Document --enable-static-libjava.
10615
10616 2011-07-15 Richard Henderson <rth@redhat.com>
10617
10618 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
10619 Replace all three arguments by returning a VEC of edges.
10620 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
10621 pointers and counts.
10622 (fix_edges_for_rarely_executed_code): Merge ...
10623 (rest_of_handle_partition_blocks): ... into...
10624 (partition_hot_cold_basic_blocks): ... here. Return todo items if
10625 any work was performed.
10626 (pass_partition_blocks): Clear todo_flags_finish.
10627
10628 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
10629 Jakub Jelinek <jakub@redhat.com>
10630 Jonathan Wakely <jwakely.gcc@gmail.com>
10631
10632 PR libstdc++/49745
10633 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
10634 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
10635
10636 2011-07-15 Jason Merrill <jason@redhat.com>
10637
10638 PR testsuite/49741
10639 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
10640 rather than --tool_opts.
10641
10642 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
10643
10644 * doc/plugins.texi (Building GCC plugins): gengtype needs its
10645 corresponding gtype.state.
10646
10647 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10648
10649 PR target/49723
10650 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
10651
10652 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
10653
10654 PR target/48220
10655 * doc/md.texi (Standard Names): Document window_save.
10656 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
10657 expand_debug_expr and expand_debug_source_expr. If the target has
10658 a window_save instruction, adjust the ENTRY_VALUE_EXP.
10659 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
10660 SSA_NAME_VAR is a parameter.
10661 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
10662 * var-tracking.c (parm_reg_t): New type and associated vector type.
10663 (windowed_parm_regs): New variable.
10664 (adjust_insn): If the target has a window_save instruction and this
10665 is the instruction, make its effect on parameter registers explicit.
10666 (next_non_note_insn_var_location): New function.
10667 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
10668 (vt_add_function_parameter): If the target has a window_save insn,
10669 adjust the incoming RTL and record that in windowed_parm_regs.
10670 (vt_finalize): Free windowed_parm_regs.
10671
10672 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
10673
10674 * doc/invoke.texi (C6X Options): New section.
10675 * doc/md.texi (TI C6X family): New section.
10676 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
10677 tic6x-*-uclinux.
10678 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
10679 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
10680 Provide C6X definitions.
10681 * config/c6x/c6x.md: New file.
10682 * config/c6x/constraints.md: New file.
10683 * config/c6x/predicates.md: New file.
10684 * config/c6x/c6x-sched.md.in: New file.
10685 * config/c6x/c6x-sched.md: New file.
10686 * config/c6x/gensched.sh: New file.
10687 * config/c6x/c6x-mult.md.in: New file.
10688 * config/c6x/genmult.sh: New file.
10689 * config/c6x/c6x-mult.md: New file.
10690 * config/c6x/sync.md: New file.
10691 * config/c6x/c6x-protos.h: New file.
10692 * config/c6x/sfp-machine.h: New file.
10693 * config/c6x/c6x.c: New file.
10694 * config/c6x/c6x.h: New file.
10695 * config/c6x/crti.s: New file.
10696 * config/c6x/crtn.s: New file.
10697 * config/c6x/lib1funcs.asm: New file.
10698 * config/c6x/c6x-modes.def: New file.
10699 * config/c6x/genopt.sh: New file.
10700 * config/c6x/c6x.opt: New file.
10701 * config/c6x/c6x-tables.opt: New file.
10702 * config/c6x/c6x-opts.h: New file.
10703 * config/c6x/c6x-isas.def: New file.
10704 * config/c6x/elf.h: New file.
10705 * config/c6x/elf-common.h: New file.
10706 * config/c6x/uclinux-elf.h: New file.
10707 * config/c6x/t-c6x: New file.
10708 * config/c6x/t-c6x-elf: New file.
10709 * config/c6x/t-c6x-uclinux: New file.
10710 * config/c6x/t-c6x-softfp: New file.
10711 * config/c6x/gtd.c: New file.
10712 * config/c6x/gtf.c: New file.
10713 * config/c6x/ltd.c: New file.
10714 * config/c6x/ltf.c: New file.
10715 * config/c6x/ged.c: New file.
10716 * config/c6x/gef.c: New file.
10717 * config/c6x/led.c: New file.
10718 * config/c6x/lef.c: New file.
10719 * config/c6x/eqd.c: New file.
10720 * config/c6x/eqf.c: New file.
10721 * config/c6x/libgcc-c6xeabi.ver: New file.
10722
10723 Revert
10724 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
10725 PR rtl-optimization/11320
10726 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
10727 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
10728 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
10729 current_sched_info->compute_jump_reg_dependencies. Record which
10730 registers are used and which registers are set by the jump.
10731 Clear deps->reg_conditional_sets after a barrier.
10732 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
10733 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
10734 (init_deps): Initialize reg_conditional_sets.
10735 (free_deps): Clear reg_conditional_sets.
10736 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
10737 Mark registers live on entry of the fallthrough block and conditionally
10738 set as set by the jump. Mark registers live on entry of non-fallthrough
10739 blocks as used by the jump.
10740 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
10741 Mark new parameters as unused.
10742
10743 2011-07-14 Andrew Pinski <pinskia@gmail.com>
10744
10745 PR tree-opt/49309
10746 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
10747 Use fold_build2_loc instead of build2.
10748 Use the correct type for the new tree.
10749
10750 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
10751
10752 PR rtl-optimization/11320
10753 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
10754 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
10755
10756 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
10757
10758 PR target/49487
10759 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
10760 of REG.
10761 (*rotw<mode>): Use const_int_operand for operand2.
10762 Use match_scatch for operand3.
10763 (*rotb<mode>): Ditto
10764 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
10765
10766 2011-07-14 Richard Guenther <rguenther@suse.de>
10767
10768 PR tree-optimization/49651
10769 * tree-ssa-structalias.c (get_constraint_for_1): Properly
10770 handle dereferences with subvariables.
10771
10772 2011-07-14 Richard Guenther <rguenther@suse.de>
10773
10774 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
10775 (fold_stmt_1): Do it here directly on gimple and as a first thing.
10776
10777 2011-07-14 Richard Guenther <rguenther@suse.de>
10778
10779 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
10780 not bool_var when folding bool_var != 1 or bool_var == 0.
10781
10782 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
10783
10784 * haifa-sched.c (schedule_insns): Remove outdated comment.
10785 (schedule_block): When computing a known value for TODO_SPEC,
10786 just set it rather than using logical operations.
10787 (try_ready): Likewise. Use a local variable rather than a
10788 pointer to TODO_SPEC. Reorder an if statement to move the
10789 easy case to the then block.
10790 * sched-deps.c (dep_spec_p): New static function.
10791 (update_dep): Use it to decide whether to call
10792 change_spec_dep_to_hard.
10793 (get_back_and_forw_lists): Use it.
10794 (sd_resolve_dep): Likewise.
10795 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
10796 (haifa_note_mem_dep): Likewise.
10797 (check_dep): Likewise.
10798 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
10799 (sched_free_deps): Free in two passes.
10800
10801 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
10802
10803 PR middle-end/49736
10804 * expr.c (all_zeros_p): Undo bogus part of last change.
10805
10806 2011-07-14 Matthias Klose <doko@ubuntu.com>
10807
10808 * doc/extend.texi (optimize attribute): Fix typo.
10809
10810 2011-07-14 Richard Guenther <rguenther@suse.de>
10811
10812 * gimplify.c (gimplify_expr): Only do required conversions.
10813
10814 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
10815
10816 PR target/43746
10817 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
10818 i.e. use default_elf_select_section.
10819 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
10820 (READONLY_DATA_SECTION_ASM_OP): Remove.
10821 (TARGET_ASM_NAMED_SECTION): Move from here...
10822 * config/avr/avr.c: ...to here.
10823 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
10824 (avr_asm_named_section): Make static.
10825
10826 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10827
10828 PR bootstrap/49739
10829 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
10830 and crtfastmath.o for Linux/x86.
10831
10832 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
10833
10834 * haifa-sched.c: Include "hashtab.h"
10835 (sched_no_dce): New global variable.
10836 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
10837 SHADOW_P): New macros.
10838 (last_clock_var, cycle_issued_insns): Move declarations.
10839 (must_backtrack): New static variable.
10840 (struct delay_pair): New structure.
10841 (delay_htab, delay_htab_i2): New static variables.
10842 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
10843 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
10844 functions.
10845 (dep_cost_1): If delay pairs exist, try to look up the insns and
10846 use the correct pair delay if we find them.
10847 (rank-for_schedule): Tweak priority for insns that must be scheduled
10848 soon to avoid backtracking.
10849 (queue_insn): Detect conditions which force backtracking.
10850 (ready_add): Likewise.
10851 (struct sched_block_state): Add member shadows_only_p.
10852 (struct haifa_save_data): New structure.
10853 (backtrack_queue): New static variable.
10854 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
10855 unschedule_insns_until, restore_last_backtrack_point,
10856 free_topmost_backtrack_point, free_backtrack_queue,
10857 estimate_insn_tick, estimate_shadow_tick): New functions.
10858 (prune_ready_list): New arg shadows_only_p. All callers changed.
10859 If true, remove everything that isn't SHADOW_P. Look up delay
10860 pairs and estimate ticks to avoid scheduling the first insn too early.
10861 (verify_shadows): New function.
10862 (schedule_block): Add machinery to enable backtracking.
10863 (sched_init): Take sched_no_dce into account when setting
10864 DF_LR_RUN_DCE.
10865 (free_delay_pairs): New function.
10866 (init_h_i_d): Initialize INSN_EXACT_TICK.
10867 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
10868 * sched-deps.c (sd_unresolve_dep): New function.
10869 * sched-int. (struct haifa_sched_info): New fields save_state
10870 and restore_state.
10871 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
10872 feeds_backtrack_insn and shadow_p.
10873 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
10874 (sched_no_dce): Declare variable.
10875 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
10876 sd_unresolve_dep): Declare functions.
10877 * modulo-sched.c (sms_sched_info): Clear the two new fields.
10878 * sched-rgn.c (rgn_const_sched_info): Likewise.
10879 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
10880 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
10881 (ebb_sched_info): Add them for the two new fields.
10882 (add_deps_for_risky_insns): Call add_delay_dependencies.
10883
10884 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
10885
10886 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
10887 Rename -mr11.
10888 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
10889 (rs6000_call_indirect_aix): Ditto.
10890 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
10891 (call_indirect_aix<ptrsize>_internal): Ditto.
10892 (call_indirect_aix<ptrsize>_nor11): Ditto.
10893 (call_indirect_aix<ptrsize>_internal2): Ditto.
10894 (call_value_indirect_aix<ptrsize>): Ditto.
10895 (call_value_indirect_aix<ptrsize>_internal): Ditto.
10896 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
10897 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
10898 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
10899
10900 2011-07-13 Jason Merrill <jason@redhat.com>
10901
10902 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
10903
10904 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10905
10906 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
10907 * config/spu/spu.md ("clrsb<mode>2"): New expander.
10908
10909 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
10910
10911 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
10912 * configure: Regenerate.
10913
10914 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10915
10916 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
10917 (asm_file_start): Remove.
10918 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
10919 free_bb_for_insn around code that modifies insns before
10920 restarting df analysis.
10921
10922 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10923
10924 PR target/49541
10925 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
10926 (LINK_SPEC): ... here.
10927
10928 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
10929
10930 * haifa-sched.c (struct sched_block_state): New.
10931 (schedule_block): Move some local variables into such a structure.
10932
10933 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10934
10935 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
10936 * config/i386/t-crtpc: Remove.
10937 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
10938 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
10939 tmake_file.
10940 (x86_64-*-darwin*): Likewise.
10941 (i[34567]86-*-linux*): Likewise.
10942 (x86_64-*-linux*): Likewise.
10943
10944 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
10945 Handle -mpc32, -mpc64, -mpc80.
10946
10947 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10948
10949 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
10950 * config/alpha/t-crtfm: Remove.
10951 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
10952 * config/i386/t-crtfm: Remove.
10953 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
10954 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
10955 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
10956 * config/sparc/t-crtfm: Remove.
10957
10958 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
10959 (alpha*-*-freebsd*): Likewise.
10960 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
10961 (x86_64-*-darwin*): Likewise.
10962 (i[34567]86-*-linux*): Likewise.
10963 (x86_64-*-linux*): Likewise.
10964 (x86_64-*-mingw*): Likewise.
10965 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
10966 (ia64*-*-freebsd*): Likewise.
10967 (ia64*-*-linux*): Likewise.
10968 (mips64*-*-linux*): Likewise.
10969 (mips*-*-linux*): Likewise.
10970 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
10971 (sparc64-*-linux*): Likewise.
10972 (sparc64-*-freebsd*): Likewise.
10973
10974 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10975
10976 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
10977 * config/darwin-crt3.c: Move to ../libgcc/config.
10978 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
10979 ($(T)crt3$(objext)): Remove.
10980 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
10981 ($(T)crt2$(objext)): Remove.
10982 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
10983 (powerpc64-*-darwin*): Likewise.
10984
10985 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
10986
10987 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
10988
10989 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
10990 (addsi_1_zext): This.
10991
10992 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
10993
10994 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
10995 * doc/tm.texi: Regenerate.
10996 * target.def (mergeable_rodata_prefix): New defhookpod.
10997 * varasm.c (mergeable_string_section, mergeable_constant_section):
10998 Use it. Allocate name with alloca.
10999
11000 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
11001
11002 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
11003
11004 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
11005
11006 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
11007 overlap check.
11008
11009 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
11010
11011 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
11012 (count_type_elements): Delete.
11013 (complete_ctor_at_level_p): Declare.
11014 * expr.c (flexible_array_member_p): New function, split out from...
11015 (count_type_elements): ...here. Make static. Replace allow_flexarr
11016 parameter with for_ctor_p. When for_ctor_p is true, return the
11017 number of elements that should appear in the top-level constructor,
11018 otherwise return an estimate of the number of scalars.
11019 (categorize_ctor_elements): Replace p_must_clear with p_complete.
11020 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
11021 (complete_ctor_at_level_p): New function, borrowing union logic
11022 from old categorize_ctor_elements_1.
11023 (mostly_zeros_p): Return true if the constructor is not complete.
11024 (all_zeros_p): Update call to categorize_ctor_elements.
11025 * gimplify.c (gimplify_init_constructor): Update call to
11026 categorize_ctor_elements. Don't call count_type_elements.
11027 Unconditionally prevent clearing for variable-sized types,
11028 otherwise rely on categorize_ctor_elements to detect
11029 incomplete initializers.
11030
11031 2011-07-13 Richard Guenther <rguenther@suse.de>
11032
11033 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
11034 the final type is integral.
11035
11036 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
11037
11038 * sched-int.h (struct _dep): Add member cost.
11039 (DEP_COST, UNKNOWN_DEP_COST): New macros.
11040 * sched-deps.c (init_dep_1): Initialize DEP_COST.
11041 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
11042 (sched_change_pattern): Reset it for dependent insns.
11043
11044 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11045
11046 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
11047 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
11048 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
11049 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
11050 (CRT0_S, MCRT0_S): Remove.
11051 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
11052 Remove.
11053 (s-crt0): Remove.
11054 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
11055
11056 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
11057
11058 * cse.c (insert_with_costs): Put semi-colon after empty loop body
11059 on the next line.
11060 * emit-rtl.c (push_to_sequence): Likewise.
11061 * haifa-sched.c (max_issue): Likewise.
11062 * matrix-reorg.c (add_allocation_site): Likewise.
11063 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
11064 * reload.c (alternative_allows_const_pool_ref): Likewise.
11065 * sched-rgn.c (rgn_add_block): Likewise.
11066 (rgn_fix_recovery_cfg): Likewise.
11067 * tree.c (attribute_list_contained): Likewise.
11068
11069 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
11070
11071 * config/i386/i386.c: Tidy processor feature bitmasks.
11072 (m_P4_NOCONA): New.
11073
11074 2011-07-12 Andrew Pinski <pinskia@gmail.com>
11075
11076 PR rtl-opt/49474
11077 * cprop.c (find_implicit_sets): Correct the condition.
11078
11079 2011-07-12 Richard Henderson <rth@redhat.com>
11080
11081 PR target/49713
11082 * dwarf2out.h (dwarf_frame_regnum): Remove.
11083 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
11084 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
11085 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
11086 (execute_dwarf2_frame): Initialize them.
11087 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
11088 users of the macros with the variables.
11089 (expand_builtin_dwarf_sp_column): Revert last change.
11090 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
11091 result of DWARF_FRAME_REGNUM into a local variable.
11092
11093 2011-07-12 Richard Henderson <rth@redhat.com>
11094
11095 PR target/49714
11096 * config/i386/i386.c (x86_output_mi_thunk): Use
11097 machopic_indirect_call_target instead of machopic_indirection_name
11098 directly.
11099
11100 2011-07-12 Laurent GUERBY <laurent@guerby.net>
11101 Eric Botcazou <ebotcazou@adacore.com>
11102
11103 * prefix.h: Wrap up in extern "C" block.
11104
11105 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
11106
11107 AMD bdver2 Enablement
11108 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
11109 (case ${target}): Add bdver2.
11110 * config/i386/driver-i386.c (host_detect_local_cpu): Let
11111 -march=native recognize bdver2 processors.
11112 * config/i386/i386-c.c (ix86_target_macros_internal): Add
11113 bdver2 def_and_undef
11114 * config/i386/i386.c (struct processor_costs bdver2_cost): New
11115 bdver2 cost table.
11116 (m_BDVER2): New definition.
11117 (m_AMD_MULTIPLE): Includes m_BDVER2.
11118 (initial_ix86_tune_features): Add bdver2 tuning.
11119 (processor_target_table): Add bdver2 entry.
11120 (static const char *const cpu_names): Add bdver2 entry.
11121 (ix86_option_override_internal): Add bdver2 instruction sets.
11122 (ix86_issue_rate): Add bdver2.
11123 (ix86_adjust_cost): Add bdver2.
11124 (has_dispatch): Add bdver2.
11125 * config/i386/i386.h (TARGET_BDVER2): New definition.
11126 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
11127 (enum processor_type): Add PROCESSOR_BDVER2.
11128 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
11129 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
11130 description.
11131
11132 2011-07-12 Richard Henderson <rth@redhat.com>
11133
11134 PR target/49714
11135 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
11136 destination address in memory on some paths.
11137
11138 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
11139
11140 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
11141 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
11142 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
11143 * function.c (locate_and_pad_parm): Take it into account.
11144 * target.def (function_arg_round_boundary): New hook.
11145 * targhooks.c (default_function_arg_round_boundary): New function.
11146 * targhooks.h (default_function_arg_round_boundary): Declare.
11147 * doc/tm.texi: Regenerate.
11148
11149 2011-07-12 Richard Guenther <rguenther@suse.de>
11150
11151 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
11152 Do not perform no-op changes.
11153
11154 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
11155
11156 * config/arm/predicates.md (neon_struct_operand): Make a normal
11157 predicate.
11158 (neon_struct_or_register_operand): New predicate.
11159 * config/arm/neon.md (movmisalign<mode>): Replace predicates
11160 with neon_struct_or_register_operand.
11161 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
11162 neon_struct_operand instead of memory_operand.
11163
11164 2011-07-12 Martin Jambor <mjambor@suse.cz>
11165
11166 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
11167 * cgraph.c (cgraph_get_node_or_alias): Removed.
11168 (change_decl_assembler_name): Changed all calls to
11169 cgraph_get_node_or_alias to a call to cgraph_get_node.
11170 (cgraph_make_decl_local): Likewise.
11171 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
11172 * varasm.c (default_binds_local_p_1): Likewise.
11173 (decl_binds_to_current_def_p): Likewise.
11174
11175 2011-07-12 Jakub Jelinek <jakub@redhat.com>
11176
11177 PR tree-optimization/49712
11178 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
11179
11180 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
11181
11182 * genautomata.c (add_arc): Return void. All callers changed.
11183 (make_automaton): Remove dead code.
11184
11185 2011-07-11 Richard Henderson <rth@redhat.com>
11186
11187 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
11188 (DW_FRAME_POINTER_REGNUM): New.
11189 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
11190 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
11191 (dwf_regno): New.
11192 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
11193 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
11194 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
11195 Use it.
11196 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
11197 * dwarf2out.h (dwarf_frame_regnum): New.
11198 (struct cfa_loc): Document the domain of the reg member.
11199
11200 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
11201
11202 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
11203 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
11204
11205 2011-07-11 Jakub Jelinek <jakub@redhat.com>
11206
11207 PR debug/49676
11208 * dwarf2out.c (int_shift_loc_descriptor): New function.
11209 (int_loc_descriptor): If shorter, emit i as
11210 (i >> shift), shift, DW_OP_shl for suitable shift value.
11211 Similarly, try to optimize large negative values using
11212 DW_OP_neg of a positive value if shorter.
11213 (size_of_int_shift_loc_descriptor): New function.
11214 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
11215 changes.
11216 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
11217 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
11218 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
11219 is shorter.
11220 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
11221 addend as added DW_OP_plus if it is shorter.
11222
11223 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11224
11225 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
11226 (DTORS_SECTION_ASM_OP): Define.
11227
11228 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11229
11230 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
11231 * config/t-dfprules: Move to ../libgcc/config.
11232 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
11233 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
11234 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
11235 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
11236 Likewise.
11237 (i[34567]86-*-cygwin*): Likewise.
11238 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
11239 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
11240 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
11241 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
11242 D64PBIT_FUNCS, D128PBIT_FUNCS.
11243
11244 2011-07-11 Richard Guenther <rguenther@suse.de>
11245
11246 * tree-vrp.c (simplify_conversion_using_ranges): Manually
11247 translate the source value-range through the conversion chain.
11248
11249 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
11250
11251 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
11252
11253 2011-07-11 Arthur Loiret <aloiret@debian.org>
11254
11255 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
11256 a bi-arch compiler defaulting to 31-bit. In this case:
11257 (tmake_file): Add s390/t-linux64.
11258 * doc/install.texi: Add s390-linux to the list of targets supporting
11259 --enable-targets=all.
11260
11261 2011-07-11 Arthur Loiret <aloiret@debian.org>
11262 Matthias Klose <doko@debian.org>
11263
11264 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
11265 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
11266 (tm_file): Add mips/linux64.h.
11267 (tmake_file): Add mips/t-linux64.
11268 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
11269 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
11270 instead of hardcoded mabi=n32.
11271 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
11272 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
11273 convention.
11274
11275 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11276
11277 * passes.c (init_optimization_passes): Add invariant motion pass
11278 after induction variable optimization.
11279
11280 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
11281
11282 PR target/39633
11283 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
11284 offsets 1..5 set cc0 in a usable way.
11285
11286 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
11287
11288 * tree.h (call_expr_arg): Remove.
11289 (call_expr_argp): Likewise.
11290
11291 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
11292
11293 * config/sparc/sparc.md (save_register_window_1): Rename to...
11294 (window_save): ...this.
11295 * config/sparc/sparc.c (emit_save_register_window): Rename to...
11296 (emit_window_save): ...this.
11297 (sparc_expand_prologue): Adjust to above renaming.
11298
11299 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
11300
11301 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
11302 of movabs for x32.
11303
11304 2011-07-10 Richard Henderson <rth@redhat.com>
11305
11306 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
11307 run final, instead of emitting text directly.
11308
11309 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
11310
11311 * config/i386/i386.c (ix86_option_override_internal): Turn on
11312 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
11313 small PIC models for TARGET_X32.
11314
11315 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
11316
11317 PR target/49684
11318 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
11319 $(LIBGCC2_CFLAGS).
11320
11321 PR bootstrap/49680
11322 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
11323 stray notes and debug insns by using prev_nonnote_nondebug_insn
11324 instead of PREV_INSN.
11325
11326 2011-07-09 Richard Henderson <rth@redhat.com>
11327
11328 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
11329 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
11330 * dwarf2out.c: ... here.
11331 (output_all_cfis): Remove.
11332 (dwarf2out_switch_text_section): Use output_cfis directly.
11333 (size_of_locs): Export.
11334 (output_loc_sequence, output_loc_sequence_raw): Export.
11335 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
11336 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
11337 output_cfa_loc_raw): Move to ...
11338 * dwarfcfi.c: ... here.
11339 * dwarf2out.h: Update decls.
11340
11341 2011-07-09 Richard Henderson <rth@redhat.com>
11342
11343 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
11344 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
11345 * dwarf2cfi.c: ... here.
11346 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
11347 (DWARF_ROUND, DWARF_CIE_ID): Remove.
11348 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
11349 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
11350 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
11351
11352 2011-07-09 Richard Henderson <rth@redhat.com>
11353
11354 * dwarf2cfi.c (cie_return_save): New.
11355 (queue_reg_save): Use compare_reg_or_pc.
11356 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
11357 (dwarf2out_frame_debug_expr): Likewise.
11358 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
11359 (initial_return_save): Likewise.
11360 (execute_dwarf2_frame): Save and restore initial return save from
11361 the cie to the fde.
11362 * config/mips/mips.c (mips_frame_set): Remove special case for
11363 DWARF_FRAME_RETURN_COLUMN.
11364
11365 2011-07-09 Richard Henderson <rth@redhat.com>
11366
11367 * dwarf2cfi.c (lookup_cfa): Remove.
11368 (execute_dwarf2_frame): Assert queues are empty on entry.
11369 Setup initial cfa directly, not via lookup_cfa.
11370 Don't clear args_size state here.
11371
11372 2011-07-09 Richard Henderson <rth@redhat.com>
11373
11374 * dwarf2cfi.c (add_cfi_vec): New.
11375 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
11376 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
11377 (execute_dwarf2_frame): Set add_cfi_vec.
11378
11379 2011-07-09 Richard Henderson <rth@redhat.com>
11380
11381 * defaults.h (ASM_COMMENT_START): Move here...
11382 * dwarf2asm.c: ... from here.
11383 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
11384 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
11385 * varasm.c: Likewise.
11386
11387 2011-07-09 Richard Henderson <rth@redhat.com>
11388
11389 PR debug/49686
11390 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
11391 (create_cfi_notes): ... do it here instead.
11392
11393 2011-07-09 Jakub Jelinek <jakub@redhat.com>
11394
11395 PR debug/49676
11396 * dwarf2out.c (size_of_int_loc_descriptor): New function.
11397 (address_of_int_loc_descriptor): Use it.
11398 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
11399
11400 2011-07-09 Richard Henderson <rth@redhat.com>
11401
11402 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
11403 (prologue, epilogue): New.
11404 (return, *rts): New.
11405 (blockage, setd, seti): New.
11406 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
11407 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
11408 (pdp11_saved_regno): New.
11409 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
11410 generate rtl instead of text.
11411 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
11412 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
11413 * config/pdp11/pdp11-protos.h: Update.
11414
11415 2011-07-09 Richard Henderson <rth@redhat.com>
11416
11417 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
11418 try to insert an rtl prologue here.
11419 (rs6000_output_function_epilogue): Similarly.
11420 * config/rs6000/rs6000.md (prologue): Emit a barrier to
11421 satisfy !TARGET_SCHED_PROLOG.
11422 (epilogue, sibcall_epilogue): Likewise.
11423
11424 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
11425
11426 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
11427 (FP_REG_P): Delete.
11428 (IN_OR_GLOBAL_P): Likewise.
11429
11430 2011-07-08 Jason Merrill <jason@redhat.com>
11431
11432 PR c++/45437
11433 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
11434 compound assignment.
11435
11436 * cgraph.c (cgraph_add_to_same_comdat_group): New.
11437 * cgraph.h: Declare it.
11438 * ipa.c (function_and_variable_visibility): Make sure thunks
11439 have the right visibility.
11440
11441 2011-07-08 Richard Henderson <rth@redhat.com>
11442
11443 PR bootstrap/49680
11444 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
11445 any tablejump vector.
11446
11447 PR bootstrap/49680
11448 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
11449 end of the prologue.
11450
11451 2011-07-08 Jakub Jelinek <jakub@redhat.com>
11452
11453 PR target/49621
11454 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
11455 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
11456 * config/rs6000/vector.md (vector_select_<mode>,
11457 vector_select_<mode>_uns): Change second operand of NE to
11458 CONST0_RTX (<MODE>mode) instead of const0_rtx.
11459 * config/rs6000/altivec.md (*altivec_vsel<mode>,
11460 *altivec_vsel<mode>_uns): Expect second operand of NE to be
11461 zero_constant of the corresponding vector mode.
11462 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
11463 Likewise.
11464
11465 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
11466
11467 * graphite-dependences.c (build_alias_set_powerset): Remove
11468 continue from loop, add one more assert.
11469
11470 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
11471
11472 PR target/46779
11473 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
11474 In particular, allow 8-bit values in r28 and r29.
11475 (avr_hard_regno_scratch_ok): Disallow any register that might be
11476 part of the frame pointer.
11477 (avr_hard_regno_rename_ok): Same.
11478 (avr_legitimate_address_p): Don't allow SUBREGs.
11479
11480 2011-07-08 Julian Brown <julian@codesourcery.com>
11481
11482 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
11483 big-endian mode.
11484 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
11485 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
11486 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
11487 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
11488 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
11489 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
11490 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
11491 registers in big-endian mode.
11492
11493 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
11494
11495 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
11496 in terms of another.
11497 (write_attr_value): Write a cast if necessary.
11498
11499 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
11500 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
11501 (REG_WORDS_BIG_ENDIAN): Document.
11502 * doc/tm.texi: Regenerate.
11503 * reload.c (operands_match_p): Take it into account.
11504 (reload_adjust_reg_for_mode): Likewise.
11505 * rtlanal.c (subreg_get_info): Likewise.
11506
11507 2011-07-08 Richard Guenther <rguenther@suse.de>
11508
11509 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
11510 folding.
11511
11512 2011-07-08 Kai Tietz <ktietz@redhat.com>
11513
11514 * fold-const.c (fold_truth_andor): Factored out truth_andor
11515 label from fold_binary as function.
11516 (fold_binary_loc): Replace truth_andor lable
11517 by function fold_truth_andor.
11518
11519 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
11520
11521 PR middle-end/49519
11522 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
11523 check if address is stored in register. If so - give up.
11524 (check_sibcall_argument_overlap_1): Do not perform check of
11525 overlapping when it is call to address.
11526
11527 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
11528
11529 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
11530 of magic '31'.
11531
11532 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
11533
11534 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
11535 GET_MODE_BITSIZE where appropriate.
11536 (widen_leading, expand_parity, expand_ctz, expand_ffs,
11537 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
11538 expand_float, expand_fix): Likewise.
11539 * expr.c (convert_move, convert_modes, expand_expr_real_2,
11540 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
11541 * stor-layout.c (get_mode_bounds): Likewise.
11542 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
11543 Likewise.
11544 * convert.c (convert_to_integer): Likewise.
11545 * expmed.c (expand_shift_1): Likewise.
11546
11547 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
11548 a bitsize.
11549
11550 * optabs.c (expand_binop): Tighten conditions for doubleword
11551 expansions.
11552 (widen_bswap): Assert that mode bitsize and precision are the same.
11553 * stor-layout.c (get_best_mode): Skip modes that have lower
11554 precision than bitsize.
11555 * recog.c (simplify_while_replacing): Assert that bitsize and
11556 precision are the same.
11557
11558 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11559
11560 * Makefile.in (LIBGCOV): Remove.
11561 (libgcc.mvars): Remove LIBGCOV.
11562 * libgov.c: Move to ../libgcc.
11563
11564 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11565
11566 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
11567
11568 2011-07-08 Martin Jambor <mjambor@suse.cz>
11569
11570 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
11571 is too big for total scalarization.
11572
11573 2011-07-07 Richard Henderson <rth@redhat.com>
11574
11575 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
11576 (DBX_DEBUGGING_INFO): Undef.
11577
11578 2011-07-07 Richard Henderson <rth@redhat.com>
11579
11580 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
11581 Handle some opcodes specially for debugging.
11582 * print-rtl.c: Include dwarf2out.h
11583 (print_rtx): Handle NOTE_INSN_CFI.
11584 * Makefile.in (print-rtl.o): Update.
11585
11586 2011-07-07 Richard Henderson <rth@redhat.com>
11587
11588 * tree-pass.h (pass_dwarf2_frame): Declare.
11589 * passes.c (init_optimization_passes): Add it.
11590 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
11591 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
11592 make static, do not call add_cfis_to_fde.
11593 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
11594 dwarf2out_frame_init): Merge into...
11595 (execute_dwarf2_frame): ... here. New function.
11596 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
11597 saved_do_cfi_asm to a tri-state variable.
11598 (gate_dwarf2_frame, pass_dwarf2_frame): New.
11599 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
11600 if it has yet to be done. Don't call dwarf2cfi_function_init.
11601 * dwarf2out.h, debug.h: Update decls.
11602 * final.c (final_start_function): Don't call
11603 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
11604 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
11605 * toplev.c (lang_dependent_init): Likewise.
11606
11607 2011-07-07 Richard Henderson <rth@redhat.com>
11608
11609 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
11610 FDE_TABLE_INCREMENT): Replace with...
11611 (fde_vec): ... this, a new vector.
11612 (current_fde): Remove. Replace all users with cfun->fde.
11613 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
11614 (size_of_aranges, dwarf2out_finish): Likewise.
11615 (dwarf2out_alloc_current_fde): Break out from ...
11616 (dwarf2out_begin_prologue): ... here.
11617 (dwarf2out_frame_init): Remove.
11618 * dwarf2cfi.c: Update all users of current_fde.
11619 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
11620 * dwarf2out.h: Update decls.
11621 (dw_fde_node): Add fde_index member.
11622 * function.h (struct function): Add fde member.
11623
11624 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
11625 Richard Henderson <rth@redhat.com>
11626
11627 * dwarf2cfi.c (add_cfi): Remove.
11628 (dwarf2out_cfi_label): Remove force argument. Only generate the
11629 label name.
11630 (add_fde_cfi): Simplify the different code paths.
11631 (add_cie_cfi): New.
11632 (old_cfa, old_cfa_remember): New.
11633 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
11634 (last_reg_save_label): Remove.
11635 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
11636 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
11637 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
11638 dwarf2out_frame_debug_cfa_expression,
11639 dwarf2out_frame_debug_cfa_restore,
11640 dwarf2out_frame_debug_cfa_window_save,
11641 dwarf2out_frame_debug_expr): Remove label parameter.
11642 (cfi_label_required_p, add_cfis_to_fde): New.
11643 (dwarf2out_frame_debug_after_prologue): New.
11644 (dwarf2cfi_frame_init): Initialize old_cfa.
11645 (dwarf2out_frame_debug_restore_state): Likewise.
11646 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
11647 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
11648 * final.c (final_start_function): Call
11649 dwarf2out_frame_debug_after_prologue.
11650
11651 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
11652 Richard Henderson <rth@redhat.com>
11653
11654 * dwarf2cfi.c (cfi_insn): New.
11655 (dwarf2out_cfi_label): Don't emit cfi label here.
11656 (add_fde_cfi): Create a NOTE_INSN_CFI.
11657 (dwarf2out_frame_debug): Setup cfi_insn.
11658 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
11659 (dwarf2out_cfi_begin_epilogue): Make static.
11660 (dwarf2out_frame_debug_restore_state): Make static.
11661 * dwarf2out.c (output_cfi_directive): Make static.
11662 (dwarf2out_emit_cfi): New.
11663 * dwarf2out.h: Update.
11664 * final.c (final): Remove CFI notes.
11665 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
11666 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
11667 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
11668 * insn-notes.def (NOTE_INSN_CFI): New.
11669 (NOTE_INSN_CFI_LABEL): New.
11670 * rtl.h (union rtunion_def): Add rt_cfi member.
11671 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
11672
11673 2011-07-07 Richard Henderson <rth@redhat.com>
11674
11675 * dwarf2cfi.c: New file.
11676 * Makefile.in (OBJS): Add it.
11677 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
11678 * gengtype.c (open_base_files): Include dwarf2out.h.
11679 * coretypes.h (enum var_init_status): Move from ...
11680 * rtl.h: ... here.
11681 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
11682 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
11683 expand_builtin_dwarf_sp_column, init_return_column_size,
11684 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
11685 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
11686 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
11687 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
11688 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
11689 compute_barrier_args_size, dwarf2out_args_size,
11690 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
11691 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
11692 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
11693 queue_reg_save, dwarf2out_flush_queued_reg_saves,
11694 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
11695 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
11696 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
11697 dwarf2out_frame_debug_cfa_expression,
11698 dwarf2out_frame_debug_cfa_restore,
11699 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
11700 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
11701 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
11702 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
11703 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
11704 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
11705 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
11706 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
11707 dw_loc_descr_node): Move to dwarf2out.h.
11708 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
11709 mem_loc_descriptor): Export.
11710 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
11711 (dwarf2out_frame_init): Extract CIE generation code to
11712 dwarf2cfi_frame_init.
11713
11714 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
11715
11716 PR target/49660
11717 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
11718 MASK_V8PLUS, remove commented out flag and reorder.
11719
11720 2011-07-07 Jakub Jelinek <jakub@redhat.com>
11721
11722 PR c/49644
11723 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
11724 one non-complex and one complex argument, call c_save_expr on both
11725 operands.
11726
11727 2011-07-07 Martin Jambor <mjambor@suse.cz>
11728
11729 PR middle-end/49495
11730 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
11731 (verify_cgraph_node): Some functinality moved to
11732 verify_edge_corresponds_to_fndecl, call it.
11733
11734 2011-07-07 Joseph Myers <joseph@codesourcery.com>
11735
11736 * config.gcc (*local*): Remove.
11737 * doc/install-old.texi: Don't mention local configurations.
11738
11739 2011-07-07 Jakub Jelinek <jakub@redhat.com>
11740
11741 PR debug/49522
11742 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
11743 referencing debug insns that have been reset.
11744 (dead_debug_insert_before): Don't assert reg is non-NULL,
11745 instead return immediately if it is NULL.
11746
11747 2011-07-07 Joseph Myers <joseph@codesourcery.com>
11748
11749 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
11750
11751 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
11752
11753 * hw-doloop.c: New file.
11754 * hw-doloop.h: New file.
11755 * Makefile.in (OBJS): Add hw-doloop.o.
11756 (hw-doloop.o): New rule.
11757 ($(obj_out_file)): Add hw-doloop.h dependency.
11758 * config/bfin/bfin.c: Include "hw-doloop.h".
11759 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
11760 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
11761 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
11762 type changed to hwloop_info. Return bool, true if the loop was
11763 successfully optimized. Remove code that was moved to
11764 hw-doloop.c, and adjust other parts.
11765 (hwloop_fail): New static function, containing parts that used
11766 to be in bfin_optimize_loop.
11767 (bfin_discover_loop, bfin_discover_loops, free_loops,
11768 bfin_reorder_loops): Remove.
11769 (hwloop_pattern_reg): New static function.
11770 (bfin_doloop_hooks): New variable.
11771 (bfin_reorg_loops): Remove most code, call reorg_loops.
11772 * config/bfin/bfin.md (doloop_end splitter): Also enable if
11773 loop counter is a memory_operand.
11774
11775 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
11776
11777 * config.gcc: Support --with-multilib-list for x86 Linux targets.
11778
11779 * configure.ac: Mention x86-64 for --with-multilib-list.
11780 * configure: Regenerated.
11781
11782 * config/i386/gnu-user64.h (SPEC_64): Support x32.
11783 (SPEC_32): Likewise.
11784 (ASM_SPEC): Likewise.
11785 (LINK_SPEC): Likewise.
11786 (TARGET_THREAD_SSP_OFFSET): Likewise.
11787 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
11788 (SPEC_X32): New.
11789
11790 * config/i386/i386.h (TARGET_X32): New.
11791 (TARGET_LP64): New.
11792 (LONG_TYPE_SIZE): Likewise.
11793 (POINTER_SIZE): Likewise.
11794 (POINTERS_EXTEND_UNSIGNED): Likewise.
11795 (OPT_ARCH64): Support x32.
11796 (OPT_ARCH32): Likewise.
11797
11798 * config/i386/i386.opt (mx32): New.
11799
11800 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
11801 (GLIBC_DYNAMIC_LINKERX32): Likewise.
11802 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
11803 (GLIBC_DYNAMIC_LINKERX32): Likewise.
11804
11805 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
11806 (BIONIC_DYNAMIC_LINKERX32): Likewise.
11807 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
11808
11809 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
11810
11811 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
11812
11813 * doc/invoke.texi: Document -mx32.
11814
11815 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
11816
11817 * doc/invoke.texi (mwords-little-endian): Deprecate.
11818 * config/arm/arm.opt (mwords-little-endian): Likewise.
11819 * config/arm/arm.c (arm_option_override): Warn about the deprecation
11820 of -mwords-little-endian.
11821
11822 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
11823
11824 * reload1.c (choose_reload_regs): Use mode sizes to check whether
11825 an old reload register completely defines the required value.
11826
11827 2011-07-07 Richard Guenther <rguenther@suse.de>
11828
11829 * fold-const.c (fold_unary_loc): Do not strip sign-changes
11830 for NEGATE_EXPR.
11831
11832 2011-07-07 Richard Guenther <rguenther@suse.de>
11833
11834 * tree-vrp.c (simplify_conversion_using_ranges): New function.
11835 (simplify_stmt_using_ranges): Call it.
11836
11837 2011-07-07 Kai Tietz <ktietz@redhat.com>
11838
11839 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
11840 (lookup_logical_inverted_value): Likewise.
11841 (simplify_bitwise_binary_1): Likewise.
11842 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
11843
11844 2011-07-07 Joseph Myers <joseph@codesourcery.com>
11845
11846 * gcc.c (%[Spec]): Don't document.
11847 (struct spec_list): Update comment.
11848 (do_spec_1): Don't handle %[Spec].
11849 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
11850
11851 2011-07-07 Joseph Myers <joseph@codesourcery.com>
11852
11853 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
11854 default based on TARGET_ASM_NAMED_SECTION.
11855 * common/common-target.def (have_named_sections): Default to true.
11856 * common/config/default-common.c: Don't include tm.h.
11857 * common/config/picochip/picochip-common.c
11858 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
11859 * common/config/m32c/m32c-common.c: Remove.
11860 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
11861 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11862 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11863 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11864 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11865 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11866 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11867
11868 2011-07-07 Jakub Jelinek <jakub@redhat.com>
11869
11870 PR middle-end/49640
11871 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
11872 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
11873
11874 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11875
11876 PR libmudflap/49550
11877 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
11878
11879 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11880
11881 PR target/39150
11882 * configure.ac (gcc_cv_as_hidden): Also accept
11883 x86_64-*-solaris2.1[0-9]*.
11884 (gcc_cv_as_cfi_directive): Likewise.
11885 (gcc_cv_as_comdat_group_group): Likewise.
11886 (set_have_as_tls): Likewise.
11887 * configure: Regenerate.
11888 * config.gcc (i[34567]86-*-solaris2*): Also handle
11889 x86_64-*-solaris2.1[0-9]*.
11890 * config.host (i[34567]86-*-solaris2*): Likewise.
11891 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
11892 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
11893 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
11894 (TARGET_LD_EMULATION): Use it.
11895 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
11896 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
11897 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
11898 (ASM_CPU64_DEFAULT_SPEC): Define.
11899 (ASM_CPU_SPEC): Use %(asm_cpu_default).
11900 (ASM_SPEC): Redefine.
11901 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
11902 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
11903 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
11904 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
11905 configuration.
11906 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
11907
11908 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11909
11910 * config/sol2.h (ASM_SPEC): Split into ...
11911 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
11912 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
11913 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
11914 (ASM_SPEC): Use ASM_SPEC_BASE.
11915 * config/sparc/sol2.h (ASM_SPEC): Redefine.
11916
11917 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
11918
11919 * config/avr/avr.md (*reload_insi): Change predicate #1 to
11920 const_int_operand. Ditto for peep2 producing this insn.
11921 Add argument to output_reload_insisf call.
11922 (*movsi,*movsf): Add argument to output_movsisf call.
11923 (*reload_insf): New insn and new peep2 to produce it.
11924 * config/avr/avr-protos.h (output_movsisf): Change prototype.
11925 (output_reload_insisf): Change prototype.
11926 * config/avr/avr.c (avr_asm_len): New function.
11927 (output_reload_insisf): Rewrite.
11928 (output_movsisf): Change prototype. output_reload_insisf for
11929 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
11930 (adjust_insn_length): Add argument to output_movsisf and
11931 output_reload_insisf call.
11932
11933 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
11934
11935 * emit-rtl.c (paradoxical_subreg_p): New function.
11936 * rtl.h (paradoxical_subreg_p): Declare.
11937 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
11938 apply_distributive_law, simplify_comparison, simplify_set): Use it.
11939 * cse.c (record_jump_cond, cse_insn): Likewise.
11940 * expr.c (force_operand): Likewise.
11941 * rtlanal.c (num_sign_bit_copies1): Likewise.
11942 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
11943 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
11944 (push_reload): Use precision to check for paradoxical subregs.
11945 * expmed.c (extract_bit_field_1): Likewise.
11946
11947 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
11948 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
11949 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
11950 simplify_set, simplify_logical, expand_compound_operation,
11951 make_extraction, force_to_mode, if_then_else_cond, extended_count,
11952 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
11953 record_value_for_reg): Likewise.
11954 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
11955 * simplify-rtx. c (simplify_unary_operation_1,
11956 simplify_binary_operation_1, simplify_const_relational_operation):
11957 Likewise.
11958
11959 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
11960 instead of GET_MODE_BITSIZE where appropriate.
11961 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
11962 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
11963 init_num_sign_bit_copies_in_rep): Likewise.
11964 * cse.c (fold_rtx, cse_insn): Likewise.
11965 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
11966 * simplify-rtx.c (simplify_unary_operation_1,
11967 simplify_const_unary_operation, simplify_binary_operation_1,
11968 simplify_const_binary_operation, simplify_ternary_operation,
11969 simplify_const_relational_operation, simplify_subreg): Likewise.
11970 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
11971 simplify_if_then_else, simplify_set, expand_compound_operation,
11972 expand_field_assignment, make_extraction, if_then_else_cond,
11973 make_compound_operation, force_to_mode, make_field_assignment,
11974 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
11975 extended_count, try_widen_shift_mode, simplify_shift_const_1,
11976 simplify_comparison, record_promoted_value, simplify_compare_const,
11977 record_dead_and_set_regs_1): Likewise.
11978
11979 Revert:
11980 * simplify-rtx.c (simplify_const_binary_operation): Use the
11981 shift_truncation_mask hook instead of performing modulo by width.
11982 Compare against mode precision, not bitsize.
11983 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
11984 Use shift_truncation_mask instead of constructing the value manually.
11985
11986 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
11987
11988 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
11989 declaration.
11990 (rs6000_save_toc_in_prologue_p): Ditto.
11991
11992 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
11993 up the static chain (r11) during indirect function calls.
11994 (-msave-toc-indirect): New undocumented debug switch.
11995
11996 * config/rs6000/rs6000.c (struct machine_function): Add
11997 save_toc_in_prologue field to note whether the prologue needs to
11998 save the TOC value in the reserved stack location.
11999 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
12000 to save the TOC in the prologue, do so.
12001 (rs6000_trampoline_init): Don't allow creating AIX style
12002 trampolines if -mno-r11 is in effect.
12003 (rs6000_call_indirect_aix): New function to create AIX style
12004 indirect calls, adding support for -mno-r11 to suppress loading
12005 the static chain, and saving the TOC in the prologue instead of
12006 the call body.
12007 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
12008 TOC in the prologue.
12009
12010 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
12011 register numbers.
12012 (TOC_REGNUM): Ditto.
12013 (STATIC_CHAIN_REGNUM): Ditto.
12014 (ARG_POINTER_REGNUM): Ditto.
12015 (SFP_REGNO): Delete, unused.
12016 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
12017 function descriptor offsets.
12018 (TOC_SAVE_OFFSET_64BIT): Ditto.
12019 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
12020 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
12021 (AIX_FUNC_DESC_SC_32BIT): Ditto.
12022 (AIX_FUNC_DESC_SC_64BIT): Ditto.
12023 (ptrload): New mode attribute for the appropriate load of a pointer.
12024 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
12025 (call_indirect_aix64): Ditto.
12026 (call_value_indirect_aix32): Ditto.
12027 (call_value_indirect_aix64): Ditto.
12028 (call_indirect_nonlocal_aix32_internal): Ditto.
12029 (call_indirect_nonlocal_aix32): Ditto.
12030 (call_indirect_nonlocal_aix64_internal): Ditto.
12031 (call_indirect_nonlocal_aix64): Ditto.
12032 (call): Rewrite AIX indirect function calls. Add support for
12033 eliminating the static chain, and for moving the save of the TOC
12034 to the function prologue.
12035 (call_value): Ditto.
12036 (call_indirect_aix<ptrsize>): Ditto.
12037 (call_indirect_aix<ptrsize>_internal): Ditto.
12038 (call_indirect_aix<ptrsize>_internal2): Ditto.
12039 (call_indirect_aix<ptrsize>_nor11): Ditto.
12040 (call_value_indirect_aix<ptrsize>): Ditto.
12041 (call_value_indirect_aix<ptrsize>_internal): Ditto.
12042 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
12043 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
12044 (call_nonlocal_aix32): Relocate in the rs6000.md file.
12045 (call_nonlocal_aix64): Ditto.
12046
12047 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
12048 -mno-r11 documentation.
12049
12050 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
12051
12052 PR other/49658
12053 * doc/extend.texi (Compound Literals): Fix typo.
12054
12055 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
12056
12057 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
12058
12059 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
12060
12061 * configure.ac (plugin-version.h): Generate
12062 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
12063 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
12064 macros.
12065
12066 * configure: Regenerate.
12067
12068 * doc/plugins.texi (Building GCC plugins): Mention
12069 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
12070
12071 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
12072
12073 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
12074 * combine.c (make_extraction, gen_lowpart_or_truncate,
12075 apply_distributive_law, simplify_comparison,
12076 reg_truncated_to_mode, record_truncated_value): Use it.
12077 * cse.c (notreg_cost): Likewise.
12078 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
12079 * expr.c (convert_move, convert_modes): Likewise.
12080 * optabs.c (expand_binop, expand_unop): Likewise.
12081 * postreload.c (move2add_last_label): Likewise.
12082 * regmove.c (optimize_reg_copy_3): Likewise.
12083 * rtlhooks.c (gen_lowpart_general): Likewise.
12084 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
12085
12086 2011-07-06 Joseph Myers <joseph@codesourcery.com>
12087
12088 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
12089
12090 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
12091
12092 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
12093 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
12094 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
12095 (simplify_const_unary_operation, simplify_binary_operation_1,
12096 simplify_const_binary_operation, simplify_const_relational_operation):
12097 Use them. Use GET_MODE_MASK for masking and sign-extensions.
12098 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
12099 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
12100 simplify_shift_const_1, simplify_comparison): Likewise.
12101 * expr.c (convert_modes): Likewise.
12102 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
12103 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
12104 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
12105
12106 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
12107
12108 2011-07-06 Richard Guenther <rguenther@suse.de>
12109
12110 PR tree-optimization/49645
12111 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
12112 register variables.
12113 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
12114 in type qualification here ...
12115 (copy_reference_ops_from_ref): ... not here.
12116 (vn_reference_lookup_3): ... or here.
12117 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
12118 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
12119
12120 2011-07-06 Ian Lance Taylor <iant@google.com>
12121
12122 * doc/install.texi (Configuration): It's
12123 --enable-gnu-indirect-function, not --enable-indirect-function.
12124
12125 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
12126
12127 * simplify-rtx.c (simplify_const_binary_operation): Use the
12128 shift_truncation_mask hook instead of performing modulo by width.
12129 Compare against mode precision, not bitsize.
12130 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
12131 Use shift_truncation_mask instead of constructing the value manually.
12132
12133 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
12134
12135 PR middle-end/47383
12136 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
12137 address computation and convert to address_mode if needed.
12138
12139 2011-07-06 Richard Guenther <rguenther@suse.de>
12140
12141 * tree.c (build_common_tree_nodes_2): Merge with
12142 build_common_tree_nodes.
12143 * tree.h (build_common_tree_nodes): Adjust prototype.
12144 (build_common_tree_nodes_2): Remove.
12145 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
12146 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
12147
12148 2011-07-05 Jakub Jelinek <jakub@redhat.com>
12149
12150 PR tree-optimization/49618
12151 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
12152 t recurse on the decl.
12153 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
12154 return true if expr isn't known to be defined in current
12155 TU or some other LTO partition.
12156
12157 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
12158
12159 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
12160 override CASE_VALUES_THRESHOLD.
12161
12162 * stmt.c (toplevel): Include params.h.
12163 (case_values_threshold): Use the --param case-values-threshold
12164 value if non-zero, otherwise use machine dependent value.
12165 (expand_case): Use case_values_threshold.
12166
12167 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
12168
12169 * doc/invoke.texi (--param case-values-threshold): Document.
12170
12171 2011-07-05 Richard Henderson <rth@redhat.com>
12172
12173 * dwarf2out.c (dwarf2out_cfi_label): Make static.
12174 (dwarf2out_flush_queued_reg_saves): Make static.
12175 (dwarf2out_reg_save): Remove.
12176 (dwarf2out_return_save): Remove.
12177 (dwarf2out_return_reg): Remove.
12178 (dwarf2out_reg_save_reg): Remove.
12179 (dwarf2out_def_cfa): Merge into ...
12180 (dwarf2out_frame_init): ... here.
12181 * dwarf2out.h, tree.h: Remove declarations as necessary.
12182
12183 2011-07-05 Richard Henderson <rth@redhat.com>
12184
12185 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
12186 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
12187 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
12188 the alloc insn.
12189
12190 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
12191 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
12192 (process_epilogue): Don't call dwarf2out_def_cfa.
12193
12194 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
12195 indicate the return address save.
12196 (process_cfa_register): Likewise.
12197
12198 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
12199 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
12200
12201 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
12202 for ar.pfs save at alloc insn.
12203
12204 2011-07-05 Richard Henderson <rth@redhat.com>
12205
12206 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
12207 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
12208 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
12209 stack pointer save.
12210 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
12211 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
12212 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
12213 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
12214
12215 2011-07-05 Richard Henderson <rth@redhat.com>
12216
12217 * config/vax/vax.md (define_c_enum unspecv): New. Define the
12218 VUNSPEC_* constants here instead of via define_constants.
12219 (VUNSPEC_PEM): New constant.
12220 (procedure_entry_mask): New insn.
12221 (prologue): New expander.
12222 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
12223 (vax_expand_prologue): Rename from vax_output_function_prologue;
12224 emit rtl instead of text.
12225 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
12226 (print_operand): Add 'x' prefix.
12227
12228 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
12229
12230 PR middle-end/47715
12231 * calls.c (precompute_register_parameters): Promote the function
12232 argument before checking non-legitimate constant.
12233
12234 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
12235
12236 PR tree-optimization/47654
12237 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
12238 (lst_do_strip_mine_loop): Return an int.
12239 (lst_do_strip_mine): Same.
12240 (scop_do_strip_mine): Same.
12241 (scop_do_block): Loop blocking should strip-mine at least two loops.
12242 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
12243 (scop_do_interchange): Same.
12244 * graphite-poly.h (scop_do_interchange): Update declaration.
12245 (scop_do_strip_mine): Same.
12246
12247 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
12248
12249 * graphite-clast-to-gimple.c (precision_for_value): Removed.
12250 (precision_for_interval): Removed.
12251 (gcc_type_for_interval): Use mpz_sizeinbase.
12252
12253 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
12254
12255 * graphite-ppl.h (value_max): Correct computation of max.
12256
12257 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
12258
12259 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
12260
12261 2011-07-05 Richard Guenther <rguenther@suse.de>
12262
12263 * c-decl.c (c_init_decl_processing): Defer building common
12264 tree nodes to c_common_nodes_and_builtins.
12265
12266 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
12267
12268 PR tree-optimization/49580
12269 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
12270 the loop's number of iterations.
12271 * tree-parloops.c (transform_to_exit_first_loop): Add the
12272 handling of the loop's number of iterations before the call
12273 to gimple_duplicate_sese_tail.
12274 Insert the stmt caclculating the new rhs of the loop's
12275 condition stmt to the preheader instead of iters_bb.
12276
12277 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
12278
12279 PR rtl-optimization/47449
12280 * fwprop.c (forward_propagate_subreg): Don't propagate hard
12281 register nor zero/sign extended hard register.
12282
12283 2011-07-05 Richard Guenther <rguenther@suse.de>
12284
12285 PR tree-optimization/49518
12286 PR tree-optimization/49628
12287 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
12288 irrelevant and invariant data-references.
12289 (vect_analyze_data_ref_access): For invariant loads clear the
12290 group association.
12291
12292 2011-07-04 Jakub Jelinek <jakub@redhat.com>
12293
12294 PR rtl-optimization/49619
12295 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
12296 pass VOIDmode as op0_mode to recursive call, and return temp even
12297 when different from tor, just if it is not IOR of the original
12298 PLUS arguments.
12299
12300 PR rtl-optimization/49472
12301 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
12302 negating MULT, negate the second operand instead of first.
12303 (simplify_binary_operation_1) <case MULT>: If one operand is
12304 a NEG and the other is MULT, don't attempt to optimize by negation
12305 of the MULT operand if it only moves the NEG operation around.
12306
12307 PR debug/49602
12308 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
12309 get_current_def return value if it can't be trusted to be
12310 the current value of the variable in the current bb.
12311
12312 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
12313
12314 PR target/49600
12315 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
12316 general register to memory for !TARGET_INTER_UNIT_MOVES.
12317
12318 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
12319
12320 PR target/44643
12321 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
12322 instead of TREE_READONLY.
12323
12324 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
12325
12326 * doc/extend.texi (AVR Built-in Functions): Update documentation
12327 of __builtin_avr_fmul*.
12328 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
12329 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
12330 * config/avr/avr.md (fmul): Rename to fmul_insn.
12331 (fmuls): Rename to fmuls_insn.
12332 (fmulsu): Rename to fmulsu_insn.
12333 (fmul,fmuls,fmulsu): New expander.
12334 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
12335 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
12336 * config/avr/libgcc.S (__fmul): New function.
12337 (__fmuls): New function.
12338 (__fmulsu,__fmulsu_exit): New function.
12339
12340 2011-07-04 Richard Guenther <rguenther@suse.de>
12341
12342 PR tree-optimization/49615
12343 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
12344 basic-block index check.
12345
12346 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
12347
12348 * longlong.h (count_leading_zeros, count_trailing_zeros,
12349 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
12350 resp. 64.
12351
12352 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
12353
12354 PR tree-optimization/49610
12355 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
12356 a basic block.
12357
12358 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
12359 Olivier Hainque <hainque@adacore.com>
12360 Nicolas Setton <setton@adacore.com>
12361
12362 * tree.h (TYPE_ARTIFICIAL): New flag.
12363 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
12364 the DIE of the type if it is artificial.
12365 (gen_array_type_die): Likewise.
12366 (gen_enumeration_type_die): Likewise.
12367 (gen_struct_or_union_type_die): Likewise.
12368 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
12369 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
12370
12371 2011-07-01 Jakub Jelinek <jakub@redhat.com>
12372
12373 * tree-object-size.c (pass_through_call): Handle
12374 BUILT_IN_ASSUME_ALIGNED.
12375
12376 2011-07-01 Martin Jambor <mjambor@suse.cz>
12377
12378 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
12379
12380 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
12381
12382 PR middle-end/48016
12383 * explow.c (update_nonlocal_goto_save_area): Use proper mode
12384 for stack save area.
12385 * function.c (expand_function_start): Likewise.
12386
12387 2011-07-01 Richard Guenther <rguenther@suse.de>
12388
12389 PR middle-end/49596
12390 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
12391 may have unknown refs.
12392
12393 2011-07-01 Kai Tietz <ktietz@redhat.com>
12394
12395 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
12396
12397 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12398
12399 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
12400 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
12401 (Specific, mips-sgi-irix6): Likewise.
12402
12403 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12404
12405 PR libmudflap/49549
12406 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
12407
12408 2011-07-01 Jakub Jelinek <jakub@redhat.com>
12409
12410 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
12411 [idx]= and [idx1 ... idx2]= before initializers if needed for
12412 array initializers.
12413
12414 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
12415
12416 * config.gcc (score-*-elf): Remove score7.o.
12417 * config/score/t-score-elf: Likewise.
12418 * config/score/score.c: Merge score7 to score.c and
12419 remove forwarding functions.
12420 * config/score/score7.c: Deleted.
12421 * config/score/score7.h: Deleted.
12422
12423 2011-07-01 Richard Guenther <rguenther@suse.de>
12424
12425 PR tree-optimization/49603
12426 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
12427
12428 2011-06-30 Martin Jambor <mjambor@suse.cz>
12429
12430 * tree-sra.c (struct access): Rename total_scalarization to
12431 grp_total_scalarization
12432 (completely_scalarize_var): New function.
12433 (sort_and_splice_var_accesses): Set total_scalarization in the
12434 representative access.
12435 (analyze_access_subtree): Propagate total scalarization accross the
12436 tree, no holes in totally scalarized trees, simplify coverage
12437 computation.
12438 (analyze_all_variable_accesses): Call completely_scalarize_var instead
12439 of completely_scalarize_record.
12440
12441 2011-06-30 Richard Henderson <rth@redhat.com>
12442
12443 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
12444 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
12445 * config/i386/i386.c: Don't include dwarf2out.h.
12446 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
12447 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
12448 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
12449 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
12450 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
12451
12452 2011-06-30 Richard Henderson <rth@redhat.com>
12453
12454 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
12455 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
12456 * final.c (final_scan_insn): Look for it, and invoke
12457 dwarf2out_frame_debug before the insn if found.
12458
12459 2011-06-30 Richard Henderson <rth@redhat.com>
12460
12461 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
12462 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
12463
12464 2011-06-30 Richard Henderson <rth@redhat.com>
12465
12466 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
12467 Define a vector of this type.
12468 (regs_saved_in_regs): Use a VEC.
12469 (num_regs_saved_in_regs): Remove.
12470 (compare_reg_or_pc): New.
12471 (record_reg_saved_in_reg): Split out from...
12472 (dwarf2out_flush_queued_reg_saves): ... here.
12473 (clobbers_queued_reg_save): Update for VEC.
12474 (reg_saved_in): Likewise.
12475 (dwarf2out_frame_debug_init): Likewise.
12476 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
12477 (dwarf2out_frame_debug_cfa_register): Likewise.
12478
12479 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
12480
12481 PR tree-optimization/49572
12482 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
12483 type of the RHS instead of that of the LHS for the expression type.
12484
12485 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
12486
12487 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
12488 unconditionally.
12489
12490 2011-06-30 Richard Guenther <rguenther@suse.de>
12491
12492 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
12493 * tree-ssa-structalias.c (create_variable_info_for): Do not
12494 add initial constraints for non-var-decls. Properly handle
12495 globals in other ltrans partitions.
12496 (intra_create_variable_infos): Manually create constraints for
12497 the fake no-alias parameter.
12498 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
12499 and assert there are no clones.
12500
12501 2011-06-30 Richard Guenther <rguenther@suse.de>
12502
12503 PR tree-optimization/46787
12504 * tree-data-ref.c (dr_address_invariant_p): Remove.
12505 (find_data_references_in_stmt): Invariant accesses are ok now.
12506 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
12507 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
12508 invariant loads.
12509
12510 2011-06-30 Martin Jambor <mjambor@suse.cz>
12511
12512 PR tree-optimization/49094
12513 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
12514 (build_accesses_from_assign): Use it.
12515
12516 2011-06-30 Jakub Jelinek <jakub@redhat.com>
12517
12518 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
12519 handling of BUILT_IN_ASSUME_ALIGNED.
12520
12521 PR debug/49364
12522 * dwarf2out.c (output_abbrev_section): Don't return early
12523 if abbrev_die_table_in_use is 1.
12524 (dwarf2out_finish): Instead don't call output_abbrev_section
12525 nor emit abbrev_section_label in that case.
12526
12527 2011-06-30 Nick Clifton <nickc@redhat.com>
12528
12529 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
12530 for the V850E.
12531
12532 2011-06-30 Jakub Jelinek <jakub@redhat.com>
12533
12534 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
12535 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
12536
12537 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
12538
12539 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
12540 both pattern and original statements if necessary.
12541 (vect_transform_loop): Likewise.
12542 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
12543 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
12544 Mark the pattern statement only if the original statement doesn't
12545 have its own uses.
12546 (process_use): Call vect_mark_relevant with additional parameter.
12547 (vect_mark_stmts_to_be_vectorized): Likewise.
12548 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
12549 (vect_analyze_stmt): Handle both pattern and original statements
12550 if necessary.
12551 (vect_transform_stmt): Don't store vectorized pattern statement
12552 in the original statement.
12553 (vect_is_simple_use_1): Use related pattern statement only if the
12554 original statement is irrelevant.
12555 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
12556
12557 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
12558
12559 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
12560 option.
12561 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
12562 entry.
12563 (TARGET_AVX128_OPTIMAL): New definition.
12564 * config/i386/i386.c (initial_ix86_tune_features): Initialize
12565 X86_TUNE_AVX128_OPTIMAL entry.
12566 (ix86_option_override_internal): Enable the generation
12567 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
12568 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
12569 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
12570
12571 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
12572
12573 PR tree-optimization/49539
12574 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
12575 names by means of stmt_references_abnormal_ssa_name.
12576 (associate_plusminus): Call can_propagate_from before propagating
12577 from definition statements.
12578 (ssa_forward_propagate_and_combine): Remove superfluous newline.
12579
12580 2011-06-29 Richard Guenther <rguenther@suse.de>
12581
12582 * doc/invoke.texi: Document -scev dump modifier.
12583 * tree-pass.h (TDF_SCEV): New dump flag.
12584 * tree-dump.c (dump_option_value_in): Add scev.
12585 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
12586 * tree-scalar-evolution.c: Likewise.
12587
12588 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
12589
12590 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
12591 (cxa_type_match): Correct declaration.
12592 (__gnu_unwind_pr_common): Reconstruct additional indirection
12593 when __cxa_type_match returns succeeded_with_ptr_to_base.
12594
12595 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12596
12597 PR rtl-optimization/49114
12598 * reload.c (struct replacement): Remove SUBREG_LOC member.
12599 (push_reload): Do not set it.
12600 (push_replacement): Likewise.
12601 (subst_reload): Remove dead code.
12602 (copy_replacements): Remove assertion.
12603 (copy_replacements_1): Do not handle SUBREG_LOC.
12604 (move_replacements): Likewise.
12605 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
12606 Detect subregs via recursive descent instead of via SUBREG_LOC.
12607
12608 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
12609
12610 * config/avr/avr.c (avr_encode_section_info): Dispatch to
12611 default_encode_section_info.
12612
12613 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
12614
12615 PR tree-optimization/49545
12616 * builtins.c (get_object_alignment_1): Update function comment.
12617 Do not use DECL_ALIGN for functions, but test
12618 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
12619 * fold-const.c (get_pointer_modulus_and_residue): Don't check
12620 for functions here.
12621 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
12622
12623 2011-06-29 Jakub Jelinek <jakub@redhat.com>
12624
12625 PR debug/49567
12626 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
12627 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
12628
12629 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
12630
12631 PR target/34734
12632 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
12633 about uninitialized data attributed 'progmem' from here...
12634 (avr_encode_section_info): ...to this new function.
12635 (TARGET_ENCODE_SECTION_INFO): New define.
12636 (avr_section_type_flags): For data in ".progmem.data", remove
12637 section flag SECTION_WRITE.
12638
12639 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
12640
12641 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
12642 _xmulhisi3_exit.
12643 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
12644 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
12645 (__umulhisi3): Ditto.
12646 * config/avr/avr.md (mulhisi3): New insn expender.
12647 (umulhisi3): New insn expender.
12648 (*mulhisi3_call): New insn.
12649 (*umulhisi3_call): New insn.
12650
12651 2011-06-28 Joseph Myers <joseph@codesourcery.com>
12652
12653 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
12654
12655 2011-06-28 Richard Henderson <rth@redhat.com>
12656
12657 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
12658 all code and arguments that handled pushes. Update all callers.
12659
12660 2011-06-28 Richard Henderson <rth@redhat.com>
12661
12662 * config/arm/arm.c (arm_output_function_prologue): Don't call
12663 thumb1_output_function_prologue.
12664 (arm_expand_prologue): Avoid dead store.
12665 (number_of_first_bit_set): Use ctz_hwi.
12666 (thumb1_emit_multi_reg_push): New.
12667 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
12668 to emit the entire prologue as rtl.
12669 (thumb1_output_interwork): Split out from
12670 thumb1_output_function_prologue.
12671 (thumb1_output_function_prologue): Remove.
12672 (arm_attr_length_push_multi): Handle thumb1.
12673 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
12674 (prologue_thumb1_interwork): New.
12675 (*push_multi): Allow thumb1; use push_mult_memory_operand.
12676 * config/arm/predicates.md (push_mult_memory_operand): New.
12677
12678 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
12679
12680 * config/sparc/sync.md (*stbar): Delete.
12681 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
12682
12683 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
12684
12685 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
12686
12687 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12688
12689 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
12690 (TARGET_64BIT_DEFAULT): Define.
12691 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
12692 of tm_file.
12693 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
12694
12695 2011-06-28 Joseph Myers <joseph@codesourcery.com>
12696
12697 * common.opt (in_lto_p): New Variable entry.
12698 * flags.h (in_lto_p): Move to common.opt.
12699 * gcc.c: Include params.h.
12700 (set_option_handlers): Also use common_handle_option and
12701 target_handle_option.
12702 (main): Call global_init_params, finish_params and init_options_struct.
12703 * opts.c (debug_type_names): Move from toplev.c.
12704 (print_filtered_help): Access quiet_flag through opts pointer.
12705 (common_handle_option): Return early in the driver for some options.
12706 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
12707 opts pointer.
12708 * toplev.c (in_lto_p): Move to common.opt.
12709 (debug_type_names): Move to opts.c.
12710 * Makefile.in (OBJS): Remove opts.o.
12711 (OBJS-libcommon-target): Add opts.o.
12712 (gcc.o): Update dependencies.
12713
12714 2011-06-28 Kai Tietz <ktietz@redhat.com>
12715
12716 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
12717
12718 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12719
12720 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
12721 with '=' constraint modifier.
12722 (*divdf3_vfp): Likewise.
12723 ("*mulsf3_vfp"): Likewise.
12724 ("*muldf3_vfp"): Likewise.
12725 ("*mulsf3negsf_vfp"): Likewise.
12726 ("*muldf3negdf_vfp"): Likewise.
12727
12728 2011-06-28 Nick Clifton <nickc@redhat.com>
12729
12730 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
12731 relaxation when performing an incremental link.
12732
12733 2011-06-28 Kai Tietz <ktietz@redhat.com>
12734
12735 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
12736 within BB from last to first.
12737
12738 2011-06-28 Joseph Myers <joseph@codesourcery.com>
12739
12740 * genattr-common.c: New. Based on genattr.c.
12741 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
12742 (MOSTLYCLEANFILES): Add insn-attr-common.h.
12743 (opts.o): Update dependencies.
12744 (.PRECIOUS): Add insn-attr-common.h.
12745 (simple_rtl_generated_h): Add insn-attr-common.h.
12746 (build/genattr-common.o): New.
12747 (genprogrtl): Add attr-common.
12748 * genattr.c (main): Include insn-attr-common.h. Don't generate
12749 definitions of DELAY_SLOTS or INSN_SCHEDULING.
12750 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
12751
12752 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
12753
12754 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
12755 avr-*-* and avr-*-rtems* targets.
12756
12757 * config/avr/elf.h: New file.
12758 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
12759 (TARGET_ASM_SELECT_SECTION): Define.
12760 (INIT_SECTION_ASM_OP): Undefine.
12761 (FINI_SECTION_ASM_OP): Undefine.
12762 (READONLY_DATA_SECTION_ASM_OP): Undefine.
12763 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
12764 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
12765 * config/avr/avr.h:
12766 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
12767 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
12768 (MAX_OFILE_ALIGNMENT): Move to elf.h.
12769 (STRING_LIMIT): Move to elf.h.
12770 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
12771 (ASM_DECLARE_OBJECT_NAME): Remove.
12772 (ESCAPES): Remove.
12773 (ASM_OUTPUT_SKIP): Remove.
12774 (DWARF2_DEBUGGING_INFO): Remove.
12775 (OBJECT_FORMAT_ELF): Remove.
12776 (USER_LABEL_PREFIX): Remove.
12777 (ASM_OUTPUT_EXTERNAL): Remove.
12778 (ASM_OUTPUT_ASCII): Remove.
12779 (TYPE_ASM_OP): Remove.
12780 (SIZE_ASM_OP): Remove.
12781 (WEAK_ASM_OP): Remove.
12782 (STRING_ASM_OP): Remove.
12783 (SET_ASM_OP): Remove.
12784 (ASM_WEAKEN_LABEL): Remove.
12785 (TYPE_OPERAND_FMT): Remove.
12786 (ASM_DECLARE_FUNCTION_SIZE): Remove.
12787 (ASM_FINISH_DECLARE_OBJECT): Remove.
12788 (NO_DOLLAR_IN_LABEL): Remove.
12789 (ASM_GENERATE_INTERNAL_LABEL): Remove.
12790 (ASM_OUTPUT_CASE_LABEL): Remove.
12791 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
12792 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
12793 (gas_output_ascii): Remove.
12794 (gas_output_limited_string): Remove.
12795 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
12796 * config/avr/avr-protos.h
12797 (gas_output_ascii): Remove prototye.
12798 (gas_output_limited_string): Remove prototype.
12799
12800 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
12801
12802 PR target/48637
12803 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
12804 asm operands.
12805
12806 2011-06-27 Jan Hubicka <jh@suse.cz>
12807
12808 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
12809 node instead of references in node.
12810
12811 2011-06-27 Richard Henderson <rth@redhat.com>
12812
12813 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
12814 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
12815 inside ifdef.
12816
12817 2011-06-27 Jakub Jelinek <jakub@redhat.com>
12818
12819 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
12820
12821 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
12822 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
12823 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
12824 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
12825 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
12826 (evaluate_stmt, execute_fold_all_builtins): Handle
12827 BUILT_IN_ASSUME_ALIGNED.
12828 * tree-ssa-dce.c (propagate_necessity): Likewise.
12829 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
12830 call_may_clobber_ref_p_1): Likewise.
12831 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
12832 (expand_builtin_assume_aligned): New function.
12833 * doc/extend.texi (__builtin_assume_aligned): Document.
12834
12835 PR debug/49544
12836 * cselib.c (promote_debug_loc): If cselib_preserve_constants
12837 and l has two DEBUG_INSN owned locs instead of just one, adjust
12838 the second location's setting_insn too.
12839
12840 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12841
12842 PR libmudflap/38738
12843 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
12844
12845 2011-06-27 Nick Clifton <nickc@redhat.com>
12846
12847 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
12848 bit position of highest bit set into a count of the high zero bits.
12849
12850 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
12851
12852 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
12853
12854 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
12855
12856 PR lto/48492
12857 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
12858 to a NULL parent.
12859
12860 2011-06-27 Richard Guenther <rguenther@suse.de>
12861
12862 PR tree-optimization/49394
12863 * passes.c (execute_one_pass): Restore current_pass after
12864 applying IPA transforms.
12865
12866 2011-06-27 Kai Tietz <ktietz@redhat.com>
12867
12868 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
12869 out of type precision after operation.
12870 (find_bswap): Take for limit value the integer auto-promotion
12871 into account.
12872
12873 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
12874
12875 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
12876 forward scan as well.
12877
12878 2011-06-27 Tristan Gingold <gingold@adacore.com>
12879
12880 PR target/44241
12881 * config/vms/vms-protos.h: New file.
12882 * config/vms/vms-crtlmap.map: New file.
12883 * config/vms/vms.c: New file.
12884 * config/vms/make-crtlmap.awk: New file.
12885 * config/vms/vms-crtl.h: File removed.
12886 * config/vms/vms-crtl-64.h: File removed.
12887 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
12888 * config/alpha/vms64.h: Do not include vms-crtl-64.h
12889 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
12890 clear some builtins on VMS. Calls vms_patch_builtins.
12891 (avms_asm_output_external): Remove.
12892 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
12893 (struct crtl_name_spec): Remove
12894 (DO_CTRL_NAMES): Remove.
12895 * config/ia64/vms.h (struct crtl_name_spec): Remove
12896 (DO_CTRL_NAMES): Remove.
12897 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
12898 clear some builtins on VMS. Calls vms_patch_builtins.
12899 (ia64_asm_output_external): Remove DO_CRTL_NAME.
12900 * config/ia64/vms64.h: Do not include vms-crtl-64.h
12901 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
12902
12903 2011-06-27 Tristan Gingold <gingold@adacore.com>
12904
12905 * config/alpha/alpha.c (alpha_end_function): Always generate .end
12906 directive on VMS.
12907
12908 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
12909
12910 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
12911 the function receives nonlocal gotos.
12912
12913 2011-06-27 Richard Guenther <rguenther@suse.de>
12914
12915 PR tree-optimization/49536
12916 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
12917 For non-scalar inner types use a scalar type according to
12918 the scalar inner mode.
12919
12920 2011-06-27 Richard Guenther <rguenther@suse.de>
12921
12922 PR tree-optimization/49365
12923 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
12924
12925 2011-06-27 Richard Guenther <rguenther@suse.de>
12926
12927 PR tree-optimization/49169
12928 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
12929 the alignment of function decls.
12930
12931 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
12932
12933 PR target/47997
12934 * config/darwin.c (darwin_mergeable_string_section): Place string
12935 constants in '.cstring' rather than '.const' when CF/NSStrings are
12936 active.
12937
12938 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
12939
12940 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
12941 (emit_save_register_window): Likewise.
12942 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
12943 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
12944 Swap back %o7/%i7 in register naming.
12945
12946 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
12947
12948 PR driver/49371
12949 * config/darwin.c (darwin_override_options): Improve warning when
12950 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
12951 is given with fpie/fPIE.
12952 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
12953 * config/darwin9.h (PIE_SPEC): New.
12954
12955 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
12956
12957 * timevar.c (timevar_print): Increase width for display of timevar
12958 name.
12959
12960 2011-06-24 Jakub Jelinek <jakub@redhat.com>
12961
12962 PR c++/46400
12963 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
12964 instead of TYPE_CHAIN for chain_next for types.
12965
12966 2011-06-24 Richard Henderson <rth@redhat.com>
12967
12968 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
12969 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
12970 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
12971 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
12972 (sparc_flat_expand_prologue): Emit individual instructions
12973 instead of one of the above.
12974
12975 2011-06-24 Easwaran Raman <eraman@google.com>
12976
12977 PR rtl-optimization/49429
12978 PR target/49454
12979 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
12980 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
12981 used to copy y into x.
12982 * calls.c (initialize_argument_information): Mark
12983 an argument addressable if it is passed by invisible reference.
12984 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
12985 if it is passed by reference.
12986
12987 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
12988
12989 PR rtl-optimization/49504
12990 * rtlanal.c (nonzero_bits1): Properly handle addition or
12991 subtraction of a pointer in Pmode if pointers extend unsigned.
12992 (num_sign_bit_copies1): Likewise.
12993
12994 2011-06-24 Martin Jambor <mjambor@suse.cz>
12995
12996 PR tree-optimizations/49516
12997 * tree-sra.c (sra_modify_assign): Choose the safe path for
12998 aggregate copies if we also did scalar replacements.
12999
13000 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13001
13002 PR target/49335
13003 * config/arm/predicates.md (add_operator): New.
13004 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
13005
13006 2011-06-24 Andi Kleen <ak@linux.intel.com>
13007
13008 * tree-sra.c (type_internals_preclude_sra_p): Add msg
13009 parameter. Split up ifs and report reason in *msg.
13010 (reject): Add.
13011 (find_var_candiate): Add msg variable.
13012 Split up ifs and report reason to reject.
13013 (find_param_candidates): Add msg variable.
13014 Pass msg to type_internals_preclude_sra_p.
13015
13016 2011-06-23 Jeff Law <law@redhat.com>
13017
13018 PR middle-end/48770
13019 * reload.h (reload): Change to return a bool.
13020 * ira.c (ira): If requested by reload, run a fast DCE pass after
13021 reload has completed. Fix comment typo.
13022 * reload1.c (need_dce): New file scoped static.
13023 (reload): Set reload_completed here. Return whether or not a DCE
13024 pass after reload is needed.
13025 (delete_dead_insn): Set need_dce as needed.
13026
13027 PR middle-end/49465
13028 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
13029 to detect threading through joiner block. If there was already
13030 an edge to the new target, then do not change the PHI nodes.
13031
13032 2011-06-23 Jakub Jelinek <jakub@redhat.com>
13033
13034 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
13035 get_pointer_alignment to see if base isn't sufficiently aligned.
13036
13037 2011-06-23 Jan Hubicka <jh@suse.cz>
13038
13039 PR tree-optimize/49373
13040 * tree-pass.h (all_late_ipa_passes): Declare.
13041 * cgraphunit.c (init_lowered_empty_function): Fix properties.
13042 (cgraph_optimize): Execute late passes; remove unreachable funcions
13043 after materialization.
13044 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
13045 LTOing.
13046 * passes.c (all_late_ipa_passes): Declare.
13047 (dump_passes, register_pass): Handle late ipa passes.
13048 (init_optimization_passes): Move ipa_pta to late passes; schedule
13049 fixup_cfg at beggining of all_passes.
13050 (apply_ipa_transforms): New function.
13051 (execute_one_pass): When doing simple ipa pass, apply all transforms.
13052
13053 2011-06-23 Joseph Myers <joseph@codesourcery.com>
13054
13055 * params.c: Include common/common-target.h. Don't include tm.h.
13056 (lang_independent_params): Move from toplev.c.
13057 (global_init_params): New.
13058 * params.h (global_init_params): Declare.
13059 * target.def (default_params): Move to common-target.def.
13060 * toplev.c (lang_independent_options): Remove.
13061 (lang_independent_params): Move to params.c.
13062 (general_init): Use global_init_params.
13063 * common/common-target.def (option_default_params): Move from
13064 target.def.
13065 * common/config/ia64/ia64-common.c: Include params.h.
13066 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
13067 from ia64.c.
13068 * common/config/rs6000/rs6000-common.c: Include params.h.
13069 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
13070 from rs6000.c.
13071 * common/config/sh/sh-common.c: Include params.h.
13072 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
13073 from sh.c.
13074 * common/config/spu/spu-common.c: Include params.h.
13075 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
13076 from spu.c.
13077 * config/ia64/ia64.c (ia64_option_default_params,
13078 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
13079 * config/rs6000/rs6000.c (rs6000_option_default_params,
13080 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
13081 * config/sh/sh.c (sh_option_default_params,
13082 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
13083 * config/spu/spu.c (spu_option_default_params,
13084 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
13085 * Makefile.in (OBJS): Remove params.o.
13086 (OBJS-libcommon-target): Add params.o.
13087 (params.o, $(common_out_object_file)): Update dependencies.
13088 * doc/tm.texi: Regenerate.
13089
13090 2011-06-23 Alan Modra <amodra@gmail.com>
13091
13092 PR bootstrap/49383
13093 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
13094 invocation for 2011-06-09 changes.
13095
13096 2011-06-22 Jakub Jelinek <jakub@redhat.com>
13097
13098 PR libgomp/49490
13099 * omp-low.c (expand_omp_for_static_nochunk): Only
13100 use n ceil/ nthreads size for the first n % nthreads threads in the
13101 team instead of all threads except for the last few ones which
13102 get less work or none at all.
13103
13104 PR debug/49496
13105 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
13106 uses.
13107
13108 2011-06-22 Richard Guenther <rguenther@suse.de>
13109
13110 PR tree-optimization/49493
13111 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
13112 Refer to the alias target of variables.
13113 (associate_varinfo_to_alias_1): Remove.
13114 (ipa_pta_execute): Do not associate aliases with anything.
13115 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
13116 (cgraph_function_node): Likewise.
13117 (cgraph_function_or_thunk_node): Likewise.
13118 (varpool_variable_node): Likewise.
13119
13120 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
13121
13122 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
13123 * config.gcc (arm*-*-linux*): Default to gnu tls.
13124 (arm*-*-*): Add --with-tls option.
13125 (all_defaults): Add 'tls'.
13126
13127 2011-06-22 Richard Henderson <rth@redhat.com>
13128
13129 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
13130 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
13131 (dwarf2out_frame_debug_cfa_window_save): Rename from
13132 dwarf2out_window_save; make static.
13133 * tree.h (dwarf2out_window_save): Don't declare.
13134
13135 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
13136 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
13137 (emit_save_register_window): Rename from gen_save_register_window;
13138 emit the insn and add REG_CFA_* notes.
13139 (sparc_expand_prologue): Update to match.
13140 * config/sparc/sparc.md (save_register_window_1): Simplify from
13141 save_register_window<P:mode>.
13142
13143 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
13144
13145 PR target/49497
13146 * config/i386/i386.md (*lea_general_2): Always allow SImode.
13147 (*lea_general_2_zext): Likewise.
13148 (imul to lea peepholes): Use const359_operand and check
13149 TARGET_PARTIAL_REG_STALL.
13150
13151 * config/i386/predicates.md (const359_operand): New.
13152
13153 2011-06-22 Michael Matz <matz@suse.de>
13154
13155 * cgraphunit.c (assemble_thunk): Use correct return type.
13156
13157 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
13158 Dmitry Melnik <dm@ispras.ru>
13159
13160 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
13161 (neon_output_shift_immediate): Ditto.
13162 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
13163 prototype.
13164 (neon_output_shift_immediate): Ditto.
13165 * config/arm/neon.md (vashl<mode>3): Modified constraint.
13166 (vashr<mode>3_imm): New insn pattern.
13167 (vlshr<mode>3_imm): Ditto.
13168 (vashr<mode>3): Modified constraint.
13169 (vlshr<mode>3): Ditto.
13170 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
13171 predicate.
13172 (imm_for_neon_rshift_operand): Ditto.
13173 (imm_lshift_or_reg_neon): Ditto.
13174 (imm_rshift_or_reg_neon): Ditto.
13175
13176 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
13177
13178 2011-06-22 Jakub Jelinek <jakub@redhat.com>
13179
13180 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
13181 builtin calls even if likelyvalue is not CONSTANT.
13182 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
13183 Return get_value_for_expr of first operand
13184 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
13185 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
13186 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
13187 their non-checking counterparts.
13188 (call_may_clobber_ref_p_1): Likewise.
13189 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
13190 like their non-checking counterparts.
13191 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13192 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
13193 like their non-checking counterparts.
13194 (find_func_clobbers): Likewise.
13195 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
13196 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
13197
13198 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
13199 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
13200 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
13201 of base type reference as argument.
13202 (resolve_addr_in_expr): Likewise. Fix keep computation.
13203 (convert_descriptor_to_signed): Renamed to...
13204 (convert_descriptor_to_mode): ... this. For wider types convert to
13205 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
13206 (typed_binop): New function.
13207 (scompare_loc_descriptor, ucompare_loc_descriptor,
13208 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
13209 default to unsigned type instead of signed.
13210
13211 PR debug/47858
13212 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
13213 (gimple_build_debug_source_bind_stat): New prototype.
13214 (gimple_build_debug_source_bind): Define.
13215 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
13216 gimple_debug_source_bind_get_value,
13217 gimple_debug_source_bind_get_value_ptr,
13218 gimple_debug_source_bind_set_var,
13219 gimple_debug_source_bind_set_value): New inlines.
13220 * gimple.c (gimple_build_debug_source_bind_stat): New function.
13221 * gimple-pretty-print.c (dump_gimple_debug): Handle
13222 GIMPLE_DEBUG_SOURCE_BIND.
13223 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
13224 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13225 * tree-parloops.c (eliminate_local_variables,
13226 separate_decls_in_region): Likewise.
13227 (separate_decls_in_region_debug): Renamed from
13228 separate_decls_in_region_debug_bind. Handle
13229 gimple_debug_source_bind_p.
13230 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
13231 prototypes.
13232 (DECL_HAS_DEBUG_ARGS_P): Define.
13233 (struct tree_function_decl): Add has_debug_args_flag field.
13234 * tree.c (debug_args_for_decl): New variable.
13235 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
13236 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
13237 (rewrite_debug_stmt_uses): New function.
13238 (rewrite_stmt): Use it to rewrite debug stmt uses.
13239 * rtl.def (DEBUG_PARAMETER_REF): New.
13240 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
13241 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
13242 DEBUG_PARAMETER_REF.
13243 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
13244 * print-rtl.c (print_rtx): Likewise.
13245 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
13246 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
13247 debug stmts in the first bb.
13248 * tree-inline.c (remap_ssa_name): If remapping default def
13249 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
13250 a source bind debug stmt.
13251 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
13252 (maybe_move_debug_stmts_to_successors): Likewise.
13253 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
13254 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
13255 debug args vector from old_decl to new_decl.
13256 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
13257 or modified parameters, add debug bind stmts before call
13258 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
13259 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
13260 on DECL_DEBUG_EXPRs from debug args vector.
13261 (expand_debug_source_expr): New function.
13262 (expand_debug_locations): Use it for source bind insns.
13263 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
13264 * var-tracking.c (prepare_call_arguments): Add debug args
13265 to call_arguments if any.
13266 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
13267 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
13268 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
13269 (get_ref_die_offset, parameter_ref_descriptor): New functions.
13270 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
13271 (gen_subprogram_die): Handle parameters identified by
13272 DEBUG_PARAMETER_REF.
13273
13274 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
13275
13276 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
13277 * doc/install.texi (Configuration): Document --with-tls.
13278 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
13279 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
13280 (arm_tls_descseq_addr): New.
13281 (legitimize_tls_address): Add tlsdesc support.
13282 (arm_cannot_copy_insn_p): Check for tlscall.
13283 (arm_emit_tls_decoration): Likewise.
13284 * config/arm/arm.h (TARGET_GNU2_TLS): New.
13285 (OPTION_DEFAULT_SPECS): Add with-tls support.
13286 * config/arm/arm.md (R1_REGNUM): Define.
13287 (tlscall): New.
13288 * config/arm/arm.opt (tls_type): New enumeration type and values.
13289 (mtls-dialect): New switch.
13290 * config/arm/arm-opts.h (enum tls_type): New.
13291
13292 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
13293
13294 * attribs.c (register_attribute): Added assert to check that all
13295 attribute specs are registered with a name that is not empty and
13296 does not start with '_'.
13297 (decl_attributes): Avoid the lookup of the "naked" attribute spec
13298 if the function has no attributes.
13299 * tree.c (is_attribute_with_length_p): Removed.
13300 (is_attribute_p): Removed.
13301 (private_is_attribute_p): New.
13302 (private_lookup_attribute): New.
13303 (lookup_attribute): Removed.
13304 (lookup_ident_attribute): New.
13305 (remove_attribute): Require the first argument to be in the form
13306 'text', not '__text__'. Updated asserts.
13307 (merge_attributes): Use lookup_ident_attributes instead of
13308 lookup_attribute.
13309 (merge_dllimport_decl_attributes): Use remove_attribute.
13310 (attribute_list_contained): Likewise.
13311 (attribute_list_equal): Immediately return 1 if the arguments are
13312 identical pointers.
13313 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
13314 'int'. Require the first argument to be in the form 'text', not
13315 '__text__'. Require the second argument to be an identifier.
13316 (lookup_attribute): Made inline. Require the first argument to be
13317 in the form 'text', not '__text__'.
13318 (private_is_attribute_p, private_lookup_attribute): New.
13319 Updated comments.
13320
13321 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
13322
13323 * builtins.c: Add sync_ or SYNC__ to builtin names.
13324 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
13325 * omp-low.c: Add sync_ or SYNC__ to builtin names.
13326
13327 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
13328
13329 PR target/33049
13330 * config/avr/avr.md (extzv): New expander.
13331 (*extzv): New insn.
13332 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
13333 * config/avr/constraints.md (C04): New constraint.
13334 * doc/md.texi (Machine Constraints): Document it.
13335
13336 2011-06-21 Jakub Jelinek <jakub@redhat.com>
13337
13338 PR middle-end/49489
13339 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
13340 unsignedp argument instead of 1 for clrsb_optab.
13341 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
13342 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
13343 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
13344 * optabs.c (widen_leading): Call widen_operand and expand_unop
13345 with 0 as unsignedp argument instead of 1 for clrsb_optab.
13346 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
13347
13348 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
13349
13350 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
13351
13352 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
13353
13354 * gensupport.c (add_define_attr): New static function.
13355 (is_predicable): Allow multi-alternative lists for the "predicable"
13356 attribute.
13357 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
13358 (process_one_cond_exec): Call alter_attrs_for_insn.
13359 * doc/md.texi (Defining Attributes): Mention some standard names.
13360 (Conditional Execution): Update documentation for "predicable".
13361
13362 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
13363 __builtin_clrsbll): Document.
13364 * doc/rtl.texi (clrsb): New entry.
13365 * optabs.c (widen_leading): Renamed from widen_clz. New argument
13366 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
13367 (expand_unop): Handle clrsb_optab.
13368 (init_optabs): Initialize it.
13369 * optabs.h (enum optab_index): New entry OTI_clrsb.
13370 (clrsb_optab): Define.
13371 * genopinit.c (optabs): Add an entry for it.
13372 * builtins.c (expand_builtin): Handle clrsb builtin functions.
13373 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
13374 BUILT_IN_CLRSBLL): New.
13375 * rtl.def (CLRSB): New code.
13376 * dwarf2out.c (mem_loc_descriptor): Handle it.
13377 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
13378 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
13379 and popcount.
13380 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
13381 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
13382 (__ctzDI2): Move declaration.
13383 * config/bfin/bfin.md (clrsbsi2): New expander.
13384 (signbitssi2): Use the CLRSB rtx.
13385 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
13386 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
13387
13388 2011-06-21 Richard Guenther <rguenther@suse.de>
13389
13390 * ipa-inline-transform.c (inline_transform): Fix previous change.
13391
13392 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
13393
13394 PR tree-optimization/49478
13395 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
13396 with constant operand.
13397
13398 2011-06-21 Richard Guenther <rguenther@suse.de>
13399
13400 * ipa-inline-transform.c (inline_transform): Fix typo.
13401
13402 2011-06-21 Richard Guenther <rguenther@suse.de>
13403
13404 PR tree-optimization/49483
13405 * tree-vect-stmts.c (vectorizable_assignment): Also handle
13406 VIEW_CONVERT_EXPR conversions.
13407
13408 2011-06-21 Joseph Myers <joseph@codesourcery.com>
13409
13410 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
13411 * config/avr/avr-tables.opt: New file (generated).
13412 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
13413 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
13414 avr-mcus.def.
13415 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
13416 (avr_option_override): Don't process -mmcu= argument here. Set
13417 avr_current_device using avr_mcu_index.
13418 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
13419 * config/avr/avr.opt (mmcu=): Use Enum.
13420 * config/avr/t-avr (avr-devices.o): Update dependencies.
13421 ($(srcdir)/config/avr/avr-tables.opt): New.
13422 * target.def (help): Remove.
13423 * doc/tm.texi.in (TARGET_HELP): Remove.
13424 * doc/tm.texi: Regenerate.
13425 * opts.c: Don't include target.h.
13426 (common_handle_option): Don't call targetm.help.
13427 * system.h (TARGET_HELP): Poison.
13428 * Makefile.in (opts.o): Update dependencies.
13429
13430 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13431
13432 * config/usegld.h: New file.
13433 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
13434 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
13435 (LIB_SPEC): Likewise. Search /lib.
13436 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
13437 (RDYNAMIC_SPEC): Handle GNU ld.
13438 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
13439 Define.
13440 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
13441 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
13442 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
13443 (STACK_CHECK_STATIC_BUILTIN): Define.
13444 * config/sol2.opt (compat-bsd): Remove.
13445 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
13446 * config/sol2-bi.h: New file.
13447 * config/sol2-gld.h: Remove.
13448 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
13449 (NO_DBX_BNSYM_ENSYM): Remove.
13450 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
13451 (STACK_CHECK_STATIC_BUILTIN): Remove.
13452 Test USE_GLD instead of TARGET_GNU_LD.
13453 * config/i386/sol2-10.h: Rename to ...
13454 * config/i386/sol2-bi.h .. this.
13455 (SUBTARGET_EXTRA_SPECS): Redefine.
13456 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
13457 (MULTILIB_DEFAULTS): Remove.
13458 (DEFAULT_ARCH32_P): Define.
13459 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
13460 (ARCH64_SUBDIR): Define.
13461 Test USE_GLD instead of TARGET_GNU_LD.
13462 (I386_EMULATION): Rename to ...
13463 (ARCH32_EMULATION): ... this.
13464 (X86_64_EMULATION): Rename to ...
13465 (ARCH64_EMULATION): ... this.
13466 (TARGET_LD_EMULATION): Remove.
13467 (LINK_ARCH_SPEC): Remove.
13468 * config/i386/sol2-gas.h: Remove.
13469 * config/i386/t-sol2-10: Rename to ...
13470 * config/i386/t-sol2-64: ... this.
13471 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
13472 (AS_SPARC64_FLAG): Define.
13473 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
13474 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
13475 depending on TARGET_CPU_DEFAULT.
13476 (CPP_CPU_SPEC): Redefine.
13477 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
13478 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
13479 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
13480 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
13481 ASM_ARCH_DEFAULT_SPEC): Redefine.
13482 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13483 LINK_ARCH_DEFAULT_SPEC.
13484 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
13485 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
13486 (ARCH64_SUBDIR): Define.
13487 (LINK_ARCH64_SPEC): Redefine.
13488 (CC1_SPEC): Redefine.
13489 (OPTION_DEFAULT_SPECS): Redefine.
13490 (MULTILIB_DEFAULTS): Define.
13491 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
13492 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
13493 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
13494 (NO_DBX_BNSYM_ENSYM): Remove.
13495 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
13496 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
13497 (TARGET_ASM_NAMED_SECTION): Likewise.
13498 (STACK_CHECK_STATIC_BUILTIN): Remove.
13499 * config/sparc/sol2-bi.h: Remove.
13500 * config/sparc/sol2-gas-bi.h: Remove.
13501 * config/sparc/sol2-gas.h: Remove.
13502 * config/sparc/sol2-gld-bi.h: Remove.
13503 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
13504 common parts ...
13505 (*-*-solaris2*): ... here.
13506
13507 2011-06-21 Christian Bruel <christian.bruel@st.com>
13508
13509 PR other/43564
13510 * ipa-inline.c (can_inline_edge_p): Check
13511 !DECL_DISREGARD_INLINE_LIMITS.
13512
13513 2011-06-21 Christian Bruel <christian.bruel@st.com>
13514
13515 PR middle-end/49139
13516 * cgraphunit.c (process_function_and_variable_attributes): warn when
13517 always_inline functions that are not inline.
13518 * ipa-inline-transform.c (inline_transform): Always call
13519 optimize_inline.
13520 * tree-inline.c (tree_inlinable_function_p): Use error instead
13521 of sorry.
13522 (expand_call_inline): Likewise.
13523
13524 2011-06-21 Jakub Jelinek <jakub@redhat.com>
13525
13526 * Makefile.in (dg_target_exps): Set.
13527 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
13528 instead of 7, try to divide it more evenly.
13529
13530 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
13531
13532 PR target/49089
13533 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
13534 (avx256_split_unaligned_store): New definition.
13535 (ix86_option_override_internal): Enable avx256 unaligned load/store
13536 splitting only when avx256_split_unaligned_load/store is set.
13537
13538 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
13539
13540 * regrename.c (scan_rtx_reg): Handle the case where we write to an
13541 open chain in a smaller mode without failing the entire block.
13542
13543 2011-06-21 Alan Modra <amodra@gmail.com>
13544
13545 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
13546 CONST high part large-toc address.
13547 (rs6000_tls_referenced_p): Make static.
13548 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
13549
13550 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13551
13552 PR target/49385
13553 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
13554 one of the operands is a register.
13555
13556 2011-06-20 Kai Tietz <ktietz@redhat.com>
13557
13558 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
13559 operations in combination with binary and.
13560
13561 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
13562
13563 * regrename.c (do_replace): Don't update notes.
13564
13565 2011-06-20 Alan Modra <amodra@gmail.com>
13566
13567 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
13568 of toc-relative address in CONST.
13569 (rs6000_delegitimize_address): Recognize changed address.
13570 (rs6000_legitimize_reload_address): Likewise.
13571 (rs6000_emit_move): Don't force these constants to memory.
13572 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
13573 toc-relative address in CONST.
13574 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
13575 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
13576
13577 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
13578
13579 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
13580 (count_trailing_zeros): Likewise.
13581
13582 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
13583
13584 PR other/49325
13585 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
13586 .init_array can be used with .ctors on targets.
13587 * configure: Regenerated.
13588
13589 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
13590
13591 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
13592 if the element type is volatile.
13593
13594 2011-06-18 Jan Hubicka <jh@suse.cz>
13595
13596 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
13597 extra name aliases.
13598 (lto_symtab_resolve_can_prevail_p): Likewise.
13599 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
13600 * cgraphbuild.c (record_reference): Remove extra body alias code.
13601 (mark_load): Likewise.
13602 (mark_store): Likewise.
13603 * cgraph.h (varpool_node): Remove extra_name filed;
13604 add alias_of and extraname_alias.
13605 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
13606 (varpool_alias_aliased_node): New inline function.
13607 (varpool_variable_node): New function.
13608 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
13609 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
13610 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
13611 (input_varpool_node): Likewise.
13612 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
13613 (varpool_externally_visible_p): Remove extra body alias code.
13614 (function_and_variable_visibility): Likewise.
13615 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
13616 (ipa_pta_execute): Use it.
13617 * varpool.c (varpool_remove_node): Remove extra name alias code.
13618 (varpool_mark_needed_node): Likewise.
13619 (varpool_analyze_pending_decls): Analyze aliases.
13620 (assemble_aliases): New functoin.
13621 (varpool_assemble_decl): Use it.
13622 (varpool_create_variable_alias): New function.
13623 (varpool_extra_name_alias): Rewrite.
13624 (varpool_for_node_and_aliases): New function.
13625
13626 2011-06-18 Jakub Jelinek <jakub@redhat.com>
13627
13628 PR target/49411
13629 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
13630 last_arg_constant and last argument doesn't match its predicate,
13631 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
13632 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
13633 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
13634 spelling of error message.
13635 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
13636 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
13637 const_0_to_255_operand instead of const_int_operand.
13638
13639 Revert:
13640 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
13641
13642 * config/i386/sse.md (blendbits): Remove mode attribute.
13643 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
13644 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
13645 Check integer value of operand 3 in insn constraint.
13646
13647 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
13648
13649 PR rtl-optimization/48542
13650 * reload.c (find_equiv_reg): Stop looking when finding a
13651 setjmp-type call.
13652 * reload1.c (reload_as_needed): Invalidate all reload
13653 registers when crossing a setjmp-type call.
13654
13655 2011-06-16 Jeff Law <law@redhat.com>
13656
13657 * tree-ssa-threadupdate.c (struct redirection_data): New field
13658 intermediate_edge.
13659 (THREAD_TARGET2): Define.
13660 (redirection_data_eq): Also check that the intermediate edge is equal.
13661 (lookup_redirection_data): Drop useless argument. Extract the
13662 outgoing_edge and intermediate edge from E. Callers updated.
13663 (copy_phi_args, update_destination_phis): New functions.
13664 (fix_duplicate_block_edges): Likewise.
13665 (create_edge_and_update_destination_phis): Duplicate all the edges
13666 hung off e->aux. Use copy_phi_args.
13667 (create_duplicates): Use fix_duplicate_block_edges.
13668 (fixup_template_block): Likewise.
13669 (redirect_edges): If necessary, redirect the joiner block's incoming
13670 edge to the duplicate of the joiner block.
13671 (thread_block): Don't muck up loops when threading through a joiner
13672 block.
13673 (thread_through_loop_header): Handle threading through a joiner block.
13674 (mark_threaded_blocks, register_jump_thread): Likewise.
13675 * tree-flow.h (register_jump_thread): Add new argument. Callers
13676 updated.
13677 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
13678 (thread_across_edge): Handle threading through a joiner block.
13679
13680 2011-06-16 Martin Jambor <mjambor@suse.cz>
13681
13682 PR tree-optimization/49343
13683 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
13684 calculate offset, provide 2nd operand for the new COMPONENT_REF.
13685
13686 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
13687
13688 * config/darwin-protos.h (machopic_select_rtx_section): Move to
13689 inside RTX_CODE ifdef.
13690
13691 2011-06-16 Tom de Vries <tom@codesourcery.com>
13692
13693 PR target/45098
13694 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
13695 Disallow NULL pointer for pointer arithmetic.
13696
13697 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13698
13699 PR target/49398
13700 Revert.
13701 2011-06-10 Wei Guozhi <carrot@google.com>
13702
13703 PR target/45335
13704 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
13705 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
13706 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
13707 related peephole2.
13708 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
13709 related peephole2.
13710 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
13711 (arm_legitimate_ldrd_p): New prototype.
13712 (arm_output_ldrd): New prototype.
13713 * config/arm/arm.c (arm_check_ldrd_operands): New function.
13714 (arm_legitimate_ldrd_p): New function.
13715 (arm_output_ldrd): New function.
13716
13717 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
13718
13719 PR middle-end/46500
13720 * doc/tm.texi.in: Update Copyright date.
13721 * doc/tm.texi: Regenerate.
13722 * targhooks.c (default_setup_incoming_varargs): Replace
13723 CUMULATIVE_ARGS* argument type with cumulative_args_t.
13724 (default_pretend_outgoing_varargs_named): Likewise.
13725 (hook_pass_by_reference_must_pass_in_stack): Likewise.
13726 (hook_callee_copies_named): Likewise.
13727 (default_function_arg_advance): Likewise.
13728 (default_function_arg): Likewise.
13729 (default_function_incoming_arg): Likewise.
13730 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
13731 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
13732 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
13733 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
13734 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
13735 * targhooks.h (default_setup_incoming_varargs): Likewise.
13736 (default_pretend_outgoing_varargs_named): Likewise.
13737 (hook_pass_by_reference_must_pass_in_stack): Likewise.
13738 (hook_callee_copies_named): Likewise.
13739 (default_function_arg_advance): Likewise.
13740 (default_function_arg): Likewise.
13741 (default_function_incoming_arg): Likewise.
13742 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
13743 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
13744 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
13745 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
13746 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
13747 * target.def (pass_by_reference): Likewise.
13748 (setup_incoming_varargs, strict_argument_naming): Likewise.
13749 (pretend_outgoing_varargs_named, callee_copies): Likewise.
13750 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
13751 (function_incoming_arg): Likewise.
13752 * target.h: Don't include "tm.h" .
13753 (cumulative_args_t): New typedef.
13754 [GCC_TM_H] (get_cumulative_args): New static inline function.
13755 [GCC_TM_H] (pack_cumulative_args): Likewise.
13756 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
13757 argument type with cumulative_args_t.
13758 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
13759 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
13760 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
13761 (frv_arg_partial_bytes, frv_function_arg): Likewise.
13762 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
13763 (frv_function_arg_1): Likewise.
13764 * config/s390/s390.c (s390_pass_by_reference): Likewise.
13765 (s390_function_arg_advance, s390_function_arg): Likewise.
13766 * config/m32c/m32c.c (m32c_function_arg): Likewise.
13767 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
13768 (m32c_strict_argument_naming): Likewise.
13769 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
13770 (spu_function_arg_advance): Likewise.
13771 (spu_setup_incoming_varargs): Likewise. Make static.
13772 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
13773 Remove prototype.
13774 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
13775 CUMULATIVE_ARGS* argument type with cumulative_args_t.
13776 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
13777 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
13778 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
13779 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
13780 (mep_pass_by_reference, mep_function_arg): Likewise.
13781 (mep_function_arg_advance): Likewise.
13782 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
13783 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
13784 (m32r_function_arg, m32r_function_arg_advance): Likewise.
13785 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
13786 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
13787 (ix86_function_arg, ix86_pass_by_reference): Likewise.
13788 (ix86_setup_incoming_varargs): Likewise.
13789 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
13790 (sh_strict_argument_naming): Likewise.
13791 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
13792 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
13793 (sh_function_arg_advance, sh_function_arg): Likewise.
13794 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
13795 (pdp11_function_arg_advance): Likewise.
13796 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
13797 Likewise.
13798 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
13799 * config/avr/avr.c (avr_function_arg): Likewise.
13800 (avr_function_arg_advance): Likewise.
13801 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
13802 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
13803 (xtensa_function_arg_1): Likewise.
13804 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
13805 Likewise.
13806 (xstormy16_function_arg): Likewise.
13807 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
13808 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
13809 (fr30_function_arg_advance): Likewise.
13810 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
13811 (lm32_function_arg, lm32_function_arg_advance): Likewise.
13812 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
13813 (moxie_function_arg, moxie_function_arg_advance): Likewise.
13814 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
13815 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
13816 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
13817 (cris_function_arg, cris_function_incoming_arg): Likewise.
13818 (cris_function_arg_advance, cris_function_arg_1): Likewise.
13819 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
13820 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
13821 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
13822 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
13823 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
13824 (mn10300_arg_partial_bytes): Likewise.
13825 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
13826 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
13827 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
13828 (ia64_function_arg_1): Likewise.
13829 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
13830 (m68k_function_arg): Likewise.
13831 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
13832 (rs6000_function_arg, setup_incoming_varargs): Likewise.
13833 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
13834 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
13835 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
13836 (picochip_arg_advance): Likewise.
13837 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
13838 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
13839 (mcore_function_arg_advance): Likewise.
13840 * config/score/score.c (score_pass_by_reference): Likewise.
13841 (score_function_arg_advance): Likewise.
13842 (score_arg_partial_bytes): Likewise. Make static.
13843 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
13844 * config/arm/arm.c (arm_arg_partial_bytes): Replace
13845 CUMULATIVE_ARGS* argument type with cumulative_args_t.
13846 (arm_function_arg, arm_function_arg_advance): Likewise.
13847 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
13848 * config/pa/pa.c (pa_pass_by_reference): Likewise.
13849 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
13850 (pa_function_arg): Likewise.
13851 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
13852 (mips_function_arg, mips_function_arg_advance): Likewise.
13853 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
13854 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
13855 * config/vax/vax.c (vax_function_arg): Likewise.
13856 (vax_function_arg_advance): Likewise.
13857 * config/h8300/h8300.c (h8300_function_arg): Likewise.
13858 (h8300_function_arg_advance): Likewise.
13859 * config/v850/v850.c (v850_pass_by_reference): Likewise.
13860 (v850_strict_argument_naming, v850_function_arg): Likewise.
13861 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
13862 (v850_setup_incoming_varargs): Likewise.
13863 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
13864 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
13865 (mmix_function_arg, mmix_pass_by_reference): Likewise.
13866 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
13867 with const void *.
13868 * config/bfin/bfin.c (setup_incoming_varargs): Replace
13869 CUMULATIVE_ARGS* argument type with cumulative_args_t.
13870 (bfin_function_arg_advance, bfin_function_arg): Likewise.
13871 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
13872 * calls.c (emit_call_1): Change type of args_so_far to
13873 cumulative_args_t. Changed all callers.
13874 (initialize_argument_information): Likewise.
13875 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
13876 * dse.c (get_call_args): Likewise.
13877 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
13878 * function.c (pass_by_reference, reference_callee_copied): Likewise.
13879 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
13880 New member args_so_far_v. Changed all users.
13881 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
13882 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
13883 * config/mips/mips.c (mips_output_args_xfer): Likewise.
13884 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13885 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
13886 * config/microblaze/microblaze.c (microblaze_expand_prologue):
13887 Likewise.
13888 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
13889 m32r_pass_by_reference.
13890
13891 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
13892
13893 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
13894 argument to be a VEC of statements.
13895 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
13896 assert that pattern statements have to have their vector type set.
13897 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
13898 Change the first argument to be a VEC of statements. Update
13899 documentation.
13900 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
13901 (vect_handle_widen_mult_by_const): New function.
13902 (vect_recog_widen_mult_pattern): Change the first argument to be a
13903 VEC of statements. Update documentation. Check that the constant is
13904 INTEGER_CST. Support multiplication by a constant that fits an
13905 intermediate type - call vect_handle_widen_mult_by_const.
13906 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
13907 call. Handle additional pattern statements if necessary.
13908
13909 2011-06-16 Nick Clifton <nickc@redhat.com>
13910
13911 PR target/49427
13912 * config.gcc: Set cpu_type to v850 for any V850 architecture.
13913 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
13914 md_file, extra_modes, out_file and extra_options are these are all
13915 deduced from cpu_type.
13916
13917 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
13918
13919 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
13920 truncation mask to 63.
13921
13922 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
13923
13924 PR target/49313
13925 PR target/29524
13926 * longlong.h: Add AVR support:
13927 (count_leading_zeros): New macro.
13928 (count_trailing_zeros): New macro.
13929 (COUNT_LEADING_ZEROS_0): New macro.
13930 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
13931 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
13932 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
13933 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
13934 (LIB2FUNCS_EXCLUDE): Add _clz.
13935 * config/avr/libgcc.S (XCALL): Move up in file.
13936 (XJMP): New C Macro.
13937 (DEFUN): New asm macro.
13938 (ENDF): New asm macro.
13939 (__ffssi2): New function.
13940 (__ffshi2): New function.
13941 (__loop_ffsqi2): New function.
13942 (__ctzsi2): New function.
13943 (__ctzhi2): New function.
13944 (__clzdi2): New function.
13945 (__clzsi2): New function.
13946 (__clzhi2): New function.
13947 (__paritydi2): New function.
13948 (__paritysi2): New function.
13949 (__parityhi2): New function.
13950 (__parityqi2): New function.
13951 (__popcounthi2): New function.
13952 (__popcountsi2): New function.
13953 (__popcountdi2): New function.
13954 (__popcountqi2): New function.
13955 (__bswapsi2): New function.
13956 (__bswapdi2): New function.
13957 (__ashldi3): New function.
13958 (__ashrdi3): New function.
13959 (__lshrdi3): New function.
13960 Fix suspicous lines.
13961
13962 2011-06-16 Richard Guenther <rguenther@suse.de>
13963
13964 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
13965 the same as x != 0.
13966 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
13967 to (bool) X & 1.
13968 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
13969 equality compares against zero for the lower bit.
13970
13971 2011-06-16 Jakub Jelinek <jakub@redhat.com>
13972
13973 PR tree-optimization/49419
13974 * tree-vrp.c (execute_vrp): Call init_range_assertions
13975 before estimate_numbers_of_iterations, call
13976 free_number_of_iterations_estimates before calling
13977 remove_range_assertions.
13978
13979 2011-06-16 Revital Eres <revital.eres@linaro.org>
13980
13981 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
13982 (struct partial_schedule): Add rows_length field.
13983 (verify_partial_schedule): Check rows_length.
13984 (ps_insert_empty_row): Handle rows_length.
13985 (create_partial_schedule): Likewise.
13986 (free_partial_schedule): Likewise.
13987 (reset_partial_schedule): Likewise.
13988 (create_ps_insn): Remove rest_count argument.
13989 (remove_node_from_ps): Update rows_length.
13990 (add_node_to_ps): Update rows_length and call create_ps_insn
13991 without passing row_rest_count.
13992 (rotate_partial_schedule): Update rows_length.
13993
13994 2011-06-16 Revital Eres <revital.eres@linaro.org>
13995
13996 * ddg.c (add_intra_loop_mem_dep): New function.
13997 (build_intra_loop_deps): Call it.
13998
13999 2011-06-13 Jeff Law <law@redhat.com>
14000
14001 * df-problems.c (df_lr_local_compute): Manually CSE
14002 PIC_OFFSET_TABLE_REGNUM.
14003 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
14004 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
14005
14006 2011-06-13 Jan Hubicka <jh@suse.cz>
14007
14008 * cgraphunit.c (handle_alias_pairs): New function.
14009 (cgraph_finalize_compilation_unit): Use it.
14010 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
14011 as externally visible.
14012
14013 2011-06-15 Richard Guenther <rguenther@suse.de>
14014
14015 * expr.c (expand_expr_real_2): Reduce all integral types to
14016 bitfield precision.
14017 (expand_expr_real_1): Likewise.
14018
14019 2011-06-15 Martin Jambor <mjambor@suse.cz>
14020
14021 PR tree-optimization/48613
14022 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
14023 ipa_node_params_vector is NULL.
14024
14025 2011-06-15 Jakub Jelinek <jakub@redhat.com>
14026
14027 PR debug/49382
14028 * dwarf2out.c (dw_loc_list_node): Add force field.
14029 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
14030 location in the list, even if it is modified before first real insn.
14031 (output_loc_list): Emit empty ranges with force flag set.
14032 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
14033
14034 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
14035
14036 PR target/49349
14037 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
14038 (fence_to_rewind). Use it to notice when bookkeeping will be placed
14039 above a fence. Update comments.
14040 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
14041 placed just above it. Do not allow NULL place_to_insert.
14042
14043 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
14044
14045 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
14046 (slpeel_tree_peel_loop_to_edge): Don't call
14047 remove_dead_stmts_from_loop.
14048 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
14049 remove irrelevant pattern statements. For irrelevant statements
14050 check if it is the last statement of a detected pattern, use
14051 corresponding pattern statement instead.
14052 (destroy_loop_vec_info): No need to remove pattern statements,
14053 only free stmt_vec_info.
14054 (vect_transform_loop): For irrelevant statements check if it is
14055 the last statement of a detected pattern, use corresponding
14056 pattern statement instead.
14057 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
14058 pattern statements. Set basic block for the new statement.
14059 (vect_pattern_recog): Update documentation.
14060 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
14061 operands of pattern statements.
14062 (vectorizable_call): Fix printing. In case of a pattern statement
14063 use the lhs of the original statement when creating a dummy
14064 statement to replace the original call.
14065 (vect_analyze_stmt): For irrelevant statements check if it is
14066 the last statement of a detected pattern, use corresponding
14067 pattern statement instead.
14068 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
14069 statements use gsi of the original statement.
14070
14071 2011-06-14 Joseph Myers <joseph@codesourcery.com>
14072
14073 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
14074 common/common-target-def.h.
14075 * target.def (default_target_flags, handle_option,
14076 supports_split_stack, optimization_table, init_struct,
14077 except_unwind_info, unwind_tables_default, have_named_sections):
14078 Move to common/common-target.def.
14079 * target.h (enum opt_levels, struct default_options): Move to
14080 common/common-target.h.
14081 * targhooks.c (default_except_unwind_info,
14082 dwarf2_except_unwind_info, sjlj_except_unwind_info,
14083 default_target_handle_option, empty_optimization_table): Move to
14084 common/common-targhooks.c.
14085 * targhooks.h (default_except_unwind_info,
14086 dwarf2_except_unwind_info, sjlj_except_unwind_info,
14087 default_target_handle_option, empty_optimization_table): Move to
14088 common/common-targhooks.h.
14089 * common/common-target-def.h: Include common/common-targhooks.h.
14090 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
14091 defined.
14092 * common/common-target.def (handle_option, option_init_struct,
14093 option_optimization_table, default_target_flags,
14094 except_unwind_info, supports_split_stack, unwind_tables_default,
14095 have_named_sections): Move from target.def.
14096 (HOOK_PREFIX): Undefine at end of file.
14097 * common/common-target.h: Include input.h.
14098 (enum opt_levels, struct default_options): Move from target.h.
14099 * common/common-targhooks.c, common/common-targhooks.h: New.
14100 * config.gcc (target_has_targetm_common): Default to yes.
14101 (moxie*): Set target_has_targetm_common=no.
14102 (hppa*-*-*): Don't set target_has_targetm_common=yes.
14103 * doc/tm.texi: Regenerate.
14104 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
14105 (C_TARGET_DEF_H): Add common/common-targhooks.h.
14106 (GCC_OBJS): Remove vec.o.
14107 (OBJS): Remove hooks.o and vec.o.
14108 (OBJS-libcommon-target): Add vec.o, hooks.o and
14109 common/common-targhooks.o.
14110 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
14111 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
14112 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
14113 cfglayout.o, $(out_object_file), $(common_out_object_file)):
14114 Update dependencies.
14115 (common/common-targhooks.o): New.
14116 * common/config/default-common.c: Include tm.h. Add FIXME comment.
14117 * common/config/pa/pa-common.c: Include more headers. Take
14118 copyright dates from pa.c.
14119 (pa_option_optimization_table, pa_handle_option,
14120 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
14121 TARGET_HANDLE_OPTION): Move from pa.c.
14122 * common/config/alpha/alpha-common.c,
14123 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
14124 common/config/bfin/bfin-common.c,
14125 common/config/cris/cris-common.c,
14126 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
14127 common/config/h8300/h8300-common.c,
14128 common/config/i386/i386-common.c,
14129 common/config/ia64/ia64-common.c,
14130 common/config/iq2000/iq2000-common.c,
14131 common/config/lm32/lm32-common.c,
14132 common/config/m32c/m32c-common.c,
14133 common/config/m32r/m32r-common.c,
14134 common/config/m68k/m68k-common.c,
14135 common/config/mcore/mcore-common.c,
14136 common/config/mep/mep-common.c,
14137 common/config/microblaze/microblaze-common.c,
14138 common/config/mips/mips-common.c,
14139 common/config/mmix/mmix-common.c,
14140 common/config/mn10300/mn10300-common.c,
14141 common/config/pdp11/pdp11-common.c,
14142 common/config/picochip/picochip-common.c,
14143 common/config/rs6000/rs6000-common.c,
14144 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
14145 common/config/score/score-common.c, common/config/sh/sh-common.c,
14146 common/config/sparc/sparc-common.c,
14147 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
14148 common/config/vax/vax-common.c,
14149 common/config/xstormy16/xstormy16-common.c,
14150 common/config/xtensa/xtensa-common.c: New.
14151 * config/alpha/alpha.c: Include common/common-target.h.
14152 (alpha_option_optimization_table, alpha_handle_option,
14153 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14154 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
14155 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
14156 * config/arm/arm.c (arm_option_optimization_table,
14157 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
14158 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
14159 arm-common.c.
14160 * config/avr/avr.c (avr_option_optimization_table,
14161 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
14162 to avr-common.c.
14163 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
14164 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
14165 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
14166 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
14167 * config/cris/cris.c (cris_option_optimization_table,
14168 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14169 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
14170 cris-common.c.
14171 * config/fr30/fr30.c (fr30_option_optimization_table,
14172 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
14173 to fr30-common.c.
14174 * config/frv/frv.c (frv_option_optimization_table,
14175 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
14176 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
14177 * config/h8300/h8300.c (h8300_option_optimization_table,
14178 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
14179 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
14180 * config/i386/i386-protos.h (ix86_handle_option): Declare.
14181 * config/i386/i386.c: Include common/common-target.h.
14182 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
14183 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
14184 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
14185 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
14186 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
14187 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
14188 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
14189 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
14190 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
14191 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
14192 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
14193 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
14194 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
14195 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
14196 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
14197 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
14198 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
14199 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
14200 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
14201 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
14202 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
14203 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
14204 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
14205 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
14206 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
14207 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
14208 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
14209 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
14210 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
14211 ix86_option_optimization_table, ix86_option_init_struct,
14212 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
14213 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
14214 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
14215 i386-common.c.
14216 * config/i386/t-i386 (i386.o): Update dependencies.
14217 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
14218 * config/ia64/ia64.c (ia64_option_optimization_table,
14219 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
14220 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14221 ia64_handle_option): Move to ia64-common.c.
14222 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
14223 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
14224 * config/lm32/lm32.c (lm32_option_optimization_table,
14225 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
14226 to lm32-common.c.
14227 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
14228 m32c-common.c.
14229 * config/m32r/m32r.c (m32r_option_optimization_table,
14230 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14231 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
14232 m32r_handle_option): Move to m32r-common.c.
14233 (m32r_memory_move_cost): Remove comment referring to
14234 TARGET_HANDLE_OPTION.
14235 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
14236 Move to m68k-common.c.
14237 * config/mcore/mcore.c (mcore_option_optimization_table,
14238 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
14239 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
14240 * config/mep/mep.c (mep_option_optimization_table,
14241 mep_handle_option, TARGET_HANDLE_OPTION,
14242 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
14243 Move to mep-common.c.
14244 * config/microblaze/microblaze.c
14245 (microblaze_option_optimization_table,
14246 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
14247 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
14248 * config/mips/mips.c (mips_handle_option,
14249 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
14250 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
14251 mips-common.c.
14252 * config/mmix/mmix.c (mmix_option_optimization_table,
14253 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
14254 Move to mmix-common.c.
14255 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
14256 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
14257 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14258 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
14259 * config/pa/pa.c: Include common/common-target.h.
14260 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
14261 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14262 pa_handle_option): Move to pa-common.c.
14263 (pa_option_override): Use targetm_common.except_unwind_info.
14264 (pa_asm_output_mi_thunk, pa_function_section): Use
14265 targetm_common.have_named_sections.
14266 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
14267 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14268 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
14269 pdp11_handle_option, pdp11_option_init_struct): Move to
14270 pdp11-common.c.
14271 * config/picochip/picochip.c (picochip_option_optimization_table,
14272 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
14273 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
14274 * config/rs6000/rs6000.c: Include common/common-target.h.
14275 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
14276 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
14277 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
14278 rs6000_handle_option): Move to rs6000-common.c.
14279 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
14280 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
14281 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
14282 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
14283 * config/s390/s390.c (processor_flags_table,
14284 s390_option_optimization_table, s390_option_init_struct,
14285 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
14286 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
14287 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
14288 * config/s390/s390.h (processor_flags_table): Declare.
14289 * config/score/score.c (score_option_optimization_table,
14290 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14291 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
14292 score_handle_option): Move to score-common.c.
14293 * config/sh/sh.c (sh_option_optimization_table,
14294 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
14295 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14296 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
14297 * config/sparc/sparc.c: Include common/common-target.h.
14298 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
14299 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
14300 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
14301 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
14302 spu_option_init_struct): Move to spu-common.c.
14303 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
14304 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
14305 * config/v850/v850.c (small_memory_physical_max,
14306 v850_handle_memory_optionn v850_handle_option,
14307 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
14308 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
14309 v850-common.c.
14310 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
14311 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
14312 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
14313 Move to xtensa-common.c.
14314 * cfglayout.c: Include common/common-target.h.
14315 (fixup_reorder_chain): Use targetm_common.have_named_sections.
14316 * cfgrtl.c: Include common/common-target.h.
14317 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
14318 targetm_common.have_named_sections.
14319 * dbxout.c: Include common/common-target.h.
14320 (dbxout_function_end): Use targetm_common.have_named_sections.
14321 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
14322 targetm_common.except_unwind_info.
14323 * dwarf2out.c: Include common/common-target.h.
14324 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
14325 dwarf2out_begin_prologue, dwarf2out_frame_init,
14326 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
14327 targetm_common.except_unwind_info.
14328 * except.c: Include common/common-target.h.
14329 (init_eh, finish_eh_generation,
14330 output_one_function_exception_table): Use
14331 targetm_common.except_unwind_info.
14332 (switch_to_exception_section): Use targetm_common.have_named_sections.
14333 * explow.c: Include common/common-target.h.
14334 * expr.c: Include common/common-target.h.
14335 (build_personality_function): Use targetm_common.except_unwind_info.
14336 * function.c: Include common/common-target.h.
14337 (expand_function_end): Use targetm_common.except_unwind_info.
14338 * haifa-sched.c: Include common/common-target.h.
14339 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
14340 * lto-opts.c: Include common/common-target.h instead of target.h.
14341 (lto_reissue_options): Use targetm_common.handle_option.
14342 * opts.c: Include common/common-target.h.
14343 (target_handle_option): Use targetm_common.handle_option.
14344 (init_options_struct): Update comment referring to
14345 targetm.target_option.optimization. Use
14346 targetm_common.default_target_flags,
14347 targetm_common.unwind_tables_default and
14348 targetm_common.option_init_struct.
14349 (default_options_optimization): Use
14350 targetm_common.option_optimization_table.
14351 (finish_options): Use targetm_common.except_unwind_info,
14352 targetm_common.unwind_tables_default,
14353 targetm_common.have_named_sections and
14354 targetm_common.supports_split_stack.
14355 * toplev.c: Include common/common-target.h.
14356 (process_options): Use targetm_common.have_named_sections.
14357 * tree-tailcall.c: Include common/common-target.h.
14358 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
14359 * tree.c: Include common/common-target.h.
14360 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
14361 * varasm.c: Include common/common-target.h.
14362 (resolve_unique_section, hot_function_section,
14363 default_function_section): Use targetm_common.have_named_sections.
14364
14365 2011-06-14 Easwaran Raman <eraman@google.com>
14366
14367 PR rtl-optimization/44194
14368 * dse.c: Include tree-flow.h
14369 (insn_info): Add new field non_frame_wild_read.
14370 (group_info): Add new fields escaped_n and escaped_p.
14371 (kill_on_calls): New variable.
14372 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
14373 (dse_step0): Initialize kill_on_calls.
14374 (can_escape): New function.
14375 (set_usage_bits): Add additional parameter; record information
14376 about escaped locations.
14377 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
14378 (dse_step2_nospill): Set kill_on_calls based on
14379 group->escaped_n and group->escaped_n.
14380 (add_wild_read): Refactor into...
14381 (reset_active_stores): ... New function, and
14382 (free_read_records): ... New function.
14383 (add_non_frame_wild_read): New function.
14384 (scan_insn): Call add_non_frame_wild_read on non-const calls.
14385 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
14386 (dse_step5_nospill): Call scan_reads_nospill for instructions
14387 marked as non_frame_wild_read.
14388 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
14389
14390 2011-06-14 Joseph Myers <joseph@codesourcery.com>
14391
14392 * common/common-target-def.h, common/common-target.def,
14393 common/common-target.h, common/config/default-common.c,
14394 common/config/pa/pa-common.c: New files.
14395 * Makefile.in (common_out_file, common_out_object_file,
14396 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
14397 (OBJS-libcommon-target): Include $(common_out_object_file).
14398 (prefix.o): Update dependencies.
14399 ($(common_out_object_file), common/common-target-hooks-def.h,
14400 s-common-target-hooks-def-h): New.
14401 (s-tm-texi): Also check timestamp on common-target.def.
14402 (build/genhooks.o): Update dependencies.
14403 * config.gcc (common_out_file, target_has_targetm_common): Define.
14404 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
14405 TARGET_ALWAYS_STRIP_DOTDOT.
14406 * configure.ac (common_out_object_file): Define.
14407 (common_out_file, common_out_object_file): Substitute.
14408 (common): Create directory.
14409 * configure: Regenerate.
14410 * doc/tm.texi.in (targetm_common): Document.
14411 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
14412 * doc/tm.texi: Regenerate.
14413 * genhooks.c (hook_array): Also include common/common-target.def.
14414 * prefix.c (tm.h): Don't include.
14415 (common/common-target.h): Include.
14416 (ALWAYS_STRIP_DOTDOT): Don't define.
14417 (update_path): Use targetm_common.always_strip_dotdot instead of
14418 ALWAYS_STRIP_DOTDOT.
14419 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
14420
14421 2011-06-14 David Li <davidxl@google.com>
14422
14423 * passes.c (execute_function_todo): Remove TODO_dump_func.
14424 (execute_one_pass): Remove TODO_dump_func.
14425 (execute_function_dump): New function.
14426 * tree-vrp.c: Remove TODO_dump_func.
14427 * regrename.c: Remove TODO_dump_func.
14428 * fwprop.c: Remove TODO_dump_func.
14429 * tree-into-ssa.c: Remove TODO_dump_func.
14430 * tree-complex.c: Remove TODO_dump_func.
14431 * tracer.c: Remove TODO_dump_func.
14432 * tree-loop-distribution.c: Remove TODO_dump_func.
14433 * postreload-gcse.c: Remove TODO_dump_func.
14434 * postreload.c: Remove TODO_dump_func.
14435 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
14436 * tree-tailcall.c: Remove TODO_dump_func.
14437 * ipa-cp.c: Remove TODO_dump_func.
14438 * final.c: Remove TODO_dump_func.
14439 * tree-emutls.c: Remove TODO_dump_func.
14440 * omp-low.c: Remove TODO_dump_func.
14441 * tree-ssa-dse.c: Remove TODO_dump_func.
14442 * tree-ssa-uncprop.c: Remove TODO_dump_func.
14443 * auto-inc-dec.c: Remove TODO_dump_func.
14444 * reorg.c: Remove TODO_dump_func.
14445 * tree-ssa-copyrename.c: Remove TODO_dump_func.
14446 * tree-ssa-ccp.c: Remove TODO_dump_func.
14447 * compare-elim.c: Remove TODO_dump_func.
14448 * mode-switching.c: Remove TODO_dump_func.
14449 * modulo-sched.c: Remove TODO_dump_func.
14450 * tree-call-cdce.c: Remove TODO_dump_func.
14451 * cse.c: Remove TODO_dump_func.
14452 * web.c: Remove TODO_dump_func.
14453 * tree-stdarg.c: Remove TODO_dump_func.
14454 * lto-streamer-out.c: Remove TODO_dump_func.
14455 * tree-ssa-math-opts.c: Remove TODO_dump_func.
14456 * tree-ssa-dom.c: Remove TODO_dump_func.
14457 * tree-nrv.c: Remove TODO_dump_func.
14458 * loop-init.c: Remove TODO_dump_func.
14459 * gimple-low.c: Remove TODO_dump_func.
14460 * ipa-inline.c: Remove TODO_dump_func.
14461 * tree-ssa-sink.c: Remove TODO_dump_func.
14462 * jump.c: Remove TODO_dump_func.
14463 * ifcvt.c: Remove TODO_dump_func.
14464 * tree-ssa-loop.c: Remove TODO_dump_func.
14465 * recog.c: Remove TODO_dump_func.
14466 * dse.c: Remove TODO_dump_func.
14467 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
14468 * matrix-reorg.c: Remove TODO_dump_func.
14469 * tree-eh.c: Remove TODO_dump_func.
14470 * regmove.c: Remove TODO_dump_func.
14471 * function.c: Remove TODO_dump_func.
14472 * tree-vectorizer.c: Remove TODO_dump_func.
14473 * ipa-split.c: Remove TODO_dump_func.
14474 * gcse.c: Remove TODO_dump_func.
14475 * tree-if-conv.c: Remove TODO_dump_func.
14476 * init-regs.c: Remove TODO_dump_func.
14477 * tree-ssa-phiopt.c: Remove TODO_dump_func.
14478 * implicit-zee.c: Remove TODO_dump_func.
14479 * lower-subreg.c: Remove TODO_dump_func.
14480 * bt-load.c: Remove TODO_dump_func.
14481 * tree-dfa.c: Remove TODO_dump_func.
14482 * except.c: Remove TODO_dump_func.
14483 * emit-rtl.c: Remove TODO_dump_func.
14484 * store-motion.c: Remove TODO_dump_func.
14485 * cfgexpand.c: Remove TODO_dump_func.
14486 * tree-cfgcleanup.c: Remove TODO_dump_func.
14487 * cfgcleanup.c: Remove TODO_dump_func.
14488 * tree-ssa-pre.c: Remove TODO_dump_func.
14489 * tree-sra.c: Remove TODO_dump_func.
14490 * tree-mudflap.c: Remove TODO_dump_func.
14491 * tree-ssa-copy.c: Remove TODO_dump_func.
14492 * cfglayout.c: Remove TODO_dump_func.
14493 * tree-ssa-forwprop.c: Remove TODO_dump_func.
14494 * tree-ssa-dce.c: Remove TODO_dump_func.
14495 * ira.c: Remove TODO_dump_func.
14496 * tree-ssa.c: Remove TODO_dump_func.
14497 * integrate.c: Remove TODO_dump_func.
14498 * tree-optimize.c: Remove TODO_dump_func.
14499 * tree-ssa-phiprop.c: Remove TODO_dump_func.
14500 * tree-object-size.c: Remove TODO_dump_func.
14501 * combine.c: Remove TODO_dump_func.
14502 * bb-reorder.c: Remove TODO_dump_func.
14503 * cprop.c: Remove TODO_dump_func.
14504 * var-tracking.c: Remove TODO_dump_func.
14505 * tree-profile.c: Remove TODO_dump_func.
14506 * tree-vect-generic.c: Remove TODO_dump_func.
14507 * reg-stack.c: Remove TODO_dump_func.
14508 * sched-rgn.c: Remove TODO_dump_func.
14509 * tree-ssa-structalias.c: Remove TODO_dump_func.
14510 * tree-switch-conversion.c: Remove TODO_dump_func.
14511 * tree-cfg.c: Remove TODO_dump_func.
14512 * tree-ssa-reassoc.c: Remove TODO_dump_func.
14513 * combine-stack-adj.c: Remove TODO_dump_func.
14514 * dce.c: Remove TODO_dump_func.
14515 * tree-ssanames.c: Remove TODO_dump_func.
14516 * regcprop.c: Remove TODO_dump_func.
14517
14518 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
14519
14520 PR middle-end/47364
14521 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
14522 and properly handle result not in Pmode.
14523
14524 2011-06-14 Robert Millan <rmh@gnu.org>
14525
14526 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
14527 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
14528 `config/linux.h'.
14529
14530 * config/i386/kfreebsd-gnu64.h: New file.
14531 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
14532 with `i386/kfreebsd-gnu64.h'.
14533
14534 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
14535 (GNU_USER_LINK_EMULATION64): New macros.
14536 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
14537 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
14538 of hardcoding `elf_i386' and `elf_x86_64'.
14539
14540 2011-06-14 Nick Clifton <nickc@redhat.com>
14541
14542 PR target/49403
14543 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
14544
14545 PR target/49402
14546 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
14547
14548 2011-06-14 Jakub Jelinek <jakub@redhat.com>
14549
14550 PR fortran/49103
14551 * tree.h (DECL_NONSHAREABLE): Define.
14552 (struct tree_decl_common): Change decl_common_unused to
14553 decl_nonshareable_flag.
14554 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
14555 Ignore vars with DECL_NONSHAREABLE bit set.
14556 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
14557 on stores to automatic aggregate vars.
14558
14559 PR rtl-optimization/49390
14560 Revert:
14561 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
14562
14563 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
14564 MEM_ALIAS_SET.
14565
14566 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
14567 Tom de Vries <tom@codesourcery.com>
14568
14569 PR target/45098
14570 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
14571 Document changed semantics.
14572 (max_stmt_executions, max_stmt_executions_int): Declare.
14573 * tree-data-ref.c (estimated_loop_iterations)
14574 (estimated_loop_iterations_int): Move functions...
14575 * tree-ssa-loop-niter.c (estimated_loop_iterations)
14576 (estimated_loop_iterations_int): here.
14577 (record_estimate): Change nb_iterations_upper_bound and
14578 nb_iterations_estimate semantics.
14579 (max_stmt_executions, max_stmt_executions_int): New function.
14580 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
14581 (max_stmt_executions_tree): this.
14582 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
14583 estimated_loop_iterations_tree.
14584 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
14585 max_stmt_executions_int instead of estimated_loop_iterations_int.
14586 * predict.c (predict_loops): Idem.
14587 * tree-parloops.c (parallelize_loops): Idem.
14588 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
14589 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
14590 (init_omega_for_ddr_1): Idem.
14591 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
14592 (loop_prefetch_arrays): Idem
14593 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
14594 max_stmt_executions instead of estimated_loop_iterations.
14595 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
14596 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
14597 instead of nb_iterations_upper_bound.
14598
14599 2011-06-13 Jan Hubicka <jh@suse.cz>
14600
14601 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
14602
14603 2011-06-14 Richard Henderson <rth@redhat.com>
14604
14605 PR debug/48459
14606 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
14607 (based_loc_descr): Assert it's true.
14608 (compute_frame_pointer_to_fb_displacement): Set it, rather than
14609 aborting immediately.
14610
14611 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
14612 Mingfeng Wu <mingfeng@faraday-tech.com>
14613
14614 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
14615
14616 2011-06-13 Jan Hubicka <jh@suse.cz>
14617
14618 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
14619
14620 2011-06-13 Jan Hubicka <jh@suse.cz>
14621
14622 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
14623 similarly to DECL_COMDAT.
14624 * cgraphunit.c (cgraph_analyze_function): Likewise.
14625 * ipa.c (function_and_variable_visibility): Likewise.
14626
14627 2011-06-13 Jan Hubicka <jh@suse.cz>
14628
14629 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
14630 BINFO_VIRTUALS when streaming for ltrans unit.
14631
14632 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
14633
14634 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
14635 (movdi_internal64): Same.
14636
14637 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
14638
14639 PR target/44618
14640 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
14641 a set of similar patterns, where the MATCH_OPERAND for the function
14642 argument is replaced with individual references to hardware registers.
14643 (save_fpregs_<mode>): Ditto
14644 (restore_gpregs_<mode>): Ditto
14645 (return_and_restore_gpregs_<mode>): Ditto
14646 (return_and_restore_fpregs_<mode>): Ditto
14647 (return_and_restore_fpregs_aix_<mode>): Ditto
14648
14649 2011-06-13 Jan Hubicka <jh@suse.cz>
14650
14651 * ipa-utils.c (postorder_stack): New structure.
14652 (ipa_reverse_postorder): Handle aliases.
14653
14654 2011-06-13 Jan Hubicka <jh@suse.cz>
14655
14656 * ipa-inline.c (reset_edge_caches): Walk aliases.
14657 (update_caller_keys): Do not test inlinability of aliases.
14658 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
14659 (do_estimate_growth): Fix typo.
14660
14661 2011-06-13 Jan Hubicka <jh@suse.cz>
14662
14663 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
14664 (can_remove_node_now_p): ... here; handle same comdat groups.
14665 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
14666 (inline_call): Update use of can_remove_node_now_p.
14667
14668 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
14669
14670 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
14671 condition to disallow non-identical memory locations.
14672 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
14673 preference to bit manipulation instructions.
14674
14675 2011-06-13 Jan Hubicka <jh@suse.cz>
14676
14677 * cgraph.c (cgraph_for_node_thunks_and_aliases,
14678 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
14679 (nonremovable_p): New function.
14680 (cgraph_can_remove_if_no_direct_calls_p): New function.
14681 (used_from_object_file_p): New functoin.
14682 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
14683 references from aliases.
14684 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
14685 * ipa-inline.c (check_caller_edge): New function.
14686 (want_inline_function_called_once_p): Use it; accept aliases called
14687 once, too.
14688 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
14689
14690 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14691
14692 PR target/48454
14693 * config/arm/neon.md (vec_pack_trunc): Set the lengths
14694 correctly for the case with Quad vectors.
14695
14696 2011-06-13 Jakub Jelinek <jakub@redhat.com>
14697 Ira Rosen <ira.rosen@linaro.org>
14698
14699 PR tree-optimization/49352
14700 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
14701 all, make sure loop_use_stmt after the loop is a def stmt of a used
14702 SSA_NAME that is the only one defined inside of the loop. Don't
14703 check for COND_EXPR and GIMPLE_BINARY_RHS.
14704 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
14705 check_reduction is true.
14706
14707 2011-06-11 Jan Hubicka <jh@suse.cz>
14708
14709 PR middle-end/49373
14710 * ipa.c (cgraph_externally_visible_p): Check resolution info.
14711
14712 2011-06-11 Jan Hubicka <jh@suse.cz>
14713
14714 PR middle-end/48836
14715 * ipa-inline-transform.c: Include tree-pass.h
14716 (inline_transform): Set TODO_update_ssa_only_virtuals.
14717 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
14718
14719 2011-06-11 Jan Hubicka <jh@suse.cz>
14720
14721 PR middle-end/49378
14722 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
14723 aliases and thunks.
14724
14725 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
14726
14727 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
14728 Take number of iterations to peel into account for equally frequent
14729 misalignment values.
14730
14731 2011-06-11 Jan Hubicka <jh@suse.cz>
14732
14733 * lto-streamer-out.c (produce_symtab): Stream out the newly
14734 represented aliases.
14735
14736 2011-06-11 Jan Hubicka <jh@suse.cz>
14737
14738 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
14739 varying args.
14740 (ipa_update_after_lto_read): Likewise.
14741 (ipa_write_node_info): Do not sream call_with_var_arguments.
14742 (ipa_read_node_info): Likewise.
14743
14744 2011-06-11 Jan Hubicka <jh@suse.cz>
14745
14746 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
14747
14748 2011-06-11 Jan Hubicka <jh@suse.cz>
14749
14750 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
14751 (lto_symtab_resolve_can_prevail_p): Likewise.
14752 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
14753 * cgraph.c (same_body_aliases_done): New global var.
14754 (cgraph_same_body_alias_1): Rename to ...
14755 (cgraph_create_function_alias): ... this one; reorg to new
14756 representation.
14757 (cgraph_same_body_alias): Use cgraph_create_function_alias;
14758 record references when asked to.
14759 (cgraph_add_thunk): Fix formating.
14760 (cgraph_get_node): Kill same body alias code.
14761 (cgraph_node_for_asm): Likewise.
14762 (cgraph_remove_same_body_alias): Remove.
14763 (cgraph_remove_node): Kill same body alias code.
14764 (cgraph_mark_address_taken_node): Mark also the aliased function
14765 as having address taken.
14766 (dump_cgraph_node): Dump same body aliases.
14767 (cgraph_for_node_thunks_and_aliases): Update for new alias
14768 representation.
14769 (cgraph_for_node_and_aliases): Likewise.
14770 * cgraph.h (same_body): Kll pointer.
14771 (same_body_alias): Update comment.
14772 (same_body_aliases_done): Declare.
14773 (cgraph_remove_same_body_alias): Remove declaration.
14774 (cgraph_create_function_alias): Declare.
14775 (cgraph_process_same_body_aliases): Declare.
14776 (cgraph_function_with_gimple_body_p): Check for alias.
14777 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
14778 (cgraph_alias_aliased_node): New function.
14779 (cgraph_function_node): Update for new aliases.
14780 (cgraph_function_or_thunk_node): Likewise.
14781 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
14782 (inline_call): Remove dead aliases.
14783 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
14784 name hack for same body aliases.
14785 (clone_of_p): Look through aliases.
14786 (verify_cgraph_node): Verify aliases.
14787 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
14788 (cgraph_process_same_body_aliases): New function.
14789 (process_function_and_variable_attributes): Disable weakref warning on
14790 alias.
14791 (cgraph_analyze_functions): Handle aliases.
14792 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
14793 (assemble_thunks): Rename to ...
14794 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
14795 (cgraph_expand_function): Remove alias output code.
14796 (cgraph_output_in_order): Skip aliases.
14797 (cgraph_preserve_function_body_p): Aliases don't need preserving.
14798 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
14799 (ipa_record_reference): Do not assert on alias references.
14800 (ipa_ref_has_aliases_p): New function.
14801 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
14802 (ipa_ref_has_aliases_p): Declare.
14803 * lto-cgraph.c (lto_output_node): Handle aliases.
14804 (input_node): Likewise.
14805 * lto-streamer-out.c (lto_output): Skip aliases.
14806 (produce_symtab): Kill same_body_alias code.
14807 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
14808 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
14809 * ipa-inline.c (update_caller_keys): Walk aliases.
14810 (inline_small_functions): Fix thinko in previous patch.
14811 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
14812 (function_and_variable_visibility): Do not walk same body aliases.
14813 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
14814 (ipa_pta_execute): Use it.
14815
14816 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
14817
14818 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
14819 (*vec_dupv2df): Rename from vec_dupv2df.
14820 (vec_dupv2df): New expander.
14821
14822 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
14823
14824 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
14825
14826 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
14827
14828 * config/i386/i386.md: Use default value in "isa" attribute.
14829 * config/i386/sse.md: Ditto.
14830 * config/i386/mmx.md: Ditto.
14831
14832 2011-06-10 Wei Guozhi <carrot@google.com>
14833
14834 PR target/45335
14835 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
14836 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
14837 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
14838 related peephole2.
14839 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
14840 related peephole2.
14841 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
14842 (arm_legitimate_ldrd_p): New prototype.
14843 (arm_output_ldrd): New prototype.
14844 * config/arm/arm.c (arm_check_ldrd_operands): New function.
14845 (arm_legitimate_ldrd_p): New function.
14846 (arm_output_ldrd): New function.
14847
14848 2011-06-10 David Li <davidxl@google.com>
14849
14850 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
14851 * passes.c (passr_eq): New function.
14852 (create_pass_tab): New function.
14853 (pass_traverse): New function.
14854 (dump_one_pass): New function.
14855 (dump_pass_list): New function.
14856 (dump_passes): New function.
14857
14858 2011-06-10 Jan Hubicka <jh@suse.cz>
14859
14860 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
14861 setting the nothrow flag.
14862 * ipa-reference.c (propagate): Skip aliases.
14863 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
14864 (propagate_nothrow): Skip aliases; do not update cgraph.
14865 (local_pure_const): Do not update cgraph.
14866 * tree-profile.c (tree_profiling): Do fixup_cfg.
14867
14868 2011-06-10 Jan Hubicka <jh@suse.cz>
14869
14870 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
14871 (cgraph_local_node_p): ... here; handle aliases.
14872 (has_addr_references_p): Break out from ...;
14873 (cgraph_remove_unreachable_nodes) ... here.
14874
14875 2011-06-10 Jan Hubicka <jh@suse.cz>
14876
14877 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
14878 * common.opt (flag_inline_functions_called_once): Do not
14879 initialize to 1.
14880
14881 2011-06-10 Jan Hubicka <jh@suse.cz>
14882
14883 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
14884 (ipcp_initialize_node_lattices): Do not deal with aliases;
14885 Do not try to propagate through thunks.
14886 (ipcp_change_tops_to_bottom): Do not deal with aliases.
14887
14888 2011-06-10 Jan Hubicka <jh@suse.cz>
14889
14890 * ipa-prop.c (ipa_write_node_info): Stream jump functions
14891 for indirect calls.
14892 (ipa_read_node_info): Likewise.
14893
14894 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14895
14896 PR lto/49302
14897 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
14898 (build_and_insert_call): Likewise.
14899 (build_and_insert_ref): New.
14900 (gimple_expand_builtin_pow): Minor cleanup.
14901 (gimple_expand_builtin_cabs): New.
14902 (execute_cse_sincos): Add case for BUILT_IN_CABS.
14903
14904 2011-06-10 Jan Hubicka <jh@suse.cz>
14905
14906 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
14907 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
14908 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
14909 (ipcp_propagate_stage): Skip aliases when propagating.
14910 (ipcp_need_redirect_p): Skip aliases.
14911 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
14912 collect_callers_of_node.
14913 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
14914 for aliases.
14915 (ipa_compute_jump_functions): Look through aliases.
14916
14917 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14918
14919 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
14920
14921 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
14922
14923 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
14924 Adjust comments.
14925 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
14926
14927 2011-06-10 Jan Hubicka <jh@suse.cz>
14928
14929 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
14930 Update call of gimple_get_virt_method_for_binfo.
14931 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
14932 refuse_thunks parameter.
14933 (gimple_fold_call): Update.
14934 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
14935
14936 2011-06-10 Jan Hubicka <jh@suse.cz>
14937
14938 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
14939 (not_all_callers_have_enough_arguments_p): ... this one; turn into
14940 worker for cgraph_for_node_and_aliases.
14941 (convert_callers_for_node): Break out from ...
14942 (convert_callers): ... here.
14943 (modify_function): Use collect_callers_of_node.
14944 (ipa_early_sra): Use cgraph_for_node_and_aliases.
14945
14946 2011-06-10 Richard Guenther <rguenther@suse.de>
14947
14948 PR tree-optimization/49361
14949 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
14950 when not already in gimple form.
14951
14952 2011-06-10 Richard Guenther <rguenther@suse.de>
14953
14954 PR bootstrap/49344
14955 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
14956 FOR_EACH_PHI_OR_STMT_USE.
14957
14958 2011-06-10 Jan Hubicka <jh@suse.cz>
14959
14960 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
14961 (clone_inlined_nodes): ... here.
14962 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
14963 to real destination prior inlining.
14964 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
14965 can_early_inline_edge_p, want_early_inline_function_p,
14966 want_early_inline_function_p, want_inline_small_function_p,
14967 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
14968 edge_badness, update_all_callee_keys, lookup_recursive_calls,
14969 add_new_edges_to_heap, inline_small_functions, flatten_function,
14970 inline_always_inline_functions, early_inline_small_functions): Use
14971 cgraph_function_or_thunk_node.
14972 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
14973 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
14974 (do_estimate_edge_growth_1): Break out from ...
14975 (do_estimate_growth) ... here; walk aliases.
14976 (inline_generate_summary): Skip aliases.
14977
14978 2011-06-10 Richard Guenther <rguenther@suse.de>
14979
14980 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
14981 forward when combining, visit inserted stmts when a stmt was changed.
14982
14983 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
14984
14985 * tree.h (error_operand_p): Add.
14986 * dbxout.c (dbxout_type_fields): Use the latter.
14987 * c-decl.c (add_stmt): Likewise.
14988 * gimplify.c (omp_add_variable, omp_notice_variable,
14989 gimplify_scan_omp_clauses): Likewise.
14990
14991 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
14992
14993 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
14994 when a value is actually passed in regs.
14995
14996 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
14997 Laurent Rougé <laurent.rouge@menta.fr>
14998
14999 * doc/invoke.texi (SPARC options): Add -mflat.
15000 * config/sparc/sparc.opt: Likewise.
15001 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
15002 (sparc_flat_expand_prologue): Declare.
15003 (sparc_flat_expand_epilogue): Likewise.
15004 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
15005 (CPP_ENDIAN_SPEC): Replace with...
15006 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
15007 (CPP_SPEC): Adjust to above change.
15008 (EXTRA_SPECS): Likewise.
15009 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
15010 (INCOMING_REGNO): Likewise.
15011 (OUTGOING_REGNO): Likewise.
15012 (LOCAL_REGNO): Likewise.
15013 (SETUP_FRAME_ADDRESSES): Likewise.
15014 (FIXED_REGISTERS): Set 0 for %fp.
15015 (CALL_USED_REGISTERS): Likewise.
15016 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
15017 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
15018 (RETURN_ADDR_REGNUM): Define.
15019 (RETURN_ADDR_RTX): Use it.
15020 (INCOMING_RETURN_ADDR_REGNUM): Define.
15021 (INCOMING_RETURN_ADDR_RTX): Use it.
15022 (DWARF_FRAME_RETURN_COLUMN): Likewise.
15023 (EH_RETURN_REGNUM): Define.
15024 (EH_RETURN_STACKADJ_RTX): Use it.
15025 (EH_RETURN_HANDLER_RTX): Delete.
15026 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
15027 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
15028 Delete.
15029 (struct machine_function): Add frame_size, apparent_frame_size,
15030 frame_base_reg, frame_base_offset, n_global_fp_regs and
15031 save_local_in_regs_p fields.
15032 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
15033 sparc_frame_base_offset, sparc_n_global_fp_regs,
15034 sparc_save_local_in_regs_p): New macros.
15035 (sparc_option_override): Error out if -fcall-saved-REG is specified
15036 for Out registers.
15037 (eligible_for_restore_insn): Fix formatting.
15038 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
15039 (eligible_for_sibcall_delay): Likewise.
15040 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
15041 (sparc_legitimate_address_p): Adjust to above change.
15042 (save_global_or_fp_reg_p): New predicate.
15043 (return_addr_reg_needed_p): Likewise.
15044 (save_local_or_in_reg_p): Likewise.
15045 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
15046 (SORR_SAVE, SORR_RESTORE): Delete.
15047 (sorr_pred_t): New typedef.
15048 (sorr_act_t): New enum.
15049 (save_or_restore_regs): Rename to...
15050 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
15051 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
15052 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
15053 mechanism. Add CFI information for double-word saves in 32-bit mode.
15054 (emit_adjust_base_to_offset): New function extracted from...
15055 (emit_save_or_restore_regs): ...this. Rename the rest to...
15056 (emit_save_or_restore_regs_global_fp_regs): ...this.
15057 (emit_save_or_restore_regs_local_in_regs): New function.
15058 (gen_create_flat_frame_[123]): New functions.
15059 (sparc_expand_prologue): Use SIZE local variable. Adjust.
15060 (sparc_flat_expand_prologue): New function.
15061 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
15062 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
15063 (sparc_flat_expand_epilogue): New function.
15064 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
15065 (output_return): Likewise.
15066 (output_sibcall): Likewise.
15067 (sparc_output_mi_thunk): Likewise.
15068 (sparc_frame_pointer_required): Likewise.
15069 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
15070 function optimization.
15071 * config/sparc/sparc.md (flat): New attribute.
15072 (prologue): Add TARGET_FLAT handling.
15073 (save_register_window): Disable if TARGET_FLAT.
15074 (create_flat_frame_[123]): New patterns.
15075 (epilogue): Add TARGET_FLAT handling.
15076 (sibcall_epilogue): Likewise.
15077 (eh_return): New expander.
15078 (eh_return_internal): New insn and splitter.
15079 (return_internal): Add TARGET_FLAT handling.
15080 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
15081 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
15082 (nonlocal_goto): Add TARGET_FLAT handling.
15083 * config/sparc/t-elf: Add -mflat multilib.
15084 * config/sparc/t-leon: Likewise.
15085
15086 2011-06-10 Jan Hubicka <jh@suse.cz>
15087
15088 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
15089 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
15090 (self_recursive_p): Use cgraph_function_node.
15091 (propagate_pure_const): Likewise.
15092 (propagate_nothrow): Likewise.
15093 * ipa-reference.c (ipa_reference_get_not_read_global): Use
15094 cgraph_function_node.
15095 (propagate_bits): Likewise.
15096 (propagate): Likewise.
15097
15098 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15099 Richard Earnshaw <rearnsha@arm.com>
15100
15101 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
15102 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
15103 (*thumb2_movdi_vfp): Delete.
15104 (*arm_movdi_vfp_cortexa8): Delete.
15105 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
15106 (*movdi_vfp_cortexa8): Likewise.
15107
15108 2011-06-10 Richard Guenther <rguenther@suse.de>
15109
15110 * stor-layout.c (initialize_sizetypes): Give names to all
15111 sizetype kinds.
15112
15113 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
15114
15115 PR tree-optimization/49318
15116 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
15117 irrelevant pattern statements.
15118
15119 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
15120
15121 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
15122
15123 PR bootstrap/49354
15124 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
15125 to last assignment.
15126
15127 2011-06-09 Jan Hubicka <jh@suse.cz>
15128
15129 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
15130 do not recompute reachable flag.
15131 (cgraph_finalize_function, cgraph_analyze_functions): Set
15132 redefined_extern_inline here.
15133
15134 2011-06-09 Jan Hubicka <jh@suse.cz>
15135
15136 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
15137 (cgraph_only_called_directly_p): ... this one; bring offline.
15138 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
15139 varpool_used_from_object_file_p): Drop names from the declaratoin.
15140 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
15141 collect_callers_of_node): New.
15142 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
15143 (cgraph_edge_recursive_p): Use cgraph_function_node.
15144 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
15145 (cgraph_node_cannot_be_local_p_1): Break out from ...
15146 (cgraph_node_can_be_local_p): ... here; walk aliases.
15147 (cgraph_for_node_thunks_and_aliases): New function.
15148 (cgraph_for_node_and_aliases): New function.
15149 (cgraph_make_node_local_1): Break out from ...
15150 (cgraph_make_node_local) ... here; use
15151 cgraph_for_node_thunks_and_aliases.
15152 (cgraph_set_nothrow_flag_1): Break out from ...
15153 (cgraph_set_nothrow_flag) ... here;
15154 use cgraph_for_node_thunks_and_aliases.
15155 (cgraph_set_const_flag_1): Break out from ...
15156 (cgraph_set_const_flag) ... here;
15157 use cgraph_for_node_thunks_and_aliases.
15158 (cgraph_set_pure_flag_1): Break out from ...
15159 (cgraph_set_pure_flag) ... here;
15160 use cgraph_for_node_thunks_and_aliases.
15161 (cgraph_propagate_frequency_1): Break out from ...
15162 (cgraph_propagate_frequency) ... here; use
15163 cgraph_for_node_thunks_and_aliases.
15164 (cgraph_used_from_object_file_p): Do not care about aliases.
15165 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
15166 New functions.
15167 (collect_callers_of_node_1, collect_callers_of_node): New functions.
15168
15169 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
15170
15171 PR rtl-optimization/49154
15172 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
15173 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
15174 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
15175 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
15176 * config/cris/cris.h (cris_register_move_cost): Remove
15177 !TARGET_V32 code. Tweak comments.
15178
15179 2011-06-09 Jan Hubicka <jh@suse.cz>
15180
15181 * cgraphbuild.c (record_eh_tables): Mark personality function as having
15182 address taken.
15183
15184 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
15185
15186 PR rtl-optimization/49154
15187 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
15188 is a matching slot in the hashtable, assign it to classes_ptr.
15189
15190 PR rtl-optimization/49154
15191 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
15192 register classes.
15193 * doc/tm.texi: Regenerate.
15194
15195 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
15196
15197 PR target/49307
15198 * config/sh/sh.md (UNSPEC_CHKADD): New.
15199 (chk_guard_add): New define_insn_and_split.
15200 (symGOT_load): Use chk_guard_add instead of blockage.
15201
15202 2011-06-09 Kai Tietz <ktietz@redhat.com>
15203
15204 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
15205
15206 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
15207
15208 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
15209
15210 2011-06-09 Wei Guozhi <carrot@google.com>
15211
15212 PR target/46975
15213 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
15214 (peephole2 for conditional move): Generate 16 bit instructions.
15215
15216 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
15217
15218 * config/i386/i386.md (*movdi_internal_rex64): Merge
15219 alternatives 6 and 8.
15220
15221 2011-06-09 David Li <davidxl@google.com>
15222
15223 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
15224 * passes.c (passr_eq): New function.
15225 (create_pass_tab): New function.
15226 (pass_traverse): New function.
15227 (dump_one_pass): New function.
15228 (dump_pass_list): New function.
15229 (dump_passes): New function.
15230
15231 2011-06-09 David Li <davidxl@google.com>
15232
15233 * tree-complex.c (tree_lower_complex): Gate cleanup.
15234 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
15235 (execute_optimize_stdarg): Ditto.
15236 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
15237 (execute_cleanup_eh_1): Ditto.
15238 (execute_cleanup_eh): Ditto.
15239 * gcse.c (gate_rtl_pre): Ditto.
15240 (execute_rtl_pre): Ditto.
15241 * except.c (finish_eh_generation): Ditto.
15242 (convert_to_eh_region_ranges): Ditto.
15243 * cprop.c (one_cprop_pass): Ditto.
15244
15245 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
15246
15247 PR target/48673
15248 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
15249 in all basic blocks.
15250
15251 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15252
15253 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
15254 (HAVE_ENABLE_EXECUTE_STACK): Define.
15255 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
15256 (HAVE_ENABLE_EXECUTE_STACK): Define.
15257 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
15258 (HAVE_ENABLE_EXECUTE_STACK): Define.
15259 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
15260 (ENABLE_EXECUTE_STACK): Remove.
15261 (HAVE_ENABLE_EXECUTE_STACK): Define.
15262 [IN_LIBGCC2]: Don't include <windows.h>.
15263 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
15264 (HAVE_ENABLE_EXECUTE_STACK): Define.
15265 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
15266 (HAVE_ENABLE_EXECUTE_STACK): Define.
15267 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
15268 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
15269 (HAVE_ENABLE_EXECUTE_STACK): Define.
15270 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
15271 (HAVE_ENABLE_EXECUTE_STACK): Define.
15272 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
15273 (HAVE_ENABLE_EXECUTE_STACK): Define.
15274 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
15275 (HAVE_ENABLE_EXECUTE_STACK): Define.
15276 * config/alpha/alpha.c (alpha_trampoline_init): Test
15277 HAVE_ENABLE_EXECUTE_STACK.
15278 * config/i386/i386.c (ix86_trampoline_init): Likewise.
15279 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
15280 (sparc64_initialize_trampoline): Likewise.
15281 * libgcc2.c [L_enable_execute_stack]: Remove.
15282 * system.h (ENABLE_EXECUTE_STACK): Poison.
15283 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
15284 * doc/tm.texi: Regenerate.
15285 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
15286
15287 2011-06-09 Jakub Jelinek <jakub@redhat.com>
15288
15289 PR middle-end/49308
15290 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
15291 variable. After resetting and rescanning insn continue with previous
15292 statement.
15293
15294 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15295
15296 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
15297 (gcc_cv_ld_hidden): Likewise.
15298 * configure: Regenerate.
15299 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
15300 (ix86_stack_protect_fail): Mark unused.
15301 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
15302 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
15303 [TARGET_MACHO]: Don't define.
15304 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
15305 (TARGET_STACK_PROTECT_FAIL): Likewise.
15306 (rs6000_stack_protect_fail): Mark unused.
15307 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
15308 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
15309
15310 2011-06-08 Andi Kleen <ak@linux.intel.com>
15311
15312 * varasm.c (get_section): Print location of other conflict
15313 for section conflicts.
15314
15315 2011-06-08 Andi Kleen <ak@linux.intel.com>
15316
15317 * config/i386/driver-i386.c (host_detect_local_cpu):
15318 Add model 0x2d Intel CPU.
15319
15320 2011-06-08 Andi Kleen <ak@linux.intel.com>
15321
15322 * reginfo.c (global_regs_decl): Add.
15323 (globalize_reg): Add decl parameter. Compute location. Pass location
15324 to warnings and add inform. Store decl in global_regs_decl.
15325 * rtl.h (globalize_reg): Update prototype.
15326 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
15327
15328 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
15329
15330 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
15331
15332 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
15333
15334 PR target/49305
15335 * config/sh/predicates.md (general_movsrc_operand): Check
15336 mode for memory with indexed address for QI and HImode.
15337 (general_movdst_operand): Likewise.
15338
15339 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
15340
15341 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
15342
15343 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
15344
15345 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
15346 (num_ssa_operands): Likewise.
15347 (op_iter_init_phiuse): Forward-declare.
15348 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
15349
15350 2011-06-08 Nick Clifton <nickc@redhat.com>
15351
15352 * doc/invoke.texi (ARM Options): Update description of
15353 -mthumb-interwork.
15354
15355 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
15356
15357 * config/i386/driver-i386.c (host_detect_local_cpu): Support
15358 unknown Intel family 0x6 CPUs.
15359
15360 2011-06-08 Martin Jambor <mjambor@suse.cz>
15361
15362 * tree-sra.c (mark_rw_status): Removed.
15363 (analyze_access_subtree): New parameter parent instead of
15364 mark_read and mark_write, propagate from that.
15365
15366 2011-06-08 Julian Brown <julian@codesourcery.com>
15367
15368 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
15369 for double-precision helper functions in hard-float mode if only
15370 single-precision arithmetic is supported in hardware.
15371
15372 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
15373
15374 PR rtl-optimization/49303
15375 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
15376 code_motion_path_driver returned 0 or 1.
15377 (sel_region_finish): Clear h_d_i_d.
15378
15379 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
15380
15381 * config/sh/sh.c (prepare_move_operands): Set pic register
15382 appropriately for global and local dynamic tls models even
15383 if flag_pic is unset.
15384
15385 2011-06-07 Jason Merrill <jason@redhat.com>
15386
15387 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
15388
15389 2011-06-07 Xinliang David Li <davidxl@google.com>
15390 * passes.c (enable_disable_pass): Handle assembler name.
15391 (is_pass_explicitly_enabled_or_disabled): Ditto.
15392
15393 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15394
15395 PR tree-optimization/48497
15396 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
15397
15398 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15399
15400 PR tree-optimization/46728
15401 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
15402 to use gimple_val_nonnegative_real_p.
15403 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
15404 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
15405
15406 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
15407
15408 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
15409
15410 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
15411
15412 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
15413 constant vectors.
15414
15415 2011-06-07 Richard Guenther <rguenther@suse.de>
15416
15417 * stor-layout.c (initialize_sizetypes): Initialize all
15418 sizetypes based on target definitions.
15419 (set_sizetype): Remove.
15420 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
15421 * tree.h (set_sizetype): Remove.
15422
15423 2011-06-07 Nick Clifton <nickc@redhat.com>
15424
15425 * config.gcc: Unify V850 architecture options and add support for
15426 newer V850 architectures.
15427 * config/v850/t-v850e: Delete.
15428
15429 2011-06-07 Richard Guenther <rguenther@suse.de>
15430
15431 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
15432 Call set_sizetype from here.
15433
15434 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
15435
15436 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
15437 (*maddhisi4tb, *maddhisi4tt): New define_insns.
15438
15439 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
15440 Andrew Stubbs <ams@codesourcery.com>
15441
15442 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
15443 multiplies.
15444 * doc/md.texi (Canonicalization of Instructions): Document widening
15445 multiply canonicalization.
15446
15447 2011-06-07 Jakub Jelinek <jakub@redhat.com>
15448
15449 PR gcov-profile/49299
15450 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
15451
15452 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
15453
15454 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
15455 a pointer.
15456 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
15457 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
15458 vect_recog_pow_pattern): Likewise.
15459 (vect_pattern_recog_1): Remove declaration.
15460 (widened_name_p): Remove declaration. Add new argument to specify
15461 whether to check that both types are either signed or unsigned.
15462 (vect_recog_widen_mult_pattern): Update documentation. Handle
15463 unsigned patterns and multiplication by constants.
15464 (vect_pattern_recog_1): Update vect_recog_func references. Use
15465 statement information from the statement returned from pattern
15466 detection functions.
15467 (vect_pattern_recog): Update vect_recog_func reference.
15468 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
15469 multiplication by a constant use the type of the other operand.
15470
15471 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
15472
15473 PR rtl-optimization/49145
15474 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
15475
15476 2011-06-06 Jakub Jelinek <jakub@redhat.com>
15477
15478 PR debug/49262
15479 * dwarf2out.c (native_encode_initializer): Decrement count in each
15480 iteration.
15481
15482 PR debug/49294
15483 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
15484 non-MODE_INT modes.
15485
15486 PR c++/49264
15487 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
15488 if stmt folded into nothing.
15489 * tree-inline.c (fold_marked_statements): If a builtin at the end of
15490 a bb folded into nothing, just update cgraph edges and move to next bb.
15491 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
15492 to be NULL. Don't compute count and frequency if new_call is NULL.
15493
15494 2011-06-04 Diego Novillo <dnovillo@google.com>
15495
15496 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
15497 (cgraph.o): Likewise.
15498 (cgraphunit.o): Likewise.
15499 * cgraphunit.c: Include lto-streamer.h
15500 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
15501 if LTO is enabled.
15502 * lto-streamer-in.c (unpack_value_fields): Call
15503 streamer_hooks.unpack_value_fields if set.
15504 (lto_materialize_tree): For unhandled nodes, first try to
15505 call lto_streamer_hooks.alloc_tree, if it exists.
15506 (lto_input_ts_decl_common_tree_pointers): Move reading of
15507 DECL_INITIAL to lto_streamer_read_tree.
15508 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
15509 (lto_streamer_read_tree): New.
15510 (lto_reader_init): Rename from lto_init_reader.
15511 Move initialization code to lto/lto.c.
15512 * lto-streamer-out.c (pack_value_fields): Call
15513 streamer_hooks.pack_value_fields if set.
15514 (lto_output_tree_ref): For tree nodes that are not normally indexable,
15515 call streamer_hooks.indexable_with_decls_p before giving up.
15516 (lto_output_ts_decl_common_tree_pointers): Move handling
15517 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
15518 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
15519 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
15520 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
15521 (lto_streamer_write_tree): New.
15522 (lto_output): Call lto_streamer_init directly.
15523 (lto_writer_init): Remove.
15524 * lto-streamer.c (streamer_hooks): New.
15525 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
15526 instead of lto_preload_common_nodes.
15527 (lto_is_streamable): Move from lto-streamer.h
15528 (lto_streamer_hooks_init): New.
15529 (streamer_hooks): New.
15530 (streamer_hooks_init): New.
15531 * lto-streamer.h (struct output_block): Forward declare.
15532 (struct lto_input_block): Likewise.
15533 (struct data_in): Likewise.
15534 (struct bitpack_d): Likewise.
15535 (struct streamer_hooks): Declare.
15536 (streamer_hooks): Declare.
15537 (lto_streamer_hooks_init): Declare.
15538 (lto_streamer_write_tree): Declare.
15539 (lto_streamer_read_tree): Declare.
15540 (streamer_hooks_init): Declare.
15541 (lto_is_streamable): Move to lto-streamer.c
15542
15543 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15544
15545 * longlong.h (smul_ppmm): The resulting register pair contains the
15546 higher order word first.
15547
15548 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15549
15550 PR tree-optimization/46728
15551 * builtins.c (powi_table): Remove.
15552 (powi_lookup_cost): Remove.
15553 (powi_cost): Remove.
15554 (expand_powi_1): Remove.
15555 (expand_powi): Remove.
15556 (expand_builtin_pow_root): Remove.
15557 (expand_builtin_pow): Remove.
15558 (expand_builtin_powi): Eliminate handling of constant exponent.
15559 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
15560
15561 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
15562
15563 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
15564
15565 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
15566
15567 * dce.c (reset_unmarked_insns_debug_uses): New.
15568 (delete_unmarked_insns): Skip debug insns.
15569 (prescan_insns_for_dce): Likewise.
15570 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
15571 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
15572 active reg can be found.
15573 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
15574 (convert_regs_1): Use it.
15575
15576 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
15577
15578 * tree-pretty-print.c (dump_function_header): Add flags.
15579 Don't dump decl_uid with nouid.
15580 * tree-pretty-print.h (dump_function_header): Adjust.
15581 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
15582 * passes.c (pass_init_dump_file): Pass dump_flags on.
15583 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
15584
15585 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
15586
15587 PR bootstrap/49270
15588 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
15589
15590 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
15591
15592 PR tree-optimization/49243
15593 * calls.c (setjmp_call_p): Also check if fndecl has the
15594 returns_twice attribute.
15595
15596 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15597
15598 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
15599 -ffast-math etc.
15600
15601 2011-06-06 Richard Henderson <rth@redhat.com>
15602 Georg-Johann Lay <avr@gjlay.de>
15603
15604 PR target/42210
15605 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
15606 New predicates.
15607 * config/avr/avr.md ("insv"): New insn expander.
15608 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
15609 "*insv.not.io", "*insv.reg"): New insns.
15610
15611 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
15612
15613 PR target/49285
15614 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
15615 to nonimmediate_operand from memory_operand for the operand that is to
15616 be forced to memory by the expander. Lose the constraints.
15617
15618 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
15619
15620 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
15621 EH return when delayed branches are disabled.
15622
15623 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
15624
15625 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
15626 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
15627 calculation.
15628 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
15629 Simplify MODE_V1DF and MODE_V2SF handling.
15630 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
15631 Simplify MODE_SF handling.
15632
15633 2011-06-04 Jan Hubicka <jh@suse.cz>
15634
15635 PR tree-optimization/48893
15636 PR tree-optimization/49091
15637 PR tree-optimization/49179
15638 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
15639 Bounds check.
15640
15641 2011-06-04 Jan Hubicka <jh@suse.cz>
15642
15643 PR lto/48954
15644 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
15645 bitmaps.
15646
15647 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
15648
15649 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
15650
15651 2011-06-04 Jakub Jelinek <jakub@redhat.com>
15652
15653 PR target/49281
15654 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
15655 to be strictly smaller than 1 << shiftcount.
15656
15657 2011-06-04 Jan Hubicka <jh@suse.cz>
15658
15659 PR tree-optimize/48929
15660 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
15661 of empty predicate.
15662
15663 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
15664
15665 PR debug/48333
15666 * calls.c (emit_call_1): Prefer the __builtin declaration of
15667 builtin functions.
15668
15669 2011-06-03 Diego Novillo <dnovillo@google.com>
15670
15671 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
15672 (lto_input_tree_pointers): Likewise.
15673 * lto-streamer-out.c (pack_value_fields): Likewise.
15674 (lto_output_tree_pointers): Likewise.
15675 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
15676 and OPTIMIZATION_NODE.
15677
15678 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15679
15680 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
15681 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
15682 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
15683 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
15684 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
15685 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
15686 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
15687 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
15688 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
15689 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
15690 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
15691 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
15692 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
15693 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
15694 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
15695 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
15696 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
15697 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
15698 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
15699 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
15700 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
15701 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
15702 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
15703 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
15704 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
15705 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
15706 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
15707 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
15708 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
15709 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
15710 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
15711 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
15712 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
15713 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
15714 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
15715 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
15716 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
15717 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
15718 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
15719 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
15720 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
15721 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
15722 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
15723 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
15724 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
15725 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
15726 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
15727 * system.h (MD_UNWIND_SUPPORT): Poison.
15728 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
15729 * doc/tm.texi: Regenerate.
15730 * unwind-dw2.c: Include md-unwind-support.h instead of
15731 MD_UNWIND_SUPPORT.
15732 * config/ia64/unwind-ia64.c: Likewise.
15733 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
15734
15735 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
15736
15737 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
15738
15739 2011-06-03 Richard Henderson <rth@redhat.com>
15740 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15741
15742 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
15743 (sigill_hdlr): Correct insn, insn size.
15744 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
15745
15746 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15747
15748 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
15749 t-slibgcc-dummy.
15750 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
15751 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
15752 * config/mips/t-iris: Remove.
15753 * config/mips/t-irix6: New file.
15754 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
15755
15756 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15757
15758 * Makefile.in (LIB2ADDEHDEP): Remove.
15759 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
15760 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
15761 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
15762 * config/t-darwin (LIB2ADDEHDEP): Remove.
15763 * config/t-freebsd (LIB2ADDEHDEP): Remove.
15764 * config/t-linux (LIB2ADDEHDEP): Remove.
15765
15766 2011-06-03 Diego Novillo <dnovillo@google.com>
15767
15768 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
15769 (lto_register_var_decl_in_symtab): Likewise.
15770 (lto_register_function_decl_in_symtab): Likewise.
15771 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
15772 logic to uniquify_nodes.
15773
15774 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15775
15776 * config/alpha/t-osf5: Remove.
15777 * config/alpha/t-osf-pthread: Remove.
15778 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
15779 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
15780
15781 2011-06-03 Julian Brown <julian@codesourcery.com>
15782
15783 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
15784 (strongarm1110): Use strongarm tuning.
15785 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
15786 * config/arm/arm.c (arm_strongarm_tune): New.
15787 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
15788 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
15789 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
15790 setting, using previous defaults or 1 for Cortex-A5.
15791 (arm_option_override): Set max_insns_skipped from current tuning.
15792
15793 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
15794
15795 * doc/install.texi (Options specification): Document --with-specs.
15796
15797 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15798
15799 * config/arm/neon.md (orndi3_neon): Actually split it.
15800
15801 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
15802
15803 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
15804 * var-tracking.c (reverse_op): Limite recurse depth to 5.
15805
15806 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
15807
15808 PR debug/47590
15809 * target.def (delay_sched2, delay_vartrack): New.
15810 * doc/tm.texi.in: Update.
15811 * doc/tm.texi: Rebuild.
15812 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
15813 * var-tracking.c (gate_handle_var_tracking): Likewise.
15814 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
15815 (bfin_flag_var_tracking): Drop.
15816 (output_file_start): Don't save and override flag_var_tracking.
15817 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
15818 (bfin_reorg): Test original variables.
15819 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
15820 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
15821 (ia64_flag_var_tracking): Drop.
15822 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
15823 (ia64_file_start): Don't save and override flag_var_tracking.
15824 (ia64_override_options_after_change): Ditto
15825 flag_schedule_insns_after_reload.
15826 (ia64_reorg): Test original variables.
15827 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
15828 (picochip_flag_var_tracking): Drop.
15829 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
15830 (picochip_option_override): Don't save and override
15831 flag_schedule_insns_after_reload.
15832 (picochip_asm_file_start): Ditto flag_var_tracking.
15833 (picochip_reorg): Test original variables.
15834 * config/spu/spu.c (spu_flag_var_tracking): Drop.
15835 (TARGET_DELAY_VARTRACK): Define.
15836 (spu_var_tracking): New.
15837 (spu_machine_dependent_reorg): Call it.
15838 (asm_file_start): Don't save and override flag_var_tracking.
15839
15840 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
15841
15842 PR target/49163
15843 * config/sh/predicates.md (general_movsrc_operand): Return 0
15844 for memory and memory subreg of which address is an invalid
15845 indexed address for QI and HImode.
15846 (general_movdst_operand): Likewise.
15847
15848 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
15849
15850 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
15851 edges only, when there is a non-local label in the function.
15852 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
15853
15854 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
15855
15856 * config/i386/constraints.md (Y3): New register constraint.
15857 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
15858 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
15859 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
15860 *sse2_interleave_lowv2df.
15861
15862 2011-06-02 Julian Brown <julian@codesourcery.com>
15863
15864 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
15865 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
15866 (arm_cortex_a5_tune): New.
15867
15868 2011-06-02 Julian Brown <julian@codesourcery.com>
15869
15870 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
15871 * config/arm/arm.c (arm_default_branch_cost): New.
15872 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
15873 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
15874 (arm_fa726_tune): Set branch_cost field using
15875 arm_default_branch_cost.
15876 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
15877 current_tune structure.
15878 * dojump.c (tm_p.h): Include file.
15879
15880 2011-06-02 Julian Brown <julian@codesourcery.com>
15881
15882 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
15883 tuning.
15884 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
15885 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
15886 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
15887 field.
15888 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
15889 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
15890 (arm_fa726te_tune): Add prefer_constant_pool setting.
15891 (arm_v6t2_tune, arm_cortex_tune): New.
15892 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
15893 prefer_constant_pool setting.
15894
15895 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
15896
15897 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
15898 switch statement.
15899 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
15900 (*movdf_internal) <case 6,7,8>: Ditto.
15901
15902 * config/i386/constraints.md (Y4): New register constraint.
15903 * config/i386/sse.md (vec_set<mode>_0): Merge with
15904 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
15905 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
15906 *vec_extractv2di_1_sse.
15907 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
15908 and *vec_concatv2di_rex64_sse.
15909
15910 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
15911
15912 PR target/48807
15913 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
15914 of cgraph_local_info for null before attempting to use it.
15915
15916 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
15917
15918 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
15919 (current_function_dynamic_alloc_count): Delete.
15920 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
15921 (expand_builtin_nonlocal_goto): Remove obsolete comment.
15922 (expand_builtin_update_setjmp_buf): Remove dead code.
15923 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
15924 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
15925 support.
15926 * function.c (instantiate_virtual_regs): Likewise.
15927 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
15928 for a block with a single abnormal incoming edge.
15929 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
15930 (SETJMP_VIA_SAVE_AREA): Delete.
15931 * config/sparc/sparc-protos.h (load_got_register): Declare.
15932 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
15933 (load_got_register): Make global.
15934 (sparc_frame_pointer_required): Add 'static'.
15935 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
15936 (sparc_builtin_setjmp_frame_value): New function.
15937 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
15938 (save_stack_nonlocal): New expander.
15939 (restore_stack_nonlocal): Likewise.
15940 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
15941 (nonlocal_goto_internal): New insn.
15942 (goto_handler_and_restore): Delete.
15943 (builtin_setjmp_setup): Likewise.
15944 (do_builtin_setjmp_setup): Likewise.
15945 (setjmp): Likewise.
15946 (builtin_setjmp_receiver): New expander.
15947
15948 2011-06-01 David Li <davidxl@google.com>
15949
15950 PR middle-end/49261
15951 * tree-pretty-print.c (dump_function_header): Format cleanup.
15952
15953 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
15954
15955 PR target/49238
15956 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
15957 needed when original operands are used for msw_skip comparison.
15958
15959 2011-06-01 Jakub Jelinek <jakub@redhat.com>
15960
15961 PR debug/49250
15962 * var-tracking.c (add_uses, add_stores): Don't call
15963 cselib_subst_to_values on ENTRY_VALUE.
15964
15965 2011-06-01 Diego Novillo <dnovillo@google.com>
15966
15967 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
15968 output_record_start with LTO_null instead of output_zero.
15969 (lto_output_ts_binfo_tree_pointers): Likewise.
15970 (lto_output_tree): Likewise.
15971 (output_eh_try_list): Likewise.
15972 (output_eh_region): Likewise.
15973 (output_eh_lp): Likewise.
15974 (output_eh_regions): Likewise.
15975 (output_bb): Likewise.
15976 (output_function): Likewise.
15977 (output_unreferenced_globals): Likewise.
15978 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
15979 instead of NUM_TREE_CODES.
15980 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
15981 (lto_output_int_in_range): Change << to >> when shifting VAL.
15982
15983 2011-06-01 Diego Novillo <dnovillo@google.com>
15984
15985 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
15986 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
15987
15988 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
15989
15990 PR target/45074
15991 * optabs.h (valid_multiword_target_p): Declare.
15992 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
15993 doing multi-word operations.
15994 * optabs.c (expand_binop): Likewise.
15995 (expand_doubleword_bswap): Likewise.
15996 (expand_absneg_bit): Likewise.
15997 (expand_unop): Likewise.
15998 (expand_copysign_bit): Likewise.
15999 (multiword_target_p): New function.
16000
16001 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
16002
16003 PR rtl-optimization/48830
16004 PR rtl-optimization/48808
16005 PR rtl-optimization/48792
16006 * reload.c (push_reload): Check contains_reg_of_mode.
16007 * reload1.c (strip_paradoxical_subreg): New function.
16008 (gen_reload_chain_without_interm_reg_p): Use it to handle
16009 paradoxical subregs.
16010 (emit_output_reload_insns, gen_reload): Likewise.
16011
16012 2011-06-01 David Li <davidxl@google.com>
16013
16014 * predict.c : Change pass name
16015 * ipa.c: Ditto.
16016 * dce.c: Ditto.
16017 * tree-profile.c: Ditto.
16018 * except.c: Ditto.
16019
16020 2011-06-01 David Li <davidxl@google.com>
16021
16022 * tree-pretty-print.c (dump_function_header): New function.
16023 * final.c (rest_of_clean_state): Use header dumper.
16024 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
16025 * passes.c (pass_init_dump_file): Use header dumper.
16026
16027 2011-06-01 Jakub Jelinek <jakub@redhat.com>
16028
16029 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
16030 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
16031 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
16032 New functions.
16033 (mem_loc_descriptor): Use them.
16034
16035 * var-tracking.c (create_entry_value): New function.
16036 (vt_add_function_parameter): Use it.
16037
16038 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16039
16040 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
16041 Include <signal.h>, <ucontext.h>.
16042 (sigill_caught): Define.
16043 (sigill_hdlr): New function.
16044 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
16045 insns can be executed.
16046 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
16047 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
16048
16049 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16050
16051 * config/t-slibgcc-darwin: Move to ...
16052 * config/t-slibgcc-dummy: ... this. Clarify comments.
16053 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
16054 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
16055 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
16056 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
16057 Remove i386/t-crtstuff from tmake_file.
16058 (i[34567]86-*-solaris2*): Remove t-svr4,
16059 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
16060 t-slibgcc-dummy.
16061 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
16062 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
16063 sparc/t-crtfm from tmake_file.
16064 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
16065 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
16066 Remove extra_parts.
16067 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
16068 * config/i386/t-nwld (SHLIB_LINK): Remove.
16069 * config/i386/t-rtems-i386: Rename to ...
16070 * config/i386/t-rtems: ... this.
16071 ($(T)crti.o, $(T)crtn.o): Remove.
16072 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
16073 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
16074 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
16075 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
16076 EXTRA_MULTILIB_PARTS): Remove.
16077 * config/sparc/t-sol2-64: Likewise.
16078 * config/sparc/t-sol2: Remove.
16079 * config/sparc/t-crtin: Remove.
16080 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
16081 * config/i386/gmon-sol2.c: Remove.
16082 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
16083 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
16084 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
16085 * config/i386/sol2-gc1.asm: Remove.
16086 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
16087 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
16088 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
16089 * config/t-slibgcc-sld: Remove.
16090
16091 2011-06-01 Jakub Jelinek <jakub@redhat.com>
16092
16093 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
16094 base_type_for_mode with op_mode instead of mode.
16095
16096 2011-06-01 Paul Brook <paul@cpodesourcery.com>
16097
16098 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
16099 Cortex-A15.
16100 * config/arm/arm-tune.md: Regenerate.
16101 * config/arm/arm-tables.opt: Regenerate.
16102 * config/arm/arm.c (FL_DIV): Rename...
16103 (FL_THUMB_DIV): ... to this.
16104 (FL_ARM_DIV): Define.
16105 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
16106 (arm_arch_hwdiv): Remove.
16107 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
16108 (arm_issue_rate): Add cortexr5.
16109 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
16110 __ARM_ARCH_EXT_IDIV__.
16111 (TARGET_IDIV): Define.
16112 (arm_arch_hwdiv): Remove.
16113 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
16114 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
16115 (divsi3, udivsi3): New patterns.
16116 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
16117 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
16118
16119 2011-06-01 Martin Jambor <mjambor@suse.cz>
16120
16121 * ipa-utils.c (ipa_dfs_info): New field scc_no.
16122 * ipa-utils.c (searchc): Set scc_no.
16123
16124 2011-06-01 Martin Jambor <mjambor@suse.cz>
16125
16126 * ipa-utils.c (searchc_env): New field allow_overwritable.
16127 (searchc): do not ignore edges to overwritable nodes if indicated
16128 by env->allow_overwritable.
16129 (ipa_reduced_postorder): Set env.allow_overwritable.
16130
16131 2011-06-01 Richard Guenther <rguenther@suse.de>
16132
16133 * tree.c (free_lang_data): Do not reset boolean_type_node nor
16134 char_type_node.
16135 * lto-streamer.c (lto_record_common_node): Take node pointer,
16136 do not register types.
16137 (lto_preload_common_nodes): Explicitly skip preloading nodes
16138 that differ between frontends.
16139
16140 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
16141
16142 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
16143 NON_FLOAT_REGS.
16144
16145 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
16146
16147 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
16148 parameter value for dump. Dump cost on outermost call only.
16149 (rs6000_memory_move_cost): Dump cost on outermost call only.
16150
16151 2011-05-31 Jakub Jelinek <jakub@redhat.com>
16152
16153 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
16154 DW_OP_GNU_convert ops.
16155
16156 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
16157 cselib_preserve_constants.
16158 (cselib_lookup_1): If cselib_preserve_constants,
16159 a new VALUE is being created for REG and there is a VALUE for the
16160 same register in wider mode, add another loc with lowpart SUBREG of
16161 the wider VALUE.
16162 (cselib_subst_to_values): Handle ENTRY_VALUE.
16163 * var-tracking.c (replace_expr_with_values): Return NULL for
16164 ENTRY_VALUE too.
16165 * dwarf2out.c (convert_descriptor_to_signed): New function.
16166 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
16167 instead of two shifts.
16168 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
16169 the right mode if needed.
16170 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
16171 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
16172 convert_descriptor_to_signed.
16173 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
16174 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
16175
16176 PR target/48688
16177 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
16178
16179 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
16180
16181 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
16182 of X87MODEI12 and SWI48x instead of SSEMODEI24.
16183 (SWI248x): New mode iterator, rename from X87MODEI.
16184 (X87MODEI): Remove mode iterator.
16185 (X87MODEI12): Ditto.
16186 (SSEMODEI24): Ditto.
16187
16188 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
16189
16190 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
16191 * doc/invoke.texi: Document max-vartrack-expr-depth.
16192 * var-tracking.c (EXPR_DEPTH): New.
16193 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
16194
16195 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
16196
16197 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
16198 * config/i386/sse.md: Add n to negated FMA pattern names.
16199
16200 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
16201
16202 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
16203
16204 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
16205
16206 * gengtype-state.c (read_state_params_structs): Initialize previous.
16207
16208 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
16209
16210 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
16211 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
16212
16213 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
16214
16215 * config/i386/i386.md (*movtf_internal): Avoid allocating general
16216 registers. Penalize F*r->o alternative to prevent partial memory
16217 stalls. Slightly penalize *roF->*r alternative. Generate SSE
16218 CONST_DOUBLE immediates when optimizing function for size. Do not move
16219 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
16220 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
16221 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
16222 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
16223 alternatives.
16224 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
16225
16226 (fp_register_operand splitters): Use fp_register_operand
16227 constraint. Do not use FP_REG_P in insn condition.
16228 (any_fp_register_operand splitters): Use any_fp_register_operand
16229 constraint. Do not use ANY_FP_REG_P in insn condition.
16230
16231 2011-05-31 Jan Hubicka <jh@suse.cz>
16232
16233 * cgraph.h (cgraph_inline_failed_t): Give enum a name
16234 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
16235 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
16236 (lto_output_edge): Use output_enum and var_len_unsigned.
16237 (lto_output_varpool_node): Likewise.
16238 (input_overwrite_node): Do not take resolution parameter;
16239 extract it from a bitpack.
16240 (input_node): Do not read resolution; use input_enum and
16241 var_len_unsigned.
16242 (input_varpool_node): Likewise.
16243 (input_edge): Likewise.
16244 (input_cgraph_1): Likewise.
16245
16246 2011-05-31 Richard Guenther <rguenther@suse.de>
16247
16248 * gimple.c (gimple_register_canonical_type): Do not register
16249 any types via gimple_register_type.
16250
16251 2011-05-31 Jan Hubicka <jh@suse.cz>
16252
16253 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
16254 of thunks.
16255
16256 2011-05-31 Jakub Jelinek <jakub@redhat.com>
16257
16258 PR rtl-optimization/49235
16259 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
16260 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
16261
16262 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
16263
16264 PR tree-optimization/49093
16265 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
16266 data references.
16267
16268 2011-05-31 Dodji Seketeli <dodji@redhat.com>
16269
16270 PR debug/49047
16271 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
16272 for concrete functions containing the code of cloned functions.
16273
16274 2011-05-31 Richard Guenther <rguenther@suse.de>
16275
16276 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
16277 to ...
16278 (forward_propagate_into_comparison_1): ... this.
16279 (forward_propagate_comparison): Rename to ...
16280 (forward_propagate_into_comparison): ... this. Split out
16281 real forward propagation code to ...
16282 (forward_propagate_comparison): ... this.
16283 (forward_propagate_into_gimple_cond): Remove looping.
16284 (forward_propagate_into_cond): Likewise.
16285 (simplify_not_neg_expr): Return whether we have done something.
16286 (simplify_gimple_switch): Likewise.
16287 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
16288 (ssa_forward_propagate_and_combine): ... this. Re-structure
16289 to do a forward forward-propagation walk on BBs and a backward
16290 stmt combining walk on BBs. Consistently re-scan changed statements.
16291 (pass_forwprop): Adjust.
16292
16293 2011-05-30 Ian Lance Taylor <iant@google.com>
16294
16295 * godump.c (go_format_type): Correct length of name added to
16296 obstack for anonymous field.
16297
16298 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
16299
16300 PR target/49186
16301 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
16302 part of the second operand is 0.
16303
16304 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
16305
16306 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
16307 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
16308 to memory for !TARGET_MEMORY_MISMATCH_STALL.
16309 (*movdf_internal_rex64): Do not penalize F->r alternative.
16310 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
16311 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
16312 when optimizing function for size. Do not move CONST_DOUBLEs
16313 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
16314 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
16315 SUBREGs. Do not check for MEM_P operands in the insn condition,
16316 check for ANY_FP_REGNO_P instead.
16317 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
16318 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
16319 function for speed.
16320 * config/i386/i386.c (ix86_option_override_internal): Do not
16321 set TARGET_INTEGER_DFMODE_MOVES here.
16322
16323 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
16324
16325 PR target/49168
16326 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
16327
16328 2011-05-30 Jakub Jelinek <jakub@redhat.com>
16329
16330 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
16331 DW_TAG_rvalue_reference_type even for
16332 -gdwarf-4 -fno-debug-types-section.
16333
16334 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16335
16336 PR tree-optimization/46728
16337 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
16338 (build_and_insert_binop): New.
16339 (gimple_expand_builtin_pow): Reorder args for
16340 build_and_insert_call; use build_and_insert_binop; add more
16341 optimizations for fractional exponents.
16342
16343 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
16344
16345 PR bootstrap/49190
16346
16347 Revert:
16348 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
16349
16350 * tree.h (struct tree_identifier): Inherit from tree_typed, not
16351 tree_common.
16352 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
16353 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
16354 TS_BASE instead of TS_COMMON.
16355 * varasm.c (assemble_name): Remove assert.
16356
16357 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
16358
16359 * config.gcc: Keep obselete list sorted.
16360
16361 2011-05-30 Jakub Jelinek <jakub@redhat.com>
16362 Eric Botcazou <ebotcazou@adacore.com>
16363
16364 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
16365 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
16366 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
16367 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
16368 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
16369
16370 2011-05-30 Richard Guenther <rguenther@suse.de>
16371
16372 * gimple.c (gimple_types_compatible_p_1): Compare record
16373 and union type members properly.
16374
16375 2011-05-30 Richard Guenther <rguenther@suse.de>
16376
16377 PR tree-optimization/49210
16378 * ipa-split.c (split_function): Care for the case where the call
16379 result is not trivially convertible to the result holding variable.
16380
16381 2011-05-30 Richard Guenther <rguenther@suse.de>
16382
16383 PR tree-optimization/49218
16384 * tree-vrp.c (adjust_range_with_scev): Properly check whether
16385 overflow occured.
16386
16387 2011-05-30 Richard Guenther <rguenther@suse.de>
16388
16389 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
16390 New function split out from ...
16391 (forward_propagate_into_gimple_cond): ... here. Adjust.
16392 (forward_propagate_into_cond): Likewise.
16393 (forward_propagate_comparison): Also propagate into
16394 comparisons on assignment RHS. Change return value to
16395 behave similar to forward_propagate_into_cond.
16396 (tree_ssa_forward_propagate_single_use_vars): Handle
16397 strict-overflow warnings properly for forward_propagate_comparison.
16398
16399 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16400
16401 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
16402 from plugin linker.
16403 * configure: Regenerate.
16404
16405 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
16406
16407 PR tree-optimization/49199
16408 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
16409 non-reduction operands are either defined in the loop or by induction.
16410
16411 2011-05-29 Xinliang David Li <davidxl@google.com>
16412
16413 * opts-global.c (handle_common_deferred_options): Handle new options.
16414 * passes.c (register_one_dump_file): Call register_pass_name.
16415 (execute_one_pass): Check explicit enable/disable flag.
16416 (passr_hash): New function.
16417 (passr_eq): Ditto.
16418 (register_pass_name): Ditto.
16419 (get_pass_by_name): Ditto.
16420 (pass_hash): Ditto.
16421 (pass_eq): Ditto.
16422 (enable_pass): Ditto.
16423 (disable_pass): Ditto.
16424 (is_pass_explicitly_enabled_or_disabled): Ditto.
16425
16426 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
16427
16428 * config/i386/i386.md (*movoi_internal_avx): Use
16429 standard_sse_constant_opcode for alternative 0.
16430 (*movti_internal_sse): Ditto.
16431 (*movti_internal_rex64): Use standard_sse_constant_opcode for
16432 alternative 2.
16433 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
16434 sselog1 type moves.
16435 (*movsi_internal): Ditto.
16436 (*movdi_internal): Ditto. Add ssecvt type moves.
16437
16438 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
16439
16440 PR target/48830
16441 * rtlanal.c (simplify_subreg_regno): Adjust comment.
16442
16443 2011-05-29 Jakub Jelinek <jakub@redhat.com>
16444
16445 PR rtl-optimization/49095
16446 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
16447 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
16448
16449 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
16450
16451 PR target/43995
16452 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
16453 recurse_p argument. Only follow register copies if it is set,
16454 and prevent mips_find_pic_call_symbol from recursing.
16455 (mips_find_pic_call_symbol): Add a recurse_p argument.
16456 Pass it to mips_pic_call_symbol_from_set.
16457 (mips_annotate_pic_calls): Update accordingly.
16458
16459 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
16460
16461 * emit-rtl.c (try_split): Use a loop to search for
16462 NOTE_INSN_CALL_ARG_LOCATIONs.
16463
16464 2011-05-29 Richard Guenther <rguenther@suse.de>
16465
16466 PR tree-optimization/49217
16467 * ipa-pure-const.c (propagate_pure_const): Fix typos.
16468
16469 2011-05-28 Jan Hubicka <jh@suse.cz>
16470
16471 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
16472 length.
16473 (string_slot_free): Remove
16474 (create_output_block): Initialize obstack.
16475 (destroy_output_block): Free obstack.
16476 (lto_string_index): Add PERSISTENT parameter; do not duplicate
16477 the string unless it needs to be added into the hash.
16478 (lto_output_string_with_length): Add persistent attribute;
16479 handle NULL strings.
16480 (lto_output_string): Add PERSISTENT parameter.
16481 (output_string_cst, output_identifier): Simplify.
16482 (lto_output_location_bitpack): Update.
16483 (lto_output_builtin_tree): Update.
16484 * lto-streamer.h (struct output_block): Add obstack.
16485 (lto_output_string, lto_output_string_with_length): Remove
16486 declarations; functions are static now.
16487
16488 2011-05-28 Jan Hubicka <jh@suse.cz>
16489
16490 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
16491 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
16492 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
16493 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
16494 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
16495 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
16496 unpack_ts_decl_with_vis_value_fields,
16497 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
16498 lto_get_builtin_tree): Use enum and variable length i/o.
16499 * basic-block.h (profile_status_d): Add PROFILE_LAST.
16500 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
16501 New functions.
16502 (bp_pack_enum, bp_unpack_enum): New macros.
16503
16504 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
16505
16506 * genrecog.c: Remove redundant forward declarations.
16507
16508 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
16509
16510 * config.gcc: Deprecate mips*-*-openbsd*.
16511
16512 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
16513
16514 PR bootstrap/49195
16515 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
16516 for match_op_dup.
16517
16518 2011-05-27 Andrew Pinski <pinskia@gmail.com>
16519
16520 PR middle-end/48981
16521 * gengtype.c (vec_prefix_type): New function.
16522 (note_def_vec): Use vec_prefix_type and change the length
16523 attribute to be based on the prefix.
16524 * vec.c: Include coretypes.h before vec.h.
16525 (struct vec_prefix): Remove.
16526 (vec_gc_p_reserve): Change the offsetof to sizeof.
16527 (vec_gc_p_reserve_exact): Likewise.
16528 (vec_heap_p_reserve): Likewise.
16529 (vec_heap_p_reserve_exact): Likewise.
16530 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
16531 (vec_stack_p_reserve): Change the offsetof to sizeof.
16532 (vec_stack_p_reserve_exact): Likewise.
16533 * vec.h (struct vec_prefix): New struct definition.
16534 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
16535 (VEC_T_GTY(T,B)): Likewise.
16536 (DEF_VEC_FUNC_P(T)): Use prefix field.
16537 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
16538 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
16539
16540 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16541
16542 PR tree-optimization/46728
16543 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
16544 (powi_as_mults): Add gimple_set_location.
16545 (build_and_insert_call): New.
16546 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
16547 0.5, 0.25, 0.75, 1./3., or 1./6.
16548
16549 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
16550
16551 * doc/contrib.texi: Update copyright years.
16552 (Contributors): Add Zdenek Sojka.
16553
16554 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
16555
16556 * c-decl.c (c_push_function_context): Copy the current statement
16557 list stack.
16558 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
16559 (finish_struct): Call building_stmt_list_p instead of checking
16560 cur_stmt_list.
16561 * c-parser.c (c_parser_postfix_expression): Likewise.
16562 * c-typeck.c (c_end_compound_stmt): Likewise.
16563 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
16564 * tree-iterator.c (stmt_list_cache): Change to a VEC.
16565 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
16566 (free_stmt_list): Likewise.
16567 * tree.h (struct tree_statement_list): Include typed_tree instead
16568 of tree_common.
16569 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
16570 as TS_TYPED instead of TS_COMMON.
16571
16572 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16573 Uros Bizjak <ubizjak@gmail.com>
16574
16575 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
16576 (HAVE_AS_IX86_TLSGDPTL): Define.
16577 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
16578 (HAVE_AS_IX86_TLSLDMPLT): Define.
16579 * configure: Regenerate.
16580 * config.in: Regenerate.
16581 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
16582 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
16583 TARGET_SUN_TLS, use @tlsgdplt or @plt.
16584 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
16585 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
16586 @tlsldmplt or @plt.
16587 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
16588
16589 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
16590
16591 * sched-int.h (struct _haifa_deps_insn_data): New members cond
16592 and reverse_cond.
16593 (INSN_COND, INSN_REVERSE_COND): New macros.
16594 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
16595 once.
16596 (sched_get_condition_with_rev): Cache the results, and look them up
16597 if possible.
16598 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
16599 are clobbered by the current insn.
16600 * target.def (exposed_pipline): New sched data hook.
16601 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
16602 * doc/tm.texi: Regenerate.
16603
16604 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16605
16606 PR tree-optimization/49170
16607 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
16608 sincos or cexp.
16609
16610 2011-05-27 Richard Guenther <rguenther@suse.de>
16611
16612 PR middle-end/49189
16613 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
16614 of comparisons.
16615
16616 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
16617
16618 * haifa-sched.c (sched_scan_info): Remove.
16619 (schedule_block): Call sched_extend_luids rather than sched_init_luids
16620 with NULL args.
16621 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
16622 Remove functions.
16623 (sched_scan): Remove.
16624 (sched_extend_luids): Renamed from luids_extend_insn and no longer
16625 static. All callers changed.
16626 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
16627 static. All callers changed.
16628 (sched_init_luids): Remove all arguments except the first. All
16629 callers changed. Don't use sched_scan.
16630 (haifa_init_h_i_d): Likewise.
16631 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
16632 manually rather than using sched_init_luids. Likewise with
16633 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
16634 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
16635 rather than sched_init_luids with NULL args.
16636 * sel-sched-ir.c (new_insns): Remove variable.
16637 (sched_scan): New static function, previously in haifa-sched.c. Remove
16638 all arguments but the first two; all callers changed.
16639 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
16640 rather than sched_init_luids.
16641 (sel_init_bbs): Remove second argument. All callers changed.
16642 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
16643 with NULL arguments.
16644 (create_insn_rtx_from_pattern): Likewise.
16645 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
16646 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
16647 (sched_init_insn_luid, sched_extend_luids): Declare.
16648 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
16649 declarations.
16650
16651 2011-05-27 Richard Guenther <rguenther@suse.de>
16652
16653 PR middle-end/49177
16654 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
16655 A CMP B ? (T) true : (T) false for non-integral types T again.
16656
16657 2011-05-27 Jan Hubicka <jh@suse.cz>
16658
16659 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
16660 so 0 means NULL string.
16661 (lto_output_string_with_length): ... here.
16662 (lto_output_string, output_string_cst, output_identifier): Update
16663 handling of NULL strings.
16664 (lto_output_location_bitpack): New function.
16665 (lto_output_location): Use it.
16666 (lto_output_tree_ref): Use output_record_start.
16667 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
16668 len values.
16669 * lto-streamer-in.c (string_for_index): Break out from ...; offset
16670 values by 1.
16671 (input_string_internal): ... here;
16672 (input_string_cst, input_identifier, lto_input_string): Update handling
16673 of NULL strings.
16674 (lto_input_location_bitpack): New function
16675 (lto_input_location): Use it.
16676 (unpack_ts_type_common_value_fields): Pack align & alias in var len
16677 values.
16678 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
16679 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
16680 (bp_pack_value): Sanity check the value range.
16681 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
16682 New functions.
16683 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
16684 New functions.
16685
16686 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
16687
16688 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
16689 call_arg_location instructions down the floor.
16690
16691 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
16692
16693 PR rtl-optimization/49154
16694 * ira.c (setup_pressure_classes): Process class without sublcasses
16695 as a candidate for pressure classes.
16696
16697 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
16698
16699 PR rtl-optimization/48575
16700 * genrecog.c (position_type): New enum.
16701 (position): New structure.
16702 (decision): Use position structure instead of a string.
16703 (root_pos, peep2_insn_pos_list): New variables.
16704 (next_position, compare_positions): New functions.
16705 (new_decision): Use position structures instead of strings.
16706 (maybe_both_true): Likewise.
16707 (change_state): Likewise.
16708 (write_tree): Likewise.
16709 (make_insn_sequence): Likewise.
16710
16711 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
16712
16713 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
16714 TS_BASE instead of TS_COMMON.
16715 (find_decls_types_r): Check for TS_TYPED structure before looking at
16716 TREE_TYPE.
16717 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
16718 Add chain field.
16719 (BLOCK_CHAIN): Use new chain field.
16720
16721 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
16722
16723 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
16724 moves expensive on Power7 also.
16725
16726 2011-05-26 Richard Guenther <rguenther@suse.de>
16727
16728 * fold-const.c (fold_unary_loc): Remove bogus code.
16729
16730 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
16731
16732 * tree.h (struct tree_identifier): Inherit from tree_typed, not
16733 tree_common.
16734 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
16735 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
16736 TS_BASE instead of TS_COMMON.
16737 * varasm.c (assemble_name): Remove assert.
16738
16739 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
16740
16741 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
16742 substituted first.
16743 * libgcc-std.ver: Delete file.
16744
16745 2011-05-26 Richard Guenther <rguenther@suse.de>
16746
16747 PR tree-optimization/48702
16748 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
16749 only when we know the base address is within bounds.
16750 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
16751 assume the base address of TARGET_MEM_REFs is in bounds.
16752
16753 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16754
16755 PR target/49099
16756 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
16757 declaration in TARGET_SOLARIS.
16758
16759 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
16760
16761 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
16762 The instruction is then expanded explicitly.
16763 (supported_compare): Callable instruction.
16764 (compare): Likewise.
16765
16766 2011-05-26 Jakub Jelinek <jakub@redhat.com>
16767
16768 PR c++/49165
16769 * gimplify.c (shortcut_cond_r): Don't special case
16770 COND_EXPRs if they have void type on one of their arms.
16771
16772 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
16773
16774 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
16775 to reduce duplication, and to achieve a slightly more logical order
16776 of operations.
16777
16778 2011-05-26 Jakub Jelinek <jakub@redhat.com>
16779
16780 PR tree-optimization/49161
16781 * tree-vrp.c (struct case_info): New type.
16782 (compare_case_labels): Sort case_info structs instead of
16783 trees, and not primarily by CASE_LABEL uids but by
16784 label_for_block indexes.
16785 (find_switch_asserts): Put case labels into struct case_info
16786 array instead of TREE_VEC, adjust sorting, compare label_for_block
16787 values instead of CASE_LABELs.
16788
16789 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16790
16791 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
16792 ("orndi3_neon"): Likewise.
16793 ("bic<mode>3_neon"): Likewise.
16794
16795 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
16796
16797 PR tree-optimization/49038
16798 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
16799 Ensure at least one epilogue iteration if required by data
16800 accesses with gaps.
16801 * tree-vectorizer.h (struct _loop_vec_info): Add new field
16802 to mark loops that require peeling for gaps.
16803 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
16804 (vect_get_known_peeling_cost): Take peeling for gaps into
16805 account.
16806 (vect_transform_loop): Generate epilogue if required by data
16807 access with gaps.
16808 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
16809 loop as requiring an epilogue if there are gaps in the end of
16810 the strided group.
16811
16812 2011-05-25 Ian Lance Taylor <iant@google.com>
16813
16814 * godump.c (go_format_type): Output the first field with a usable
16815 Go type, if any.
16816
16817 2011-05-25 Ian Lance Taylor <iant@google.com>
16818
16819 * godump.c (go_format_type): Check for invalid type names, pointer
16820 target types, and struct field types.
16821
16822 2011-05-25 Jason Merrill <jason@redhat.com>
16823
16824 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
16825
16826 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
16827
16828 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
16829
16830 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
16831
16832 * config/i386/i386.md (*movqi_extv_1)): Put back
16833 "register_operand" check in "type" calculation.
16834 (*movqi_extzv_2): Likewise.
16835
16836 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
16837
16838 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
16839
16840 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
16841
16842 PR bootstrap/49160
16843 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
16844 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
16845 __divxc3, __divtc3): Wrap definitions in #ifndef.
16846
16847 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
16848
16849 PR target/49142
16850 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
16851 "register_operand" check and replace q_regs_operand with
16852 QIreg_operand in "type" calculation.
16853 (*movqi_extv_1): Likewise.
16854 (*movqi_extzv_2_rex64): Likewise.
16855 (*movqi_extzv_2): Likewise.
16856
16857 * config/i386/predicates.md (QIreg_operand): New.
16858
16859 2011-05-25 Richard Guenther <rguenther@suse.de>
16860
16861 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
16862 type-based offset disambiguation, streamline MEM_REF and
16863 TARGET_MEM_REF handling.
16864
16865 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
16866
16867 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
16868 (bdesc_special_args): Add pause intrinsic.
16869
16870 * config/i386/i386.md (UNSPEC_PAUSE): New.
16871 (pause): Likewise.
16872 (*pause): Likewise.
16873 * config/i386/ia32intrin.h (__pause): Likewise.
16874
16875 * doc/extend.texi (X86 Built-in Functions): Add documentation for
16876 pause intrinsic.
16877
16878 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16879
16880 PR tree-optimization/46728
16881 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
16882 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
16883
16884 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
16885
16886 * tree.h (struct tree_exp): Inherit from struct tree_typed.
16887 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
16888 instead of TS_COMMON.
16889
16890 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
16891
16892 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
16893 LIBGCC2_GNU_PREFIX is defined.
16894 (__N): New macro.
16895 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
16896 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
16897 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
16898 __clz_tab): Define using __N.
16899 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
16900 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
16901 * target.def (libfunc_gnu_prefix): New hook.
16902 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
16903 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
16904 * doc/tm.texi: Regenerate.
16905 * system.h (LIBGCC2_GNU_PREFIX): Poison.
16906 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
16907 account.
16908 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
16909 (init_optabs): Likewise for the bswap libfuncs.
16910 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
16911 and divide.
16912 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
16913 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
16914 * libgcc-std.ver: Remove.
16915 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
16916 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
16917 libgcc-std.ver.
16918 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16919 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
16920 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
16921 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
16922 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
16923 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16924 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16925 * config/fixed-bit.h (FIXED_OP): Define differently depending on
16926 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
16927 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
16928
16929 2011-05-25 Jan Hubicka <jh@suse.cz>
16930
16931 * lto-streamer-out.c (output_record_start): Use lto_output_enum
16932 (lto_output_tree): Use output_record_start.
16933 * lto-streamer-in.c (input_record_start): Use lto_input_enum
16934 (lto_get_pickled_tree): Use input_record_start.
16935 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
16936 (lto_value_range_error): New function.
16937 * lto-streamer.h (lto_value_range_error): Declare.
16938 (lto_output_int_in_range, lto_input_int_in_range): New functions.
16939 (lto_output_enum, lto_input_enum): New macros.
16940
16941 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
16942
16943 * common.opt (flag_stack_usage_info): New variable.
16944 (-Wstack-usage): New option.
16945 * doc/invoke.texi (Warning options): Document -Wstack-usage.
16946 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
16947 <OPT_fstack_usage>: Likewise.
16948 * toplev.c (output_stack_usage): Handle -Wstack-usage.
16949 * calls.c (expand_call): Test flag_stack_usage_info variable instead
16950 of flag_stack_usage.
16951 (emit_library_call_value_1): Likewise.
16952 * explow.c (allocate_dynamic_stack_space): Likewise.
16953 * function.c (instantiate_virtual_regs ): Likewise.
16954 (prepare_function_start): Likewise.
16955 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
16956 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
16957 * config/arm/arm.c (arm_expand_prologue): Likewise.
16958 (thumb1_expand_prologue): Likewise.
16959 * config/avr/avr.c (expand_prologue): Likewise.
16960 * config/i386/i386.c (ix86_expand_prologue): Likewise.
16961 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
16962 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
16963 * config/mips/mips.c (mips_expand_prologue): Likewise.
16964 * config/pa/pa.c (hppa_expand_prologue): Likewise.
16965 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
16966 * config/s390/s390.c (s390_emit_prologue): Likewise.
16967 * config/sh/sh.c (sh_expand_prologue): Likewise.
16968 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
16969 * config/spu/spu.c (spu_expand_prologue): Likewise.
16970
16971 2011-05-25 Richard Guenther <rguenther@suse.de>
16972
16973 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
16974 (gimple_canonical_types_compatible_p): Likewise.
16975
16976 2011-05-25 Jan Hubicka <jh@suse.cz>
16977
16978 PR middle-end/49062
16979 * ipa.c (function_and_variable_visibility): Only add to same
16980 comdat group list if DECL_ONE_ONLY.
16981
16982 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
16983
16984 PR rtl-optimization/49014
16985 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
16986
16987 2011-05-25 Jakub Jelinek <jakub@redhat.com>
16988
16989 PR target/49128
16990 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
16991
16992 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
16993
16994 PR rtl-optimization/48757
16995 * ira-build.c (loop_with_eh_edge_p): Rename to
16996 loop_with_complex_edge_p, check edges on complexity, make function
16997 conditional.
16998 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
16999 conditional.
17000
17001 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
17002
17003 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
17004 force flag_ira_share_save_slots to 0.
17005
17006 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
17007
17008 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
17009 (vt_initialize): Set PROLOGUE_BB unconditionally.
17010 Add block comment about CFA_BASE_RTX machinery.
17011 Reset FP_CFA_OFFSET to -1 on all invalid paths.
17012 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
17013
17014 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
17015
17016 PR objc/48187
17017 * c-parser.c (c_parser_objc_class_instance_variables): More robust
17018 parsing of syntax error in ObjC instance variable lists. In
17019 particular, avoid an infinite loop if there is a stray ']'.
17020 Updated error message.
17021
17022 2011-05-24 Ian Lance Taylor <iant@google.com>
17023
17024 * godump.c (go_define): Don't accept a string immediately after
17025 another operand.
17026
17027 2011-05-24 Ian Lance Taylor <iant@google.com>
17028
17029 * godump.c (struct godump_container): Add invalid_hash field.
17030 (go_format_type): Return false if type is found in invalid_hash.
17031 (go_output_typedef): Add invalid type to invalid_hash.
17032 (go_finish): Create and delete invalid_hash.
17033
17034 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17035
17036 PR tree-optimization/46728
17037 * tree-ssa-math-opts.c (powi_table): New.
17038 (powi_lookup_cost): New.
17039 (powi_cost): New.
17040 (powi_as_mults_1): New.
17041 (powi_as_mults): New.
17042 (gimple_expand_builtin_powi): New.
17043 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
17044 (gate_cse_sincos): Remove sincos/cexp restriction.
17045
17046 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17047
17048 PR target/3746
17049 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
17050 mips-tdump native.
17051 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
17052 * mips-tdump.c: Likewise.
17053
17054 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
17055
17056 PR target/49128
17057 * config/i386/driver-i386.c (host_detect_local_cpu): Always
17058 add -mno-XXX. Handle FMA.
17059
17060 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
17061
17062 PR rtl-optimization/48633
17063 * ira-build.c (loop_with_eh_edge_p): New function.
17064 (mark_loops_for_removal): Use it.
17065
17066 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
17067
17068 PR rtl-optimization/48971
17069 * ira.c (setup_pressure_classes): Don't check register move cost
17070 for classes with one registers. Don't add pressure class if there
17071 is a pressure class with the same available hard registers.
17072 Check contains_reg_of_mode. Fix a typo in collecting
17073 temp_hard_regset. Ignore hard registers not belonging to a class.
17074
17075 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
17076
17077 PR target/49133
17078 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
17079
17080 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
17081 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17082
17083 PR gcov-profile/48845
17084 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
17085
17086 2011-05-24 Richard Guenther <rguenther@suse.de>
17087
17088 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
17089 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
17090 (gimple_types_compatible_p_1): Adjust.
17091 (iterative_hash_canonical_type): Do not bother about complete vs.
17092 incomplete types.
17093 (gimple_canonical_types_compatible_p): Likewise.
17094
17095 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17096
17097 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
17098
17099 2011-05-24 Richard Guenther <rguenther@suse.de>
17100
17101 PR bootstrap/49078
17102 * gimple.c (gimple_register_canonical_type): Revert
17103 previous change.
17104 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
17105 does not for a tree for the case where it matters. Cache
17106 pointer-type alias-sets.
17107
17108 2011-05-24 Joseph Myers <joseph@codesourcery.com>
17109
17110 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
17111 (OBJS): Remove options.o, opts-common.o and prefix.o.
17112 (OBJS-libcommon-target): New.
17113 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
17114 (BACKEND): Include libcommon-target.a.
17115 (MOSTLYCLEANFILES): Include libcommon-target.a.
17116 (libcommon-target.a): New.
17117 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
17118 prefix.o.
17119
17120 2011-05-23 Joseph Myers <joseph@codesourcery.com>
17121
17122 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
17123 parts of output shared with the driver.
17124 * optc-gen.awk: Don't generate parts of output not shared with the
17125 driver.
17126 * opth-gen.awk: Remove GCC_DRIVER conditionals.
17127 * doc/options.texi (SourcerInclude): Mention options-save.c.
17128 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
17129 (OBJS): Add options-save.o.
17130 (options-save.c, options-save.o): New.
17131 (options.o): Update dependencies.
17132 (gcc-options.o): Remove.
17133 (mostlyclean): Remove options-save.c.
17134
17135 2011-05-23 Jakub Jelinek <jakub@redhat.com>
17136
17137 PR debug/49032
17138 * dbxout.c: Include cgraph.h.
17139 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
17140 and without value expr, return NULL if no varpool node exists for
17141 it or if it is not needed.
17142 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
17143
17144 PR c/49120
17145 * c-decl.c (start_decl): Convert expr to void_type_node.
17146
17147 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
17148
17149 PR rtl-optimization/48826
17150 * emit-rtl.c (try_split): When splitting a call that is followed
17151 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
17152
17153 2011-05-23 Jakub Jelinek <jakub@redhat.com>
17154
17155 * cfgexpand.c (expand_debug_expr): For unused non-addressable
17156 parameters passed in memory prefer using DECL_INCOMING_RTL over
17157 the pseudos it will be copied into.
17158
17159 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
17160
17161 PR target/47315
17162 * config/i386/i386.c (ix86_option_override_internal): Save the
17163 initial options after checking vzeroupper.
17164
17165 2011-05-23 David Li <davidxl@google.com>
17166
17167 PR tree-optimization/48988
17168 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
17169 Initialize has_valid_pred for each pred chain.
17170
17171 2011-05-23 Richard Guenther <rguenther@suse.de>
17172
17173 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
17174 (iterative_hash_gimple_type): Always hash type names.
17175
17176 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
17177
17178 * c-typeck.c (build_function_call_vec): Tweak call to
17179 check_function_arguments.
17180
17181 2011-05-23 Richard Guenther <rguenther@suse.de>
17182
17183 PR tree-optimization/49115
17184 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
17185 is not necessarily carried out, do not claim it kills the ref.
17186 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
17187
17188 2011-05-23 Richard Guenther <rguenther@suse.de>
17189
17190 PR middle-end/15419
17191 * builtins.c (fold_builtin_memory_op): Be less restrictive about
17192 what pointer types we accept for folding.
17193
17194 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17195
17196 * gthr-gnat.c: Remove.
17197 * gthr-gnat.h: Remove.
17198 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
17199 * config/t-freebsd (LIB2ADDEH): Likewise.
17200 * config/t-linux (LIB2ADDEH): Likewise.
17201 * config/t-sol2 (LIB2ADDEH): Likewise.
17202 * config/ia64/t-vms (LIB2ADDEH): Likewise.
17203 * configure.ac (target_thread_file): Remove gnat handling.
17204 * configure: Regenerate.
17205 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
17206
17207 2011-05-23 Tristan Gingold <gingold@adacore.com>
17208 Eric Botcazou <ebotcazou@adacore.com>
17209
17210 * gcov.c (create_file_names): If no object directory is specified,
17211 keep the directory of the file.
17212
17213 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17214
17215 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
17216 * configure: Regenerate.
17217
17218 2011-05-23 Jakub Jelinek <jakub@redhat.com>
17219
17220 PR middle-end/48973
17221 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
17222 failed and the comparison has a single bit signed type, use
17223 constm1_rtx instead of const1_rtx for true value.
17224 (do_store_flag): If ops->type is single bit signed type, disable
17225 signel bit test optimization and pass -1 instead of 1 as last
17226 parameter to emit_store_flag_force.
17227
17228 2011-05-23 Tom de Vries <tom@codesourcery.com>
17229
17230 PR target/45098
17231 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
17232 function.
17233 (infer_loop_bounds_from_undefined): Use new function.
17234
17235 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
17236
17237 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
17238 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
17239 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
17240 and -O0 otherwise.
17241 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
17242
17243 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
17244
17245 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
17246 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
17247 returns true.
17248
17249 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
17250
17251 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
17252
17253 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
17254
17255 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
17256 UNSPEC_MOVE_PIC pattern.
17257
17258 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
17259
17260 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
17261 (sparc-*-rtems*): Likewise.
17262 (sparc64-*-elf*): Likewise.
17263 (sparc64-*-rtems*): Likewise.
17264 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
17265 * config/sparc/t-crtin: New file.
17266 * config/sparc/t-sol2 (crti.o): Delete rule.
17267 (crtn.o): Likewise.
17268 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
17269 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
17270 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
17271 (ENDFILE_SPEC): Add crtn.o.
17272
17273 2011-05-22 Tom de Vries <tom@codesourcery.com>
17274
17275 PR middle-end/48689
17276 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
17277 CODE_CONTAINS_STRUCT (TS_COMMON).
17278
17279 2011-05-22 Jakub Jelinek <jakub@redhat.com>
17280
17281 PR middle-end/49029
17282 * expmed.c (extract_fixed_bit_field): Test whether target can be used
17283 only after deciding which mode to use.
17284
17285 2011-05-22 Tom de Vries <tom@codesourcery.com>
17286
17287 PR target/45098
17288 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
17289 for call to get_shiftadd_cost.
17290
17291 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
17292
17293 PR target/49104
17294 * config/i386/cpuid.h (bit_MMXEXT): New define.
17295
17296 2011-05-22 Nick Clifton <nickc@redhat.com>
17297
17298 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
17299 initialisation of non-existant args[2] element. Use args[] array
17300 not arg[] array to pass arguments to build_function_type_list.
17301
17302 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
17303
17304 PR tree-optimization/49087
17305 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
17306
17307 2011-05-21 Jason Merrill <jason@redhat.com>
17308
17309 PR c++/49092
17310 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
17311 static storage duration.
17312
17313 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
17314
17315 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
17316 frame pointer.
17317
17318 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
17319
17320 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
17321 false if there are call-saved registers here...
17322 (sparc_can_use_return_insn_p): ...but here instead.
17323 (save_or_restore_regs): Fix thinko.
17324 (sparc_expand_prologue): Use current_function_is_leaf.
17325 (sparc_frame_pointer_required): Likewise.
17326
17327 2011-05-21 Nick Clifton <nickc@redhat.com>
17328
17329 PR target/49098
17330 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
17331
17332 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
17333
17334 * gengtype.c (walk_type): Implemented "atomic" GTY option.
17335 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
17336
17337 2011-05-21 Joseph Myers <joseph@codesourcery.com>
17338
17339 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
17340 * optc-gen.awk: Move common code to opt-read.awk.
17341 * opth-gen.awk: Likewise.
17342 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
17343
17344 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
17345
17346 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
17347
17348 2011-05-20 Tom de Vries <tom@codesourcery.com>
17349
17350 PR target/45098
17351 * tree-ssa-loop-ivopts.c: Include expmed.h.
17352 (get_shiftadd_cost): New function.
17353 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
17354
17355 2011-05-20 Jakub Jelinek <jakub@redhat.com>
17356
17357 PR bootstrap/49086
17358 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
17359 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
17360
17361 2011-05-20 Joseph Myers <joseph@codesourcery.com>
17362
17363 * Makefile.in: Update comment referring to $(OBJS-common).
17364
17365 2011-05-20 Ian Lance Taylor <iant@google.com>
17366
17367 * godump.c (go_output_typedef): Put enum constants in the macro
17368 hash table to avoid duplicate Go const definitions.
17369
17370 2011-05-20 Joseph Myers <joseph@codesourcery.com>
17371
17372 * Makefile.in (LIBDEPS): Add libcommon.a.
17373 (LIBS): Likewise.
17374 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
17375 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
17376 pretty-print.o and version.o.
17377 (OBJS-libcommon): New.
17378 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
17379 (BACKEND): Add libcommon.a.
17380 (MOSTLYCLEANFILES): Likewise.
17381 (libcommon.a): New.
17382 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
17383 (cpp$(exeext)): Likewise.
17384 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
17385 pretty-print.o and input.o.
17386 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
17387 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
17388 (errors.o): Remove.
17389 (mips-tfile): Don't explicitly use version.o.
17390 (mips-tdump): Likewise.
17391 (gcov.o): Depend on $(DIAGNOSTIC_H).
17392 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
17393 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
17394 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
17395 * gcov-dump.c: Include intl.h and diagnostic.h.
17396 (main): Initialize diagnostics.
17397 * gcov.c: Include diagnostic.h.
17398 (fnotice): Remove.
17399 (main): Initialize diagnostics.
17400 * lto-wrapper.c: Include diagnostic.h.
17401 (main): Initialize diagnostics.
17402
17403 2011-05-20 Michael Matz <matz@suse.de>
17404
17405 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
17406
17407 2011-05-20 Michael Matz <matz@suse.de>
17408 Richard Guenther <rguenther@suse.de>
17409
17410 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
17411 use lto_streamer_cache_append directly instead of returning a VEC.
17412 (preload_common_node): Remove.
17413 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
17414 track seen nodes.
17415 (lto_streamer_cache_create): Call lto_preload_common_nodes.
17416
17417 2011-05-20 Richard Guenther <rguenther@suse.de>
17418
17419 PR tree-optimization/49079
17420 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
17421 MEM_REFs correctly for the trailing array access detection.
17422 Special case constants the same way as decls for overall size
17423 constraining.
17424
17425 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
17426
17427 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
17428 argument expansion.
17429
17430 2011-05-20 Jakub Jelinek <jakub@redhat.com>
17431
17432 PR tree-optimization/49073
17433 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
17434 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
17435 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
17436
17437 2011-05-20 Richard Guenther <rguenther@suse.de>
17438
17439 PR middle-end/48849
17440 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
17441 of pointer types the same way the middle-end does.
17442
17443 2011-05-20 Richard Guenther <rguenther@suse.de>
17444
17445 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
17446 or pointer-to chains. Delay all fixup to uniquify_nodes.
17447
17448 2011-05-19 Quentin Neill <quentin.neill@amd.com>
17449
17450 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
17451 (fma4_fmaddsub): Likewise
17452
17453 2011-05-19 Jan Hubicka <jh@suse.cz>
17454
17455 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
17456 (GIMPLE_TYPE_PAIR_SIZE): New macro.
17457 (type_pair_cache): New static var.
17458 (lookup_type_pair): Use fixed sized custom hash; make inline.
17459 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
17460 calls of lookup_type_pair.
17461 (print_gimple_types_stats): Remove cache stats.
17462 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
17463 and gtc_ob.
17464
17465 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
17466
17467 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
17468 when TARGET_RDRND is active.
17469 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
17470 Generate dummy SImode target register when target is NULL.
17471
17472 2011-05-19 Joseph Myers <joseph@codesourcery.com>
17473
17474 * config/arm/arm-fpus.def: New.
17475 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
17476 arm-fpus.def.
17477 * config/arm/arm-tables.opt: Regenerate.
17478 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
17479 (arm_option_override): Don't decode FPU name to string here.
17480 * config/arm/arm.opt (mfpu=): Use Enum.
17481 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
17482 Update dependencies.
17483
17484 2011-05-19 Joseph Myers <joseph@codesourcery.com>
17485
17486 * collect2.c: Include diagnostic.h.
17487 (fatal_perror, fatal, error, fancy_abort): Remove.
17488 (main): Set progname. Call xmalloc_set_program_name and
17489 diagnostic_initialize.
17490 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
17491 scan_libraries, resolve_lib_name): Call fatal_error instead of
17492 fatal and fatal_perror.
17493 * collect2.h (error, fatal, fatal_perror): Don't declare.
17494 * tlink.c: Include diagnostic-core.h.
17495 (recompile_files): Call fatal_error instead of fatal_perror.
17496 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
17497 pretty-print.o and input.o.
17498 (collect2.o, tlink.o): Update dependencies.
17499
17500 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17501
17502 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
17503
17504 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17505
17506 PR target/40483
17507 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
17508 COMDAT group syntax, both SPARC and x86 variants.
17509 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
17510 * configure: Regenerate.
17511 * config/sol2.h (TARGET_SOLARIS): Define.
17512 (PUSHSECTION_FORMAT): Remove.
17513 (SECTION_NAME_FORMAT): Define.
17514 * config/sol2.c: Include hashtab.h.
17515 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
17516 expansion, using SECTION_NAME_FORMAT.
17517 (solaris_comdat_htab): New variable.
17518 (struct comdat_entry): Define.
17519 (comdat_hash): New function.
17520 (comdat_eq): New function.
17521 (solaris_elf_asm_comdat_section): New function.
17522 (solaris_define_comdat_signature): New function.
17523 (solaris_code_end): New function.
17524 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
17525 (solaris_code_end): Declare.
17526 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
17527 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
17528 solaris_code_end.
17529 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
17530 Remove ATTRIBUTE_UNUSED.
17531 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
17532 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
17533 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
17534 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
17535 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
17536 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
17537 (PUSHSECTION_FORMAT): Remove.
17538 (SECTION_NAME_FORMAT): Redefine.
17539
17540 2011-05-19 Kai Tietz <ktietz@redhat.com>
17541
17542 * tree-cfg.c (verify_gimple_assign_binary): Barf on
17543 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
17544 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
17545
17546 2011-05-19 Anatoly Sokolov <aesok@post.ru>
17547 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17548
17549 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
17550
17551 2011-05-19 Richard Guenther <rguenther@suse.de>
17552
17553 PR middle-end/48985
17554 * tree-object-size.c (addr_object_size): If the pointed-to
17555 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
17556
17557 2011-05-19 Richard Guenther <rguenther@suse.de>
17558
17559 * gimple.c (gimple_types_compatible_p_1): Compare names of
17560 the types themselves.
17561 (iterative_hash_gimple_type): And hash them that way.
17562 (gimple_register_type_1): If we register a main variant properly
17563 initialize the leader to ourselves.
17564
17565 2011-05-19 Tom de Vries <tom@codesourcery.com>
17566
17567 PR target/45098
17568 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
17569 get_loop_invariant_expr_id.
17570 (get_loop_invariant_expr_id): Use get_expr_id.
17571 (parm_decl_cost): New function.
17572 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
17573 Improve bound cost estimation. Use different inv_expr_id for elim and
17574 express cases.
17575
17576 2011-05-19 Tom de Vries <tom@codesourcery.com>
17577
17578 PR target/45098
17579 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
17580 cost_base.cost == 0.
17581
17582 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
17583
17584 PR target/49002
17585 * config/i386/sse.md
17586 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
17587 load cast.
17588
17589 2011-05-18 Jakub Jelinek <jakub@redhat.com>
17590
17591 PR tree-optimization/49039
17592 * tree-vrp.c (extract_range_from_binary_expr): For
17593 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
17594 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
17595
17596 2011-05-18 Tom de Vries <tom@codesourcery.com>
17597
17598 PR target/45098
17599 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
17600
17601 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
17602
17603 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
17604 (*tls_global_dynamic_64): Ditto.
17605 (*tls_local_dynamic_base_32_gnu): Ditto.
17606 (*tls_local_dynamic_base_64): Ditto.
17607 (tls_initial_exec_64_sun): Ditto.
17608
17609 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
17610
17611 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
17612 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
17613 bf592-none.
17614 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
17615 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
17616 * config/bfin/bfin.c (bfin_cpus): Add bf592.
17617 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
17618 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
17619 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
17620 * config/bfin/elf.h (LIB_SPEC): Add bf592.
17621
17622 2011-05-18 Joseph Myers <joseph@codesourcery.com>
17623
17624 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
17625 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
17626 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
17627 target_thread_pointer, arm_structure_size_boundary, struct
17628 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
17629 struct abi_name, arm_all_abis): Remove.
17630 (arm_option_override) Don't process most enumerated option values here.
17631 Don't process target_fpe_name here. Work with integer not string for
17632 structure size boundary; use separate diagnostics for each case.
17633 * config/arm/arm.h (enum float_abi_type, enum
17634 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
17635 to arm-opts.h.
17636 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
17637 arm_structure_size_boundary): Remove.
17638 * config/arm/arm.opt (mabi=): Use Enum and Init.
17639 (arm_abi_type): New Enum and EnumValue entries.
17640 (mfloat-abi=): Use Enum and Init.
17641 (float_abi_type): New Enum and EnumValue entries.
17642 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
17643 (mfp16-format=): Use Enum and Init.
17644 (arm_fp16_format_type): New Enum and EnumValue entries.
17645 (mstructure-size-boundary=): Use UInteger and Init.
17646 (mtp=): Use Enum and Init.
17647 (arm_tp_type): New Enum and EnumValue entries.
17648
17649 2011-05-18 Richard Guenther <rguenther@suse.de>
17650
17651 PR tree-optimization/49018
17652 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
17653 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
17654 gimple_has_side_effects.
17655
17656 2011-05-18 Richard Guenther <rguenther@suse.de>
17657
17658 * gimple.c (gimple_register_type_1): New function, split out from ...
17659 (gimple_register_type): ... here. Avoid infinite recursion.
17660
17661 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
17662
17663 PR tree-optimization/41881
17664 * tree-vectorizer.h (struct _loop_vec_info): Add new field
17665 reduction_chains along with a macro for its access.
17666 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
17667 (destroy_loop_vec_info): Free reduction chains.
17668 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
17669 (vect_is_slp_reduction): New function.
17670 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
17671 (vect_create_epilog_for_reduction): Support SLP reduction chains.
17672 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
17673 definition types for reduction chains.
17674 (vect_supported_load_permutation_p): Don't allow permutations for
17675 reduction chains.
17676 (vect_analyze_slp_instance): Support reduction chains.
17677 (vect_analyze_slp): Try to build SLP instance from reduction chains.
17678 (vect_get_constant_vectors): Handle reduction chains.
17679 (vect_schedule_slp_instance): Mark the first statement of the
17680 reduction chain as reduction.
17681
17682 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
17683
17684 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
17685 names for group elements access.
17686 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
17687 reduction chains as well. Remove data reference and interleaving
17688 related words from the fields names.
17689 * tree-vect-loop.c (vect_transform_loop): Use new names for group
17690 elements access.
17691 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
17692 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
17693 vect_update_interleaving_chain, vect_same_range_drs,
17694 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
17695 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
17696 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
17697 vect_analyze_group_access, vect_analyze_data_ref_access,
17698 vect_create_data_ref_ptr, vect_transform_strided_load,
17699 vect_record_strided_load_vectors): Likewise.
17700 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
17701 vect_model_load_cost, vectorizable_store, vectorizable_load,
17702 vect_remove_stores, new_stmt_vec_info): Likewise.
17703 * tree-vect-slp.c (vect_build_slp_tree,
17704 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
17705
17706 2011-05-18 Richard Guenther <rguenther@suse.de>
17707
17708 PR middle-end/48989
17709 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
17710 operand verification.
17711 (verify_gimple_assign_binary): Likewise.
17712 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
17713 to non-1-precision BOOLEAN_TYPEs.
17714
17715 2011-05-18 Tom de Vries <tom@codesourcery.com>
17716
17717 PR target/45098
17718 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
17719
17720 2011-05-18 Jakub Jelinek <jakub@redhat.com>
17721
17722 PR tree-optimization/49000
17723 * tree-ssa.c (execute_update_addresses_taken): Call
17724 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
17725 be rewritten and decl has been marked for renaming, reset
17726 the debug stmt.
17727
17728 2011-05-17 Joseph Myers <joseph@codesourcery.com>
17729
17730 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
17731 enum_opts_set when testing if attributes have set -mfpmath=.
17732
17733 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
17734
17735 * config/mips/mips.c (mips_handle_option): Remove unused variable.
17736
17737 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
17738
17739 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
17740 info->entry with 0
17741 * tree-inline.c (maybe_inline_call_in_expr): Initialize
17742 id.transform_lang_insert_block with NULL.
17743
17744 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
17745
17746 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
17747 (output_fp_compare): Change args 3 and 4 to bool.
17748 (ix86_expand_call): Change arg 6 to bool.
17749 (ix86_attr_length_immediate_default): Change arg 2 to bool.
17750 (ix86_attr_length_vex_default): Change arg 3 to bool.
17751 * config/i386/i386.md: Update all uses.
17752 * config/i386/i386.c: Ditto.
17753 (ix86_flags_dependent): Change return type to bool.
17754
17755 2011-05-17 Richard Guenther <rguenther@suse.de>
17756
17757 * gimple.c (type_hash_pair_compare): Fix comparison.
17758
17759 2011-05-17 Richard Guenther <rguenther@suse.de>
17760
17761 * gimple.c (iterative_hash_gimple_type): Simplify singleton
17762 case some more, fix final hash value of the non-singleton case.
17763
17764 2011-05-17 Richard Guenther <rguenther@suse.de>
17765
17766 PR bootstrap/49013
17767 Revert
17768 2011-05-16 Richard Guenther <rguenther@suse.de>
17769
17770 * gimple.c (gimple_types_compatible_p_1): Use names of the
17771 type itself, not its main variant.
17772 (iterative_hash_gimple_type): Likewise.
17773
17774 2011-05-17 Richard Guenther <rguenther@suse.de>
17775
17776 * gimple.c (gimple_register_canonical_type): Use the main-variant
17777 leader for computing the canonical type.
17778
17779 2011-05-17 Nick Clifton <nickc@redhat.com>
17780
17781 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
17782 moves.
17783
17784 * config/rx/rx.md: Add peephole to remove redundant extensions
17785 after loads.
17786 (bitset_in_memory): Use rx_restricted_mem_operand.
17787 (bitinvert_in_memory): Likewise.
17788 (bitclr_in_memory): Likewise.
17789
17790 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
17791 Nick Clifton <nickc@redhat.com>
17792
17793 * config/rx/rx.md: Add peepholes to match a register move followed
17794 by a comparison of the moved register. Replace these with an
17795 addition of zero that does both actions in one instruction.
17796
17797 2011-05-17 Jakub Jelinek <jakub@redhat.com>
17798
17799 PR target/48986
17800 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
17801 predicate to allow CONST_INT.
17802 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
17803
17804 2011-05-16 Joseph Myers <joseph@codesourcery.com>
17805
17806 * opts-common.c (opt_enum_arg_to_value): New.
17807 * opts.h (opt_enum_arg_to_value): Declare.
17808 * config/i386/i386.opt (fpmath): Remove.
17809 (mfpmath=): Use Enum, Init and Save.
17810 (fpmath_unit): New Enum and EnumValue entries.
17811 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
17812 name for function fpmath state.
17813 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
17814 * config/i386/i386.c: Include diagnostic.h.
17815 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
17816 (ix86_target_string): Take enum fpmath_unit value instead of string.
17817 (ix86_debug_options): Update call to ix86_target_string.
17818 (ix86_option_override_internal): Don't process fpmath strings here.
17819 (x86_function_specific_save, ix86_function_specific_restore):
17820 Don't handle fpmath state specially.
17821 (ix86_function_specific_print): Pass fpmath state to
17822 ix86_target_string instead of printing in this function.
17823 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
17824 Handle enum attributes.
17825 (IX86_ATTR_ENUM, ix86_opt_enum): New.
17826 (ix86_valid_target_attribute_tree): Update option_strings
17827 handling. Handle fpmath as enum option.
17828 (ix86_can_inline_p): Update field names for function fpmath state.
17829 (ix86_expand_builtin): Update call to ix86_target_string.
17830 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
17831 (ix86_fpmath): Remove.
17832 * config/i386/t-i386 (i386.o): Update dependencies.
17833
17834 2011-05-16 Joseph Myers <joseph@codesourcery.com>
17835
17836 PR preprocessor/48677
17837 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
17838 from decoded_options[0], not from itself.
17839
17840 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
17841
17842 * config/i386/constraints.md (z): New constraint.
17843 * config/i386/i386.c (c): New mode attribute.
17844 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
17845 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
17846 constraint for operand 0.
17847 (*call_vzeroupper): Ditto.
17848 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
17849 (*call_rex64_ms_sysv_vzeroupper): Ditto.
17850 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
17851 Use "lzm" constraint for operand 0.
17852 (*call_pop_vzeroupper): Ditto.
17853 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
17854 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
17855 constraint for operand 0.
17856 (*sibcall_vzeroupper): Ditto.
17857 (*sibcall_rex64_ms_sysv): Ditto.
17858 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
17859 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
17860 *sibcall_pop_1. Use "Uz" constraint for operand 0.
17861 (*sibcall_pop_vzeroupper): Ditto.
17862 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
17863 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
17864 mode iterator. Use "<c>zm" constraint for operand 1.
17865 (*call_value_vzeroupper): Ditto.
17866 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
17867 for operand 1.
17868 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
17869 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
17870 *call_value_pop_1. Use "lzm" constraint for operand 1.
17871 (*call_value_pop_vzeroupper): Ditto.
17872 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
17873 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
17874 mode iterator. Use "Uz" constraint for operand 1.
17875 (*sibcall_value_vzeroupper): Ditto.
17876 (*sibcall_value_rex64_ms_sysv): Ditto.
17877 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
17878 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
17879 constraint for operand 1.
17880 (*sibcall_value_pop_vzeroupper): Ditto.
17881 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
17882 and "z" constraint for operand 2.
17883 (*tls_global_dynamic_32_gnu): Ditto.
17884 (*tls_local_dynamic_base_32_gnu): Ditto.
17885 (*tls_local_dynamic_base_64): Ditto.
17886 (*tls_local_dynamic_32_once): Ditto.
17887 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
17888 Update all callers.
17889 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
17890
17891 2011-05-16 Richard Guenther <rguenther@suse.de>
17892
17893 * gimple.c (gimple_types_compatible_p_1): Use names of the
17894 type itself, not its main variant.
17895 (iterative_hash_gimple_type): Likewise.
17896
17897 2011-05-16 Richard Guenther <rguenther@suse.de>
17898
17899 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
17900 always visit pointer target and function result and argument types.
17901
17902 2011-05-16 Jason Merrill <jason@redhat.com>
17903
17904 PR c++/48999
17905 * tree-inline.c (copy_statement_list): Put back recursion.
17906
17907 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
17908
17909 PR target/27663
17910 PR target/41076
17911 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
17912 * config/avr/avr.md ("*ior<mode>qi.byte0",
17913 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
17914
17915 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
17916
17917 PR target/45099
17918 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
17919 register is needed for a function argument.
17920
17921 2011-05-16 Richard Guenther <rguenther@suse.de>
17922
17923 * gimple.c (struct type_hash_pair): New type.
17924 (type_hash_pair_compare): New function.
17925 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
17926
17927 2011-05-16 Revital Eres <revital.eres@linaro.org>
17928
17929 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
17930
17931 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
17932
17933 * config/i386/i386.md (floating point move splitters): Fix
17934 usage of standard_80387_constant_p.
17935 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
17936
17937 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
17938
17939 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
17940
17941 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
17942
17943 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
17944 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
17945 (tree_ssa_lim_finalize): Likewise.
17946
17947 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
17948
17949 * config/i386/constraint.md (Yd, Yx): New register constraints.
17950 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
17951 Yd conditional register constraint.
17952 (*movtf_internal): Use standard_sse_constant_opcode.
17953 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
17954 Yx conditional register constraint.
17955 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
17956 Yd conditional register constraint. Use standard_sse_constant_p to
17957 check for valid SSE constants and call standard_sse_constant_opcode to
17958 output SSE insn.
17959 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
17960 constants and call standard_sse_constant_opcode to output SSE insn.
17961 * config/i386/i386.c (ix86_option_ovverride_internal): Set
17962 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
17963 optimize_size is set.
17964 (standard_sse_constant_opcode): Output conditional AVX insn templates.
17965
17966 2011-05-14 Tobias Burnus <burnus@net-b.de>
17967
17968 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
17969
17970 2011-05-13 Martin Jambor <mjambor@suse.cz>
17971
17972 * ipa-prop.c (ipa_cst_from_jfunc): New function.
17973 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
17974 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
17975 (evaluate_conditions_for_ipcp_clone): Removed.
17976 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
17977 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
17978 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
17979
17980 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
17981
17982 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
17983 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
17984 lieu of MAY_HAVE_DEBUG_STMTS.
17985 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
17986 debug statements if !MAY_HAVE_DEBUG_STMTS.
17987
17988 2011-05-13 Martin Thuresson <martint@google.com>
17989
17990 PR gcov-profile/47793
17991 * libgcov.c (gcov_exit): Support relative profile paths.
17992 * doc/invoke.texi (-fprofile-dir): Update for above change.
17993
17994 2011-05-13 Richard Guenther <rguenther@suse.de>
17995
17996 * gimple.c (gimple_canonical_types_compatible_p): Do not use
17997 type-pair caching, do not compare hashes.
17998
17999 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
18000
18001 PR middle-end/48965
18002 * tree-cfg.c (edge_to_cases_cleanup): Return true.
18003 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
18004
18005 2011-05-13 Kai Tietz <ktietz@redhat.com>
18006
18007 * gimplify.c (gimplify_expr): Make sure operand is boolified.
18008 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
18009 compatible type for TRUTH_NOT_EXPR.
18010
18011 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
18012
18013 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
18014 (ix86_hard_regno_mode_ok): Change return value to bool. Use
18015 can_create_pseudo_p ().
18016
18017 2011-05-13 Richard Guenther <rguenther@suse.de>
18018
18019 PR lto/48978
18020 * gimple.c (iterative_hash_gimple_type): Revert change in
18021 pointer target and function result and argument hashing.
18022
18023 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
18024
18025 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
18026 (*movxf_internal_nointeger): Ditto.
18027 (*movdf_internal_rex64): Ditto.
18028 (*movdf_internal): Ditto.
18029 (*movdf_internal_nointeger): Ditto.
18030 (*movsf_internal): Ditto.
18031 (sincos splitters): Use can_create_pseudo ().
18032
18033 2011-05-13 Joseph Myers <joseph@codesourcery.com>
18034
18035 * config/i386/i386-opts.h: New.
18036 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
18037 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
18038 ix86_section_threshold): Remove.
18039 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
18040 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
18041 OPT_mbranch_cost_.
18042 (ix86_option_override_internal): Don't decode strings for options
18043 other than -march=, -mtune= and -mfpmath=. Don't allow for
18044 __attribute__ uses in remaining diagnostics for options with
18045 string arguments. Don't check for integer arguments being negative.
18046 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
18047 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
18048 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
18049 ix86_branch_cost, ix86_section_threshold): Remove.
18050 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
18051 HeaderInclude.
18052 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
18053 but not Var.
18054 (masm=): Use Enum and Init.
18055 (asm_dialect): New Enum and EnumValue entries.
18056 (mbranch-cost=): Use UInteger.
18057 (mlarge-data-threshold=): Use UInteger and Init.
18058 (mcmodel=): Use Enum and Init.
18059 (cmodel): New Enum and EnumValue entries.
18060 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
18061 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
18062 mregparm=): Use UInteger.
18063 (mstringop-strategy=): Use Enum and Init.
18064 (stringop_alg): New Enum and EnumValue entries.
18065 (mtls-dialect=): Use Enum and Init.
18066 (tls_dialect): New Enum and EnumValue entries.
18067 (mabi=): Use Enum and Init.
18068 (calling_abi): New Enum and EnumValue entries.
18069 (mveclibabi=): Use Enum and Init.
18070 (ix86_veclibabi): New Enum and EnumValue entries.
18071
18072 2011-05-13 Nick Clifton <nickc@redhat.com>
18073
18074 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
18075 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
18076
18077 2011-05-13 Kai Tietz <ktietz@redhat.com>
18078
18079 PR middle-end/48984
18080 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
18081 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
18082 (gimple_boolify): Check for cast for boolean_type_node instead for
18083 BOOLEAN_TYPE.
18084
18085 2011-05-13 Richard Guenther <rguenther@suse.de>
18086
18087 PR tree-optimization/48172
18088 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
18089 multiplying by number of iterations for equal step.
18090 (vect_create_cond_for_alias_checks): Likewise.
18091
18092 2011-05-13 Andreas Schwab <schwab@redhat.com>
18093
18094 * configure.ac: Use AS_HELP_STRING throughout.
18095 * configure: Regenerate.
18096
18097 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
18098
18099 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
18100 (ix86_emit_restore_regs_using_mov): Likewise.
18101 (ix86_emit_restore_sse_regs_using_mov): Likewise.
18102
18103 2011-05-12 Anatoly Sokolov <aesok@post.ru>
18104
18105 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
18106 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
18107 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
18108 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
18109 RTX_OK_FOR_OLO10_P): ...here.
18110 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
18111 SYMBOLIC_CONST.
18112
18113 2011-05-12 Kai Tietz <ktietz@redhat.com>
18114
18115 * gimplify.c (gimple_boolify): Re-boolify expression
18116 arguments even if expression type is of kind BOOLEAN_TYPE.
18117 (gimplify_boolean_expr): Removed.
18118 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
18119 and XOR. Additional take care that we keep expression's type.
18120 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
18121 of TRUTH_AND|OR|XOR_EXPR.
18122
18123 2011-05-12 Jakub Jelinek <jakub@redhat.com>
18124
18125 PR tree-optimization/48975
18126 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
18127 on all bbs here and free and clear ifc_bbs at the end.
18128
18129 2011-05-12 Richard Guenther <rguenther@suse.de>
18130
18131 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
18132 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
18133 until after simple checks.
18134 (gimple_types_compatible_p): Likewise.
18135 (iterative_hash_gimple_type): Always hash pointer targets
18136 and function return and argument types.
18137 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
18138 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
18139 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
18140 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
18141 completely in the simple compare section.
18142 (gimple_register_canonical_type): Query the cache again after
18143 registering.
18144
18145 2011-05-12 Richard Guenther <rguenther@suse.de>
18146
18147 PR tree-optimization/48172
18148 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
18149 the number of iterations from the segment size calculation.
18150 (vect_create_cond_for_alias_checks): Adjust.
18151
18152 2011-05-12 Jakub Jelinek <jakub@redhat.com>
18153
18154 PR debug/48967
18155 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
18156 if validate_subreg fails.
18157
18158 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
18159
18160 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
18161 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
18162 early.
18163
18164 2011-05-12 DJ Delorie <dj@redhat.com>
18165
18166 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
18167 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
18168 created builtin into rx_builtins array.
18169 (rx_builtin_decl): New function.
18170 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
18171
18172 2011-05-12 DJ Delorie <dj@redhat.com>
18173 Nick Clifton <nickc@redhat.com>
18174
18175 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
18176 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
18177 (rx_is_legitimate_address): Add pre-decrement and post-increment
18178 addressing in HImode and QImode. Fix test for out of range
18179 REG+INT addressing.
18180 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
18181 (rx_align_for_label): Test label before extracting its usage count.
18182 (rx_adjust_insn_lengths): Fix selection of insn codes.
18183 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
18184
18185 2011-05-11 Jason Merrill <jason@redhat.com>
18186
18187 * tree.c (type_hash_canon): Use struct tree_type_non_common.
18188
18189 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
18190
18191 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
18192 reindent the subsequent block.
18193
18194 2011-05-11 Satoru Takabayashi <satorux@google.com>
18195 Paul Pluzhnikov <ppluzhnikov@google.com>
18196
18197 * doc/install.texi (Configuration): Document --with-linker-hash-style.
18198 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
18199 * config.in: Add LINKER_HASH_STYLE.
18200 * configure.ac: Add --with-linker-hash-style.
18201 * configure: Regenerate.
18202
18203 2011-05-11 Richard Guenther <rguenther@suse.de>
18204
18205 PR middle-end/48964
18206 * gimple.c (iterative_hash_canonical_type): Fix typo.
18207
18208 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
18209
18210 * config/i386/i386.c (legitimize_tls_address)
18211 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
18212 expanders directly for TARGET_GNU2_TLS. Determine pic and
18213 __tls_get_addr symbol reference here. Update call to
18214 gen_tls_global_dynamic_{32,64} for added arguments.
18215 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
18216 expanders directly for TARGET_GNU2_TLS. Determine
18217 __tls_get_addr symbol reference here. Update call to
18218 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
18219 unique UNSPEC REG_EQUIV to libcall block.
18220 (ix86_tls_get_addr): Declare static.
18221 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
18222 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
18223 Do not determine pic and __tls_get_addr symbol reference here. Do not
18224 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
18225 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
18226 (tls_global_dynamic_64): Add operand 2. Do not determine
18227 __tls_get_addr symbol reference here. Do not call
18228 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
18229 (tls_local_dynamic_base64): Ditto for operand 1.
18230
18231 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
18232
18233 * function.c (expand_function_start): Initialize stack_check_probe_note
18234 only if the generic stack checking mechanism is used.
18235
18236 2011-05-11 Richard Guenther <rguenther@suse.de>
18237
18238 PR tree-optimization/15256
18239 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
18240 (A & B) | C, combine (A op CST1) op CST2.
18241 (tree_ssa_forward_propagate_single_use_vars): Only bother to
18242 visit assigns that have uses.
18243
18244 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
18245
18246 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
18247 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
18248 (unpack_ts_type_common_value_fields): ...this. Update comment.
18249 (unpack_value_fields): Adjust for renaming.
18250 (lto_input_ts_type_tree_pointers): Split into...
18251 (lto_input_ts_type_common_tree_pointer): ...this and...
18252 (lto_input_ts_type_non_common_tree_pointers): ...this.
18253 (lto_input_tree_pointers): Adjust for above split.
18254 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
18255 (pack_ts_type_common_value_fields): ...this. Update comment.
18256 (lto_output_ts_type_tree_pointers): Split into...
18257 (lto_output_ts_type_common_tree_pointers): ...this and...
18258 (lto_output_ts_type_non_common_tree_pointers): ...this.
18259 (lto_output_tree_pointers): Adjust for above split.
18260 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
18261 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
18262 * stor-layout.c (vector_type_mode): Adjust location of mode field.
18263 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
18264 Define.
18265 (struct tree_type): Split into...
18266 (struct tree_type_common: ...this and...
18267 (struct tree_type_with_lang_specific): ...this and...
18268 (struct tree_type_non_common): ...this. Adjust accessor macros
18269 accordingly.
18270 (TYPE_VALUES_RAW): Define.
18271 (union tree_node): Update for above changes.
18272 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
18273 TS_TYPE_NON_COMMON.
18274 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
18275 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
18276 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
18277 * treestructu.def (TS_TYPE): Remove.
18278 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
18279 Define.
18280
18281 2011-05-11 Jakub Jelinek <jakub@redhat.com>
18282
18283 PR debug/48159
18284 * tree-ssa.c (reset_debug_uses): New function.
18285 * tree-flow.h (reset_debug_uses): New prototype.
18286 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
18287 * tree-loop-distribution.c (generate_loops_for_partition): Call
18288 reset_debug_uses on the stmts that will be removed. Keep around
18289 all debug stmts, don't count them as bits in partition bitmap.
18290 (generate_builtin): Don't count debug stmts or labels as bits in
18291 partition bitmap.
18292
18293 2011-05-11 Richard Guenther <rguenther@suse.de>
18294
18295 * gimple.c (gimple_type_hash_1): Merge with ...
18296 (gimple_type_hash): ... this.
18297 (gtc_visit): Remove mode parameter and simplify accordingly.
18298 (gimple_types_compatible_p_1): Likewise.
18299 (gimple_types_compatible_p): Likewise.
18300 (iterative_hash_gimple_type): Likewise.
18301 (visit): Likewise.
18302 (gimple_type_eq): Adjust.
18303
18304 2011-05-11 Revital Eres <revital.eres@linaro.org>
18305
18306 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
18307 enters the branch create an anti edge in the opposite direction
18308 to prevent the creation of reg-moves.
18309 * modulo-sched.c: Adjust comment to reflect the fact we are
18310 scheduling closing branch.
18311 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
18312 (stage_count): New field in struct partial_schedule.
18313 (calculate_stage_count): New function.
18314 (normalize_sched_times): Rename to reset_sched_times and handle
18315 incrementing the sched time of the nodes by a constant value
18316 passed as parameter.
18317 (duplicate_insns_of_cycles): Skip closing branch.
18318 (sms_schedule_by_order): Schedule closing branch.
18319 (ps_insn_find_column): Handle closing branch.
18320 (sms_schedule): Call reset_sched_times and adjust the code to
18321 support scheduling of the closing branch.
18322 (ps_insert_empty_row): Update calls to normalize_sched_times
18323 and rotate_partial_schedule functions.
18324
18325 2011-05-11 Richard Guenther <rguenther@suse.de>
18326
18327 PR middle-end/48953
18328 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
18329
18330 2011-05-11 Joseph Myers <joseph@codesourcery.com>
18331
18332 * opts.c (finish_options): Move warning settings from process_options.
18333 * toplev.c (process_options): Move warning settings to finish_options.
18334
18335 2011-05-11 Richard Guenther <rguenther@suse.de>
18336
18337 PR tree-optimization/18041
18338 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
18339 (simplify_bitwise_binary): ... this. Handle operand conversions
18340 by applying them to the result instead.
18341 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
18342
18343 2011-05-11 Richard Guenther <rguenther@suse.de>
18344
18345 * gimple.c (gimple_canonical_types_compatible_p): Split out
18346 from gimple_types_compatible_p and friends. Do not recurse
18347 to pointed-to types.
18348 (gimple_canonical_type_eq): Use it.
18349 (iterative_hash_canonical_type): Split out from
18350 iterative_hash_gimple_type and friends. Do not recurse
18351 to pointed-to types.
18352 (gimple_canonical_type_hash): Use it, allocate the hash here.
18353
18354 2011-05-11 Revital Eres <revital.eres@linaro.org>
18355
18356 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
18357 recognizing doloop.
18358
18359 2011-05-11 Revital Eres <revital.eres@linaro.org>
18360
18361 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
18362 instead of PREV_INSN.
18363
18364 2011-05-11 Revital Eres <revital.eres@linaro.org>
18365
18366 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
18367 * loop-doloop.c (doloop_condition_get): Likewise.
18368 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
18369 (doloop_end): New.
18370 * config/arm/arm.md (*addsi3_compare0): Remove "*".
18371
18372 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
18373
18374 * tree.def (CASE_LABEL_EXPR): Add an operand.
18375 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
18376
18377 2011-05-10 Joseph Myers <joseph@codesourcery.com>
18378
18379 * c-decl.c (c_override_global_bindings_to_false): Remove.
18380 (global_bindings_p): Don't check
18381 c_override_global_bindings_to_false.
18382 * c-tree.h (c_override_global_bindings_to_false): Remove.
18383 * c-typeck.c (composite_type): Don't set
18384 c_override_global_bindings_to_false.
18385
18386 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
18387
18388 PR target/48857, 48495
18389 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
18390 (VSX_MODE): Ditto.
18391 (VSX_MOVE_MODE): Ditto.
18392 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
18393 VSX vector types. Add V2DImode.
18394 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
18395 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
18396 (MODES_TIEABLE_P): Ditto.
18397
18398 * config/rs6000/rs6000.c (rs6000_emit_move): Use
18399 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
18400 VSX_VECTOR_MODE.
18401 (init_cumulative_args): Ditto.
18402 (rs6000_function_arg_boundary): Ditto.
18403 (rs6000_function_arg_advance_1): Ditto.
18404 (rs6000_function_arg): Ditto.
18405 (rs6000_function_ok_for_sibcall): Ditto.
18406 (emit_frame_save): Ditto.
18407 (rs6000_function_value): Ditto.
18408 (rs6000_libcall_value): Ditto.
18409
18410 2011-05-10 Joseph Myers <joseph@codesourcery.com>
18411
18412 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
18413 i386/darwin-lib.h to $libgcc_tm_file.
18414 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
18415
18416 2011-05-10 Joseph Myers <joseph@codesourcery.com>
18417
18418 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
18419
18420 2011-05-10 Joseph Myers <joseph@codesourcery.com>
18421
18422 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
18423 * config/rs6000/rs6000-tables.opt: New file (generated).
18424 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
18425 rs6000/rs6000-tables.opt to extra_options.
18426 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
18427 * config/rs6000/rs6000.c (rs6000_select): Remove.
18428 (processor_target_table): Move contents to rs6000-cpus.def.
18429 (darwin_rs6000_override_options): Check
18430 global_options_set.x_rs6000_cpu_index instead of
18431 rs6000_select[1].string.
18432 (rs6000_option_override_internal): Likewise.
18433 (rs6000_handle_option): Don't assert that global structures are in
18434 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
18435 (rs6000_default_cpu): New variable.
18436 (rs6000_file_start): Set it instead of local default_cpu. Check
18437 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
18438 global_options_set.x_rs6000_tune_index instead of rs6000_select.
18439 (rs6000_darwin_file_start): Check rs6000_default_cpu and
18440 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
18441 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
18442 rs6000_select): Remove.
18443 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
18444 Remove.
18445 (mcpu=, mtune=): Use Var, Init, Enum and Save.
18446 * config/rs6000/t-rs6000
18447 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
18448 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
18449 global_options_set.x_rs6000_cpu_index instead of
18450 rs6000_select[1].string.
18451 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
18452 global_options_set.x_rs6000_cpu_index instead of
18453 rs6000_select[1].string.
18454
18455 2011-05-10 Joseph Myers <joseph@codesourcery.com>
18456
18457 * config.gcc (libgcc_tm_file): Define instead of including files
18458 from ../../libgcc/config/ in tm_file.
18459 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
18460 * configure: Regenerate.
18461 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
18462 libgcc_tm.h, cs-libgcc_tm.h): New.
18463 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
18464 (clean): Remove libgcc_tm.h.
18465 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
18466 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
18467 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
18468
18469 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
18470
18471 PR target/48896
18472 * config/avr/avr.c (avr_ret_register): Return unsigned int
18473 instead of int.
18474 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
18475 it to avr_libcall_value.
18476 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
18477 expand_expr.
18478 (avr_expand_binop_builtin): Ditto.
18479 (avr_expand_unop_builtin): Ditto.
18480
18481 2011-05-10 DJ Delorie <dj@redhat.com>
18482
18483 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
18484 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
18485 * config/rx/rx.c (rx_align_for_label): Add label and
18486 uses_threshold parameters. Do not align when the label is not
18487 used enough.
18488 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
18489
18490 2011-05-10 Richard Guenther <rguenther@suse.de>
18491
18492 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
18493 a series of conversions and apply foldings similar to what
18494 fold-const does.
18495 (tree_ssa_forward_propagate_single_use_vars): Call it.
18496
18497 2011-05-10 Jakub Jelinek <jakub@redhat.com>
18498
18499 PR tree-optimization/48611
18500 PR tree-optimization/48794
18501 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
18502 referenced from RESX or EH_DISPATCH arguments.
18503
18504 PR debug/48928
18505 * dfp.c (decimal_to_decnumber): Handle conversion from
18506 dconst{1,2,m1,half}.
18507
18508 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
18509
18510 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
18511 for !flag_prefer_avx128.
18512 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
18513
18514 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
18515
18516 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
18517 (fold_ternary_loc): Use expr_location_or.
18518
18519 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
18520
18521 PR debug/48853
18522 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
18523 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
18524 Pmode and mem_mode is not VOIDmode.
18525
18526 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
18527
18528 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
18529 TYPE_QUAL_RESTRICT): Convert to enum.
18530
18531 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
18532
18533 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
18534 (const_pow2_1_to_8_operand): Ditto.
18535 (const_pow2_1_to_128_operand): Ditto.
18536 (const_pow2_1_to_32768_operand): Ditto.
18537 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
18538 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
18539 in insn constraint to check integer value of operand 3.
18540 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
18541
18542 (PINSR_MODE): New mode iterator.
18543 (sse2p4_1): New mode attribute.
18544 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
18545 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
18546 iterator. Use const_int_operand instead of
18547 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
18548 exact_log2 in insn constraint to check integer value of operand 3.
18549
18550 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
18551
18552 * config/i386/sse.md (blendbits): Remove mode attribute.
18553 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
18554 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
18555 Check integer value of operand 3 in insn constraint.
18556
18557 2011-05-09 Richard Guenther <rguenther@suse.de>
18558
18559 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
18560 for diagnostics.
18561 (lto_symtab_merge): Likewise. Do not register types here.
18562 (lto_symtab_merge_decls_2): Likewise.
18563 (lto_symtab_merge_decls_1): Likewise.
18564 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
18565 * gimple.c (enum gtc_mode): Declare.
18566 (gimple_types_compatible_p): Make static.
18567
18568 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18569
18570 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
18571 temporary register to match Pmode.
18572
18573 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
18574
18575 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
18576 and *vec_concatv4si_1_avx.
18577
18578 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
18579
18580 PR rtl-optimization/48927
18581 * ira-conflicts.c (commutative_constraint_p): Use
18582 recog_data.alternative_enabled_p to disable alternatives where
18583 "enabled" attribute is false.
18584 (get_dup_num): Ditto.
18585 * ira-lives.c (single_reg_class): Ditto.
18586 (ira_implicitly_set_insn_hard_regs): Ditto.
18587
18588 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
18589
18590 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
18591 (dataflow_set_preserve_mem_locs): Likewise.
18592
18593 2011-05-09 Philipp Thomas <pth@suse.de>
18594
18595 * config/mep/mep.c (mep_validate_vliw): Syntax description
18596 should not be translated.
18597
18598 2011-05-09 Joseph Myers <joseph@codesourcery.com>
18599
18600 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
18601 * config/mips/mips-tables.opt: New file (generated).
18602 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
18603 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
18604 MIPS_ARCH_OPTION_NATIVE): Define.
18605 * config/mips/mips.c (mips_cpu_info_table): Move contents to
18606 mips-cpus.def.
18607 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
18608 mips_parse_cpu): Remove.
18609 (mips_cpu_info_from_opt, mips_default_arch): New.
18610 (mips_handle_option): Don't assert that global structures are in
18611 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
18612 (mips_option_override): Use new variables and functions to set
18613 state of these options. Use strcmp to check for individual CPU names.
18614 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
18615 definition.
18616 * config/mips/mips.opt (march=): Use ToLower and Enum.
18617 (mips): Use ToLower, Enum and Var.
18618 (mtune=): Use ToLower and Enum.
18619 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
18620
18621 2011-05-08 Jan Hubicka <jh@suse.cz>
18622
18623 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
18624 Arrange type pairs to be UID ordered.
18625 (gimple_lookup_type_leader): Make inline.
18626
18627 2011-05-09 Nick Clifton <nickc@redhat.com>
18628
18629 PR target/48899
18630 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
18631 PROCESSOR_DEFAULT.
18632
18633 PR target/48897
18634 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
18635 variable 's'.
18636
18637 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
18638
18639 * combine.c (simplify_comparison): Abstract out parts into...
18640 (simplify_compare_const): ... new function.
18641 (try_combine): Generalize parallel arithmetic/compare combining
18642 to call simplify_compare_const() and CANONICALIZE_COMPARE().
18643
18644 2011-05-08 Jan Hubicka <jh@suse.cz>
18645
18646 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
18647 (cgraph_create_virtual_clone): Call hooks once virtual clone
18648 is finished.
18649 * cgraph.h (cgraph_clone_node): Update prototype.
18650 * ipa-cp.c (ipcp_estimate_growth): Use
18651 estimate_ipcp_clone_size_and_time.
18652 * ipa-inline-transform.c (clone_inlined_nodes): Update.
18653 * lto-cgraph.c (input_node): Update.
18654 * ipa-inline.c (recursive_inlining): Update.
18655 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
18656 (evaluate_conditions_for_known_args): Break out from ...
18657 (evaluate_conditions_for_edge): ... here.
18658 (evaluate_conditions_for_ipcp_clone): New function.
18659 (inline_node_duplication_hook): Update clone summary based
18660 on parameter map.
18661 (estimate_callee_size_and_time): Rename to ...
18662 (estimate_node_size_and_time): take NODE instead of EDGE;
18663 take POSSIBLE_TRUTHS as argument.
18664 (estimate_callee_size_and_time): Update.
18665 (estimate_ipcp_clone_size_and_time): New function.
18666 (do_estimate_edge_time): Update.
18667
18668 2011-05-08 Richard Guenther <rguenther@suse.de>
18669
18670 PR middle-end/48908
18671 PR middle-end/48905
18672 * expmed.c (expand_shift_1): Compute adjusted constant shift
18673 amount manually.
18674
18675 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
18676
18677 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
18678
18679 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
18680
18681 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
18682
18683 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
18684
18685 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
18686
18687 2011-05-07 Jan Hubicka <jh@suse.cz>
18688
18689 * ipa-inline-transform.c (inline_call): Account when program size
18690 decreases.
18691 * ipa-inline.c (relative_time_benefit): New function.
18692 (edge_badness): Reorganize to be power 2 based; fix thinko when
18693 computing badness for negative growth; update comments to match
18694 reality; better dumps.
18695
18696 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
18697
18698 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
18699 type to bool and adjust comment.
18700 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
18701 (fold_mathfn_compare): Remove calls to global_bindings_p.
18702 (fold_inf_compare): Likewise.
18703 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
18704 * c-tree.h (global_bindings_p): Adjust prototype.
18705 * c-decl.c (global_bindings_p): Return bool and simplify.
18706
18707 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
18708
18709 PR tree-optimization/48837
18710 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
18711 when accumulator transformation is performed.
18712
18713 2011-05-06 Jan Hubicka <jh@suse.cz>
18714
18715 * i386.h (ix86_tune_indices): Add
18716 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
18717 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
18718 * i386.c (initial_ix86_tune_features): Add
18719 X86_SOFTARE_PREFETCHING_BENEFICIAL.
18720 (software_prefetching_beneficial_p): Remove predicate.
18721 (ix86_option_override_internal): Use new macro.
18722
18723 2011-05-06 Jan Hubicka <jh@suse.cz>
18724
18725 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
18726
18727 2011-05-06 Jan Hubicka <jh@suse.cz>
18728
18729 * cgraph.c (cgraph_add_thunk): Create real function node instead
18730 of alias node; finalize it and mark needed/reachale; arrange visibility
18731 to be right and add it into the corresponding same comdat group list.
18732 (dump_cgraph_node): Dump thunks.
18733 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
18734 cgraph_function_with_gimple_body_p,
18735 cgraph_first_function_with_gimple_body,
18736 cgraph_next_function_with_gimple_body): New functions.
18737 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
18738 New macros.
18739 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
18740 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
18741 * cgraphunit.c (cgraph_finalize_function): Only look into possible
18742 devirtualization when optimizing.
18743 (verify_cgraph_node): Verify thunks.
18744 (cgraph_analyze_function): Analyze thunks.
18745 (cgraph_mark_functions_to_output): Output thunks only in combination
18746 with function they are assigned to.
18747 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
18748 alias into normal node.
18749 (assemble_thunks): New functoin.
18750 (cgraph_expand_function): Use it.
18751 * lto-cgraph.c (lto_output_node): Stream thunks.
18752 (input_overwrite_node): Stream in thunks.
18753 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
18754 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
18755 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
18756 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
18757 (inline_analyze_function): Do not care about thunk jump functions.
18758 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
18759 * ipa-prop.c (ipa_prop_write_jump_functions): Use
18760 cgraph_function_with_gimple_body_p.
18761 * passes.c (do_per_function_toporder): Use
18762 cgraph_function_with_gimple_body_p.
18763 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
18764 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
18765 (function_called_by_processed_nodes_p): Likewise.
18766
18767 2011-05-06 Joseph Myers <joseph@codesourcery.com>
18768
18769 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
18770 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
18771 entries.
18772 (mabi=): Replace with separate entries for mabi=altivec,
18773 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
18774 mabi=ieeelongdouble and mabi=ibmlongdouble.
18775 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
18776 check for -mabi=spe without SPE ABI support here.
18777 (rs6000_handle_option): Replace OPT_mabi_ handling with
18778 OPT_mabi_altivec and OPT_mabi_spe handling.
18779
18780 2011-05-06 Cary Coutant <ccoutant@google.com>
18781
18782 * dwarf2out.c (contains_subprogram_definition): New function.
18783 (should_move_die_to_comdat): Call it.
18784
18785 2011-05-06 Jeff Law <law@redhat.com>
18786
18787 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
18788 remove_ctrl_stmt_and_useless_edges.
18789 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
18790 (fixup_template_block, thread_single_edge): Likewise.
18791 (mark_threaded_blocks): Use THREAD_TARGET.
18792
18793 2011-05-06 Alan Modra <amodra@gmail.com>
18794
18795 PR target/48900
18796 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
18797 const0_rtx as the arg to the dummy __tls_get_addr libcall.
18798
18799 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
18800
18801 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
18802 constraint modifier to "r".
18803
18804 2011-05-06 Joseph Myers <joseph@codesourcery.com>
18805
18806 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
18807 fall through for OPT_mcmodel_.
18808
18809 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18810
18811 * config/s390/s390.c (s390_asm_trampoline_template): Comment
18812 instruction sizes.
18813 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
18814
18815 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18816
18817 PR target/47930
18818 * config/arm/arm.opt (marm): Document it.
18819 (mthumb): Reject negative variant.
18820
18821 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
18822
18823 PR target/48898
18824 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
18825 Fix typo in "ccvt" variable name.
18826
18827 2011-05-06 Tristan Gingold <gingold@adacore.com>
18828
18829 PR target/48895
18830 * config/vms/vms-ar.c (main): Remove cwd variable.
18831
18832 2011-05-06 Jakub Jelinek <jakub@redhat.com>
18833
18834 PR debug/48902
18835 * var-tracking.c (prepare_call_arguments): Move else before #endif.
18836
18837 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
18838
18839 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
18840 * gimplify.c (gimplify_switch_expr): Likewise.
18841 * omp-low.c (expand_omp_sections): Likewise.
18842 * tree-eh.c (lower_try_finally_switch): Likewise.
18843 (lower_eh_dispatch): Likewise.
18844 * tree.h (build_case_label): Declare.
18845 * tree.c (build_case_label): Define.
18846
18847 2011-05-05 Jason Merrill <jason@redhat.com>
18848
18849 PR c++/40975
18850 * tree-inline.c (copy_tree_r): Use copy_statement_list.
18851 (copy_statement_list): Don't recurse.
18852 * stor-layout.c (copy_self_referential_tree_r): Don't allow
18853 STATEMENT_LIST.
18854
18855 2011-05-05 Joseph Myers <joseph@codesourcery.com>
18856
18857 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
18858 through from -mfpu= handling.
18859 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
18860
18861 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
18862
18863 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
18864 POST_MODIFY.
18865
18866 2011-05-05 Steve Ellcey <sje@cup.hp.com>
18867
18868 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
18869 for 11.31.
18870 (hppa[12]*-*-hpux11*): Ditto.
18871 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
18872 * config/ia64/hpux-unix2003.h: New.
18873 * config/pa/pa-hpux1131.opt: New.
18874 * config/pa/pa-hpux1131.h: New.
18875 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
18876 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
18877 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
18878
18879 2011-05-05 Jakub Jelinek <jakub@redhat.com>
18880
18881 PR debug/48853
18882 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
18883 instead of mode as 3rd argument to recursive call.
18884 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
18885 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
18886 VOIDmode.
18887 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
18888 don't give up if mode is Pmode and mem_mode is not VOIDmode.
18889 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
18890 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
18891
18892 2011-05-05 Julian Brown <julian@codesourcery.com>
18893
18894 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
18895 parenthesis in D-register case.
18896
18897 2011-05-05 Joseph Myers <joseph@codesourcery.com>
18898
18899 * opt-functions.awk (var_type_struct): Handle Enum options.
18900 * optc-gen.awk: Don't check range of variables of character type.
18901 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
18902 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
18903 rs6000_sdata_name, rs6000_explicit_options): Remove.
18904 (rs6000_option_override_internal): Check for -malign-power here.
18905 Use global_options_set instead of rs6000_explicit_options.
18906 (rs6000_parse_fpu_option): Remove.
18907 (rs6000_handle_option): Access variables via opts and opts_set
18908 pointers. Use error_at and warning_at. Add fall-through
18909 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
18910 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
18911 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
18912 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
18913 here. Don't use rs6000_parse_fpu_option.
18914 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
18915 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
18916 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
18917 (mrecip=): Use Var.
18918 (mspe): Use Var and Save.
18919 (mtraceback=): Use Enum and Var.
18920 (rs6000_traceback_type): New Enum and EnumValue entries.
18921 (mfloat-gprs=): Use Enum, Var and Save.
18922 (rs6000_float_gprs): New Enum and EnumValue entries.
18923 (mlong-double-): use Var and Save.
18924 (msched-costly-dep=, minsert-sched-nops=): Use Var.
18925 (malign-): Use Enum and Var.
18926 (rs6000_alignment_flags): New Enum and EnumValue entries.
18927 (mfpu=): Use Enum.
18928 (fpu_type_t): New Enum and EnumValue entries.
18929 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18930 global_options_set instead of rs6000_explicit_options.
18931 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18932 global_options_set instead of rs6000_explicit_options.
18933 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18934 global_options_set instead of rs6000_explicit_options.
18935 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18936 global_options_set instead of rs6000_explicit_options.
18937 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
18938 global_options_set instead of rs6000_explicit_options.
18939 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18940 global_options_set instead of rs6000_explicit_options.
18941 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
18942 definition.
18943 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18944 global_options_set instead of rs6000_explicit_options.
18945 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
18946 (rs6000_cmodel): New Enum and EnumValue entries.
18947 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18948 global_options_set instead of rs6000_explicit_options.
18949 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
18950 (mtls-size=): Use Enum and Var.
18951 (rs6000_tls_size): New Enum and EnumValue entries.
18952
18953 2011-05-05 Michael Matz <matz@suse.de>
18954
18955 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
18956 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
18957 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
18958 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
18959 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
18960 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
18961 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
18962 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
18963 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
18964 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
18965 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
18966 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
18967 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
18968 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
18969 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
18970 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
18971
18972 2011-05-05 Richard Guenther <rguenther@suse.de>
18973
18974 * expmed.c (expand_variable_shift): Rename to ...
18975 (expand_shift_1): ... this. Take an expanded shift amount.
18976 For rotates recurse directly not building trees for the shift amount.
18977 (expand_variable_shift): Wrap around expand_shift_1.
18978 (expand_shift): Adjust.
18979
18980 2011-05-05 Jakub Jelinek <jakub@redhat.com>
18981
18982 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
18983
18984 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
18985
18986 * tree.h (get_pending_sizes): Remove prototype.
18987 (put_pending_size): Likewise.
18988 (put_pending_sizes): Likewise.
18989 * stor-layout.c (pending_sizes): Delete.
18990 (get_pending_sizes): Likewise.
18991 (put_pending_size): Likewise.
18992 (put_pending_sizes): Likewise.
18993 (variable_size): Do not call put_pending_size and tidy up.
18994 * function.h (struct function): Remove dont_save_pending_sizes_p.
18995 * lto-streamer-in.c (input_function): Do not stream it.
18996 * lto-streamer-out.c (output_function): Likewise.
18997 * tree-inline.c (initialize_cfun): Do not copy it.
18998 * c-decl.c (store_parm_decls): Do not set it.
18999 * omp-low.c (create_task_copyfn): Likewise.
19000 * tree-optimize.c (tree_rest_of_compilation): Likewise.
19001
19002 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
19003
19004 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
19005 conditions.
19006 (*movdf_internal): Ditto.
19007 (*movdf_internal_nointeger): Ditto.
19008 (*movsf_internal): Ditto.
19009
19010 2011-05-05 Joseph Myers <joseph@codesourcery.com>
19011
19012 * c-decl.c (finish_decl): Don't call get_pending_sizes.
19013 (grokparm): Add parameter expr. Pass it to grokdeclarator.
19014 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
19015 (c_variable_size): Remove.
19016 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
19017 call put_pending_sizes.
19018 (get_parm_info): Add parameter expr. Use it to set
19019 arg_info->pending_sizes.
19020 (store_parm_decls): Use arg_info->pending_sizes instead or calling
19021 get_pending_sizes.
19022 * c-parser.c (c_parser_parms_declarator): Update call to
19023 c_parser_parms_list_declarator.
19024 (c_parser_parms_list_declarator): Take parameter expr. Update
19025 call to push_parm_decl. Update recursive call. Don't call
19026 get_pending_sizes. Update calls to get_parm_info.
19027 (c_parser_objc_method_definition): Update calls to
19028 c_parser_objc_method_decl and objc_start_method_definition.
19029 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
19030 (c_parser_objc_method_decl): Add parameter expr. Update call to
19031 grokparm.
19032 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
19033 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
19034 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
19035
19036 2011-05-05 Michael Hope <michael.hope@linaro.org>
19037
19038 PR pch/45979
19039 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
19040 __ARM_EABI__ hosts.
19041
19042 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19043
19044 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
19045 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
19046 (spu_output_mi_thunk): New function.
19047
19048 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19049
19050 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
19051 targetm.asm_out.print_operand.
19052 * config/sol2.c: Include target.h.
19053
19054 2011-05-04 Jan Hubicka <jh@suse.cz>
19055
19056 * ipa-inline.c (reset_edge_caches): New function.
19057 (update_caller_keys): Add check_inlinablity_for; do not
19058 reset edge caches; remove now unnecesary loop.
19059 (update_callee_keys): Add comments; reset node_growth_cache of callee.
19060 (update_all_callee_keys): Likewise.
19061 (inline_small_functions): Sanity check cache; update code
19062 recomputing it.
19063
19064 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
19065
19066 PR rtl-optimization/47612
19067 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
19068 as the last insn of the sequence to be moved.
19069
19070 2011-05-04 Tobias Burnus <burnus@net-b.de>
19071
19072 PR fortran/48864
19073 * doc/invoke.texi (Ofast): Document that it
19074 enables Fortran's -fno-protect-parens.
19075
19076 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
19077
19078 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
19079
19080 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
19081
19082 * stor-layout.c (variable_size): Do not issue errors.
19083
19084 2011-05-04 Richard Guenther <rguenther@suse.de>
19085
19086 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
19087 for array-ref indices.
19088 (tree_coverage_counter_addr): Likewise.
19089 (build_fn_info_type): Use size_int for index types.
19090 (build_gcov_info): Likewise.
19091
19092 2011-05-04 Richard Guenther <rguenther@suse.de>
19093
19094 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
19095 to build_int_cst.
19096 * c-typeck.c (really_start_incremental_init): Use bitsize_int
19097 for constructor indices.
19098 (push_init_level): Likewise.
19099
19100 2011-05-04 Richard Guenther <rguenther@suse.de>
19101
19102 * explow.c (promote_mode): Move variable declarations before code.
19103
19104 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
19105
19106 * tree.h (build_function_type_array): Declare.
19107 (build_varargs_function_type_array): Declare.
19108 (build_function_type_vec, build_varargs_function_type_vec): Define.
19109 * tree.c (build_function_type_array_1): New function.
19110 (build_function_type_array): New function.
19111 (build_varargs_function_type_array): New function.
19112
19113 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
19114
19115 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
19116 before setting STMT_VINFO_TYPE.
19117
19118 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19119
19120 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
19121 instead of spu_pass_by_reference.
19122
19123 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19124
19125 * calls.c (emit_library_call_value_1): Invoke
19126 promote_function_mode hook on libcall arguments.
19127 * explow.c (promote_function_mode, promote_mode): Handle TYPE
19128 argument being NULL.
19129 * targhooks.c (default_promote_function_mode): Lisewise.
19130 * config/s390/s390.c (s390_promote_function_mode): Likewise.
19131 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
19132
19133 * doc/tm.texi: Document that TYPE argument might be NULL.
19134
19135 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
19136
19137 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
19138
19139 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
19140
19141 From Bernd Schmidt
19142 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
19143
19144 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19145
19146 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
19147 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
19148 Move ...
19149 * mips-tfile.c: ... here.
19150 Don't include coretypes.h, tm.h, filenames.h.
19151 (saber_stop): Remove definition and all calls.
19152 [__SABER__]: Remove.
19153 (__LINE__): Remove default.
19154 (Size_t, Ptrdiff_t): Remove definitions.
19155 Replace by size_t, ptrdiff_t.
19156 [!MIPS_DEBUGGING_INFO]: Remove.
19157 (SHASH_SIZE, THASH_SIZE): Remove defaults.
19158 (progname): Add const.
19159 (STATIC): Remove.
19160 Replace all uses by static.
19161 (ALIGN_SYMTABLE_OFFSET): Remove default.
19162 * mips-tdump.c: Don't include coretypes.h, tm.h.
19163 Remove !MIPS_IS_STAB guard.
19164 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
19165 $(TM_H), filenames.h dependencies.
19166 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
19167
19168 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
19169
19170 From Jie Zhang
19171 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
19172 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
19173
19174 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
19175
19176 From Bernd Schmidt
19177 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
19178 account and save/restore RETS.
19179 (PROFILE_BEFORE_PROLOGUE): Define.
19180 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
19181 the push insn to use predecrement.
19182
19183 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
19184
19185 From Jie Zhang
19186 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
19187
19188 2011-05-04 Nick Clifton <nickc@redhat.com>
19189
19190 * config/mn10300/mn10300.c: Include cfgloop.h.
19191 (DUMP): New macro.
19192 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
19193 Lcc or a FLcc insn into the instruction stream.
19194 (mn10300_block_contains_call): New function. Returns true if the
19195 given basic block contains a CALL insn.
19196 (mn10300_loop_contains_call_insn): New function. Returns true if
19197 the given loop contains a CALL insn.
19198 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
19199 to use the SETLB and Lcc or FLcc insns.
19200 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
19201 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
19202 * config/mn10300/mn10300.opt (msetlb): New option. Used to
19203 disable the SETLB optimization.
19204 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
19205 __SETLB__ or __NO_SETLB__.
19206 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
19207 (movsf_internal): Handle MDR register.
19208 (cmpsi): Make visible.
19209 (setlb): New pattern.
19210 (Lcc): New pattern.
19211 (FLcc): New pattern.
19212
19213 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
19214
19215 PR target/48860
19216 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
19217 for reg<->xmm moves.
19218 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
19219 (vec_concatv2di_rex64_sse): Ditto.
19220 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
19221 (*vec_extractv2di_1_rex64): Ditto.
19222
19223 Revert:
19224 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
19225
19226 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
19227 reg<->xmm moves.
19228 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
19229
19230 2011-05-04 Richard Guenther <rguenther@suse.de>
19231
19232 * tree.h (int_const_binop): Remove notrunc argument.
19233 * fold-const.c (int_const_binop): Remove notrunc argument. Always
19234 create integer constants that are properly truncated.
19235 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
19236 (const_binop): Remove zero notrunc argument to int_const_binop.
19237 (size_binop_loc): Likewise.
19238 (fold_div_compare): Likewise.
19239 (maybe_canonicalize_comparison_1): Likewise.
19240 (fold_comparison): Likewise.
19241 (fold_binary_loc): Likewise.
19242 (multiple_of_p): Likewise.
19243 * expr.c (store_constructor): Likewise.
19244 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
19245 (maybe_fold_stmt_addition): Likewise.
19246 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
19247 * stor-layout.c (layout_type): Likewise.
19248 * tree-data-ref.c (tree_fold_divides_p): Likewise.
19249 * tree-sra.c (build_ref_for_offset): Likewise.
19250 (build_user_friendly_ref_for_offset): Likewise.
19251 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
19252 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
19253 * tree-ssa-loop-niter.c (inverse): Likewise.
19254 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
19255 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
19256 * tree-switch-conversion.c (check_range): Likewise.
19257 (build_constructors): Likewise.
19258 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
19259 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
19260 (extract_range_from_assert): Likewise.
19261 (vrp_int_const_binop): Likewise.
19262 (extract_range_from_binary_expr): Likewise.
19263 (extract_range_from_unary_expr): Likewise.
19264 (check_array_ref): Likewise.
19265 (find_case_label_range): Likewise.
19266 (simplify_div_or_mod_using_ranges): Likewise.
19267 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
19268 comparing case labels for merging.
19269
19270 2011-05-03 Mark Wielaard <mjw@redhat.com>
19271
19272 * dwarf2out.c (debug_str_hash_forced): Removed.
19273 (gen_label_for_indirect_string): Removed.
19274 (get_debug_string_label): Removed.
19275 (AT_string_form): Generate label directly.
19276 (output_indirect_string): Test indirect_string_node for
19277 DW_FORM_strp instead of checking label and refcount.
19278 (prune_indirect_string): Removed.
19279 (prune_unused_types): Don't check debug_str_hash_forced or
19280 call prune_indirect_string.
19281
19282 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
19283
19284 PR other/48093
19285 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
19286
19287 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
19288
19289 PR debug/47994
19290 PR debug/47919
19291 * combine.c (try_combine): Skip debug insns at m_split tests.
19292
19293 2011-04-26 Mark Wielaard <mjw@redhat.com>
19294
19295 PR42288
19296 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
19297 when info_section_emitted.
19298
19299 2011-05-03 Joseph Myers <joseph@codesourcery.com>
19300
19301 * config/mips/mips-opts.h: New.
19302 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
19303 to mips-opts.h.
19304 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
19305 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
19306 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
19307 via opts pointer.
19308 * config/mips/mips.h (enum mips_code_readable_setting): Move to
19309 mips-opts.h.
19310 (mips_abi, mips_code_readable): Don't declare.
19311 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
19312 (mabi=): Use Enum and Var.
19313 (mips_abi): New Enum and EnumValue entries.
19314 (mcode-readable=): Use Enum and Var.
19315 (mips_code_readable_setting): New Enum and EnumValue entries.
19316 (mr10k-cache-barrier=): Use Enum and Var.
19317 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
19318
19319 2011-05-03 Jan Hubicka <jh@suse.cz>
19320
19321 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
19322 replace hash by pointer map.
19323 (cgraph_node_set_element_def, cgraph_node_set_element,
19324 const_cgraph_node_set_element, varpool_node_set_element_def,
19325 varpool_node_set_element, const_varpool_node_set_element): Remove.
19326 (free_cgraph_node_set, free_varpool_node_set): New function.
19327 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
19328 * tree-emutls.c: Free varpool node set.
19329 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
19330 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
19331 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
19332 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
19333 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
19334 Move here from ipa.c; implement using pointer_map
19335 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
19336 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
19337 debug_cgraph_node_set, varpool_node_set_new,
19338 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
19339 dump_varpool_node_set, debug_varpool_node_set):
19340 Move to ipa-uitls.c.
19341 * passes.c (ipa_write_summaries): Update.
19342
19343 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
19344
19345 From Mike Frysinger:
19346 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
19347 bf542/bf544/bf547/bf548/bf549.
19348
19349 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
19350
19351 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
19352
19353 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
19354
19355 From Bernd Schmidt:
19356 * config/bfin/bfin.md (MOVCC): New mode_macro.
19357 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
19358 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
19359 comments from generated assembly.
19360
19361 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
19362
19363 From Bernd Schmidt
19364 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
19365 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
19366 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
19367 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
19368 * config/bfin/lib1funcs.asm (___muldi3): New function.
19369
19370 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19371
19372 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
19373 build_function_type_list instead of build_function_type.
19374 Rearrange initialization of `args' to do so.
19375
19376 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19377
19378 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
19379 instead of build_function_type.
19380
19381 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19382
19383 * config/rs6000/rs6000.c (spe_init_builtins): Call
19384 build_function_type_list instead of build_function_type.
19385 (paired_init_builtins, altivec_init_builtins): Likewise.
19386 (builtin_function_type): Likewise.
19387
19388 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19389
19390 * config/sh/sh.c (sh_media_init_builtins): Call
19391 build_function_type_list instead of build_function_type.
19392
19393 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19394
19395 * config/sparc/sparc.c (sparc_file_end): Call
19396 build_function_type_list instead of build_function_type.
19397
19398 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19399
19400 * config/alpha/alpha.c (alpha_init_builtins): Call
19401 build_function_type_list instead of build_function_type.
19402
19403 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19404
19405 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
19406 build_function_type_list instead of build_function_type.
19407
19408 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19409
19410 * config/iq2000/i2000.c (iq2000_init_builtins): Call
19411 build_function_type_list instead of build_function_type.
19412 Delete `endlink' variable.
19413
19414 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19415
19416 * config/avr/avr.c (avr_init_builtins): Call
19417 build_function_type_list instead of build_function_type.
19418
19419 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19420
19421 * config/picochip/picochip.c (picochip_init_builtins): Call
19422 build_function_type_list instead of build_function_type.
19423 Delete `endlink' variable.
19424
19425 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19426
19427 * config/bfin/bfin.c (bfin_init_builtins): Call
19428 build_function_type_list instead of build_function_type.
19429
19430 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
19431
19432 From Bernd Schmidt
19433 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
19434 that's not CONST_INT. Seemingly redundant check is due to PR39768.
19435
19436 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
19437
19438 From Jie Zhang:
19439 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
19440 libbffastfp overrides libgcc when -mfast-fp.
19441
19442 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
19443
19444 Originally from Bernd Schmidt
19445 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
19446 * config/bfin/bfin.c (override_options): Test it and error if
19447 TARGET_FDPIC.
19448
19449 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
19450
19451 Originally From Bernd Schmidt
19452 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
19453 FD-PIC.
19454
19455 2011-05-03 Jeff Law <law@redhat.com>
19456
19457 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
19458 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
19459 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
19460 than accessing AUX field directly. Free the AUX field before
19461 clearing it.
19462 (thread_block, thread_through_loop_header): Likewise.
19463 (thread_single_edge, mark_threaded_blocks): Likewise.
19464 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
19465 (register_jump_thread): Do not attempt to thread to a NULL edge.
19466
19467 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
19468
19469 * function.c (init_function_start): Call decide_function_section.
19470 * varasm.c (decide_function_section): New function.
19471 (assemble_start_function): When not using
19472 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
19473 or first_function_block_is_cold.
19474 * rtl.h (decide_function_section): Declare.
19475
19476 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
19477 Jakub Jelinek <jakub@redhat.com>
19478
19479 PR target/48774
19480 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
19481 only succeed if req_mode is the same as set_mode.
19482
19483 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
19484
19485 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
19486 * genemit.c (gen_exp): Handle RETURN.
19487 * emit-rtl.c (verify_rtx_sharing): Likewise.
19488 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
19489 * rtl.c (copy_rtx): RETURN is shared.
19490 * rtl.h (enum global_rtl_index): Add GR_RETURN.
19491 (ret_rtx): New.
19492 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
19493 * config/s390/s390.c (s390_emit_epilogue): Likewise.
19494 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
19495 * config/cris/cris.c (cris_expand_return): Likewise.
19496 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
19497 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
19498 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
19499 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
19500 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
19501 Likewise.
19502 * config/v850/v850.c (expand_epilogue): Likewise.
19503 * config/bfin/bfin.c (bfin_expand_call): Likewise.
19504 * config/arm/arm.md (epilogue): Likewise.
19505 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
19506 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
19507 variable to ret_reg.
19508
19509 2011-05-03 Richard Guenther <rguenther@suse.de>
19510
19511 PR lto/48846
19512 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
19513 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
19514 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
19515
19516 2011-05-03 Richard Guenther <rguenther@suse.de>
19517
19518 * c-decl.c (grokdeclarator): Instead of looking at
19519 TREE_OVERFLOW check if the constant fits in the index type.
19520
19521 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
19522
19523 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
19524 (vec_store_lanes<mode><mode>): Likewise.
19525
19526 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
19527
19528 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
19529 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
19530 convert_optab_index values.
19531 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
19532 * genopinit.c (optabs): Initialize the new optabs.
19533 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
19534 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
19535 (expand_STORE_LANES): New functions.
19536 * tree.h (build_array_type_nelts): Declare.
19537 * tree.c (build_array_type_nelts): New function.
19538 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
19539 (vect_model_load_cost): Likewise.
19540 (vect_store_lanes_supported, vect_load_lanes_supported)
19541 (vect_record_strided_load_vectors): Declare.
19542 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
19543 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
19544 (vect_transform_strided_load): Split out statement recording into...
19545 (vect_record_strided_load_vectors): ...this new function.
19546 * tree-vect-stmts.c (create_vector_array, read_vector_array)
19547 (write_vector_array, create_array_ref): New functions.
19548 (vect_model_store_cost): Add store_lanes_p argument.
19549 (vect_model_load_cost): Add load_lanes_p argument.
19550 (vectorizable_store): Try to use store-lanes functions for
19551 interleaved stores.
19552 (vectorizable_load): Likewise load-lanes and loads.
19553 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
19554 to vect_model_store_cost.
19555 (vect_build_slp_tree): Likewise vect_model_load_cost.
19556
19557 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
19558
19559 * hooks.h (hook_bool_mode_uhwi_false): Declare.
19560 * hooks.c (hook_bool_mode_uhwi_false): New function.
19561 * target.def (array_mode_supported_p): New hook.
19562 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
19563 * doc/tm.texi: Regenerate.
19564 * stor-layout.c (mode_for_array): New function.
19565 (layout_type): Use it.
19566 * config/arm/arm.c (arm_array_mode_supported_p): New function.
19567 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
19568
19569 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
19570
19571 PR target/48723
19572 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
19573 for -fstack-check if the size to allocate is negative.
19574
19575 2011-05-02 Lawrence Crowl <crowl@google.com>
19576
19577 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
19578 (timevar_cond_start): New for starting a timer only when it is not
19579 already running.
19580 (timevar_cond_stop): New for stopping a timer when it was not already
19581 running.
19582
19583 * timevar.c (timevar_stop): Enable start/stop timers to start again.
19584 (timevar_cond_start): New as above.
19585 (timevar_cond_stop): New as above.
19586
19587 * timevar.def: Add start/stop timers for compiler phases,
19588 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
19589 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
19590 and TV_PHASE_FINALIZE.
19591 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
19592 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
19593 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
19594 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
19595 Make unused TV_OVERLOAD into a start/stop timer.
19596
19597 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
19598 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
19599 to indicate that they are start/stop timers.
19600
19601 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
19602 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
19603 Move initialization to do_compile.
19604 (do_compile): Add initialization from above.
19605 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
19606
19607 * c-decl.c (c_write_global_declarations): Add start/stop of
19608 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
19609
19610 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
19611 or TV_PARSE_INLINE, as appropriate.
19612 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
19613 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
19614
19615 2011-05-02 Jason Merrill <jason@redhat.com>
19616
19617 PR c++/40975
19618 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
19619
19620 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
19621
19622 PR c/35445
19623 * c-decl.c (finish_decl): Only create a composite if the types are
19624 compatible.
19625
19626 2011-05-02 Joseph Myers <joseph@codesourcery.com>
19627
19628 * config/fr30/fr30-protos.h (Mmode): Don't define.
19629 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
19630 definition where used.
19631 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
19632 define. Expand definitions where used.
19633 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
19634 Expand definitions where used.
19635 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
19636 rx_function_arg, rx_function_arg_advance,
19637 rx_function_arg_boundary): Expand definitions of those macros.
19638 * config/v850/v850-protos.h (Mmode): Don't define. Expand
19639 definition where used.
19640
19641 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
19642
19643 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
19644 reg<->xmm moves.
19645 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
19646 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
19647 with *movv2sf_internal_rex64_avx.
19648 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
19649 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
19650 Use %v prefix in insn mnemonic to handle TARGET_AVX.
19651 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
19652 "vex" in "prefix" attribute calculation.
19653 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
19654
19655 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
19656
19657 PR target/47951
19658 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
19659 inputs match the output.
19660
19661 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
19662
19663 PR target/47955
19664 * config/m68k/m68k.c (m68k_expand_prologue): Set
19665 current_function_static_stack_size.
19666
19667 2011-05-02 Jan Hubicka <jh@suse.cz>
19668
19669 * lto-streamer.c (lto_streamer_cache_insert_1,
19670 lto_streamer_cache_lookup, lto_streamer_cache_create,
19671 lto_streamer_cache_delete): Use pointer map instead of hashtable.
19672 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
19673
19674 2011-05-02 Joseph Myers <joseph@codesourcery.com>
19675
19676 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
19677 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
19678 config/m68k/t-opts: New files.
19679 * config/m68k/m68k-tables.opt: New file (generated).
19680 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
19681 extra_options and m68k/t-opts to tmake_file.
19682 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
19683 (all_isas): Initialize using m68k-isas.def.
19684 (all_microarchs): Initialize using m68k-microarchs.def.
19685 (m68k_find_selection): Remove.
19686 (m68k_handle_option): Don't assert that global structures are in
19687 use. Use error_at. Access variables via opts pointer. Don't
19688 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
19689 directly for -m68020-40 and -m68020-60.
19690 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
19691 m68k_tune_entry here.
19692 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
19693 to m68k-opts.h.
19694 (m68k_library_id_string): Remove declaration.
19695 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
19696 (m68k_library_id_string): New Variable.
19697 (march=, mcpu=, mtune=): Use Enum and Var.
19698
19699 2011-05-02 Richard Guenther <rguenther@suse.de>
19700
19701 * varasm.c (output_constructor_regular_field): Compute zero-based
19702 index with double-ints. Make sure to ICE instead of producing
19703 wrong code.
19704 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
19705 in asserts. Properly use a signed type.
19706
19707 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
19708
19709 * config/i386/sse.md (V): New mode iterator.
19710 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
19711 TARGET_SSE2.
19712 (V_256): Rename from AVX256MODE.
19713 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
19714 condition to all users.
19715 (VF1): Ditto.
19716 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
19717 condition to all users.
19718 (VF_128): Make V4SF mode unconditional.
19719 (VF_256): Rename from AVX256MODEF2P.
19720 (VI4F_128): Rename from SSEMODE4S.
19721 (VI8F_128): Rename from SSEMODE2D.
19722 (VI4F_256): Rename from AVX256MODE8P.
19723 (VI8F_256): Rename from AVX256MODE4P.
19724 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
19725 (ssescalarmodesuffix): Remove SF and DF modes.
19726 (SSEMODE124): Remove.
19727 (SSEMODE1248): Ditto.
19728 (SSEMODEF2P): Ditto.
19729 (AVXMODEF2P): Ditto.
19730 (AVXMODEFDP): Ditto.
19731 (AVXMODEFSP): Ditto.
19732 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
19733 unconditional.
19734 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
19735 unconditional.
19736 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
19737 xop_pcmov_<mode>256. Use V mode iterator.
19738
19739 Adjust RTX patterns globally for renamed mode attributes.
19740
19741 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19742
19743 * haifa-sched.c (sched_emit_insn): Emit insn before first
19744 non-scheduled insn. Inform back-end about new insn. Add
19745 new insn to scheduled_insns list.
19746
19747 2011-05-02 Richard Guenther <rguenther@suse.de>
19748
19749 PR tree-optimization/48822
19750 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
19751 (process_scc): Indicate which iteration we start.
19752
19753 2011-05-02 Jan Hubicka <jh@suse.cz>
19754
19755 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
19756 (lto_section_overrun): New.
19757 * lto-section-out.c (append_block): Rename to ...
19758 (lto_append_block): ... this one; export.
19759 (lto_output_1_stream): Move lto lto-streamer.h
19760 (lto_output_data_stream): Update.
19761 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
19762 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
19763 functions.
19764
19765 2011-05-02 Richard Guenther <rguenther@suse.de>
19766
19767 * tree.c (tree_code_counts): New global array.
19768 (record_node_allocation_statistics): Count individual tree codes.
19769 (dump_tree_statistics): Dump individual code stats.
19770
19771 2011-05-01 Jan Hubicka <jh@suse.cz>
19772
19773 * ipa-inline.c (caller_growth_limits): Fix thinko when
19774 looking for largest stack frame.
19775 * ipa-inline.h (dump_inline_summary): Declare.
19776 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
19777 on stack usage.
19778 (dump_inline_summary): Export.
19779 (debug_inline_summary): Declare as DEBUG_FUNCTION.
19780
19781 2011-05-01 Anatoly Sokolov <aesok@post.ru>
19782
19783 * reginfo.c (memory_move_cost): Change rclass argument type form
19784 'enum reg_class' to reg_class_t.
19785 * reload.h (memory_move_cost): Update prototype.
19786 * postreload.c reload_cse_simplify_set): Change type dclass var to
19787 reg_class_t.
19788 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
19789 Update prototype.
19790 (ira_allocate_and_set_costs): Change aclass argument type form
19791 'enum reg_class' to reg_class_t.
19792 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
19793 Change aclass argument type to reg_class_t.
19794 (update_conflict_hard_reg_costs): Change type aclass and pref vars
19795 to reg_class_t.
19796 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
19797 memory_move_cost call.
19798
19799 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
19800 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
19801 Change type tmp var to reg_class_t.
19802
19803 2011-04-30 Jan Hubicka <jh@suse.cz>
19804
19805 * ipa-inline.c (can_inline_edge_p): Disregard limits when
19806 inlining into function with flatten attribute.
19807 (want_inline_small_function_p): Be more realistic about inlining
19808 cold calls where callee size grows.
19809
19810 2011-04-30 Jan Hubicka <jh@suse.cz>
19811
19812 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
19813 flags.
19814
19815 2011-04-30 Anatoly Sokolov <aesok@post.ru>
19816
19817 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
19818 PRINT_OPERAND_PUNCT_VALID_P): Remove.
19819 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
19820 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
19821 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19822 (print_operand): Rename to...
19823 (sparc_print_operand): ...this. Make static. Adjust
19824 sparc_print_operand function call.
19825 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
19826 functions.
19827
19828 2011-04-30 Jan Hubicka <jh@suse.cz>
19829
19830 PR middle-end/48752
19831 * ipa-inline.c (early_inliner): Disable when doing late
19832 addition of function.
19833
19834 2011-04-30 Jakub Jelinek <jakub@redhat.com>
19835
19836 * dwarf2out.c (get_address_mode): New inline.
19837 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
19838 if not dwarf_strict emit
19839 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
19840 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
19841 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
19842 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
19843 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
19844 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
19845 mem_loc_descriptor callers.
19846 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
19847 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
19848 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
19849 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
19850 (base_types): New variable.
19851 (get_base_type_offset, calc_base_type_die_sizes,
19852 base_type_for_mode, mark_base_types, base_type_cmp,
19853 move_marked_base_types): New functions.
19854 (calc_die_sizes): Assert that die_offset is 0 or equal to
19855 next_die_offset.
19856 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
19857 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
19858 callers. If not dwarf_strict, call mem_loc_descriptor even for
19859 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
19860 (gen_subprogram_die): Don't give up on call site parameters
19861 with non-integral or large integral modes. Adjust
19862 mem_loc_descriptor callers.
19863 (prune_unused_types): Call prune_unused_types_mark on base_types
19864 vector entries.
19865 (resolve_addr): Call mark_base_types.
19866 (dwarf2out_finish): Call move_marked_base_types.
19867
19868 PR tree-optimization/48809
19869 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
19870 type.
19871 (gen_inbound_check): Don't compute index_expr - range_min in utype
19872 again, instead reuse SSA_NAME initialized in build_arrays.
19873 Remove two useless gsi_for_stmt calls.
19874
19875 2011-04-29 Jeff Law <law@redhat.com>
19876
19877 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
19878
19879 2011-04-29 Martin Jambor <mjambor@suse.cz>
19880
19881 * cgraph.h (cgraph_postorder): Remove declaration.
19882 * ipa-utils.h (ipa_free_postorder_info): Declare.
19883 (ipa_reverse_postorder): Likewise.
19884 * cgraphunit.c: Include ipa-utils.h.
19885 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
19886 * ipa-inline.c: Include ipa-utils.h.
19887 (ipa_inline): Update call to ipa_reverse_postorder.
19888 * ipa-pure-const.c (propagate_pure_const): Update call to
19889 ipa_reduced_postorder and ipa_print_order. Call
19890 ipa_free_postorder_info to clean up.
19891 (propagate_nothrow): Likewise.
19892 * ipa-reference.c (propagate): Removed a useless call to
19893 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
19894 and ipa_print_order. Call ipa_free_postorder_info to clean up.
19895 * ipa.c: Include ipa-utils.h.
19896 (ipa_profile): Update call to ipa_reverse_postorder.
19897 (cgraph_postorder): Moved to...
19898 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
19899 (ipa_utils_print_order): Renamed to ipa_print_order.
19900 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
19901 comments.
19902 (ipa_free_postorder_info): New function.
19903 * passes.c: Include ipa-utils.h.
19904 (do_per_function_toporder): Update call to ipa_reverse_postorder.
19905 (ipa_write_summaries): Likewise.
19906 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
19907 (cgraphunit.o): Likewise.
19908 (ipa.o): Likewise.
19909 (ipa-inline.o): Likewise.
19910
19911 2011-04-29 Jan Hubicka <jh@suse.cz>
19912
19913 * ipa-inline.h (clause_t): Turn into unsigned int.
19914 * ipa-inline-analysis.c (add_clause): Do more simplification.
19915 (and_predicates): Shortcut more cases.
19916 (predicates_equal_p): Move forward; check that clauses are properly
19917 ordered.
19918 (or_predicates): Shortcut more cases.
19919 (edge_execution_predicate): Rewrite as...
19920 (set_cond_stmt_execution_predicate): ... this function; handle
19921 __builtin_constant_p.
19922 (set_switch_stmt_execution_predicate): New .
19923 (compute_bb_predicates): New.
19924 (will_be_nonconstant_predicate): Update TODO.
19925 (estimate_function_body_sizes): Use compute_bb_predicates
19926 and free them later, always try to estimate if stmt is constant.
19927 (estimate_time_after_inlining, estimate_size_after_inlining):
19928 Gracefully handle optimized out edges.
19929 (read_predicate): Fix off by one error.
19930
19931 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
19932
19933 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
19934
19935 2011-04-27 Xinliang David Li <davidxl@google.com>
19936
19937 * tree-profile.c (init_ic_make_global_vars): Set
19938 tls attribute on ic vars.
19939 * coverage.c (coverage_end_function): Initialize
19940 function_list with zero.
19941
19942 2011-04-29 Richard Guenther <rguenther@suse.de>
19943
19944 * builtins.c (fold_builtin_classify_type): Use integer_type_node
19945 for the type of the result.
19946 (fold_builtin_isascii): Likewise.
19947 (fold_builtin_toascii): Use integer_type_node where appropriate.
19948 (fold_builtin_logb): Likewise.
19949 (fold_builtin_frexp): Likewise.
19950 (fold_builtin_strstr): Likewise.
19951 (fold_builtin_strpbrk): Likewise.
19952 (fold_builtin_fputs): Likewise.
19953 (fold_builtin_sprintf): Likewise.
19954 (fold_builtin_snprintf): Likewise.
19955 (fold_builtin_printf): Likewise.
19956 (do_mpfr_remquo): Use a proper type for the assigned constant.
19957 (do_mpfr_lgamma_r): Likewise.
19958 * dwarf2out.c (resolve_one_addr): Use size_int.
19959 * except.c (init_eh): Likewise.
19960 (assign_filter_values): Use integer_type_node for filter values.
19961 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
19962 indices.
19963 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
19964 for EH region numbers.
19965 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
19966 for the shift amount.
19967
19968 2011-04-29 Richard Guenther <rguenther@suse.de>
19969
19970 * expr.h (expand_shift): Rename to ...
19971 (expand_variable_shift): ... this.
19972 (expand_shift): Take a constant shift amount.
19973 * expmed.c (expand_shift): Rename to ...
19974 (expand_variable_shift): ... this.
19975 (expand_shift): New wrapper around expand_variable_shift.
19976 * expr.c (convert_move, emit_group_load_1, emit_group_store,
19977 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
19978 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
19979 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
19980 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
19981 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
19982 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
19983 emit_store_flag_1, emit_store_flag): Likewise.
19984 * builtins.c (expand_builtin_signbit): Likewise.
19985 * calls.c (load_register_parameters): Likewise.
19986 * function.c (assign_parm_setup_block): Likewise.
19987 * lower-subreg.c (resolve_shift_zext): Likewise.
19988 * optabs.c (widen_bswap, expand_abs_nojump,
19989 expand_one_cmpl_abs_nojump, expand_float): Likewise.
19990 * spu/spu.c (spu_expand_extv): Likewise.
19991 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
19992
19993 2011-04-29 Richard Guenther <rguenther@suse.de>
19994
19995 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
19996 for the remapped region number.
19997 * predict.c (build_predict_expr): Use integer_type_node for the
19998 predict kind.
19999 * fold-const.c (fold_binary_loc): Use integer_type_node for
20000 the shift amount. Use a proper type for the PLUS_EXPR operand.
20001
20002 2011-04-29 Michael Matz <matz@suse.de>
20003
20004 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
20005 other trees that just builtins.
20006 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
20007
20008 2011-04-29 Richard Guenther <rguenther@suse.de>
20009
20010 * tree-nested.c (get_trampoline_type): Use size_int.
20011 (get_nl_goto_field): Likewise.
20012 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
20013 for all indexes.
20014 (lower_eh_constructs_2): Likewise.
20015 (lower_resx): Likewise.
20016 (lower_eh_dispatch): Likewise.
20017 * tree-mudflap.c (mf_build_string): Use size_int.
20018 (mudflap_register_call): Use integer_type_node for the flag.
20019 (mudflap_enqueue_constant): Use size_int.
20020 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
20021 instead of rebuilding it.
20022
20023 2011-04-29 Richard Guenther <rguenther@suse.de>
20024
20025 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
20026 Handle OBJ_TYPE_REF.
20027 (find_func_aliases_for_call): Use it more consistently.
20028
20029 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
20030
20031 * haifa-sched.c (last_nondebug_scheduled_insn): New.
20032 (rank_for_schedule): Use it.
20033 (schedule_block): Set it.
20034
20035 2011-04-28 David Li <davidxl@google.com>
20036
20037 * tree.c (crc32_string): Use crc32_byte.
20038 (crc32_byte): New function.
20039 * tree.h (crc32_byte): New function.
20040 * gcov.c (read_graph_file): Handle new cfg_cksum.
20041 (read_count_file): Ditto.
20042 * profile.c (instrument_values): Ditto.
20043 (get_exec_counts): Ditto.
20044 (read_profile_edge_counts): Ditto.
20045 (compute_branch_probabilities): Ditto.
20046 (compute_value_histograms): Ditto.
20047 (branch_prob): Ditto.
20048 (end_branch_prob): Ditto.
20049 * coverage.c (read_counts_file): Ditto.
20050 (get_coverage_counts): Ditto.
20051 (tree_coverage_counter_addr): Ditto.
20052 (coverage_checksum_string): Ditto.
20053 (coverage_begin_output): Ditto.
20054 (coverage_end_function): Ditto.
20055 (build_fn_info_type): Ditto.
20056 (build_fn_info_value): Ditto.
20057 * libgcov.c (gcov_exit): Ditto.
20058 * gcov-dump.c (tag_function): Ditto.
20059 (compute_checksum): Remove.
20060
20061 2011-04-29 Alan Modra <amodra@gmail.com>
20062
20063 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
20064 unspec plus offset. Tidy macho code.
20065
20066 2011-04-29 Martin Jambor <mjambor@suse.cz>
20067
20068 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
20069 node instead of a decl. Update all callers.
20070 * cgraph.h: Update declaration.
20071
20072 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
20073
20074 PR tree-optimization/48765
20075 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
20076 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
20077 to indicate if loop aware SLP is being used. Scan the statements
20078 and update the vectorization factor according to the type of
20079 vectorization before statement analysis.
20080 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
20081 pass it to vect_analyze_loop_operations.
20082 (vectorizable_reduction): Set number of copies to 1 in case of pure
20083 SLP statement.
20084 * tree-vect-stmts.c (vectorizable_conversion,
20085 vectorizable_assignment, vectorizable_shift,
20086 vectorizable_operation, vectorizable_type_demotion,
20087 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
20088 Likewise.
20089 (vectorizable_condition): Move the check that it is not SLP
20090 vectorization before the number of copies check.
20091 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
20092 to vectorize the loop using SLP.
20093
20094 2011-04-28 Jakub Jelinek <jakub@redhat.com>
20095
20096 PR middle-end/48597
20097 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
20098 inline asm.
20099
20100 2011-04-28 Joseph Myers <joseph@codesourcery.com>
20101
20102 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
20103 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
20104 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
20105 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
20106 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
20107 linux*.h headers.
20108 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
20109 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
20110 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
20111 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
20112 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
20113 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
20114 REG_NAME.
20115 * config/i386/linux.h (REG_NAME): Don't define.
20116 * config/i386/linux64.h (REG_NAME): Don't define.
20117 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
20118 Undefine before defining.
20119
20120 2011-04-28 Jan Hubicka <jh@suse.cz>
20121
20122 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
20123 nonconstant_names array.
20124 (estimate_function_body_sizes): Build nonconstant_names array; handle
20125 BUILT_IN_CONSTANT_P.
20126
20127 2011-04-28 Richard Guenther <rguenther@suse.de>
20128
20129 PR bootstrap/48804
20130 Revert
20131 2011-04-28 Richard Guenther <rguenther@suse.de>
20132
20133 * tree-ssa-structalias.c (solve_constraints): Build succ graph
20134 as late as possible.
20135
20136 2011-04-28 Richard Guenther <rguenther@suse.de>
20137
20138 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
20139 (debug_constraint): Do it here.
20140 (dump_constraints): And here.
20141 (rewrite_constraints): And here.
20142 (dump_constraint_edge): Remove.
20143 (dump_constraint_graph): Rewrite to produce DOT output.
20144 (solve_constraints): Build succ graph as late as possible.
20145 Dump constraint graphs before and after solving.
20146
20147 2011-04-28 Richard Guenther <rguenther@suse.de>
20148
20149 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20150 New function split out from ...
20151 (find_func_aliases): ... here. Call it.
20152 (find_func_aliases_for_call): Likewise.
20153
20154 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
20155
20156 * internal-fn.h (internal_fn_name_array): Declare.
20157 (internal_fn_flags_array): Likewise.
20158
20159 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
20160
20161 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
20162 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
20163 Move from sse.md.
20164 (ssemodefsuffix): Remove.
20165 (ssevecmodesuffix): New mode attribute.
20166 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
20167 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
20168 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
20169 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
20170 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
20171 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
20172 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
20173 ssemodesuffix mode attribute.
20174 (float splitters): Use ssevecmodesuffix mode attribute.
20175 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
20176 (sseinsmode): Rename from avxvecmode.
20177 (avxsizesuffix): Rename from avxmodesuffix.
20178 (sseintvecmode): Rename from avxpermvecmode.
20179 (ssedoublevecmode): Rename from ssedoublesizemode.
20180 (ssehalfvecmode): Rename from avxhalfvecmode.
20181 (ssescalarmode): Rename from avxscalarmode.
20182 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
20183 templates for ssemodesuffix mode attribute.
20184 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
20185 mode attribute.
20186
20187 Adjust RTX patterns globally for renamed mode attributes.
20188
20189 2011-04-27 Jan Hubcika <jh@suse.cz>
20190
20191 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
20192 * ipa-inline-analysis.c: Include alloc-pool.h.
20193 (edge_predicate_pool): New.
20194 (trye_predicate_p): New function
20195 (false_predicate_p): New function.
20196 (add_clause): Sanity check that false clauses are "optimized";
20197 never add clauses to predicate that is already known to be false.
20198 (and_predicate): Use flase_predicate_p.
20199 (evaulate_predicate): Rename to ...
20200 (evaluate_predicate): ... this one; update all callers; assert
20201 that false is not listed among possible truths.
20202 (dump_predicate): Use true_predicate_p.
20203 (account_size_time): Use false_predicate_p.
20204 (evaulate_conditions_for_edge): Rename to ...
20205 (evaluate_conditions_for_edge) ... this one.
20206 (edge_set_predicate): New function.
20207 (inline_edge_duplication_hook): Duplicate edge predicates.
20208 (inline_edge_removal_hook): Free edge predicates.
20209 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
20210 (dump_inline_summary): Update.
20211 (estimate_function_body_sizes): Set edge predicates.
20212 (estimate_calls_size_and_time): Handle predicates.
20213 (estimate_callee_size_and_time): Update.
20214 (remap_predicate): Add toplev_predicate; update comment.
20215 (remap_edge_predicates): New function.
20216 (inline_merge_summary): Compute toplev predicate; update.
20217 (read_predicate): New function.
20218 (read_inline_edge_summary): Use it.
20219 (inline_read_section): Likewise.
20220 (write_predicate): New function.
20221 (write_inline_edge_summary): Use it.
20222 (inline_write_summary): Likewise.
20223 (inline_free_summary): Free alloc pool and edge summary vec.
20224
20225 2011-04-27 Richard Guenther <rguenther@suse.de>
20226
20227 * tree-ssa-structalias.c (changed_count): Remove.
20228 (changed): Use a bitmap.
20229 (unify_nodes): Adjust.
20230 (do_sd_constraint): Likewise.
20231 (do_ds_constraint): Likewise.
20232 (do_complex_constraint): Likewise.
20233 (solve_graph): Likewise.
20234
20235 2011-04-27 Jan Hubicka <jh@suse.cz>
20236
20237 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
20238
20239 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
20240
20241 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
20242 (avx_vperm2f128_*_operand): Ditto.
20243 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
20244 Use avx_vpermilp_parallel in insn condition.
20245 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
20246 Use avx_vperm2f128_parallel in insn condition.
20247
20248 2011-04-27 Richard Guenther <rguenther@suse.de>
20249
20250 * Makefile.in (tree-ssa-structalias.o): Remove
20251 gt-tree-ssa-structalias.h dependency.
20252 (GTFILES): Remove tree-ssa-structalias.c.
20253 * tree.c (allocate_decl_uid): New function.
20254 (make_node_stat): Use it.
20255 (copy_node_stat): Likewise.
20256 * tree.h (allocate_decl_uid): Declare.
20257 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
20258 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
20259 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
20260 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
20261 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
20262 (struct heapvar_map): Likewise.
20263 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
20264 heapvar_insert): Likewise.
20265 (make_heapvar_for): Rename to ...
20266 (make_heapvar): ... this. Simplify.
20267 (fake_var_decl_obstack): New global var.
20268 (build_fake_var_decl): New function.
20269 (make_constraint_from_heapvar): Adjust.
20270 (handle_lhs_call): Likewise.
20271 (create_function_info_for): Likewise.
20272 (intra_create_variable_infos): Likewise.
20273 (init_alias_vars): Allocate fake_var_decl_obstack.
20274 (init_alias_heapvars, delete_alias_heapvars): Remove.
20275 (compute_points_to_sets): Do not call init_alias_heapvars.
20276 (ipa_pta_execute): Likewise.
20277 (delete_points_to_sets): Free fake_var_decl_obstack.
20278
20279 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20280
20281 * config/spu/divmovti4.c (union qword_UTItype): New data type.
20282 (si_from_UTItype, si_to_UTItype): New functions.
20283 (__udivmodti4): Use them to implement type-punning.
20284 * config/spu/multi3.c (union qword_TItype): New data type.
20285 (si_from_TItype, si_to_TItype): New functions.
20286 (__multi3): Use them to implement type-punning.
20287
20288 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20289
20290 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
20291
20292 2011-04-27 Jan Hubicka <jh@suse.cz>
20293
20294 * ipa-prop.c (function_insertion_hook_holder): New holder.
20295 (ipa_add_new_function): New function.
20296 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
20297 Register/deregister holder.
20298
20299 2011-04-27 Richard Guenther <rguenther@suse.de>
20300
20301 PR tree-optimization/48772
20302 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
20303
20304 2011-04-27 Richard Guenther <rguenther@suse.de>
20305
20306 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
20307 TARGET_MEM_REF handling.
20308
20309 2011-04-27 Nick Clifton <nickc@redhat.com>
20310
20311 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
20312 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
20313 (REG_CLASS_NAMES): Likewise.
20314 (REG_CLASS_CONTENTS): Likewise.
20315 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
20316 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
20317 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
20318 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
20319 (EVEN_REGS): New macro. Alias for QUAD_REGS.
20320 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
20321 duplicate register classes.
20322 (frv_class_likely_spilled_p): Likewise.
20323 (frv_register_move_cost): Likewise.
20324
20325 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
20326 end of the regno_reg_class array.
20327
20328 2011-04-27 Jakub Jelinek <jakub@redhat.com>
20329
20330 PR c/48742
20331 * c-typeck.c (build_binary_op): Don't wrap arguments if
20332 int_operands is true.
20333
20334 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
20335
20336 PR target/48767
20337 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
20338 targetm.calls.must_pass_in_stack for void type.
20339
20340 2011-04-26 Jan Hubicka <jh@suse.cz>
20341
20342 * cgraphbuild.c (build_cgraph_edges): Update call
20343 of cgraph_create_edge and cgraph_create_indirect_edge.
20344 * cgraph.c (cgraph_create_edge_including_clones,
20345 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
20346 cgraph_update_edges_for_call_stmt_node): Do not take nest
20347 argument; do not initialize call_stmt_size/time.
20348 (dump_cgraph_node): Do not dump nest.
20349 (cgraph_clone_edge): Do not take loop_nest argument;
20350 do not propagate it; do not clone call_stmt_size/time.
20351 (cgraph_clone_node): Likewise.
20352 (cgraph_create_virtual_clone): Update.
20353 * cgraph.h (struct cgraph_edge): Remove
20354 call_stmt_size/call_stmt_time/loop_nest.
20355 (cgraph_create_edge, cgraph_create_indirect_edge,
20356 cgraph_create_edge_including_clones, cgraph_clone_node): Update
20357 prototype.
20358 * tree-emutls.c (gen_emutls_addr): Update.
20359 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
20360 loop_nest; handle indirect calls, too.
20361 (clone_inlined_nodes): Do not care about updating inline summaries.
20362 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
20363 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
20364 stream call_stmt_size/call_stmt_time/loop_nest.
20365 * ipa-inline.c (edge_badness): Update.
20366 (ipa_inline): dump summaries after inlining.
20367 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
20368 New.
20369 (inline_edge_summary): New function.
20370 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
20371 (inline_edge_removal_hook): Handle edge summaries.
20372 (inline_edge_duplication_hook): New hook.
20373 (inline_summary_alloc): Alloc hooks.
20374 (initialize_growth_caches): Do not register removal hooks.
20375 (free_growth_caches); Do not free removal hook.
20376 (dump_inline_edge_summary): New function.
20377 (dump_inline_summary): Use it.
20378 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
20379 (inline_update_callee_summaries): New function.
20380 (inline_merge_summary): Use it.
20381 (do_estimate_edge_time, do_estimate_edge_growth): Update.
20382 (read_inline_edge_summary): New function.
20383 (inline_read_section): Use it.
20384 (write_inline_edge_summary): New function.
20385 (inline_write_summary): Use it.
20386 (inline_free_summary): Free edge new holders.
20387 * tree-inline.c (copy_bb): Update.
20388
20389 2011-04-26 Jason Merrill <jason@redhat.com>
20390
20391 * tree-eh.c (lower_try_finally_switch): Create the label along with
20392 the CASE_LABEL_EXPR.
20393
20394 2011-04-26 David S. Miller <davem@davemloft.net>
20395 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20396
20397 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
20398 * configure: Regenerate.
20399
20400 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
20401
20402 PR target/48258
20403 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
20404 reduction.
20405 (VEC_reduc): New code iterator and splitters for vector reduction.
20406 (VEC_reduc_name): Ditto.
20407 (VEC_reduc_rtx): Ditto.
20408 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
20409 (reduc_<VEC_reduc_name>_v4sf): Ditto.
20410
20411 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
20412 support for extracting SF on VSX.
20413
20414 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
20415 generating xscvspdp.
20416 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
20417 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
20418 double add, minimum, maximum vector reduction.
20419 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
20420 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
20421 optimize double vector reduction.
20422 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
20423
20424 2011-04-26 Joseph Myers <joseph@codesourcery.com>
20425
20426 * config/fr30/fr30.h (inhibit_libc): Don't define.
20427 * config/m32r/m32r-protos.h: Correct comment.
20428 * config/v850/v850.h (GHS_default_section_names,
20429 GHS_current_section_names): Use tree, not union tree_node *.
20430
20431 2011-04-26 Xinliang David Li <davidxl@google.com>
20432
20433 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
20434 * c-family/c-opts.c (c_common_handle_option): Set
20435 warn_maybe_uninitialized.
20436 * opts.c (common_handle_option): Ditto.
20437 * common.opt: New option.
20438 * tree-ssa.c (warn_uninit): Add one more parameter.
20439 (warn_uninitialized_var): Pass warning code.
20440 * tree-flow.h: Interface change.
20441
20442 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20443
20444 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
20445 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
20446 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
20447
20448 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20449
20450 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
20451 * config/mips/mips.opt (mmips-tfile): Remove.
20452
20453 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
20454 mips-tdump reference to ...
20455 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
20456 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
20457 reference by Tru64 UNIX.
20458
20459 2011-04-26 Jakub Jelinek <jakub@redhat.com>
20460
20461 PR debug/48768
20462 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
20463 is error_mark_node, set value to NULL.
20464
20465 PR tree-optimization/48734
20466 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
20467 if return value from maybe_fold_*_comparsions isn't something
20468 the code is prepared to handle.
20469
20470 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
20471
20472 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
20473 mode check.
20474 (ext_QIreg_nomode_operands): Remove.
20475 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
20476 (*andsi_1): Ditto.
20477 (*andhi_1): Ditto.
20478
20479 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
20480
20481 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
20482
20483 2011-04-26 Richard Guenther <rguenther@suse.de>
20484
20485 * c-typeck.c (build_unary_op): Do not expand array-refs via
20486 pointer arithmetic. Only adjust qualifiers for function types.
20487
20488 2011-04-26 Richard Guenther <rguenther@suse.de>
20489
20490 PR middle-end/48694
20491 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
20492 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
20493 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
20494 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
20495
20496 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
20497
20498 * doc/extend.texi: Document __underlying_type.
20499
20500 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
20501
20502 * config/rs6000/titan.md (automata_option "progress"): Remove.
20503
20504 2011-04-25 Jeff Law <law@redhat.com>
20505
20506 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
20507
20508 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
20509
20510 * system.h (ENUM_BITFIELD): Remove.
20511
20512 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
20513 Eric Botcazou <ebotcazou@adacore.com>
20514
20515 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
20516 for STORE_FLAG_VALUE==-1 case.
20517
20518 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
20519
20520 PR target/43804
20521 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
20522 LEGITIMATE_PIC_OPERAND_P.
20523
20524 2011-04-24 Jan Hubicka <jh@suse.cz>
20525
20526 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
20527 WPA hack.
20528 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
20529 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
20530 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
20531 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
20532 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
20533 Sanity check predicate length.
20534 (remap_predicate): Likewise; sanity check jump functions.
20535 (inline_read_section, inline_write_summary): Sanity check
20536 predicate length.
20537
20538 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
20539
20540 PR other/48748
20541 * doc/extend.texi (Type Traits): Document __is_standard_layout,
20542 __is_literal_type, and __is_trivial; update throughout about
20543 possibly cv-qualified void types.
20544
20545 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
20546
20547 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
20548 testsuite and make it version agnostic.
20549
20550 2011-04-22 Jan Hubicka <jh@suse.cz>
20551
20552 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
20553
20554 2011-04-23 Jakub Jelinek <jakub@redhat.com>
20555
20556 PR c/48685
20557 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
20558 to VOID_TYPE even around MODIFY_EXPR.
20559
20560 2011-04-22 Mike Stump <mikestump@comcast.net>
20561
20562 * gensupport.c (read_md_rtx): Fix typo in comment.
20563 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
20564 comment.
20565
20566 2011-04-22 Jan Hubicka <jh@suse.cz>
20567
20568 * gengtype.c (open_base_files): Add ipa-inline.h include.
20569 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
20570 ipa-prop.c; update all uses.
20571 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
20572 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
20573 merge summary of inlined function into former caller.
20574 * ipa-inline.c (max_benefit): Remove.
20575 (edge_badness): Compensate for removal of benefits.
20576 (update_caller_keys): Use
20577 reset_node_growth_cache/reset_edge_growth_cache.
20578 (update_callee_keys): Likewise.
20579 (update_all_callee_keys): Likewise.
20580 (inline_small_functions): Do not collect max_benefit; do not reset
20581 estimated_growth; call free_growth_caches and initialize_growth_caches.
20582 * ipa-inline.h (struct condition, type clause_t, struct predicate,
20583 struct size_time_entry): New structures.
20584 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
20585 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
20586 and estimated_growth.
20587 (edge_growth_cache_entry): New structure.
20588 (node_growth_cache, edge_growth_cache): New global vars.
20589 (estimate_growth): Turn into inline.
20590 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
20591 initialize_growth_caches, free_growth_caches): Declare.
20592 (estimate_edge_growth): Rewrite.
20593 (estimate_edge_time): Implement as inline cache lookup.
20594 (reset_node_growth_cache, reset_edge_growth_cache): New inline
20595 functions.
20596 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
20597 (NUM_CONDITIONS): New constant.
20598 (predicate_conditions): New enum.
20599 (IS_NOT_CONSTANT): New constant.
20600 (edge_removal_hook_holder): New var.
20601 (node_growth_cache, edge_growth_cache): New global vars.
20602 (true_predicate, single_cond_predicate, false_predicate,
20603 not_inlined_predicate, add_condition, add_clause, and_predicates,
20604 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
20605 dump_clause, dump_predicate, account_size_time,
20606 evaulate_conditions_for_edge): New functions.
20607 (inline_summary_alloc): Move to heap.
20608 (inline_node_removal_hook): Clear condition and entry vectors.
20609 (inline_edge_removal_hook): New function.
20610 (initialize_growth_caches, free_growth_caches): New function.
20611 (dump_inline_summary): Update.
20612 (edge_execution_predicate): New function.
20613 (will_be_nonconstant_predicate): New function.
20614 (estimate_function_body_sizes): Compute BB and constantness predicates.
20615 (compute_inline_parameters): Do not clear estimated_growth.
20616 (estimate_edge_size_and_time): New function.
20617 (estimate_calls_size_and_time): New function.
20618 (estimate_callee_size_and_time): New function.
20619 (remap_predicate): New function.
20620 (inline_merge_summary): New function.
20621 (do_estimate_edge_time): New function based on...
20622 (estimate_edge_time): ... this one.
20623 (do_estimate_edge_growth): New function.
20624 (do_estimate_growth): New function based on....
20625 (estimate_growth): ... this one.
20626 (inline_analyze_function): Analyze after deciding on jump functions.
20627 (inline_read_section): New function.
20628 (inline_read_summary): Use it.
20629 (inline_write_summary): Write all the new data.
20630 * ipa-prop.c (ipa_get_param_decl_index): Export.
20631 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
20632 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
20633 Declare.
20634 (ipa_get_lattice): Move here from ipa-cp.c
20635 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
20636 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
20637 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
20638 cgraph_edge_inlinable_p): Remove.
20639 * cgraphunit.c: Include ipainline.h
20640 (cgraph_process_new_functions): Update call of
20641 compute_inline_parameters.
20642
20643 2011-04-22 Richard Guenther <rguenther@suse.de>
20644
20645 * tree.c (build_int_cst): Properly create canonicalized integer
20646 constants.
20647 (build_int_cst_type): Remove scary comments.
20648
20649 2011-04-22 Xinliang David Li <davidxl@google.com>
20650
20651 * toplev.c (process_options): Enable -Werror=coverage-mismatch
20652 by default when -Wno-error is not specified.
20653 * opts-global.c (decode_options): Remove call to
20654 control_warning_options.
20655
20656 2011-04-22 Jakub Jelinek <jakub@redhat.com>
20657
20658 PR tree-optimization/48717
20659 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
20660 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
20661
20662 2011-04-22 Joseph Myers <joseph@codesourcery.com>
20663
20664 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
20665 definition where used.
20666
20667 2011-04-22 Jakub Jelinek <jakub@redhat.com>
20668
20669 PR c/48716
20670 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
20671 TREE_STATIC variables declared inside of some OpenMP construct.
20672
20673 2011-04-22 Martin Jambor <mjambor@suse.cz>
20674
20675 PR middle-end/48585
20676 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
20677
20678 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
20679
20680 PR c/36750
20681 * c-typeck.c (pop_init_level): Do not warn about initializing
20682 with ` = {0}'.
20683
20684 2011-04-22 Alan Modra <amodra@gmail.com>
20685
20686 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
20687 when returning call_cookie.
20688 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
20689 pointers, to functions with no more vector args than the current
20690 function, and some non-local calls for ABI_V4.
20691 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
20692 sibcall_nonlocal_aix64): Combine to ..
20693 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
20694 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
20695 (sibcall_value_nonlocal_aix<mode>): ..likewise.
20696 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
20697 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
20698 operand.
20699 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
20700 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
20701 sibcall_value_symbolic_64): Delete.
20702
20703 2011-04-21 Xinliang David Li <davidxl@google.com>
20704
20705 * cgraph.h: Remove pid.
20706 * cgraph.c: Remove pid.
20707 * value-prof.c (init_node_map): New function.
20708 (del_node_map): New function.
20709 (find_func_by_funcdef_no): New function.
20710 (gimple_ic_transform): Call new function.
20711 * cgraphunit.c (cgraph_finalize_function): Remove pid.
20712 * function.c (get_last_funcdef_no): New function.
20713 * function.h (get_last_funcdef_no): New function.
20714 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
20715 to libgcov function.
20716 (tree-profiling): Call node map init and delete function.
20717
20718 2011-04-21 Ian Lance Taylor <iant@google.com>
20719
20720 * godump.c (go_format_type): Use exported Go name for anonymous
20721 field name.
20722
20723 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
20724
20725 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
20726 Call builtin_function_type_list instead of builtin_function_type.
20727 (UNARY, BINARY, TRINARY, QUAD): Likewise.
20728
20729 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
20730
20731 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
20732 build_function_type_list instead of build_function_type.
20733 Delete variable `endlink'.
20734
20735 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
20736
20737 * config/s390/s390.c (s390_init_builtins): Call
20738 build_function_type_list instead of build_function_type.
20739
20740 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
20741
20742 * config/ia64/ia64.c (ia64_init_builtins): Call
20743 build_function_type_list instead of builtin_function_type.
20744
20745 2011-04-21 Easwaran Raman <eraman@google.com>
20746
20747 * cfgexpand.c (stack_var): Remove OFFSET...
20748 (add_stack_var): ...and its reference here...
20749 (expand_stack_vars): ...and here.
20750 (stack_var_cmp): Sort by descending order of size.
20751 (partition_stack_vars): Change heuristic.
20752 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
20753 (dump_stack_var_partition): Add newline after each partition.
20754
20755 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
20756 Jeff Law <law@redhat.com>
20757
20758 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
20759 * gengtype.c (matching_file_name_substitute): Likewise.
20760
20761 2011-04-21 Richard Guenther <rguenther@suse.de>
20762
20763 PR lto/48703
20764 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
20765
20766 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
20767
20768 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
20769
20770 2011-04-21 Richard Guenther <rguenther@suse.de>
20771
20772 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
20773 file name.
20774
20775 2011-04-21 Richard Guenther <rguenther@suse.de>
20776
20777 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
20778 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
20779 Use DECL_P, not SSA_VAR_P.
20780 (ptr_derefs_may_alias_p): Likewise.
20781 (ptr_deref_may_alias_ref_p_1): Likewise.
20782 (decl_refs_may_alias_p): Likewise.
20783 (refs_may_alias_p_1): Likewise.
20784 (ref_maybe_used_by_call_p_1): Likewise.
20785 (call_may_clobber_ref_p_1): Likewise.
20786 (indirect_ref_may_alias_decl_p): Assume indirect refrences
20787 are either MEM_REF or TARGET_MEM_REF.
20788 (indirect_refs_may_alias_p): Likewise.
20789 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
20790 for MEM_EXPR of indirect calls.
20791
20792 2011-04-21 Tristan Gingold <gingold@adacore.com>
20793
20794 * vmsdbgout.c (write_srccorr): Compute file length from the string.
20795 (dst_file_info_struct): Remove flen field.
20796 (lookup_filename): Remove code that set flen field.
20797
20798 2011-04-21 Tristan Gingold <gingold@adacore.com>
20799
20800 * config/ia64/ia64.c (ia64_start_function): Add a guard.
20801
20802 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
20803
20804 PR target/48708
20805 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
20806 vec_extract and vec_concat for non-SSE4_1 targets.
20807
20808 2011-04-21 Richard Guenther <rguenther@suse.de>
20809
20810 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
20811 return statements.
20812
20813 2011-04-21 Joseph Myers <joseph@codesourcery.com>
20814
20815 * config/i386/cygming.h (union tree_node, TREE): Don't define or
20816 undefine.
20817 (FILE): Don't undefine.
20818
20819 2011-04-21 Joseph Myers <joseph@codesourcery.com>
20820
20821 * config/alpha/alpha.c (struct machine_function): Use rtx, not
20822 struct rtx_def *.
20823 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
20824 struct rtx_def *.
20825 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
20826 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
20827 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
20828 rtx_def *.
20829 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
20830 definitions where used.
20831 * config/microblaze/microblaze.h (struct microblaze_args): Use
20832 rtx, not struct rtx_def *.
20833 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
20834 rtx_def *.
20835 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
20836 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
20837 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
20838 not struct rtx_def *.
20839 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
20840 struct rtx_def *.
20841 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
20842 rtx_def *.
20843 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
20844
20845 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
20846
20847 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
20848 operand_equal_p to compare DR_BASE_ADDRESSes.
20849 (vect_check_interleaving): Likewise.
20850
20851 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
20852
20853 PR target/46329
20854 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
20855 for all Neon struct constants.
20856
20857 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
20858
20859 * target.def (legitimate_constant_p): New hook.
20860 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
20861 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
20862 * doc/tm.texi: Regenerate.
20863 * hooks.h (hook_bool_mode_rtx_true): Declare.
20864 * hooks.c (hook_bool_mode_rtx_true): Define.
20865 * system.h (LEGITIMATE_CONSTANT_P): Poison.
20866 * calls.c (precompute_register_parameters): Replace uses of
20867 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
20868 (emit_library_call_value_1): Likewise.
20869 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
20870 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
20871 * ira-costs.c (scan_one_insn): Likewise.
20872 * recog.c (general_operand, immediate_operand): Likewise.
20873 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
20874 * reload1.c (init_eliminable_invariants): Likewise.
20875
20876 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
20877 mode argument.
20878 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
20879 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
20880 argument.
20881 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20882 * config/alpha/predicates.md (input_operand): Update call to
20883 alpha_legitimate_constant_p.
20884
20885 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
20886 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
20887 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
20888 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20889 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
20890 (arm_legitimate_constant_p): New functions.
20891 (arm_cannot_force_const_mem): Make static.
20892
20893 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
20894
20895 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
20896 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
20897 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
20898 instead of bfin_legitimate_constant_p.
20899 (bfin_legitimate_constant_p): Make static. Add a mode argument.
20900 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20901
20902 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
20903
20904 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
20905
20906 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
20907 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
20908 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20909 (frv_legitimate_constant_p): Make static. Add a mode argument.
20910
20911 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
20912 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
20913 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
20914
20915 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
20916 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
20917 * config/i386/i386.c (legitimate_constant_p): Rename to...
20918 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
20919 argument.
20920 (ix86_cannot_force_const_mem): Update accordingly.
20921 (ix86_legitimate_address_p): Likewise.
20922 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20923 * config/i386/i386.md: Update commentary.
20924
20925 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
20926 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
20927 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20928 (ia64_legitimate_constant_p): Make static. Add a mode argument.
20929
20930 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
20931
20932 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
20933 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
20934 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20935 (lm32_legitimate_constant_p): Make static. Add a mode argument.
20936
20937 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
20938 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
20939 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
20940
20941 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
20942 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20943 (m32r_legitimate_constant_p): New function.
20944
20945 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
20946 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
20947 LEGITIMATE_CONSTANT_P.
20948 (LEGITIMATE_CONSTANT_P): Delete.
20949 * config/m68k/m68k.c (m68k_expand_prologue): Call
20950 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
20951 (m68k_legitimate_constant_p): New function.
20952 * config/m68k/m68k.md: Update comments.
20953
20954 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
20955 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20956 (mcore_legitimate_constant_p): New function.
20957
20958 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
20959 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
20960 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
20961 Add a mode argument.
20962 (mep_legitimate_address): Update accordingly.
20963 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20964
20965 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
20966 Delete.
20967 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
20968 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
20969 static. Check OP's mode for VOIDmode.
20970 (microblaze_legitimate_constant_p): New function.
20971 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20972
20973 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
20974 * config/mips/mips.c (mips_legitimate_constant_p): New function.
20975 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
20976 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20977 * config/mips/predicates.md: Update comments.
20978
20979 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
20980 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
20981 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20982 (mmix_legitimate_constant_p): Make static, return a bool, and take
20983 a mode argument.
20984 (mmix_print_operand_address): Update accordingly.
20985
20986 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
20987 Delete.
20988 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
20989 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
20990 static. Add a mode argument.
20991 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20992
20993 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
20994
20995 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
20996 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20997 (pa_legitimate_constant_p): New function.
20998
20999 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
21000
21001 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
21002 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21003 (pdp11_legitimate_constant_p): New function.
21004
21005 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
21006 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21007 (rs6000_legitimate_constant_p): New function.
21008
21009 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
21010 (rx_legitimate_constant_p): ...this.
21011 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
21012 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
21013 (rx_legitimate_constant_p): ...this.
21014 (TARGET_LEGITIMATE_CONSTANT_P): Define.
21015 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
21016
21017 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
21018 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
21019 * config/s390/s390.c (legitimate_constant_p): Rename to...
21020 (s390_legitimate_constant_p): ...this. Make static, return a bool,
21021 and add a mode argument.
21022 (TARGET_LEGITIMATE_CONSTANT_P): Define.
21023
21024 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
21025
21026 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
21027 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21028 (sh_legitimate_constant_p): New function.
21029
21030 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
21031 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
21032 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21033 (legitimate_constant_p): Rename to...
21034 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
21035 argument.
21036 (constant_address_p): Update accordingly.
21037
21038 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
21039 argument and return a bool.
21040 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
21041 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21042 (spu_legitimate_constant_p): Add a mode argument and return a bool.
21043 (spu_rtx_costs): Update accordingly.
21044 * config/spu/predicates.md (vec_imm_operand): Likewise.
21045
21046 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
21047
21048 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
21049 * config/v850/v850.c (v850_legitimate_constant_p): New function.
21050 (TARGET_LEGITIMATE_CONSTANT_P): Define.
21051
21052 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
21053 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
21054 * config/vax/vax.c (legitimate_constant_p): Likewise.
21055
21056 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
21057 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21058 (xtensa_legitimate_constant_p): New function.
21059
21060 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
21061
21062 * target.def (cannot_force_const_mem): Add a mode argument.
21063 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
21064 * doc/tm.texi: Regenerate.
21065 * hooks.h (hook_bool_mode_rtx_false): Declare.
21066 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
21067 (hook_bool_mode_const_rtx_true): Likewise.
21068 (hook_bool_mode_rtx_false): New function.
21069 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
21070 to be non-VOID. Update call to cannot_force_const_mem.
21071 (find_reloads): Update accordingly.
21072 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
21073 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
21074 argument.
21075 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
21076 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
21077 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
21078 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
21079 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
21080 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
21081 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
21082 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
21083 (m68k_cannot_force_const_mem): ...this new function.
21084 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
21085 argument.
21086 (mips_const_insns, mips_legitimize_const_move): Update calls.
21087 (mips_secondary_reload_class): Likewise.
21088 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
21089 (pa_cannot_force_const_mem): ...this new function.
21090 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
21091 (rs6000_cannot_force_const_mem): ...this new function.
21092 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
21093 argument.
21094 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
21095 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
21096 to...
21097 (xtensa_cannot_force_const_mem): ...this new function.
21098
21099 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
21100
21101 * config/mips/mips.c (mips16_build_function_stub): Call
21102 build_function_type_list instead of build_function_type.
21103 (mips16_build_call_stub): Likewise.
21104
21105 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
21106
21107 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
21108 instead of build_function_type.
21109
21110 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
21111
21112 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
21113 instead of build_function_type.
21114
21115 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
21116
21117 PR target/48678
21118 * config/i386/i386.md (insv): Change operand 0 constraint to
21119 "register_operand". Change operand 1 and 2 constraint to
21120 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
21121 * config/i386/sse.md (sse4_1_pinsrb): Export.
21122 (sse2_pinsrw): Ditto.
21123 (sse4_1_pinsrd): Ditto.
21124 (sse4_1_pinsrq): Ditto.
21125 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
21126 * config/i386/i386.c (ix86_expand_pinsr): New.
21127
21128 2011-04-20 Easwaran Raman <eraman@google.com>
21129
21130 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
21131 containing union type only with -fstrict-aliasing.
21132
21133 2011-04-20 Jim Meyering <meyering@redhat.com>
21134
21135 Remove useless if-before-free tests.
21136 * calls.c (expand_call, save_area): Likewise.
21137 * cfgcleanup.c (try_forward_edges): Likewise.
21138 * collect2.c (collect_execute): Likewise.
21139 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
21140 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
21141 * coverage.c (coverage_checksum_string): Likewise.
21142 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
21143 * cselib.c (cselib_init): Likewise.
21144 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
21145 (df_set_clean_cfg): Likewise.
21146 * function.c (free_after_compilation): Likewise.
21147 * gcc.c (do_spec_1, main): Likewise.
21148 * gcov.c (create_file_names): Likewise.
21149 * gensupport.c (identify_predicable_attribute): Likewise.
21150 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
21151 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
21152 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
21153 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
21154 * ipa-pure-const.c (local_pure_const): Likewise.
21155 * ipa-reference.c (propagate): Likewise.
21156 * ira-costs.c (free_ira_costs): Likewise.
21157 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
21158 * matrix-reorg.c (mat_free): Likewise.
21159 * prefix.c (get_key_value): Likewise.
21160 * profile.c (compute_value_histograms): Likewise.
21161 * reload1.c (free_reg_equiv): Likewise.
21162 * sched-deps.c (free_deps): Likewise.
21163 * sel-sched-ir.c (fence_clear): Likewise.
21164 * sese.c (set_rename, if_region_set_false_region): Likewise.
21165 * tree-data-ref.c (free_rdg): Likewise.
21166 * tree-eh.c (lower_try_finally): Likewise.
21167 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
21168 * tree-ssa-live.c (delete_var_map): Likewise.
21169 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
21170 * tree-ssa-pre.c (phi_trans_add): Likewise.
21171
21172 2011-04-20 Jakub Jelinek <jakub@redhat.com>
21173
21174 PR tree-optimization/48611
21175 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
21176 beyond ERT_MUST_NOT_THROW region.
21177
21178 2011-04-20 Catherine Moore <clm@codesourcery.com>
21179
21180 * config/mips/mips.opt (mfix-24k): New.
21181 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
21182 * config/mips/mips.md (length): Increase by 4 for stores if
21183 fixing 24K errata.
21184 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
21185 all noreorder if fixing 24K errata.
21186 * doc/invoke.texi: Document mfix-24k.
21187
21188 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
21189
21190 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
21191 quad-word modes, reduce to 9-bit index range when above 1016 limit.
21192
21193 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
21194
21195 * config/arm/arm.c (arm_gen_constant): Move movw support ....
21196 (const_ok_for_op): ... to here.
21197
21198 2011-04-20 Kai Tietz <ktietz@redhat.com>
21199
21200 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
21201 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
21202
21203 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
21204
21205 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
21206
21207 2011-04-20 Richard Guenther <rguenther@suse.de>
21208
21209 PR tree-optimization/47892
21210 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
21211 are if-convertible.
21212
21213 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
21214
21215 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
21216
21217 2011-04-20 Tristan Gingold <gingold@adacore.com>
21218
21219 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
21220
21221 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
21222
21223 PR target/18145
21224
21225 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
21226 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
21227 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
21228 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
21229 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
21230
21231 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
21232 New prototype.
21233
21234 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
21235 (avr_asm_named_section, avr_asm_output_aligned_common,
21236 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
21237 New functions to update...
21238 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
21239 (avr_asm_init_sections): Overwrite section callbacks for
21240 data_section, bss_section.
21241 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
21242 from here to...
21243 (avr_file_end): ...here.
21244
21245 2011-04-20 Richard Guenther <rguenther@suse.de>
21246
21247 PR middle-end/48695
21248 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
21249 objects and types here. Adjust for their offset before comparing.
21250
21251 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
21252
21253 * tree-vect-stmts.c (vectorizable_store): Only chain one related
21254 statement per copy.
21255
21256 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
21257
21258 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
21259 (GIMPLE_H): Include $(INTERNAL_FN_H).
21260 (OBJS-common): Add internal-fn.o.
21261 (internal-fn.o): New rule.
21262 * internal-fn.def: New file.
21263 * internal-fn.h: Likewise.
21264 * internal-fn.c: Likewise.
21265 * gimple.h: Include internal-fn.h.
21266 (GF_CALL_INTERNAL): New gf_mask.
21267 (gimple_statement_call): Put fntype into a union with a new
21268 internal_fn field.
21269 (gimple_build_call_internal): Declare.
21270 (gimple_build_call_internal_vec): Likewise.
21271 (gimple_call_same_target_p): Likewise.
21272 (gimple_call_internal_p): New function.
21273 (gimple_call_internal_fn): Likewise.
21274 (gimple_call_fntype): Return null for internal calls.
21275 (gimple_call_set_fntype): Assert that the function is not internal.
21276 (gimple_call_set_fn): Likewise.
21277 (gimple_call_set_fndecl): Likewise.
21278 (gimple_call_set_internal_fn): New function.
21279 (gimple_call_addr_fndecl): Handle null functions.
21280 (gimple_call_return_type): Likewise null types.
21281 * gimple.c (gimple_build_call_internal_1): New function.
21282 (gimple_build_call_internal): Likewise.
21283 (gimple_build_call_internal_vec): Likewise.
21284 (gimple_call_same_target_p): Likewise.
21285 (gimple_call_flags): Handle calls to internal functions.
21286 (gimple_call_fnspec): New function.
21287 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
21288 (gimple_has_side_effects): Handle null functions.
21289 (gimple_rhs_has_side_effects): Likewise.
21290 (gimple_call_copy_skip_args): Handle calls to internal functions.
21291 * cfgexpand.c (expand_call_stmt): Likewise.
21292 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
21293 * gimple-fold.c (gimple_fold_call): Handle null functions.
21294 (gimple_fold_stmt_to_constant_1): Don't fold
21295 calls to internal functions.
21296 * gimple-low.c (gimple_check_call_args): Handle calls to internal
21297 functions.
21298 * gimple-pretty-print.c (dump_gimple_call): Likewise.
21299 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
21300 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
21301 (do_warn_unused_result): Likewise.
21302 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
21303 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
21304 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
21305 the target of a call.
21306 (initialize_hash_element): Update accordingly.
21307 (hashable_expr_equal_p): Use gimple_call_same_target_p.
21308 (iterative_hash_hashable_expr): Handle calls to internal functions.
21309 (print_expr_hash_elt): Likewise.
21310 * tree-ssa-pre.c (can_value_number_call): Likewise.
21311 (eliminate): Handle null functions.
21312 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
21313 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
21314 (find_func_aliases): Likewise.
21315 * value-prof.c (gimple_ic_transform): Likewise.
21316 (gimple_indirect_call_to_profile): Likewise.
21317 * lto-streamer-in.c (input_gimple_stmt): Likewise.
21318 * lto-streamer-out.c (output_gimple_stmt): Likewise.
21319
21320 2011-04-19 Jan Hubicka <jh@suse.cz>
21321
21322 * ipa-inline-transform.c (save_inline_function_body): Add comments.
21323 * ipa-inline.c (inline_small_functions): Compute summaries first,
21324 populate heap later.
21325
21326 2011-04-19 Jan Hubicka <jh@suse.cz>
21327
21328 * cgraph.h (save_inline_function_body): Remove.
21329 * ipa-inline-transform.c: New file, broke out of...
21330 * ipa-inline.c: ... this one; Update toplevel comment.
21331 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
21332 make global.
21333 (update_noncloned_frequencies): Move to ipa-inline-transform.c
21334 (cgraph_mark_inline_edge): Rename to inline_call; move to
21335 ipa-inline-transform.c.
21336 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
21337 move to ipa-inline-transform.c
21338 (recursive_inlining, inline_small_functions, flatten_function,
21339 ipa_inline, inline_always_inline_functions,
21340 early_inline_small_functions): Update.
21341 (inline_transform): Move to ipa-inline-transform.c.
21342 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
21343 Declare.
21344 * Makefile.in (ipa-inline-transform.o): New file.
21345 * cgraphunit.c (save_inline_function_body): Move to
21346 ipa-inline-transform.c
21347
21348 2011-04-19 DJ Delorie <dj@redhat.com>
21349
21350 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
21351 registers if we already know there aren't any.
21352 (m32c_emit_epilogue): Don't emit a barrier here.
21353 (m32c_emit_eh_epilogue): Likewise.
21354 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
21355 operands at expand time.
21356 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
21357 int" wchar type.
21358 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
21359 duplicates. Provide aliases instead.
21360 * config/m32c/prologue.md (eh_return): Emit a barrier here.
21361 (eh_epilogue): Add a "(return)" here as a hint to other parts of
21362 the compiler.
21363
21364 2011-04-19 Anatoly Sokolov <aesok@post.ru>
21365
21366 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
21367 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
21368 (general_or_i64_p, sparc_register_move_cost): New function.
21369
21370 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21371
21372 * doc/install.texi (Configuration, --enable-threads): Remove mach.
21373 Add lynx, mipssde. Sort table.
21374
21375 2011-04-19 Xinliang David Li <davidxl@google.com>
21376
21377 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
21378 not negative.
21379
21380 2011-04-19 Jakub Jelinek <jakub@redhat.com>
21381
21382 PR target/48678
21383 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
21384 is a SUBREG with non-MODE_INT mode inside of it.
21385
21386 2011-04-19 Martin Jambor <mjambor@suse.cz>
21387
21388 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
21389 also according to actual contants.
21390 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
21391 (gimple_fold_call): Use it.
21392 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
21393
21394 2011-04-19 Martin Jambor <mjambor@suse.cz>
21395
21396 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
21397 non-pointer assignments.
21398
21399 2011-04-19 Martin Jambor <mjambor@suse.cz>
21400
21401 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
21402 account anc_offset and otr_type from the indirect edge info.
21403 * ipa-prop.c (get_ancestor_addr_info): New function.
21404 (compute_complex_ancestor_jump_func): Assignment analysis moved to
21405 get_ancestor_addr_info, call it.
21406 (ipa_note_param_call): Do not initialize information about polymorphic
21407 calls, return the indirect call graph edge. Remove the last
21408 parameter, adjust all callers.
21409 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
21410 parameters. Initialize polymorphic information in the indirect edge.
21411
21412 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
21413
21414 PR lto/48148
21415 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
21416 the types if they have different enumeration identifiers.
21417
21418 2011-04-19 Jan Hubicka <jh@suse.cz>
21419
21420 * cgraph.h (cgraph_optimize_for_size_p): Declare.
21421 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
21422 * predict.c (cgraph_optimize_for_size_p): Break out from ...
21423 (optimize_function_for_size_p) ... here.
21424
21425 2011-04-19 Richard Guenther <rguenther@suse.de>
21426
21427 PR lto/48207
21428 * tree.c (free_lang_data): Do not reset the decl-assembler-name
21429 langhook.
21430
21431 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
21432
21433 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
21434 if DECL_NO_INLINE_WARNING_P is set on the function.
21435
21436 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
21437
21438 PR fortran/47976
21439 * reload1.c (inc_for_reload): Return void. All callers changed.
21440 (emit_input_reload_insns): Don't try to delete previous output
21441 reloads to a register, or record spill_reg_store for autoincs.
21442
21443 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
21444
21445 * gengtype.h: Updated copyright year.
21446 (struct input_file_st): Add inpisplugin field.
21447 (type_fileloc): New function.
21448 * gengtype.c
21449 (write_typed_struct_alloc_def): Add gcc_assert.
21450 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
21451 (write_typed_alloc_defns): Don't output for plugin files.
21452 (input_file_by_name): Clear inpisplugin field.
21453 (main): Set inpisplugin field for plugin files.
21454
21455 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
21456
21457 * gengtype-state.c (string_eq): New.
21458 (read_state): Use string_eq instead of strcmp when creating the
21459 state_ident_tab.
21460
21461 2011-04-19 Wei Guozhi <carrot@google.com>
21462
21463 PR target/47855
21464 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
21465 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
21466 linkage.
21467 * config/arm/constraints.md (Uu): New constraint.
21468 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
21469
21470 2011-04-19 Tristan Gingold <gingold@adacore.com>
21471
21472 * config.gcc (-*-*-*vms): Added.
21473 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
21474 definitions moved.
21475 * config/vms/vms-ld.c: New file.
21476 * config/vms/vms-ar.c: New file.
21477 * config/vms/t-vmsnative: New file.
21478
21479 2011-04-18 Xinliang David Li <davidxl@google.com>
21480
21481 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
21482
21483 2011-04-18 Jakub Jelinek <jakub@redhat.com>
21484
21485 PR middle-end/48661
21486 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
21487 if TREE_TYPE (v) is non-NULL.
21488
21489 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
21490 gimple_get_virt_mehtod_for_binfo.
21491 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
21492 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
21493 callers.
21494 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
21495
21496 2011-04-18 Michael Matz <matz@suse.de>
21497 Steve Ellcey <sje@cup.hp.com>
21498
21499 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
21500 use its mode as source mode if it isn't VOIDmode.
21501
21502 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
21503
21504 * doc/passes.texi: Fill crossref nodes.
21505
21506 2011-04-18 Jim Meyering <meyering@redhat.com>
21507
21508 Fix doubled-word typos in comments and strings
21509 * config/alpha/vms-unwind.h: s/for for/for/
21510 * config/arm/unwind-arm.h: Likewise.
21511 * config/microblaze/microblaze.c: Likewise.
21512 * config/sh/constraints.md: s/in in/in/
21513 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
21514
21515 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
21516
21517 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
21518 (AVX_FLOAT_MODE_P): Ditto.
21519 (AVX128_VEC_FLOAT_MODE_P): Ditto.
21520 (AVX256_VEC_FLOAT_MODE_P): Ditto.
21521 (AVX_VEC_FLOAT_MODE_P): Ditto.
21522 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
21523 (UNSPEC_MASKSTORE): Ditto.
21524 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
21525 Merge from <sse>_movmsk<ssemodesuffix> and
21526 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
21527 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
21528 iterator.
21529 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
21530 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
21531 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
21532
21533 2011-04-18 Jan Hubicka <jh@suse.cz>
21534
21535 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
21536
21537 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
21538 (want_inline_function_called_once_p): Break out the logic from
21539 ipa_inline.
21540 (edge_badness): Ensure that profile is not misupdated.
21541 (lookup_recursive_calls): Prioritize by call frequencies.
21542 (inline_small_functions): Move program size estimates here;
21543 actually process whole queue even when unit growth has been
21544 met. (to properly compute inline_failed reasons and for the
21545 case unit size decrease.) Revisit comments on recursive inlining.
21546 (ipa_inline): Remove unit summary code; first inline hot calls
21547 of functions called once, cold calls next.
21548 (order, nnodes): Remove unused variables.
21549 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
21550 (GTFILES): Remove ipa-inline.c
21551 * sel-sched.c (fill_insns): Silence uninitialized var warning.
21552
21553 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
21554
21555 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
21556
21557 2011-04-18 Jie Zhang <jie@codesourcery.com>
21558 Richard Earnshaw <rearnsha@arm.com>
21559
21560 * arm.c (neon_builtin_type_bits): Remove.
21561 (typedef enum neon_builtin_mode): New.
21562 (T_MAX): Don't define.
21563 (typedef enum neon_builtin_datum): Remove bits, codes[],
21564 num_vars and base_fcode. Add mode, code and fcode.
21565 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
21566 VAR10): Change accordingly.
21567 (neon_builtin_data[]): Change accordingly
21568 (arm_init_neon_builtins): Change accordingly.
21569 (neon_builtin_compare): Remove.
21570 (locate_neon_builtin_icode): Remove.
21571 (arm_expand_neon_builtin): Change accordingly.
21572
21573 * arm.h (enum arm_builtins): Move to ...
21574 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
21575
21576 * arm.c (arm_builtin_decl): Declare.
21577 (TARGET_BUILTIN_DECL): Define.
21578 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
21579 (arm_builtin_decls[]): New.
21580 (arm_init_neon_builtins): Store builtin declarations in
21581 arm_builtin_decls[].
21582 (arm_init_tls_builtins): Likewise.
21583 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
21584 (arm_builtin_decl): New.
21585
21586 2011-04-18 Richard Guenther <rguenther@suse.de>
21587
21588 * tree.c (upper_bound_in_type): Build properly canonicalized
21589 INTEGER_CSTs.
21590 (lower_bound_in_type): Likewise.
21591
21592 2011-04-18 Richard Guenther <rguenther@suse.de>
21593
21594 * gimple.h (gimple_call_addr_fndecl): New function.
21595 (gimple_call_fndecl): Use it.
21596 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
21597 for direct calls.
21598 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
21599 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
21600
21601 2011-04-18 Richard Guenther <rguenther@suse.de>
21602
21603 PR middle-end/48650
21604 * tree.c (build_string): STRING_CST is now derived from tree_typed.
21605
21606 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
21607
21608 PR lto/48492
21609 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
21610 DECL_IN_CONSTANT_POOL without RTL.
21611
21612 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
21613 Ira Rosen <ira.rosen@linaro.org>
21614
21615 PR target/48252
21616 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
21617 to match neon_vzip/vuzp/vtrn_internal.
21618 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
21619 outputs explicitly dependent on both inputs.
21620 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
21621
21622 2011-04-18 Jakub Jelinek <jakub@redhat.com>
21623
21624 PR tree-optimization/48616
21625 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
21626 whether the shift is by scalar or vector based on whether all SLP
21627 scalar stmts have the same rhs.
21628
21629 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
21630
21631 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
21632 memory operands.
21633
21634 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
21635
21636 PR target/43700
21637 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
21638 registers.
21639
21640 2011-04-17 Jan Hubicka <jh@suse.cz>
21641
21642 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
21643 * cgrpahunit.c (cgraph_finalize_function): Do not set
21644 finalized_by_frontend.
21645 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
21646 finalized_by_frontend.
21647
21648 2011-04-17 Jan Hubicka <jh@suse.cz>
21649
21650 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
21651 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
21652 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
21653 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
21654 method.
21655 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
21656 gimple-fold.c
21657 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
21658
21659 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
21660
21661 PR lto/48538
21662 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
21663 is non-null before accessing it.
21664 (input_cgraph): Remove trailing spaces.
21665
21666 2011-04-17 Revital Eres <revital.eres@linaro.org>
21667
21668 * params.def (sms-min-sc): New param flag.
21669 * modulo-sched.c (sms_schedule): Use it.
21670 * doc/invoke.texi (sms-min-sc): Document it.
21671
21672 2011-04-17 Jan Hubicka <jh@suse.cz>
21673
21674 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
21675 present, also set gimple_call_set_cannot_inline.
21676 * ipa-inline.c: Update toplevel comment.
21677 (MAX_TIME): Remove.
21678 (cgraph_clone_inlined_nodes): Fix linebreaks.
21679 (cgraph_check_inline_limits): Restructure to ...
21680 (caller_growth_limits): ... this one; be more tolerant
21681 on growth in nested inline chains; add explanatory comment;
21682 fix stack accounting thinko introduced by previous patch.
21683 (cgraph_default_inline_p): Remove.
21684 (report_inline_failed_reason): New function.
21685 (can_inline_edge_p): New function.
21686 (can_early_inline_edge_p): New function.
21687 (leaf_node_p): Move upwards in file.
21688 (want_early_inline_function_p): New function.
21689 (want_inline_small_function_p): New function.
21690 (want_inline_self_recursive_call_p): New function.
21691 (cgraph_edge_badness): Rename to ...
21692 (edge_badness) ... this one; fix linebreaks.
21693 (update_edge_key): Update call of edge_baddness; add
21694 detailed dump about queue updates.
21695 (update_caller_keys): Use can_inline_edge_p and
21696 want_inline_small_function_p.
21697 (cgraph_decide_recursive_inlining): Rename to...
21698 (recursive_inlining): Use can_inline_edge_p and
21699 want_inline_self_recursive_call_p; simplify and remove no longer
21700 valid FIXME.
21701 (cgraph_set_inline_failed): Remove.
21702 (add_new_edges_to_heap): Use can_inline_edge_p and
21703 want_inline_small_function_p.
21704 (cgraph_decide_inlining_of_small_functions): Rename to ...
21705 (inline_small_functions): ... this one; cleanup; use
21706 can/want predicates; cleanup debug ouput; work edges till fibheap
21707 is exhausted and do not stop once unit growth is reached; remove
21708 later loop processing remaining edges.
21709 (cgraph_flatten): Rename to ...
21710 (flatten_function): ... this one; use can_inline_edge_p
21711 and can_early_inline_edge_p predicates.
21712 (cgraph_decide_inlining): Rename to ...
21713 (ipa_inline): ... this one; remove unreachable nodes before
21714 inlining functions called once; simplify the pass.
21715 (cgraph_perform_always_inlining): Rename to ...
21716 (inline_always_inline_functions): ... this one; use
21717 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
21718 (cgraph_decide_inlining_incrementally): Rename to ...
21719 (early_inline_small_functions): ... this one; simplify
21720 using new predicates; cleanup; make dumps prettier.
21721 (cgraph_early_inlining): Rename to ...
21722 (early_inliner): newer inline regular functions into always-inlines;
21723 fix updating of call stmt summaries.
21724 (pass_early_inline): Update for new names.
21725 (inline_transform): Fix formating.
21726 (gate_cgraph_decide_inlining): Rename to ...
21727 (pass_ipa_inline): ... this one.
21728 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
21729 * ipa-inline-analysis.c (dump_inline_summary): Update.
21730 (compute_inline_parameters): Do not compute disregard_inline_limits;
21731 look for mismatching arguments.
21732 (estimate_growth): Fix handlig of non-trivial self recursion.
21733 (inline_read_summary): Do not read info->disregard_inline_limits.
21734 (inline_write_summary): Do not write info->disregard_inline_limits.
21735 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
21736 and move all checks into can_inline_edge_p predicate; re-enable code
21737 comparing optimization levels.
21738 (expand_call_inline): Do not test inline_forbidden_into_p.
21739 * Makefile.in (ipa-inline.o): Update arguments.
21740
21741 2011-04-17 Revital Eres <revital.eres@linaro.org>
21742
21743 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
21744
21745 2011-04-17 Revital Eres <revital.eres@linaro.org>
21746
21747 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
21748
21749 2011-04-17 Michael Matz <matz@suse.de>
21750
21751 PR tree-optimization/48622
21752 PR lto/48645
21753 * ipa-inline-analysis.c (inline_read_summary): Read size/time
21754 in same order as they're written.
21755
21756 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21757
21758 * config/pa/predicates.md: Reorganize and simplify predicates.
21759 Eliminate duplicate code checks.
21760 (arith_operand): Rename to arith14_operand
21761 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
21762 * config/pa/pa.md: Use renamed operands.
21763 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
21764 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
21765 arith11_operand, adddi3_operand, indexed_memory_operand,
21766 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
21767 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
21768 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
21769 move_dest_operand, move_src_operand, prefetch_cc_operand,
21770 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
21771 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
21772 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
21773 div_operand, int5_operand, movb_comparison_operator,
21774 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
21775 arith_double_operand, ireg_operand, lhs_lshift_operand,
21776 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
21777 integer_store_memory_operand): Likewise.
21778 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
21779 (integer_store_memory_operand, read_only_operand,
21780 function_label_operand, borx_reg_operand,
21781 non_hard_reg_operand): Likewise.
21782 (eq_neq_comparison_operator): Delete unused operator.
21783 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
21784 function_label_operand.
21785 (emit_move_sequence): Likewise.
21786
21787 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
21788
21789 * config/i386/sse.md (sseunpackmode): New mode attribute.
21790 (ssepackmode): Ditto.
21791 (vec_pack_trunc_<mode>): Macroize expander from
21792 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
21793 (vec_unpacks_lo_<mode>): Macroize expander from
21794 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21795 (vec_unpacks_hi_<mode>): Macroize expander from
21796 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21797 (vec_unpacku_lo_<mode>): Macroize expander from
21798 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21799 (vec_unpacku_hi_<mode>): Macroize expander from
21800 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21801 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
21802 ix86_expand_sse4_unpack.
21803 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
21804
21805 2011-04-16 Jan Hubicka <jh@suse.cz>
21806
21807 * cgraphbuild.c: Include ipa-inline.h.
21808 (reset_inline_failed): Use initialize_inline_failed.
21809 * cgraph.c: Include ipa-inline.h.
21810 (cgraph_create_node_1): Do not initialize estimated_growth.
21811 (initialize_inline_failed): More to ipa-inline-analysis.c
21812 (dump_cgraph_node): Do not dump inline flags.
21813 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
21814 and disregard_inline_limits flags.
21815 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
21816 time, size, estimated_growth.
21817 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
21818 Update.
21819 * cgraphunit.c (cgraph_decide_is_function_needed): Use
21820 DECL_DISREGARD_INLINE_LIMITS.
21821 (cgraph_analyze_function): Do not initialize
21822 node->local.disregard_inline_limits.
21823 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
21824 inlinable, versionable and disregard_inline_limits.
21825 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
21826 cgraph_check_inline_limits, cgraph_default_inline_p,
21827 cgraph_edge_badness, update_caller_keys, update_callee_keys,
21828 add_new_edges_to_heap): Update.
21829 (cgraph_decide_inlining_of_small_function): Update; set
21830 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
21831 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
21832 cgraph_decide_inlining_incrementally): Update.
21833 * ipa-inline.h (inline_summary): Add inlinable, versionable,
21834 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
21835 time, size and estimated_growth parameters.
21836 (estimate_edge_growth): Update.
21837 (initialize_inline_failed): Declare.
21838 * ipa-split.c: Include ipa-inline.h
21839 (execute_split_functions): Update.
21840 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
21841 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
21842 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
21843 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
21844 estimated_growth to INT_MIN.
21845 (inline_node_duplication_hook): Likewise.
21846 (dump_inline_summary): Dump new fields.
21847 (compute_inline_parameters): Update.
21848 (estimate_edge_time, estimate_time_after_inlining,
21849 estimate_size_after_inlining, estimate_growth, inline_read_summary,
21850 inline_write_summary):
21851 (initialize_inline_failed): Move here from cgraph.c.
21852 * tree-sra.c: Include ipa-inline.h.
21853 (ipa_sra_preliminary_function_checks): Update.
21854 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
21855 ipa-inline.h.
21856
21857 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
21858
21859 * config/i386/sse.md (V16): New mode iterator.
21860 (VI1, VI8): Ditto.
21861 (AVXMODEQI, AVXMODEDI): Remove.
21862 (sse2, sse3): New mode attribute.
21863 (mov<mode>): Use V16 mode iterator.
21864 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
21865 (push<mode>1): Use V16 mode iterator.
21866 (movmisalign<mode>): Ditto.
21867 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
21868 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
21869 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
21870 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
21871 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
21872 avx_movdqu<avxmodesuffix>.
21873 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
21874 *avx_movdqu<avxmodesuffix>.
21875 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
21876 avx_lddqu<avxmodesuffix>.
21877 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
21878 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
21879 avx_movnt<AVXMODEDI:mode>.
21880 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
21881 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
21882
21883 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
21884
21885 PR target/48629
21886 * haifa-sched.c (prune_ready_list, schedule_block): Use
21887 sched_pressure_p rather than flag_sched_pressure.
21888
21889 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
21890
21891 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
21892 cgraph_get_node instead of cgraph_get_create_node.
21893
21894 2011-04-15 Jakub Jelinek <jakub@redhat.com>
21895
21896 * cfgexpand.c (expand_debug_expr): Use
21897 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
21898
21899 2011-04-15 Michael Matz <matz@suse.de>
21900
21901 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
21902 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
21903 * function.c (gimplify_parameters): Ditto.
21904 * gimplify.c (gimplify_vla_decl): Ditto.
21905
21906 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
21907 (gimple_call_set_alloca_for_var): New inline function.
21908 (gimple_call_alloca_for_var_p): Ditto.
21909 * gimple.c (gimple_build_call_from_tree): Remember
21910 CALL_ALLOCA_FOR_VAR_P state.
21911 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
21912
21913 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
21914 calls if they were for VLA objects.
21915
21916 2011-04-15 Martin Jambor <mjambor@suse.cz>
21917
21918 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
21919 of ADR_EXPRs.
21920
21921 2011-04-15 Martin Jambor <mjambor@suse.cz>
21922
21923 PR middle-end/48601
21924 * tree-emutls.c (lower_emutls_function_body): Call
21925 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
21926 result is non-NULL.
21927
21928 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
21929
21930 * c-decl.c (detect_field_duplicates): Call
21931 objc_detect_field_duplicates instead of objc_get_interface_ivars.
21932
21933 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
21934
21935 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
21936 * gimple.c (gimple_asm_clobbers_memory_p): Define.
21937 * ipa-pure-const.c (check_stmt): Call it.
21938 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
21939
21940 2011-04-15 Richard Guenther <rguenther@suse.de>
21941
21942 PR tree-optimization/48290
21943 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
21944 Properly decide inhibiting propagation based on the valueized
21945 operand. Do loop-closed SSA form preserving here ...
21946 (init_copy_prop): ... not here.
21947
21948 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
21949
21950 PR target/48612
21951 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
21952 (*ieee_smax<mode>3): Likewise.
21953
21954 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21955
21956 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
21957 Replace match_operand with match_dup for the third operand in
21958 these expanders.
21959
21960 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
21961
21962 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
21963 to track processing of conditionals. Update all callers.
21964 (try_combine, simplify_if_then_else): Update.
21965
21966 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
21967
21968 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
21969 -fsched-pressure.
21970
21971 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
21972
21973 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
21974 instead of match_operand for operand 3.
21975
21976 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
21977
21978 * recog.h (insn_operand_data): Add an "allows_mem" field.
21979 * genoutput.c (output_operand_data): Initialize it.
21980 * optabs.c (maybe_legitimize_operand_same_code): New function.
21981 (maybe_legitimize_operand): Use it when matching the original
21982 op->value.
21983
21984 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
21985
21986 * gimplify.c: Fix issues in comments throughout.
21987 (voidify_wrapper_expr): Fix long line.
21988 (build_stack_save_restore): Likewise.
21989 (gimplify_loop_expr): Likewise.
21990 (gimplify_compound_lval): Likewise.
21991 (gimplify_init_ctor_eval): Likewise.
21992 (gimplify_modify_expr_rhs): Likewise.
21993 (omp_notice_threadprivate_variable): Likewise.
21994
21995 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
21996
21997 * cfgexpand.c (expand_call_stmt): Convert the function type to the
21998 original one if this is not a builtin function.
21999
22000 2011-04-14 Jakub Jelinek <jakub@redhat.com>
22001
22002 PR target/48605
22003 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
22004 offset it as needed based on top 2 bits in operands[3], change
22005 MEM mode to SFmode and mask those 2 bits away from operands[3].
22006
22007 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
22008
22009 * c-parser.c (c_parser_objc_protocol_definition): Updated for
22010 change from objc_declare_protocols() to objc_declare_protocol().
22011
22012 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
22013
22014 * config/i386/sse.md (sse4_1): New mode attribute.
22015 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
22016 avx_blend<ssemodesuffix><avxmodesuffix> and
22017 sse4_1_blend<ssemodesuffix> using VF mode iterator.
22018 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
22019 avx_blendv<ssemodesuffix><avxmodesuffix> and
22020 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
22021 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
22022 avx_dp<ssemodesuffix><avxmodesuffix> and
22023 sse4_1_dp<ssemodesuffix> using VF mode iterator.
22024 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
22025 (sse4_1_packusdw): Merge with *avx_packusdw.
22026 (sse4_1_pblendvb): Merge with *avx_pblendvb.
22027 (sse4_1_pblendw): Merge with *avx_pblendw.
22028 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
22029 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
22030 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
22031 VF mode iterator.
22032 (sse4_1_round<ssescalarmodesuffix>): Merge with
22033 *avx_round<ssescalarmodesuffix>.
22034 (aesenc): Merge with *avx_aesenc.
22035 (aesenclast): Merge with *avx_aesenclast.
22036 (aesdec): Merge with *avx_aesdec.
22037 (aesdeclast): Merge with *avx_aesdeclast.
22038 (pclmulqdq): Merge with *pclmulqdq.
22039 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
22040 New predicate.
22041 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
22042
22043 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
22044
22045 PR middle-end/48608
22046 * cfgexpand.c (get_decl_align_unit): Renamed to ...
22047 (align_local_variable): This. Update DECL_ALIGN.
22048 (add_stack_var): Updated.
22049 (expand_one_stack_var): Likewise.
22050
22051 2011-04-14 Richard Guenther <rguenther@suse.de>
22052
22053 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
22054 Remove.
22055 (dse_initialize_block_local_data, dse_leave_block,
22056 record_voperand_set, get_stmt_uid): Likewise.
22057 (dse_possible_dead_store_p): Allow any kind of killing stmt.
22058 (dse_optimize_stmt): Remove voperand set handling code.
22059 Simplify and improve to handle any kind of killing stmt.
22060 (dse_record_phi): Remove.
22061 (dse_enter_block): Simplify.
22062 (tree_ssa_dse): Likewise.
22063 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
22064
22065 2011-04-14 Jan Hubicka <jh@suse.cz>
22066
22067 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
22068 * cgraph.h (struct inline_summary): Move to ipa-inline.h
22069 (cgraph_local_info): Remove inline_summary.
22070 * ipa-cp.c: Include ipa-inline.h.
22071 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
22072 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
22073 accesor.
22074 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
22075 (input_overwrite_node): Do not set inline summary.
22076 (input_node): Do not stream inline summary.
22077 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
22078 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
22079 growth; we do not have inline parameters computed for that anyway.
22080 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
22081 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
22082 (inline_summary_t): New type and VECtor.
22083 (debug_inline_summary, dump_inline_summaries): Declare.
22084 (inline_summary): Use VOCtor.
22085 (estimate_edge_growth): Kill hack computing call stmt size directly.
22086 * lto-section-in.c (lto_section_name): Add inline section.
22087 * ipa-inline-analysis.c: Include lto-streamer.h
22088 (node_removal_hook_holder, node_duplication_hook_holder): New holders
22089 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
22090 (inline_summary_vec): Define.
22091 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
22092 dump_inline_summaries): New functions.
22093 (estimate_function_body_sizes): Properly compute size/time of outgoing
22094 calls.
22095 (compute_inline_parameters): Alloc inline_summary; do not compute
22096 size/time of incomming calls.
22097 (estimate_edge_time): Avoid missing time summary hack.
22098 (inline_read_summary): Read inline summary info.
22099 (inline_write_summary): Write inline summary info.
22100 (inline_free_summary): Free all hooks and inline summary vector.
22101 * lto-streamer.h: Add LTO_section_inline_summary section.
22102 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
22103 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
22104
22105 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
22106
22107 * tree-vectorizer.h (vect_strided_store_supported): Add a
22108 HOST_WIDE_INT argument.
22109 (vect_strided_load_supported): Likewise.
22110 (vect_permute_store_chain): Return void.
22111 (vect_transform_strided_load): Likewise.
22112 (vect_permute_load_chain): Delete.
22113 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
22114 count argument. Check that the count is a power of two.
22115 (vect_strided_load_supported): Likewise.
22116 (vect_permute_store_chain): Return void. Update after above changes.
22117 Assert that the access is supported.
22118 (vect_permute_load_chain): Likewise.
22119 (vect_transform_strided_load): Return void.
22120 * tree-vect-stmts.c (vectorizable_store): Update calls after
22121 above interface changes.
22122 (vectorizable_load): Likewise.
22123 (vect_analyze_stmt): Don't check for strided powers of two here.
22124
22125 2011-04-14 Richard Guenther <rguenther@suse.de>
22126
22127 PR tree-optimization/48590
22128 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
22129 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
22130 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
22131 BUILT_IN_STACK_SAVE.
22132 * tree-ssa-dce.c (propagate_necessity): Handle
22133 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
22134
22135 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
22136
22137 * c-parser.c (c_parser_objc_class_declaration): Updated call to
22138 objc_declare_class.
22139
22140 2011-04-14 Richard Guenther <rguenther@suse.de>
22141
22142 * tree.h (get_object_alignment_1): Declare.
22143 * builtins.c (get_object_alignment_1): Split out worker from ...
22144 (get_object_alignment): ... here.
22145 * fold-const.c (get_pointer_modulus_and_residue): Use
22146 get_object_alignment_1.
22147
22148 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
22149
22150 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
22151 type parameter.
22152 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
22153 parameter. Generalise code to handle arrays as well as vectors.
22154 (vect_setup_realignment): Update accordingly.
22155 * tree-vect-stmts.c (vectorizable_store): Likewise.
22156 (vectorizable_load): Likewise.
22157
22158 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
22159
22160 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
22161 within the per-copy loop.
22162
22163 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
22164
22165 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
22166 in the dump file.
22167
22168 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
22169
22170 * doc/options.texi (Negative): Explicitly mention that the
22171 Negative chain must be circular.
22172
22173 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
22174
22175 * function.h (block_chainon): Declare.
22176 * function.c (block_chainon): Define.
22177
22178 2011-04-14 Anatoly Sokolov <aesok@post.ru>
22179 Eric Weddington <eric.weddington@atmel.com>
22180 Georg-Johann Lay <avr@gjlay.de>
22181
22182 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
22183 New Includes
22184 (avr_init_builtins, avr_expand_builtin,
22185 avr_expand_delay_cycles, avr_expand_unop_builtin,
22186 avr_expand_binop_builtin ): New functions.
22187 (avr_builtin_id): New enum
22188 (struct avr_builtin_description): New struct
22189 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
22190 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
22191
22192 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
22193 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
22194 UNSPECV_DELAY_CYCLES): new enumeration values
22195 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
22196 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
22197 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
22198 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
22199 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
22200 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
22201 "fmulsu"): New insns
22202
22203 * config/avr/avr-c.c: fix line endings
22204 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
22205 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
22206 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
22207 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
22208 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
22209
22210 * doc/extend.texi (AVR Built-in Functions): New node
22211 (Target Builtins): Add documentation of AVR
22212 built-in functions.
22213
22214 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
22215
22216 PR target/44643
22217 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
22218 alone. Error if non-const data has attribute progmem.
22219
22220 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
22221
22222 * tree.h (struct tree_constructor): Include tree_typed instead of
22223 tree_common.
22224 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
22225 TS_TYPED instead of TS_COMMON.
22226
22227 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
22228
22229 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
22230 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
22231 (sse2_psadbw): Merge with *avx_psadbw.
22232 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
22233 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
22234 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
22235 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
22236 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
22237 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
22238 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
22239 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
22240 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
22241 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
22242 (ssse3_palignrti): Merge with *avx_palignrti.
22243
22244 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
22245
22246 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
22247 * tree-ssanames.c (fini_ssanames): VEC_free it.
22248 (make_ssa_name_fn): Update for VECness of free_ssanames.
22249 (release_ssa_name, release_dead_ssa_names): Likewise.
22250 * tree.h (struct tree_ssa_name): Include tree_typed instead of
22251 tree_common.
22252 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
22253 TS_TYPED instead of TS_COMMON.
22254
22255 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
22256
22257 * postreload-gcse.c (gcse_after_reload_main): Add calls to
22258 statistics_counter_event.
22259 * tree-ssa-copyrename.c (stats): Define.
22260 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
22261 statistics_counter_event.
22262 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
22263 (bswap_stats, widen_mul_stats): Define.
22264 (insert_reciprocals): Increment rdivs_inserted.
22265 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
22266 rfuncs_inserted. Add calls to statistics_counter_event.
22267 (execute_cse_sincos_1): Increment inserted.
22268 (execute_cse_sincos): Zeroize sincos_stats. Add call to
22269 statistics_counter_event.
22270 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
22271 of bswap_stats. Add calls to statistics_counter_event.
22272 (convert_mult_to_widen): Increment widen_mults_inserted.
22273 (convert_plusminus_to_widen): Increment maccs_inserted.
22274 (convert_mult_to_fma): Increment fmas_inserted.
22275 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
22276 calls to statistics_counter_event.
22277
22278 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
22279
22280 PR rtl-optimization/48455
22281 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
22282 `temp_costs->mem_cost'.
22283
22284 2011-04-13 Jan Hubicka <jh@suse.cz>
22285
22286 * ipa-inline.h: New file.
22287 * ipa-inline-analysis.c: New file. Broken out of ...
22288 * ipa-inline.c: ... this file; update toplevel comment;
22289 include ipa-inline.h
22290 (inline_summary): Move to ipa-inline.h
22291 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
22292 ipa-inline-analysis.c.
22293 (cgraph_estimate_time_after_inlining): Rename to
22294 estiamte_time_after_inlining; move to ipa-inline-analysis.c
22295 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
22296 to estimate_edge_growth.
22297 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
22298 rename to estimate_size_after_inlining.
22299 (cgraph_mark_inline_edge): Update for new naming convention.
22300 (cgraph_check_inline_limits): Likewise.
22301 (cgraph_edge_badness): Likewise.
22302 (cgraph_decide_recursive_inlining): Likewise.
22303 (cgraph_decide_inlining_of_small_functions): Likewise.
22304 (cgraph_decide_inlining_incrementally): Likewise.
22305 (cgraph_estimate_growth): Rename to estimate_growth; move to
22306 ipa-inline-analysis.c.
22307 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
22308 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
22309 (compute_inline_parameters): Likewise.
22310 (compute_inline_parameters_for_current): Likewise.
22311 (pass_inline_parameters): Likewise.
22312 (inline_indirect_intraprocedural_analysis): Likewise.
22313 (analyze_function): Rename to inline_analyze_function; likewise.
22314 (add_new_function): Move to ipa-inline-analysis.c.
22315 (inline_generate_summary): Likewise.
22316 (inline_read_summary): Likewise.
22317 (inline_write_summary): Likewise.
22318 * Makefile.in (ipa-inline-analysis.c): New file.
22319
22320 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22321
22322 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
22323 * configure: Regenerate.
22324
22325 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
22326
22327 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
22328 instead of tree_common.
22329 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
22330 Likewise.
22331 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
22332 TS_TYPED rather than TS_COMMON.
22333 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
22334
22335 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
22336
22337 PR target/45263
22338 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
22339 r20 around calls of __tablejump_elpm__
22340
22341 2011-04-13 Jakub Jelinek <jakub@redhat.com>
22342
22343 PR middle-end/48591
22344 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
22345 NULL.
22346 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
22347
22348 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
22349
22350 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
22351 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
22352 (cfi_vec): New typedef.
22353 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
22354 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
22355 (cie_cfi_vec): New static variable.
22356 (cie_cfi_head): Delete.
22357 (add_cfi): Accept a cfi_vec * as first argument. All callers and
22358 declaration changed. Use vector rather than list operations.
22359 (new_cfi): Don't initialize the dw_cfi_next field.
22360 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
22361 rather than list operations.
22362 (lookup_cfa): Use vector rather than list operations.
22363 (output_cfis): New argument upto. Accept a cfi_vec rather than
22364 a dw_cfi_ref list head as argument. All callers changed.
22365 Iterate over the vector using upto as a maximum index.
22366 (output_all_cfis): New static function.
22367 (output_fde): Use vector rather than list operations. Use the
22368 new upto argument for output_cfis rather than manipulating a
22369 list.
22370 (dwarf2out_begin_prologue): Change initializations to match
22371 new struct members.
22372 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
22373 from the vector length rather than searching for the end of a list.
22374 Use output_all_cfis.
22375 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
22376
22377 2011-04-13 Nick Clifton <nickc@redhat.com>
22378
22379 * config/rx/rx.md (movmemsi): Do not use this pattern when
22380 volatile pointers are involved.
22381
22382 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
22383
22384 * config/i386/sse.md (pinsrbits): Remove.
22385 (sse2_packsswb): Merge with *avx_packsswb.
22386 (sse2_packssdw): Merge with *avx_packssdw.
22387 (sse2_packuswb): Merge with *avx_packuswb.
22388 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
22389 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
22390 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
22391 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
22392 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
22393 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
22394 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
22395 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
22396 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
22397 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
22398 (sse2_loadld): Merge with *avx_loadld.
22399 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
22400 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
22401 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
22402 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
22403 (vec_concatv2di): Merge with *vec_concatv2di_avx.
22404
22405 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
22406
22407 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
22408 calling TREE_CHAIN.
22409 * print-tree.c (print_node): Likewise.
22410 * tree-inline.c (copy_tree_r): Likewise.
22411 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
22412 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
22413 instead of TS_COMMON.
22414 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
22415 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
22416 (copy_node_stat): Zero TREE_CHAIN only if necessary.
22417 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
22418 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
22419 ...and these...
22420 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
22421 * tree.h: ...here.
22422 (TREE_CHAIN): Check for a TS_COMMON structure.
22423 (TREE_TYPE): Check for a TS_TYPED structure.
22424
22425 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
22426
22427 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
22428 cgraph_get_create_node instead of cgraph_node.
22429
22430 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
22431
22432 * c-parser.c (c_parser_initelt): Updated call to
22433 objc_build_message_expr.
22434 (c_parser_postfix_expression): Likewise.
22435
22436 2011-04-12 Kai Tietz <ktietz@redhat.com>
22437
22438 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
22439 MASK_MS_BITFIELD_LAYOUT bit.
22440
22441 2011-04-12 Jakub Jelinek <jakub@redhat.com>
22442
22443 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
22444 assert it is always true.
22445 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
22446 moves.
22447
22448 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
22449
22450 * c-parser.c (c_lex_one_token): Rewritten conditional used when
22451 compiling Objective-C to be more efficient.
22452
22453 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
22454
22455 * opts-common.c (decode_cmdline_options_to_array): Remove variable
22456 argv_copied.
22457
22458 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
22459
22460 * recog.h, genoutput.c, optabs.c: Revert last patch.
22461
22462 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
22463
22464 PR target/48090
22465 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
22466
22467 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
22468
22469 * recog.h (insn_operand_data): Add an "allows_mem" field.
22470 * genoutput.c (output_operand_data): Initialize it.
22471 * optabs.c (maybe_legitimize_operand_same_code): New function.
22472 (maybe_legitimize_operand): Use it when matching the original
22473 op->value.
22474
22475 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
22476
22477 * genpreds.c (process_define_predicate): Move most processing
22478 to gensupport.c. Continue to validate the expression.
22479 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
22480 (process_define_predicate): Move processing to gensupport.c.
22481 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
22482 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
22483 (compute_predicate_codes): Moved from genrecog.c. Add lineno
22484 argument.
22485 (valid_predicate_name_p): New function, split out from old
22486 genpreds.c:process_define_predicate.
22487 (process_define_predicate): New function, combining code from
22488 old genpreds.c and genrecog.c functions.
22489 (process_rtx): Call it for DEFINE_PREDICATE and
22490 DEFINE_SPECIAL_PREDICATE.
22491
22492 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
22493
22494 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
22495 size of a '%A' memory reference.
22496 (T_DREG, T_QREG): New neon_builtin_type_bits.
22497 (arm_init_neon_builtins): Assert that the load and store operands
22498 are neon_struct_operands.
22499 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
22500 (NEON_ARG_MEMORY): New builtin_arg.
22501 (neon_dereference_pointer): New function.
22502 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
22503 Handle NEON_ARG_MEMORY.
22504 (arm_expand_neon_builtin): Update after above interface changes.
22505 Use NEON_ARG_MEMORY for loads and stores.
22506 * config/arm/predicates.md (neon_struct_operand): New predicate.
22507 * config/arm/iterators.md (V_two_elem): Tweak formatting.
22508 (V_three_elem): Use BLKmode for accesses that have no associated mode.
22509 (V_four_elem): Tweak formatting.
22510 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
22511 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
22512 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
22513 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
22514 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
22515 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
22516 (neon_vst4<mode>): Replace pointer operand with a memory operand.
22517 Use %A in the output template.
22518 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
22519 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
22520 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
22521 the width of the memory access. Remove post-increment.
22522 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
22523
22524 2011-04-12 Nick Clifton <nickc@redhat.com>
22525
22526 * config/v850/v850.c (expand_prologue): Do not use the CALLT
22527 instruction for interrupt handlers if the target is the basic V850
22528 architecture.
22529 (expand_epilogue): Likewise.
22530
22531 2011-04-12 Jakub Jelinek <jakub@redhat.com>
22532
22533 PR rtl-optimization/48549
22534 * combine.c (propagate_for_debug): Also stop after BB_END of
22535 this_basic_block. Process LAST and just stop processing after it.
22536 (combine_instructions): If last_combined_insn has been deleted,
22537 set last_combined_insn to its PREV_INSN.
22538
22539 2011-04-12 Richard Guenther <rguenther@suse.de>
22540
22541 PR tree-optimization/46076
22542 * gimple.h (struct gimple_statement_call): Add fntype field.
22543 (gimple_call_fntype): Adjust.
22544 (gimple_call_set_fntype): New function.
22545 * gimple.c (gimple_build_call_1): Set the call function type.
22546 * gimplify.c (gimplify_call_expr): Preserve the function
22547 type the frontend used for the call.
22548 (gimplify_modify_expr): Likewise.
22549 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
22550 function type.
22551 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
22552 function type.
22553 * tree-ssa.c (useless_type_conversion_p): Function pointer
22554 conversions are useless.
22555
22556 2011-04-12 Martin Jambor <mjambor@suse.cz>
22557
22558 * cgraph.h (cgraph_node): Remove function declaration.
22559 (cgraph_create_node): Declare.
22560 (cgraph_get_create_node): Likewise.
22561 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
22562 Updated all callers.
22563 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
22564 the decl does not already exist. Call cgraph_get_create_node instead
22565 of cgraph_node.
22566 (cgraph_get_create_node): New function.
22567 (cgraph_same_body_alias): Update comment.
22568 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
22569 assert it does not return NULL.
22570 (cgraph_update_edges_for_call_stmt): Likewise.
22571 (cgraph_clone_edge): Likewise.
22572 (cgraph_create_virtual_clone): Likewise.
22573 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
22574 instead of cgraph_node.
22575 (cgraph_add_new_function): Call cgraph_create_node or
22576 cgraph_get_create_node instead of cgraph_node.
22577 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
22578 instead of cgraph_node.
22579 (record_eh_tables): Likewise.
22580 (mark_address): Likewise.
22581 (mark_load): Likewise.
22582 (build_cgraph_edges): Call cgraph_get_create_node instead
22583 of cgraph_node.
22584 (rebuild_cgraph_edges): Likewise.
22585 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
22586 instead of cgraph_node.
22587 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
22588 cgraph_node.
22589 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
22590 cgraph_create_node instead of cgraph_node.
22591 * c-decl.c (finish_function): Call cgraph_get_create_node instead
22592 of cgraph_node.
22593 * lto-cgraph.c (input_node): Likewise.
22594 * lto-streamer-in.c (input_function): Likewise.
22595 * varasm.c (mark_decl_referenced): Likewise.
22596 (assemble_alias): Likewise.
22597
22598 2011-04-12 Martin Jambor <mjambor@suse.cz>
22599
22600 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
22601 instead of cgraph_node and assert it does not return NULL.
22602 * lto-streamer-in.c (lto_read_body): Likewise.
22603 * omp-low.c (new_omp_context): Likewise.
22604 (create_task_copyfn): Likewise.
22605 * tree-emutls.c (lower_emutls_function_body): Likewise.
22606 * matrix-reorg.c (transform_allocation_sites): Likewise.
22607
22608 2011-04-12 Jakub Jelinek <jakub@redhat.com>
22609
22610 PR c/48552
22611 * c-typeck.c (build_asm_expr): Error out on attempts to use
22612 void type outputs or inputs for constraints that allow reg or
22613 don't allow memory.
22614
22615 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
22616 Richard Earnshaw <rearnsha@arm.com>
22617
22618 PR target/48250
22619 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
22620 to use sign-magnitude offsets. Reject unsupported unaligned
22621 cases. Add detailed description in comments.
22622 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
22623 condition from TARGET_32BIT to TARGET_ARM.
22624
22625 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
22626
22627 * tree.h (struct typed_tree): New.
22628 (struct tree_common): Include it instead of tree_base.
22629 (TREE_TYPE): Update for new location of type field.
22630 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
22631 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
22632 (union tree_node): Add typed field.
22633 * treestruct.def (TS_TYPED): New.
22634 * lto-streamer.c (check_handled_ts_structures): Handle it.
22635 * tree.c (MARK_TS_TYPED): New macro.
22636 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
22637
22638 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
22639
22640 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
22641 (force_nonfallthru): Do not alter the loop nest if no basic block
22642 was created.
22643
22644 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
22645
22646 * config/i386/sse.md (VI): New mode iterator.
22647 (SSEMODEI): Remove.
22648 (AVX256MODEI): Ditto.
22649 (AVXMODEF4P): Ditto.
22650 (avxvecpsmode): Ditto.
22651 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
22652 (sse2_andnot<mode>3): New expander.
22653 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
22654 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
22655 (<any_logic:code><mode>3): Use VI mode iterator.
22656 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
22657 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
22658 (*andnottf3): Handle AVX three-operand constraints.
22659 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
22660
22661 2011-04-11 Joseph Myers <joseph@codesourcery.com>
22662 Robert Millan <rmh@gnu.org>
22663
22664 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
22665 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
22666 GNU_USER_DYNAMIC_LINKER64): Define.
22667 (REG_NAME): Don't undefine.
22668 (MD_UNWIND_SUPPORT): Undefine.
22669 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
22670 (REG_NAME): Don't undefine.
22671 (MD_UNWIND_SUPPORT): Undefine.
22672 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
22673
22674 2011-04-11 Joseph Myers <joseph@codesourcery.com>
22675
22676 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
22677 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
22678
22679 2011-04-11 Xinliang David Li <davidxl@google.com>
22680
22681 * value-profile.c (check_ic_target): New function.
22682 (gimple_ic_transform): Sanity check indirect call target.
22683 * gimple-low.c (gimple_check_call_args): Interface change.
22684 (gimple_check_call_matching_types): New function.
22685 * tree-inline.c (tree_can_inline_p): Call new function.
22686
22687 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
22688
22689 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
22690 tree-pretty-print.h & realmpfr.h.
22691
22692 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
22693
22694 PR middle-end/48464
22695 * ira.c (setup_pressure_classes): Fix typo in loop condition.
22696 (setup_allocno_and_important_classes): Ditto.
22697
22698 2011-04-11 Joseph Myers <joseph@codesourcery.com>
22699
22700 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
22701 GNU_USER_DYNAMIC_LINKER.
22702 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
22703 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22704 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
22705 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22706 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
22707 GNU_USER_TARGET_OS_CPP_BUILTINS.
22708 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
22709 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22710 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
22711 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22712 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
22713 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22714 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
22715 GNU_USER_TARGET_OS_CPP_BUILTINS.
22716 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22717 GNU_USER_DYNAMIC_LINKER.
22718 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22719 GNU_USER_TARGET_OS_CPP_BUILTINS.
22720 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
22721 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22722 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
22723 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22724 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
22725 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
22726 GNU_USER_DYNAMIC_LINKER64): Remove.
22727 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
22728 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22729 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22730 GNU_USER_DYNAMIC_LINKER.
22731 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22732 GNU_USER_TARGET_OS_CPP_BUILTINS.
22733 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22734 GNU_USER_TARGET_OS_CPP_BUILTINS.
22735 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
22736 to GNU_USER_TARGET_OS_CPP_BUILTINS.
22737 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22738 GNU_USER_TARGET_OS_CPP_BUILTINS.
22739 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
22740 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
22741 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
22742 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
22743 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22744 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22745 GNU_USER_DYNAMIC_LINKER.
22746 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
22747 GNU_USER_TARGET_OS_CPP_BUILTINS.
22748 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
22749 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22750 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22751 GNU_USER_DYNAMIC_LINKER.
22752 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
22753 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22754 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
22755 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22756 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22757 GNU_USER_DYNAMIC_LINKER.
22758 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
22759 GNU_USER_DYNAMIC_LINKERN32.
22760 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
22761 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
22762 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
22763 GNU_USER_DYNAMIC_LINKER32.
22764 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
22765 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22766 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22767 GNU_USER_DYNAMIC_LINKER.
22768 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
22769 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22770 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
22771 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22772 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22773 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
22774 GNU_USER_DYNAMIC_LINKER32.
22775 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
22776 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
22777 GNU_USER_DYNAMIC_LINKER.
22778 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
22779 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22780 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
22781 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
22782 GNU_USER_DYNAMIC_LINKER64.
22783 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
22784 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22785 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22786 GNU_USER_DYNAMIC_LINKER.
22787 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
22788 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22789 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22790 GNU_USER_DYNAMIC_LINKER.
22791 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
22792 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22793 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
22794 GNU_USER_DYNAMIC_LINKER32.
22795 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
22796 GNU_USER_DYNAMIC_LINKER64.
22797 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
22798 GNU_USER_DYNAMIC_LINKER64.
22799 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
22800 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22801 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
22802 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22803 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22804
22805 2011-04-11 Joseph Myers <joseph@codesourcery.com>
22806
22807 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
22808 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
22809 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
22810 GNU_USER_DYNAMIC_LINKER.
22811 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
22812 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
22813 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
22814 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
22815 GNU_USER_DYNAMIC_LINKER64.
22816 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
22817 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
22818 GNU_USER_LINK_EMULATION.
22819 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
22820 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
22821 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
22822 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
22823 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
22824 CPP_SPEC, CC1_SPEC): Remove.
22825 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
22826 (GNU_USER_DYNAMIC_LINKER): Define.
22827 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
22828 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
22829 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
22830 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
22831 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
22832 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
22833 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
22834 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
22835 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
22836 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
22837 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
22838 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
22839 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
22840 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
22841 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
22842 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
22843 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22844 GNU_USER_DYNAMIC_LINKER.
22845 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22846 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
22847 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22848 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
22849 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22850 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
22851 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
22852 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
22853 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
22854 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
22855
22856 2011-04-11 Kai Tietz <ktietz@redhat.com>
22857
22858 PR target/9601
22859 PR target/11772
22860 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
22861 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
22862 comment.
22863 (ix86_is_msabi_thiscall): Removed.
22864 (ix86_is_type_thiscall): Likewise.
22865 (ix86_get_callcvt): New function.
22866 (ix86_comp_type_attributes): Simplify check.
22867 (ix86_function_regparm): Use ix86_get_callcvt for calling
22868 convention attribute checks.
22869 (ix86_return_pops_args): Likewise.
22870 (ix86_static_chain): Likewise.
22871 (x86_this_parameter): Likewise.
22872 (x86_output_mi_thunk): Likewise.
22873 (ix86_function_type_abi): Optimize check for types without attributes.
22874 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
22875 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
22876 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
22877 by flag-values.
22878 (IX86_BASE_CALLCVT): Helper macro.
22879 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
22880 Use ix86_get_callcvt for calling convention attribute checks and avoid
22881 symbol-decoration for stdcall in TARGET_RTD case.
22882 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
22883 Likewise.
22884 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
22885 for declaration.
22886
22887 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
22888
22889 * config/i386/sse.md (VI_128): New mode iterator.
22890 (VI12_128): Rename from SSEMODE12.
22891 (VI14_128): Rename from SSEMODE14.
22892 (VI124_128): New mode iterator.
22893 (VI24_128): Rename from SSEMODE248.
22894 (VI248_128): Rename from SSEMODE248.
22895 (SSEMODE124C8): Remove.
22896 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
22897 (*sse2_<plusminus_insn><mode>3): Merge with
22898 *avx_<plusminus_insn><mode>3.
22899 (*mulv8hi3): Merge with *avx_mulv8hi3.
22900 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
22901 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
22902 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
22903 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
22904 (ashr<mode>3): Merge with *avx_ashr<mode>3.
22905 (lshr<mode>3): Merge with *avx_lshr<mode>3.
22906 (ashl<mode>3): Merge with *avx_ashl<mode>3.
22907 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
22908 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
22909 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
22910 (*<smaxmin:code>v8hi3): Ditto.
22911 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
22912 (*<smaxmin:code>v16qi3): Ditto.
22913 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
22914 (*sse2_eq<mode>3): Ditto.
22915 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
22916 (*sse2_gt<mode>3): Ditto.
22917 (vcondv2di): Split out of vcond<mode>.
22918 (vconduv2di): Split out of vcondu<mode>.
22919
22920 2011-04-11 Richard Guenther <rguenther@suse.de>
22921
22922 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
22923 before calling tree_low_cst.
22924
22925 2011-04-11 Richard Guenther <rguenther@suse.de>
22926
22927 * stor-layout.c (layout_type): Compute all array index size operations
22928 in the original type.
22929 (initialize_sizetypes): Add comment.
22930 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
22931
22932 2011-04-11 Joseph Myers <joseph@codesourcery.com>
22933
22934 * common.opt (Tbss=, Tdata=, Ttext=): New options.
22935
22936 2011-04-11 Martin Jambor <mjambor@suse.cz>
22937
22938 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
22939 of cgraph_node, handle NULL return value.
22940 (cgraph_global_info): Likewise.
22941 (cgraph_rtl_info): Likewise.
22942 * tree-inline.c (estimate_num_insns): Likewise.
22943 * gimplify.c (unshare_body): Likewise.
22944 (unvisit_body): Likewise.
22945 (gimplify_body): Likewise.
22946 * predict.c (optimize_function_for_size_p): Likewise.
22947 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
22948 (call_may_clobber_ref_p_1): Likewise.
22949 * varasm.c (function_section_1): Likewise.
22950 (assemble_start_function): Likewise.
22951
22952 2011-04-11 Martin Jambor <mjambor@suse.cz>
22953
22954 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
22955 of cgraph_node.
22956 * final.c (rest_of_clean_state): Likewise.
22957 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
22958 * passes.c (pass_init_dump_file): Likewise.
22959 (execute_all_ipa_transforms): Likewise.
22960 (function_called_by_processed_nodes_p): Likewise.
22961 * predict.c (maybe_hot_frequency_p): Likewise.
22962 (probably_never_executed_bb_p): Likewise.
22963 (compute_function_frequency): Likewise.
22964 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
22965 (unnest_nesting_tree_1): Likewise.
22966 (lower_nested_functions): Likewise.
22967 * tree-optimize.c (execute_fixup_cfg): Likewise.
22968 (tree_rest_of_compilation): Likewise.
22969 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
22970 * tree-sra.c (ipa_early_sra): Likewise.
22971 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
22972 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
22973 * ipa.c (record_cdtor_fn): Likewise.
22974 * ipa-inline.c (cgraph_early_inlining): Likewise.
22975 (compute_inline_parameters_for_current): Likewise.
22976 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
22977 * ipa-pure-const.c (local_pure_const): Likewise.
22978 * ipa-split.c (split_function): Likewise.
22979 (execute_split_functions): Likewise.
22980 * cgraphbuild.c (build_cgraph_edges): Likewise.
22981 (rebuild_cgraph_edges): Likewise.
22982 (cgraph_rebuild_references): Likewise.
22983 (remove_cgraph_callee_edges): Likewise.
22984 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
22985 (verify_cgraph_node): Likewise.
22986 (cgraph_analyze_functions): Likewise.
22987 (cgraph_preserve_function_body_p): Likewise.
22988 (save_inline_function_body): Likewise.
22989 (save_inline_function_body): Likewise.
22990 * tree-inline.c (copy_bb): Likewise.
22991 (optimize_inline_calls): Likewise.
22992
22993 2011-04-11 Martin Jambor <mjambor@suse.cz>
22994
22995 PR tree-optimization/48195
22996 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
22997 ipa_check_create_edge_args.
22998 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
22999 ipa_check_create_edge_args.
23000 * ipa-inline.c (inline_generate_summary): Do not call
23001 ipa_check_create_node_params and ipa_check_create_edge_args.
23002 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
23003 ipa_check_create_edge_args.
23004
23005 2011-04-09 Anatoly Sokolov <aesok@post.ru>
23006
23007 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
23008 instead of loop.
23009 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
23010 * function.c (record_hard_reg_sets): Likewise.
23011 * ira.c (compute_regs_asm_clobbered): Likewise.
23012 * sched-deps.c (sched_analyze_1): Likewise.
23013 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
23014
23015 2011-04-09 Xinliang David Li <davidxl@google.com>
23016
23017 PR tree-optimization/PR48484
23018 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
23019 has_valid_pred lazily
23020
23021 2011-04-09 Duncan Sands <baldrick@free.fr>
23022
23023 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
23024
23025 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
23026
23027 * combine.c (combine_validate_cost): Adjust comments. Set registered
23028 cost of I0 to zero at the end, if any.
23029
23030 2011-04-08 Xinliang David Li <davidxl@google.com>
23031
23032 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
23033 to insane profile data.
23034
23035 2011-04-08 Xinliang David Li <davidxl@google.com>
23036
23037 * ipa-cp.c (ipcp_update_profiling): Correct
23038 negative scale factor due to insane profile data.
23039
23040 2011-04-08 Xinliang David Li <davidxl@google.com>
23041
23042 * final.c (dump_basic_block_info): New function.
23043 (final): Dump basic block.
23044 (final_scan_insn): Remove old dump.
23045
23046 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
23047
23048 PR target/47829
23049 * config.gcc (i386-*-freebsd): Disable unwind table generation for
23050 crtbegin/crtend.
23051
23052 2011-04-08 Michael Matz <matz@suse.de>
23053
23054 PR middle-end/48389
23055 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
23056 functions.
23057 (rebuild_jump_labels): Call rebuild_jump_labels_1.
23058 * rtl.h (rebuild_jump_labels_chain): Declare.
23059 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
23060 insns inserted on edges.
23061
23062 2011-04-08 Joseph Myers <joseph@codesourcery.com>
23063
23064 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
23065 * config/arm/arm-arches.def: New.
23066 * config/arm/arm-opts.h: New.
23067 * config/arm/genopt.sh: New.
23068 * config/arm/arm-tables.opt: New (generated).
23069 * config/arm/arm.c (arm_handle_option, arm_target_help,
23070 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
23071 (all_architectures): Get most table contents from arm-arches.def.
23072 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
23073 arm_selected_tune here.
23074 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
23075 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
23076 (march=, mcpu=, mtune=): Use Enum and Var.
23077 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
23078 (arm.o): Update dependencies.
23079
23080 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
23081
23082 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
23083 of header_file.
23084 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
23085 (write_typed_alloc_defns): Likewise.
23086 (main): Calls write_typed_alloc_defns with output_header.
23087
23088 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
23089
23090 PR inline-asm/48435
23091 * ira-color.c (setup_profitable_hard_regs): Add comments.
23092 Don't take prohibited hard regs into account.
23093 (setup_conflict_profitable_regs): Rename to
23094 get_conflict_profitable_regs.
23095 (check_hard_reg_p): Check prohibited hard regs.
23096
23097 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
23098
23099 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
23100 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
23101 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
23102
23103 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23104
23105 PR target/48366
23106 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
23107 move from floating point to shift amount register.
23108 (emit_move_sequence): Remove secondary reload support for floating
23109 point to shift amount amount register copies.
23110 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
23111 amount register copies.
23112 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
23113 register, return false if mode isn't a scalar integer mode.
23114 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
23115
23116 2011-04-08 Richard Guenther <rguenther@suse.de>
23117
23118 * gimple.c (gimple_call_flags): Remove kludge.
23119
23120 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
23121
23122 * sel-sched.c (sel_region_init): Move call to
23123 sel_setup_region_sched_flags after setup_current_loop_nest.
23124
23125 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
23126
23127 PR rtl-optimization/48272
23128 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
23129 init_insn_reg_pressure_info. Adjust a caller.
23130 * sched-int.h (init_insn_reg_pressure_info): Declare.
23131 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
23132 when sched-pressure is enabled.
23133
23134 2011-04-08 Richard Guenther <rguenther@suse.de>
23135
23136 * gimple.c (gimple_set_modified): Do not queue calls to
23137 MODIFIED_NORETURN_CALLS here ...
23138 * tree-ssa-operands.c (update_stmt_operands): ... but here.
23139
23140 2011-04-08 Richard Guenther <rguenther@suse.de>
23141
23142 PR lto/48467
23143 * toplev.c (lang_dependent_init): Do not open asm_out_file
23144 in WPA mode, nor perform debug machinery initialization.
23145 (finalize): Do not unlink asm_out_file in WPA mode.
23146
23147 2011-04-08 Richard Guenther <rguenther@suse.de>
23148
23149 * gimple.h (gimple_call_fntype): New function.
23150 (gimple_call_return_type): Use it.
23151 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
23152 * gimple-low.c (gimple_check_call_args): Likewise.
23153 * gimple.c (gimple_call_flags): Likewise.
23154 (gimple_call_arg_flags): Likewise.
23155 (gimple_call_return_flags): Likewise.
23156 * tree-cfg.c (verify_gimple_call): Likewise.
23157 (do_warn_unused_result): Likewise.
23158 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
23159 * value-prof.c (gimple_ic_transform): Fix fndecl check.
23160
23161 2011-04-08 Dmitry Melnik <dm@ispras.ru>
23162
23163 PR rtl-optimization/48235
23164 * sel-sched.c (code_motion_process_successors): Recompute the last
23165 insn in basic block if control flow changed.
23166 (code_motion_path_driver): Ditto. Recompute the first insn as well.
23167 Update condition for ilist_remove.
23168
23169 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
23170
23171 PR rtl-optimization/48302
23172 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
23173 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
23174 it to record added preheader blocks.
23175 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
23176 on to sel_add_loop_preheaders.
23177 (sel_region_init): Move call to setup_current_loop_nest after
23178 sel_init_bbs.
23179
23180 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
23181
23182 PR target/48273
23183 * cfgloop.h (loop_has_exit_edges): New helper.
23184 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
23185 non-clonable.
23186 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
23187 that have no exit edges.
23188
23189 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
23190
23191 PR rtl-optimization/48442
23192 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
23193 all callers. Adjust assert.
23194
23195 2011-04-08 Jakub Jelinek <jakub@redhat.com>
23196
23197 PR tree-optimization/48377
23198 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
23199 is_packed to true even for types with smaller TYPE_ALIGN than
23200 TYPE_SIZE.
23201
23202 2011-04-08 Richard Guenther <rguenther@suse.de>
23203
23204 PR bootstrap/48513
23205 * doc/tm.texi: Re-generate.
23206
23207 2011-04-08 Wei Guozhi <carrot@google.com>
23208
23209 PR target/47855
23210 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
23211 * config/arm/arm.c (arm_attr_length_push_multi): New function.
23212 * config/arm/arm.md (*push_multi): Change the length computation to
23213 call a C function.
23214
23215 2011-04-08 Anatoly Sokolov <aesok@post.ru>
23216
23217 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
23218 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
23219 * doc/tm.texi: Regenerate.
23220 * system.h (ASM_OUTPUT_BSS): Poison.
23221 * varasm.c (asm_output_bss): Remove function.
23222 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
23223
23224 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
23225 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
23226 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
23227 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23228 Likewise.
23229 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23230 Likewise.
23231 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23232 Likewise.
23233 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
23234
23235 2011-04-07 Joseph Myers <joseph@codesourcery.com>
23236
23237 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
23238 EnumValue lines.
23239
23240 2011-04-07 Joseph Myers <joseph@codesourcery.com>
23241
23242 * config/m68k/m68k.c (m68k_handle_option): Don't handle
23243 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
23244 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
23245 OPT_mcpu32.
23246 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
23247 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
23248 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
23249 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
23250 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
23251 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
23252 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
23253 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
23254 options. Don't map other m68k options manually. Don't handle
23255 old-style options as canonical.
23256 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
23257 * doc/install.texi (m68k-*-*): Document binutils version requirement.
23258
23259 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
23260
23261 * basic-block.h (force_nonfallthru): Move to...
23262 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
23263 (force_nonfallthru): ...here.
23264 * cfghooks.c (force_nonfallthru): New function.
23265 * cfgrtl.c (force_nonfallthru): Rename into...
23266 (rtl_force_nonfallthru): ...this.
23267 (commit_one_edge_insertion): Do not set AUX field.
23268 (commit_edge_insertions): Do not discover new basic blocks.
23269 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
23270 (cfg_layout_rtl_cfg_hooks): Likewise.
23271 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
23272 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
23273 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
23274
23275 2011-04-07 Anatoly Sokolov <aesok@post.ru>
23276
23277 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
23278 Remove macros.
23279
23280 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
23281
23282 * config/i386/sse.md: Update copyright year.
23283 (avxcvtvecmode): Remove.
23284 (sse_movhlps): Merge with *avx_movhlps.
23285 (sse_movlhps): Merge with *avx_movlhps.
23286 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
23287 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
23288 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
23289 (sse_loadhps): Merge with *avx_loadhps.
23290 (sse_storelps): Merge with *avx_storelps.
23291 (sse_loadlps): Merge with *avx_loadlps.
23292 (sse_movss): Merge with *avx_movss.
23293 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
23294 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
23295 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
23296 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
23297 (vec_set<mode>_0): Ditto.
23298 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
23299 (sse4_1_insertps): Merge with *avx_insertps.
23300 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
23301 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
23302 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
23303 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
23304 (sse2_storehpd): Merge with *avx_storehpd.
23305 (sse2_loadhpd): Merge with *avx_loadhpd.
23306 (sse2_loadlpd): Merge with *avx_loadlpd.
23307 (sse2_movsd): Merge with *avx_movsd.
23308 (*vec_concatv2df): Merge with *vec_concatv2df.
23309
23310 2011-04-07 Jakub Jelinek <jakub@redhat.com>
23311
23312 PR debug/48343
23313 * combine.c (combine_instructions): Add last_combined_insn,
23314 update it if insn is after it, pass it to all try_combine calls.
23315 (try_combine): Add last_combined_insn parameter, pass it instead of
23316 i3 to propagate_for_debug.
23317
23318 2011-04-07 Nick Clifton <nickc@redhat.com>
23319
23320 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
23321 to handle MDR <-> data register transfers.
23322 (movhi_internal): Likewise.
23323
23324 2011-04-07 Alan Modra <amodra@gmail.com>
23325
23326 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
23327 previous stack info.
23328
23329 2011-04-07 Tom de Vries <tom@codesourcery.com>
23330
23331 PR target/43920
23332 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
23333 flow_find_cross_jump. Swap variables to implement backward replacement.
23334 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
23335
23336 2011-04-07 Tom de Vries <tom@codesourcery.com>
23337
23338 PR target/43920
23339 * cfgcleanup.c (walk_to_nondebug_insn): New function.
23340 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
23341 and bb2.
23342 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
23343 src1 or src2. Redirect edges to the last basic block. Update
23344 frequency and count on multiple basic blocks in case of fallthru.
23345
23346 2011-04-07 Tom de Vries <tom@codesourcery.com>
23347
23348 PR target/43920
23349 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
23350 function.
23351 (old_insns_match_p): Change return type. Replace return false/true
23352 with return dir_none/dir_both. Use can_replace_by.
23353 (flow_find_cross_jump): Add dir_p parameter. Init replacement
23354 direction from dir_p. Register replacement direction in dir, last_dir
23355 and afterlast_dir. Handle new return type of old_insns_match_p using
23356 merge_dir. Return replacement direction in dir_p.
23357 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
23358 return type of old_insns_match_p.
23359 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
23360 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
23361 flow_find_cross_jump.
23362 * basic-block.h (enum replace_direction): New type.
23363 (flow_find_cross_jump): Add parameter to declaration.
23364
23365 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
23366
23367 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
23368 (AVXMODEDCVTPS2DQ): Ditto.
23369 (VEC_FLOAT_MODE): Ditto.
23370 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
23371 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
23372 (<any_logic:code><mode>3): Use VF mode iterator.
23373 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
23374 Use VF mode iterator.
23375 (copysign<mode>3): Use VF mode iterator.
23376 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
23377 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
23378 (*<any_logic:code><MODEF:mode>3): Merge with
23379 *avx_<any_logic:code><MODEF:mode>3.
23380 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
23381 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
23382 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
23383 (avx_cvtdq2ps<avxmodesuffix>): Remove.
23384 (sse2_cvtdq2ps): Use %v modifier.
23385 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
23386 (avx_cvtps2dq<avxmodesuffix>): Remove.
23387 (sse2_cvtps2dq): Use %v modifier.
23388 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
23389 (avx_cvttps2dq<avxmodesuffix>): Remove.
23390 (sse2_cvttps2dq): Use %v modifier.
23391 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
23392 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
23393 (sse2_cvtsd2siq): Fix insn template.
23394 (sse2_cvtsd2siq_2): Ditto.
23395 (sse2_cvttsd2siq): Ditto.
23396 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
23397 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
23398
23399 2011-04-06 Joseph Myers <joseph@codesourcery.com>
23400
23401 * gcov-io.c: Use GCC Runtime Library Exception.
23402
23403 2011-04-06 Jakub Jelinek <jakub@redhat.com>
23404
23405 PR debug/48466
23406 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
23407 as base_reg whatever register reg has been eliminated to, instead
23408 of hardcoding STACK_POINTER_REGNUM.
23409
23410 2011-04-06 Joseph Myers <joseph@codesourcery.com>
23411
23412 * doc/tm.texi.in: Document C target hooks as separate from general
23413 target hooks.
23414 * doc/tm.texi: Regenerate.
23415 * genhooks.c (struct hook_desc): Add docname field.
23416 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
23417 docname field.
23418 (hook_array): Include c-target.def.
23419 (emit_documentation): Use docname field in output.
23420 (emit_init_macros): Take docname argument. Only emit definitions
23421 for hooks matching docname.
23422 (main): Expect additional arguments in all cases. Pass argument
23423 to emit_init_macros.
23424 * target.def: Move initial macro definitions and comments to
23425 target-hooks-macros.h.
23426 (gcc_targetcm): Move to c-family/c-target.def.
23427 * target.h (targetcm): Move declaration to c-family/c-target.h.
23428 * targhooks.c (default_handle_c_option): Move to
23429 c-family/c-opts.c.
23430 * targhooks.h (default_handle_c_option): Move declaration to
23431 c-family/c-common.h.
23432 * target-hooks-macros.h: New file.
23433 * config.gcc (target_has_targetcm): Define and use to add to
23434 c_target_objs and cxx_target_objs.
23435 * config/default-c.c: New file.
23436 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
23437 of target.h and target-def.h.
23438 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
23439 (darwin_objc_construct_string, darwin_cfstring_ref_p,
23440 darwin_check_cfstring_format_arg): Make static.
23441 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
23442 TARGET_STRING_OBJECT_REF_TYPE_P,
23443 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
23444 * config/darwin-protos.h (darwin_objc_construct_string,
23445 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
23446 declare.
23447 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
23448 TARGET_STRING_OBJECT_REF_TYPE_P,
23449 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
23450 * config/t-darwin (darwin-c.o): Update dependencies.
23451 * system.h (TARGET_HAS_TARGETCM): Poison.
23452 * Makefile.in (TARGET_H): Update.
23453 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
23454 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
23455 (default-c.o): New target.
23456 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
23457 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
23458 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
23459 c-target.def.
23460 (build/genhooks.o): Update dependencies.
23461
23462 2011-04-06 Richard Guenther <rguenther@suse.de>
23463
23464 * ipa-inline.c (enum inlining_mode): Remove.
23465 (cgraph_flatten): Use some other token.
23466 (cgraph_edge_early_inlinable_p): New function, split out from ...
23467 (cgraph_perform_always_inlining): New function, split out from ...
23468 (cgraph_decide_inlining_incrementally): ... here.
23469 (cgraph_mark_inline_edge): Adjust.
23470 (cgraph_early_inlining): Re-structure.
23471 (pass_early_inline): Require SSA form.
23472
23473 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
23474 Julian Brown <julian@codesourcery.com>
23475 Mark Shinwell <shinwell@codesourcery.com>
23476
23477 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
23478 LO_REGS only for Thumb-1.
23479 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
23480 be used in short instructions when optimising for size on Thumb-2.
23481
23482 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
23483
23484 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
23485 associated with user returns to be preserved.
23486
23487 2011-04-06 Tristan Gingold <gingold@adacore.com>
23488
23489 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
23490 symbol_queue_size, DBXOUT_DECR_NESTING,
23491 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
23492 if XCOFF_DEBUGGING_INFO.
23493
23494 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
23495
23496 * config/i386/i386.md (attribute isa): New.
23497 (attribute enabled): New.
23498 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
23499 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
23500 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
23501 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
23502 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
23503 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
23504 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
23505 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
23506
23507 * config/i386/sse.md (VF): New mode iterator.
23508 (VF1): Ditto.
23509 (VF2): Ditto.
23510 (VF_128): Ditto.
23511 (SSEMODEF4): Remove.
23512 (attribute sse): Handle V8SF and V4DF modes.
23513 (<absneg:code><mode>2): Use VF mode iterator.
23514 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
23515 mode iterator.
23516 (<plusminus_insn><mode>3): Use VF mode iterator.
23517 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
23518 Use VF mode iterator.
23519 (<sse>_vm<plusminus_insn><mode>3): Merge with
23520 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
23521 (mul<mode>3): Use VF mode iterator.
23522 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
23523 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
23524 mode iterator.
23525 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
23526 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
23527 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
23528 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
23529 mode iterator.
23530 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
23531 Use VF1 mode iterator.
23532 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
23533 (sqrt<VF2:mode>2): New expander.
23534 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
23535 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
23536 and sqrtv2df2. Use VF mode iterator.
23537 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
23538 mode iterator.
23539 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
23540 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
23541 Use VF1 mode iterator.
23542 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
23543 (<smaxmin:code><mode>3): Use VF mode iterator.
23544 (*<smaxmin:code><mode>3_finite): Merge with
23545 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
23546 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
23547 (<sse>_vm<smaxmin:code><mode>2): Merge with
23548 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
23549 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
23550 mode iterator.
23551 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
23552 mode iterator.
23553 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
23554 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
23555 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
23556 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
23557 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
23558 VF mode iterator.
23559 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
23560 Use VF_128 mode iterator.
23561 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
23562 mode iterator.
23563 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
23564 VF_128 mode iterator.
23565 (vcond<mode>): Use VF mode iterator.
23566 * config/i386/predicates.md (sse_comparison_operator): Merge with
23567 avx_comparison_float_operator. Do not declare as special_predicate.
23568 * config/i386/i386.c (struct builtin_description): Update for renamed
23569 compare patterns.
23570 (ix86_expand_args_builtin): Ditto.
23571 (ix86_expand_sse_compare_mask): Ditto.
23572
23573 2011-04-06 Richard Guenther <rguenther@suse.de>
23574
23575 * tree-inline.c (estimate_num_insns): For calls simply account
23576 for all passed arguments and a used return value.
23577
23578 2011-04-06 Richard Guenther <rguenther@suse.de>
23579
23580 PR tree-optimization/47663
23581 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
23582 call_stmt_time fields.
23583 (cgraph_edge_inlinable_p): Declare.
23584 (cgraph_edge_recursive_p): New inline function.
23585 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
23586 (cgraph_clone_edge): Copy it.
23587 * ipa-inline.c (cgraph_estimate_edge_time): New function.
23588 Account for call stmt time.
23589 (cgraph_estimate_time_after_inlining): Take edge argument.
23590 (cgraph_estimate_edge_growth): Account call stmt size.
23591 (cgraph_estimate_size_after_inlining): Take edge argument.
23592 (cgraph_mark_inline_edge): Adjust.
23593 (cgraph_check_inline_limits): Likewise.
23594 (cgraph_recursive_inlining_p): Remove.
23595 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
23596 (cgraph_decide_recursive_inlining): Take edge argument and
23597 adjust.
23598 (cgraph_decide_inlining_of_small_functions): Do not avoid
23599 diags for recursive inlining here.
23600 (cgraph_flatten): Adjust.
23601 (cgraph_decide_inlining_incrementally): Likewise.
23602 (estimate_function_body_sizes): Remove call cost handling.
23603 (compute_inline_parameters): Initialize caller edge call costs.
23604 (cgraph_estimate_edge_growth): New function.
23605 (cgraph_estimate_growth): Use it.
23606 (cgraph_edge_badness): Likewise.
23607 (cgraph_check_inline_limits): Take an edge argument.
23608 (cgraph_decide_inlining_of_small_functions): Adjust.
23609 (cgraph_decide_inlining): Likewise.
23610 * tree-inline.c (estimate_num_insns): Only account for call
23611 return value if it is used.
23612 (expand_call_inline): Avoid diagnostics on recursive inline
23613 functions here.
23614 * lto-cgraph.c (lto_output_edge): Output edge call costs.
23615 (input_edge): Input edge call costs.
23616
23617 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23618
23619 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
23620
23621 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
23622
23623 * doc/invoke.texi (Spec Files): Fix typo.
23624
23625 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
23626
23627 * profile.c (branch_prob): Move declaration of local variable. Remove
23628 obsolete ??? comment. Expand the location explicitly instead of using
23629 the LOCATION_FILE and LOCATION_LINE macros.
23630
23631 2011-04-06 Wei Guozhi <carrot@google.com>
23632
23633 PR target/47855
23634 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
23635 (arm_cond_branch): Likewise.
23636 (arm_cond_branch_reversed): Likewise.
23637 (arm_jump): Likewise.
23638 (push_multi): Likewise.
23639 * config/arm/constraints.md (Py): New constraint.
23640
23641 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
23642
23643 PR bootstrap/48471
23644 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
23645 Move these...
23646 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
23647 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
23648 #ifdef DBX_DEBUGGING_INFO.
23649
23650 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
23651
23652 PR bootstrap/48403
23653 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
23654 if old and new states differ.
23655
23656 2011-04-05 Joseph Myers <joseph@codesourcery.com>
23657
23658 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
23659 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
23660 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
23661 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
23662 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
23663 mcfv4e): Use Alias.
23664 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
23665 ColdFire options to -mcpu= options.
23666
23667 2011-04-05 Jeff Law <law@redhat.com>
23668
23669 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
23670 check if BB is a successor of LOOP->header and return
23671 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
23672
23673 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
23674
23675 * cprop.c (struct reg_use): Remove.
23676 (reg_use_table): Make an array of RTX.
23677 (find_used_regs, constprop_register, local_cprop_pass,
23678 bypass_block): Simplify users of reg_use_table.
23679 (cprop_insn): Likewise. Iterate if copy propagation succeeded
23680 on one of the uses found by find_used_regs.
23681
23682 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
23683
23684 PR bootstrap/48469
23685 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
23686 declaration.
23687
23688 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
23689
23690 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
23691 as an rtx.
23692 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
23693
23694 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
23695
23696 PR middle-end/48441
23697 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
23698
23699 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
23700
23701 * combine.c: Include obstack.h.
23702 (struct insn_link): Define.
23703 (uid_log_links): Adjust type.
23704 (FOR_EACH_LOG_LINK): New macro.
23705 (insn_link_obstack): Declare.
23706 (alloc_insn_link): Define.
23707 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
23708 type of link variables.
23709 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
23710 (try_combine, record_promoted_values, distribute_notes): Likewise.
23711 (distribute_links): Likewise. Tweak prototype.
23712 (clear_log_links): Delete.
23713 (adjust_for_new_dest): Call alloc_insn_link.
23714 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
23715
23716 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
23717
23718 * gcse.c (modify_mem_list): Convert to an array of VECs.
23719 (canon_modify_mem_list, compute_transp): Tweak formatting.
23720 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
23721 (load_killed_in_block_p): Likewise.
23722 (record_last_mem_set_info): Likewise.
23723 (clear_modify_mem_tables): Likewise.
23724
23725 2011-04-05 Tom de Vries <tom@codesourcery.com>
23726
23727 PR middle-end/48461
23728 * function.c (emit_use_return_register_into_block): Only define if
23729 HAVE_return.
23730
23731 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
23732
23733 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
23734
23735 2011-04-05 Joseph Myers <joseph@codesourcery.com>
23736
23737 * config/rx/rx-opts.h: New.
23738 * config/rx/rx.c (rx_cpu_type): Remove.
23739 (rx_handle_option): Don't assert that global structures are in
23740 use. Access variables via opts pointer. Defer most handling of
23741 OPT_mint_register_. Use error_at.
23742 (rx_option_override): Handle deferred OPT_mint_register_ here.
23743 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
23744 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
23745 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
23746 (rx_cpu_types): New Enum and EnumValue entries.
23747 (mint-register=): Use Defer and use Var accordingly.
23748
23749 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
23750
23751 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
23752 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
23753 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
23754 Move these...
23755 (debug_free_queue, debug_nesting, symbol_queue_index):
23756 ...and these...
23757 * dbxout.c: ...to here. Make static.
23758
23759 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
23760
23761 * gcse.c (modify_pair): Define. Define a VEC of it.
23762 (canon_modify_mem_list): Convert to an array of VECs.
23763 (free_insn_expr_list_list): Delete.
23764 (clear_modify_mem_tables): Call VEC_free instead.
23765 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
23766 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
23767 (canon_list_insert, compute_transp): Likewise.
23768
23769 2011-04-05 Tom de Vries <tom@codesourcery.com>
23770
23771 PR target/43920
23772 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
23773 for size.
23774
23775 2011-04-05 Tom de Vries <tom@codesourcery.com>
23776
23777 PR target/43920
23778 * function.c (emit_use_return_register_into_block): New function.
23779 (thread_prologue_and_epilogue_insns): Use
23780 emit_use_return_register_into_block.
23781
23782 2011-04-05 Tom de Vries <tom@codesourcery.com>
23783
23784 PR target/43920
23785 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
23786 insn.
23787
23788 2011-04-05 Tom de Vries <tom@codesourcery.com>
23789
23790 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
23791
23792 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
23793
23794 * config/arm/arm.md (define_constants for unspec): Replace with
23795 define_c_enum.
23796 (define_constants for unspecv): Replace with define_c_enum.
23797 * config/arm/neon.md (define_constants for unspec): Replace with
23798 define_c_enum.
23799
23800 2011-04-04 Richard Henderson <rth@redhat.com>
23801
23802 PR bootstrap/48400
23803 * dwarf2out.c (output_line_info): Always emit line info from
23804 at least one section.
23805 (dwarf2out_init): Create text_section_line_info here ...
23806 (set_cur_line_info_table): ... not here.
23807
23808 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
23809
23810 PR target/48380
23811 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
23812 not called.
23813
23814 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
23815
23816 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
23817
23818 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
23819 (expr_equiv_p): Remove.
23820 (insert_set_in_table): Look at <dest, src> pair instead of expr.
23821 (hash_scan_set): Update call to insert_set_in_table.
23822 (dump_hash_table): Dump <dest, src> pair.
23823 (lookup_set): Simplify. Lookup <dest, src> pair.
23824 (compute_transp): Remove, fold heavily simplified code into...
23825 (compute_local_properties): ...here. Expect COMP and TRANSP
23826 unconditionally.
23827 (find_avail_set): Take set directly from struct expr.
23828 (find_bypass-set): Likewise.
23829 (bypass_block): Likewise.
23830 (cprop_insn): Likewise. Remove redundant INSN_P test.
23831
23832 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
23833 checks on form of COND from find_implicit_sets to here.
23834 (find_implicit_sets): Cleanup control flow. Split critical edges
23835 if it exposes implicit sets. Allocate/resize implicit_sets as
23836 necessary.
23837 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
23838 changed something. Run df_analyze after find_implicit_sets if any
23839 edges were split. Do not allocate implicit_sets here.
23840
23841 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
23842 (gcse_obstack): Renamed to cprop_obstack.
23843 (GNEW, GNEWVEC, GNEWVAR): Remove.
23844 (gmalloc): Remove.
23845 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
23846 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
23847 (gcse_alloc): Likewise, and rename to cprop_alloc.
23848 (alloc_gcse_men, free_gcse_mem): Remove.
23849 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
23850 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
23851 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
23852
23853 * cprop.c (oprs_not_set_p): Remove.
23854 (mark_set, mark_clobber): Remove.
23855 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
23856 (reg_not_set_p): New function.
23857 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
23858 (cprop_insn): Likewise.
23859 (cprop_jump): Use FOR_EACH_EDGE.
23860
23861 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
23862
23863 PR bootstrap/48403
23864 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
23865 (rank_for_schedule): Use scheduled_insns vector instead of
23866 last_scheduled_insn.
23867 (ok_for_early_queue_removal): Likewise.
23868 (queue_to_ready): Search forward in nonscheduled_insns_begin if
23869 we have a dbg_cnt.
23870 (choose_ready): Likewise.
23871 (commit_schedule): Use VEC_iterate.
23872 (schedule_block): Initialize nonscheduled_insns_begin. If we have
23873 a dbg_cnt, use it and ensure the first insn is in the ready list.
23874 (haifa_sched_init): Allocate scheduled_insns.
23875 (sched_extend_ready_list): Don't allocate it; reserve space.
23876 (haifa_sched_finish): Free it.
23877
23878 2011-04-04 Joseph Myers <joseph@codesourcery.com>
23879
23880 * optc-gen.awk: Always remove type from Variable entry before
23881 recording in var_seen.
23882
23883 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
23884
23885 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
23886 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
23887 call to tidy_fallthru_edges.
23888
23889 2011-04-04 Joseph Myers <joseph@codesourcery.com>
23890
23891 * doc/options.texi (ToLower): Document.
23892 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
23893 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
23894 * opts.h (cl_option): Add cl_tolower field.
23895 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
23896 arguments with lowercase strings.
23897 * config/rx/rx.opt (mcpu=): Add ToLower.
23898 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
23899 argument.
23900
23901 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
23902
23903 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
23904
23905 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
23906
23907 * config/vax/vax.c: Include reload.h.
23908
23909 2011-04-04 Anatoly Sokolov <aesok@post.ru>
23910
23911 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
23912 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
23913 (sparc_preferred_reload_class): New function.
23914
23915 2011-04-04 Jakub Jelinek <jakub@redhat.com>
23916
23917 PR debug/48401
23918 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
23919 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
23920
23921 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
23922
23923 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
23924 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
23925
23926 2011-04-03 Anatoly Sokolov <aesok@post.ru>
23927
23928 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
23929 (ASM_OUTPUT_ALIGNED_BSS): Define.
23930
23931 2011-04-03 Michael Matz <matz@suse.de>
23932
23933 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
23934 and next_slot members.
23935 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
23936 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
23937 (lto_streamer_cache_append): Declare.
23938 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
23939 unsigned index, remove offset parameter, ensure that we append
23940 or update existing entries.
23941 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
23942 parameter, update next_slot for append.
23943 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
23944 parameter.
23945 (lto_streamer_cache_insert_at): Likewise.
23946 (lto_streamer_cache_append): New function.
23947 (lto_streamer_cache_lookup): Use unsigned index.
23948 (lto_streamer_cache_get): Likewise.
23949 (lto_record_common_node): Don't test tree_node_can_be_shared.
23950 (preload_common_node): Adjust call to lto_streamer_cache_insert.
23951 (lto_streamer_cache_delete): Don't free offsets member.
23952 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
23953 (lto_output_string_with_length): Use lto_output_data_stream.
23954 (lto_output_tree_header): Remove ix parameter, don't write it.
23955 (lto_output_builtin_tree): Likewise.
23956 (lto_write_tree): Adjust callers to above, don't track and write
23957 offset, write unsigned index.
23958 (output_unreferenced_globals): Don't emit all global vars.
23959 (write_global_references): Use unsigned indices.
23960 (lto_output_decl_state_refs): Likewise.
23961 (write_symbol): Likewise.
23962 * lto-streamer-in.c (lto_input_chain): Move earlier.
23963 (input_function): Use unsigned index.
23964 (input_alias_pairs): Don't read and then ignore all global vars.
23965 (lto_materialize_tree): Remove ix_p parameter, don't read index,
23966 don't pass it back, use lto_streamer_cache_append.
23967 (lto_register_var_decl_in_symtab): Use unsigned index.
23968 (lto_register_function_decl_in_symtab): Likewise.
23969 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
23970 index.
23971 (lto_get_builtin_tree): Don't read index, use
23972 lto_streamer_cache_append.
23973 (lto_read_tree): Adjust call to lto_materialize_tree.
23974
23975 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
23976 don't use function calls in arguments to MIN.
23977
23978 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
23979 twice.
23980
23981 * gimple.c (gimple_type_leader_entry): Mark deletable.
23982
23983 2011-04-03 Alan Modra <amodra@gmail.com>
23984
23985 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
23986
23987 2011-04-03 Michael Matz <matz@suse.de>
23988
23989 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
23990 an integer.
23991 * tree.h (tree_decl_non_common.vindex): Adjust comment.
23992
23993 2011-04-03 Michael Matz <matz@suse.de>
23994
23995 * cgraphbuild.c (record_reference): Canonicalize constructor values.
23996 * gimple-fold.c (canonicalize_constructor_val): Accept being called
23997 without function context.
23998 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
23999 current_function_decl and cfun.
24000
24001 2011-04-03 Michael Matz <matz@suse.de>
24002
24003 * tree.c (decl_init_priority_insert): Don't create entry for
24004 default priority.
24005 (decl_fini_priority_insert): Ditto.
24006 (fields_compatible_p, find_compatible_field): Remove.
24007 * tree.h (fields_compatible_p, find_compatible_field): Remove.
24008 * gimple.c (gimple_compare_field_offset): Adjust block comment.
24009
24010 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
24011
24012 * combine.c (try_combine): Remove useless local variable.
24013
24014 2011-04-03 Richard Guenther <rguenther@suse.de>
24015 Ira Rosen <ira.rosen@linaro.org>
24016
24017 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
24018 non-variable offsets and compare the remaining bases of the two
24019 accesses instead of looking for exact same data-ref.
24020
24021 2011-04-02 Kai Tietz <ktietz@redhat.com>
24022
24023 PR target/48416
24024 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
24025
24026 * i386.c (ix86_is_msabi_thiscall): New helper function.
24027 (ix86_is_type_thiscall): New helper function.
24028 (ix86_comp_type_attributes): Handle thiscall for method-functions
24029 special.
24030 (init_cumulative_args): Likewise.
24031 (find_drap_reg): Likewise.
24032 (ix86_static_chain): Likewise.
24033 (x86_this_parameter): Likewise.
24034 (x86_output_mi_thunk): Likewise.
24035
24036 2011-04-01 Olivier Hainque <hainque@adacore.com>
24037 Nicolas Setton <setton@adacore.com>
24038 Eric Botcazou <ebotcazou@adacore.com>
24039
24040 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
24041 (add_gnat_descriptive_type_attribute): New function.
24042 (gen_array_type_die): Call it.
24043 (gen_enumeration_type_die): Likewise.
24044 (gen_struct_or_union_type_die): Likewise.
24045 (modified_type_die): Likewise.
24046 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
24047 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
24048 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
24049
24050 2011-04-01 Jakub Jelinek <jakub@redhat.com>
24051
24052 PR bootstrap/48148
24053 * dwarf2out.c (resolve_addr): Don't call force_decl_die
24054 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
24055
24056 Revert:
24057 2011-03-17 Richard Guenther <rguenther@suse.de>
24058
24059 PR bootstrap/48148
24060 * lto-cgraph.c (input_overwrite_node): Clear the abstract
24061 origin for decls in other ltrans units.
24062 (input_varpool_node): Likewise.
24063
24064 2011-04-01 Jakub Jelinek <jakub@redhat.com>
24065
24066 PR middle-end/48335
24067 * expr.c (expand_assignment): Handle all possibilities
24068 if TO_RTX is CONCAT.
24069 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
24070 (store_split_bit_field): If SUBREG_REG (op0) or
24071 op0 itself has smaller mode than word, return it
24072 for offset 0 and const0_rtx for out-of-bounds stores.
24073 If word is const0_rtx, skip it.
24074
24075 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
24076
24077 * config/h8300/h8300.c (print_operand_address): Rename to...
24078 (h8300_print_operand_address): ...this. Make static. Adjust comments.
24079 Call h8300_print_operand and h8300_print_operand_address instead of
24080 print_operand and print_operand_address. Declare.
24081 (print_operand): Renake to...
24082 (h8300_print_operand): ...this. Make static. Adjust comments.
24083 Call h8300_print_operand instead of print_operand. Declare.
24084 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
24085 (h8300_register_move_cost): Likewise.
24086 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
24087 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
24088 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
24089 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
24090 * config/h8300/h8300-protos.h (print_operand): Delete.
24091 (print_operand_address): Delete.
24092
24093 2011-04-01 Richard Henderson <rth@redhat.com>
24094
24095 PR 48400
24096 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
24097 in strict mode before dwarf4. Re-order tests to early out
24098 before switching sections.
24099
24100 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
24101
24102 * config/h8300/constraints.md: New file.
24103 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
24104 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
24105 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
24106 * config/h8300/predicates.md (bit_operand): Likewise.
24107 (incdec_operand): Use satisfies_constraint_M and
24108 satisfies_constraint_O. Don't use C code block.
24109 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
24110 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
24111 (compute_mov_length): Use satisfies_constraint_G.
24112 (fix_bit_operand): Use satisfies_constraint_U.
24113 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
24114 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
24115 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
24116 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
24117 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
24118 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
24119 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24120 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
24121 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
24122 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
24123 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
24124 (EXTRA_MEMORY_CONSTRAINT): Delete.
24125
24126 2011-04-01 Andrew Pinski <pinskia@gmail.com>
24127 Michael Meissner <meissner@linux.vnet.ibm.com>
24128
24129 PR target/48262
24130 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
24131 operands, as per the specifications.
24132
24133 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
24134 (vec_extract_evenv4sf): Ditto.
24135 (vec_extract_evenv8hi): Ditto.
24136 (vec_extract_evenv16qi): Ditto.
24137 (vec_extract_oddv4si): Ditto.
24138
24139 2011-03-31 Mark Wielaard <mjw@redhat.com>
24140
24141 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
24142 high_pc attribute if the CU has no associated code. Only output
24143 DW_AT_entry_pc for CU if not generating strict dwarf and
24144 dwarf_version < 4.
24145
24146 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
24147
24148 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
24149 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
24150 out of ...
24151 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
24152 * final.c (final_start_function): Call the new function rather
24153 than using a NULL argument for dwarf2out_frame_debug.
24154
24155 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
24156 that contains the prologue.
24157
24158 * haifa-sched.c (queue_insn): New arg REASON. All callers
24159 changed. Print it in debugging output.
24160
24161 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
24162
24163 * sched-ebb.c (begin_schedule_ready): Remove second argument.
24164 Split most of the code into...
24165 (begin_move_insn): ... here. New function.
24166 (ebb_sched_info): Add a pointer to it.
24167 * haifa-sched.c (scheduled_insns): New static variable.
24168 (sched_extend_ready_list): Allocate it.
24169 (schedule_block): Use it to record the order of scheduled insns.
24170 Perform RTL changes to move insns only after all scheduling
24171 decisions have been made.
24172 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
24173 begin_move_insn field.
24174 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
24175 * sched-int.h (struct haifa_sched_info): Remove second argument
24176 from begin_schedule_ready hook. Add new member begin_move_insn.
24177 * sched-rgn.c (begin_schedule_ready): Remove second argument.
24178 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
24179
24180 * haifa-sched.c (prune_ready_list): New function, broken out of
24181 schedule_block.
24182 (schedule_block): Use it.
24183
24184 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24185
24186 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
24187
24188 2011-04-01 Kai Tietz <ktietz@redhat.com>
24189
24190 * config.gcc (*-*-mingw*): Allow as option the
24191 posix threading model.
24192 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
24193 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
24194 definition.
24195 (CPP_SPEC): Add pthread/no-pthread handling.
24196 (LIB_SPEC): Likewise.
24197 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
24198 (LIB_SPEC): Likewise.
24199 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
24200 flag to pass -pthread option for shared libgcc build.
24201 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
24202 for shared libgcc build.
24203 * config/i386/t-mingw-pthread: New file.
24204 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
24205 New define to enable use of library pthread by default.
24206 * config/i386/mingw.opt (pthread): New driver option.
24207 (no-pthread): New driver option.
24208 * config/i386/cygming.opt: Make sure trailing empty line is retained.
24209 * config/i386/mingw-w64.opt: Likewise.
24210
24211 2011-04-01 Gary Funck <gary@intrepid.com>
24212
24213 * c-decl.c (grokdeclarator): Fix formatting.
24214
24215 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
24216
24217 * expr.c (emit_block_move_via_movmem): Use n_generator_args
24218 instead of n_operands.
24219 (set_storage_via_setmem): Likewise.
24220 * optabs.c (maybe_gen_insn): Likewise.
24221 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
24222 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
24223 (mips_expand_builtin_direct): Likewise.
24224 * config/spu/spu.c (expand_builtin_args): Likewise.
24225
24226 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
24227
24228 * recog.h (insn_data_d): Add n_generator_args.
24229 * genoutput.c (data): Likewise.
24230 (output_insn_data): Print it.
24231 (max_opno, num_dups): Delete.
24232 (scan_operands): Just fill in "d->operand[...]".
24233 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
24234
24235 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
24236
24237 * gensupport.h (pattern_stats): New structure.
24238 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
24239 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
24240 (max_operand_1, max_operand_vec): Delete.
24241 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
24242
24243 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
24244
24245 * emit-rtl.c (emit_pattern_after_setloc): New function.
24246 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
24247 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
24248 (emit_pattern_after): New function.
24249 (emit_insn_after, emit_jump_insn_after): Call it.
24250 (emit_call_insn_after, emit_debug_insn_after): Likewise.
24251 (emit_pattern_before_setloc): New function.
24252 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
24253 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
24254 Likewise.
24255 (emit_pattern_before): New function.
24256 (emit_insn_before, emit_jump_insn_before): Call it.
24257 (emit_call_insn_before, emit_debug_insn_before): Likewise.
24258
24259 2011-03-31 Richard Henderson <rth@redhat.com>
24260
24261 * dwarf2out.c (dw_separate_line_info_ref): Remove.
24262 (dw_separate_line_info_entry): Remove.
24263 (enum dw_line_info_opcode): New.
24264 (dw_line_info_entry): Use it.
24265 (dw_line_info_table, dw_line_info_table_p): New.
24266 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
24267 (line_info_table, line_info_label_num): Remove.
24268 (line_info_table_in_use): Remove.
24269 (separate_line_info_table): Remove.
24270 (separate_line_info_table_allocated): Remove.
24271 (separate_line_info_table_in_use): Remove.
24272 (LINE_INFO_TABLE_INCREMENT): Remove.
24273 (line_info_label_num): New.
24274 (cur_line_info_table): New.
24275 (text_section_line_info, cold_text_section_line_info): New.
24276 (separate_line_info): New.
24277 (SEPARATE_LINE_CODE_LABEL): Remove.
24278 (print_dwarf_line_table): Remove.
24279 (debug_dwarf): Don't dump it.
24280 (output_one_line_info_table): New.
24281 (output_line_info): Use it.
24282 (new_line_info_table): New.
24283 (set_cur_line_info_table): New.
24284 (dwarf2out_switch_text_section): Use it.
24285 (dwarf2out_begin_function): Likewise.
24286 (push_dw_line_info_entry): New.
24287 (dwarf2out_source_line): Rewrite for new line info tables.
24288 (dwarf2out_init): Remove dead initailizations.
24289
24290 2011-03-31 Joseph Myers <joseph@codesourcery.com>
24291
24292 * opts.h (cl_option): Add comments to fields. Add bit-fields for
24293 various flags.
24294 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
24295 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
24296 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
24297 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
24298 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
24299 * opt-functions.awk (flag_init, switch_bit_fields): New.
24300 (switch_flags): Don't handle flags moved to bit-fields. Don't
24301 generate CL_MISSING_OK or CL_SAVE.
24302 * optc-gen.awk: Update to generate bit-field output as well as
24303 flags field.
24304 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
24305 bit-field instead of CL_REJECT_DRIVER flag.
24306 * opts-common.c (generate_canonical_option,
24307 decode_cmdline_option): Use bit-fields instead of CL_* flags.
24308 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
24309 instead of CL_REJECT_NEGATIVE flag.
24310 * toplev.c (print_switch_values): Use cl_report bit-field instead
24311 of CL_REPORT flag.
24312
24313 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
24314
24315 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
24316 a zero minimum index only if it is redundant.
24317
24318 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
24319
24320 PR rtl-optimization/48381
24321 * ira-color.c (assign_hard_reg): Use hard reg set intersection
24322 instead of ira_class_hard_reg_index for calculating conflicting
24323 hard registers.
24324
24325 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
24326
24327 * cprop.c: Clean up hash table building.
24328 (reg_avail_info): Remove.
24329 (oprs_available_p): Remove.
24330 (record_last_reg_set_info): Remove.
24331 (record_last_set_info): Remove.
24332 (reg_available_p): New function.
24333 (gcse_constant_p): Do not treat unfolded conditions as constants.
24334 (make_set_regs_unavailable): New function.
24335 (hash_scan_set): Simplify with new reg_available_p.
24336 (compute_hash_table_work): Traverse insns stream only once.
24337 Do not compute reg_avail_info. Traverse insns in reverse order.
24338 Record implicit sets after recording explicit sets from the block.
24339
24340 2011-03-31 Michael Matz <matz@suse.de>
24341
24342 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
24343
24344 2011-03-31 Anatoly Sokolov <aesok@post.ru>
24345
24346 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
24347 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
24348 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24349 (h8300_mode_dependent_address_p): New function.
24350 (h8300_get_index): Make static.
24351
24352 2011-03-31 Jeff Law <law@redhat.com>
24353
24354 * reload1.c (elimination_effects): Fix typo in recent change.
24355
24356 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
24357 typo potentially leading to null pointer dereference.
24358
24359 * caller-save.c (new_saved_hard_reg): Eliminate return value.
24360 (setup_save_areas): Corresponding changes to avoid useless
24361 assignments.
24362
24363 * jump.c (reversed_comparison_code_parts): Avoid successive return
24364 statements when REVERSE_CONDITION is defined.
24365
24366 * expr.c (expand_assignment): Avoid useless assignments.
24367 (expand_expr_real_1): Likewise.
24368 (expand_expr_real_2): Avoid useless statements.
24369
24370 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
24371
24372 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
24373
24374 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
24375 statements.
24376
24377 * stmt.c (expand_expr_stmt): Avoid useless assignment.
24378
24379 2011-03-31 Joseph Myers <joseph@codesourcery.com>
24380
24381 PR target/47109
24382 * doc/tm.texi.in (TARGET_VERSION): Remove.
24383 * doc/tm.texi: Regenerate.
24384 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
24385 * collect2.c (main): Don't use TARGET_VERSION.
24386 * mips-tdump.c (main): Don't use TARGET_VERSION.
24387 * mips-tfile.c (main): Don't use TARGET_VERSION.
24388 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
24389 * config/rs6000/vxworksae.h: Remove.
24390 * config/alpha/alpha.h (TARGET_VERSION): Remove.
24391 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
24392 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
24393 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
24394 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
24395 * config/arm/arm.h (TARGET_VERSION): Remove.
24396 * config/arm/coff.h (TARGET_VERSION): Remove.
24397 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
24398 * config/arm/elf.h (TARGET_VERSION): Remove.
24399 * config/arm/freebsd.h (TARGET_VERSION): Remove.
24400 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
24401 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
24402 * config/arm/pe.h (TARGET_VERSION): Remove.
24403 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
24404 * config/arm/semi.h (TARGET_VERSION): Remove.
24405 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
24406 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
24407 * config/arm/vxworks.h (TARGET_VERSION): Remove.
24408 * config/avr/avr.h (TARGET_VERSION): Remove.
24409 * config/bfin/bfin.h (TARGET_VERSION): Remove.
24410 * config/fr30/fr30.h (TARGET_VERSION): Remove.
24411 * config/frv/frv.h (TARGET_VERSION): Remove.
24412 * config/h8300/h8300.h (TARGET_VERSION): Remove.
24413 * config/i386/cygwin.h (TARGET_VERSION): Remove.
24414 * config/i386/darwin.h (TARGET_VERSION): Remove.
24415 * config/i386/darwin64.h (TARGET_VERSION): Remove.
24416 * config/i386/djgpp.h (TARGET_VERSION): Remove.
24417 * config/i386/freebsd.h (TARGET_VERSION): Remove.
24418 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
24419 * config/i386/gnu.h (TARGET_VERSION): Remove.
24420 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
24421 * config/i386/i386elf.h (TARGET_VERSION): Remove.
24422 * config/i386/linux.h (TARGET_VERSION): Remove.
24423 * config/i386/linux64.h (TARGET_VERSION): Remove.
24424 * config/i386/lynx.h (TARGET_VERSION): Remove.
24425 * config/i386/mingw32.h (TARGET_VERSION): Remove.
24426 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
24427 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
24428 * config/i386/netware.h (TARGET_VERSION): Remove.
24429 * config/i386/nto.h (TARGET_VERSION): Remove.
24430 * config/i386/openbsd.h (TARGET_VERSION): Remove.
24431 * config/i386/vxworks.h (TARGET_VERSION): Remove.
24432 * config/ia64/elf.h (TARGET_VERSION): Remove.
24433 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
24434 * config/ia64/hpux.h (TARGET_VERSION): Remove.
24435 * config/ia64/linux.h (TARGET_VERSION): Remove.
24436 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
24437 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
24438 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
24439 * config/lm32/lm32.h (TARGET_VERSION): Remove.
24440 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
24441 * config/m32c/m32c.h (TARGET_VERSION): Remove.
24442 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
24443 * config/m32r/m32r.h (TARGET_VERSION): Remove.
24444 * config/m68k/linux.h (TARGET_VERSION): Remove.
24445 * config/m68k/m68k.h (TARGET_VERSION): Remove.
24446 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
24447 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
24448 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
24449 * config/mep/mep.h (TARGET_VERSION): Remove.
24450 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
24451 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
24452 * config/mips/iris6.h (MACHINE_TYPE): Remove.
24453 * config/mips/linux.h (TARGET_VERSION): Remove.
24454 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
24455 * config/mips/vxworks.h (TARGET_VERSION): Remove.
24456 * config/mmix/mmix.h (TARGET_VERSION): Remove.
24457 * config/mn10300/linux.h (TARGET_VERSION): Remove.
24458 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
24459 * config/pa/pa.h (TARGET_VERSION): Remove.
24460 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
24461 * config/picochip/picochip.h (TARGET_VERSION): Remove.
24462 * config/rs6000/aix.h (TARGET_VERSION): Remove.
24463 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
24464 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
24465 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
24466 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
24467 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
24468 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
24469 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
24470 * config/rs6000/linux.h (TARGET_VERSION): Remove.
24471 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
24472 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
24473 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
24474 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
24475 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
24476 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
24477 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
24478 * config/s390/linux.h (TARGET_VERSION): Remove.
24479 * config/s390/s390.h (TARGET_VERSION): Remove.
24480 * config/s390/tpf.h (TARGET_VERSION): Remove.
24481 * config/score/score.h (TARGET_VERSION): Remove.
24482 * config/sh/linux.h (TARGET_VERSION): Remove.
24483 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
24484 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
24485 * config/sh/sh.h (TARGET_VERSION): Remove.
24486 * config/sh/sh64.h (TARGET_VERSION): Remove.
24487 * config/sh/superh.h (TARGET_VERSION): Remove.
24488 * config/sh/vxworks.h (TARGET_VERSION): Remove.
24489 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
24490 * config/sparc/linux.h (TARGET_VERSION): Remove.
24491 * config/sparc/linux64.h (TARGET_VERSION): Remove.
24492 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
24493 TARGET_NAME32, TARGET_NAME): Remove.
24494 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
24495 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
24496 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
24497 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
24498 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
24499 * config/spu/spu.h (TARGET_VERSION): Remove.
24500 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
24501 * config/v850/v850.h (TARGET_VERSION): Remove.
24502 * config/vax/linux.h (TARGET_VERSION): Remove.
24503 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
24504 * config/xtensa/elf.h (TARGET_VERSION): Remove.
24505 * config/xtensa/linux.h (TARGET_VERSION): Remove.
24506
24507 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
24508
24509 PR target/48142
24510 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
24511 frame-related from frame-unrelated adjustments to the stack pointer.
24512
24513 2011-03-31 Jakub Jelinek <jakub@redhat.com>
24514
24515 * common.opt (fdebug-types-section): Move earlier.
24516 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
24517
24518 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
24519
24520 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
24521 var.
24522
24523 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
24524
24525 * tree.h (CASE_CHAIN): Define.
24526 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
24527 (gimple_redirect_edge_and_branch): Likewise.
24528
24529 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
24530
24531 PR middle-end/48367
24532 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
24533 calculation.
24534
24535 2011-03-30 Jeff Law <law@redhat.com>
24536
24537 * PR bootstrap/48371
24538 * reload1.c (reload): Fix botch in last change.
24539
24540 * reload.h (struct reload): Fix typo introduced in last change.
24541
24542 2011-03-30 Joseph Myers <joseph@codesourcery.com>
24543
24544 * config/arm/arm.opt (mhard-float, msoft-float): Mark
24545 Undocumented. Remove help text.
24546 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
24547 -mhard-float.
24548
24549 2011-03-30 Joseph Myers <joseph@codesourcery.com>
24550
24551 * doc/options.texi (NegativeAlias): Document.
24552 (Alias): Mention NegativeAlias.
24553 * opt-functions.awk: Handle NegativeAlias.
24554 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
24555 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
24556 * opts.h (CL_NEGATIVE_ALIAS): Define.
24557 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
24558 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
24559 OPT_mspe_.
24560 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
24561 Alias entries.
24562 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
24563 mno-spe and mno-isel instead of mspe=no and -misel=no.
24564
24565 2011-03-29 Mark Wielaard <mjw@redhat.com>
24566
24567 * common.opt (fdebug-types-section): New flag.
24568 * doc/invoke.texi: Document new -fno-debug-types-section flag.
24569 * dwarf2out.c (use_debug_types): New define.
24570 (struct die_struct): Mark die_id with GTY desc use_debug_types.
24571 (print_die): Guard output of type unit signatures using
24572 use_debug_types.
24573 (build_abbrev_table): Replace assert of dwarf_version >= 4
24574 with assert on use_debug_types.
24575 (size_of_die): Likewise.
24576 (unmark_dies): Likewise.
24577 (value_format): Decide AT_ref_external form on use_debug_types.
24578 (output_die): Replace dwarf_version version check guard with
24579 use_debug_types where appropriate.
24580 (modified_type_die): Likewise.
24581 (gen_reference_type_die): Likewise.
24582 (dwarf2out_start_source_file): Likewise.
24583 (dwarf2out_end_source_file): Likewise.
24584 (prune_unused_types_walk_attribs): Likewise.
24585 (dwarf2out_finish): Likewise.
24586
24587 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
24588
24589 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
24590
24591 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
24592
24593 PR rtl-optimization/48332
24594 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
24595 mode of input operand N and modeN to its actual mode.
24596
24597 2011-03-30 Jeff Law <law@redhat.com>
24598
24599 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
24600 define accessor macro.
24601 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
24602 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
24603 (reg_equiv_init): Likewise.
24604 (reg_equivs_size): New variable.
24605 (reg_equiv_init_size): Remove.
24606 (allocate_initial_values): Move prototype to here from....
24607 * integrate.h (allocate_initial_values): Remove prototype.
24608 * integrate.c: Include reload.h.
24609 (allocate_initial_values): Corresponding changes.
24610 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
24611 (fix_reg_equiv_init, no_equiv): Corresponding changes.
24612 (update_equiv_regs): Corresponding changes.
24613 (ira): Corresponding changes.
24614 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
24615 (push_secondary_reload): Corresponding changes.
24616 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
24617 (make_memloc, find_reloads_address): Corresponding changes.
24618 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
24619 (find_reloads_address_1): Corresponding changes.
24620 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
24621 (refers_to_regno_for_reload_p): Corresponding changes.
24622 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
24623 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
24624 * reload1.c: Include ggc.h.
24625 (grow_reg_equivs): New function.
24626 (replace_pseudos_in, reload): Corresponding changes.
24627 (calculate_needs_all_insns, alter_regs): Corresponding changes.
24628 (eliminate_regs_1, elimination_effects): Corresponding changes.
24629 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
24630 (delete_output_reload): Likewise.
24631 * caller-save.c (mark_referenced_regs): Corresponding changes.
24632 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
24633 * frv/predicates.md (frv_load_operand): Corresponding changes.
24634 * microblaze/microblaze.c (double_memory_operand): Corresponding
24635 changes.
24636 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
24637 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
24638 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
24639 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
24640 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
24641 changes.
24642 * pa/pa.c (emit_move_sequence): Corresponding changes.
24643 * vax/vax.c (nonindexed_address_p): Corresponding changes.
24644
24645 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
24646
24647 PR target/47551
24648 * config/arm/arm.c (coproc_secondary_reload_class): Handle
24649 structure modes. Don't check neon_vector_mem_operand for
24650 vector or structure modes.
24651
24652 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
24653 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
24654
24655 PR target/43590
24656 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
24657 operand 1 and reshuffle the operands to match.
24658 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
24659
24660 2011-03-30 Christian Schüler <cschueler@gmx.de>
24661
24662 PR driver/48208
24663 * config/c.opt (F): Added 'Driver' to -F option.
24664
24665 PR driver/48260
24666 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
24667 handler function.
24668 * config/darwin.opt: Added '-arch' option.
24669
24670 2011-03-30 Nick Clifton <nickc@redhat.com>
24671
24672 * config/rx/rx.md: Add peepholes and patterns to combine
24673 extending loads and simple arithmetic instructions.
24674 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
24675 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
24676 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
24677 modes to use pre-decrement and post-increment addressing.
24678 (rx_is_restricted_memory_address): Add range checking of REG+INT
24679 addresses.
24680 (rx_print_operand): Add support for %Q. Fix handling of %Q.
24681 (rx_memory_move_cost): Adjust cost of stores.
24682 (rx_adjust_insn_length): New function.
24683
24684 2011-03-30 Jakub Jelinek <jakub@redhat.com>
24685
24686 PR c/48305
24687 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
24688 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
24689 matching arg00/arg01 types.
24690
24691 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
24692
24693 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
24694 last_location to UNKNOWN_LOCATION.
24695
24696 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
24697
24698 PR target/48349
24699 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
24700 FLOAT_SSE_REGS.
24701
24702 2011-03-30 Joseph Myers <joseph@codesourcery.com>
24703 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24704
24705 PR bootstrap/48337
24706 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
24707 Init(PROCESSOR_V7).
24708 (sparc_cpu): Likewise.
24709 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
24710 PROCESSOR_V7.
24711
24712 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
24713
24714 PR target/48336
24715 PR middle-end/48342
24716 PR rtl-optimization/48345
24717 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
24718 hard regs for given mode from profitable regs when doing secondary
24719 allocation.
24720
24721 2011-03-29 Jeff Law <law@redhat.com>
24722
24723 PR bootstrap/48327
24724 * tree-ssa-threadupdate.c (struct redirection_data): Remove
24725 do_not_duplicate field.
24726 (lookup_redirection_data): Corresponding changes.
24727 (create_duplicates): Always create a template block.
24728 (redirect_edges): Remove code which reused the original block
24729 when it was going to become unreachable code.
24730 (thread_block): Don't set do_not_duplicate field.
24731
24732 2011-03-29 Joseph Myers <joseph@codesourcery.com>
24733
24734 * lto-opts.c (register_user_option_p, lto_register_user_option):
24735 Make type argument unsigned.
24736 * lto-streamer.h (lto_register_user_option): Make type argument
24737 unsigned.
24738 * opth-gen.awk: Make CL_* macros unsigned.
24739 * opts-common.c (find_opt): Make lang_mask argument unsigned.
24740 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
24741 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
24742 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
24743 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
24744 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
24745 (find_opt): Make lang_mask argument unsigned.
24746
24747 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
24748
24749 PR rtl-optimization/48331
24750 PR rtl-optimization/48334
24751 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
24752 for any used algorithm.
24753
24754 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
24755
24756 * ira-conflicts.c (build_object_conflicts): Add unused attribute
24757 to parent_max.
24758
24759 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
24760
24761 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
24762 (alpha_option_override): Don't set alpha_sr_alias_set.
24763 (emit_frame_store_1): Use gen_frame_mem rather than calling
24764 set_mem_alias_set.
24765 (alpha_expand_epilogue): Ditto.
24766
24767 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
24768
24769 PR tree-optimization/48290
24770 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
24771 vectorization, check that relevant phis in the basic block after
24772 the inner loop are really inner loop's exit phis.
24773
24774 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
24775
24776 PR debug/48190
24777 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
24778 (cached_dw_loc_list_def): New structure.
24779 (cached_dw_loc_list): New typedef.
24780 (cached_dw_loc_list_table): New variable.
24781 (cached_dw_loc_list_table_hash): New function.
24782 (cached_dw_loc_list_table_eq): Likewise.
24783 (add_location_or_const_value_attribute): Take a bool cache_p.
24784 Cache the list when the parameter is true.
24785 (gen_formal_parameter_die): Update caller.
24786 (gen_variable_die): Likewise.
24787 (dwarf2out_finish): Likewise.
24788 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
24789 while generating debug info for the decl.
24790 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
24791 (dwarf2out_init): Initialize cached_dw_loc_list_table.
24792 (resolve_addr): Cache the result of resolving a chain of
24793 location lists.
24794
24795 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
24796
24797 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
24798 conflict object hard regset nodes have intersecting hard reg sets.
24799
24800 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
24801 after regstat_init_n_sets_and_refs.
24802
24803 * ira.c: Add more comments at the top.
24804 (setup_stack_reg_pressure_class, setup_pressure_classes):
24805 Add comments how we compute the register pressure classes.
24806 (setup_allocno_and_important_classes): Add more comments.
24807 (setup_class_translate_array, reorder_important_classes)
24808 (setup_reg_class_relations): Add comments.
24809
24810 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
24811 start of the file.
24812
24813 * ira-color.c: Add 2011 to the Copyright line.
24814 (assign_hard_reg): Add more comments.
24815 (improve_allocation): Ditto.
24816
24817 * ira-costs.c: Add 2011 to the Copyright line.
24818 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
24819 comments.
24820 (setup_regno_cost_classes_by_mode): Ditto.
24821
24822 Initial patches from ira-improv branch:
24823
24824 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
24825
24826 * ira-build.c (ira_create_object): Remove initialization of
24827 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
24828 (ira_create_allocno): Remove initialization of
24829 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
24830 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
24831 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
24832 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
24833 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
24834 Initialize ALLOCNO_ADD_DATA.
24835 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
24836 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
24837 ALLOCNO_REG.
24838 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
24839 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
24840
24841 * ira.c (ira_reallocate): Remove.
24842 (setup_pressure_classes): Call
24843 ira_init_register_move_cost_if_necessary. Use
24844 ira_register_move_cost instead of ira_get_register_move_cost.
24845 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
24846 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
24847
24848 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
24849 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
24850 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
24851 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
24852 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
24853 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
24854 Fix formatting.
24855 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
24856 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
24857 (struct allocno_color_data): New.
24858 (allocno_color_data_t): New typedef.
24859 (allocno_color_data): New definition.
24860 (ALLOCNO_COLOR_DATA): New macro.
24861 (struct object_color_data): New.
24862 (object_color_data_t): New typedef.
24863 (object_color_data): New definition.
24864 (OBJECT_COLOR_DATA): New macro.
24865 (update_copy_costs, calculate_allocno_spill_cost): Call
24866 ira_init_register_move_cost_if_necessary. Use
24867 ira_register_move_cost instead of ira_get_register_move_cost.
24868 (move_spill_restore, update_curr_costs): Ditto.
24869 (allocno_spill_priority): Make it inline.
24870 (color_pass): Allocate and free allocno_color_dat and object_color_data.
24871 (struct coalesce_data, coalesce_data_t): New.
24872 (allocno_coalesce_data): New definition.
24873 (ALLOCNO_COALESCE_DATA): New macro.
24874 (merge_allocnos, coalesced_allocno_conflict_p): Use
24875 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
24876 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
24877 (coalesce_allocnos): Ditto.
24878 (setup_coalesced_allocno_costs_and_nums): Ditto.
24879 (collect_spilled_coalesced_allocnos): Ditto.
24880 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
24881 (setup_slot_coalesced_allocno_live_ranges): Ditto.
24882 (coalesce_spill_slots): Ditto.
24883 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
24884 free allocno_coalesce_data.
24885
24886 * ira-conflicts.c: Fix formatting.
24887 (process_regs_for_copy): Call
24888 ira_init_register_move_cost_if_necessary. Use
24889 ira_register_move_cost instead of ira_get_register_move_cost.
24890 (build_object_conflicts): Optimize.
24891
24892 * ira-costs.c (record_reg_classes): Optimize. Call
24893 ira_init_register_move_cost_if_necessary. Use
24894 ira_register_move_cost, ira_may_move_in_cost, and
24895 ira_may_move_out_cost instead of ira_get_register_move_cost and
24896 ira_get_may_move_cost.
24897 (record_address_regs): Ditto.
24898 (scan_one_insn): Optimize.
24899 (find_costs_and_classes): Optimize.
24900 (process_bb_node_for_hard_reg_moves): Call
24901 ira_init_register_move_cost_if_necessary. Use
24902 ira_register_move_cost instead of ira_get_register_move_cost.
24903
24904 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
24905 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
24906 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
24907 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
24908 definitions.
24909 (ira_initiate_emit_data, ira_finish_emit_data)
24910 (create_new_allocno): New functions.
24911 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
24912 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
24913 Use ira_register_move_cost instead of ira_get_register_move_cost.
24914
24915 * ira-int.h: Fix some comments.
24916 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
24917 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
24918 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
24919 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
24920 add_data.
24921 (struct ira_allocno): Make mode and aclass a bitfield. Move other
24922 bitfield after mode. Make hard_regno a short int. Make
24923 hard_regno short. Remove first_coalesced_allocno and
24924 next_coalesced_allocno. Move mem_optimized_dest_p,
24925 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
24926 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
24927 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
24928 temp, colorable_p. Add new member add_data.
24929 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
24930 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
24931 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
24932 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
24933 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
24934 (ALLOCNO_ADD_DATA): New macro.
24935 (ira_emit_data_t): New typedef.
24936 (struct ira_emit_data): New. Move mem_optimized_dest_p,
24937 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
24938 from struct ira_allocno.
24939 (ALLOCNO_EMIT_DATA): New macro.
24940 (ira_allocno_emit_data, allocno_emit_reg): New.
24941 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
24942 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
24943 (OBJECT_ADD_DATA): New macro.
24944 (ira_reallocate): Remove.
24945 (ira_initiate_emit_data, ira_finish_emit_data): New.
24946 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
24947 (ira_init_register_move_cost_if_necessary): New.
24948 (ira_object_conflict_iter_next): Merge into
24949 ira_object_conflict_iter_cond.
24950 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
24951
24952 * ira-live.c (process_single_reg_class_operands): Call
24953 ira_init_register_move_cost_if_necessary. Use
24954 ira_register_move_cost instead of ira_get_register_move_cost.
24955
24956 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
24957
24958 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
24959
24960 * ira-costs.c: Fix formatting.
24961 (cost_classes, cost_classes_num): Remove.
24962 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
24963 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
24964 (cost_classes_del, cost_classes_htab): New.
24965 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
24966 (initiate_regno_cost_classes, setup_cost_classes): New.
24967 (setup_regno_cost_classes_by_aclass): New.
24968 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
24969 (record_reg_classes): Use regno_cost_classes instead of
24970 cost_classes. Move checking opposite operand up.
24971 (record_address_regs): Use regno_cost_classes
24972 instead of cost_classes.
24973 (scan_one_insn): Ditto. Use always general register.
24974 (print_allocno_costs): Use regno_cost_classes instead of
24975 cost_classes.
24976 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
24977 (find_costs_and_classes): Set up cost classes for each registers.
24978 Use also their mode for this. Use regno_cost_classes instead of
24979 cost_classes.
24980 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
24981 cost_classes.
24982 (free_ira_costs, ira_init_costs): Don't use cost_classes.
24983 (ira_costs, ira_set_pseudo_classes): Call
24984 initiate_regno_cost_classes and finish_regno_cost_classes.
24985
24986 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
24987
24988 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
24989
24990 * target.def (ira_cover_classes): Remove.
24991
24992 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
24993
24994 * doc/tm.texi.in: Ditto.
24995
24996 * ira-conflicts.c: Remove mentioning cover classes from the file.
24997 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
24998 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
24999
25000 * targhooks.c (default_ira_cover_classes): Remove.
25001
25002 * targhooks.h (default_ira_cover_classes): Ditto.
25003
25004 * haifa-sched.c: Remove mentioning cover classes from the file.
25005 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
25006 ira_pressure_classes and ira_pressure_classes_num instead of
25007 ira_reg_class_cover_size and ira_reg_class_cover. Use
25008 sched_regno_pressure_class instead of sched_regno_cover_class.
25009 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
25010 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
25011
25012 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
25013 classes from the file.
25014 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
25015 (struct object_hard_regs, struct object_hard_regs_node): New.
25016 (struct ira_object): New members profitable_hard_regs,
25017 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
25018 (struct ira_allocno): Rename cover_class to aclass. Rename
25019 cover_class_cost and updated_cover_class_cost to class_cost and
25020 updated_class_cost. Remove splay_removed_p and
25021 left_conflict_size. Add new members colorable_p.
25022 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
25023 (ALLOCNO_COLORABLE_P): New macro.
25024 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
25025 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
25026 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
25027 (OBJECT_...): Rename parameter C to O.
25028 (OBJECT_PROFITABLE_HARD_REGS): New macro.
25029 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
25030 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
25031 (struct target_ira_int): New members x_ira_max_memory_move_cost,
25032 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
25033 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
25034 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
25035 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
25036 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
25037 x_ira_reg_class_subunion.
25038 (ira_max_memory_move_cost, ira_max_register_move_cost)
25039 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
25040 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
25041 (ira_important_class_nums, ira_reg_class_superunion): New macros.
25042 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
25043 (ira_reg_class_union): Rename to ira_reg_class_subunion.
25044 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
25045 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
25046 (ira_tune_allocno_costs_and_cover_classes): Rename to
25047 ira_tune_allocno_costs.
25048 (ira_debug_hard_regs_forest): New.
25049 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
25050 (ira_object_conflict_iter_next): Fix comments.
25051 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
25052 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
25053 cover_class to aclass.
25054 (ira_allocate_and_accumulate_costs): Ditto.
25055 (ira_allocate_and_set_or_copy_costs): Ditto.
25056
25057 * opts.c (decode_options): Remove ira_cover_class check.
25058
25059 * ira-color.c: Remove mentioning cover classes from the file. Use
25060 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
25061 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
25062 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
25063 (splay-tree.h): Remove include.
25064 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
25065 before copy_freq_compare_func.
25066 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
25067 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
25068 New definitions.
25069 (hard_regs_roots, hard_regs_node_vec): Ditto.
25070 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
25071 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
25072 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
25073 (create_new_object_hard_regs_node): Ditto.
25074 (add_new_object_hard_regs_node_to_forest): Ditto.
25075 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
25076 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
25077 Ditto.
25078 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
25079 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
25080 (remove_unused_object_hard_regs_nodes): Ditto.
25081 (enumerate_object_hard_regs_nodes): Ditto.
25082 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
25083 (object_hard_regs_subnode_t): Ditto.
25084 (struct object_hard_regs_subnode): Ditto.
25085 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
25086 (setup_object_hard_regs_subnode_index): Ditto.
25087 (get_object_hard_regs_subnodes_num): Ditto.
25088 (form_object_hard_regs_nodes_forest): Ditto.
25089 (finish_object_hard_regs_nodes_tree): Ditto.
25090 (finish_object_hard_regs_nodes_forest): Ditto.
25091 (allocnos_have_intersected_live_ranges_p): Rename to
25092 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
25093 (pseudos_have_intersected_live_ranges_p): Rename to
25094 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
25095 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
25096 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
25097 (update_copy_costs): Remove assert. Skip cost update if the hard
25098 reg does not belong the class.
25099 (assign_hard_reg): Process only profitable hard regs.
25100 (uncolorable_allocnos_num): Make it scalar.
25101 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
25102 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
25103 and ira_reg_class_max_nregs.
25104 (bucket_allocno_compare_func): Check frequency first.
25105 (sort_bucket): Add compare function as a parameter.
25106 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
25107 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
25108 (push_allocno_to_stack): Rewrite for checking new allocno
25109 colorability.
25110 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
25111 (push_only_colorable): Pass new parameter to sort_bucket.
25112 (push_allocno_to_spill): Remove.
25113 (allocno_spill_priority_compare): Make it inline and rewrite.
25114 (splay_tree_allocate, splay_tree_free): Remove.
25115 (allocno_spill_sort_compare): New function.
25116 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
25117 build and use splay tree. Choose first allocno in uncolorable
25118 allocno bucket to spill. Remove setting spill cost.
25119 (all_conflicting_hard_regs): Remove.
25120 (setup_allocno_available_regs_num): Check only profitable hard
25121 regs. Print info about hard regs nodes.
25122 (setup_allocno_left_conflicts_size): Remove.
25123 (put_allocno_into_bucket): Don't call
25124 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
25125 (improve_allocation): New.
25126 (color_allocnos): Call setup_profitable_hard_regs,
25127 form_object_hard_regs_nodes_forest, improve_allocation,
25128 finish_object_hard_regs_nodes_forest. Setup spill cost.
25129 (print_loop_title): Use pressure classes.
25130 (color_allocnso): Ditto.
25131 (do_coloring): Remove allocation and freeing splay_tree_node_pool
25132 and allocnos_for_spilling.
25133 (ira_sort_regnos_for_alter_reg): Don't setup members
25134 {first,next}_coalesced_allocno.
25135 (color): Remove allocating and freeing removed_splay_allocno_vec.
25136 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
25137 prohibited_class_mode_regs.
25138
25139 * ira-lives.c: Remove mentioning cover classes from the file. Fix
25140 formatting.
25141 (update_allocno_pressure_excess_length): Use pressure classes.
25142 (inc_register_pressure, dec_register_pressure): Check for pressure
25143 class.
25144 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
25145 pressure class. Use ira_reg_class_nregs instead of
25146 ira_reg_class_max_nregs.
25147 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
25148 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
25149 (single_reg_class): Use ira_reg_class_nregs instead of
25150 ira_reg_class_max_nregs.
25151 (process_bb_node_lives): Use pressure classes.
25152
25153 * ira-emit.c: Remove mentioning cover classes from the file. Use
25154 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
25155 (change_loop): Use pressure classes.
25156 (modify_move_list): Call ira_set_allocno_class instead of
25157 ira_set_allocno_cover_class.
25158
25159 * ira-build.c: Remove mentioning cover classes from the file. Use
25160 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
25161 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
25162 ALLOCNO_UPDATED_CLASS_COST instead of
25163 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
25164 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
25165 (ira_create_allocno): Remove initialization of
25166 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
25167 ALLOCNO_COLORABLE_P.
25168 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
25169 Update conflict regs for the objects.
25170 (create_cap_allocno): Remove assert. Don't propagate
25171 ALLOCNO_AVAILABLE_REGS_NUM.
25172 (ira_free_allocno_costs): New function.
25173 (finish_allocno): Change a part of code into call of
25174 ira_free_allocno_costs.
25175 (low_pressure_loop_node_p): Use pressure classes.
25176 (object_range_compare_func): Don't compare classes.
25177 (setup_min_max_conflict_allocno_ids): Ditto.
25178
25179 * loop-invariant.c: Remove mentioning cover classes from the file.
25180 Use ira_pressure_classes and ira_pressure_classes_num instead of
25181 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
25182 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
25183 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
25184 Use reg_allocno_class instead of reg_cover_class.
25185 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
25186 STACK_REG_COVER_CLASS.
25187 (get_regno_cover_class): Rename to get_regno_pressure_class.
25188 (move_loop_invariants): Initialize and finalize regstat.
25189
25190 * ira.c: Remove mentioning cover classes from the file. Add
25191 comments about coloring without cover classes. Use ALLOCNO_CLASS
25192 instead of ALLOCNO_COVER_CLASS. Fix formatting.
25193 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
25194 setup_class_subset_and_memory_move_costs.
25195 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
25196 (setup_cover_and_important_classes): Rename to
25197 setup_allocno_and_important_classes.
25198 (setup_class_translate_array): New.
25199 (setup_class_translate): Call it for allocno and pressure classes.
25200 (cover_class_order): Rename to allocno_class_order.
25201 (comp_reg_classes_func): Use ira_allocno_class_translate instead
25202 of ira_class_translate.
25203 (reorder_important_classes): Set up ira_important_class_nums.
25204 (setup_reg_class_relations): Set up ira_reg_class_superunion.
25205 (print_class_cover): Rename to print_classes. Add parameter.
25206 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
25207 Print pressure classes too.
25208 (find_reg_class_closure): Rename to find_reg_classes. Don't call
25209 setup_reg_subclasses.
25210 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
25211 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
25212 (setup_prohibited_class_mode_regs): Use
25213 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
25214 (clarify_prohibited_class_mode_regs): New function.
25215 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
25216 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
25217 (ira_init_once): Initialize them.
25218 (free_register_move_costs): Process them.
25219 (ira_init): Move calls of find_reg_classes and
25220 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
25221 Call clarify_prohibited_class_mode_regs.
25222 (ira_no_alloc_reg): Remove.
25223 (too_high_register_pressure_p): Use pressure classes.
25224
25225 * sched-deps.c: Remove mentioning cover classes from the file.
25226 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
25227 ira_pressure_classes and ira_pressure_classes_num instead of
25228 ira_reg_class_cover_size and ira_reg_class_cover.
25229 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
25230 sched_regno_pressure_class instead of sched_regno_cover_class.
25231 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
25232 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
25233
25234 * ira.h: Add 2010 to Copyright.
25235 (ira_no_alloc_reg): Remove external.
25236 (struct target_ira): Rename x_ira_hard_regno_cover_class,
25237 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
25238 x_ira_class_translate to x_ira_hard_regno_allocno_class,
25239 x_ira_allocno_classes_num, x_ira_allocno_classes, and
25240 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
25241 x_ira_pressure_classes, x_ira_pressure_class_translate, and
25242 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
25243 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
25244 x_ira_no_alloc_regs.
25245 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
25246 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
25247 ira_allocno_classes_num and ira_allocno_classes.
25248 (ira_class_translate): Rename to ira_allocno_class_translate.
25249 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
25250 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
25251 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
25252 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
25253 (ira_no_alloc_regs): New.
25254
25255 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
25256 classes from the file. Use ALLOCNO_CLASS instead of
25257 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
25258 ALLOCNO_COVER_CLASS_COST.
25259 (regno_cover_class): Rename to regno_aclass.
25260 (record_reg_classes): Use ira_reg_class_subunion instead of
25261 ira_reg_class_union.
25262 (record_address_regs): Check overflow.
25263 (scan_one_insn): Ditto.
25264 (print_allocno_costs): Print total mem cost fore regional allocation.
25265 (print_pseudo_costs): Use REG_N_REFS.
25266 (find_costs_and_classes): Use classes intersected with them on the
25267 1st pass. Check overflow. Use ira_reg_class_subunion instead of
25268 ira_reg_class_union. Use ira_allocno_class_translate and
25269 regno_aclass instead of ira_class_translate and regno_cover_class.
25270 Modify code for finding regno_aclass. Setup preferred classes for
25271 the next pass.
25272 (setup_allocno_cover_class_and_costs): Rename to
25273 setup_allocno_class_and_costs. Use regno_aclass instead of
25274 regno_cover_class. Use ira_set_allocno_class instead of
25275 ira_set_allocno_cover_class.
25276 (init_costs, finish_costs): Use regno_aclass instead of
25277 regno_cover_class.
25278 (ira_costs): Use setup_allocno_class_and_costs instead of
25279 setup_allocno_cover_class_and_costs.
25280 (ira_tune_allocno_costs_and_cover_classes): Rename to
25281 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
25282 by processing objects. Use ira_reg_class_max_nregs instead of
25283 ira_reg_class_nregs.
25284
25285 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
25286
25287 * sched-int.h: Remove mentioning cover classes from the file.
25288 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
25289
25290 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
25291 classes from the file.
25292 (struct reg_pref): Rename coverclass into allocnoclass.
25293 (reg_cover_class): Rename to reg_allocno_class.
25294
25295 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
25296
25297 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
25298
25299 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
25300
25301 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
25302
25303 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
25304
25305 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
25306
25307 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
25308
25309 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
25310
25311 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
25312
25313 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
25314
25315 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
25316 (i386_ira_cover_classes): Ditto.
25317
25318 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
25319
25320 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
25321
25322 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
25323
25324 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
25325
25326 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
25327
25328 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
25329
25330 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
25331 (mips_ira_cover_classes): Ditto.
25332
25333 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
25334
25335 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
25336
25337 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
25338
25339 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
25340
25341 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
25342
25343 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
25344 (IRA_COVER_CLASSES_VSX): Ditto.
25345
25346 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
25347 (rs6000_ira_cover_classes): Ditto.
25348
25349 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
25350
25351 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
25352
25353 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
25354
25355 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
25356
25357 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
25358
25359 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
25360
25361 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
25362
25363 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
25364
25365 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
25366
25367 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
25368
25369 2011-03-29 Jakub Jelinek <jakub@redhat.com>
25370
25371 PR debug/48253
25372 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
25373 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
25374 dw_fde_unlikely_section_end_label, cold_in_std_section,
25375 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
25376 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
25377 fields.
25378 (output_fde): Use dw_fde_second_{begin,end} if second is
25379 true, otherwise dw_fde_{begin,end}.
25380 (output_call_frame_info): Test dw_fde_second_begin != NULL
25381 instead of dw_fde_switched_sections.
25382 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
25383 fields, initialize new fields. Initialize in_std_section
25384 unconditionally from the first partition.
25385 (dwarf2out_end_epilogue): Don't override dw_fde_end when
25386 dw_fde_second_begin is non-NULL.
25387 (dwarf2out_switch_text_section): Stop initializing removed
25388 dw_fde_struct fields, initialize new fields, initialize
25389 also dw_fde_end here. Set dw_fde_switch_cfi even when
25390 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
25391 (struct var_loc_list_def): Add last_before_switch field.
25392 (arange_table, arange_table_allocated, arange_table_in_use,
25393 ARANGE_TABLE_INCREMENT, add_arange): Removed.
25394 (size_of_aranges): Count !in_std_section and !second_in_std_section
25395 hunks in fdes, instead of looking at arange_table_in_use.
25396 (output_aranges): Add aranges_length argument, don't call
25397 size_of_aranges here. Instead of using aranges_table*
25398 emit ranges for fdes when !in_std_section resp.
25399 !second_in_std_section.
25400 (dw_loc_list): Break ranges crossing section switch.
25401 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
25402 use dw_fde_second_end instead of dw_fde_end as end of last range.
25403 (gen_subprogram_die): Don't call add_arange. Use
25404 dw_fde_{begin,end} for first partition and if switched
25405 section dw_fde_second_{begin,end} for the second.
25406 (var_location_switch_text_section_1,
25407 var_location_switch_text_section): New functions.
25408 (dwarf2out_begin_function): Initialize cold_text_section even
25409 when function_section () isn't text_section.
25410 (prune_unused_types): Don't walk arange_table.
25411 (dwarf2out_finish): Don't needlessly test
25412 flag_reorder_blocks_and_partition when testing cold_text_section_used.
25413 If info_section_emitted, call size_of_aranges and if it indicates
25414 non-empty .debug_aranges, call output_aranges with the computed
25415 size. Stop using removed dw_fde_struct fields, use
25416 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
25417 for second.
25418
25419 PR debug/48203
25420 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
25421 create ENTRY_VALUE if incoming or address of incoming's MEM
25422 is a hard REG.
25423 * dwarf2out.c (mem_loc_descriptor): Don't emit
25424 DW_OP_GNU_entry_value of DW_OP_fbreg.
25425 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
25426 on ENTRY_VALUE is able to find the canonical parameter VALUE.
25427 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
25428 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
25429 ENTRY_VALUE_EXPs.
25430 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
25431 is a REG_P or MEM_P with REG_P address, compute hash directly
25432 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
25433 (preserve_only_constants): Don't clear VALUES forwaring
25434 ENTRY_VALUE to some other VALUE.
25435
25436 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
25437
25438 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
25439 instead of GEN_INT.
25440
25441 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
25442
25443 * cfgexpand.c (expand_gimple_cond): Always set the source location and
25444 block before expanding the statement.
25445 (expand_gimple_stmt_1): Likewise. Set them here...
25446 (expand_gimple_stmt): ...and not here. Tidy.
25447 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
25448 unknown.
25449
25450 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
25451
25452 * Makefile.in: New rule for cprop.o.
25453 * gcse.c: Move constant/copy propagation to cprop.c.
25454 (compute_local_properties): Only handle expression tables.
25455 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
25456 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
25457 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
25458 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
25459 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
25460 compute_cprop_data, find_used_regs, try_replace_reg,
25461 find_avail_set, cprop_jump, constprop_register, cprop_insn,
25462 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
25463 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
25464 find_bypass_set, reg_killed_on_edge, bypass_block,
25465 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
25466 execute_rtl_cprop, pass_rtl_cprop): Move to...
25467 * cprop.c: ...here. New file, constant/copy propagation for RTL
25468 moved from gcse.c to here with minor cleanups in duplicated code.
25469
25470 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
25471
25472 * config/i386/i386.c (flag_opts): Fix a typo in
25473 -mavx256-split-unaligned-store.
25474
25475 2011-03-28 Anatoly Sokolov <aesok@post.ru>
25476
25477 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
25478 LIBCALL_VALUE): Remove macros.
25479 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25480 TARGET_FUNCTION_VALUE_REGNO_P): Define.
25481 (h8300_function_value, h8300_libcall_value,
25482 h8300_function_value_regno_p): New functions.
25483
25484 2011-03-28 Anatoly Sokolov <aesok@post.ru>
25485
25486 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
25487
25488 2011-03-28 Jeff Law <law@redhat.com>
25489
25490 * tree-ssa-threadupdate.c (redirect_edges): Call
25491 create_edge_and_update_destination_phis as needed.
25492 (create_edge_and_update_destination_phis): Accept new BB argument.
25493 All callers updated.
25494 (thread_block): Do not update the profile when threading around
25495 intermediate blocks.
25496 (thread_single_edge): Likewise.
25497 (determine_bb_domination_status): If BB is not a successor of the
25498 loop header, return NONDOMINATING.
25499 (register_jump_thread): Note when we register a jump thread around
25500 an intermediate block.
25501 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
25502 (thread_across_edge): Use it.
25503
25504 2011-03-28 Tristan Gingold <gingold@adacore.com>
25505
25506 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
25507 when for_return is 2.
25508
25509 2011-03-28 Jeff Law <law@redhat.com>
25510
25511 * var-tracking.c (canonicalize_values_mark): Delete unused
25512 lhs assignment.
25513 (canonicalize_values_star, set_variable_part): Likewise.
25514 (clobber_variable_part, delete_variable_part): Likewise.
25515
25516 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
25517
25518 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
25519
25520 2011-03-28 Martin Jambor <mjambor@suse.cz>
25521
25522 * tree-inline.c (expand_call_inline): Do not check that destination
25523 node is analyzed.
25524 (optimize_inline_calls): Assert that destination node is analyzed.
25525 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
25526 not call tree_lowering_passes.
25527 * cgraph.h (cgraph_analyze_function): Declare.
25528 * cgraphunit.c (cgraph_analyze_function): Make public.
25529
25530 2011-03-28 Joseph Myers <joseph@codesourcery.com>
25531
25532 * config/sparc/sparc-opts.h: New.
25533 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
25534 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
25535 (sparc_option_override): Store processor_type enumeration rather
25536 than string in cpu_default. Remove name and enumeration from
25537 cpu_table. Directly default -mcpu then default -mtune from -mcpu
25538 without using sparc_select. Use target_flags_explicit instead of
25539 fpu_option_set.
25540 * config/sparc/sparc.h (enum processor_type): Move to
25541 sparc-opts.h.
25542 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
25543 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
25544 HeaderInclude entry.
25545 (mcpu=, mtune=): Use Var and Enum.
25546 (sparc_processor_type): New Enum and EnumValue entries.
25547
25548 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25549 Iain Sandoe <iains@gcc.gnu.org>
25550
25551 PR target/48245
25552 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
25553
25554 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
25555
25556 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
25557 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
25558 Insert new statements at it in lieu of STMT.
25559 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
25560 * tree-vect-stmts.c (vectorizable_store): Likewise.
25561 (vectorizable_load): Likewise.
25562
25563 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
25564
25565 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
25566 (divtf3): Ditto.
25567 (multf3): Ditto.
25568 (subtf3): Ditto.
25569
25570 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
25571
25572 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
25573 unaligned 256bit load/store.
25574 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
25575 (*avx_movdqu<avxmodesuffix>): Likewise.
25576
25577 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25578
25579 PR target/48288
25580 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
25581 * config/pa/pa.md (iordi3): Use new predicate in expander.
25582 (iorsi3): Likewise.
25583
25584 2011-03-27 Anatoly Sokolov <aesok@post.ru>
25585
25586 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
25587 FUNCTION_VALUE_REGNO_P): Remove macros.
25588 * config/mips/mips-protos.h (mips_function_value): Remove.
25589 * config/mips/mips.c (mips_function_value): Rename to...
25590 (mips_function_value_1): ... this. Make static. Handle receiving
25591 the function type in 'fn_decl_or_type' argument.
25592 (mips_function_value, mips_libcall_value,
25593 mips_function_value_regno_p): New function.
25594 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25595 TARGET_FUNCTION_VALUE_REGNO_P): Define.
25596
25597 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
25598
25599 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
25600 and -mavx256-split-unaligned-store.
25601 (ix86_option_override_internal): Split 32-byte AVX unaligned
25602 load/store by default.
25603 (ix86_avx256_split_vector_move_misalign): New.
25604 (ix86_expand_vector_move_misalign): Use it.
25605
25606 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
25607 -mavx256-split-unaligned-store.
25608
25609 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
25610 256bit load/store. Generate unaligned store on misaligned memory
25611 operand.
25612 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
25613 256bit load/store.
25614 (*avx_movdqu<avxmodesuffix>): Likewise.
25615
25616 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
25617 -mavx256-split-unaligned-store.
25618
25619 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
25620
25621 PR target/38598
25622 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
25623 Update commentary.
25624
25625 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
25626
25627 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
25628 opno arguments with an expand_operand. Use create_input_operand.
25629 (mips_prepare_builtin_target): Delete.
25630 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
25631 functions.
25632 (mips_expand_builtin_direct): Use create_output_operand and
25633 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
25634 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
25635 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
25636
25637 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
25638
25639 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
25640 function.
25641 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
25642
25643 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
25644
25645 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
25646 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
25647 basic blocks and call commit_edge_insertions directly.
25648 (fixup_abnormal_edges): Move from here to...
25649 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
25650 on the edges and return whether some have actually been inserted.
25651 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
25652 compensation code.
25653
25654 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
25655
25656 PR rtl-optimization/48144
25657 * sel-sched-ir.c (merge_history_vect): Factor out from ...
25658 (merge_expr_data): ... here.
25659 (av_set_intersect): Rename to av_set_code_motion_filter.
25660 Update all callers. Call merge_history_vect when an expression
25661 is found in both sets.
25662 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
25663
25664 2011-03-26 Alan Modra <amodra@gmail.com>
25665
25666 * config/rs6000/predicates.md (word_offset_memref_op): Handle
25667 cmodel medium addresses.
25668 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
25669 64-bit gpr loads and stores.
25670 (rs6000_secondary_reload_ppc64): New function.
25671 * config/rs6000/rs6000-protos.h: Declare it.
25672 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
25673
25674 2011-03-26 Alan Modra <amodra@gmail.com>
25675
25676 PR target/47487
25677 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
25678 GNU Go in traceback table.
25679
25680 2011-03-25 Richard Henderson <rth@redhat.com>
25681
25682 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
25683 if there are exactly 6 operands.
25684 (set_storage_via_setmem): Similarly.
25685
25686 2011-03-25 Kai Tietz <ktietz@redhat.com>
25687
25688 * collect2.c (write_c_file_stat): Handle backslash
25689 as right-hand directory separator.
25690 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
25691 checking just for slash.
25692 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
25693 instead of checking for trailing slash.
25694 * gcc.c (record_temp_file): Use filename_cmp instead
25695 of strcmp.
25696 (do_spec_1): Likewise.
25697 (replace_outfile_spec_function): Likewise.
25698 (is_directory): Use filename_ncmp instead of strncmp.
25699 (print_multilib_info): Likewise.
25700 * gcov.c (find_source): Use filename_cmp instead
25701 instead of strcmp.
25702 (make_gcov_file_name): Fix order of slash/backslash
25703 checks.
25704 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
25705 (add_standard_paths): Likewise.
25706 * mips-tfile.c (saber_stop): Handle backslash.
25707 * prefix.c (update_path): Use filename_ncmp instead of
25708 strncmp.
25709 * profile.c (output_location): Use filename_cmp instead
25710 of strcmp.
25711 * read-md.c (handle_toplevel_file): Handle backslash.
25712 * tlink.c (frob_extension): Likewise.
25713 * tree-cfg.c (same_line_p): Use filename_cmp instead of
25714 strcmp.
25715 * tree-dump.c (dequeue_and_dump): Handle backslash.
25716 * tree.c (get_file_function_name): Likewise.
25717 * gengtype.c (read_input_list): Likewise.
25718 (get_file_realbasename): Likewise.
25719 (get_output_file_with_visibility): Use filename_cmp
25720 instead of strcmp.
25721
25722 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
25723
25724 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
25725 case to VFPv1.
25726
25727 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
25728
25729 * fold-const.c (expr_location_or): New function.
25730 (fold_truth_not_expr): Call it.
25731
25732 2011-03-25 Jeff Law <law@redhat.com>
25733
25734 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
25735 va_end.
25736 * c-family/c-common.c (def_fn_type): Likewise.
25737 * emit-rtl.c (gen_rtvec): Likewise.
25738 * lto/lto-lang.c (def_fn_type): Likewise.
25739
25740 2011-03-25 Richard Guenther <rguenther@suse.de>
25741
25742 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
25743 also generate copies.
25744 (fini_copy_prop): Handle constant values properly.
25745
25746 2011-03-25 Jakub Jelinek <jakub@redhat.com>
25747
25748 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
25749 mode size instead of bitsize with DWARF2_ADDR_SIZE.
25750 (hash_loc_operands, compare_loc_operands): Handle
25751 DW_OP_GNU_entry_value.
25752
25753 2011-03-25 Kai Tietz <ktietz@redhat.com>
25754
25755 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
25756 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
25757 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
25758 comment and use macro TARGET_64BIT_MS_ABI instead.
25759 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
25760 and change default behavior for 32-bit MS_ABI.
25761 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
25762 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
25763 32-bit, too.
25764 (ix86_cfun_abi): Likewise.
25765 (ix86_maybe_switch_abi): Adjust comment.
25766 (init_cumulative_args): Check for bit-ness in MS_ABI case.
25767 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
25768 instead of checking for SYSV_ABI.
25769 (ix86_nsaved_sseregs): Likewise.
25770 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
25771 to 16 bytes.
25772 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
25773 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
25774 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
25775 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
25776 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
25777
25778 2011-03-25 Richard Guenther <rguenther@suse.de>
25779
25780 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
25781 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
25782 (verify_gimple): Remove.
25783 * tree-cfg.c (verify_gimple_call): Merge verification
25784 from verify_stmts.
25785 (verify_gimple_phi): Merge verification from verify_stmts.
25786 (verify_gimple_label): New function.
25787 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
25788 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
25789 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
25790 (verify_stmts): Rename to verify_gimple_in_cfg.
25791 (verify_gimple_in_cfg): New function.
25792 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
25793 * tree-ssa.c (verify_ssa): Likewise.
25794 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
25795
25796 2011-03-25 Richard Guenther <rguenther@suse.de>
25797
25798 * passes.c (init_optimization_passes): Add FRE pass after
25799 early SRA.
25800
25801 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
25802 Andrew Stubbs <ams@codesourcery.com>
25803
25804 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
25805 for Cortex-A8.
25806 (arm_movdi_vfp_cortexa8): New pattern.
25807 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
25808 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
25809 instructions when tuning for Cortex-A8. Set attribute "arch".
25810 * config/arm/arm.md: Move include arm-tune.md up a bit.
25811 (define_attr "arch"): Add "onlya8" and "nota8" values.
25812 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
25813
25814 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
25815
25816 PR bootstrap/48282
25817 Revert:
25818 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
25819
25820 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
25821 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
25822 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
25823 * passes.c (init_optimization_passes): Move
25824 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
25825
25826 2011-03-25 Kai Tietz <ktietz@redhat.com>
25827
25828 * c-typeck.c (comptypes_internal): Replace target
25829 hook call of comp_type_attributes by version in tree.c file.
25830 * gimple.c (gimple_types_compatible_p_1): Likewise.
25831 * tree-ssa.c (useless_type_conversion_p): Likewise.
25832 * tree.c (build_type_attribute_qual_variant): Likewise.
25833 (attribute_value_equal): New static helper function.
25834 (comp_type_attributes): New function.
25835 (merge_attributes): Use attribute_value_equal for comparison.
25836 (attribute_list_contained): Likewise.
25837 * tree.h (comp_type_attributes): New prototype.
25838
25839 2011-03-25 Richard Guenther <rguenther@suse.de>
25840
25841 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
25842 of complex types at -O0.
25843 (verify_gimple_assign_binary): Likewise.
25844 (verify_gimple_assign_ternary): Likewise.
25845
25846 2011-03-24 Mark Wielaard <mjw@redhat.com>
25847
25848 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
25849 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
25850
25851 2011-03-24 Mark Wielaard <mjw@redhat.com>
25852
25853 PR debug/48041
25854 * dwarf2out.c (output_abbrev_section): Only write table when
25855 abbrev_die_table_in_use > 1.
25856
25857 2011-02-24 Richard Henderson <rth@redhat.com>
25858
25859 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
25860 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
25861 (alpha_expand_unaligned_load_words): Use extql.
25862 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
25863 (emit_insxl): Handle all modes for consistency.
25864
25865 2011-02-24 Richard Henderson <rth@redhat.com>
25866
25867 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
25868 (alpha_expand_unaligned_load): Likewise.
25869 (alpha_expand_unaligned_store): Likewise.
25870 (alpha_expand_unaligned_load_words): Likewise.
25871 (alpha_expand_unaligned_store_words): Likewise.
25872 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
25873 (alpha_split_lock_test_and_set_12): Likewise.
25874 (print_operand, alpha_fold_builtin_extxx): Likewise.
25875 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
25876 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
25877 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
25878 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
25879 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
25880 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
25881 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
25882 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
25883 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
25884 (extwl, extll, extql): Similarly.
25885 (inswh, inslh, insqh): Similarly.
25886 (mskbl, mskwl, mskll, mskql): Similarly.
25887 (mskwh, msklh, mskqh): Similarly.
25888
25889 2011-02-24 Richard Henderson <rth@redhat.com>
25890
25891 * config/alpha/alpha.md (attribute isa): Add er, ner.
25892 (attribute enabled): Handle them.
25893 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
25894
25895 2011-02-24 Richard Henderson <rth@redhat.com>
25896
25897 * config/alpha/alpha.md (attribute isa): Add vms.
25898 (attribute enabled): Handle it.
25899 (*movsf): Merge *movsf_{nofix,fix,nofp}.
25900 (*movdf): Merge *movdf_{nofix,fix,nofp}.
25901 (*movtf): Rename from *movtf_internal for consistency.
25902 (*movsi): Merge with *movsi_nt_vms.
25903 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
25904 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
25905 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
25906 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
25907
25908 2011-02-24 Richard Henderson <rth@redhat.com>
25909
25910 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
25911 (extendqisi2, extendhisi2): Likewise.
25912 (extendqidi2): Simplify BWX/non-BWX expansions.
25913 (extendhidi2): Similarly.
25914
25915 2011-02-24 Richard Henderson <rth@redhat.com>
25916
25917 * config/alpha/alpha.md (attribute isa): New.
25918 (attribute enabled): New.
25919 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
25920 (zero_extendqisi2, zero_extendqidi2): Similarly.
25921 (zero_extendhisi2, zero_extendhidi2): Similarly.
25922 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
25923
25924 2011-02-24 Richard Henderson <rth@redhat.com>
25925
25926 * config/alpha/predicates.md (input_operand): Revert last change;
25927 update comment to mention 32-bit VMS rather than Windows.
25928
25929 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
25930
25931 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
25932 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
25933 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
25934 * passes.c (init_optimization_passes): Move
25935 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
25936
25937 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
25938
25939 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
25940
25941 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
25942
25943 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
25944 correctly.
25945
25946 2011-03-24 Jakub Jelinek <jakub@redhat.com>
25947
25948 PR debug/48204
25949 * simplify-rtx.c (simplify_const_unary_operation): Call
25950 real_convert when changing mode class with FLOAT_EXTEND.
25951
25952 2011-03-24 Nick Clifton <nickc@redhat.com>
25953
25954 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
25955 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
25956 * config/rx/rx.c (rx_option_override): Set align_jumps,
25957 align_loops and align_labels if not set by the user.
25958 (rx_align_for_label): New function.
25959 (rx_max_skip_for_label): New function.
25960 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
25961 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
25962 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
25963 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
25964 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
25965
25966 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
25967
25968 PR rtl-optimization/48263
25969 * optabs.c (expand_binop_directly): Reinstate convert_modes code
25970 and original commutative_p handling. Use maybe_gen_insn.
25971
25972 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25973
25974 * reload.c (find_reloads_subreg_address): Add address_reloaded
25975 parameter and return true there if the full address has been
25976 reloaded.
25977 (find_reloads_toplev): Pass address_reloaded flag.
25978 (find_reloads_address_1): Don't use address_reloaded parameter.
25979
25980 2011-03-24 Jeff Law <law@redhat.com>
25981
25982 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
25983 unused variable "ann".
25984 (remove_unused_locals): Likewise.
25985
25986 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
25987 statement.
25988
25989 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
25990 after it is freed.
25991
25992 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25993
25994 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
25995 for invalid symbolic addresses.
25996 (s390_secondary_reload): Don't use s390_check_symref_alignment for
25997 larl operands.
25998
25999 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
26000
26001 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
26002 the argument in calls to fold_truth_not_expr.
26003
26004 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
26005
26006 * tree.c (record_node_allocation_statistics): New function.
26007 (make_node_stat, copy_node_stat, build_string): Call it.
26008 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
26009 (build1_stat, build_omp_clause): Likewise.
26010
26011 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
26012
26013 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
26014 last commit.
26015
26016 2011-03-24 Richard Guenther <rguenther@suse.de>
26017
26018 PR tree-optimization/48271
26019 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
26020 blocks that still exist.
26021
26022 2011-03-24 Richard Guenther <rguenther@suse.de>
26023
26024 PR tree-optimization/48270
26025 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
26026 not free datarefs before ddrs.
26027
26028 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
26029
26030 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
26031 from the address built for a reference with variable offset.
26032
26033 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
26034
26035 PR target/48237
26036 * config/i386/i386.md (*movdf_internal_rex64): Do not split
26037 alternatives that can be handled with movq or movabsq insn.
26038 (*movdf_internal): Disable for !TARGET_64BIT.
26039 (*movdf_internal_nointeger): Ditto.
26040 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
26041
26042 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
26043
26044 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
26045 (FUNCTION_ARG_ADVANCE): Likewise.
26046 * tm.texi.in: Change references to them to hook references.
26047 * tm.texi: Regenerate.
26048 * targhooks.c (default_function_arg): Eliminate check for target macro.
26049 (default_function_incoming_arg): Likewise.
26050 (default_function_arg_advance): Likewise.
26051 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
26052 (function_arg_advance): Likewise.
26053 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
26054
26055 2011-03-24 Richard Guenther <rguenther@suse.de>
26056
26057 PR middle-end/48269
26058 * tree-object-size.c (addr_object_size): Do not double-account
26059 for MEM_REF offsets.
26060
26061 2011-03-24 Diego Novillo <dnovillo@google.com>
26062
26063 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
26064 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
26065 (lto_input_data_block): Move from lto-opts.c. Make extern.
26066 Update all users.
26067 (lto_input_string): Rename from input_string. Make extern.
26068 Update all users.
26069 * lto-streamer-out.c (lto_output_string_with_length): Rename from
26070 output_string_with_length.
26071 Output 0 to indicate a non-NULL string. Update all callers to
26072 not emit 0.
26073 (lto_output_string): Rename from output_string. Make extern.
26074 Update all users.
26075 (lto_output_decl_state_streams): Make extern.
26076 (lto_output_decl_state_refs): Make extern.
26077 * lto-streamer.h (lto_input_string): Declare.
26078 (lto_input_data_block): Declare.
26079 (lto_output_string): Declare.
26080 (lto_output_string_with_length): Declare.
26081 (lto_output_decl_state_streams): Declare.
26082 (lto_output_decl_state_refs): Declare.
26083
26084 2011-03-24 Richard Guenther <rguenther@suse.de>
26085
26086 PR tree-optimization/46562
26087 * tree.c (build_invariant_address): New function.
26088 * tree.h (build_invariant_address): Declare.
26089 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
26090 a renamed function moved ...
26091 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
26092 Take valueization callback parameter.
26093 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
26094 * gimple-fold.h: New file.
26095 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
26096 (ccp_fold, fold_const_aggregate_ref,
26097 fold_ctor_reference, fold_nonarray_ctor_reference,
26098 fold_array_ctor_reference, fold_string_cst_ctor_reference,
26099 get_base_constructor): Move ...
26100 * gimple-fold.c: ... here.
26101 (gimple_fold_stmt_to_constant_1): New function
26102 split out from ccp_fold. Take a valueization callback parameter.
26103 Valueize all operands.
26104 (gimple_fold_stmt_to_constant): New wrapper function.
26105 (fold_const_aggregate_ref_1): New function split out from
26106 fold_const_aggregate_ref. Take a valueization callback parameter.
26107 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
26108 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
26109 invariant POINTER_PLUS_EXPRs to invariant form.
26110 (vn_valueize): New function.
26111 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
26112 * tree-vrp.c (vrp_valueize): New function.
26113 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
26114 to fold statements to constants.
26115 * tree-ssa-pre.c (eliminate): Properly guard propagation of
26116 function declarations.
26117 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
26118 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
26119
26120 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
26121
26122 * config/h8300/predicates.md (jump_address_operand): Fix register
26123 mode check.
26124
26125 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
26126
26127 * doc/invoke.texi (max-stores-to-sink): Document.
26128 * params.h (MAX_STORES_TO_SINK): Define.
26129 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
26130 if either vectorization or if-conversion is disabled.
26131 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
26132 tree-vect-data-refs.c vect_equal_offsets.
26133 (dr_equal_offsets_p): New function.
26134 (find_data_references_in_bb): Remove static.
26135 * tree-data-ref.h (find_data_references_in_bb): Declare.
26136 (dr_equal_offsets_p): Likewise.
26137 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
26138 (vect_drs_dependent_in_basic_block): Update calls to
26139 vect_equal_offsets.
26140 (vect_check_interleaving): Likewise.
26141 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
26142 (cond_if_else_store_replacement): Rename to...
26143 (cond_if_else_store_replacement_1): ... this. Change arguments and
26144 documentation.
26145 (cond_if_else_store_replacement): New function.
26146 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
26147 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
26148
26149 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
26150
26151 PR target/46934
26152 * config/arm/arm.md (casesi): Use the gen_int_mode() function
26153 to subtract lower bound instead of GEN_INT().
26154
26155 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
26156
26157 PR other/48179
26158 PR other/48221
26159 PR other/48234
26160 * doc/extend.texi (Alignment): Move section to match order in TOC.
26161 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
26162 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
26163
26164 2011-03-23 Jeff Law <law@redhat.com>
26165
26166 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
26167 before removing the edge.
26168
26169 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
26170 it may have been freed by redirect_branch_edge or
26171 redirect_edge_succ_nodup.
26172
26173 2011-03-23 Richard Guenther <rguenther@suse.de>
26174
26175 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
26176 (check_va_list_escapes): Likewise.
26177 (check_all_va_list_escapes): Likewise.
26178
26179 2011-03-23 Richard Guenther <rguenther@suse.de>
26180
26181 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
26182 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
26183 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
26184 (alias.o): Likewise.
26185 (ipa-type-escape.o): Remove.
26186 (ipa-struct-reorg.o): Likewise.
26187 (GTFILES): Remove ipa-struct-reorg.c.
26188 * alias.c: Do not include ipa-type-escape.h.
26189 * tree-ssa-alias.c: Likewise.
26190 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
26191 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
26192 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
26193 and ipa-type-escape passes.
26194 * tree-pass.h (pass_ipa_type_escape): Remove.
26195 (pass_ipa_struct_reorg): Likewise.
26196 * ipa-struct-reorg.h: Remove.
26197 * ipa-struct-reorg.c: Likewise.
26198 * ipa-type-escape.h: Likewise.
26199 * ipa-type-escape.c: Likewise.
26200 * doc/invoke.texi (-fipa-struct-reorg): Remove.
26201 (--param struct-reorg-cold-struct-ratio): Likewise.
26202 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
26203 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
26204 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
26205
26206 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26207
26208 * config/s390/2084.md: Enable all insn reservations also for z9_ec
26209 cpu attribute value.
26210 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
26211 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
26212 * config/s390/s390.c (processor_flags_table): New constant array.
26213 (s390_handle_arch_option): Remove.
26214 (s390_handle_option): Remove s390_handle_arch_option invocations
26215 and OPT_mwarn_framesize_ handling.
26216 (s390_option_override): Remove s390_handle_arch_option invocation.
26217 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
26218 warnings.
26219 * config/s390/s390.md (cpu attribute): Add z9_ec value.
26220 * config/s390/s390.opt (s390_tune, s390_arch)
26221 (march=): Replace s390_arch_option enum and values with
26222 processor_type. Set variable name to s390_arch. Set
26223 initialization value.
26224 (mtune=): Replace s390_arch_option with processor_type. Set
26225 variable name to s390_tune. Set initialization value.
26226
26227 2011-03-23 Julian Brown <julian@codesourcery.com>
26228
26229 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
26230 accesses which are not naturally aligned.
26231
26232 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
26233
26234 PR target/47553
26235 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
26236
26237 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
26238
26239 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
26240 parameter from "int" to "enum insn_code".
26241 (expand_operand_type): New enum.
26242 (expand_operand): New structure.
26243 (create_expand_operand): New function.
26244 (create_fixed_operand, create_output_operand): Likewise
26245 (create_input_operand, create_convert_operand_to): Likewise.
26246 (create_convert_operand_from, create_address_operand): Likewise.
26247 (create_integer_operand): Likewise.
26248 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
26249 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
26250 (expand_insn, expand_jump_insn): Likewise.
26251 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
26252 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
26253 (expand_movstr, expand_builtin___clear_cache): Likewise.
26254 (expand_builtin_lock_release): Likewise.
26255 * explow.c (allocate_dynamic_stack_space): Likewise.
26256 (probe_stack_range): Likewise. Allow check_stack to FAIL,
26257 and use the default handling in that case.
26258 * expmed.c (check_predicate_volatile_ok): Delete.
26259 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
26260 (emit_cstore): Likewise.
26261 * expr.c (emit_block_move_via_movmem): Likewise.
26262 (set_storage_via_setmem, expand_assignment): Likewise.
26263 (emit_storent_insn, try_casesi): Likewise.
26264 (emit_single_push_insn): Likewise. Allow the expansion to fail.
26265 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
26266 (expand_vec_shift_expr, expand_binop_directly): Likewise.
26267 (expand_twoval_unop, expand_twoval_binop): Likewise.
26268 (expand_unop_direct, emit_indirect_jump): Likewise.
26269 (emit_conditional_move, vector_compare_rtx): Likewise.
26270 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
26271 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
26272 (expand_sync_lock_test_and_set): Likewise.
26273 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
26274 (emit_unop_insn): Likewise.
26275 (expand_copysign_absneg): Change icode to an insn_code.
26276 (create_convert_operand_from_type): New function.
26277 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
26278 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
26279 (expand_insn, expand_jump_insn): Likewise.
26280 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
26281 than const_int_operand for operand 2.
26282
26283 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26284
26285 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
26286 if possible.
26287
26288 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
26289
26290 * emit-rtl.c (emit_pattern_before_noloc): New function.
26291 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
26292 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
26293 (emit_pattern_after_noloc): New function.
26294 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
26295 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
26296
26297 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
26298
26299 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
26300 (__ffsDI2): Likewise.
26301
26302 2011-03-22 Richard Henderson <rth@redhat.com>
26303
26304 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
26305 of !TARGET_ABI_OPEN_VMS.
26306 (alpha_trampoline_init, alpha_start_function): Likewise.
26307 (alpha_expand_epilogue, alpha_file_start): Likewise.
26308 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
26309 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
26310 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
26311 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
26312 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
26313
26314 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26315
26316 * config/s390/s390-opts.h: New.
26317 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
26318 s390_arch_flags, s390_warn_framesize, s390_stack_size,
26319 s390_stack_guard): Remove.
26320 (s390_handle_arch_option): Return void. Take enum
26321 s390_arch_option value instead of string and searching array.
26322 (s390_handle_option): Don't assert that global structures are in
26323 use. Access variables via opts pointer. Use error_at. Don't use
26324 sscanf for -mstack-guard= or -mstack-size=. Update call to
26325 s390_handle_arch_option.
26326 (s390_option_override): Update call to s390_handle_arch_option.
26327 (s390_emit_prologue): Use %d format for s390_stack_size in
26328 diagnostic. Use %wd for HOST_WIDE_INT.
26329 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
26330 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
26331 * config/s390/s390.opt (config/s390/s390-opts.h): New
26332 HeaderInclude entry.
26333 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
26334 s390_arch_flags, s390_warn_framesize): New Variable entries.
26335 (s390_arch_option): New Enum and EnumValue entries.
26336 (march=): Use Enum instead of Var.
26337 (mstack-guard=, mstack-size=): Use UInteger and Var.
26338 (mtune=): Use Enum.
26339
26340 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26341
26342 * config/score/score.c (score_handle_option): Don't assert that
26343 global structures are in use. Access target_flags via opts
26344 pointer. Use value of -march= option to determine target_flags
26345 settings.
26346 * config/score/score.opt (march=): Use Enum.
26347 (score_arch): New Enum and EnumValue entries.
26348
26349 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26350
26351 * config/mep/mep.c (option_mtiny_specified): Remove.
26352 (mep_option_override): Move register handling for -mivc2 from
26353 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
26354 instead of option_mtiny_specified.
26355 (mep_handle_option): Access target_flags via opts pointer. Don't
26356 assert that global structures are in use. Defer part of -mivc2
26357 handling and move it to mep_option_override.
26358 * config/mep/mep.opt (IVC2): New Mask entry.
26359 (mivc2): Use Var and Defer instead of Mask.
26360
26361 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26362
26363 * config/v850/v850-opts.h: New.
26364 * config/v850/v850.c (small_memory): Replace with
26365 small_memory_physical_max array. Make that array static const.
26366 (v850_handle_memory_option): Take integer value of argument. Take
26367 gcc_options pointer, option text and location. Return void.
26368 Update for changes to small memory structures.
26369 (v850_handle_option): Access target_flags via opts pointer. Don't
26370 assert that global structures are in use. Update calls to
26371 v850_handle_memory_option.
26372 (v850_encode_data_area): Update references to small memory settings.
26373 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
26374 (enum small_memory_type): Move to v850-opts.h.
26375 * config/v850/v850.opt (config/v850/v850-opts.h): New
26376 HeaderInclude entry.
26377 (small_memory_max): New Variable entry.
26378 (msda): Replace by pair of options msda= and msda-. Use UInteger.
26379 (mtda, mzda): Likewise.
26380
26381 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26382
26383 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
26384 pointer. Don't assert that global structures are in use.
26385
26386 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26387
26388 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
26389 via opts pointer. Don't assert that global structures are in use.
26390
26391 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26392
26393 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
26394 (munix=93): Use Var.
26395 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
26396 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
26397 * config/pa/pa-opts.h: New.
26398 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
26399 (pa_handle_option): Don't assert that global structures are in
26400 use. Access target_flags via opts pointer. Don't handle
26401 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
26402 OPT_munix_98 here.
26403 (pa_option_override): Handle deferred OPT_mfixed_range_.
26404
26405 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26406
26407 * config/mn10300/mn10300-opts.h: New.
26408 * config/mn10300/mn10300.c (mn10300_processor,
26409 mn10300_tune_string): Remove.
26410 (mn10300_handle_option): Don't assert that global structures are
26411 in use. Access mn10300_processor via opts pointer. Don't handle
26412 OPT_mtune_ here.
26413 * config/mn10300/mn10300.h (enum processor_type): Move to
26414 mn10300-opts.h.
26415 (mn10300_processor): Remove.
26416 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
26417 HeaderInclude entry.
26418 (mn10300_processor): New Variable entry.
26419 (mtune=): Use Var.
26420
26421 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26422
26423 * config/microblaze/microblaze.c: Don't include opts.h.
26424 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
26425 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
26426 (mno-clearbss): Use Var and Warn.
26427
26428 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26429
26430 * config/m32r/m32r-opts.h: New.
26431 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
26432 (m32r_handle_option): Don't assert that global structures are in
26433 use. Access target_flags and m32r_cache_flush_func via opts
26434 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
26435 OPT_mno_flush_trap here.
26436 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
26437 include of m32r-opts.h.
26438 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
26439 HeaderInclude entry.
26440 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
26441 (mmodel=): Use Enum and Var.
26442 (m32r_model): New Enum and EnumValue entries.
26443 (mno-flush-trap): Use Var.
26444 (msdata=): Use Enum and Var.
26445 (m32r_sdata): New Enum and EnumValue entries.
26446
26447 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26448
26449 * config/m32c/m32c.c: Don't include opts.h.
26450 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
26451 m32c_handle_option): Remove.
26452 (m32c_option_override): Check global_options_set.x_target_memregs
26453 instead of target_memregs_set.
26454 * config/m32c/m32c.h (target_memregs): Remove.
26455 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
26456 variable.
26457
26458 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26459
26460 * config/iq2000/iq2000-opts.h: New.
26461 * config/iq2000/iq2000.c: Don't include opts.h.
26462 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
26463 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
26464 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
26465 HeaderInclude entry.
26466 (iq2000_tune): New Variable entry.
26467 (march=): Add comment. Use Enum.
26468 (iq2000_arch): New Enum and EnumValue entries.
26469 (mcpu=): Use Enum and Var.
26470 (iq2000_tune): New Enum and EnumValue entries.
26471
26472 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26473
26474 * config/ia64/ia64-opts.h: New.
26475 * config/ia64/ia64.c (ia64_tune): Remove.
26476 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
26477 here. Use error_at.
26478 (ia64_option_override): Handle deferred OPT_mfixed_range_.
26479 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
26480 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
26481 HeaderInclude entry.
26482 (ia64_tune): New Variable entry.
26483 (mfixed-range=): Use Defer and Var.
26484 (mtune=): Use Enum and Var.
26485 (ia64_tune): New Enum and EnumValue entries.
26486
26487 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26488
26489 * config/frv/frv-opts.h: New.
26490 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
26491 frv-opts.h.
26492 (frv_cpu_type): Remove.
26493 * config/frv/frv.c: Don't include opts.h.
26494 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
26495 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
26496 (frv_cpu_type): New Variable entry.
26497 (frv_cpu): New Enum and EnumValue entries.
26498
26499 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26500
26501 * config/cris/cris.c (cris_handle_option): Access target_flags via
26502 opts pointer. Don't assert that global structures are in use.
26503 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
26504 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
26505
26506 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26507
26508 * config/bfin/bfin-opts.h: New.
26509 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
26510 bfin_si_revision, bfin_workarounds): Remove.
26511 (bfin_cpus): Make static const.
26512 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
26513 not bfin_lib_id_given.
26514 (bfin_handle_option): Don't set bfin_lib_id_given. Access
26515 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
26516 pointer. Use error_at. Don't assert that global structures are in use.
26517 * config/bfin/bfin.h: Include bfin-opts.h.
26518 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
26519 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
26520 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
26521 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
26522 entries.
26523
26524 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26525
26526 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
26527 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
26528 or -msoft-float here.
26529 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
26530 -msoft-float and -mhard-float.
26531 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
26532 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
26533 msoft-float.
26534 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
26535 -msoft-float.
26536 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
26537 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
26538 not mhard-float.
26539 (LIBGCC_SPEC): Don't handle -msoft-float.
26540 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
26541 -mhard-float.
26542 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
26543 msoft-float.
26544 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
26545 -mfloat-abi=*, not -msoft-float and -mhard-float.
26546 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
26547 -msoft-float.
26548 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
26549 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
26550 mhard-float and msoft-float.
26551 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
26552 mfloat-abi=soft in comments, not mhard-float and msoft-float.
26553 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
26554 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
26555 mhard-float.
26556 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
26557 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
26558 msoft-float.
26559 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
26560 not mhard-float.
26561 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
26562 not msoft-float.
26563
26564 2011-03-22 Richard Henderson <rth@redhat.com>
26565
26566 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
26567 TARGET_ABI_WINDOWS_NT.
26568 (alpha_output_function_end_prologue): Likewise.
26569 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
26570 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
26571 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
26572 (trap, *movsi_nt_vms): Likewise.
26573 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
26574 (*tablejump_osf_nt_internal): Remove.
26575 * config/alpha/predicates.md (input_operand): Only test Pmode.
26576
26577 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26578
26579 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
26580 via opts pointer. Use error_at. Don't assert that global
26581 structures are in use.
26582
26583 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26584
26585 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
26586 (ix86_handle_option): Access ix86_isa_flags and
26587 ix86_isa_flags_explicit via opts pointer. Don't assert that
26588 global structures are in use.
26589 (ix86_function_specific_save, ix86_function_specific_restore):
26590 Update ix86_isa_flags_explicit field name.
26591 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
26592 (ix86_isa_flags_explicit): Rename TargetSave entry to
26593 x_ix86_isa_flags_explicit.
26594
26595 2011-03-22 Richard Henderson <rth@redhat.com>
26596
26597 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
26598 (alpha_option_override, direct_return): Likewise.
26599 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
26600 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
26601 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
26602 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
26603 (alpha_expand_epilogue, alpha_end_function): Likewise.
26604 (alpha_init_libfuncs): Likewise.
26605 (struct machine_function): Remove unicosmk members.
26606 (print_operand) ['t']: Remove.
26607 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
26608 unicosmk_output_module_name, unicosmk_output_common,
26609 current_section_align, unicosmk_output_text_section_asm_op,
26610 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
26611 unicosmk_section_type_flags, unicosmk_unique_section,
26612 unicosmk_asm_named_section, unicosmk_insert_attributes,
26613 unicosmk_output_align, unicosmk_defer_case_vector,
26614 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
26615 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
26616 unicosmk_output_ssib, unicosmk_add_call_info_word,
26617 unicosmk_extern_head, unicosmk_output_default_externs,
26618 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
26619 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
26620 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
26621 * config/alpha/alpha-protos.h: Update.
26622 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
26623 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
26624 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
26625 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
26626 (*mulsi_se, mulvsi3): Likewise.
26627 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
26628 (*divmodsi_internal, call, call_value, realign): Likewise.
26629 (moddi3, umoddi3): Likewise; remove duplicate expander.
26630 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
26631 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
26632 (*movdi_nofix): Remove r/U alternative.
26633 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
26634 * config/alpha/constraints.md ("U"): Remove.
26635 * config/alpha/predicates.md (call_operand"): Don't test
26636 TARGET_ABI_UNICOSMK.
26637
26638 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26639
26640 * target.def (handle_option): Take gcc_options and
26641 cl_decoded_option pointers and location_t.
26642 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
26643 * doc/tm.texi: Regenerate.
26644 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
26645 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
26646 * lto-opts.c (lto_reissue_options): Generate option structure for
26647 targetm.handle_option call.
26648 * opts.c (target_handle_option): Update call to
26649 targetm.handle_option. Remove assertions about values now passed
26650 down to hook.
26651 * targhooks.c (default_target_handle_option): New.
26652 * targhooks.h (default_target_handle_option): Declare.
26653 * config/alpha/alpha.c: Include opts.h.
26654 (alpha_handle_option): Update to new hook interface.
26655 * config/arm/arm.c: Include opts.h.
26656 (arm_handle_option): Update to new hook interface.
26657 * config/arm/t-arm (arm.o): Update dependencies.
26658 * config/bfin/bfin.c: Include opts.h.
26659 (bfin_handle_option): Update to new hook interface.
26660 * config/cris/cris.c: Include opts.h.
26661 (cris_handle_option): Update to new hook interface.
26662 * config/frv/frv.c: Include opts.h.
26663 (frv_handle_option): Update to new hook interface.
26664 * config/i386/i386.c: Include opts.h.
26665 (ix86_handle_option): Update to new hook interface.
26666 (ix86_valid_target_attribute_inner_p): Generate option structure
26667 for call to ix86_handle_option.
26668 * config/i386/t-i386 (i386.o): Update dependencies.
26669 * config/ia64/ia64.c: Include opts.h.
26670 (ia64_handle_option): Update to new hook interface.
26671 * config/ia64/t-ia64 (ia64.o): Update dependencies.
26672 * config/iq2000/iq2000.c: Include opts.h.
26673 (iq2000_handle_option): Update to new hook interface.
26674 * config/m32c/m32c.c: Include opts.h.
26675 (m32c_handle_option): Update to new hook interface.
26676 * config/m32r/m32r.c: Include opts.h.
26677 (m32r_handle_option): Update to new hook interface.
26678 * config/m68k/m68k.c: Include opts.h.
26679 (m68k_handle_option): Update to new hook interface.
26680 * config/mep/mep.c: Include opts.h.
26681 (mep_handle_option): Update to new hook interface.
26682 * config/microblaze/microblaze.c: Include opts.h.
26683 (microblaze_handle_option): Update to new hook interface.
26684 * config/mips/mips.c: Include opts.h.
26685 (mips_handle_option): Update to new hook interface.
26686 * config/mn10300/mn10300.c: Include opts.h.
26687 (mn10300_handle_option): Update to new hook interface.
26688 * config/pa/pa.c: Include opts.h.
26689 (pa_handle_option): Update to new hook interface.
26690 * config/pdp11/pdp11.c: Include opts.h.
26691 (pdp11_handle_option): Update to new hook interface.
26692 * config/rs6000/rs6000.c: Include opts.h.
26693 (rs6000_handle_option): Update to new hook interface.
26694 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
26695 * config/rx/rx.c: Include opts.h.
26696 (rx_handle_option): Update to new hook interface.
26697 * config/s390/s390.c: Include opts.h.
26698 (s390_handle_option): Update to new hook interface.
26699 * config/score/score.c: Include opts.h.
26700 (score_handle_option): Update to new hook interface.
26701 * config/sh/sh.c: Include opts.h.
26702 (sh_handle_option): Update to new hook interface.
26703 * config/sparc/sparc.c: Include opts.h.
26704 (sparc_handle_option): Update to new hook interface.
26705 * config/v850/v850.c: Include opts.h.
26706 (v850_handle_option): Update to new hook interface.
26707
26708 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26709
26710 * gcc.c (driver_unknown_option_callback): Only permit and save
26711 unknown -Wno- options.
26712 (driver_wrong_lang_callback): Save options directly instead of via
26713 driver_unknown_option_callback.
26714
26715 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
26716
26717 * combine.c (simplify_set): Try harder to find the best CC mode when
26718 simplifying a nested COMPARE on the RHS.
26719
26720 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26721
26722 * config/alpha/gnu.h: Remove.
26723 * config/arc: Remove directory.
26724 * config/arm/netbsd.h: Remove.
26725 * config/arm/t-pe: Remove.
26726 * config/crx: Remove directory.
26727 * config/i386/netbsd.h: Remove.
26728 * config/m68hc11: Remove directory.
26729 * config/m68k/uclinux-oldabi.h: Remove.
26730 * config/mcore/mcore-pe.h: Remove.
26731 * config/mcore/t-mcore-pe: Remove.
26732 * config/netbsd-aout.h: Remove.
26733 * config/rs6000/gnu.h: Remove.
26734 * config/sh/sh-symbian.h: Remove.
26735 * config/sh/symbian-base.c: Remove.
26736 * config/sh/symbian-c.c: Remove.
26737 * config/sh/symbian-cxx.c: Remove.
26738 * config/sh/symbian-post.h: Remove.
26739 * config/sh/symbian-pre.h: Remove.
26740 * config/sh/t-symbian: Remove.
26741 * config/svr3.h: Remove.
26742 * config/vax/netbsd.h: Remove.
26743 * config.build: Don't handle i[34567]86-*-pe.
26744 * config.gcc: Remove handling of deprecations for most deprecated
26745 targets.
26746 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
26747 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
26748 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
26749 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
26750 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
26751 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
26752 Remove cases.
26753 * config.host: Don't handle i[34567]86-*-pe.
26754 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
26755 (ASM_SPEC32): Don't handle -mcall-gnu.
26756 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
26757 -mcall-gnu.
26758 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
26759 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
26760 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
26761 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
26762 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
26763 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
26764 conditional on SYMBIAN.
26765 * configure.ac: Don't handle powerpc*-*-gnu*.
26766 * configure: Regenerate.
26767 * doc/extend.texi (interrupt attribute): Don't mention CRX.
26768 * doc/install-old.texi (m6811, m6812): Don't mention.
26769 * doc/install.texi (arc-*-elf*): Don't document multilib option.
26770 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
26771 (m68k-uclinuxoldabi): Don't mention.
26772 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
26773 Remove.
26774 (-mcall-gnu): Remove.
26775 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
26776 families): Remove constraint documentation.
26777
26778 2011-03-22 Marius Strobl <marius@FreeBSD.org>
26779
26780 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
26781 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
26782 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
26783
26784 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
26785
26786 PR target/48226
26787 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
26788 vector when peeking at the next token for vector, don't expand the
26789 keywords.
26790
26791 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
26792
26793 * config/avr/avr-protos.h (expand_epilogue): Change prototype
26794 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
26795 * config/avr/avr.c (init_cumulative_args)
26796 (avr_function_arg_advance): Use it.
26797 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
26798 sibcall epilogues.
26799 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
26800 (avr_function_ok_for_sibcall): ...this new function.
26801 (avr_lookup_function_attribute1): New static Function.
26802 (avr_naked_function_p, interrupt_function_p)
26803 (signal_function_p, avr_OS_task_function_p)
26804 (avr_OS_main_function_p): Use it.
26805 * config/avr/avr.md ("sibcall", "sibcall_value")
26806 ("sibcall_epilogue"): New expander.
26807 ("*call_insn", "*call_value_insn"): New insn.
26808 ("call_insn", "call_value_insn"): Remove
26809 ("call", "call_value", "epilogue"): Change expander to handle
26810 sibling calls.
26811
26812 2011-03-21 Nick Clifton <nickc@redhat.com>
26813
26814 * doc/invoke.texi (Overall Options): Move closing brace to end of
26815 options list.
26816 (Optimization Options): Add missing @gol.
26817 (Directory Options): Likewise.
26818 (i386 and x86-64 Options): Likewise.
26819 (RS6000 and PowerPC Options): Likewise.
26820 (i386 and x86-64 Windows Options): Likewise.
26821 (V850 Options): Add text missing from descriptions.
26822
26823 2011-03-22 Richard Henderson <rth@redhat.com>
26824
26825 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
26826 (avr_incoming_return_addr_rtx): New.
26827 (emit_push_byte): New.
26828 (expand_prologue): Use it. Remove incorrect dwarf annotation for
26829 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
26830 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
26831 (emit_pop_byte): New.
26832 (expand_epilogue): Use it. Pop frame pointer by bytes.
26833 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
26834 (INCOMING_RETURN_ADDR_RTX): New.
26835 (INCOMING_FRAME_SP_OFFSET): New.
26836 (ARG_POINTER_CFA_OFFSET): New.
26837 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
26838 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
26839 (pophi): Remove.
26840
26841 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
26842
26843 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
26844
26845 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
26846 (FUNCTION_ARG_ADVANCE): Likewise.
26847 * tm.texi.in: Change references to them to hook references.
26848 * tm.texi: Regenerate.
26849 * targhooks.c (default_function_arg): Eliminate check for target
26850 macro.
26851 (default_function_incoming_arg): Likewise.
26852 (default_function_arg_advance): Likewise.
26853 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
26854 (function_arg_advance): Likewise.
26855 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
26856
26857 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
26858
26859 * tree.c (build_call_1): New function.
26860 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
26861
26862 2011-03-22 Richard Guenther <rguenther@suse.de>
26863
26864 PR tree-optimization/48228
26865 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
26866 for single-arg PHIs.
26867
26868 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
26869
26870 PR rtl-optimization/48143
26871 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
26872 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
26873 sse2_cvtps2pd): Likewise.
26874
26875 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26876
26877 * recog.c (canonicalize_change_group): Use validate_unshare_change.
26878
26879 2011-03-22 Richard Guenther <rguenther@suse.de>
26880
26881 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
26882 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
26883 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
26884 and REALIGN_LOAD_EXPR.
26885 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
26886 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
26887 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
26888 DOT_PROD_EXPR case ...
26889 (expand_expr_real_2): ... here.
26890 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
26891 and REALIGN_LOAD_EXPR.
26892 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
26893 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
26894 (vect_create_epilog_for_reduction): Likewise.
26895 (vectorizable_reduction): Likewise.
26896 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
26897 * tree-vect-stmts.c (vectorizable_load): Likewise.
26898
26899 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
26900
26901 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
26902
26903 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26904
26905 * config/s390/s390.c (s390_delegitimize_address): Fix offset
26906 handling for PLTOFF/GOTOFF.
26907
26908 2011-03-22 Nick Clifton <nickc@redhat.com>
26909
26910 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
26911 trailing backslash from the end of the macro definition.
26912
26913 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26914
26915 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
26916 and PLT unspecs.
26917
26918 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
26919
26920 * expr.h (prepare_operand): Move to...
26921 * optabs.h (prepare_operand): ...here and change the insn code
26922 parameter from "int" to "enum insn_code".
26923 (insn_operand_matches): Declare.
26924 * expr.c (init_expr_target): Use insn_operand_matches.
26925 (compress_float_constant): Likewise.
26926 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
26927 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
26928 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
26929 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
26930 Likewise.
26931 (gen_cond_trap): Likewise.
26932 (prepare_operand): Likewise. Change icode to an insn_code.
26933 (insn_operand_matches): New function.
26934 * reload.c (find_reloads_address_1): Use insn_operand_matches.
26935 * reload1.c (gen_reload): Likewise.
26936 * targhooks.c (default_secondary_reload): Likewise.
26937
26938 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
26939
26940 * config/alpha/alpha.md (unspec): New define_c_enum.
26941 (unspecv): Ditto.
26942
26943 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
26944
26945 PR debug/48214
26946 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
26947 between a call and its CALL_ARG_LOCATION note.
26948
26949 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
26950
26951 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
26952
26953 2011-03-21 Jakub Jelinek <jakub@redhat.com>
26954
26955 PR c/42544
26956 PR c/48197
26957 * c-common.c (shorten_compare): If primopN is first sign-extended
26958 to opN and then zero-extended to result type, set primopN to opN.
26959
26960 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
26961
26962 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
26963 for barrier handlers.
26964
26965 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
26966
26967 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
26968 UNSPEC constants to be in the unspec enumeration, and redefine
26969 all UNSPECV constants to be in the unspecv enumeration, so that
26970 dumps print which unspec/unspec_volatile this is.
26971 * config/rs6000/vector.md (UNSPEC_*): Ditto.
26972 * config/rs6000/paired.md (UNSPEC_*): Ditto.
26973 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
26974 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
26975 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
26976
26977 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
26978 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
26979 UNSPECV_LWSYNC, since these are used as unspec_volatile.
26980 * config/rs6000/sync.md (isync, lwsync): Ditto.
26981
26982 2011-03-21 Richard Guenther <rguenther@suse.de>
26983
26984 * params.def (lto-min-partition): Fix typo.
26985
26986 2011-03-21 Richard Guenther <rguenther@suse.de>
26987
26988 PR c/47939
26989 * c-decl.c (grokdeclarator): Drop to the main variant only
26990 for array types. Drop flag_gen_aux_info check.
26991
26992 2011-03-21 Richard Guenther <rguenther@suse.de>
26993
26994 PR translation/47911
26995 * params.def (lto-partitions): Fix typo.
26996 (lto-min-partition): Fix wording.
26997
26998 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
26999
27000 * config/rs6000/t-freebsd: Remove duplication from file.
27001
27002 2011-03-21 Richard Guenther <rguenther@suse.de>
27003
27004 PR middle-end/47661
27005 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
27006
27007 2011-03-21 Richard Guenther <rguenther@suse.de>
27008
27009 PR lto/48210
27010 * params.def (lto-partitions): Require at least 1 partition.
27011
27012 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27013
27014 * gthr-solaris.h: Remove.
27015 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
27016 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
27017 (LIB_SPEC): Likewise.
27018 * config/sol2.opt (threads): Remove.
27019 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
27020 (sparc*-*-solaris2*): Likewise.
27021 * configure.ac (enable_threads): Enable solaris support.
27022 * configure: Regenerate.
27023 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
27024 * doc/install.texi (Configuration, --enable-threads=lib): Remove
27025 solaris.
27026
27027 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27028
27029 * config.gcc: Obsolete *-*-solaris2.8*.
27030 * doc/install.texi (Specific, *-*-solaris2*): Document it.
27031
27032 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27033
27034 PR bootstrap/48135
27035 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
27036 reference. Solaris 8 perl works.
27037
27038 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27039
27040 PR bootstrap/48135
27041 * doc/install.texi (Prerequisites): Move jar etc. up.
27042 Explain support library version requirements.
27043
27044 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27045
27046 PR bootstrap/48135
27047 * doc/install.texi (Prerequisites): Move Perl to build
27048 requirements. Always necessary on Solaris 2 with Sun ld.
27049
27050 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27051
27052 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
27053 binutils 2.21.
27054 (Specific, i?86-*-solaris2.[89]): Likewise.
27055 (Specific, i?86-*-solaris2.10): Likewise.
27056 (Specific, mips-sgi-irix6): Likewise.
27057 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
27058 Update for binutils 2.21.
27059
27060 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27061
27062 * configure.ac (gcc_cv_lto_plugin): Fix typo.
27063 Allow -fuse-linker-plugin for non-default plugin linker.
27064 * configure: Regenerate.
27065
27066 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
27067
27068 PR bootstrap/48167
27069 * gengtype.c (files_rules): Added rule for cp/parser.h.
27070
27071 2011-03-21 Jakub Jelinek <jakub@redhat.com>
27072
27073 PR target/48213
27074 * config/s390/s390.c (s390_delegitimize_address): Don't call
27075 lowpart_subreg if orig_x has BLKmode.
27076
27077 2011-03-21 Kai Tietz <ktietz@redhat.com>
27078
27079 PR target/12171
27080 * doc/plugins.texi: Adjust documentation for plugin register_callback.
27081 * tree.h (attribute_spec): Add new member affects_type_identity.
27082 * attribs.c (empty_attribute_table): Adjust attribute_spec
27083 initializers.
27084 * config/alpha/alpha.c: Likewise.
27085 * config/arc/arc.c: Likewise.
27086 * config/arm/arm.c: Likewise.
27087 * config/avr/avr.c: Likewise.
27088 * config/bfin/bfin.c: Likewise.
27089 * config/crx/crx.c: Likewise.
27090 * config/darwin.h: Likewise.
27091 * config/h8300/h8300.c: Likewise.
27092 * config/i386/cygming.h: Likewise.
27093 * config/i386/i386.c: Likewise.
27094 * config/ia64/ia64.c: Likewise.
27095 * config/m32c/m32c.c: Likewise.
27096 * config/m32r/m32r.c: Likewise.
27097 * config/m68hc11/m68hc11.c: Likewise.
27098 * config/m68k/m68k.c: Likewise.
27099 * config/mcore/mcore.c: Likewise.
27100 * config/mep/mep.c: Likewise.
27101 * config/microblaze/microblaze.c: Likewise.
27102 * config/mips/mips.c: Likewise.
27103 * config/rs6000/rs6000.c: Likewise.
27104 * config/rx/rx.c: Likewise.
27105 * config/sh/sh.c: Likewise.
27106 * config/sol2.h: Likewise.
27107 * config/sparc/sparc.c: Likewise.
27108 * config/spu/spu.c: Likewise.
27109 * config/stormy16/stormy16.c: Likewise.
27110 * config/v850/v850.c: Likewise.
27111
27112 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
27113
27114 * simplify-rtx.c (simplify_binary_operation_1): Handle
27115 (xor (and A B) C) case when B and C are both constants.
27116
27117 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
27118
27119 * tree-dfa.c (add_referenced_var): Fix typo in comment.
27120
27121 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
27122
27123 PR bootstrap/48168
27124 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
27125
27126 2011-03-20 Jakub Jelinek <jakub@redhat.com>
27127
27128 PR rtl-optimization/48156
27129 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
27130 assume df and df_lr are not NULL.
27131
27132 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
27133
27134 PR debug/48023
27135 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
27136 between a call and its CALL_ARG_LOCATION note.
27137
27138 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
27139
27140 PR debug/48178
27141 * config/sh/sh.c (find_barrier): Don't emit a constant pool
27142 between a call and its corresponding CALL_ARG_LOCATION note.
27143
27144 2011-03-19 Anatoly Sokolov <aesok@post.ru>
27145
27146 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
27147 instead of loop. Use HARD_REGISTER_NUM_P predicate.
27148 * haifa-sched.c (setup_ref_regs): Ditto.
27149 * caller-save.c (add_used_regs_1): Ditto.
27150 * dse.c (look_for_hardregs): Ditto.
27151 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
27152 * sched-rgn.c (check_live_1): Ditto.
27153
27154 2011-03-18 Joseph Myers <joseph@codesourcery.com>
27155
27156 * c-decl.c (diagnose_mismatched_decls): Give an error for
27157 redefining a typedef with variably modified type.
27158
27159 2011-03-18 Joseph Myers <joseph@codesourcery.com>
27160
27161 * c-decl.c (grokfield): Don't allow typedefs for structures or
27162 unions with no tag by default.
27163 * doc/extend.texi (Unnamed Fields): Update.
27164
27165 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
27166
27167 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
27168 Rewrite using indirect functions.
27169 (lwp_slwpcb): Ditto.
27170 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
27171 (avx_vinsertf128<mode>): Ditto.
27172
27173 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27174
27175 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
27176 unspecs.
27177
27178 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27179
27180 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
27181 splitting between a call and its corresponding CALL_ARG_LOCATION note.
27182
27183 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
27184
27185 PR rtl-optimization/48170
27186 * gcse.c (hoist_code): Remove bogus asserts.
27187
27188 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
27189
27190 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
27191 computation for prologue/epilogue.
27192
27193 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27194
27195 * Makefile.in (check-consistency): Remove.
27196
27197 2011-03-18 Jakub Jelinek <jakub@redhat.com>
27198
27199 PR debug/48176
27200 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
27201 arange_table_in_use is 0, but either text_section_used or
27202 cold_text_section_used is true. Don't call it if
27203 !info_section_emitted.
27204
27205 2011-03-18 Anatoly Sokolov <aesok@post.ru>
27206
27207 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
27208 FUNCTION_VALUE_REGNO_P): Remove.
27209 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
27210 Remove.
27211 * config/avr/avr.c (avr_ret_register): Make static inline.
27212 (avr_function_value_regno_p): New function.
27213 (avr_libcall_value): Make static. Add 'func' argument.
27214 (avr_function_value): Make static. Rename 'func' argument to
27215 'fn_decl_or_type', forward it to avr_libcall_value. Call
27216 avr_ret_register function instead of RET_REGISTER macro.
27217 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
27218
27219 2011-03-18 Jason Merrill <jason@redhat.com>
27220
27221 PR c++/23372
27222 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
27223
27224 2011-03-18 Richard Guenther <rguenther@suse.de>
27225
27226 * doc/install.texi (--enable-gold): Remove.
27227 (--with-plugin-ld): Document.
27228 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
27229
27230 2011-03-18 Andrew Pinski <pinskia@gmail.com>
27231
27232 PR middle-end/47790
27233 * expr.c (optimize_bitfield_assignment_op): Revamp to work
27234 again after expansion changes.
27235
27236 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
27237
27238 * combine.c (try_combine): Do simplification only call of
27239 subst() on i2 even when i1 is present. Update comments.
27240
27241 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
27242
27243 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
27244 and UNSPEC_PCREL_SYMOFF.
27245
27246 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27247
27248 * config/s390/s390.md: Use define_c_enum for the unspec constant
27249 definitions.
27250
27251 2011-03-18 Richard Henderson <rth@redhat.com>
27252 Jakub Jelinek <jakub@redhat.com>
27253
27254 PR bootstrap/48161
27255 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
27256 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
27257
27258 2011-03-17 Anatoly Sokolov <aesok@post.ru>
27259
27260 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
27261 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
27262 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
27263 Change return type to bool.
27264 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
27265
27266 2011-03-17 Jakub Jelinek <jakub@redhat.com>
27267
27268 PR debug/48163
27269 * var-tracking.c (prepare_call_arguments): If CALL target
27270 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
27271 pc instead of looking it up using cselib_lookup and use
27272 Pmode for it if x has VOIDmode.
27273 * dwarf2out.c (gen_subprogram_die): If also both first and
27274 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
27275
27276 PR debug/48163
27277 * function.c (assign_parms): For data.passed_pointer parms
27278 use MEM of data.entry_parm instead of data.entry_parm itself
27279 as DECL_INCOMING_RTL.
27280 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
27281 also when passed and declared mode is the same, DECL_RTL
27282 is a MEM with pseudo as address and DECL_INCOMING_RTL is
27283 a MEM too.
27284
27285 2011-03-16 Jeff Law <law@redhat.com>
27286
27287 PR rtl-optimization/37273
27288 * ira-costs.c (scan_one_insn): Detect constants living in memory and
27289 handle them like argument loads from stack slots. Do not double
27290 count memory for memory constants and argument loads from stack slots.
27291
27292 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
27293
27294 PR debug/48160
27295 * var-tracking.c (prepare_call_arguments): Check SUBREG.
27296
27297 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
27298
27299 PR target/48171
27300 * config/i386/i386.opt: Add Save to -mavx and -mfma.
27301
27302 2011-03-17 Jakub Jelinek <jakub@redhat.com>
27303
27304 PR bootstrap/48153
27305 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
27306 if dwarf_strict.
27307 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
27308 Clear call_arg_locations and call_arg_loc_last always.
27309
27310 PR middle-end/48152
27311 * var-tracking.c (prepare_call_arguments): If argument needs to be
27312 passed by reference, adjust argtype and mode.
27313
27314 2011-03-17 Richard Guenther <rguenther@suse.de>
27315
27316 PR middle-end/48134
27317 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
27318 a value make sure to fold the statement.
27319
27320 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
27321
27322 PR target/43872
27323 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
27324 return condition with !cfun->calls_alloca.
27325
27326 2011-03-17 Richard Guenther <rguenther@suse.de>
27327
27328 PR bootstrap/48148
27329 * lto-cgraph.c (input_overwrite_node): Clear the abstract
27330 origin for decls in other ltrans units.
27331 (input_varpool_node): Likewise.
27332
27333 2011-03-17 Richard Guenther <rguenther@suse.de>
27334
27335 PR middle-end/48165
27336 * tree-object-size.c (compute_object_offset): Properly return
27337 the offset operand of MEM_REFs as sizetype.
27338
27339 2011-03-17 Jakub Jelinek <jakub@redhat.com>
27340
27341 PR rtl-optimization/48141
27342 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
27343 * dse.c: Include params.h.
27344 (active_local_stores_len): New variable.
27345 (add_wild_read, dse_step1): Clear it when setting active_local_stores
27346 to NULL.
27347 (record_store, check_mem_read_rtx): Decrease it when removing
27348 from the chain.
27349 (scan_insn): Likewise. Increase it when adding to chain, if it
27350 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
27351 set active_local_stores to NULL before the addition.
27352 * Makefile.in (dse.o): Depend on $(PARAMS_H).
27353
27354 PR rtl-optimization/48141
27355 * dse.c (record_store): If no positions are needed in an insn
27356 that cannot be deleted, at least unchain it from active_local_stores.
27357
27358 2011-03-16 Dodji Seketeli <dodji@redhat.com>
27359
27360 PR debug/47510
27361 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
27362 (lookup_type_die_strip_naming_typedef): ... here.
27363 (get_context_die): Use it.
27364 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
27365 the anonymous struct named by the naming typedef.
27366
27367 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
27368
27369 PR target/48154
27370 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
27371 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
27372
27373 2011-03-16 Jeff Law <law@redhat.com>
27374
27375 * tree-vrp.c (identify_jump_threads): Slightly simplify type
27376 check for operands of conditional. Allow type to be a pointer.
27377
27378 2011-03-16 Richard Guenther <rguenther@suse.de>
27379
27380 PR tree-optimization/48149
27381 * fold-const.c (fold_binary_loc): Fold
27382 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
27383
27384 2011-03-16 Richard Guenther <rguenther@suse.de>
27385
27386 PR tree-optimization/26134
27387 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
27388 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
27389 (non_rewritable_mem_ref_base): Handle complex type component
27390 accesses, constrain offsets for vector and complex extracts
27391 more properly.
27392
27393 2011-03-16 Richard Guenther <rguenther@suse.de>
27394
27395 PR tree-optimization/48146
27396 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
27397 operands avoiding the need for renaming.
27398
27399 2011-03-16 Richard Guenther <rguenther@suse.de>
27400
27401 * gimple-fold.c (maybe_fold_reference): Open-code relevant
27402 constant folding. Move MEM_REF canonicalization first.
27403 Rely on fold_const_aggregate_ref for initializer folding.
27404 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
27405
27406 2011-03-16 Jakub Jelinek <jakub@redhat.com>
27407
27408 PR middle-end/48136
27409 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
27410 arg0/arg1 or their arguments are always fold converted to matching
27411 types.
27412
27413 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
27414 to nargs.
27415
27416 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27417
27418 PR lto/46944
27419 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
27420 Handle in-tree gold.
27421 (ld_vers): Extract binutils version for gold.
27422 (gcc_cv_ld_hidden): Handle gold here.
27423 (gcc_cv_lto_plugin): Determine level of linker plugin support.
27424 * configure: Regenerate.
27425 * config.in: Regenerate.
27426 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
27427 -fuse-linker-plugin otherwise.
27428 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
27429 (LINK_COMMAND_SPEC): Use it.
27430 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
27431
27432 2011-03-16 Jakub Jelinek <jakub@redhat.com>
27433
27434 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
27435 * calls.c: Remove debug.h include.
27436 (emit_call_1): Don't call virtual_call_token debug hook.
27437 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
27438 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
27439 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
27440 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
27441 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
27442 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
27443 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
27444 dwarf2out_virtual_call): Remove.
27445 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
27446 copy_call_info and virtual_call hooks.
27447 (dwarf2out_init): Don't initialize vcall_insn_table,
27448 debug_dcall_section and debug_vcall_section.
27449 (prune_unused_types): Don't mark nodes from dcall_table.
27450 (dwarf2out_finish): Don't output dcall or vcall tables.
27451 * final.c (final_scan_insn): Don't call direct_call or
27452 virtual_call debug hooks.
27453 * debug.h (struct gcc_debug_hooks): Remove direct_call,
27454 virtual_call_token, copy_call_info and virtual_call hooks.
27455 (debug_nothing_uid): Remove prototype.
27456 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
27457 copy_call_info and virtual_call hooks.
27458 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
27459 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
27460 * debug.c (do_nothing_debug_hooks): Likewise.
27461 (debug_nothing_uid): Remove.
27462 * doc/invoke.texi (-fenable-icf-debug): Remove.
27463 * common.opt (-fenable-icf-debug): Likewise.
27464
27465 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
27466 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
27467 call's MEM. Handle functions returning aggregate through a hidden
27468 first pointer. For virtual calls add clobbered pc to call arguments
27469 chain.
27470 * dwarf2out.c (gen_subprogram_die): Emit
27471 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
27472 can't be emitted.
27473
27474 PR debug/45882
27475 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
27476 * rtl.h (ENTRY_VALUE_EXP): Define.
27477 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
27478 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
27479 * print-rtl.c (print_rtx): Likewise.
27480 * gengtype.c (adjust_field_rtx_def): Likewise.
27481 * var-tracking.c (vt_add_function_parameter): Adjust
27482 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
27483 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
27484 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
27485 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
27486 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
27487
27488 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
27489 Call var_location debug hook even on CALL_INSNs.
27490 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
27491 * rtl.def (ENTRY_VALUE): New.
27492 * dwarf2out.c: Include cfglayout.h.
27493 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
27494 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
27495 (struct call_arg_loc_node): New type.
27496 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
27497 tail_call_site_count): New variables.
27498 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
27499 DW_TAG_GNU_call_site_parameter.
27500 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
27501 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
27502 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
27503 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
27504 and DW_AT_GNU_all_source_call_sites.
27505 (mem_loc_descriptor): Handle ENTRY_VALUE.
27506 (add_src_coords_attributes): Don't add enything if
27507 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
27508 (dwarf2out_abstract_function): Save and clear call_arg_location,
27509 call_site_count and tail_call_site_count around dwarf2out_decl call.
27510 (gen_call_site_die): New function.
27511 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
27512 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
27513 (dwarf2out_function_decl): Clear call_arg_locations,
27514 call_arg_loc_last, set call_site_count and tail_call_site_count
27515 to -1 and free block_map.
27516 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
27517 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
27518 followed by any real instructions.
27519 (dwarf2out_begin_function): Set call_site_count and
27520 tail_call_site_count to 0.
27521 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
27522 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
27523 attempt to force a DIE for it and worst case remove the attribute.
27524 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
27525 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
27526 the decl itself.
27527 * var-tracking.c: Include tm_p.h.
27528 (vt_stack_adjustments): For calls call note_register_arguments.
27529 (argument_reg_set): New variable.
27530 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
27531 ensure the VALUE is resolved.
27532 (call_arguments): New variable.
27533 (prepare_call_arguments): New function.
27534 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
27535 (struct expand_loc_callback_data): Add ignore_cur_loc field.
27536 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
27537 always use the best expression.
27538 (vt_expand_loc): Add ignore_cur_loc argument.
27539 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
27540 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
27541 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
27542 note for all calls.
27543 (vt_add_function_parameter): Use cselib_lookup_from_insn.
27544 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
27545 argument. Don't call cselib_preserve_only_values and
27546 cselib_reset_table.
27547 (note_register_arguments): New function.
27548 (vt_initialize): Compute argument_reg_set. Call
27549 vt_add_function_parameters before processing basic blocks instead of
27550 afterwards. For calls call prepare_call_arguments before calling
27551 cselib_process_insn.
27552 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
27553 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
27554 (var-tracking.o): Depend on $(TM_P_H).
27555 * cfglayout.h (insn_scope): New prototype.
27556 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
27557 * cfglayout.c (insn_scope): No longer static.
27558 * insn-notes.def (CALL_ARG_LOCATION): New.
27559 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
27560 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
27561 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
27562 nothing for DECL_EXTERNAL BLOCK_VARS.
27563
27564 2011-03-16 Alan Modra <amodra@gmail.com>
27565
27566 PR target/45844
27567 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
27568 create invalid offset address for vsx splat insn.
27569 * config/rs6000/predicates.md (splat_input_operand): New.
27570 * config/rs6000/vsx.md (vsx_splat_*): Use it.
27571
27572 2011-03-15 Xinliang David Li <davidxl@google.com>
27573
27574 PR c/47837
27575 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
27576 (normalize_preds): New function.
27577 (is_use_properly_guarded): Normalize def predicates.
27578
27579 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
27580
27581 PR target/46788
27582 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
27583 in the output template.
27584
27585 2011-03-15 Richard Guenther <rguenther@suse.de>
27586
27587 PR middle-end/47650
27588 * tree-pretty-print.c (dump_function_declaration): Properly
27589 dump unprototyped and varargs function types.
27590
27591 2011-03-15 Richard Guenther <rguenther@suse.de>
27592
27593 PR tree-optimization/13954
27594 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
27595 and friends.
27596
27597 2011-03-15 Richard Guenther <rguenther@suse.de>
27598
27599 PR tree-optimization/48037
27600 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
27601 selects into BIT_FIELD_REFs.
27602 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
27603 vector select.
27604
27605 2011-03-15 Jakub Jelinek <jakub@redhat.com>
27606
27607 PR tree-optimization/48129
27608 * builtins.c (fold_builtin_snprintf): Convert to type of
27609 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
27610 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
27611
27612 2011-03-15 Richard Guenther <rguenther@suse.de>
27613
27614 PR tree-optimization/41490
27615 * tree-ssa-dce.c (propagate_necessity): Handle returns without
27616 value but with VUSE.
27617 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
27618 return statements.
27619 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
27620 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
27621 * tree-tailcall.c (find_tail_calls): Ignore returns.
27622
27623 2011-03-15 Richard Guenther <rguenther@suse.de>
27624
27625 PR middle-end/48031
27626 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
27627 or variable-indexed array accesses when in gimple form.
27628
27629 2011-03-15 Richard Guenther <rguenther@suse.de>
27630
27631 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
27632
27633 2011-03-15 Alan Modra <amodra@gmail.com>
27634
27635 PR target/48032
27636 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
27637 presume symbol_refs without a symbol_ref_decl are suitably
27638 aligned, nor other trees we may see here. Handle anchor symbols.
27639 (legitimate_constant_pool_address_p): Comment. Add mode param.
27640 Check cmodel=medium addresses. Adjust all calls.
27641 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
27642 creating cmodel=medium optimized access to locals.
27643 * config/rs6000/constraints.md (R): Pass QImode to
27644 legitimate_constant_pool_address_p.
27645 * config/rs6000/predicates.md (input_operand): Pass mode to
27646 legitimate_constant_pool_address_p.
27647 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
27648 Update prototype.
27649
27650 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
27651
27652 PR target/48053
27653 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
27654 64-bit constants being loaded into registers other than GPRs such
27655 as loading 0 into a VSX register.
27656
27657 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27658
27659 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
27660
27661 2011-03-14 Jakub Jelinek <jakub@redhat.com>
27662
27663 PR middle-end/47917
27664 * builtins.c (fold_builtin_snprintf): New function.
27665 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
27666 (fold_builtin_4): Likewise.
27667
27668 PR middle-end/38878
27669 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
27670 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
27671 and C - X == X also strip nops from +/-/p+ operand.
27672 When optimizing -X == C, fold C to arg0's type.
27673
27674 PR debug/47946
27675 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
27676 emit it as add_AT_int instead of add_AT_unsigned.
27677
27678 2011-03-14 Tom Tromey <tromey@redhat.com>
27679
27680 * unwind-dw2.c: Include sys/sdt.h if it exists.
27681 (_Unwind_DebugHook): Use STAP_PROBE2.
27682 * config.in, configure: Rebuild.
27683 * configure.ac: Check for sys/sdt.h.
27684
27685 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
27686
27687 * config/i386/i386.md (ROUND_FLOOR): New constant.
27688 (ROUND_CEIL): Ditto.
27689 (ROUND_TRUNC): Ditto.
27690 (ROUND_MXCSR): Ditto.
27691 (ROUND_NO_EXC): Ditto.
27692 (rint<mode>2): Use new defines instead of numerical constants.
27693 (floor<mode>2): Ditto.
27694 (ceil<mode>2): Ditto.
27695 (btrunc<mode>2): Ditto.
27696 * config/i386/i386-builtin-types.def: Define ROUND function type
27697 aliases.
27698 * config/i386/i386.c (enum ix86_builtins): Add
27699 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
27700 (struct builtin_description): Add
27701 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
27702 (ix86_expand_sse_round): New static function.
27703 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
27704 function types.
27705 (ix86_builtin_vectorized_function): Handle
27706 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
27707
27708 2011-03-14 Tom Tromey <tromey@redhat.com>
27709
27710 * c-parser.c (c_parser_asm_string_literal): Clear
27711 warn_overlength_strings.
27712
27713 2011-03-14 Tom Tromey <tromey@redhat.com>
27714
27715 * c-parser.c (disable_extension_diagnostics): Save
27716 warn_overlength_strings.
27717 (restore_extension_diagnostics): Restore warn_overlength_strings.
27718
27719 2011-03-14 Jakub Jelinek <jakub@redhat.com>
27720
27721 * BASE-VER: Change to 4.7.0.
27722
27723 2011-03-14 Richard Guenther <rguenther@suse.de>
27724
27725 PR middle-end/48098
27726 * tree.c (build_vector_from_val): Adjust assert to requirements
27727 and reality.
27728
27729 2011-03-14 Jakub Jelinek <jakub@redhat.com>
27730
27731 PR bootstrap/48102
27732 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
27733
27734 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
27735
27736 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
27737 terms of target_flags_explicit. Adjust copyright year.
27738
27739 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
27740 * config/rs6000/t-freebsd: New file. Add override for
27741 LIB2FUNCS_EXTRA.
27742
27743 2011-03-13 Chris Demetriou <cgd@google.com>
27744
27745 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
27746 (-fno-diagnostics-show-option): this, to reflect current default.
27747 (-Werror=): Update text about -fno-diagnostics-show-option.
27748
27749 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
27750
27751 PR target/48053
27752 * config/rs6000/predicates.md (easy_vector_constant_add_self,
27753 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
27754 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
27755 mode is not V2DImode or V2DFmode.
27756 (vspltis_constant): Do not handle V2DImode and V2DFmode.
27757 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
27758 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
27759 registers to 0.
27760 (movdi_internal64): Likewise.
27761
27762 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
27763
27764 PR tree-optimization/47127
27765 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
27766 parameter.
27767 (set_cloog_options): Same.
27768 (scop_to_clast): Same.
27769 (print_clast_stmt): Do not call cloog_state_malloc and
27770 cloog_state_free.
27771 (print_generated_program): Same.
27772 (gloog): Same.
27773 * graphite-clast-to-gimple.h (cloog_state): Declared.
27774 (scop_to_clast): Adjust declaration.
27775 * graphite.c (cloog_state): Defined here.
27776 (graphite_initialize): Call cloog_state_malloc.
27777 (graphite_finalize): Call cloog_state_free.
27778
27779 2011-03-11 Jason Merrill <jason@redhat.com>
27780
27781 * attribs.c (lookup_attribute_spec): Take const_tree.
27782 * tree.h: Adjust.
27783
27784 2011-03-11 Joseph Myers <joseph@codesourcery.com>
27785
27786 * config/sparc/sparc.c (sparc_option_override): Use
27787 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
27788
27789 2011-03-11 Richard Guenther <rguenther@suse.de>
27790
27791 PR tree-optimization/48067
27792 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
27793 multiplication result will be only used once on the target
27794 stmt.
27795
27796 2011-03-11 Richard Guenther <rguenther@suse.de>
27797
27798 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
27799
27800 2011-03-11 Richard Guenther <rguenther@suse.de>
27801
27802 PR lto/48073
27803 * tree.c (find_decls_types_r): Do not walk types only reachable
27804 from IDENTIFIER_NODEs.
27805
27806 2011-03-11 Jakub Jelinek <jakub@redhat.com>
27807
27808 PR middle-end/48044
27809 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
27810 all vnode->force_output nodes as needed.
27811
27812 2011-03-11 Jason Merrill <jason@redhat.com>
27813
27814 PR c++/48069
27815 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
27816 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
27817
27818 2011-03-11 Martin Jambor <mjambor@suse.cz>
27819
27820 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
27821 cgraph_node.
27822
27823 2011-03-11 Jakub Jelinek <jakub@redhat.com>
27824
27825 PR tree-optimization/48063
27826 * ipa-inline.c (cgraph_decide_inlining): Don't try to
27827 inline functions called once if !tree_can_inline_p (node->callers).
27828
27829 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
27830
27831 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
27832 extra_objs.
27833 * config/score/score3.c: Delete.
27834 * config/score/score3.h: Delete.
27835 * config/score/mul-div.S: Delete.
27836 * config/score/sfp-machine.h: Add new file.
27837 * config/score/constraints.md: Add new file.
27838 * config/score/t-score-softfp: Add new file.
27839 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
27840 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
27841 (score7_extra_constraint): Delete.
27842 (score7_option_override): Remove unused code.
27843 * config/score/score.c: Remove score3 and score5 define and code.
27844 * config/score/score.h: Remove score3 and score5 define and code.
27845 * config/score/score.md: Remove score3 template and unusual insn.
27846 * config/score/score.opt: Remove score3 and score5 options.
27847
27848 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27849
27850 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
27851 when _HPUX_SOURCE is defined.
27852 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
27853
27854 2011-03-10 Jason Merrill <jason@redhat.com>
27855
27856 PR c++/48029
27857 * stor-layout.c (layout_type): Don't set structural equality
27858 on arrays of incomplete type.
27859 * tree.c (type_hash_eq): Handle comparing them properly.
27860
27861 2011-03-10 Jakub Jelinek <jakub@redhat.com>
27862
27863 PR debug/48043
27864 * config/s390/s390.c (s390_delegitimize_address): Make sure the
27865 result mode matches original rtl mode.
27866
27867 2011-03-10 Nick Clifton <nickc@redhat.com>
27868
27869 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
27870 (andsi3, andsi3_flags): Fix timings for three operand alternative.
27871
27872 2011-03-09 Jakub Jelinek <jakub@redhat.com>
27873
27874 PR rtl-optimization/47866
27875 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
27876 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
27877 if target wasn't scalar.
27878 * function.c (assign_stack_temp_for_type): Assert that neither
27879 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
27880 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
27881 macro.
27882 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
27883
27884 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27885
27886 * config/s390/s390-protos.h (s390_label_align): New prototype.
27887 * config/s390/s390.c (s390_label_align): New function.
27888 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
27889
27890 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
27891
27892 PR target/47755
27893 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
27894 V2DI/V2DF constants. Only all 0's or all 1's are easy.
27895 (output_vec_const_move): Ditto.
27896
27897 2011-03-08 Anatoly Sokolov <aesok@post.ru>
27898
27899 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
27900 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
27901 * config/mips/mips.c (mips_preferred_reload_class): Make static.
27902 Change 'rclass' argument and result type to reg_class_t.
27903 (TARGET_PREFERRED_RELOAD_CLASS): Define.
27904
27905 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
27906
27907 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
27908 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
27909 (TARGET_MEMORY_MOVE_COST): Define.
27910 (avr_register_move_cost, avr_memory_move_cost): New Functions.
27911
27912 2011-03-08 Jakub Jelinek <jakub@redhat.com>
27913
27914 PR debug/47881
27915 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
27916 removed anything.
27917
27918 PR tree-optimization/48022
27919 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
27920 for EQ/NE_EXPR.
27921
27922 2011-03-07 Jakub Jelinek <jakub@redhat.com>
27923
27924 PR debug/47991
27925 * var-tracking.c (find_use_val): Return NULL for
27926 cui->sets && cui->store_p BLKmode MEMs.
27927
27928 2011-03-07 Anatoly Sokolov <aesok@post.ru>
27929
27930 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
27931 Remove.
27932 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
27933 xstormy16_print_operand_address): Remove.
27934 * config/stormy16/stormy16.c (xstormy16_print_operand,
27935 xstormy16_print_operand_address): Make static.
27936 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
27937
27938 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
27939
27940 PR target/47862
27941 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
27942 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
27943 before definition.
27944
27945 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
27946
27947 PR bootstrap/48000
27948 * cfgloopmanip.c (fix_bb_placements): Return immediately
27949 if FROM is BASE_LOOP's header.
27950
27951 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
27952
27953 * gimplify.c (gimplify_function_tree): Fix building calls
27954 to __builtin_return_address.
27955
27956 2011-03-07 Alan Modra <amodra@gmail.com>
27957
27958 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
27959 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
27960 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
27961 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
27962 return_mode args.
27963 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
27964 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
27965 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
27966 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
27967 * config/rs6000/rs6000.c
27968 (rs6000_elf_end_indicate_exec_stack): Rename to..
27969 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
27970 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
27971 (rs6000_file_start): ..here.
27972 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
27973 file scope variables.
27974 (call_ABI_of_interest): New function.
27975 (init_cumulative_args): Set above vars when function return value
27976 is a float, vector, or small struct.
27977 (rs6000_function_arg_advance_1): Likewise for function args.
27978 (rs6000_va_start): Set rs6000_passes_float if variable arg function
27979 references float args.
27980
27981 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
27982
27983 * doc/cfg.texi: Remove "See" before @ref.
27984 * doc/invoke.texi: Likewise.
27985
27986 2011-03-05 Jason Merrill <jason@redhat.com>
27987
27988 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
27989
27990 2011-03-05 Anthony Green <green@moxielogic.com>
27991
27992 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
27993
27994 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
27995
27996 PR rtl-optimization/47899
27997 * cfgloopmanip.c (fix_bb_placements): Fix first argument
27998 to flow_loop_nested_p when moving the loop upward.
27999
28000 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
28001
28002 PR target/47719
28003 * arm.md (movhi_insn_arch4): Accept any immediate constant.
28004
28005 2011-03-05 Jakub Jelinek <jakub@redhat.com>
28006
28007 PR tree-optimization/47967
28008 * ipa-cp.c (build_const_val): Return NULL instead of creating
28009 VIEW_CONVERT_EXPR for mismatching sizes.
28010 (ipcp_create_replace_map): Return NULL if build_const_val failed.
28011 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
28012 give up on versioning.
28013
28014 2011-03-05 Alan Modra <amodra@gmail.com>
28015
28016 PR target/47986
28017 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
28018 full cmodel medium/large lo_sum + high addresses.
28019
28020 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28021
28022 * config/s390/s390.c (s390_decompose_address): Reject non-literal
28023 pool references in UNSPEC_LTREL_OFFSET.
28024
28025 2011-03-04 Jan Hubicka <jh@suse.cz>
28026
28027 PR lto/47497
28028 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
28029 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
28030 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
28031 Add node pointers.
28032 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
28033 cgraph_add_thunk): Add node pointers.
28034 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
28035 associated to right node.
28036 (input_node): Update use of cgraph_same_body_alias
28037 and cgraph_add_thunk.
28038
28039 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
28040
28041 * config/i386/i386.opt (mprefer-avx128): New flag.
28042 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
28043 modes when the flag -mprefer-avx128 is on.
28044
28045 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
28046
28047 * dwarf2out.c (compare_loc_operands): Fix address handling.
28048
28049 2011-03-04 Alan Modra <amodra@gmail.com>
28050
28051 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
28052
28053 2011-03-04 Richard Guenther <rguenther@suse.de>
28054
28055 PR middle-end/47968
28056 * expmed.c (extract_bit_field_1): Prefer vector modes that
28057 vec_extract patterns can handle.
28058
28059 2011-03-04 Richard Guenther <rguenther@suse.de>
28060
28061 PR middle-end/47975
28062 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
28063
28064 2011-03-04 Richard Henderson <rth@redhat.com>
28065
28066 * explow.c (emit_stack_save): Remove 'after' parameter.
28067 (emit_stack_restore): Likewise.
28068 * expr.h: Update to match.
28069 * builtins.c, calls.c, stmt.c: Likewise.
28070 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
28071 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
28072 * function.c (expand_function_end): Insert the emit_stack_save
28073 sequence before parm_birth_insn instead of after.
28074
28075 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
28076
28077 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
28078 (ssse3_pmaddubsw128): Ditto.
28079 (ssse3_pmaddubsw): Ditto.
28080
28081 2011-03-03 Steve Ellcey <sje@cup.hp.com>
28082
28083 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
28084
28085 2011-03-03 Jakub Jelinek <jakub@redhat.com>
28086
28087 PR c/47963
28088 * gimplify.c (omp_add_variable): Only call omp_notice_variable
28089 on TYPE_SIZE_UNIT if it is a DECL.
28090
28091 PR debug/47283
28092 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
28093 first operand is not is_gimple_mem_ref_addr, try to fold it.
28094 If the operand still isn't is_gimple_mem_ref_addr, clear
28095 MEM_EXPR on op0.
28096
28097 2011-03-03 Richard Guenther <rguenther@suse.de>
28098
28099 PR middle-end/47283
28100 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
28101 match comment.
28102 (refs_may_alias_p_1): For release branches return true if
28103 we are confused by our input.
28104
28105 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28106
28107 * config/s390/s390.c (s390_function_value): Rename to ...
28108 (s390_function_and_libcall_value): ... this.
28109 (s390_function_value): New function.
28110 (s390_libcall_value): New function.
28111 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
28112 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
28113 target macro definitions.
28114 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
28115
28116 2011-03-02 Joseph Myers <joseph@codesourcery.com>
28117
28118 * config/i386/freebsd64.h (CC1_SPEC): Define.
28119 * config/i386/linux64.h (CC1_SPEC): Define.
28120 * config/i386/x86-64.h (CC1_SPEC): Don't define.
28121
28122 2011-03-02 Anatoly Sokolov <aesok@post.ru>
28123
28124 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
28125 Remove.
28126 * config/stormy16/stormy16.c: Include reload.h.
28127 (xstormy16_memory_move_cost): New function.
28128 (TARGET_MEMORY_MOVE_COST): Define.
28129
28130 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
28131
28132 PR rtl-optimization/47925
28133 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
28134 with side effects. Remove the more-specific check for volatile asms.
28135
28136 2011-03-02 Alan Modra <amodra@gmail.com>
28137
28138 PR target/47935
28139 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
28140 toc relative addresses for valid offsets.
28141
28142 2011-03-01 Richard Guenther <rguenther@suse.de>
28143
28144 PR tree-optimization/47890
28145 * tree-vect-loop.c (get_initial_def_for_induction): Set
28146 related stmt properly.
28147
28148 2011-03-01 Richard Guenther <rguenther@suse.de>
28149
28150 PR lto/47924
28151 * lto-streamer.c (lto_record_common_node): Also register
28152 the canonical type.
28153
28154 2011-03-01 Richard Guenther <rguenther@suse.de>
28155
28156 PR lto/46911
28157 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
28158 Do not stream DECL_ABSTRACT_ORIGIN.
28159 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
28160 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
28161 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
28162 Do not stream DECL_ABSTRACT_ORIGIN.
28163 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
28164 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
28165
28166 2011-02-28 Anatoly Sokolov <aesok@post.ru>
28167
28168 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
28169 FUNCTION_VALUE_REGNO_P): Remove.
28170 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
28171 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
28172 Add 'outgoing' argument.
28173 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
28174 function.
28175 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
28176 TARGET_FUNCTION_VALUE_REGNO_P): Define.
28177
28178 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
28179
28180 PR debug/28047
28181 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
28182 (lookup_filename): Likewise.
28183 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
28184
28185 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
28186 Jakub Jelinek <jakub@redhat.com>
28187
28188 PR middle-end/47893
28189 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
28190 (assign_stack_local_1): Change last argument type to int.
28191 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
28192 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
28193 don't record padding space into frame_space_list nor use those areas.
28194 (assign_stack_local): Adjust caller.
28195 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
28196 of assign_stack_local, pass 0 as last argument.
28197 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
28198 callers.
28199
28200 2011-02-28 Jakub Jelinek <jakub@redhat.com>
28201
28202 PR debug/47283
28203 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
28204 Use target address_mode and pointer_mode hooks instead of hardcoded
28205 Pmode and ptr_mode. Handle some simple cases of extending if
28206 POINTERS_EXTEND_UNSIGNED < 0.
28207 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
28208 Call convert_debug_memory_address.
28209 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
28210 convert_debug_memory_address.
28211
28212 PR middle-end/46790
28213 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
28214 * configure: Regenerated.
28215 * config.in: Regenerated.
28216 * varasm.c (default_function_section): Return NULL
28217 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
28218
28219 2011-02-28 Martin Jambor <mjambor@suse.cz>
28220
28221 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
28222 the description to match the printed values.
28223
28224 2011-02-28 Richard Guenther <rguenther@suse.de>
28225
28226 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
28227 of the copied scope tree.
28228
28229 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28230
28231 * doc/extend.texi (Function Attributes): Avoid deeply (and
28232 wrongly) nested tables.
28233
28234 2011-02-27 Jakub Jelinek <jakub@redhat.com>
28235
28236 PR middle-end/47903
28237 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
28238 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
28239 r isn't op0 nor op1.
28240
28241 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
28242
28243 * config/avr/avr.md: Remove magic comment for emacs.
28244
28245 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
28246
28247 PR target/45261
28248 * config/avr/avr.c (avr_option_override): Use error on bad options.
28249 (avr_help): New function.
28250 (TARGET_HELP): Define.
28251
28252 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
28253
28254 PR target/42240
28255 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
28256 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
28257
28258 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
28259
28260 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
28261 (ARM Options): Ditto.
28262 (i386 and x86-64 Options): Ditto.
28263 (RX Options): Ditto.
28264 (SPARC Options): Ditto.
28265
28266 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
28267
28268 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
28269 FreeBSD 6 and later. Generally use cpu generic.
28270
28271 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
28272
28273 * doc/cpp.texi: Update copyright years.
28274
28275 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
28276
28277 PR target/46898
28278 * config/lm32/lm32.md (ashrsi3): Added needed variable.
28279
28280 2011-02-25 Jon Beniston <jon@beniston.com>
28281
28282 PR target/46898
28283 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
28284 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
28285 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
28286 (lm32_block_move_inline): Add type cast to remove warning.
28287 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
28288 (gen_int_relational): Move declarations to start of function.
28289
28290 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
28291
28292 PR tree-optimization/45470
28293 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
28294 can throw internally only.
28295 * tree-vect-stmts.c (vectorizable_call): Likewise.
28296
28297 2011-02-24 Anatoly Sokolov <aesok@post.ru>
28298
28299 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
28300 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
28301 * config/stormy16/stormy16-protos.h
28302 (xstormy16_preferred_reload_class): Remove.
28303 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
28304 static. Change 'rclass' argument and return type to reg_class_t.
28305 (TARGET_PREFERRED_RELOAD_CLASS,
28306 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
28307
28308 2011-02-24 Richard Guenther <rguenther@suse.de>
28309
28310 * lto-streamer-in.c (input_bb): Do not find referenced vars
28311 in debug statements.
28312
28313 2011-02-23 Jason Merrill <jason@redhat.com>
28314
28315 * common.opt (fabi-version): Document v5 and v6.
28316
28317 2011-02-23 Richard Guenther <rguenther@suse.de>
28318
28319 PR tree-optimization/47849
28320 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
28321
28322 2011-02-23 Jie Zhang <jie@codesourcery.com>
28323
28324 * opts-common.c (decode_cmdline_option): Print empty string
28325 argument as "" in decoded->orig_option_with_args_text.
28326 * gcc.c (execute): Print empty string argument as ""
28327 in the verbose output.
28328 (do_spec_1): Keep empty string argument.
28329
28330 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
28331
28332 * config.gcc: Declare score-* and crx-* obsolete.
28333
28334 2011-02-23 Jie Zhang <jie@codesourcery.com>
28335
28336 PR rtl-optimization/47763
28337 * web.c (web_main): Ignore naked clobber when replacing register.
28338
28339 2011-02-22 Anatoly Sokolov <aesok@post.ru>
28340
28341 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
28342 Remove.
28343
28344 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
28345
28346 PR doc/47848
28347 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
28348
28349 2011-02-22 Mike Stump <mikestump@comcast.net>
28350
28351 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
28352 assembler.
28353 * configure: Regenerate.
28354
28355 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
28356
28357 PR rtl-optimization/46002
28358 * ira-color.c (update_copy_costs): Change class intersection
28359 test to reg_class_contents[] test of 'hard_regno'.
28360
28361 2011-02-21 Joseph Myers <joseph@codesourcery.com>
28362
28363 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
28364 than Driver option.
28365 * config/hpux11.opt (mt): Likewise.
28366 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
28367 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
28368 * config/vax/elf.opt (mno-asm-pic): Likewise.
28369 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
28370
28371 2011-02-21 Mike Stump <mikestump@comcast.net>
28372
28373 PR target/47822
28374 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
28375 tree so we can get save the type.
28376 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
28377 for CFString instead of trying to use past the end of the builtins.
28378 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
28379 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
28380 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
28381 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
28382 Rename to darwin_builtin_cfstring.
28383 (darwin_init_cfstring_builtins): Return the built type.
28384
28385 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
28386
28387 PR target/47840
28388 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
28389 (_mm256_insert_epi64): Use _mm_insert_epi64.
28390
28391 2011-02-21 Anatoly Sokolov <aesok@post.ru>
28392
28393 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28394 * config/stormy16/stormy16-protos.h
28395 (xstormy16_mode_dependent_address_p): Remove.
28396 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
28397 Make static. Change return type to bool. Change argument type to
28398 const_rtx. Remove dead code.
28399 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28400
28401 2011-02-21 Richard Guenther <rguenther@suse.de>
28402
28403 PR lto/47820
28404 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
28405 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
28406 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
28407 TUs context.
28408 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
28409 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
28410
28411 2011-02-20 Richard Guenther <rguenther@suse.de>
28412
28413 PR lto/47822
28414 * tree.c (free_lang_data_in_decl): Clean builtins from
28415 the TU decl BLOCK_VARS.
28416
28417 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
28418
28419 PR debug/47620
28420 PR debug/47630
28421 * haifa-sched.c (fix_tick_ready): Skip tick computation
28422 for debug insns.
28423
28424 2011-02-19 Richard Guenther <rguenther@suse.de>
28425
28426 PR lto/47647
28427 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
28428 Remove lazy BLOCK_VARS streaming.
28429 (lto_input_ts_block_tree_pointers): Likewise.
28430 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
28431
28432 2011-02-19 Joseph Myers <joseph@codesourcery.com>
28433
28434 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
28435
28436 2011-02-19 Joseph Myers <joseph@codesourcery.com>
28437
28438 * config/i386/biarch32.h, config/i386/mach.h,
28439 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
28440
28441 2011-02-19 Jakub Jelinek <jakub@redhat.com>
28442
28443 PR target/47800
28444 * config/i386/i386.md (peephole2 for shift and plus): Use
28445 operands[1] original mode in the first insn.
28446
28447 2011-02-18 Mike Stump <mikestump@comcast.net>
28448
28449 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
28450
28451 2011-02-18 Jan Hubicka <jh@suse.cz>
28452
28453 PR middle-end/47788
28454 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
28455 to zero when the function is not inlinable at all.
28456
28457 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28458
28459 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
28460 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
28461 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
28462 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
28463 * config/pa/t-pa64: Likewise.
28464 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
28465
28466 2011-02-18 Jakub Jelinek <jakub@redhat.com>
28467
28468 PR driver/47787
28469 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
28470
28471 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28472
28473 PR target/47792
28474 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
28475
28476 2011-02-18 Anatoly Sokolov <aesok@post.ru>
28477
28478 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
28479 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
28480 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
28481 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
28482 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
28483 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
28484 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
28485 m32r_load_postinc_p, m32r_store_preinc_predec_p,
28486 m32r_legitimate_address_p): New functions.
28487 * config/m32r/constraints.md (constraint "S"): Don't use
28488 STORE_PREINC_PREDEC_P.
28489 (constraint "U"): Don't use LOAD_POSTINC_P.
28490
28491 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
28492
28493 PR rtl-optimization/46178
28494 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
28495 compute ira_hard_regno_cover_class[].
28496
28497 2011-02-18 Richard Guenther <rguenther@suse.de>
28498
28499 PR lto/47798
28500 * lto-streamer.h (lto_global_var_decls): Declare.
28501 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
28502 statics for global var processing.
28503
28504 2011-02-18 Richard Guenther <rguenther@suse.de>
28505
28506 PR tree-optimization/47737
28507 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
28508 edge dominance check.
28509
28510 2011-02-18 Jakub Jelinek <jakub@redhat.com>
28511
28512 PR debug/47780
28513 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
28514 avoid invalid rtx sharing.
28515
28516 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
28517
28518 * doc/cpp.texi (Obsolete Features): Add background on the
28519 origin of assertions.
28520
28521 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
28522
28523 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
28524 objc_abi == 2.
28525 * config/darwin.c (output_objc_section_asm_op): Added support for
28526 ABI v1 and v2.
28527 (is_objc_metadata): New.
28528 (darwin_objc2_section): New.
28529 (darwin_objc1_section): New.
28530 (machopic_select_section): Added support for ABI v1 and v2.
28531 (darwin_emit_objc_zeroed): New.
28532 (darwin_output_aligned_bss): Detect objc metadata and treat it
28533 appropriately.
28534 (darwin_asm_output_aligned_decl_common): Same.
28535 (darwin_asm_output_aligned_decl_local): Same.
28536 * config/darwin-sections.def: Updated for ABI v1 and v2.
28537 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
28538 compiling Objective-C code for the NeXT runtime, default to using
28539 ABI version 0 for 32-bit, and version 2 for 64-bit.
28540
28541 2011-02-17 Joseph Myers <joseph@codesourcery.com>
28542
28543 * common.opt (optimize_fast): New Variable.
28544 * opts.c (default_options_optimization): Use opts->x_optimize_fast
28545 instead of local variable ofast.
28546
28547 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
28548
28549 * doc/invoke.texi (fobjc-abi-version): Documented.
28550 (fobjc-nilcheck): Documented.
28551 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
28552 version.
28553
28554 2011-02-17 Joseph Myers <joseph@codesourcery.com>
28555
28556 PR driver/47390
28557 * common.opt (export-dynamic): New Driver option.
28558 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
28559
28560 2011-02-17 Joseph Myers <joseph@codesourcery.com>
28561
28562 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
28563
28564 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
28565 Jan Hubicka <jh@suse.cz>
28566
28567 PR debug/47106
28568 PR debug/47402
28569 * cfgexpand.c (account_used_vars_for_block): Remove.
28570 (estimated_stack_frame_size): Use referenced vars.
28571 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
28572 that were referenced in the original function. Test src_fn
28573 rather than cfun. Drop redundant get_var_ann.
28574 (setup_one_parameter): Drop redundant get_var_ann.
28575 (declare_return_variable): Likewise.
28576 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
28577 (copy_arguments_for_versioning): Drop redundant get_var_ann.
28578 * ipa-inline.c (compute_inline_parameters): Do not compute
28579 disregard_inline_limits here.
28580 (compute_inlinable_for_current, pass_inlinable): New.
28581 (pass_inline_parameters): Require PROP_referenced_vars.
28582 * cgraphunit.c (cgraph_process_new_functions): Don't run
28583 compute_inline_parameters explicitly unless function is in SSA form.
28584 (cgraph_analyze_function): Set .disregard_inline_limits.
28585 * tree-sra.c (convert_callers): Compute inliner parameters
28586 only for functions already in SSA form.
28587
28588 2011-02-17 Joseph Myers <joseph@codesourcery.com>
28589
28590 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
28591 -mlittle-endian-data.
28592
28593 2011-02-17 Joseph Myers <joseph@codesourcery.com>
28594
28595 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
28596 -mno-fpu, not -fpu and -no-fpu.
28597 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
28598 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
28599
28600 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
28601
28602 PR target/43653
28603 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
28604 input reload with PLUS RTX.
28605
28606 2011-02-16 Joseph Myers <joseph@codesourcery.com>
28607
28608 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
28609 of InverseVar(MDMX).
28610
28611 2011-02-16 Joseph Myers <joseph@codesourcery.com>
28612
28613 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
28614 --m4-340.
28615
28616 2011-02-16 Joseph Myers <joseph@codesourcery.com>
28617
28618 * config/mn10300/mn10300.opt (mno-crt0): New.
28619
28620 2011-02-16 Joseph Myers <joseph@codesourcery.com>
28621
28622 * config/m68k/uclinux.opt (static-libc): New Driver option.
28623
28624 2011-02-16 Joseph Myers <joseph@codesourcery.com>
28625
28626 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
28627
28628 2011-02-16 Joseph Myers <joseph@codesourcery.com>
28629
28630 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
28631 %{muser-extend-enabled}.
28632
28633 2011-02-16 Richard Guenther <rguenther@suse.de>
28634
28635 PR tree-optimization/47738
28636 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
28637 the TODO from tree_predictive_commoning.
28638
28639 2011-02-15 Jeff Law <law@redhat.com>
28640
28641 Revert
28642 2011-01-25 Jeff Law <law@redhat.com>
28643
28644 PR rtl-optimization/37273
28645 * ira-costs.c (scan_one_insn): Detect constants living in memory and
28646 handle them like argument loads from stack slots. Do not double
28647 count memory for memory constants and argument loads from stack slots.
28648
28649 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
28650
28651 PR target/47755
28652 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
28653 mode for vector constants. Remove code that checks for TImode.
28654
28655 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
28656
28657 PR debug/47106
28658 PR debug/47402
28659 * cgraph.h (compute_inline_parameters): Return void.
28660 * ipa-inline.c (compute_inline_parameters): Adjust.
28661
28662 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
28663
28664 PR debug/47106
28665 PR debug/47402
28666 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
28667 rather than decl.
28668 * cfgexpand.c (estimated_stack_frame_size): Likewise.
28669 * ipa-inline.c (compute_inline_parameters): Adjust.
28670
28671 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
28672
28673 PR debug/47106
28674 PR debug/47402
28675 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
28676 Adjust all users. Pass FN to...
28677 * tree-flow-inline.h (first_referenced_var): ... this. Add
28678 fn argument.
28679 * ipa-struct-reorg.c: Adjust.
28680 * tree-dfa.c: Adjust.
28681 * tree-into-ssa.c: Adjust.
28682 * tree-sra.c: Adjust.
28683 * tree-ssa-alias.c: Adjust.
28684 * tree-ssa-live.c: Adjust.
28685 * tree-ssa.c: Adjust.
28686 * tree-ssanames.c: Adjust.
28687 * tree-tailcall.c: Adjust.
28688
28689 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
28690
28691 PR debug/47106
28692 PR debug/47402
28693 * tree-flow.h (referenced_var_lookup): Add fn parameter.
28694 Adjust all callers.
28695 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
28696 * tree-flow-inline.h: Adjust.
28697 * gimple-pretty-print.c: Adjust.
28698 * tree-into-ssa.c: Adjust.
28699 * tree-ssa.c: Adjust.
28700 * cfgexpand.c: Adjust.
28701
28702 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
28703
28704 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
28705 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28706 (EXTRA_CONSTRAINT): Delete.
28707 * config/iq2000/constraints.md: New file.
28708 * config/iq2000/iq2000.md: Include it.
28709 (define_insn ""): Delete.
28710 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
28711 unsupported constraint letters from patterns.
28712 (call_value, call_value_internal1): Likewise.
28713 (call_value_multiple_internal1): Likewise.
28714
28715 2011-02-15 Nick Clifton <nickc@redhat.com>
28716
28717 * config/mn10300/mn10300.c: Include tm-constrs.h.
28718 (struct liw_data): New data structure describing an LIW candidate
28719 instruction.
28720 (extract_bundle): Use struct liw_data. Allow small integer
28721 operands for some instructions.
28722 (check_liw_constraints): Use struct liw_data. Remove swapped
28723 parameter. Add comments describing the checks. Fix bug when
28724 assigning the source of liw1 to the source of liw2.
28725 (liw_candidate): Delete. Code moved into extract_bundle.
28726 (mn10300_bundle_liw): Use struct liw_data. Check constraints
28727 before swapping.
28728 * config/mn10300/predicates.md (liw_operand): New predicate.
28729 Allows registers and small integer constants.
28730 * config/mn10300/constraints.md (O): New constraint. Accetps
28731 integers in the range -8 to +7 inclusive.
28732 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
28733 for moving a small integer into a register. Give this alternative
28734 LIW attributes.
28735 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
28736 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
28737 using the J,K,L and M constraints,
28738 (liw): Remove SI mode on second operands to allow for HI and QI
28739 mode values.
28740 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
28741 instruction.
28742
28743 2011-02-15 Richard Guenther <rguenther@suse.de>
28744
28745 PR tree-optimization/47743
28746 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
28747 for a non-type-compatible VN lookup bail out.
28748
28749 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
28750
28751 * config/fr30/constraints.md: New file.
28752 * config/fr30/fr30.md: Include it.
28753 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
28754 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28755 (EXTRA_CONSTRAINT): Delete.
28756
28757 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
28758
28759 * config/frv/constraints.md: New file.
28760 * config/frv/predicates.md: Include it.
28761 * config/frv/frv.c (reg_class_from_letter): Delete.
28762 (frv_option_override): Don't initialize it.
28763 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
28764 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
28765 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
28766 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
28767 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
28768 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28769 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
28770 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
28771 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
28772 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
28773 (REG_CLASS_FROM_CONSTRAINT): Delete.
28774
28775 2011-02-15 Jakub Jelinek <jakub@redhat.com>
28776
28777 PR middle-end/47581
28778 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
28779 if frame size is 0 in a leaf function.
28780
28781 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28782
28783 PR pch/14940
28784 * config/alpha/host-osf.c: New file.
28785 * config/alpha/x-osf: New file.
28786 * config.host (alpha*-dec-osf*): Use it.
28787
28788 2011-02-14 Anatoly Sokolov <aesok@post.ru>
28789
28790 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28791 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
28792 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
28793 (rx_mode_dependent_address_p): ...this. Make static. Change argument
28794 type to const_rtx.
28795 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28796
28797 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
28798
28799 * config/stormy16/constraints.md: New file.
28800 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
28801 Use satisfies_constraint_Q and satisfies_constraint_R.
28802 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
28803 Delete.
28804 (xstormy16_legitiamte_address_p): Declare.
28805 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
28806 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28807 (EXTRA_CONSTRAINT): Delete.
28808 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
28809 Un-staticize.
28810 (xstormy16_extra_constraint_p): Delete.
28811
28812 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
28813
28814 PR tree-optimization/46494
28815 * loop-unroll.c (split_edge_and_insert): Adjust comment.
28816 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
28817 (pass_rtl_loop_done): Add TODO_verify_flow.
28818 * fwprop.c (pass_rtl_fwprop): Likewise.
28819 * modulo-sched.c (pass_sms): Likewise.
28820 * tree-ssa-dom.c (pass_dominator): Likewise.
28821 * tree-ssa-loop-ch.c (pass_ch): Likewise.
28822 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
28823 (pass_tree_loop_done): Likewise.
28824 * tree-ssa-pre.c (execute_pre): Likewise.
28825 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
28826 * tree-ssa-sink.c (pass_sink_code): Likewise.
28827 * tree-vrp.c (pass_vrp): Likewise.
28828
28829 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
28830
28831 * config/v850/constraints.md: New file.
28832 * config/v850/v850.md: Include it.
28833 * config/v850/predicates.md (reg_or_0_operand): Use
28834 satisfies_constraint_G.
28835 (special_symbolref_operand): Use satisfies_constraint_K.
28836 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
28837 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
28838 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
28839 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
28840 (EXTRA_CONSTRAINT): Delete.
28841 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
28842 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
28843 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
28844
28845 2011-02-14 Anatoly Sokolov <aesok@post.ru>
28846
28847 PR target/47696
28848 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
28849 description.
28850
28851 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
28852
28853 * config/mcore/constraints.md: New file.
28854 * config/mcore/mcore.md: Include it.
28855 * config/mcore/mcore.c (reg_class_from_letter): Delete.
28856 * config/mcore/mcore.h (reg_class_from_letter): Delete.
28857 (REG_CLASS_FROM_LETTER): Delete.
28858 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
28859 insn_const_int_ok_for_constraint.
28860 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
28861 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
28862 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28863 (EXTRA_CONSTRAINT): Delete.
28864
28865 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28866
28867 PR ada/41929
28868 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
28869 (IS_SIGHANDLER): Define.
28870 (sparc64_is_sighandler): New function, split off from
28871 sparc64_fallback_frame_state.
28872 (sparc_is_sighandler): New function, split off from
28873 sparc_fallback_frame_state.
28874 (sparc64_fallback_frame_state): Merge with ...
28875 (sparc_fallback_frame_state): ... this into ...
28876 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
28877 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
28878 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
28879 stack instead of hardcoded offsets.
28880
28881 2011-02-14 Andriy Gapon <avg@freebsd.org>
28882
28883 PR target/45808
28884 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
28885
28886 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28887
28888 * configure: Regenerate.
28889
28890 2011-02-12 Joseph Myers <joseph@codesourcery.com>
28891
28892 PR driver/45731
28893 * gcc.c (asm_options): Correct spec matching --target-help.
28894
28895 2011-02-12 Martin Jambor <mjambor@suse.cz>
28896
28897 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
28898 to gimple call error.
28899
28900 2011-02-12 Mike Stump <mikestump@comcast.net>
28901
28902 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
28903 comments in backslash regions.
28904
28905 2011-02-12 Mike Stump <mikestump@comcast.net>
28906 Jakub Jelinek <jakub@redhat.com>
28907 Iain Sandoe <iains@gcc.gnu.org>
28908
28909 PR target/47324
28910 * dwarf2out.c (output_cfa_loc): When required, apply the
28911 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
28912 (output_loc_sequence): Likewise.
28913 (output_loc_operands_raw): Likewise.
28914 (output_loc_sequence_raw): Likewise.
28915 (output_cfa_loc): Likewise.
28916 (output_loc_list): Suppress register number adjustment when
28917 calling output_loc_sequence()
28918 (output_die): Likewise.
28919
28920 2011-02-12 Anatoly Sokolov <aesok@post.ru>
28921
28922 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
28923 Remove macros.
28924 * config/xtensa/xtensa.c (xtensa_register_move_cost,
28925 xtensa_memory_move_cost): New functions.
28926 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
28927
28928 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
28929
28930 PR lto/47225
28931 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
28932 in the current directory.
28933 * configure: Rebuilt.
28934
28935 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
28936
28937 * config/darwin.c (darwin_override_options): Add a hunk missed
28938 from the commit of r168571. Trim comment line lengths and
28939 correct indents of the preceding block.
28940
28941 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
28942
28943 * gcc.c (driver_handle_option): Concatenate the argument to -F with
28944 the switch.
28945
28946 2011-02-11 Joseph Myers <joseph@codesourcery.com>
28947
28948 * common.opt (nostartfiles): New Driver option.
28949
28950 2011-02-11 Xinliang David Li <davidxl@google.com>
28951
28952 PR tree-optimization/47707
28953 * tree-chrec.c (convert_affine_scev): Keep type precision.
28954
28955 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
28956
28957 PR tree-optimization/47420
28958 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
28959
28960 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
28961
28962 PR rtl-optimization/47614
28963 * rtl.h (check_for_inc_dec): Declare.
28964 * dse.c (check_for_inc_dec): Externalize...
28965 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
28966 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
28967
28968 2011-02-11 Joseph Myers <joseph@codesourcery.com>
28969
28970 PR driver/47678
28971 * gcc.c (main): Do not compile inputs if there were errors in
28972 option handling.
28973 * opts-common.c (read_cmdline_option): Check for wrong language
28974 after other error checks.
28975
28976 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
28977
28978 * cgraph.c: Fix comment typos.
28979 * cgraph.h: Likewise.
28980 * cgraphunit.c: Likewise.
28981 * ipa-cp.c: Likewise.
28982 * ipa-inline.c: Likewise.
28983 * ipa-prop.c: Likewise.
28984 * ipa-pure-const.c: Likewise.
28985 * ipa-ref.c: Likewise.
28986 * ipa-reference.c: Likewise.
28987
28988 2011-02-11 Jakub Jelinek <jakub@redhat.com>
28989
28990 PR debug/47684
28991 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
28992
28993 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28994
28995 PR testsuite/47400
28996 * doc/sourcebuild.texi (Require Support): Document
28997 dg-require-ascii-locale.
28998
28999 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
29000
29001 * doc/lto.texi (Write summary): Fix missing parentheses.
29002
29003 2011-02-10 DJ Delorie <dj@redhat.com>
29004
29005 * config/m32c/m32c.c (m32c_option_override): Disable
29006 -fcombine-stack-adjustments until flag value tracking and compare
29007 optimization can be rewritten.
29008
29009 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
29010
29011 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
29012 PROCESSOR_POWER7.
29013 (PROCESSOR_DEFAULT64): Likewise.
29014
29015 2011-02-10 Richard Henderson <rth@redhat.com>
29016
29017 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
29018 change from 2011-02-03.
29019 * config/rx/rx.c (flags_from_code): Likewise.
29020 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
29021 is valid, n/pz otherwise.
29022 (rx_select_cc_mode): Return CCmode if Y is not zero.
29023
29024 2011-02-10 Richard Guenther <rguenther@suse.de>
29025
29026 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
29027
29028 2011-02-10 Richard Guenther <rguenther@suse.de>
29029
29030 PR tree-optimization/47677
29031 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
29032
29033 2011-02-10 Jakub Jelinek <jakub@redhat.com>
29034
29035 PR target/47665
29036 * combine.c (make_compound_operation): Only change shifts into
29037 multiplication for SCALAR_INT_MODE_P.
29038
29039 2011-02-10 Jie Zhang <jie@codesourcery.com>
29040
29041 PR testsuite/47622
29042 Revert
29043 2011-02-05 Jie Zhang <jie@codesourcery.com>
29044 PR debug/42631
29045 * web.c (entry_register): Don't clobber the number of the
29046 first uninitialized reference in used[].
29047
29048 2011-02-09 Richard Guenther <rguenther@suse.de>
29049
29050 PR tree-optimization/47664
29051 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
29052 all edges again.
29053
29054 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
29055
29056 PR target/46481
29057 PR target/47032
29058 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
29059 PROCESSOR_POWER7.
29060 (PROCESSOR_DEFAULT64): Same.
29061 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
29062
29063 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29064
29065 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
29066
29067 2011-02-09 Martin Jambor <mjambor@suse.cz>
29068
29069 PR middle-end/45505
29070 * tree-sra.c (struct access): New flags grp_scalar_read and
29071 grp_scalar_write. Changed description of assignment read and write
29072 flags.
29073 (dump_access): Dump new flags, reorder all of them.
29074 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
29075 to detect multiple scalar reads.
29076 (analyze_access_subtree): Use the new scalar read write flags instead
29077 of the old flags. Adjusted comments.
29078
29079 2011-02-08 DJ Delorie <dj@redhat.com>
29080
29081 PR target/47548
29082 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
29083 patterns.
29084
29085 2011-02-08 Joseph Myers <joseph@codesourcery.com>
29086
29087 * config/m68k/uclinux.opt: New.
29088 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
29089
29090 2011-02-08 Joseph Myers <joseph@codesourcery.com>
29091
29092 * config/cris/elf.opt (sim): New Driver option.
29093
29094 2011-02-08 Joseph Myers <joseph@codesourcery.com>
29095
29096 * config/xtensa/elf.opt: New.
29097 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
29098
29099 2011-02-08 Joseph Myers <joseph@codesourcery.com>
29100
29101 * config/vax/elf.opt: New.
29102 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
29103
29104 2011-02-08 Joseph Myers <joseph@codesourcery.com>
29105
29106 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
29107
29108 2011-02-08 Joseph Myers <joseph@codesourcery.com>
29109
29110 * config/gnu-user.opt: New.
29111 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
29112 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
29113 *-*-uclinux*): Use gnu-user.opt.
29114
29115 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
29116
29117 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
29118 * config/i386/gnu.h (CPP_SPEC): Likewise.
29119
29120 2011-02-08 Ian Lance Taylor <iant@google.com>
29121
29122 * common.opt (fcx-limited-range): Add SetByCombined flag.
29123 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
29124 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
29125 (fassociative-math, freciprocal-math): Likewise.
29126 (funsafe-math-optimizations): Likewise.
29127 * opth-gen.awk: Handle SetByCombined.
29128 * optc-gen.awk: Likewise.
29129 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
29130 (set_unsafe_math_optimizations_flags): Likewise.
29131 * doc/options.texi (Option properties): Document SetByCombined.
29132
29133 2011-02-08 Joseph Myers <joseph@codesourcery.com>
29134
29135 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
29136 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
29137 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
29138 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
29139 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
29140
29141 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
29142
29143 PR tree-optimization/46834
29144 PR tree-optimization/46994
29145 PR tree-optimization/46995
29146 * graphite-sese-to-poly.c (used_outside_reduction): New.
29147 (detect_commutative_reduction): Call used_outside_reduction.
29148 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
29149 translate_scalar_reduction_to_array only when at least one
29150 loop-phi/close-phi tuple has been detected.
29151
29152 2011-02-08 Richard Guenther <rguenther@suse.de>
29153
29154 PR middle-end/47639
29155 * tree-vect-generic.c (expand_vector_operations_1): Update
29156 stmts here ...
29157 (expand_vector_operations): ... not here. Cleanup EH info
29158 and the CFG if required.
29159
29160 2011-02-08 Richard Guenther <rguenther@suse.de>
29161
29162 PR tree-optimization/47641
29163 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
29164 require type compatibility.
29165
29166 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29167
29168 * gimple-low.c (lower_function_body): Don't remove the location of
29169 the return statement here.
29170 (lower_gimple_return): Do it here instead but only if the return
29171 statement is actually used twice.
29172
29173 2011-02-08 Richard Guenther <rguenther@suse.de>
29174
29175 PR tree-optimization/47632
29176 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
29177 unused up_to_stmt parameter, return whether cfg-cleanup is
29178 necessary, remove EH info properly.
29179 (forward_propagate_into_gimple_cond): Adjust caller.
29180 (forward_propagate_into_cond): Likewise.
29181 (forward_propagate_comparison): Likewise.
29182 (tree_ssa_forward_propagate_single_use_vars): Make
29183 forward_propagate_comparison case similar to the two others.
29184
29185 2011-02-08 Nick Clifton <nickc@redhat.com>
29186
29187 * config/mn10300/mn10300.opt (mliw): New command line option.
29188 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
29189 (liw_bundling): New automaton.
29190 (liw): New attribute.
29191 (liw_op): New attribute.
29192 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
29193 (movsi_internal): Add LIW attributes.
29194 (andsi3): Likewise.
29195 (iorsi3): Likewise.
29196 (xorsi3): Likewise.
29197 (addsi3): Separate register and immediate alternatives.
29198 Add LIW attributes.
29199 (subsi3): Likewise.
29200 (cmpsi): Likewise.
29201 (aslsi3): Likewise.
29202 (lshrsi3): Likewise.
29203 (ashrsi3): Likewise.
29204 (liw): New pattern.
29205 * config/mn10300/mn10300.c (liw_op_names): New
29206 (mn10300_print_operand): Handle 'W' operand descriptor.
29207 (extract_bundle): New function.
29208 (check_liw_constraints): New function.
29209 (liw_candidate): New function.
29210 (mn10300_bundle_liw): New function.
29211 (mn10300_reorg): New function.
29212 (TARGET_MACHINE_DEPENDENT_REORG): Define.
29213 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
29214 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
29215 __LIW__ or __NO_LIW__.
29216 * doc/invoke.texi: Describe the -mliw command line option.
29217
29218 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29219
29220 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
29221 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
29222 pthread_mutex_unlock): Remove.
29223 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
29224 * config/pa/t-pa64: Likewise.
29225 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
29226 shared libc if not linking against libpthread.
29227 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
29228
29229 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
29230
29231 PR target/47558
29232 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
29233 on 10.6 and later to ensure that we always use the unwinder from
29234 the system. Only add -no_compact_unwind when tarteting darwin
29235 10.6 or later.
29236
29237 2011-02-07 Steve Ellcey <sje@cup.hp.com>
29238
29239 PR target/46997
29240 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
29241 (vec_interleave_lowv2sf): Ditto.
29242 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
29243 (vec_extract_oddv2sf): Ditto.
29244
29245 2011-02-07 Mike Stump <mikestump@comcast.net>
29246
29247 PR target/42333
29248 Add __ieee_divdc3 entry point.
29249 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
29250 entry point.
29251 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
29252 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
29253 * config/darwin.c (darwin_rename_builtins): Add.
29254 * config/darwin-protos.h (darwin_rename_builtins): Add.
29255
29256 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
29257
29258 PR target/47636
29259 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
29260 for the condition.
29261
29262 2011-02-07 Mike Stump <mikestump@comcast.net>
29263
29264 * config/darwin.opt (mmacosx-version-min): Update default OS version.
29265
29266 2011-02-07 Denis Chertykov <chertykov@gmail.com>
29267
29268 PR target/47534
29269 * config/avr/libgcc.S (exit): Move .endfunc
29270
29271 2011-02-07 Richard Guenther <rguenther@suse.de>
29272
29273 PR tree-optimization/47615
29274 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
29275 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
29276 (run_scc_vn): Initialize it.
29277 (visit_reference_op_load): Use it.
29278 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
29279
29280 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29281
29282 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
29283 DImode trapping arithmetic libfuncs.
29284
29285 2011-02-07 Richard Guenther <rguenther@suse.de>
29286
29287 PR tree-optimization/47621
29288 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
29289 two duplicates ...
29290 (execute_update_addresses_taken): ... here. Make it more
29291 conservative in what we accept.
29292
29293 2011-02-06 Joseph Myers <joseph@codesourcery.com>
29294
29295 * config/sparc/freebsd.h (ASM_SPEC): Define.
29296 * config/sparc/vxworks.h (ASM_SPEC): Define.
29297
29298 2011-02-06 Joseph Myers <joseph@codesourcery.com>
29299
29300 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
29301
29302 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
29303
29304 * doc/invoke.texi: Remove reference to compiler internals from
29305 user documentation.
29306
29307 * reg-notes.def: Remove REG_VALUE_PROFILE.
29308 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
29309
29310 2011-02-05 Jakub Jelinek <jakub@redhat.com>
29311
29312 PR middle-end/47610
29313 * varasm.c (default_section_type_flags): If decl is NULL,
29314 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
29315
29316 2011-02-05 Jie Zhang <jie@codesourcery.com>
29317
29318 PR debug/42631
29319 * web.c (entry_register): Don't clobber the number of the
29320 first uninitialized reference in used[].
29321
29322 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
29323
29324 PR tree-optimization/46194
29325 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
29326 (build_classic_dist_vector_1): Do not represent classic distance
29327 vectors when the access functions are variating in different loops.
29328
29329 2011-02-04 Joseph Myers <joseph@codesourcery.com>
29330
29331 * config/mips/iris6.opt: New.
29332 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
29333
29334 2011-02-04 Richard Henderson <rth@redhat.com>
29335 Steve Ellcey <sje@cup.hp.com>
29336
29337 PR target/46997
29338 * config/ia64/predicates.md (mux1_brcst_element): New.
29339 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
29340 * config/ia64/ia64.c (ia64_unpack_assemble): New.
29341 (ia64_unpack_sign): New.
29342 (ia64_expand_unpack): Rewrite using new routines.
29343 (ia64_expand_widen_sum): Ditto.
29344 (ia64_expand_dot_prod_v8qi): Ditto.
29345 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
29346 routines, add endian check.
29347 (pmpy2_even): Rename from pmpy2_r, add endian check.
29348 (pmpy2_odd): Rename from pmpy2_l, add endian check.
29349 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
29350 (vec_widen_smult_hi_v4hi): Ditto.
29351 (vec_widen_umult_lo_v4hi): Ditto.
29352 (vec_widen_umult_hi_v4hi): Ditto.
29353 (mulv2si3): Change endian checks.
29354 (sdot_prodv4hi): Rewrite with new calls.
29355 (udot_prodv4hi): New.
29356 (vec_pack_ssat_v4hi): Add endian check.
29357 (vec_pack_usat_v4hi): Ditto.
29358 (vec_pack_ssat_v2si): Ditto.
29359 (max1_even): Rename from max1_r, add endian check.
29360 (max1_odd): Rename from max1_l, add endian check.
29361 (*mux1_rev): Format change.
29362 (*mux1_mix): Ditto.
29363 (*mux1_shuf): Ditto.
29364 (*mux1_alt): Ditto.
29365 (*mux1_brcst_v8qi): Use new predicate.
29366 (vec_extract_evenv8qi): Remove endian check.
29367 (vec_extract_oddv8qi): Ditto.
29368 (vec_interleave_lowv4hi): Format change.
29369 (vec_interleave_highv4hi): Ditto.
29370 (mix2_even): Rename from mix2_r, add endian check.
29371 (mix2_odd): Rename from mux2_l, add endian check.
29372 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
29373 (vec_extract_evenodd_helper): Format change.
29374 (vec_extract_evenv4hi): Remove endian check.
29375 (vec_extract_oddv4hi): Remove endian check.
29376 (vec_interleave_lowv2si): Format change.
29377 (vec_interleave_highv2si): Format change.
29378 (vec_initv2si): Remove endian check.
29379 (vecinit_v2si): Add endian check.
29380 (reduc_splus_v2sf): Add endian check.
29381 (reduc_smax_v2sf): Ditto.
29382 (reduc_smin_v2sf): Ditto.
29383 (vec_initv2sf): Remove endian check.
29384 (fpack): Add endian check.
29385 (fswap): Add endian check.
29386 (vec_interleave_highv2sf): Add endian check.
29387 (vec_interleave_lowv2sf): Add endian check.
29388 (fmix_lr): Add endian check.
29389 (vec_setv2sf): Format change.
29390 (*vec_extractv2sf_0_be): Use shift to extract operand.
29391 (*vec_extractv2sf_1_be): New.
29392 (vec_pack_trunc_v4hi): Add endian check.
29393 (vec_pack_trunc_v2si): Format change.
29394
29395 2011-02-04 Jakub Jelinek <jakub@redhat.com>
29396
29397 PR inline-asm/23200
29398 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
29399 do bb, locus and block comparison and disallow loads if it is not set.
29400 (stmt_is_replaceable_p): New function.
29401 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
29402 callers.
29403 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
29404 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
29405 SSA_NAME_DEF_STMT.
29406 * tree-flow.h (stmt_is_replaceable_p): New prototype.
29407
29408 2011-02-04 Joseph Myers <joseph@codesourcery.com>
29409
29410 * config/rs6000/xilinx.opt: New.
29411 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
29412
29413 2011-02-04 Joseph Myers <joseph@codesourcery.com>
29414
29415 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
29416
29417 2011-02-03 Anatoly Sokolov <aesok@post.ru>
29418
29419 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
29420 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
29421 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
29422 secondary_reload_info, xtensa_secondary_reload): Remove.
29423 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
29424 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
29425 (xtensa_preferred_reload_class): Make static. Change return and
29426 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
29427 Use CONST_DOUBLE_P predicate.
29428 (xtensa_preferred_output_reload_class): New function.
29429 (xtensa_secondary_reload): Make static.
29430
29431 2011-02-03 Joseph Myers <joseph@codesourcery.com>
29432
29433 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
29434 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
29435 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
29436
29437 2011-02-03 Jakub Jelinek <jakub@redhat.com>
29438
29439 PR middle-end/31490
29440 * output.h (SECTION_RELRO): Define.
29441 (SECTION_MACH_DEP): Adjust.
29442 (get_variable_section): New prototype.
29443 * varpool.c (varpool_finalize_named_section_flags): New function.
29444 (varpool_assemble_pending_decls): Call it.
29445 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
29446 * cgraphunit.c (cgraph_output_in_order): Call
29447 varpool_finalize_named_section_flags.
29448 * varasm.c (get_section): Allow section flags conflicts between
29449 relro and read-only sections if the section hasn't been declared yet.
29450 Set SECTION_OVERRIDE after diagnosing section type conflict.
29451 (get_variable_section): No longer static.
29452 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
29453 readonly sections that need relocations.
29454 (decl_readonly_section_1): New function.
29455 (decl_readonly_section): Use it.
29456
29457 Revert:
29458 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
29459 Steve Ellcey <sje@cup.hp.com>
29460
29461 PR middle-end/31490
29462 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
29463 if section attribute used.
29464
29465 2011-02-03 Jakub Jelinek <jakub@redhat.com>
29466
29467 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
29468 * config/darwin.c (SECTION_NO_ANCHOR): Define.
29469 (darwin_init_sections): Remove assertion.
29470
29471 2011-02-03 Nick Clifton <nickc@redhat.com>
29472
29473 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
29474 lt and ge.
29475 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
29476 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
29477 instead of "n" and "pz".
29478 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
29479 CC_FLAG_S.
29480
29481 2011-02-03 Jakub Jelinek <jakub@redhat.com>
29482
29483 PR target/47312
29484 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
29485 fma, expand FMA_EXPR as fma{,f,l} call.
29486
29487 PR lto/47274
29488 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
29489 copy them into a unsigned char variable and pass address of it to
29490 lto_output_data_stream.
29491
29492 PR target/47564
29493 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
29494 around backend_init_target and lang_dependent_init_target calls.
29495 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
29496 (verify_cgraph_node): Don't call set_cfun here. Use
29497 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
29498 Set error_found for incorrectly represented calls to thunks.
29499
29500 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
29501
29502 PR debug/43092
29503 PR rtl-optimization/43494
29504 * rtl.h (for_each_inc_dec_fn): New type.
29505 (for_each_inc_dec): Declare.
29506 * rtlanal.c (struct for_each_inc_dec_ops): New type.
29507 (for_each_inc_dec_find_inc_dec): New fn.
29508 (for_each_inc_dec_find_mem): New fn.
29509 (for_each_inc_dec): New fn.
29510 * dse.c (struct insn_size): Remove.
29511 (replace_inc_dec, replace_inc_dec_mem): Remove.
29512 (emit_inc_dec_insn_before): New fn.
29513 (check_for_inc_dec): Use it, along with for_each_inc_dec.
29514 (canon_address): Pass mem modes to cselib_lookup.
29515 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
29516 (cselib_lookup_from_insn): Likewise.
29517 (cselib_subst_to_values): Likewise.
29518 * cselib.c (find_slot_memmode): New var.
29519 (cselib_find_slot): New fn. Use it instead of
29520 htab_find_slot_with_hash everywhere.
29521 (entry_and_rtx_equal_p): Use find_slot_memmode.
29522 (autoinc_split): New fn.
29523 (rtx_equal_for_cselib_p): Rename and implement in terms of...
29524 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
29525 Deal with autoinc. Special-case recursion into MEMs.
29526 (cselib_hash_rtx): Likewise.
29527 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
29528 address and MEM modes.
29529 (cselib_subst_to_values): Add memmode, pass it on.
29530 Deal with autoinc.
29531 (cselib_lookup): Add memmode argument, pass it on.
29532 (cselib_lookup_from_insn): Add memmode.
29533 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
29534 (struct cselib_record_autoinc_data): New.
29535 (cselib_record_autoinc_cb): New fn.
29536 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
29537 mode to cselib_lookup. Reset autoinced REGs here instead of...
29538 (cselib_process_insn): ... here.
29539 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
29540 to cselib_lookup.
29541 (add_uses): Likewise, also to cselib_subst_to_values.
29542 (add_stores): Likewise.
29543 * sched-deps.c (add_insn_mem_dependence): Pass mode to
29544 cselib_subst_to_values.
29545 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
29546 * gcse.c (do_local_cprop): Adjusted.
29547 * postreload.c (reload_cse_simplify_set): Adjusted.
29548 (reload_cse_simplify_operands): Adjusted.
29549 * sel-sched-dump (debug_mem_addr_value): Pass mode.
29550
29551 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
29552
29553 PR tree-optimization/45122
29554 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
29555 unsafe assumptions when there's more than one loop exit.
29556
29557 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29558
29559 PR target/47272
29560 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29561 Document using vector double with the load/store builtins, and
29562 that the load/store builtins always use Altivec instructions.
29563
29564 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
29565 to use altivec memory instructions, even on VSX.
29566 (vector_altivec_store_<mode>): Ditto.
29567
29568 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
29569 function.
29570
29571 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
29572 V2DF, V2DI support to load/store overloaded builtins.
29573
29574 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
29575 altivec load/store builtins for V2DF/V2DI types.
29576
29577 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29578 set avoid indexed addresses on power6 if -maltivec.
29579 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
29580 vector_altivec_load/vector_altivec_store builtins.
29581 (altivec_expand_st_builtin): Ditto.
29582 (altivec_expand_builtin): Add VSX memory builtins.
29583 (rs6000_init_builtins): Add V2DI types to internal types.
29584 (altivec_init_builtins): Add support for V2DF/V2DI altivec
29585 load/store builtins.
29586 (rs6000_address_for_altivec): Insure memory address is appropriate
29587 for Altivec.
29588
29589 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
29590 vec_vsx_ld and vec_vsx_st.
29591 (vsx_store_<mode>): Ditto.
29592
29593 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
29594 variables to hold long long types for VSX vector memory builtins.
29595 (RS6000_BTI_unsigned_long_long): Ditto.
29596 (long_long_integer_type_internal_node): Ditti.
29597 (long_long_unsigned_type_internal_node): Ditti.
29598
29599 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
29600 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
29601 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
29602
29603 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
29604 short cuts.
29605 (vec_vsx_st): Ditto.
29606
29607 2011-02-02 Joseph Myers <joseph@codesourcery.com>
29608
29609 * config/pa/pa-hpux10.opt: New.
29610 * config/hpux11.opt (pthread): New Driver option.
29611 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
29612 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
29613
29614 2011-02-02 Joseph Myers <joseph@codesourcery.com>
29615
29616 * config/ia64/vms.opt: New.
29617 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
29618
29619 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
29620
29621 PR target/47580
29622 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
29623 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
29624 generator functions.
29625 (vsx_floatuns<VSi><mode>2): Ditto.
29626 (vsx_fix_trunc<mode><VSi>2): Ditto.
29627 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
29628
29629 2011-02-02 Joseph Myers <joseph@codesourcery.com>
29630
29631 * config/i386/djgpp.opt (posix): New Driver option.
29632
29633 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
29634
29635 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
29636 Move to the unsupported targets list.
29637
29638 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
29639
29640 PR rtl-optimization/47525
29641 * df-scan.c: Update copyright years.
29642 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
29643 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
29644
29645 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29646
29647 * config/i386/sysv4.h (TARGET_VERSION): Remove.
29648 (SUBTARGET_RETURN_IN_MEMORY): Remove.
29649 (ASM_OUTPUT_ASCII): Remove.
29650 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
29651
29652 2011-02-02 Jeff Law <law@redhat.com>
29653
29654 PR middle-end/47543
29655 * reload.c (find_reloads_address): Handle reg+d address where both
29656 components are invalid by reloading the entire address.
29657
29658 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
29659 Richard Guenther <rguenther@suse.de>
29660
29661 PR tree-optimization/40979
29662 PR bootstrap/47044
29663 * passes.c (init_optimization_passes): After LIM call copy_prop
29664 and DCE to clean up.
29665 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
29666
29667 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
29668
29669 PR tree-optimization/47576
29670 PR tree-optimization/47555
29671 * doc/invoke.texi (scev-max-expr-complexity): Documented.
29672 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
29673 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
29674 * tree-scalar-evolution.c (follow_ssa_edge): Use
29675 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
29676
29677 2011-02-02 Richard Guenther <rguenther@suse.de>
29678
29679 PR tree-optimization/47566
29680 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
29681
29682 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
29683
29684 PR debug/47106
29685 PR debug/47402
29686 * tree-inline.c (declare_return_variable): Remove unused caller
29687 variable.
29688
29689 PR debug/47106
29690 PR debug/47402
29691 * tree-flow-inline.h (clear_is_used, is_used_p): New.
29692 * cfgexpand.c (account_used_vars_for_block): Use them.
29693 * tree-nrv.c (tree_nrv): Likewise.
29694 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
29695 (dump_scope_block): Likewise.
29696 (remove_unused_locals): Likewise.
29697
29698 PR debug/47106
29699 PR debug/47402
29700 * tree-inline.c (declare_return_variable): Add result decl to
29701 local decls only once.
29702 * gimple-low.c (record_vars_into): Mark newly-created variables
29703 as referenced.
29704
29705 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
29706
29707 PR debug/47498
29708 PR debug/47501
29709 PR debug/45136
29710 PR debug/45130
29711 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
29712 debug insns.
29713 (no_real_insns_p, schedule_block, set_priorities): Drop special
29714 treatment of boundary debug insns.
29715 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
29716 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
29717 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
29718 (BOUNDARY_DEBUG_INSN_P): Likewise.
29719 (SCHEDULE_DEBUG_INSN_P): Likewise.
29720 * sched-rgn.c (init_ready_list): Drop special treatment of
29721 boundary debug insns.
29722 * final.c (rest_of_clean_state): Clear notes' BB.
29723
29724 2011-02-01 Joseph Myers <joseph@codesourcery.com>
29725
29726 * config/openbsd.opt (assert=): New Driver option.
29727
29728 2011-02-01 Joseph Myers <joseph@codesourcery.com>
29729
29730 * config/i386/nto.opt: New.
29731 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
29732
29733 2011-02-01 Joseph Myers <joseph@codesourcery.com>
29734
29735 * config/i386/netware.opt: New.
29736 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
29737
29738 2011-02-01 Joseph Myers <joseph@codesourcery.com>
29739
29740 * config/interix.opt (posix): New Driver option.
29741
29742 2011-02-01 DJ Delorie <dj@redhat.com>
29743
29744 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
29745
29746 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
29747 class for A0/A1.
29748
29749 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
29750
29751 PR tree-optimization/47561
29752 * toplev.c (process_options): Print the Graphite flags. Add
29753 flag_loop_flatten to the list of options requiring Graphite.
29754
29755 2011-02-01 Joseph Myers <joseph@codesourcery.com>
29756
29757 * config/i386/cygming.opt (posix): New Driver option.
29758
29759 2011-02-01 Joseph Myers <joseph@codesourcery.com>
29760
29761 * config/arm/vxworks.opt: New.
29762 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
29763
29764 2011-02-01 Joseph Myers <joseph@codesourcery.com>
29765
29766 * config/alpha/elf.opt: New.
29767 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
29768 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
29769
29770 2011-02-01 Richard Guenther <rguenther@suse.de>
29771
29772 PR tree-optimization/47559
29773 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
29774 store-motion on references that can throw.
29775
29776 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
29777
29778 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
29779 * tree-pass.h (TDF_CSELIB): New macro.
29780 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
29781 cselib_lookup): Check for it rather than for TDF_DETAILS.
29782
29783 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
29784
29785 PR driver/47547
29786 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
29787 is HOST_BIT_BUCKET.
29788
29789 * opts.c (finish_options): Don't add x_aux_base_name if it is
29790 HOST_BIT_BUCKET.
29791
29792 2011-02-01 Richard Guenther <rguenther@suse.de>
29793
29794 PR tree-optimization/47555
29795 Revert
29796 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
29797
29798 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
29799
29800 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
29801
29802 PR gcc/46692
29803 * config/lm32/t-lm32: Add multilib for all CPU options.
29804
29805 2011-02-01 Richard Guenther <rguenther@suse.de>
29806
29807 PR tree-optimization/47541
29808 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
29809 sure to have a field at offset zero.
29810
29811 2011-01-31 Joseph Myers <joseph@codesourcery.com>
29812
29813 * config/arc/arc.opt (EB, EL): New Driver options.
29814
29815 2011-01-31 Joseph Myers <joseph@codesourcery.com>
29816
29817 * config/alpha/osf5.opt: New.
29818 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
29819
29820 2011-01-31 Joseph Myers <joseph@codesourcery.com>
29821
29822 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
29823
29824 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
29825
29826 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
29827 -floop-interchange.
29828 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
29829 is an alias of -floop-interchange and that it requires the
29830 Graphite infrastructure.
29831 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
29832 flag_loop_interchange based on the value of flag_tree_loop_linear.
29833
29834 2011-01-31 Jakub Jelinek <jakub@redhat.com>
29835 Richard Guenther <rguenther@suse.de>
29836
29837 PR tree-optimization/47538
29838 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
29839 type instead of r1type, except for comparisons. For right
29840 shifts and comparisons punt if there are mismatches in
29841 sizetype vs. non-sizetype types.
29842
29843 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29844
29845 * doc/sourcebuild.texi (Effective-Target Keywords): Document
29846 avx_runtime.
29847
29848 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29849
29850 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
29851 version number.
29852 * configure: Regenerate.
29853
29854 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29855
29856 * configure.ac (gcc_cv_ld_static_option): Define.
29857 (gcc_cv_ld_dynamic_option): Define.
29858 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
29859 instead.
29860 (HAVE_LD_STATIC_DYNAMIC): Update message.
29861 (LD_STATIC_OPTION): Define.
29862 (LD_DYNAMIC_OPTION): Define.
29863 * configure: Regenerate.
29864 * config.in: Regenerate.
29865 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
29866 HAVE_LD_STATIC_DYNAMIC]: Use them.
29867
29868 2011-01-31 Nick Clifton <nickc@redhat.com>
29869
29870 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
29871 registers inside interrupt handlers if the handler is not a leaf
29872 function.
29873
29874 2011-01-31 Nick Clifton <nickc@redhat.com>
29875
29876 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
29877 reg_renumber returning an INVALID_REGNUM.
29878
29879 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
29880
29881 PR libgcj/44341
29882 * doc/install.texi: Document host options discarded when cross
29883 configuring target libraries.
29884
29885 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
29886
29887 Reverted:
29888 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
29889 PR debug/45136
29890 PR debug/45130
29891 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
29892 debug insns.
29893 (no_real_insns_p, schedule_block, set_priorities): Drop special
29894 treatment of boundary debug insns.
29895 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
29896 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
29897 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
29898 (BOUNDARY_DEBUG_INSN_P): Likewise.
29899 (SCHEDULE_DEBUG_INSN_P): Likewise.
29900 * sched-rgn.c (init_ready_list): Drop special treatment of
29901 boundary debug insns.
29902 * final.c (rest_of_clean-state): Clear notes' BB.
29903
29904 2011-01-31 Alan Modra <amodra@gmail.com>
29905
29906 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
29907 toc relative expressions as we do in print_operand_address.
29908
29909 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
29910
29911 * doc/extend.texi: Follow spelling conventions.
29912 * doc/invoke.texi: Fix a typo.
29913
29914 2011-01-30 Joseph Myers <joseph@codesourcery.com>
29915
29916 * config/hpux11.opt: New.
29917 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
29918 ia64*-*-hpux*): Use hpux11.opt.
29919
29920 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
29921
29922 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
29923 to tmake_file.
29924
29925 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
29926
29927 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
29928 support sites.
29929
29930 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
29931
29932 * doc/install.texi (Binaries): Remove outdated reference for
29933 Motorola 68HC11/68HC12 downloads.
29934
29935 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
29936
29937 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
29938 Drepper's paper.
29939
29940 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
29941
29942 PR bootstrap/47147
29943 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
29944 used by NetBSD.
29945
29946 2011-01-28 Ahmad Sharif <asharif@google.com>
29947
29948 * value-prof.c (check_counter): Corrected error message.
29949
29950 2011-01-29 Jie Zhang <jie@codesourcery.com>
29951
29952 * config/arm/arm.c (arm_legitimize_reload_address): New.
29953 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
29954 arm_legitimize_reload_address.
29955 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
29956
29957 2011-01-28 Ian Lance Taylor <iant@google.com>
29958
29959 * godump.c (go_define): Ignore macros whose definitions include
29960 two adjacent operands.
29961
29962 2011-01-28 Jakub Jelinek <jakub@redhat.com>
29963
29964 PR target/42894
29965 * varasm.c (force_const_mem): Store copy of x in desc->constant
29966 instead of x itself.
29967 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
29968 itself into REG_EQUAL note.
29969
29970 2011-01-28 Joseph Myers <joseph@codesourcery.com>
29971
29972 * config/freebsd.opt (posix, rdynamic): New Driver options.
29973
29974 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29975
29976 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
29977 -Bstatic/-Bdynamic.
29978 * configure: Regenerate.
29979
29980 2011-01-27 Joseph Myers <joseph@codesourcery.com>
29981
29982 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
29983 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
29984
29985 2011-01-27 Anatoly Sokolov <aesok@post.ru>
29986
29987 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
29988 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
29989 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
29990 (s390_preferred_reload_class): Make static. Change return and
29991 'rclass' argument type to reg_class_t.
29992
29993 2011-01-27 Jan Hubicka <jh@suse.cz>
29994
29995 PR middle-end/46949
29996 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
29997 (process_function_and_variable_attributes): Check defined weakrefs.
29998
29999 2011-01-27 Martin Jambor <mjambor@suse.cz>
30000
30001 PR tree-optimization/47228
30002 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
30003 build_ref_for_offset.
30004
30005 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30006
30007 * config/spu/spu-elf.h (ASM_SPEC): Remove.
30008
30009 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
30010
30011 PR rtl-optimization/46856
30012 * postreload.c (reload_combine_recognize_const_pattern): Do not
30013 separate cc0 setter and user on cc0 targets.
30014
30015 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
30016
30017 PR c/43082
30018 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
30019 passed a VOID_TYPE expression, immediately emit an error and
30020 return error_mark_node.
30021
30022 2011-01-26 Jeff Law <law@redhat.com>
30023
30024 PR rtl-optimization/47464
30025 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
30026 rather than may_trap_p as needed.
30027
30028 2011-01-26 DJ Delorie <dj@redhat.com>
30029
30030 PR rtl-optimization/46878
30031 * combine.c (insn_a_feeds_b): Check for the implicit cc0
30032 setter/user dependency as well.
30033
30034 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
30035
30036 PR rtl-optimization/44469
30037 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
30038 after removing trivially dead basic blocks.
30039
30040 2011-01-26 Joseph Myers <joseph@codesourcery.com>
30041
30042 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
30043 * config/frv/frv.h (LINK_SPEC): Likewise.
30044 * config/i386/netware.h (LINK_SPEC): Likewise.
30045 * config/m68k/linux.h (ASM_SPEC): Likewise.
30046 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
30047 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
30048 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
30049 * config/sparc/linux.h (ASM_SPEC): Likewise.
30050 * config/sparc/linux64.h (ASM_SPEC): Likewise.
30051 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
30052
30053 2011-01-26 Joseph Myers <joseph@codesourcery.com>
30054
30055 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
30056 * config/frv/frv.h (ASM_SPEC): Likewise.
30057 * config/m68k/linux.h (ASM_SPEC): Likewise.
30058 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
30059 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
30060 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
30061 * config/sparc/linux.h (ASM_SPEC): Likewise.
30062 * config/sparc/linux64.h (ASM_SPEC): Likewise.
30063 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
30064
30065 2011-01-26 Joseph Myers <joseph@codesourcery.com>
30066
30067 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
30068 * config/frv/frv.h (LINK_SPEC): Likewise.
30069 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
30070
30071 2011-01-26 Joseph Myers <joseph@codesourcery.com>
30072
30073 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
30074 * config/frv/frv.h (ASM_SPEC): Likewise.
30075 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
30076 * config/m68k/linux.h (ASM_SPEC): Likewise.
30077 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
30078 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
30079 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
30080 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
30081 * config/sparc/linux.h (ASM_SPEC): Likewise.
30082 * config/sparc/linux64.h (ASM_SPEC): Likewise.
30083 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
30084 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
30085
30086 2011-01-26 Steve Ellcey <sje@cup.hp.com>
30087
30088 PR target/46997
30089 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
30090 (*mux2): Ditto.
30091 (vec_extract_evenodd_help): Ditto.
30092 (vec_extract_evenv4hi): Ditto.
30093 (vec_extract_oddv4hi): Ditto.
30094 (vec_interleave_lowv2si): Ditto.
30095 (vec_interleave_highv2si): Ditto.
30096 (vec_extract_evenv2si): Ditto.
30097 (vec_extract_oddv2si: Ditto.
30098 (vec_pack_trunc_v2si): Ditto.
30099
30100 2011-01-22 Jan Hubicka <jh@suse.cz>
30101
30102 PR target/47237
30103 * cgraph.h (cgraph_local_info): New field can_change_signature.
30104 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
30105 signature can change.
30106 (ipcp_estimate_growth): Call sequence simplify only if calle signature
30107 can change.
30108 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
30109 (cgraph_function_versioning): We can not change signature of functions
30110 that don't allow that.
30111 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
30112 (lto_input_node): Likewise.
30113 * ipa-inline.c (compute_inline_parameters): Compute
30114 local.can_change_signature.
30115 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
30116 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
30117 functions that can not change signature.
30118 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
30119 init_cumulative_args): Do not use local calling conventions
30120 for functions that can not change signature.
30121
30122 2011-01-22 Jan Hubicka <jh@suse.cz>
30123
30124 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
30125
30126 2011-01-26 Richard Guenther <rguenther@suse.de>
30127
30128 PR tree-optimization/47190
30129 * cgraphunit.c (process_common_attributes): New function.
30130 (process_function_and_variable_attributes): Use it.
30131
30132 2011-01-26 Richard Guenther <rguenther@suse.de>
30133
30134 PR lto/47423
30135 * cgraphbuild.c (record_eh_tables): Record reference to personality
30136 function.
30137
30138 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
30139
30140 PR debug/45454
30141 * sel-sched.c (moveup_expr): Don't let debug insns prevent
30142 non-debug insns from moving up.
30143
30144 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
30145
30146 PR target/40125
30147 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
30148 t-dlldir{,-x} fragment for build and add it to tmake_file.
30149 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
30150 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
30151 * config/i386/t-dlldir: New file.
30152 (SHLIB_DLLDIR): Define.
30153 * config/i386/t-dlldir-x: New file.
30154 (SHLIB_DLLDIR): Define.
30155 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
30156 (SHLIB_INSTALL): Use it.
30157
30158 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
30159
30160 PR target/47246
30161 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
30162 lower bound of the allowed Thumb-2 coprocessor load/store
30163 index range to -256. Add explaining comment.
30164
30165 2011-01-25 Ian Lance Taylor <iant@google.com>
30166
30167 * godump.c (go_define): Improve lexing of macro expansion to only
30168 accept expressions which match Go spec.
30169
30170 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
30171
30172 PR c++/43601
30173 * tree.c (handle_dll_attribute): Handle it.
30174 * doc/extend.texi (@item dllexport): Mention it.
30175 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
30176
30177 2011-01-25 Ian Lance Taylor <iant@google.com>
30178
30179 PR tree-optimization/26854
30180 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
30181 (decl_jump_unsafe): Move higher in file, with no other change.
30182 (bind): Set has_jump_unsafe_decl if appropriate.
30183 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
30184 (check_earlier_gotos): Likewise.
30185 (c_check_switch_jump_warnings): Likewise.
30186
30187 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
30188
30189 * doc/invoke.texi (Warning Options): Add missing hyphen.
30190 (-fprofile-dir): Minor grammatical fixes.
30191 (-fbranch-probabilities): Likewise.
30192
30193 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
30194
30195 PR debug/45136
30196 PR debug/45130
30197 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
30198 debug insns.
30199 (no_real_insns_p, schedule_block, set_priorities): Drop special
30200 treatment of boundary debug insns.
30201 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
30202 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
30203 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
30204 (BOUNDARY_DEBUG_INSN_P): Likewise.
30205 (SCHEDULE_DEBUG_INSN_P): Likewise.
30206 * sched-rgn.c (init_ready_list): Drop special treatment of
30207 boundary debug insns.
30208 * final.c (rest_of_clean-state): Clear notes' BB.
30209
30210 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30211
30212 * Makefile.in (LAMBDA_H): Removed.
30213 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
30214 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
30215 lambda-trans.o, and tree-loop-linear.o.
30216 (lto-symtab.o): Remove dependence on LAMBDA_H.
30217 (tree-loop-linear.o): Remove rule.
30218 (lambda-mat.o): Same.
30219 (lambda-trans.o): Same.
30220 (lambda-code.o): Same.
30221 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
30222 (tree-vect-slp.o): Same.
30223 * hwint.h (gcd): Moved here.
30224 (least_common_multiple): Same.
30225 * lambda-code.c: Removed.
30226 * lambda-mat.c: Removed.
30227 * lambda-trans.c: Removed.
30228 * lambda.h: Removed.
30229 * tree-loop-linear.c: Removed.
30230 * lto-symtab.c: Do not include lambda.h.
30231 * omega.c (gcd): Removed.
30232 * passes.c (init_optimization_passes): Remove pass_linear_transform.
30233 * tree-data-ref.c (print_lambda_vector): Moved here.
30234 (lambda_vector_copy): Same.
30235 (lambda_matrix_copy): Same.
30236 (lambda_matrix_id): Same.
30237 (lambda_vector_first_nz): Same.
30238 (lambda_matrix_row_add): Same.
30239 (lambda_matrix_row_exchange): Same.
30240 (lambda_vector_mult_const): Same.
30241 (lambda_vector_negate): Same.
30242 (lambda_matrix_row_negate): Same.
30243 (lambda_vector_equal): Same.
30244 (lambda_matrix_right_hermite): Same.
30245 * tree-data-ref.h: Do not include lambda.h.
30246 (lambda_vector): Moved here.
30247 (lambda_matrix): Same.
30248 (dependence_level): Same.
30249 (lambda_transform_legal_p): Removed declaration.
30250 (lambda_collect_parameters): Same.
30251 (lambda_compute_access_matrices): Same.
30252 (lambda_vector_gcd): Same.
30253 (lambda_vector_new): Same.
30254 (lambda_vector_clear): Same.
30255 (lambda_vector_lexico_pos): Same.
30256 (lambda_vector_zerop): Same.
30257 (lambda_matrix_new): Same.
30258 * tree-flow.h (least_common_multiple): Removed declaration.
30259 * tree-parloops.c (lambda_trans_matrix): Moved here.
30260 (LTM_MATRIX): Same.
30261 (LTM_ROWSIZE): Same.
30262 (LTM_COLSIZE): Same.
30263 (LTM_DENOMINATOR): Same.
30264 (lambda_trans_matrix_new): Same.
30265 (lambda_matrix_vector_mult): Same.
30266 (lambda_transform_legal_p): Same.
30267 * tree-pass.h (pass_linear_transform): Removed declaration.
30268 * tree-ssa-loop.c (tree_linear_transform): Removed.
30269 (gate_tree_linear_transform): Removed.
30270 (pass_linear_transform): Removed.
30271 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
30272 flag_loop_interchange.
30273
30274 2011-01-25 Jakub Jelinek <jakub@redhat.com>
30275
30276 PR tree-optimization/47265
30277 PR tree-optimization/47443
30278 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
30279 if name still has some uses.
30280
30281 2011-01-25 Martin Jambor <mjambor@suse.cz>
30282
30283 PR tree-optimization/47382
30284 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
30285 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
30286
30287 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
30288
30289 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
30290 sjlj_except_unwind_info.
30291
30292 2011-01-25 Richard Guenther <rguenther@suse.de>
30293
30294 PR tree-optimization/47426
30295 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
30296 visible functions results escape.
30297
30298 2011-01-25 Jakub Jelinek <jakub@redhat.com>
30299
30300 PR target/45701
30301 * config/arm/arm.c (any_sibcall_uses_r3): New function.
30302 (arm_get_frame_offsets): Use it.
30303
30304 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30305 Jakub Jelinek <jakub@redhat.com>
30306
30307 PR tree-optimization/47271
30308 * tree-if-conv.c (bb_postdominates_preds): New.
30309 (if_convertible_bb_p): Call bb_postdominates_preds.
30310 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
30311 (predicate_scalar_phi): Call bb_postdominates_preds.
30312
30313 2011-01-25 Nick Clifton <nickc@redhat.com>
30314
30315 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
30316 * config/rx/rx.c (rx_function_value): Likewise.
30317 (rx_promote_function_mode): Likewise.
30318 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
30319 in order to make it legitimate.
30320 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
30321 make sure that the first operand is the same as the result register.
30322 (addsi3_unspec): Delete.
30323 (subdi3): Do not accept immediate operands.
30324 (subdi3_internal): Likewise.
30325
30326 2011-01-25 Jeff Law <law@redhat.com>
30327
30328 PR rtl-optimization/37273
30329 * ira-costs.c (scan_one_insn): Detect constants living in memory and
30330 handle them like argument loads from stack slots. Do not double
30331 count memory for memory constants and argument loads from stack slots.
30332
30333 2011-01-25 Jakub Jelinek <jakub@redhat.com>
30334
30335 PR tree-optimization/47427
30336 PR tree-optimization/47428
30337 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
30338 coalesce if the new root var would be TREE_READONLY.
30339
30340 2011-01-25 Richard Guenther <rguenther@suse.de>
30341
30342 PR middle-end/47414
30343 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
30344 correct type for TBAA.
30345
30346 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30347
30348 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
30349 (close_phi_written_to_memory): Call for_each_index with
30350 dr_indices_valid_in_loop.
30351
30352 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30353
30354 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
30355 when it is initialized.
30356
30357 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30358
30359 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
30360 call to graphite_find_data_references_in_stmt.
30361 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
30362 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
30363 call to graphite_find_data_references_in_stmt.
30364 (analyze_drs_in_stmts): Same.
30365 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
30366 in which the scalar analysis of indices is performed.
30367 (create_data_ref): Same. Update call to dr_analyze_indices.
30368 (find_data_references_in_stmt): Update call to create_data_ref.
30369 (graphite_find_data_references_in_stmt): Same.
30370 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
30371 declaration.
30372 (create_data_ref): Same.
30373 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
30374 call to create_data_ref.
30375
30376 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30377
30378 * graphite-sese-to-poly.c (build_poly_scop): Move
30379 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
30380
30381 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30382
30383 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
30384 VAR_DECL, PARM_DECL, and RESULT_DECL.
30385
30386 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30387
30388 * graphite-dependences.c (reduction_dr_1): Allow several reductions
30389 in a reduction PBB.
30390 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
30391 that have already been marked as PBB_IS_REDUCTION.
30392
30393 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30394
30395 * graphite-scop-detection.c (same_close_phi_node): New.
30396 (remove_duplicate_close_phi): New.
30397 (make_close_phi_nodes_unique): New.
30398 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
30399
30400 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30401
30402 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
30403 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
30404 of both data references to be the same.
30405
30406 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30407
30408 * graphite-dependences.c (build_lexicographical_constraint): Remove
30409 the gdim parameter.
30410 (build_lexicographical_constraint): Adjust call to
30411 ppl_powerset_is_empty.
30412 (dependence_polyhedron): Same.
30413 (graphite_legal_transform_dr): Same.
30414 (graphite_carried_dependence_level_k): Same.
30415 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
30416 parameter.
30417 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
30418
30419 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30420
30421 * graphite-sese-to-poly.c
30422 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
30423 (close_phi_written_to_memory): New.
30424 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
30425 and unshare_expr.
30426
30427 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30428
30429 * doc/install.texi: Update the expected version number of PPL to 0.11.
30430 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
30431 #if PPL_VERSION_MINOR < 11.
30432
30433 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30434
30435 * graphite-dependences.c: Include graphite-cloog-util.h.
30436 (new_poly_ddr): Inlined into dependence_polyhedron.
30437 (free_poly_ddr): Moved close by new_poly_ddr.
30438 (dependence_polyhedron_1): Renamed dependence_polyhedron.
30439 Early return NULL when ppl_powerset_is_empty returns true.
30440 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
30441 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
30442 (graphite_legal_transform_dr): Call new_poly_ddr.
30443 (graphite_carried_dependence_level_k): Same.
30444 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
30445 (dot_transformed_deps_stmt_1): Removed.
30446 (dot_deps_stmt_1): Call dot_deps_stmt_2.
30447 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
30448 (dot_deps_1): Call dot_deps_2.
30449 * Makefile.in (graphite-dependences.o): Add missing dependence on
30450 graphite-cloog-util.h.
30451
30452 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30453
30454 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
30455 (build_lexicographical_constraint): Same.
30456 (dependence_polyhedron_1): Same.
30457 (graphite_legal_transform_dr): Same.
30458 (graphite_carried_dependence_level_k): Same.
30459 * graphite-ppl.c (ppl_powerset_is_empty): New.
30460 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
30461 * tree-data-ref.c (dump_data_reference): Print the basic block index.
30462
30463 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30464
30465 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
30466 the "a followed by b" relation and document it.
30467
30468 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30469
30470 * graphite-dependences.c (build_lexicographical_constraint): Stop the
30471 iteration when the bag of constraints is empty.
30472
30473 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30474
30475 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
30476
30477 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30478
30479 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
30480 nest and two loop depths as parameters.
30481 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
30482 lst_perfect_nestify.
30483
30484 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30485
30486 * graphite-dependences.c (print_pddr): Call
30487 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
30488
30489 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30490
30491 * graphite-ppl.c (debug_gmp_value): New.
30492 * graphite-ppl.h (debug_gmp_value): Declared.
30493
30494 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
30495
30496 * doc/install.texi: Document availability of cloog-0.16.
30497
30498 2011-01-25 Vladimir Kargov <kargov@gmail.com>
30499
30500 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
30501 invalid postdominance info.
30502
30503 2011-01-24 Jan Hubicka <jh@suse.cz>
30504
30505 PR c/21659
30506 * doc/extend.texi (weak pragma): Drop claim that it must
30507 appear before definition.
30508 * varasm.c (merge_weak, declare_weak): Only sanity check
30509 that DECL is not output at a time it is declared weak.
30510
30511 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
30512
30513 * machmode.def: Fixed comments.
30514
30515 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
30516
30517 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
30518
30519 2011-01-24 Paul Koning <ni1d@arrl.net>
30520
30521 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
30522 WORDS_BIG_ENDIAN.
30523
30524 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
30525
30526 PR target/46519
30527 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
30528 (block_info): Add scanned and prev.
30529 (move_or_delete_vzeroupper_2): Return if the basic block
30530 has been scanned and the upper 128bit state is unchanged
30531 from the last scan.
30532 (move_or_delete_vzeroupper_1): Return true if the exit
30533 state is changed.
30534 (move_or_delete_vzeroupper): Visit basic blocks using the
30535 work-list based algorithm based on vt_find_locations in
30536 var-tracking.c.
30537
30538 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
30539
30540 2011-01-24 Nick Clifton <nickc@redhat.com>
30541
30542 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
30543 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
30544 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
30545 then define __v850e1__.
30546 * doc/invoke.texi: Document -mv850es.
30547
30548 2011-01-24 Richard Henderson <rth@redhat.com>
30549
30550 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
30551 compound unordered comparisons.
30552 * config/rx/rx.c (rx_split_fp_compare): Remove.
30553 * config/rx/rx-protos.h: Update.
30554 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
30555 (cbranchsf4): Don't call rx_split_fp_compare.
30556 (*cbranchsf4): Use rx_split_cbranch.
30557 (*cmpsf): Don't accept "i" constraint.
30558 (*conditional_branch): Only valid after reload.
30559 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
30560
30561 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
30562
30563 PR target/47385
30564 * config/rs6000/altivec.md (vector constant splitters): Add
30565 support for creating vector single precision constants if -mvsx is
30566 used and we would create the constant using Altivec primitives.
30567
30568 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
30569 Richard Sandiford <rdsandiford@googlemail.com>
30570
30571 PR rtl-optimization/47166
30572 * reload1.c (emit_reload_insns): Disable the spill_reg_store
30573 mechanism for PRE_MODIFY and POST_MODIFY.
30574 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
30575 reloadreg.
30576
30577 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
30578
30579 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
30580
30581 2011-01-22 Jan Hubicka <jh@suse.cz>
30582
30583 PR lto/47333
30584 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
30585
30586 2011-01-22 Jan Hubicka <jh@suse.cz>
30587
30588 PR tree-optimization/43884
30589 PR lto/44334
30590 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
30591 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
30592
30593 2011-01-22 Anatoly Sokolov <aesok@post.ru>
30594
30595 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
30596 * config/s390/s390.c (s390_register_move_cost,
30597 s390_memory_move_cost): New.
30598 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
30599
30600 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30601
30602 PR middle-end/47401
30603 * except.c (sjlj_assign_call_site_values): Move setting the
30604 crtl->uses_eh_lsda flag to ...
30605 (sjlj_mark_call_sites): ... here.
30606 (sjlj_emit_function_enter): Support NULL dispatch label.
30607 (sjlj_build_landing_pads): In a function with no landing pads
30608 that still has must-not-throw regions, generate code to register
30609 a personality function with empty LSDA.
30610
30611 2011-01-21 Richard Henderson <rth@redhat.com>
30612
30613 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
30614
30615 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
30616
30617 * compare-elim.c: New file.
30618 * Makefile.in (OBJS-common): Add it.
30619 (compare-elim.o): New.
30620 * common.opt (fcompare-elim): New.
30621 * opts.c (default_options_table): Add OPT_fcompare_elim.
30622 * tree-pass.h (pass_compare_elim_after_reload): New.
30623 * passes.c (init_optimization_passes): Add it.
30624 * recog.h: Protect against re-inclusion.
30625 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
30626 * doc/invoke.texi (-fcompare-elim): Document it.
30627 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
30628 * doc/tm.texi: Rebuild.
30629
30630 2011-01-22 Nick Clifton <nickc@redhat.com>
30631
30632 * config/rx/rx.md (cstoresf4): Pass comparison operator to
30633 rx_split_fp_compare.
30634
30635 2011-01-22 Nick Clifton <nickc@redhat.com>
30636
30637 * config/rx/rx.md (UNSPEC_CONST): New.
30638 (deallocate_and_return): Wrap the amount popped off the stack in
30639 an UNSPEC_CONST in order to stop it being rejected by
30640 -mmax-constant-size.
30641 (pop_and_return): Add a "(return)" rtx.
30642 (call): Drop the immediate operand.
30643 (call_internal): Likewise.
30644 (call_value): Likewise.
30645 (call_value_internal): Likewise.
30646 (sibcall_internal): Likewise.
30647 (sibcall_value_internal): Likewise.
30648 (sibcall): Likewise. Generate an explicit call using
30649 sibcall_internal.
30650 (sibcall_value): Likewise.
30651 (mov<>): FAIL if a constant operand is not legitimate.
30652 (addsi3_unpsec): New pattern.
30653
30654 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
30655 (ok_for_max_constant): New function.
30656 (gen_safe_add): New function.
30657 (rx_expand_prologue): Use gen_safe_add.
30658 (rx_expand_epilogue): Likewise.
30659 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
30660 UNSPEC CONSTs.
30661
30662 2011-01-21 Jeff Law <law@redhat.com>
30663
30664 PR tree-optimization/47053
30665 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
30666 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
30667 statements are deleted.
30668 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
30669 is nonempty, then purge dead edges and cleanup the CFG.
30670
30671 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
30672
30673 PR debug/47402
30674 Temporarily revert:
30675 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
30676 PR debug/47106
30677 * tree-dfa.c (create_var_ann): Mark variable as used.
30678
30679 2011-01-21 Jakub Jelinek <jakub@redhat.com>
30680
30681 PR middle-end/45566
30682 * except.c (convert_to_eh_region_ranges): Emit queued no-region
30683 notes from other section in hot/cold partitioning even if
30684 last_action is -3. Increment call_site_base.
30685
30686 PR rtl-optimization/47366
30687 * fwprop.c (forward_propagate_into): Return bool. If
30688 any changes are made, -fnon-call-exceptions is used and
30689 REG_EH_REGION note is present, call purge_dead_edges
30690 and return true if it purged anything.
30691 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
30692 any EH edges were purged.
30693
30694 2011-01-21 Jeff Law <law@redhat.com>
30695
30696 PR rtl-optimization/41619
30697 * caller-save.c (setup_save_areas): Break out code to determine
30698 which hard regs are live across calls by examining the reload chains
30699 so that it is always used.
30700 Eliminate code which checked REG_N_CALLS_CROSSED.
30701
30702 2011-01-21 Jakub Jelinek <jakub@redhat.com>
30703
30704 PR tree-optimization/47355
30705 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
30706 NOP has non-debug uses beyond PHIs in new_bb.
30707
30708 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
30709
30710 PR debug/47106
30711 * cfgexpand.c (account_used_vars_for_block): Only account vars
30712 that are annotated as used.
30713 (estimated_stack_frame_size): Don't set TREE_USED.
30714 * tree-dfa.c (create_var_ann): Mark variable as used.
30715
30716 2011-01-21 Richard Guenther <rguenther@suse.de>
30717
30718 PR middle-end/47395
30719 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
30720
30721 2011-01-21 Richard Guenther <rguenther@suse.de>
30722
30723 PR tree-optimization/47365
30724 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
30725 (vn_reference_lookup_pieces): Adjust.
30726 (vn_reference_lookup): Likewise.
30727 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
30728 (vn_reference_lookup_3): Only look through kills if in
30729 VN_WALKREWRITE mode.
30730 (vn_reference_lookup_pieces): Adjust.
30731 (vn_reference_lookup): Likewise.
30732 (visit_reference_op_load): Likewise.
30733 (visit_reference_op_store): Likewise.
30734 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
30735 (compute_avail): Likewise.
30736 (eliminate): Likewise.
30737
30738 2011-01-21 Jakub Jelinek <jakub@redhat.com>
30739
30740 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
30741 DECL_IGNORED_P non-reg vars if they are used.
30742
30743 PR tree-optimization/47391
30744 * varpool.c (const_value_known_p): Return false if
30745 decl is volatile.
30746
30747 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
30748
30749 PR bootstrap/47215
30750 * config/i386/i386.c (ix86_local_alignment): Handle
30751 case for va_list_type_node is nil.
30752 (ix86_canonical_va_list_type): Likewise.
30753
30754 2011-01-21 Alan Modra <amodra@gmail.com>
30755
30756 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
30757 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
30758
30759 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30760
30761 * config/arm/arm.md (define_attr type): Rename f_load
30762 and f_store to f_fpa_load and f_fpa_store. Update.
30763 (write_conflict): Deal with rename fallout.
30764 (*push_fp_multi): Likewise.
30765 * config/arm/fpa.md (f_load): Use f_fpa_load.
30766 (f_store): Use f_fpa_store.
30767 (*movsf_fpa): Likewise.
30768 (*movdf_fpa): Likewise.
30769 (*movxf_fpa): Likewise.
30770 (*thumb2_movsf_fpa): Likewise.
30771 (*thumb2_movdf_fpa): Likewise.
30772 (*thumb2_movxf_fpa): Likewise.
30773 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
30774 f_loadd and f_stored.
30775 (*thumb2_movdi_vfp): Likewise.
30776 (*thumb2_movsf_vfp): Fix attribute to f_loads.
30777 (*thumb2_movsi_vfp): Likewise.
30778 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
30779 Use f_loads instead of f_load.
30780 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
30781
30782 2011-01-20 Anatoly Sokolov <aesok@post.ru>
30783
30784 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
30785 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
30786 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
30787 (xtensa_mode_dependent_address_p): New function.
30788 (constantpool_address_p): Make static. Change return type to bool.
30789 Change argument type to const_rtx. Use CONST_INT_P predicate.
30790
30791 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
30792
30793 PR debug/46583
30794 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
30795
30796 2011-01-20 Jakub Jelinek <jakub@redhat.com>
30797
30798 PR debug/47283
30799 * cfgexpand.c (expand_debug_expr): Instead of generating
30800 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
30801 etc. handling.
30802
30803 2011-01-20 Richard Guenther <rguenther@suse.de>
30804
30805 PR middle-end/47370
30806 * tree-inline.c (remap_gimple_op_r): Recurse manually for
30807 the pointer operand of MEM_REFs.
30808
30809 2011-01-20 Jakub Jelinek <jakub@redhat.com>
30810
30811 PR tree-optimization/46130
30812 * ipa-split.c (consider_split): If return_bb contains non-virtual
30813 PHIs other than for retval or if split_function would not adjust it,
30814 refuse to split.
30815
30816 2011-01-20 Richard Guenther <rguenther@suse.de>
30817
30818 PR tree-optimization/47167
30819 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
30820 Revert previous change, only avoid enumeral type changes.
30821
30822 2011-01-19 Mike Stump <mikestump@comcast.net>
30823
30824 * doc/tm.texi.in (BRANCH_COST): Englishify.
30825 * doc/tm.texi (BRANCH_COST): Likewise.
30826
30827 2011-01-19 Dodji Seketeli <dodji@redhat.com>
30828
30829 PR c++/47291
30830 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
30831 (gen_scheduled_generic_parms_dies): New functions.
30832 (gen_struct_or_union_type_die): Schedule template parameters DIEs
30833 generation for the end of CU compilation.
30834 (dwarf2out_finish): Generate template parameters DIEs here.
30835
30836 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
30837
30838 PR debug/46240
30839 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
30840 debug bind stmt on merge edges.
30841
30842 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
30843
30844 PR debug/47079
30845 PR debug/46724
30846 * function.c (instantiate_expr): Instantiate incoming rtl of
30847 implicit arguments, and recurse on VALUE_EXPRs.
30848 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
30849 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
30850
30851 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
30852
30853 * c-parser.c (c_parser_for_statement): Initialize
30854 collection_expression.
30855
30856 2011-01-19 Joseph Myers <joseph@codesourcery.com>
30857
30858 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
30859
30860 2011-01-19 Joseph Myers <joseph@codesourcery.com>
30861
30862 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
30863 (LINK_SHLIB_SPEC): Don't use %(link_path).
30864 (SUBTARGET_EXTRA_SPECS): Remove link_path.
30865
30866 2011-01-19 Joseph Myers <joseph@codesourcery.com>
30867
30868 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
30869 (NO_SHARED_LIB_SUPPORT): Remove.
30870 (LINK_SHLIB_SPEC): Remove one conditional definition.
30871
30872 2011-01-19 Joseph Myers <joseph@codesourcery.com>
30873
30874 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
30875 %{call_shared}.
30876 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
30877 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
30878 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
30879 %{call_shared} and conditionals on these options not being passed.
30880 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
30881 %{call_shared}.
30882
30883 2011-01-19 Jakub Jelinek <jakub@redhat.com>
30884
30885 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
30886 simplify.
30887
30888 * ipa-split.c: Spelling fixes.
30889
30890 2011-01-19 Richard Henderson <rth@redhat.com>
30891
30892 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
30893 (*mulsi3): Likewise.
30894
30895 * longlong.h [__mn10300__] (count_leading_zeros): New.
30896 [__mn10300__] (umul_ppmm, smul_ppmm): New.
30897 [__mn10300__] (add_ssaaaa, subddmmss): New.
30898 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
30899 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
30900
30901 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30902
30903 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
30904
30905 2011-01-19 Richard Henderson <rth@redhat.com>
30906
30907 * config/mn10300/mn10300.md (addsi3_flags): New.
30908 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
30909 (subsi3_flags, subc_internal, subdi3): New.
30910 (subdi3_internal, *subdi3_degenerate): New.
30911 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
30912
30913 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
30914 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
30915 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
30916 * config/mn10300/mn10300-protos.h: Update.
30917 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
30918 (return_ret): Likewise. Rename from return_internal_regs.
30919 (return_internal): Remove.
30920
30921 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
30922 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
30923 (mn10300_legitimate_constant_p): Likewise.
30924 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
30925 (mn10300_frame_size): New.
30926 (mn10300_expand_prologue): Use it.
30927 (mn10300_expand_epilogue): Likewise.
30928 (mn10300_initial_offset): Likewise.
30929 * config/mn10300/mn10300-protos.h: Update.
30930 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
30931 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
30932 (prologue, epilogue, return_internal): Tidy output code.
30933 (mn10300_store_multiple_operation, return): Likewise.
30934 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
30935 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
30936 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
30937 (load_pic, am33_load_pic): New.
30938 (mn10300_load_pic0, mn10300_load_pic1): New.
30939
30940 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
30941 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
30942 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
30943 (cc_flags_for_mode, cc_flags_for_code): New.
30944 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
30945 overflow flag is not valid. Validate that the flags we need
30946 for the comparison are valid.
30947 (mn10300_output_cmp): Remove.
30948 (mn10300_output_add): New.
30949 (mn10300_select_cc_mode): Use cc_flags_for_code.
30950 (mn10300_split_cbranch): New.
30951 (mn10300_match_ccmode): New.
30952 (mn10300_split_and_operand_count): New.
30953 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
30954 to the function.
30955 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
30956 (addsi3): ... here. Use mn10300_output_add.
30957 (*addsi3_flags): New.
30958 (*am33_subsi3, *mn10300_subsi3): Merge...
30959 (subsi3): ... here. Use attribute isa.
30960 (*subsi3_flags): New.
30961 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
30962 when possible.
30963 (*am33_andsi3, *mn10300_andsi3): Merge...
30964 (andsi3): ... here.
30965 (*andsi3_flags): New.
30966 (andsi3 splitters): New.
30967 (*am33_iorsi3, *mn10300_iorsi3): Merge...
30968 (iorsi3): ... here.
30969 (*iorsi3_flags): New.
30970 (*am33_xorsi3, *mn10300_xorsi3): Merge...
30971 (xorsi3): ... here.
30972 (*xorsi3_flags): New.
30973 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
30974 (one_cmplsi2): ... here.
30975 (*one_cmplsi2_flags): New.
30976 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
30977 instead of "dax" in constraints. Use mn10300_split_cbranch.
30978 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
30979 use matching constraints to eliminate a self-comparison.
30980 (*integer_conditional_branch): Rename from integer_conditional_branch.
30981 Use int_mode_flags to match CC_REG.
30982 (*cbranchsi4_btst, *btstsi): New.
30983 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
30984 mn10300_split_cbranch.
30985 (*am33_cmpsf): Rename from am33_cmpsf.
30986 (*float_conditional_branch): Rename from float_conditional_branch.
30987 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
30988 (zero_extendqisi2): ... here.
30989 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
30990 (zero_extendhisi2): ... here.
30991 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
30992 (extendqisi2): ... here.
30993 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
30994 (extendhisi2): ... here.
30995 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
30996 (ashlsi3): ... here.
30997 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
30998 (lshrsi3): ... here.
30999 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
31000 (ashrsi3): ... here.
31001 (consecutive add peephole): Remove.
31002 * config/mn10300/predicates.md (label_ref_operand): New.
31003 (int_mode_flags): New.
31004 (CCZN_comparison_operator): New.
31005
31006 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
31007 (throughput_42_latency_43): New reservation.
31008 (mulsidi3, umulsidi3): New expanders.
31009 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
31010 the MDR register to allocation; separately allocate the low and
31011 high parts of the DImode result.
31012 (umulsidi3_internal): Similarly.
31013 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
31014 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
31015 (udivsi3, umodsi3): Remove.
31016 (udivmodsi4, divmodsi4): New expanders.
31017 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
31018 (*divmodsi4): Simiarly.
31019 (ext_internal): New.
31020
31021 * config/mn10300/constraints.md ("z"): New constraint.
31022 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
31023 (FIXED_REGISTERS): Don't fix MDR.
31024 (CALL_USED_REGSITERS): Reformat nicely.
31025 (REG_ALLOC_ORDER): Add MDR.
31026 (enum regclass): Add MDR_REGS.
31027 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
31028 (IRA_COVER_CLASSES): Add MDR_REGS.
31029 (REGNO_REG_CLASS): Handle MDR_REG.
31030 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
31031 (mn10300_register_move_cost): Likewise.
31032 * config/mn10300/mn10300.md (MDR_REG): New.
31033 (*movsi_internal): Handle moves to/from MDR_REGS.
31034
31035 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
31036 POST_MODIFY.
31037 (mn10300_secondary_reload): Tidy combination reload classes.
31038 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
31039 addresses for AM33. Allow symbolic offsets for reg+imm.
31040 (mn10300_regno_in_class_p): New.
31041 (mn10300_legitimize_reload_address): New.
31042 * config/mn10300/mn10300.h (enum reg_class): Remove
31043 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
31044 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
31045 SP_OR_GENERAL_REGS.
31046 (REG_CLASS_NAMES): Update to match.
31047 (REG_CLASS_CONTENTS): Likewise.
31048 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
31049 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
31050 (REGNO_IN_RANGE_P): Remove.
31051 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
31052 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
31053 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
31054 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
31055 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
31056 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
31057 (REGNO_GENERAL_P): New.
31058 (HAVE_POST_MODIFY_DISP): New.
31059 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
31060 (LEGITIMIZE_RELOAD_ADDRESS): New.
31061 * config/mn10300/mn10300-protos.h: Update.
31062
31063 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
31064 DATA_REGS for AM33 stack-pointer destination.
31065 (mn10300_preferred_output_reload_class): Likewise.
31066 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
31067 into a form appropriate for ...
31068 (TARGET_SECONDARY_RELOAD): New.
31069 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
31070 * config/mn10300/mn10300-protos.h: Update.
31071 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
31072 reload_insi; use the "A" constraint for the scratch; handle AM33
31073 moves of sp to non-address registers.
31074
31075 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
31076 (*movqi_internal): ... here.
31077 (*am33_movhi, *mn10300_movhi): Merge into...
31078 (*movhi_internal): ... here.
31079 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
31080 as the source/destination of moves from/to SP.
31081 (movsf): Only allow for AM33-2.
31082 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
31083 any integer constant constraint. Only allow for AM33-2. Tidy
31084 all of the alternative outputs.
31085 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
31086 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
31087 for MN103.
31088 (udivsi3, umodsi3): New patterns for MN103 only.
31089
31090 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
31091
31092 * doc/tm.texi.in: Spell out that a lack of register class unions
31093 can lead to ICEs.
31094 * doc/tm.texi: Regenerate.
31095
31096 2011-01-19 Jakub Jelinek <jakub@redhat.com>
31097
31098 PR rtl-optimization/47337
31099 * dce.c (check_argument_store): New function.
31100 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
31101
31102 PR tree-optimization/47290
31103 * tree-eh.c (infinite_empty_loop_p): New function.
31104 (cleanup_empty_eh): Use it.
31105
31106 2011-01-18 Steve Ellcey <sje@cup.hp.com>
31107
31108 PR target/46997
31109 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
31110 (a64_expand_widen_sum): Ditto.
31111 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
31112 (vec_extract_evenodd_help): Ditto.
31113 (vec_extract_evenv4hi): Ditto.
31114 (vec_extract_oddv4hi): Ditto.
31115 (vec_extract_evenv2si): Ditto.
31116 (vec_extract_oddv2si): Ditto.
31117 (vec_extract_evenv2sf): Ditto.
31118 (vec_extract_oddv2sf): Ditto.
31119 (vec_pack_trunc_v4hi: Ditto.
31120 (vec_pack_trunc_v2si): Ditto.
31121 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
31122 (vec_interleave_highv8qi): Ditto.
31123 (mix1_r): Ditto.
31124 (vec_extract_oddv8qi): Ditto.
31125 (vec_interleave_lowv4hi): Ditto.
31126 (vec_interleave_highv4hi): Ditto.
31127 (vec_interleave_lowv2si): Ditto.
31128 (vec_interleave_highv2si): Ditto.
31129
31130 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31131
31132 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
31133 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
31134 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
31135 (pa_c_mode_for_suffix): New.
31136 (TARGET_EXPAND_BUILTIN): Define.
31137 (TARGET_C_MODE_FOR_SUFFIX): Define.
31138 (pa_builtins): Define.
31139 (pa_init_builtins): Register __float128 type and init new support
31140 builtins.
31141 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
31142 * config/pa/quadlib.c (_U_Qfcopysign): New.
31143
31144 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
31145
31146 PR middle-end/46894
31147 * explow.c (allocate_dynamic_stack_space): Do not assume more than
31148 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
31149 are defined.
31150
31151 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31152
31153 PR tree-optimization/47179
31154 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
31155 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
31156
31157 2011-01-18 Richard Guenther <rguenther@suse.de>
31158
31159 PR rtl-optimization/47216
31160 * emit-rtl.c: Include tree-flow.h.
31161 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
31162 of replicating it with different semantics.
31163 * Makefile.in (emit-rtl.o): Adjust.
31164
31165 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31166
31167 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
31168 (cortex_a9_dp): Handle neon types correctly.
31169
31170 2011-01-18 Jakub Jelinek <jakub@redhat.com>
31171
31172 PR rtl-optimization/47299
31173 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
31174 subtarget. Use normal multiplication if both operands are constants.
31175 * expmed.c (expand_widening_mult): Don't try to optimize constant
31176 multiplication if op0 has VOIDmode. Convert op1 constant to mode
31177 before using it.
31178
31179 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31180
31181 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
31182 spacing after 'e.g.', typos, comma, hyphenation.
31183
31184 2011-01-17 Richard Henderson <rth@redhat.com>
31185
31186 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
31187 (rx_restricted_mem_operand): New.
31188 (rx_shift_operand): Use register_operand.
31189 (rx_source_operand, rx_compare_operand): Likewise.
31190 * config/rx/rx.md (addsi3_flags): New expander.
31191 (adddi3): Rewrite as expander.
31192 (adc_internal, *adc_flags, adddi3_internal): New patterns.
31193 (subsi3_flags): New expander.
31194 (subdi3): Rewrite as expander.
31195 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
31196
31197 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
31198 (rx_init_builtins): Remove sat builtin.
31199 (rx_expand_builtin): Likewise.
31200 * config/rx/rx.md (ssaddsi3): New.
31201 (*sat): Rename from sat. Represent the CC_REG input.
31202
31203 * config/rx/predicates.md (rshift_operator): New.
31204 * config/rx/rx.c (rx_expand_insv): Remove.
31205 * config/rx/rx-protos.h: Update.
31206 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
31207 operand to the canonical position.
31208 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
31209 (*bitclr, *bitclr_in_memory): Similarly.
31210 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
31211 (insv): Retain the zero_extract in the expansion.
31212
31213 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
31214 (bswaphi2, bitinvert, revw): Likewise.
31215
31216 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
31217 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
31218 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
31219 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
31220 (bitset, bitset_in_memory): Likewise.
31221 (bitinvert, bitinvert_in_memory): Likewise.
31222 (bitclr, bitclr_in_memory): Likewise.
31223 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
31224 (rx_strend, rx_cmpstrn): Likewise.
31225 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
31226 (bitop peep2 patterns): Remove.
31227
31228 * config/rx/rx.c (rx_match_ccmode): New.
31229 * config/rx/rx-protos.h: Update.
31230 * config/rx/rx.md (abssi2): Clobber, don't set flags.
31231 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
31232 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
31233 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
31234 (fix_truncsfsi2, floatsisf2): Likewise.
31235 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
31236 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
31237 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
31238 (*subsi3_flags, *xorsi3_flags): New.
31239
31240 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
31241
31242 * config/rx/rx.c (rx_print_operand): Remove workaround for
31243 unsplit comparison operations.
31244
31245 * config/rx/rx.md (movsicc): Split after reload.
31246 (*movsicc): Merge *movsieq and *movsine via match_operator.
31247 (*stcc): New pattern.
31248
31249 * config/rx/rx.c (rx_float_compare_mode): Remove.
31250 * config/rx/rx.h (rx_float_compare_mode): Remove.
31251 * config/rx/rx.md (cstoresi4): Split after reload.
31252 (*sccc): New pattern.
31253
31254 * config/rx/predicates.md (label_ref_operand): New.
31255 (rx_z_comparison_operator): New.
31256 (rx_zs_comparison_operator): New.
31257 (rx_fp_comparison_operator): New.
31258 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
31259 Validate that the flags are set properly for the comparison.
31260 (rx_gen_cond_branch_template): Remove.
31261 (rx_cc_modes_compatible): Remove.
31262 (mode_from_flags): New.
31263 (flags_from_code): Rename from flags_needed_for_conditional.
31264 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
31265 (rx_select_cc_mode): Likewise.
31266 (rx_split_fp_compare): New.
31267 (rx_split_cbranch): New.
31268 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
31269 (*cbranchsi4): Use match_operator and rx_split_cbranch.
31270 (*cbranchsf4): Similarly.
31271 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
31272 match_operator and rx_split_cbranch.
31273 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
31274 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
31275 (*cmpsi): Rename from cmpsi.
31276 (*tstsi): Rename from tstsi.
31277 (*cmpsf): Rename from cmpsf; use CC_Fmode.
31278 (*conditional_branch): Rename from conditional_branch.
31279 (*reveresed_conditional_branch): Remove.
31280 (b<code>): Remove expander.
31281 * config/rx/rx-protos.h: Update.
31282
31283 * config/rx/rx.c (rx_compare_redundant): Remove.
31284 * config/rx/rx.md (cmpsi): Don't use it.
31285 * config/rx/rx-protos.h: Update.
31286
31287 * config/rx/rx-modes.def (CC_F): New mode.
31288 * config/rx/rx.c (rx_select_cc_mode): New.
31289 * config/rx/rx.h (SELECT_CC_MODE): Use it.
31290 * config/rx/rx-protos.h: Update.
31291
31292 2011-01-17 Richard Henderson <rth@redhat.com>
31293
31294 * except.c (dump_eh_tree): Fix stray ; after for statement.
31295
31296 2011-01-17 Richard Guenther <rguenther@suse.de>
31297
31298 PR tree-optimization/47313
31299 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
31300 handling before copying the body. Properly deal with
31301 by-reference result in SSA form.
31302
31303 2011-01-17 Ian Lance Taylor <iant@google.com>
31304
31305 PR target/47219
31306 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
31307 (struct_value_alias_set): Don't define.
31308 (sparc_option_override): Don't set sparc_sr_alias_set and
31309 struct_value_alias_set.
31310 (save_or_restore_regs): Use gen_frame_mem rather than calling
31311 set_mem_alias_set.
31312 (sparc_struct_value_rtx): Likewise.
31313
31314 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
31315
31316 PR target/47318
31317 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
31318 (_mm_maskstore_pd): Likewise.
31319 (_mm_maskload_ps): Likewise.
31320 (_mm_maskstore_ps): Likewise.
31321 (_mm256_maskload_pd): Change mask to __m256i.
31322 (_mm256_maskstore_pd): Likewise.
31323 (_mm256_maskload_ps): Likewise.
31324 (_mm256_maskstore_ps): Likewise.
31325
31326 * config/i386/i386-builtin-types.def: Updated.
31327 (ix86_expand_special_args_builtin): Likewise.
31328
31329 * config/i386/i386.c (bdesc_special_args): Update
31330 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
31331 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
31332 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
31333 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
31334
31335 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
31336 Use <avxpermvecmode> on mask register.
31337 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
31338
31339 2011-01-17 Olivier Hainque <hainque@adacore.com>
31340 Michael Haubenwallner <michael.haubenwallner@salomon.at>
31341 Eric Botcazou <ebotcazou@adacore.com>
31342
31343 PR target/46655
31344 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
31345 if <= USHRT_MAX in 32-bit mode.
31346
31347 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31348
31349 * doc/install.texi (Configuration, Specific): Wrap long
31350 lines in examples. Allow line wrapping in long options
31351 and URLs where beneficial for PDF output.
31352
31353 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
31354
31355 * config/mips/mips.c (mips_classify_symbol): Don't return
31356 SYMBOL_PC_RELATIVE for nonlocal labels.
31357
31358 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
31359
31360 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
31361
31362 2011-01-15 Jan Hubicka <jh@suse.cz>
31363
31364 PR tree-optimization/47276
31365 * ipa.c (function_and_variable_visibility): Do not try to mark alias
31366 declarations as needed.
31367
31368 2011-01-15 Martin Jambor <mjambor@suse.cz>
31369
31370 * common.opt (fdevirtualize): New flag.
31371 * doc/invoke.texi (Option Summary): Document it.
31372 * opts.c (default_options_table): Add devirtualize flag.
31373 * ipa-prop.c (detect_type_change): Return immediately if
31374 devirtualize flag is not set.
31375 (detect_type_change_ssa): Likewise.
31376 (compute_known_type_jump_func): Likewise.
31377 (ipa_analyze_virtual_call_uses): Likewise.
31378
31379 2011-01-14 Martin Jambor <mjambor@suse.cz>
31380
31381 PR tree-optimization/45934
31382 PR tree-optimization/46302
31383 * ipa-prop.c (type_change_info): New type.
31384 (stmt_may_be_vtbl_ptr_store): New function.
31385 (check_stmt_for_type_change): Likewise.
31386 (detect_type_change): Likewise.
31387 (detect_type_change_ssa): Likewise.
31388 (compute_complex_assign_jump_func): Check for dynamic type change.
31389 (compute_complex_ancestor_jump_func): Likewise.
31390 (compute_known_type_jump_func): Likewise.
31391 (compute_scalar_jump_functions): Likewise.
31392 (ipa_analyze_virtual_call_uses): Likewise.
31393 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
31394
31395 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31396
31397 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
31398 * config/i386/i386.opt (msse5): New Alias.
31399
31400 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31401
31402 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
31403 * config/sparc/linux64.h (CC1_SPEC): Likewise.
31404 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
31405 * config/sparc/sparc.h (CC1_SPEC): Likewise.
31406
31407 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31408
31409 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
31410 -mcpu options.
31411 * config/sparc/linux64.h (CC1_SPEC): Likewise.
31412 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
31413 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
31414 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
31415 Likewise.
31416 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
31417
31418 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31419
31420 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
31421
31422 2011-01-14 Mike Stump <mikestump@comcast.net>
31423
31424 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
31425 * config/fr30/fr30.md: Likweise
31426 (movsi_push): Likewise.
31427 (movsi_pop): Likewise.
31428 (enter_func): Likewise.
31429 * config/moxie/moxie.md (movsi_push): Likewise.
31430 (movsi_pop): Likewise.
31431
31432 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31433
31434 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
31435 %{no_archive} %{exact_version}.
31436 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
31437 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
31438 %{no_archive} %{exact_version}.
31439 * config/mips/openbsd.h (LINK_SPEC): Likewise.
31440 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
31441 * config/mips/vxworks.h: Likewise.
31442
31443 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31444
31445 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
31446
31447 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31448
31449 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
31450 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
31451
31452 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31453
31454 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
31455 -nodefaultlib.
31456
31457 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31458
31459 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
31460 for mcpu not cpu.
31461 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
31462 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
31463 not cpu.
31464 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
31465 Don't handle -shlib.
31466
31467 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31468
31469 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
31470 (CC1_SPEC): Don't handle -profile.
31471
31472 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31473
31474 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
31475 * config/mips/mips.h (CC1_SPEC): Likewise.
31476
31477 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31478
31479 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
31480 * config/mips/mips.h (CC1_SPEC): Likewise.
31481
31482 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31483
31484 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
31485 * config/m32r/linux.h (LINK_SPEC): Likewise.
31486 * config/mips/linux.h (LINK_SPEC): Likewise.
31487 * config/mips/linux64.h (LINK_SPEC): Likewise.
31488 * config/sparc/linux.h (LINK_SPEC): Likewise.
31489 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
31490 LINK_SPEC): Likewise.
31491 * config/xtensa/linux.h (LINK_SPEC): Likewise.
31492
31493 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31494
31495 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
31496 %{version:-v}.
31497 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
31498
31499 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31500
31501 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
31502 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
31503
31504 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31505
31506 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
31507
31508 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31509
31510 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
31511 supports -Bstatic/-Bdynamic.
31512 * configure: Regenerate.
31513
31514 2011-01-14 Jan Hubicka <jh@suse.cz>
31515 Jack Howarth <howarth@bromo.med.uc.edu>
31516
31517 PR target/46037
31518 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
31519 when checking debug_info_level. Test write_symbols instead of
31520 debug_hooks->var_location when setting flag_var_tracking_uninit.
31521
31522 2011-01-14 Richard Guenther <rguenther@suse.de>
31523
31524 PR tree-optimization/47179
31525 * target.def (ref_may_alias_errno): New target hook.
31526 * targhooks.h (default_ref_may_alias_errno): Declare.
31527 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
31528 (default_ref_may_alias_errno): New function.
31529 * target.h (struct ao_ref_s): Declare.
31530 * tree-ssa-alias.c: Include target.h.
31531 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
31532 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
31533 (targhooks.o): Likewise.
31534 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
31535 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
31536
31537 2011-01-14 Richard Guenther <rguenther@suse.de>
31538
31539 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
31540
31541 2011-01-14 Richard Guenther <rguenther@suse.de>
31542
31543 PR tree-optimization/47280
31544 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
31545 return CFG changes.
31546 (tree_ssa_forward_propagate_single_use_vars): Deal with
31547 CFG changes from associate_plusminus.
31548
31549 2011-01-14 Richard Guenther <rguenther@suse.de>
31550
31551 PR middle-end/47281
31552 Revert
31553 2011-01-11 Richard Guenther <rguenther@suse.de>
31554
31555 PR tree-optimization/46076
31556 * tree-ssa.c (useless_type_conversion_p): Conversions from
31557 unprototyped to empty argument list function types are useless.
31558
31559 2011-01-14 Richard Guenther <rguenther@suse.de>
31560
31561 PR tree-optimization/47286
31562 * tree-ssa-structalias.c (new_var_info): Register variables are global.
31563
31564 2011-01-14 Martin Jambor <mjambor@suse.cz>
31565
31566 PR middle-end/46823
31567 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
31568
31569 2011-01-13 Anatoly Sokolov <aesok@post.ru>
31570
31571 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
31572 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
31573 * config/xtensa/xtensa.c (xtensa_libcall_value,
31574 xtensa_function_value_regno_p): New functions.
31575 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
31576
31577 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
31578
31579 PR c++/47213
31580 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
31581 PE specific hook.
31582 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
31583 New function prototype.
31584 * config/i386/winnt.c (i386_pe_assemble_visibility):
31585 Warn only if attribute was specified by user.
31586
31587 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
31588
31589 PR target/47251
31590 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
31591 floating point.
31592 (floatunsdidf2_fcfidu): Ditto.
31593
31594 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31595
31596 * config/s390/s390.c (print_operand_address): Replace 'error' with
31597 'output_operand_lossage'.
31598 (print_operand): Likewise.
31599
31600 2011-01-13 Jeff Law <law@redhat.com>
31601
31602 PR rtl-optimization/39077
31603 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
31604 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
31605 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
31606 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
31607 * gcse.c (prune_insertions_deletions): New function.
31608 (compute_pre_data): Use it.
31609
31610 2011-01-13 Dodji Seketeli <dodji@redhat.com>
31611
31612 PR debug/PR46973
31613 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
31614 static function.
31615 (prune_unused_types_mark): Use it.
31616
31617 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
31618
31619 PR rtl-optimization/45352
31620 * sel-sched.c: Update copyright years.
31621 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
31622 in the advancing loop when we have issued issue_rate insns.
31623
31624 2011-01-12 Richard Henderson <rth@redhat.com>
31625
31626 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
31627 (TARGET_MD_ASM_CLOBBERS): New.
31628
31629 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
31630 (TARGET_DELEGITIMIZE_ADDRESS): New.
31631
31632 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
31633 (clzsi2, *bsch): New patterns.
31634
31635 * config/mn10300/mn10300.md (INT): New mode iterator.
31636 (*mov<INT>_clr): New pattern, and peep2 to generate it.
31637
31638 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
31639 flag_split_wide_types.
31640
31641 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
31642 (mn10300_trampoline_init): Rewrite without a template, an immediate
31643 load and a direct branch.
31644 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
31645
31646 2011-01-12 Anatoly Sokolov <aesok@post.ru>
31647
31648 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
31649 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
31650 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
31651 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
31652
31653 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
31654
31655 PR debug/47209
31656 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
31657 of type.
31658
31659 2011-01-12 Jan Hubicka <jh@suse.cz>
31660
31661 PR driver/47244
31662 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
31663 (PLUGIN_COND_CLOSE): New macro.
31664 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
31665
31666 2011-01-12 Richard Guenther <rguenther@suse.de>
31667
31668 PR lto/47259
31669 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
31670 register variables in a MEM_REF.
31671
31672 2011-01-12 Joseph Myers <joseph@codesourcery.com>
31673
31674 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
31675 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
31676 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
31677 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
31678 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
31679 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
31680 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
31681 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
31682 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
31683 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
31684 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
31685 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
31686 * config/gnu-user.h: New. Copied from linux.h.
31687 (LINUX_TARGET_STARTFILE_SPEC): Rename to
31688 GNU_USER_TARGET_STARTFILE_SPEC.
31689 (LINUX_TARGET_ENDFILE_SPEC): Rename to
31690 GNU_USER_TARGET_ENDFILE_SPEC.
31691 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
31692 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
31693 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
31694 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
31695 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
31696 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
31697 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
31698 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
31699 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
31700 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
31701 * config/arm/linux-eabi.h (CC1_SPEC): Use
31702 GNU_USER_TARGET_CC1_SPEC.
31703 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
31704 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
31705 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
31706 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
31707 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
31708 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
31709 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
31710 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
31711
31712 2011-01-12 Richard Guenther <rguenther@suse.de>
31713
31714 PR other/46946
31715 * doc/invoke.texi (ffast-math): Document it is turned on
31716 with -Ofast.
31717
31718 2011-01-12 Jan Hubicka <jh@suse.cz>
31719
31720 PR tree-optimization/47233
31721 * opts.c (common_handle_option): Disable ipa-reference with profile
31722 feedback.
31723
31724 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
31725
31726 * c-parser.c (c_parser_objc_at_property_declaration): Improved
31727 error message.
31728
31729 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
31730
31731 * c-parser.c (c_lex_one_token): Updated and reindented some
31732 comments. No changes in code.
31733
31734 2011-01-11 Ian Lance Taylor <iant@google.com>
31735
31736 * godump.c (go_output_var): Don't output the variable if there is
31737 already a type with the same name.
31738
31739 2011-01-11 Ian Lance Taylor <iant@google.com>
31740
31741 * godump.c (go_format_type): Don't generate float80.
31742
31743 2011-01-11 Richard Henderson <rth@redhat.com>
31744
31745 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
31746 declaration. Rewrite for both speed and size.
31747 (mn10300_address_cost_1): Remove.
31748 (mn10300_register_move_cost): New.
31749 (mn10300_memory_move_cost): New.
31750 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
31751 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
31752 extensions, shifts, BSWAP, CLZ.
31753 (mn10300_wide_const_load_uses_clr): Remove.
31754 (TARGET_REGISTER_MOVE_COST): New.
31755 (TARGET_MEMORY_MOVE_COST): New.
31756 * config/mn10300/mn10300-protos.h: Update.
31757 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
31758
31759 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
31760 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
31761 * config/mn10300/mn10300-protos.h: Update.
31762 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
31763 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
31764 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
31765 (*test_int_bitfield, *test_byte_bitfield): Remove.
31766 (*bit_test, *subreg_bit_test): Remove.
31767 * config/mn10300/predicates.md (const_8bit_operand): Remove.
31768
31769 * config/mn10300/constraints.md ("c"): Rename from "A".
31770 ("A", "D"): New constraint letters.
31771 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
31772 (fmssf4, fnmasf4, fnmssf4): Likewise.
31773
31774 * config/mn10300/mn10300.md (isa): New attribute.
31775 (enabled): New attribute.
31776
31777 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
31778 (abssf2, negsf2): Define only for hardware fp.
31779 (sqrtsf2): Reformat.
31780 (addsf3, subsf3, mulsf3): Merge expander and insn.
31781
31782 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
31783 (DEBUGGER_AUTO_OFFSET): Remove.
31784 (DEBUGGER_ARG_OFFSET): Remove.
31785
31786 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
31787 Emit register stores with the same offsets as the hardware.
31788 (mn10300_store_multiple_operation): Don't check that the register
31789 save offsets are monotonic.
31790 * config/mn10300/mn10300-protos.h: Update.
31791
31792 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
31793
31794 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
31795 in terms of the value on the stack, not the MDR register.
31796
31797 2011-01-11 Jan Hubicka <jh@suse.cz>
31798
31799 PR lto/45721
31800 PR lto/45375
31801 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
31802 (symbol_alias_set_destroy, symbol_alias_set_contains,
31803 propagate_aliases_backward): Declare.
31804 * lto-streamer-out.c (struct sets): New sturcture.
31805 (trivally_defined_alias): New function.
31806 (output_alias_pair_p): Rewrite.
31807 (output_unreferenced_globals): Fix output of alias pairs.
31808 (produce_symtab): Likewise.
31809 * ipa.c (function_and_variable_visibility): Set weak alias destination
31810 as needed in lto.
31811 * varasm.c (symbol_alias_set_t): Remove.
31812 (symbol_alias_set_destroy): Export.
31813 (propagate_aliases_forward, propagate_aliases_backward): New functions
31814 based on ...
31815 (compute_visible_aliases): ... this one; remove.
31816 (trivially_visible_alias): New
31817 (trivially_defined_alias): New.
31818 (remove_unreachable_alias_pairs): Rewrite.
31819 (finish_aliases_1): Reorganize code checking if alias is defined.
31820 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
31821 in LTO mode.
31822
31823 2011-01-11 Richard Guenther <rguenther@suse.de>
31824
31825 PR tree-optimization/46076
31826 * tree-ssa.c (useless_type_conversion_p): Conversions from
31827 unprototyped to empty argument list function types are useless.
31828
31829 2011-01-11 Richard Guenther <rguenther@suse.de>
31830
31831 PR middle-end/45235
31832 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
31833 volatile MEMs as MEM_READONLY_P.
31834
31835 2011-01-11 Richard Guenther <rguenther@suse.de>
31836
31837 PR tree-optimization/47239
31838 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
31839
31840 2011-01-11 Jeff Law <law@redhat.com>
31841
31842 PR tree-optimization/47086
31843 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
31844 IVs from statements that might throw.
31845
31846 2011-01-10 Jan Hubicka <jh@suse.cz>
31847
31848 PR lto/45375
31849 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
31850
31851 2011-01-10 Jan Hubicka <jh@suse.cz>
31852
31853 PR lto/45375
31854 * profile.c (read_profile_edge_counts): Ignore profile inconistency
31855 when correcting profile.
31856
31857 2011-01-10 Jan Hubicka <jh@suse.cz>
31858
31859 PR lto/46083
31860 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
31861 DECL_FINI_PRIORITY.
31862 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
31863 Restore DECL_FINI_PRIORITY.
31864
31865 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31866
31867 * doc/gimple.texi: Fix quoting of multi-word return values in
31868 @deftypefn statements. Ensure presence of return value. Wrap
31869 overlong @deftypefn lines.
31870 (is_gimple_operand, is_gimple_min_invariant_address): Remove
31871 descriptions of removed functions.
31872 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
31873 of multi-word return value in @deftypefn statement.
31874
31875 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31876
31877 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
31878 (Conditional Expressions, Logical Operators)
31879 (Statement and operand traversals): Do not indent smallexample
31880 code. Fix duplicate function argument in example.
31881
31882 2011-01-10 Jeff Law <law@redhat.com>
31883
31884 PR tree-optimization/47141
31885 * ipa-split.c (split_function): Handle case where we are
31886 returning a value and the return block has a virtual operand phi.
31887
31888 2011-01-10 Jan Hubicka <jh@suse.cz>
31889
31890 PR tree-optimization/47234
31891 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
31892 (pass_feedback_split_functions): Declare.
31893 * passes.c (init_optimization_passes): Add ipa-split as subpass of
31894 tree-profile.
31895 * ipa-split.c (gate_split_functions): Update comments; disable
31896 split-functions for profile_arc_flag and branch_probabilities.
31897 (gate_feedback_split_functions): New function.
31898 (execute_feedback_split_functions): New function.
31899 (pass_feedback_split_functions): New global var.
31900
31901 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
31902
31903 PR lto/46760
31904 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
31905 calling gimple_call_set_cannot_inline.
31906
31907 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
31908
31909 * config/darwin-sections.def: Remove unused section.
31910
31911 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
31912
31913 PR c++/47218
31914 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
31915
31916 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
31917
31918 PR objc/47232
31919 * c-parser.c (c_parser_declaration_or_fndef): Improved
31920 error message.
31921
31922 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
31923
31924 * config/i386/winnt.c (i386_pe_start_function): Make sure
31925 to switch back to function's section.
31926
31927 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
31928
31929 PR gcc/46902
31930 PR testsuite/46912
31931 * plugin.c: Move include of dlfcn.h from here...
31932 * system.h: ... to here.
31933
31934 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31935
31936 * doc/cpp.texi (C++ Named Operators): Fix markup for header
31937 file name.
31938 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
31939 two extra empty pages in PDF output.
31940
31941 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
31942
31943 PR objc/47078
31944 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
31945 for error recovery purposes behave as if it was not specified so
31946 that the default type is usd.
31947
31948 2011-01-07 Jan Hubicka <jh@suse.cz>
31949
31950 PR tree-optmization/46469
31951 * ipa.c (function_and_variable_visibility): Clear needed flags on
31952 nodes with external decls; handle weakrefs merging correctly.
31953
31954 2011-01-07 Joseph Myers <joseph@codesourcery.com>
31955
31956 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
31957 not false.
31958
31959 2011-01-07 Jan Hubicka <jh@suse.cz>
31960
31961 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
31962 and no longer claim that gold is required for linker plugin.
31963 * configure: Regenerate.
31964 * gcc.c (PLUGIN_COND): New macro.
31965 (LINK_COMMAND_SPEC): Use it.
31966 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
31967 * config.in (HAVE_LTO_PLUGIN): New.
31968 * configure.ac (--with-lto-plugin): New parameter; autodetect
31969 HAVE_LTO_PLUGIN.
31970
31971 2011-01-07 Jan Hubicka <jh@suse.cz>
31972
31973 PR tree-optimization/46367
31974 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
31975 when we can update original.
31976 (cgraph_mark_inline_edge): Sanity check.
31977 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
31978
31979 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31980
31981 * config/spu/spu.h (ASM_COMMENT_START): Define.
31982
31983 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
31984
31985 PR driver/42445
31986 * gcc.c (%>S): New.
31987 (SWITCH_KEEP_FOR_GCC): Likewise.
31988 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
31989 (do_spec_1): Handle "%>".
31990
31991 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
31992
31993 2011-01-07 Jakub Jelinek <jakub@redhat.com>
31994
31995 PR target/47201
31996 * config/i386/i386.c (ix86_delegitimize_address): If
31997 simplify_gen_subreg fails, return orig_x.
31998
31999 PR bootstrap/47187
32000 * value-prof.c (gimple_stringop_fixed_value): Handle
32001 lhs of the call properly.
32002
32003 2011-01-07 Jan Hubicka <jh@suse.cz>
32004
32005 PR lto/45375
32006 * lto-opt.c (lto_reissue_options): Set flag_shlib.
32007
32008 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
32009
32010 * target.def (function_switched_text_sections): New hook.
32011 * doc/tm.texi: Regenerated.
32012 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
32013 * final.c (default_function_switched_text_sections): New.
32014 (final_scan_insn): Call function_switched_text_sections when a
32015 mid-function section change occurs.
32016 * output.h (default_function_switched_text_sections): Declare.
32017 * config/darwin-protos.h (darwin_function_switched_text_sections):
32018 Likewise.
32019 * config/darwin.c (darwin_function_switched_text_sections): New.
32020 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
32021
32022 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
32023
32024 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
32025 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
32026 the secondary code fragment when outputting for DWARF == 2.
32027
32028 2011-01-07 Anatoly Sokolov <aesok@post.ru>
32029
32030 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
32031 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
32032 Remove.
32033 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
32034 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
32035
32036 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
32037
32038 PR debug/46704
32039 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
32040 when it is not empty.
32041
32042 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
32043
32044 Bobcat Enablement
32045 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
32046 (case ${target}): Add btver1.
32047 * config/i386/driver-i386.c (host_detect_local_cpu): Let
32048 -march=native recognize btver1 processors.
32049 * config/i386/i386-c.c (ix86_target_macros_internal): Add
32050 btver1 def_and_undef
32051 * config/i386/i386.c (struct processor_costs btver1_cost): New
32052 btver1 cost table.
32053 (m_BTVER1): New definition.
32054 (m_AMD_MULTIPLE): Includes m_BTVER1.
32055 (initial_ix86_tune_features): Add btver1 tune.
32056 (processor_target_table): Add btver1 entry.
32057 (static const char *const cpu_names): Add btver1 entry.
32058 (software_prefetching_beneficial_p): Add btver1.
32059 (ix86_option_override_internal): Add btver1 instruction sets.
32060 (ix86_issue_rate): Add btver1.
32061 (ix86_adjust_cost): Add btver1.
32062 * config/i386/i386.h (TARGET_BTVER1): New definition.
32063 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
32064 (enum processor_type): Add PROCESSOR_BTVER1.
32065 * config/i386/i386.md (define_attr "cpu"): Add btver1.
32066
32067 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32068
32069 PR target/43309
32070 * config/i386/i386.c (legitimize_tls_address)
32071 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
32072 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
32073 (tls_initial_exec_64_sun): New pattern.
32074
32075 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
32076
32077 * doc/invoke.texi (Overall Options): Improve wording and markup
32078 of the description of -wrapper.
32079
32080 2011-01-06 Joseph Myers <joseph@codesourcery.com>
32081
32082 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
32083 rdynamic, threads): New Driver options.
32084
32085 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32086
32087 PR target/38118
32088 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
32089 if coming from .tdata.
32090 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
32091
32092 2011-01-06 Jan Hubicka <jh@suse.cz>
32093
32094 PR lto/47188
32095 * collect2.c (main): Do not enable LTOmode when plugin is active.
32096
32097 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32098
32099 PR other/45915
32100 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
32101 --version output if supported.
32102 * configure: Regenerate.
32103
32104 2011-01-06 Joseph Myers <joseph@codesourcery.com>
32105
32106 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
32107 Driver options.
32108
32109 2011-01-06 Jakub Jelinek <jakub@redhat.com>
32110
32111 PR c/47150
32112 * c-convert.c (convert): When converting a complex expression
32113 other than COMPLEX_EXPR to a different complex type, ensure
32114 c_save_expr is called instead of save_expr, unless in_late_binary_op.
32115 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
32116 when converting COMPLEX_TYPE.
32117
32118 2011-01-06 Ira Rosen <irar@il.ibm.com>
32119
32120 PR tree-optimization/47139
32121 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
32122 only the last reduction value is used outside the loop. Update
32123 documentation.
32124
32125 2011-01-05 Joseph Myers <joseph@codesourcery.com>
32126
32127 * config/rtems.opt: New.
32128 * config.gcc (*-*-rtems*): Use rtems.opt.
32129
32130 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
32131
32132 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
32133 processors do not support 3DNow instructions.
32134
32135 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32136
32137 * config/spu/spu.c (spu_option_override): Set parameter
32138 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
32139
32140 2011-01-05 Jan Hubicka <jh@suse.cz>
32141
32142 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
32143 at the command line.
32144
32145 2011-01-05 Martin Jambor <mjambor@suse.cz>
32146
32147 PR lto/47162
32148 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
32149 deltas on streamed outgoing edges.
32150 (output_node_opt_summary): Output info for outgoing edges only when
32151 the node is in new parameter set.
32152 (output_cgraph_opt_summary): New parameter set, passed to the two
32153 aforementioned functions. Update its forward declaration and its
32154 callee too.
32155
32156 2011-01-05 Tom Tromey <tromey@redhat.com>
32157
32158 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
32159 operator to c_finish_omp_atomic.
32160 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
32161 (build_unary_op): Update.
32162 (build_modify_expr): Update.
32163 (build_asm_expr): Update.
32164
32165 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32166
32167 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
32168 newly inserted insns.
32169 (pad_bb): Likewise.
32170 (spu_emit_branch_hint): Likewise.
32171 (insert_hbrp_for_ilb_runout): Likewise.
32172 (spu_machine_dependent_reorg): Call df_finish_pass after
32173 schedule_insns returns.
32174
32175 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32176
32177 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
32178
32179 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
32180
32181 PR tree-optimization/47005
32182 * tree-sra.c (struct access): Add 'non_addressable' bit.
32183 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
32184 (decide_one_param_reduction): Return 0 if the parameter is passed by
32185 reference and one of the accesses in the group is non_addressable.
32186
32187 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
32188
32189 PR tree-optimization/47056
32190 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
32191 (mark_load): Likewise. Handle FUNCTION_DECL specially.
32192 (mark_store): Likewise. Pass STMT to ipa_record_reference.
32193
32194 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
32195
32196 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
32197 initializer. Skip view conversions from aggregate types.
32198
32199 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
32200
32201 PR bootstrap/47055
32202 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
32203
32204 2011-01-04 Philipp Thomas <pth@suse.de>
32205
32206 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
32207 obvious typo.
32208
32209 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32210
32211 * function.c (thread_prologue_and_epilogue_insns): Do not crash
32212 on empty epilogue sequences.
32213
32214 2011-01-04 Joseph Myers <joseph@codesourcery.com>
32215
32216 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
32217 non-static): New Driver options.
32218
32219 2011-01-04 Jie Zhang <jie@codesourcery.com>
32220
32221 PR driver/47137
32222 * gcc.c (default_compilers[]): Set combinable field to 0
32223 for all assembly languages.
32224
32225 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
32226
32227 * config/mips/loongson3a.md: New file.
32228 * config/mips/mips.md: Include loongson3a.md.
32229 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
32230 TUNE_LOONGSON_3A.
32231
32232 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
32233
32234 PR middle-end/47017
32235 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
32236 instead of convert_memory_address_addr_space on the base expression.
32237
32238 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32239
32240 * config/spu/spu.c (spu_option_override): Update error text
32241 for bad -march= / -mtune= values.
32242
32243 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32244
32245 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
32246 if branch-hint optimization will be performed.
32247
32248 2011-01-03 Jakub Jelinek <jakub@redhat.com>
32249
32250 PR tree-optimization/47148
32251 * ipa-split.c (split_function): Convert arguments to
32252 DECL_ARG_TYPE if possible.
32253
32254 PR tree-optimization/47155
32255 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
32256 when computing uns.
32257
32258 PR rtl-optimization/47157
32259 * combine.c (try_combine): If undobuf.other_insn becomes
32260 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
32261 and set *new_direct_jump_p too.
32262
32263 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
32264
32265 PR tree-optimization/47021
32266 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
32267
32268 2011-01-03 Jakub Jelinek <jakub@redhat.com>
32269
32270 * gcc.c (process_command): Update copyright notice dates.
32271 * gcov.c (print_version): Likewise.
32272 * gcov-dump.c (print_version): Likewise.
32273 * mips-tfile.c (main): Likewise.
32274 * mips-tdump.c (main): Likewise.
32275
32276 2011-01-03 Martin Jambor <mjambor@suse.cz>
32277
32278 PR tree-optimization/46801
32279 * tree-sra.c (type_internals_preclude_sra_p): Check whether
32280 aggregate fields start at byte boundary instead of the bit-field flag.
32281
32282 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
32283
32284 PR driver/47137
32285 * gcc.c (main): Revert revision 168407.
32286
32287 2011-01-03 Martin Jambor <mjambor@suse.cz>
32288
32289 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
32290
32291 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32292
32293 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
32294 vector optab to expand vector/scalar shift, update gimple to vector.
32295
32296 2011-01-03 Martin Jambor <mjambor@suse.cz>
32297
32298 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
32299 a thunk.
32300
32301 2011-01-03 Martin Jambor <mjambor@suse.cz>
32302
32303 PR tree-optimization/46984
32304 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
32305 HOST_WIDE_INT.
32306 (cgraph_create_indirect_edge): Fixed line length.
32307 (cgraph_indirect_call_info): Declare.
32308 (cgraph_make_edge_direct) Update declaration.
32309 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
32310 (cgraph_create_indirect_edge): Use it.
32311 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
32312 callees.
32313 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
32314 the new thunk_delta representation.
32315 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
32316 HOST_WIDE_INT.
32317 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
32318 (ipa_read_indirect_edge_info): Likewise.
32319 * lto-cgraph.c (output_edge_opt_summary): New function.
32320 (output_node_opt_summary): Call it on all outgoing edges.
32321 (input_edge_opt_summary): New function.
32322 (input_node_opt_summary): Call it on all outgoing edges.
32323
32324 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
32325
32326 PR driver/47137
32327 * gcc.c (main): Don't check have_o when settting combine_inputs.
32328
32329 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
32330
32331 * regrename.c: Add general comment describing the pass.
32332 (struct du_head): Remove 'length' field.
32333 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
32334 (regrename_optimize): Do not sort chains. Rework comments, add others.
32335 Force renaming to the preferred class (if any) in the first pass and do
32336 not consider registers that belong to it in the second pass.
32337 (create_new_chain): Do not set 'length' field.
32338 (scan_rtx_reg): Likewise.
32339
32340 2011-01-02 Jakub Jelinek <jakub@redhat.com>
32341
32342 PR tree-optimization/47140
32343 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
32344 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
32345 to bit_value_binop.
32346
32347 PR rtl-optimization/47028
32348 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
32349 parm_birth_insn instead of at the beginning of first bb.
32350
32351 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
32352
32353 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
32354 Remove the word "see" before "@pxref".
32355 * doc/rtl.texi: Remove the word "see" before "@pxref".
32356
32357 2011-01-01 Jan Hubicka <jh@suse.cz>
32358
32359 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
32360 memory.
32361
32362 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
32363
32364 PR target/38662
32365 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
32366
32367 \f
32368 Copyright (C) 2011 Free Software Foundation, Inc.
32369
32370 Copying and distribution of this file, with or without modification,
32371 are permitted in any medium without royalty provided the copyright
32372 notice and this notice are preserved.