1 2012-01-02 Jakub Jelinek <jakub@redhat.com>
4 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
7 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
9 * doc/invoke.texi (-flto and related options): Copy-edit.
11 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
13 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing
16 2012-01-02 Jakub Jelinek <jakub@redhat.com>
18 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
21 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
23 * expr.h (move_by_pieces_ninsns): Declare.
24 * expr.c (move_by_pieces_ninsns): Make external.
25 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
26 (mips_store_by_pieces_p): Likewise.
27 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
28 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
29 * config/mips/mips.c (mips_move_by_pieces_p): New function.
30 (mips_store_by_pieces_p): Likewise.
32 2012-01-02 Jakub Jelinek <jakub@redhat.com>
34 * passes.c (register_one_dump_file): Free full_name.
36 * reload1.c (reload): Don't allocate reg_max_ref_width
38 (calculate_elim_costs_all_insns): Free offsets_at and
39 offsets_known_at at the end and clear the pointers.
41 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
43 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
44 this option introduced in r180739.
46 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
49 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
50 (tmake_file target=avr): Add avr/t-multilib.
52 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
53 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
54 * config/avr/genmultilib.awk: New file.
55 * config/avr/t-multilib: New auto-generated file.
56 * config/avr/multilib.h: New auto-generated file.
57 * config/avr/t-avr (AVR_MCUS): New variable.
59 (s-mlib): Depend on t-multilib.
60 (t-multilib, multilib.h): New dependencies.
61 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
62 (MULTILIB_OPTIONS): Remove.
63 (MULTILIB_MATCHES): Remove.
64 (MULTILIB_DIRNAMES): Remove.
65 (MULTILIB_EXCEPTIONS): Remove:
66 * config/avr/genopt.sh: Don't use hard coded file name;
67 pass AVR_MCUS from t-avr instead.
69 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
71 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
73 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
75 Implement light-weight DImode support.
76 * config/avr/avr-dimode.md: New file.
77 * config/avr/avr.md: Include it.
78 (adjust_len): Add plus64, compare64.
79 (HIDI): Remove code iterator.
80 (code_stdname): New code attribute.
81 (rotx, rotsmode): Remove DI.
82 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
84 * config/avr/avr-protos.h (avr_have_dimode): New.
85 (avr_out_plus64, avr_out_compare64): New.
86 * config/avr/avr.c (avr_out_compare): Handle DImode.
87 (avr_have_dimode): New variable definition and initialization.
88 (avr_out_compare64, avr_out_plus64): New functions.
89 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
90 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
91 (avr_compare_pattern): Skip DImode comparisons.
93 2012-01-02 Revital Eres <revital.eres@linaro.org>
95 * ddg.c (def_has_ccmode_p): New function.
96 (add_cross_iteration_register_deps,
97 create_ddg_dep_from_intra_loop_link): Call it.
99 2012-01-02 Richard Guenther <rguenther@suse.de>
102 * invoke.texi (fassociative-math): Remove spurious paranthesis.
104 2012-01-01 Jakub Jelinek <jakub@redhat.com>
106 * gcc.c (process_command): Update copyright notice dates.
107 * gcov.c (print_version): Likewise.
108 * gcov-dump.c (print_version): Likewise.
109 * mips-tfile.c (main): Likewise.
110 * mips-tdump.c (main): Likewise.
112 2012-01-01 Ira Rosen <irar@il.ibm.com>
114 PR tree-optimization/51704
115 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
116 a use is inside the basic block or loop before accessing its
119 2012-01-01 Jan Hubicka <jhjh@suse.cz>
121 PR rtl-optimization/51069
122 * cfgloopmanip.c (remove_path): Removing path making irreducible
123 region unconditional makes BB part of the region.
125 2012-01-01 Jakub Jelinek <jakub@redhat.com>
127 PR tree-optimization/51683
128 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
129 calls with side-effects.
130 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
132 2011-12-31 Alexandre Oliva <aoliva@redhat.com>
134 * cselib.h (cselib_add_permanent_equiv): Declare.
135 (canonical_cselib_val): New.
136 * cselib.c (new_elt_loc_list): Rework to support value
137 equivalences. Adjust all callers.
138 (preserve_only_constants): Retain value equivalences.
139 (references_value_p): Retain preserved values.
140 (rtx_equal_for_cselib_1): Handle value equivalences.
141 (cselib_invalidate_regno): Use canonical value.
142 (cselib_add_permanent_equiv): New.
143 * alias.c (find_base_term): Reset locs lists while recursing.
144 * var-tracking.c (val_bind): New. Don't add equivalences
145 present in cselib table, compared with code moved from...
146 (val_store): ... here.
147 (val_resolve): Use val_bind.
148 (VAL_EXPR_HAS_REVERSE): Drop.
149 (add_uses): Do not create MOps for addresses. Do not mark
150 non-REG non-MEM expressions as requiring resolution.
151 (reverse_op): Record reverse as a cselib equivalence.
152 (add_stores): Use it. Do not create MOps for addresses.
153 Do not require resolution for non-REG non-MEM expressions.
154 Simplify support for reverse operations.
155 (compute_bb_dataflow): Drop reverse support.
156 (emit_notes_in_bb): Likewise.
157 (create_entry_value): Rename to...
158 (record_entry_value): ... this. Use cselib equivalences.
159 (vt_add_function_parameter): Adjust.
161 2011-12-30 Michael Meissner <meissner@linux.vnet.ibm.com>
163 * config/rs6000/rs6000.c (rs6000_inner_target_options): Fix thinko
164 in setting options via target #pragma or attribute.
166 2011-12-30 Anatoly Sokolov <aesok@post.ru>
168 * config/bfin/bfin.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
169 * config/bfin/bfin-protos.h (bfin_register_move_cost,
170 bfin_memory_move_cost): Remove.
171 * config/bfin/bfin.c (bfin_register_move_cost,
172 bfin_memory_move_cost): Make static. Change arguments type from
173 enum reg_class to reg_class_t and from int to bool.
174 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
176 2011-12-30 Nathan Sidwell <nathan@acm.org>
178 * gcov.c (total_lines, total_executed): New global vars.
179 (generate_results): Call executed_summary.
180 (executed_summary): New function, broken out of ...
181 (function_summary): ... here. Call it.
182 * coverage.c (coverage_finish): Also check for local_tick == -1.
183 * gcov-dump (tag_function): Correct labelling typo.
185 2011-12-29 Michael Meissner <meissner@linux.vnet.ibm.com>
188 * config/rs6000/rs6000.c (rs6000_assemble_integer): Delete check
189 for an initialized pointer being in a text section with
190 -mrelocatable, since it should never happen.
192 2011-12-29 Michael Eager <eager@eagercon.com>
194 * config/microblaze/microblaze.md: Add expander for simple_return,
195 return, add return_internal and simple_return_internal insns.
197 2011-12-29 Oleg Endo <olegendo@gcc.gnu.org>
199 * config/sh/sh.h (BRANCH_COST): Use sh_branch_cost variable.
200 * config/sh/sh.c (sh_option_override): Simplify sh_branch_cost
203 2011-12-28 Ian Lance Taylor <iant@google.com>
205 * dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Go for Go.
207 2011-12-28 Michael Meissner <meissner@linux.vnet.ibm.com>
210 * config/rs6000/rs6000.c (rs6000_assemble_integer): Don't call
211 unlikely_text_section_p. Instead check for being in a code
214 2011-12-28 Ira Rosen <irar@il.ibm.com>
216 PR tree-optimization/51684
217 * tree-vect-slp.c (vect_schedule_slp_instance): Get gsi of original
218 statement in case of a pattern.
219 (vect_schedule_slp): Likewise.
221 2011-12-27 Eric Botcazou <ebotcazou@adacore.com>
223 PR rtl-optimization/51667
224 * ree.c (insn_merge_code): Delete.
225 (is_insn_merge_attempted): Likewise.
226 (get_insn_status): Likewise.
227 (set_insn_status): Likewise.
228 (struct ext_cand): Add CODE and MODE fields.
229 (combine_set_extend): Rename to...
230 (combine_set_extension): ...this. Use above fields and tidy up.
231 (transform_ifelse): Likewise.
232 (get_defs): Return the chain of definitions.
233 (is_this_a_cmove): Merge into...
234 (is_cond_copy_insn): ...this. Return bool.
235 (make_defs_and_copies_lists): Adjust calls to get_defs and simplify.
236 (merge_def_and_ext): Adjust call to combine_set_extend.
237 (combine_reaching_defs): Remove calls to {g|s}et_insn_status.
238 (struct extend_info): Rename to...
239 (struct re_info): ...this. Add DEF_MAP field.
240 (add_ext_candidate): Merge into...
241 (add_removable_extension): ...this. Adjust calls to get_defs. Ensure
242 reaching definitions are associated with only one kind of extension.
243 (find_removable_extensions): Create and destroy the definition map.
244 (find_and_remove_re): Return void. Change 'long' variables to 'int'.
245 Do not deal with is_insn_merge_attempted.
247 2011-12-25 Jan Hubicka <jh@suse.cz>
250 * tree-ssa-threadupdate.c (redirect_edges): Watch for overflow.
252 2011-12-26 Oleg Endo <oleg.endo@t-online.de>
254 * config/sh/sync.md: Add soft atomics ABI description.
255 (fetchop_name): Use 'or' instead of 'ior'.
256 (fetchop_insn): Remove.
257 (atomic_compare_and_swap<mode>_soft):
258 Don't insert aligning nop after the write-back instruction. Fix
259 multi-line asm output formatting style.
260 (atomic_fetch_<fetchop_name><mode>_soft): Likewise.
261 (atomic_fetch_nand<mode>_soft): Likewise.
262 (atomic_<fetchop_name>_fetch<mode>_soft): Likewise.
263 (atomic_nand_fetch<mode>_soft): Likewise.
265 2011-12-23 Richard Henderson <rth@redhat.com>
267 * tree.def (VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR): Remove.
268 * cfgexpand.c (expand_debug_expr): Don't handle them.
269 * expr.c (expand_expr_real_2): Likewise.
270 * fold-const.c (fold_binary_loc): Likewise.
271 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
272 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
273 * tree-inline.c (estimate_operator_cost): Likewise.
274 * tree-pretty-print.c (dump_generic_node): Likewise.
275 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
276 * optabs.c (optab_for_tree_code): Likewise.
277 (can_vec_perm_for_code_p): Remove.
278 (expand_binop): Don't try it.
279 (init_optabs): Don't init vec_extract_even/odd_optab.
280 * genopinit.c (optabs): Likewise.
281 * optabs.h (OTI_vec_extract_even, OTI_vec_extract_odd): Remove.
282 (vec_extract_even_optab, vec_extract_odd_optab): Remove.
283 * tree-vect-data-refs.c (vect_strided_store_supported): Tidy code.
284 (vect_permute_store_chain): Use TYPE_VECTOR_SUBPARTS instead of
285 GET_MODE_NUNITS; check vect_gen_perm_mask return value instead of
286 asserting vect_strided_store_supported.
287 (vect_strided_load_supported): Use can_vec_perm_p.
288 (vect_permute_load_chain): Use VEC_PERM_EXPR.
290 * doc/generic.texi (VEC_EXTRACT_EVEN_EXPR): Remove.
291 (VEC_EXTRACT_ODD_EXPR): Remove.
292 * doc/md.texi (vec_extract_even, vec_extract_odd): Remove.
294 2011-12-23 Anatoly Sokolov <aesok@post.ru>
296 * config/score/score.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
297 * config/score/score-protos.h (score_register_move_cost): Remove.
298 * config/score/score.c (TARGET_REGISTER_MOVE_COST): Define.
299 (score_register_move_cost): Make static. Change arguments type from
300 enum reg_class to reg_class_t.
302 2011-12-23 Jakub Jelinek <jakub@redhat.com>
303 Richard Henderson <rth@redhat.com>
305 * tree.def (VEC_INTERLEAVE_HIGH_EXPR, VEC_INTERLEAVE_LOW_EXPR): Remove.
306 * gimple-pretty-print.c (dump_binary_rhs): Don't handle
307 VEC_INTERLEAVE_HIGH_EXPR and VEC_INTERLEAVE_LOW_EXPR.
308 * expr.c (expand_expr_real_2): Likewise.
309 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
310 * cfgexpand.c (expand_debug_expr): Likewise.
311 * tree-inline.c (estimate_operator_cost): Likewise.
312 * tree-pretty-print.c (dump_generic_node): Likewise.
313 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
314 * fold-const.c (fold_binary_loc): Likewise.
315 * doc/generic.texi (VEC_INTERLEAVE_HIGH_EXPR,
316 VEC_INTERLEAVE_LOW_EXPR): Remove documentation.
317 * optabs.c (optab_for_tree_code): Don't handle
318 VEC_INTERLEAVE_HIGH_EXPR and VEC_INTERLEAVE_LOW_EXPR.
319 (expand_binop, init_optabs): Remove vec_interleave_high_optab
320 and vec_interleave_low_optab.
321 * genopinit.c (optabs): Likewise.
322 * optabs.h (OTI_vec_interleave_high, OTI_vec_interleave_low): Remove.
323 (vec_interleave_high_optab, vec_interleave_low_optab): Remove.
324 * doc/md.texi (vec_interleave_high, vec_interleave_low): Remove
326 * tree-vect-stmts.c (gen_perm_mask): Renamed to...
327 (vect_gen_perm_mask): ... this. No longer static.
328 (perm_mask_for_reverse, vectorizable_load): Adjust callers.
329 * tree-vectorizer.h (vect_gen_perm_mask): New prototype.
330 * tree-vect-data-refs.c (vect_strided_store_supported): Don't try
331 VEC_INTERLEAVE_*_EXPR, use can_vec_perm_p instead of
332 can_vec_perm_for_code_p.
333 (vect_permute_store_chain): Generate VEC_PERM_EXPR with interleaving
334 masks instead of VEC_INTERLEAVE_HIGH_EXPR and VEC_INTERLEAVE_LOW_EXPR.
335 * config/i386/i386.c (expand_vec_perm_interleave2): If
336 expand_vec_perm_interleave3 would handle it, return false.
337 (expand_vec_perm_broadcast_1): Don't use vec_interleave_*_optab.
339 2011-12-23 Richard Henderson <rth@redhat.com>
341 * config/mips/loongson.md (UNSPEC_LOONGSON_PINSR_0,
342 UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2,
343 UNSPEC_LOONGSON_PINSR_3): Replace with...
344 (UNSPEC_LOONGSON_PINSRH): ... this.
345 (UNSPEC_LOONGSON_VINIT): New.
346 (UNSPEC_LOONGSON_DSLL, UNSPEC_LOONGSON_DSRL): New.
347 (VWB): New mode iterator.
348 (V_inner): New mode attribute.
349 (loongson_vec_init1_<VHB>): New.
350 (*vec_concatv2si): New.
351 (and<VWHB>3, ior<VWHB>3, xor<VWHB>3, one_cmpl<VWHB>2): New.
352 (*loongson_nor): New.
353 (loongson_pextrh): Un-macro-ify.
354 (loongson_pmaddhw): Likewise.
355 (smaxv4hi3, umaxv8qi3, sminv4hi3, uminv8qi3): Likewise.
356 (loongson_pinsrh_0): Represent with vec_select+vec_concat.
357 (loongson_pinsrh_1, loongson_pinsrh_2, loongson_pinsrh_3): Likewise.
358 (*vec_setv4hi, vec_setv4hi): New.
359 (sdot_prodv4hi): New.
360 (smax<VWB>3, smin<VWB>3): New.
361 (reduc_uplus_v8qi): New.
362 (loongson_pshufh): Remove destination matching input.
363 (ashl<VWH>3, ashr<VWH>3, lshr<VWH>3): Fix type attribute.
364 (vec_interleave_high<VWHB>, vec_interleave_low<VWHB>): Remove.
365 (loongson_punpckhbh, loongson_punpckhhw, loongson_punpckhhw_qi,
366 loongson_punpckhwd, loongson_punpckhwd_qi, loongson_punpckhwd_hi,
367 loongson_punpcklbh, loongson_punpcklhw, loongson_punpcklhw_qi,
368 loongson_punpcklwd, loongson_punpcklwd_qi, loongson_punpcklwd_hi,
369 vec_perm_const<VWHB>, vec_unpacks_lo_<VHB>, vec_unpacks_hi_<VHB>,
370 vec_unpacku_lo_<VHB>, vec_unpacku_hi_<VHB>, vec_shl_<VWHBDI>,
371 vec_shr_<VWHBDI>, reduc_uplus_<VWH>, reduc_splus_<VWHB>,
372 reduc_smax_<VWHB>, reduc_smin_<VWHB>, reduc_umax_<VWHB>,
373 reduc_umin_<VB>): New.
374 * config/mips/mips-ps-3d.md (vec_perm_const_ps): New.
375 (mips_pul_ps, mips_puu_ps, mips_pll_ps, mips_plu_ps): Expand in
376 terms of vec_perm_const_ps.
377 (vec_perm_constv2sf): New.
378 (vec_initv2sf): Use mips_expand_vector_init.
379 (vec_concatv2sf): Rename from vec_initv2sf_internal.
380 (vec_setv2sf): Use vec_perm_const_ps.
381 (reduc_splus_v2sf, reduc_smin_v2sf, reduc_smax_v2sf): New.
382 * config/mips/loongson.h (pshufh_u, pshufh_s): Don't pass dest to
384 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V4SF): New modes.
385 * config/mips/mips-protos.h: Update.
386 * config/mips/mips.c (mips_get_arg_info): Match V2SFmode, not all
388 (mips_return_mode_in_fpr_p): Likewise.
389 (mips_cannot_change_mode_class): Allow 8-byte integral mode changes.
390 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw,
391 CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh,
392 CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): Remove.
393 (mips_builtins): Remove first operand for loongson pshufh builtins.
394 (MAX_VECT_LEN, struct expand_vec_perm_d): New.
395 (mips_expand_vselect, mips_expand_vselect_vconcat,
396 mips_expand_vpc_loongson_even_odd, mips_expand_vpc_loongson_pshufh,
397 mips_expand_vpc_loongson_bcast, mips_expand_vec_perm_const_1,
398 mips_expand_vec_perm_const, mips_vectorize_vec_perm_const_ok,
399 mips_expand_vec_unpack, mips_constant_elt_p, mips_expand_vi_broadcast,
400 mips_expand_vi_constant, mips_expand_vi_loongson_one_pinsrh,
401 mips_expand_vi_general, mips_expand_vec_reduc, mips_expand_vec_minmax,
402 TARGET_VECTORIZE_VEC_PERM_CONST_OK): New.
403 (mips_expand_vector_init): Rewrite.
404 * config/mips/predicates.md (const_2_or_3_operand): New.
405 (const_0_to_3_operand): New.
407 2011-12-23 Dmitry Plotnikov <dplotnikov@ispras.ru>
409 * config/arm/neon.md (float<mode><V_cvtto>2): New.
410 (floatuns<mode><V_cvtto>2): New.
411 (fix_trunc<mode><V_cvtto>2): New.
412 (fix_truncuns<mode><V_cvtto>2): New.
413 * config/arm/iterators.md (V_cvtto): New iterator.
415 2011-12-23 Richard Guenther <rguenther@suse.de>
417 PR rtl-optimization/50396
418 * simplify-rtx.c (simplify_binary_operation_1): Properly
419 guard code that only works for integers.
421 2011-12-23 Tristan Gingold <gingold@adacore.com>
423 * config/vms/vms-crtlmap.map (log10): Fix typo.
425 2011-12-23 Tristan Gingold <gingold@adacore.com>
427 * config/ia64/vms.h (SUPPORTS_ONE_ONLY): Define.
429 2011-12-22 Bin Cheng <bin.cheng@arm.com>
430 Richard Guenther <rguenther@suse.de>
432 PR tree-optimization/43491
433 * tree-ssa-pre.c (eliminate): Don't replace global register
434 variable when it is the RHS of a single assign.
436 2011-12-22 Joey Ye <joey.ye@arm.com>
438 * toplev.c (process_options): Fix typo.
440 2011-12-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
443 * config/pa/pa.c (pa_som_tm_clone_table_section): New function.
444 (som_tm_clone_table_section): Declare.
445 (pa_file_start_space): Create $TM_CLONE_TABLE$ subspace.
446 (pa_som_asm_init_sections): Init som_tm_clone_table_section.
447 * config/pa/som.h (TARGET_ASM_TM_CLONE_TABLE_SECTION): Define.
449 2011-12-22 Richard Sandiford <rdsandiford@googlemail.com>
451 * doc/tm.texi.in (TARGET_PREPARE_PCH_SAVE): New hook.
452 * doc/tm.texi: Regenerate.
453 * target.def (prepare_pch_save): New hook.
454 * c-family/c-pch.c (c_common_write_pch): Call it.
455 * config/mips/mips.c (was_mips16_pch_p): Delete.
456 (mips_set_mips16_mode): Don't refer to was_mips16_pch_p.
457 (mips_prepare_pch_save): New function.
458 (TARGET_PREPARE_PCH_SAVE): Define.
460 2011-12-22 Aldy Hernandez <aldyh@redhat.com>
463 * opts.c (finish_options): Call sorry on -fgnu-tm and
464 -fnon-call-exceptions combination.
466 2011-12-22 Jonathan Wakely <jwakely.gcc@gmail.com>
468 * doc/invoke.texi (C++ Dialect Options): Add missing options and
469 move -Wzero-as-null-pointer-constant to ...
470 (Warning Options): ... here.
472 2011-12-22 Jonathan Wakely <jwakely.gcc@gmail.com>
475 * doc/invoke.texi (i386 and x86-64 Options): Fix description of
476 -mtune without -march.
478 2011-12-21 Richard Earnshaw <rearnsha@arm.com>
481 * arm.c (arm_function_ok_for_sibcall): Use DECL_WEAK in previous
484 2011-12-22 Tristan Gingold <gingold@adacore.com>
486 * config/ia64/ia64.c (ia64_promote_function_mode): Remove.
487 (TARGET_PROMOTE_FUNCTION_MODE): Remove.
488 (ia64_function_value): Call promote_function_mode instead of
489 ia64_promote_function_mode.
490 * config/ia64/vms.h (PROMOTE_MODE): Define.
491 (TARGET_PROMOTE_FUNCTION_MODE): Define.
493 2011-12-22 Uros Bizjak <ubizjak@gmail.com>
496 * common/config/alpha/alpha-common.c (alpha_option_optimization_table):
497 Enable flag_ree at -O2 or higher.
499 2011-12-22 Richard Guenther <rguenther@suse.de>
502 * lto.c (uniquify_nodes): Register TYPE_DECLs with the
505 2011-12-22 Bernd Schmidt <bernds@codesourcery.com>
507 * tree-pass.h (pass_reload): Declare.
508 * ira.c (overall_cost_before, saved_flag_ira_share_spill_slots):
509 New global variables, moved out of ira.
510 (do_reload): New static function, split off from the second half
514 (pass_ira): Use TV_IRA, set gate to NULL, and set flags to
516 (rest_of_handle_reload): New static function.
519 2011-12-22 Uros Bizjak <ubizjak@gmail.com>
521 * common/config/i386/i386-common.c (ix86_option_optimization_table):
522 Move OPT_free processing from ...
523 * config/i386/i386.c (ix86_option_override_internal): ... here.
525 2011-12-21 Richard Earnshaw <rearnsha@arm.com>
528 * arm.c (arm_function_ok_for_sibcall): Don't try to tailcall a
529 weak function on bare-metal EABI targets.
531 2011-12-21 Jonathan Wakely <jwakely.gcc@gmail.com>
532 Jim Avera <james_avera@yahoo.com>
534 * doc/extend.texi (__builtin_expect): Improve example.
536 2011-12-21 Uros Bizjak <ubizjak@gmail.com>
538 * config/i386/i386.c (ix86_option_override_internal): Enable flag_ree
539 also for 32bit targets.
541 2011-12-21 Richard Henderson <rth@redhat.com>
544 * dwarf2cfi.c (dwarf2out_frame_debug): Move any_cfis_emitted code...
545 (scan_trace): ... here.
547 2011-12-21 Jason Merrill <jason@redhat.com>
549 * doc/standards.texi (C++ language): Update for C++11.
551 2011-12-21 Jakub Jelinek <jakub@redhat.com>
553 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Initialize
554 *op0 and *op1 to NULL_TREE first to avoid warnings.
555 * calls.c (initialize_argument_information): Initialize base to avoid
560 * tree-eh.c (decide_copy_try_finally): At -O0, return true
561 even when ndests is not 1, if there are only gimple_clobber_p
562 (or debug) stmts in the finally sequence.
563 * tree-inline.c (estimate_num_insns): Return 0 for gimple_clobber_p
566 2011-12-21 Aldy Hernandez <aldyh@redhat.com>
569 * trans-mem.c (tm_log_add): Use create_tmp_var_reg.
571 2011-12-21 Martin Jambor <mjambor@suse.cz>
573 * tree-into-ssa.c (rewrite_update_stmt): Do not dump extra newlines.
574 (rewrite_update_enter_block): Likewise.
575 (dump_update_ssa): Likewise.
576 (update_ssa): Likewise but also dump a newline at the beginning.
578 2011-12-21 Enkovich Ilya <ilya.enkovich@intel.com>
581 * implicit-zee.c: Delete.
583 * Makefile.in: Replace implicit-zee.c with ree.c.
584 * config/i386/i386.c (ix86_option_override_internal): Rename
585 flag_zee to flag_ree.
586 * common.opt (fzee): Ignored.
588 * passes.c (init_optimization_passes): Replace pass_implicit_zee
590 * tree-pass.h (pass_implicit_zee): Delete.
592 * timevar.def (TV_ZEE): Delete.
594 * doc/invoke.texi: Add -free description.
596 2011-12-21 Tristan Gingold <gingold@adacore.com>
598 * config/vms/vms-protos.h (vms_function_section): New prototype.
599 * config/vms/vms.c (vms_function_section): New function.
600 * config/vms/vms.h (TARGET_ASM_FUNCTION_SECTION): Define.
602 2011-12-21 Richard Guenther <rguenther@suse.de>
605 * tree-outof-ssa.c (insert_value_copy_on_edge): Use the
606 mode of the pseudo as destination mode. Only assert that
607 is equal to the promoted mode of the decl if it is a REG.
609 2011-12-21 Tristan Gingold <gingold@adacore.com>
611 * config/vms/xm-vms.h (STANDARD_EXEC_PREFIX): Remove define.
613 2011-12-20 Richard Henderson <rth@redhat.com>
615 * config/ia64/ia64.c (MAX_VECT_LEN): New.
616 (struct expand_vec_perm_d): New.
617 (TARGET_VECTORIZE_VEC_PERM_CONST_OK): New.
618 (ia64_unpack_assemble): Use ia64_expand_vec_perm_const_1.
619 (expand_vselect, expand_vselect_vconcat): New.
620 (expand_vec_perm_identity, expand_vec_perm_shrp): New.
621 (expand_vec_perm_1, expand_vec_perm_broadcast): New.
622 (expand_vec_perm_interleave_2, expand_vec_perm_v4hi_5): New.
623 (ia64_expand_vec_perm_const_1, ia64_expand_vec_perm_const): New.
624 (ia64_vectorize_vec_perm_const_ok): New.
625 (ia64_expand_vec_setv2sf, ia64_expand_vec_perm_even_odd): New.
626 * config/ia64/ia64-protos.h: Update.
627 * config/ia64/vect.md (VEC): New mode iterator.
628 (vecint): New mode attribute.
629 (vec_interleave_lowv8qi, vec_interleave_highv8qi): Privatize with '*'.
630 (vec_interleave_lowv4hi, vec_interleave_highv4hi): Likewise.
631 (vec_interleave_lowv2si, vec_interleave_highv2si): Likewise.
632 (vec_interleave_lowv2sf, vec_interleave_highv2sf): Likewise.
633 (mix1_even, mix1_odd, mux1_alt): Likewise.
634 (mux1_brcst_qi): Remove '*' from name.
635 (vec_extract_evenv8qi, vec_extract_oddv8qi): Remove.
636 (vec_extract_evenv4hi, vec_extract_oddv4hi): Remove.
637 (vec_extract_evenv2si, vec_extract_oddv2si): Remove.
638 (vec_extract_evenv2sf, vec_extract_oddv2sf): Remove.
639 (vec_extract_evenodd_helper): Remove.
640 (vec_setv2sf): Use ia64_expand_vec_setv2sf.
641 (vec_pack_trunc_v4hi): Use ia64_expand_vec_perm_even_odd.
642 (vec_pack_trunc_v2si): Likewise.
643 (vec_perm_const<VEC>): New.
645 2011-12-20 Richard Henderson <rth@redhat.com>
647 * tree-vect-generic.c (expand_vector_operations_1): Correct tests
648 for vector types -- use the type not the mode. Fix optab selection
649 for vector shifts by a scalar. Handle over-large integer modes
652 2011-12-20 Richard Henderson <rth@redhat.com>
654 * config/arm/arm.md (*arm_xorsi3): Match iorsi3 and perform
655 post-reload splitting.
657 * config/arm/arm.md (*arm_cmpdi_unsigned): Enable for thumb2.
658 * config/arm/arm.c (arm_select_cc_mode): Use it.
660 2011-12-20 Richard Sandiford <rdsandiford@googlemail.com>
662 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Restrict
663 handling of signedness differences to integer types. Only build
664 a new optype if type1 isn't correct.
666 2011-12-20 Vladimir Makarov <vmakarov@redhat.com>
669 * ira-costs.c (find_costs_and_classes): Prefer registers even
670 if the memory cost is the same.
672 2011-12-20 Joseph Myers <joseph@codesourcery.com>
674 * c-decl.c (diagnose_mismatched_decls, grokdeclarator, grokfield)
675 (finish_struct): Refer to C11 in comments. Use flag_isoc11.
676 * c-parser.c (c_parser_static_assert_declaration)
677 (c_parser_static_assert_declaration_no_semi, c_parser_declspecs)
678 (c_parser_alignas_specifier, c_parser_alignof_expression): Refer
679 to C11 in comments. Use flag_isoc11.
680 * c-typeck.c (comptypes_check_different_types): Refer to C11 in
682 * doc/cpp.texi (Overview): Refer to -std=c11 instead of -std=c1x.
683 * doc/cppopts.texi (-std=c11, -std=gnu11): Document in preference
684 to -std=c1x and -std=gnu1x.
685 * doc/extend.texi (Inline, Alternate Keywords, Other Builtins)
686 (__builtin_complex, Unnamed Fields): Refer to -std=c11 and C11
687 instead of -std=c1x and C1X.
688 * doc/invoke.texi (-std=c11, -std=iso9899:2011): Document in
689 preference to -std=c1x.
690 (-std=gnu11): Document in preference to -std=gnu1x.
691 * doc/standards.texi: Document C11 instead of C1X. Document C11
692 as actual standard. Document headers required from freestanding
694 * ginclude/float.h, ginclude/stddef.h: Test __STDC_VERSION__ >=
695 201112L for C11. Update comments to refer to C11.
697 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
699 * configure: Regenerate.
701 2011-12-20 Bernd Schmidt <bernds@codesourcery.com>
704 * expr.c (store_field): Avoid a direct store if the mode is larger
705 than the size of the bit field.
706 * stor-layout.c (layout_decl): If flag_strict_volatile_bitfields,
707 treat non-volatile bit fields like volatile ones.
708 * toplev.c (process_options): Disallow combination of
709 -fstrict-volatile-bitfields and ABI versions less than 2.
710 * config/arm/arm.c (arm_option_override): Don't enable
711 flag_strict_volatile_bitfields if the ABI version is less than 2.
712 * config/h8300/h8300.c (h8300_option_override): Likewise.
713 * config/rx/rx.c (rx_option_override): Likewise.
714 * config/m32c/m32c.c (m32c_option_override): Likewise.
715 * config/sh/sh.c (sh_option_override): Likewise.
717 2011-12-20 Richard Guenther <rguenther@suse.de>
720 * dwarf2out.c (modified_type_die): When the type variant
721 chain is corrupt use the types name, if available, instead
724 2011-12-20 Tristan Gingold <gingold@adacore.com>
726 * config/alpha/alpha.c (alpha_start_function): Adjust condition to
727 create VMS trampoline entry point.
729 2011-12-19 Richard Sandiford <rdsandiford@googlemail.com>
731 PR rtl-optimization/42839
732 * fwprop.c (forward_propagate_subreg): Skip the SIGN/ZERO_EXTEND
733 optimization if the source register is already extended.
735 2011-12-19 Richard Sandiford <rdsandiford@googlemail.com>
737 * lower-subreg.c (can_decompose_p): Check every word of a hard
740 2011-12-19 Sandra Loosemore <sandra@codesourcery.com>
741 Tom de Vries <tom@codesourcery.com>
744 * cse.c (find_comparison_args): Detect fixed point and
747 2011-12-19 Aldy Hernandez <aldyh@redhat.com>
750 * trans-mem.c (ipa_tm_create_version): Unset DECL_WEAK.
752 2011-12-19 Quentin Neill <quentin.neill@amd.com>
755 * config/i386/driver-i386.c (host_detect_local_cpu): Also check
756 family to distinguish PROCESSOR_ATHLON.
758 2011-12-19 Richard Guenther <rguenther@suse.de>
761 * streamer-hooks.h (struct streamer_hooks): Add second
762 ref_p parameter to write_tree.
763 (stream_write_tree): Adjust.
764 (stream_write_tree_shallow_non_ref): New define.
765 * lto-streamer.h (lto_output_tree): Adjust.
766 * lto-streamer-out.c (lto_output_tree): Likewise.
767 * tree-streamer-out.c (streamer_write_chain): Only
768 force the immediate tree to be streamed as non-reference.
770 2011-12-19 Martin Jambor <mjambor@suse.cz>
772 PR tree-optimization/51583
773 * tree-sra.c (load_assign_lhs_subreplacements): Call
774 force_gimple_operand_gsi when necessary also in case of no
775 corresponding replacement on the RHS.
777 2011-12-19 Jakub Jelinek <jakub@redhat.com>
779 * gimple.h (gimplify_seq_add_stmt): Rename to...
780 (gimple_seq_add_stmt_without_update): ... this.
781 * gimplify.c (gimplify_seq_add_stmt): Rename to...
782 (gimple_seq_add_stmt_without_update): ... this.
783 (gimplify_seq_add_stmt): New inline wrapper for it.
784 * tree-vect-patterns.c (append_pattern_def_seq): Use
785 gimple_seq_add_stmt_without_update instead of gimplify_seq_add_stmt.
787 PR tree-optimization/51596
788 * tree-cfg.c (replace_uses_by): Call gimple_purge_dead_eh_edges
792 PR tree-optimization/51606
793 * tree-vect-patterns.c (append_pattern_def_seq, new_pattern_def_seq):
794 New inline functions.
795 (vect_recog_over_widening_pattern,
796 vect_recog_vector_vector_shift_pattern,
797 vect_recog_sdivmod_pow2_pattern, vect_recog_mixed_size_cond_pattern,
798 adjust_bool_pattern_cast, vect_recog_bool_pattern): Use them.
800 2011-12-19 Richard Guenther <rguenther@suse.de>
803 * tree.c (free_lang_data_in_type): Do not unlink TYPE_DECL
805 (find_decls_types_r): Walk TYPE_DECLs in TYPE_FIELDS.
806 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Do
807 not stream TREE_CHAIN.
808 (write_ts_type_non_common_tree_pointers): Stream TYPE_FIELDS
809 using streamer_write_chain.
810 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
811 Do not stream TREE_CHAIN.
812 (lto_input_ts_type_non_common_tree_pointers): Stream TYPE_FIELDS
813 using streamer_read_chain.
814 * gimple-streamer-in.c (input_gimple_stmt): Skip non-FIELD_DECLs.
815 * gimple.c (gimple_canonical_types_compatible_p): Properly
816 handle trailing non-FIELD_DECLs in TYPE_FIELDS.
818 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
820 * configure: Regenerate.
822 2011-12-19 Bernd Schmidt <bernds@codesourcery.com>
824 * emit-rtl.c (init_emit_once): Initialize const_tiny_rtx[3] for
825 partial integer modes.
827 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
830 * config/m68k/m68k.h (FL_CAS, TARGET_CAS): Define.
831 * config/m68k/m68k.c (FL_FOR_isa_20): Add FL_CAS.
832 * config/m68k/sync.md: Use TARGET_CAS instead of (TARGET_68020 ||
835 2011-12-18 Anatoly Sokolov <aesok@post.ru>
837 * config/ia64/ia64.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
838 LEGITIMATE_ADDRESS_REG, LEGITIMATE_ADDRESS_DISP,
839 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
840 * config/ia64/ia64.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
841 (ia64_reg_ok_for_base_p, ia64_legitimate_address_reg,
842 ia64_legitimate_address_disp, ia64_legitimate_address_p): New
845 2011-12-17 Tom de Vries <tom@codesourcery.com>
847 PR tree-optimization/51491
848 * tree-ssa-ccp.c (insert_clobber_before_stack_restore)
849 (gsi_prev_dom_bb_nondebug, insert_clobbers_for_var): New function.
850 (ccp_fold_stmt): Use insert_clobbers_for_var after a successful
851 fold_builtin_alloca_with_align.
852 (ccp_visit_stmt): Calculate and free dominator info.
854 2011-12-16 Eric Botcazou <ebotcazou@adacore.com>
856 * config/sparc/sparc.md (UNSPEC_FRAME_BLOCKAGE): New constant.
857 (frame_blockage): New expander.
858 (frame_blockage<P:mode>): New instruction.
859 * config/sparc/sparc.c (sparc_expand_prologue): When the sequence of
860 instructions establishing the frame isn't atomic, emit frame blockage.
862 2011-12-16 Tristan Gingold <gingold@adacore.com>
864 * config/alpha/vms.h (USE_TM_CLONE_REGISTRY): Define.
866 2011-12-16 Tristan Gingold <gingold@adacore.com>
868 * config/alpha/alpha.c (alpha_use_linkage): Follow transparent alias.
869 (alpha_write_one_linkage): Use assemble_name to emit linkage name.
871 2011-12-16 Tristan Gingold <gingold@adacore.com>
873 * config/vms/t-vms (vms.o, vms-c.o): Force output filename.
875 2011-12-16 Tristan Gingold <gingold@adacore.com>
877 * config/vms/vms.c (VMS_CRTL_GLOBAL): Define.
878 (vms_patch_builtins): Handle.
879 * config/vms/vms-crtlmap.map: Add an entry for environ.
881 2011-12-16 Jakub Jelinek <jakub@redhat.com>
884 * sel-sched-ir.c (create_copy_of_insn_rtx): Copy all notes
885 other than REG_EQUAL, REG_EQUIV and REG_LABEL_OPERAND.
887 PR tree-optimization/51576
888 * tree-cfg.c (replace_uses_by): Call maybe_clean_or_replace_eh_stmt
889 even if fold_stmt didn't change anything.
891 2011-12-16 Richard Guenther <rguenther@suse.de>
894 * dwarf2out.c (gen_type_die_with_usage): Use the context of
895 the TYPE_DECL as well if it is file-scope.
897 2011-12-15 DJ Delorie <dj@redhat.com>
899 * config/rl78/rl78.md (return): Rename to rl78_return.
900 * config/rl78/rl78.c (rl78_expand_epilogue): Use new name.
901 (rl78_expand_eh_epilogue): Use new name.
902 (rl78_calculate_death_notes): Likewise.
904 2011-12-15 Jakub Jelinek <jakub@redhat.com>
906 * tree-vectorizer.h (struct _stmt_vec_info): Remove pattern_def_stmt
907 field, add pattern_def_seq.
908 (STMT_VINFO_PATTERN_DEF_STMT): Remove.
909 (STMT_VINFO_PATTERN_DEF_SEQ): Define.
910 (NUM_PATTERNS): Bump to 10.
911 * tree-vect-loop.c (vect_determine_vectorization_factor,
912 vect_transform_loop): Adjust for pattern def changing from a single
913 gimple stmt to gimple_seq.
914 * tree-vect-stmts.c (vect_analyze_stmt, new_stmt_vec_info,
915 free_stmt_vec_info): Likewise.
916 * tree-vect-patterns.c (vect_recog_over_widening_pattern,
917 vect_recog_vector_vector_shift_pattern,
918 vect_recog_mixed_size_cond_pattern, adjust_bool_pattern_cast,
919 adjust_bool_pattern, vect_mark_pattern_stmts): Likewise.
920 (vect_recog_sdivmod_pow2_pattern): New function.
921 (vect_vect_recog_func_ptrs): Add it.
923 * config/i386/sse.md (vcond<V_256:mode><VI_256:mode>,
924 vcond<V_128:mode><VI124_128:mode>, vcond<VI8F_128:mode>v2di):
925 Use general_operand instead of nonimmediate_operand for
926 operand 5 and no predicate for operands 1 and 2.
927 * config/i386/i386.c (ix86_expand_int_vcond): Optimize
928 x < 0 ? -1 : 0 and x < 0 ? 1 : 0 into vector arithmetic
931 2011-12-15 Georg-Johann Lay <avr@gjlay.de>
933 * config/avr/avr-protos.h (print_operand): Remove.
934 (print_operand_address): Remove.
935 * config/avr/avr.h (PRINT_OPERAND): Remove.
936 (PRINT_OPERAND_ADDRESS): Remove.
937 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
938 * config/avr/avr.c (TARGET_PRINT_OPERAND): New hook define.
939 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
940 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
941 (print_operand_address): Rename to...
942 (avr_print_operand_address): ...this and make static.
943 (print_operand): Rename to...
944 (avr_print_operand): ...this and make static.
945 (avr_print_operand_punct_valid_p): New static function.
947 2011-12-15 Andreas Tobler <andreast@fgznet.ch>
949 * config/i386/freebsd.h (TARGET_ASM_FILE_END): Define.
951 2011-12-15 Jakub Jelinek <jakub@redhat.com>
954 * c-parser.c (c_parser_omp_clause_num_threads,
955 c_parser_omp_clause_schedule): Call mark_exp_read.
957 2011-12-15 Romain Geissler <romain.geissler@gmail.com>
959 * builtins.def (BUILT_IN_STPNCPY_CHK): New definition.
960 * builtins.c (expand_builtin, fold_builtin_4, maybe_emit_chk_warning):
961 Add BUILT_IN_STPNCPY_CHK case.
962 * gimple-fold.c (gimple_fold_builtin): Likewise.
963 * tree-object-size.c (pass_through_call): Likewise.
964 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
965 call_may_clobber_ref_p_1): Likewise.
966 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
967 find_func_clobbers): Likewise.
968 * tree.h (fold_builtin_strncpy_chk): Rename to fold_builtin_stxncpy_chk
969 * builtins.c (fold_builtin_strncpy_chk): Likewise.
970 Rewrite stpncpy_chk calls to strncpy_chk calls if returned value is
973 2011-12-15 Richard Guenther <rguenther@suse.de>
976 * gimple.c (compare_type_names_p): Also compare the TREE_CODE.
977 (iterative_hash_name): Also hash the TREE_CODE.
978 (gimple_types_compatible_p_1): For types with a TYPE_DECL
979 name and a type DECL_CONTEXT recurse to that type.
980 (iterative_hash_gimple_type): Likewise.
982 2011-12-15 Iain Sandoe <iains@gcc.gnu.org>
984 * config/rs6000/rs6000.c (rs6000_emit_prologue): Move update of
985 VRSave mask to save_world() when that is in use.
987 2011-12-15 Richard Guenther <rguenther@suse.de>
989 * lto-wrapper.c (run_gcc): In non-parallel mode remove
990 ltrans inputs immediately after processing them. In parallel
991 mode truncate the ltrans inputs in the make rule that processes
992 them if temporary files are not to be preserved.
994 2011-12-15 Anatoly Sokolov <aesok@post.ru>
996 * config/arm/arm.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
997 * config/arm/arm.c (arm_memory_move_cost, arm_register_move_cost):
999 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
1001 2011-12-15 Richard Guenther <rguenther@suse.de>
1004 * tree.h (REGISTER_DEFS_IN_THIS_STMT, NECESSARY,
1005 STMT_IN_SSA_EDGE_WORKLIST): Remove no longer existing flag
1007 (TREE_ASM_WRITTEN): Update documentation to mention its use
1008 on TYPE_DECLs from debug info generation.
1009 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
1010 TREE_ASM_WRITTEN as always zero for TYPE_DECLs, similar to
1013 2011-12-15 Georg-Johann Lay <avr@gjlay.de>
1016 * config/avr/avr.c (expand_epilogue): Don't build SUBREG of fp.
1017 (avr_prologue_setup_frame): Ditto.
1019 2011-12-15 Jakub Jelinek <jakub@redhat.com>
1022 * tree-ssa-coalesce.c (coalesce_ssa_name): For !optimize, test
1023 !DECL_IGNORED_P instead of !DECL_ARTIFICIAL.
1025 2012-12-15 Richard Guenther <rguenther@suse.de>
1029 * lto-streamer-out.c (tree_is_indexable): Exclude block-local
1030 extern declarations.
1034 * tree-streamer-out.c (streamer_write_chain): Stream DECL_EXTERNAL
1035 VAR_DECLs and FUNCTION_DECLs locally.
1037 2011-12-14 Richard Henderson <rth@redhat.com>
1039 * config/arm/arm.md (*addsi3_compare0_scratch): Set predicable.
1040 (*compare_negsi_si, *compare_addsi2_op0): Likewise.
1041 (*compare_addsi2_op1, *zeroextractsi_compare0_scratch): Likewise.
1042 (*compareqi_eq0, *arm_cmpsi_insn, *arm_cmpsi_negshiftsi_si): Likewise.
1044 2011-12-14 Richard Guenther <rguenther@suse.de>
1046 * tree-cfg.c (replace_uses_by): Fixup TREE_CONSTANT for
1047 propagating all kinds of constants.
1049 2011-12-14 Richard Guenther <rguenther@suse.de>
1052 * lto-streamer-in.c (lto_read_body): Fixup local types
1053 TYPE_CANONICAL and variant chain.
1055 2011-12-14 Richard Guenther <rguenther@suse.de>
1057 * tree.c (free_lang_data_in_type): Do not clear fields
1058 dependent on debuginfo level setting.
1059 (find_decls_types_r): Use TYPE_STUB_DECL rathern than TREE_CHAIN.
1060 * tree.h (TYPE_STUB_DECL): Properly check that we access a type.
1062 2011-12-14 Georg-Johann Lay <avr@gjlay.de>
1065 * config/avr/avr.md (mulpsi3): New expander.
1066 (*umulqihipsi3, *umulhiqipsi3): New insns.
1067 (*mulsqipsi3.libgcc, *mulpsi3.libgcc): New insns.
1068 (mulsqipsi3, *mulpsi3): New insn-and-splits.
1069 (ashlpsi3): Turn to expander. Move insn code to...
1070 (*ashlpsi3): ...this new insn.
1072 2011-12-14 Richard Guenther <rguenther@suse.de>
1074 * tree-cfg.c (replace_uses_by): Only mark blocks altered
1075 that will make a difference. Only recompute ADDR_EXPR
1076 invariantness if it could possibly have changed. Do so
1077 before folding the statement.
1079 2011-12-13 Eric Botcazou <ebotcazou@adacore.com>
1081 * lto-streamer-out.c (write_symbol): Use proper 64-bit host type.
1082 * lto-cgraph.c (input_cgraph_opt_section): Use 'int' for offsets.
1083 * lto-streamer-in.c (lto_read_body): Likewise.
1084 (lto_input_toplevel_asms): Likewise.
1085 * lto-section-in.c (lto_create_simple_input_block): Likewise.
1086 * ipa-inline-analysis.c (inline_read_section): Likewise.
1087 * ipa-prop.c (ipa_prop_read_section): Likewise.
1089 * df.h (DF_NOTE): Fix typo in comment.
1091 2011-12-13 Aldy Hernandez <aldyh@redhat.com>
1093 * trans-mem.c (ipa_tm_create_version_alias): Set DECL_CONTEXT and
1096 2011-12-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1098 * regmove.c (fixup_match_2): Only access call_used_regs with hard regs.
1100 2011-12-13 Andrew Pinski <apinski@cavium.com>
1101 Adam Nemet <anemet@caviumnetworks.com>
1103 * config/mips/mips-cpus.def: Add Octeon2.
1104 * config/mips/mips-tables.opt: Regenerate.
1105 * config/mips/mips.md (define_attr "cpu"): Add Octeon2.
1106 * config/mips/driver-native.c (host_detect_local_cpu): Support Octeon2.
1107 * config/mips/octeon.md (octeon_arith): Add Octeon2.
1108 (octeon_condmove): Likewise.
1109 (octeon_load): Rename to ..
1110 (octeon_load_o1): this.
1111 (octeon_load_o2): New reserve.
1112 (octeon_cop_o2): New reserve.
1113 (octeon_store): Match Octeon2 also.
1114 (octeon_brj): Rename to ..
1115 (octeon_brj_o1): this.
1116 (octeon_brj_o2): New reserve.
1117 (octeon_imul3): Rename to ...
1118 (octeon_imul3_o1): this.
1119 (octeon_imul3_o2): New reserve.
1120 (octeon_imul): Rename to ...
1121 (octeon_imul_o1): this.
1122 (octeon_imul_o2): New reserve.
1123 (octeon_mfhilo): Rename to ...
1124 (octeon_mfhilo_o1): This.
1125 (octeon_mfhilo_o2): New reserve.
1126 (octeon_imadd): Rename to ...
1127 (octeon_imadd_o1): this.
1128 (octeon_imadd_o2): New reserve.
1129 (octeon_idiv): Rename to ..
1130 (octeon_idiv_o1): This.
1131 (octeon_idiv_o2_si): New reserve.
1132 (octeon_idiv_o2_di): Likewise.
1133 (octeon_unknown): Match Octeon2 also.
1134 * config/mips/mips.c (mips_rtx_cost_data): Add Octeon2 cost data.
1135 (mips_issue_rate): Octeon2 can issue 2 at a time.
1136 * config/mips/mips.h (TARGET_OCTEON): Match Octeon2 also.
1137 (TARGET_OCTEON2): New define.
1138 (TUNE_OCTEON): Match Octeon2 also.
1140 2011-12-13 Richard Henderson <rth@redhat.com>
1142 * config/sparc/tso.h: New file.
1143 * config.gcc (sparc-*-linux*, sparc*-*-solaris2*): Use it.
1144 * config/sparc/sparc.c (sparc_option_override): Honor
1145 SUBTARGET_DEFAULT_MEMORY_MODEL.
1146 * config/sparc/sparc.h (SUBTARGET_DEFAULT_MEMORY_MODEL): New.
1148 2011-12-13 Aldy Hernandez <aldyh@redhat.com>
1151 * trans-mem.c (struct diagnose_tm): Remove saw_unsafe.
1152 (diagnose_tm_1): Same.
1153 (ipa_tm_execute): Do not test tm_may_enter_irr before we set it.
1154 (ipa_tm_scan_irr_function): Return gracefully when no
1155 DECL_STRUCT_FUNCTION.
1156 (ipa_tm_scan_irr_block): Believe the user on TM attributes.
1158 2011-12-13 Martin Jambor <mjambor@suse.cz>
1161 * tree-sra.c (propagate_subaccesses_across_link): Do not propagate
1162 sub-accesses of scalar accesses.
1164 2011-12-13 Martin Jambor <mjambor@suse.cz>
1166 PR tree-optimization/51362
1167 * ipa-cp.c (estimate_local_effects): When estimated size of a
1168 specialized clone is zero, bump it to one.
1170 2011-12-13 Richard Guenther <rguenther@suse.de>
1173 * tree.c (find_decls_types_r): Also walk DECL_ORIGINAL_TYPE.
1174 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
1175 Stream DECL_ORIGINAL_TYPE.
1176 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers):
1179 2011-12-13 Jakub Jelinek <jakub@redhat.com>
1182 2011-12-12 Jakub Jelinek <jakub@redhat.com>
1184 PR tree-optimization/51481
1185 * gimple-fold.c (gimple_fold_call): Call
1186 maybe_clean_or_replace_eh_stmt. Avoid optimization if stmt has EH
1187 edges, but gimple_fold_builtin result can't throw.
1189 2011-12-13 Jakub Jelinek <jakub@redhat.com>
1190 Michael Matz <matz@suse.de>
1192 PR tree-optimization/51117
1193 * tree-eh.c (sink_clobbers): New function.
1194 (execute_lower_eh_dispatch): Call it for BBs ending with
1195 internally throwing RESX.
1196 * cfgexpand.c (add_scope_conflicts_1): Add all conflicts only
1197 at the first real instruction.
1199 2011-12-13 Tristan Gingold <gingold@adacore.com>
1201 * final.c (final_scan_insn): Guard the call to begin_epilogue
1204 2011-12-13 Tristan Gingold <gingold@adacore.com>
1206 * vmsdbgout.c (vmsdbgout_write_source_line): New function.
1207 (vmsdbgout_end_prologue): Call vmsdbgout_write_source_line.
1208 (vmsdbgout_begin_epilogue): Likewise.
1209 (vmsdbgout_end_epilogue): Likewise.
1210 (vmsdbgout_source_line): Move code to vmsdbgout_write_source_line.
1212 2011-12-13 Richard Guenther <rguenther@suse.de>
1215 * tree-cfg.c (replace_uses_by): Pass proper arguments to
1216 maybe_clean_or_replace_eh_stmt.
1218 2011-12-13 Richard Guenther <rguenther@suse.de>
1220 PR tree-optimization/51519
1221 * ipa-inline.c (edge_badness): Use edge growth in non-guessed
1222 branch probability case as well.
1224 2011-12-13 Revital Eres <revital.eres@linaro.org>
1226 * modulo-sched.c (mark_loop_unsched): Free bbs.
1228 2011-12-12 Jakub Jelinek <jakub@redhat.com>
1230 PR rtl-optimization/51495
1231 * function.c (thread_prologue_and_epilogue_insns): Don't add
1232 to bb_tail basic blocks that have EDGE_COMPLEX predecessor edges
1233 from basic blocks not needing prologue.
1235 PR tree-optimization/51481
1236 * gimple-fold.c (gimple_fold_call): Call
1237 maybe_clean_or_replace_eh_stmt. Avoid optimization if stmt has EH
1238 edges, but gimple_fold_builtin result can't throw.
1240 2011-12-12 Vladimir Makarov <vmakarov@redhat.com>
1242 PR rtl-optimization/21617
1243 * ira-color.c (bucket_allocno_compare_func): Don't compare
1244 allocno classes. Compare number of hard registers needed.
1246 2011-12-12 Eric Botcazou <ebotcazou@adacore.com>
1248 PR tree-optimization/50569
1249 * tree-sra.c (build_ref_for_model): Replicate a chain of COMPONENT_REFs
1250 in the expression of MODEL instead of just the last one.
1252 2011-12-12 Jakub Jelinek <jakub@redhat.com>
1255 * calls.c (internal_arg_pointer_based_exp_scan): Don't use
1256 VEC_safe_grow_cleared if idx is smaller than VEC_length.
1258 2011-12-12 Richard Sandiford <richard.sandiford@linaro.org>
1261 * optabs.c (maybe_legitimize_operand_same_code): Use copy_to_mode_reg
1262 instead of force_reg. Do nothing if the address is already a
1263 non-virtual pseudo register.
1265 2011-12-12 Torvald Riegel <triegel@redhat.com>
1267 * gimplify.c (voidify_wrapper_expr): Add default handling for
1270 2011-12-12 Torvald Riegel <triegel@redhat.com>
1272 * tree-ssa-tail-merge.c (gimple_equal_p): Don't treat transaction
1275 2011-12-12 Iain Sandoe <iains@gcc.gnu.org>
1277 * config/darwin-sections.def (zobj_const_data_section): Fix over-
1278 length section name.
1280 2011-12-11 Richard Henderson <rth@redhat.com>
1282 * config/rs6000/rs6000.c (rs6000_expand_interleave): Use
1283 BYTES_BIG_ENDIAN, not TARGET_BIG_ENDIAN.
1285 2011-12-11 Jakub Jelinek <jakub@redhat.com>
1287 PR tree-optimization/51485
1288 * tree-vect-data-refs.c (vect_analyze_data_refs): Give up on
1291 2011-12-11 Patrick Marlier <patrick.marlier@gmail.com>
1293 * trans-mem.c (ipa_tm_transform_calls_redirect): Do not remove edge.
1295 2011-12-10 Richard Henderson <rth@redhat.com>
1297 * config/rs6000/altivec.md (altivec_vmrghb): Rewrite pattern as
1298 vec_select + vec_concat.
1299 (altivec_vmrghh, altivec_vmrghw, altivec_vmrghsf, altivec_vmrglb,
1300 altivec_vmrglh, altivec_vmrglw, altivec_vmrglsf): Likewise.
1301 (vec_perm_constv16qi): New.
1302 (vec_extract_evenv4si, vec_extract_evenv4sf, vpkuhum_nomode,
1303 vpkuwum_nomode, vec_extract_oddv8hi, vec_extract_oddv16qi,
1304 vec_interleave_high<VI>, vec_interleave_low<VI>): Remove.
1305 * config/rs6000/paired.md (paired_merge00): Rewrite pattern as
1306 vec_select + vec_concat.
1307 (paired_merge10, paired_merge01, paired_merge11): Likewise.
1308 (vec_perm_constv2sf): New.
1309 (vec_interleave_highv2sf, vec_interleave_lowv2sf,
1310 vec_extract_evenv2sf, vec_extract_oddv2sf): Remove.
1311 * config/rs6000/spe.md (spe_evmergehi): Rewrite pattern as
1312 vec_select + vec_concat.
1313 (spe_evmergehilo, spe_evmergelo, spe_evmergelohi): New.
1314 (vec_perm_constv2si): New.
1315 * config/rs6000/vector.md (vec_interleave_highv4sf,
1316 vec_interleave_lowv4sf, vec_interleave_high<VEC_64>,
1317 vec_interleave_low<VEC_64>): Remove.
1318 * config/rs6000/vsx.md (VS_double): New mode attribute.
1319 (UNSPEC_VSX_XXPERMDI): Remove.
1320 (vsx_xxpermdi_<VSX_L>_1): Rewrite pattern as vec_select + vec_concat.
1321 (vsx_xxmrghw_<VSX_W>, vsx_xxmrglw_<VSX_W>): Likewise.
1322 (vsx_xxpermdi_<VSX_L>): Change to expander.
1323 (vec_perm_const<VSX_D>): New.
1324 (vsx_mergel_<VSX_D>, vsx_mergeh_<VSX_D>): New.
1325 * config/rs6000/predicates.md (const_0_to_1_operand): New.
1326 (const_2_to_3_operand): New.
1327 * config/rs6000/rs6000.c (TARGET_VECTORIZE_VEC_PERM_CONST_OK): New.
1328 (altivec_expand_vec_perm_const): New.
1329 (rs6000_expand_vec_perm_const_1, rs6000_expand_vec_perm_const): New.
1330 (rs6000_vectorize_vec_perm_const_ok): New.
1331 (rs6000_do_expand_vec_perm): New.
1332 (rs6000_expand_extract_even, rs6000_expand_interleave): New.
1333 * config/rs6000/rs6000-builtin.def (VEC_MERGE*): Update rtx codes.
1334 * config/rs6000/rs6000-modes.def: Add double-wide vector modes.
1335 * config/rs6000/rs6000-protos.h: Update.
1337 2011-12-10 Richard Henderson <rth@redhat.com>
1339 * expr.c (expand_expr_real_2) [VEC_PERM_EXPR]: Avoid passing a
1340 CONST_INT to expand_vec_perm as the selector.
1341 * optabs.c (expand_vec_perm): Assert the selector is of a proper mode.
1343 2011-12-10 Richard Henderson <rth@redhat.com>
1345 * genmodes.c (struct mode_data): Remove wider_2x member.
1346 (blank_mode): Adjust initializer.
1347 (calc_wider_mode): Use XALLOCAVEC.
1348 (emit_move_wider): Select double-width same-element vectors for
1350 * machmode.h (GET_MODE_2XWIDER_MODE): Update documentation.
1351 * config/i386/i386.c (doublesize_vector_mode): Remove.
1352 (expand_vselect_vconcat): Use GET_MODE_2XWIDER_MODE instead.
1354 2011-12-10 Joern Rennecke <joern.rennecke@embecosm.com>
1356 * config/epiphany/epiphany.h (USE_LOAD_POST_INCREMENT): Define.
1357 (USE_LOAD_POST_DECREMENT, USE_STORE_POST_INCREMENT): Likewise.
1358 (USE_STORE_POST_DECREMENT): Likewise.
1360 * config/epiphany/epiphany.h (EPIPHANY_RETURN_REGNO): New macro,
1362 (INCOMING_RETURN_ADDR_RTX) .. this. Use EPIPHANY_RETURN_REGNO.
1363 (DWARF_FRAME_RETURN_COLUMN): New macro.
1365 * config/epiphany/epiphany-protos.h (epiphany_start_function): Declare.
1366 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
1367 Split "timer" value into "timer0" and "timer1".
1368 Handle page_miss, message and wand. Don't handle static_flag.
1369 Adjust warning text.
1370 (epiphany_start_function): New function.
1371 (epiphany_compute_function_type): Split "timer" value into "timer0"
1372 and "timer1". Handle page_miss, message and wand.
1373 Don't handle static_flag.
1374 (epiphany_expand_epilogue): Don't use frame_insn for status / iret
1376 * config/epiphany/epiphany.h: ASM_DECLARE_FUNCTION_NAME: Define.
1377 (enum epiphany_function_type):
1378 Split EPIPHANY_FUNCTION_TIMER value into EPIPHANY_FUNCTION_TIMER0
1379 and EPIPHANY_FUNCTION_TIMER1.
1380 Remove EPIPHANY_FUNCTION_ILINK1 and EPIPHANY_FUNCTION_ILINK2 values.
1381 Add EPIPHANY_FUNCTION_PAGE_MISS and EPIPHANY_FUNCTION_MESSAGE values.
1382 Rename EPIPHANY_FUNCTION_STATIC_FLAG to EPIPHANY_FUNCTION_WAND.
1384 2011-12-10 Nathan Sidwell <nathan@acm.org>
1386 PR gcov-profile/51449
1387 * coverage.c (coverage_end_function): Always process the coverage
1390 2011-12-09 Aldy Hernandez <aldyh@redhat.com>
1393 * tree.c (build_common_builtin_nodes): Do not use TM_PURE
1394 attribute unless language has support for TM.
1395 * config/i386/i386.c (ix86_init_tm_builtins): Exit gracefully in
1396 the absence of TM builtins.
1398 2011-12-09 Eric Botcazou <ebotcazou@adacore.com>
1400 * gimple-fold.c (gimple_fold_stmt_to_constant_1) <GIMPLE_UNARY_RHS>:
1401 Also check the TYPE_MODE to recognize useless pointer conversions.
1403 2011-12-09 Jakub Jelinek <jakub@redhat.com>
1405 PR tree-optimization/51117
1406 * tree-eh.c (optimize_clobbers): Don't remove just one
1407 clobber, but all consecutive clobbers before RESX.
1408 Use gimple_clobber_p predicate.
1410 2011-12-09 Michael Meissner <meissner@linux.vnet.ibm.com>
1412 * config/rs6000/rs6000.c (altivec_expand_builtin): Call
1413 expand_call to return a valid funciton instead of return
1414 cosnt0_rtx/NULL_RTX if there was an error with the builtin.
1415 (altivec_expand_ld_builtin): Ditto.
1416 (rs6000_inner_target_options): If VSX is selected as a target
1417 attribute or pragma, enable ALTIVEC also.
1418 (rs6000_pragma_target_parse): Call rs6000_option_override_internal
1419 to do all of the standard processing when switching options,
1420 including redefining appropriate macros.
1422 PR rtl-optimization/51469
1423 * varasm.c (default_binds_local_p_1): If the symbol is a gnu
1424 indirect function, mark the symbol as non-local.
1426 2011-12-09 H.J. Lu <hongjiu.lu@intel.com>
1429 * Makefile.in (errors.o): Restored.
1431 2011-12-09 Richard Guenther <rguenther@suse.de>
1434 * tree.c (free_lang_data_in_decl): Remove freeing conditional
1437 2011-12-09 Joern Rennecke <joern.rennecke@embecosm.com>
1440 * emit-rtl.c (set_dst_reg_note): New function.
1441 * rtl.h (set_dst_reg_note): Declare.
1442 * optabs.c (expand_binop, expand_absneg_bit): Use set_dst_reg_note.
1443 (emit_libcall_block, expand_fix): Likewise.
1444 * function.c (assign_parm_setup_reg, expand_function_start): Likewise.
1445 * expmed.c (expand_mult_const, expand_divmod): Likewise.
1446 * reload1.c (gen_reload): Likewise.
1448 * dse.c (get_stored_val, get_call_args): Use gen_int_mode.
1449 * expmed.c (expand_divmod): Likewise.
1450 * combine.c (simplify_if_then_else): Likewise.
1452 2011-12-09 Kai Tietz <ktietz@redhat.com>
1454 * ira-color.c (print_hard_regs_subforest): Use
1455 HOST_WIDEST_INT_PRINT_DEC instead of %lld.
1456 (allocno_hard_regs): Change type of cost member to HOST_WIDEST_INT.
1457 (add_allocno_hard_regs): Change type of argument cost
1459 * ira-conflict.c (build_conflict_bit_table): Replace use
1460 of long-long by HOST_WIDEST_INT.
1462 2011-12-09 Georg-Johann Lay <avr@gjlay.de>
1465 * config/avr/avr.md (config/avr/avr.md, *sbix_branch_tmp): Use
1466 zero_extract:QIHI instead of zero_extract:HI.
1468 2011-12-09 Jakub Jelinek <jakub@redhat.com>
1469 Andrew Pinski <apinski@cavium.com>
1471 PR tree-optimization/51117
1472 * tree-eh.c (optimize_clobbers): New function.
1473 (execute_lower_eh_dispatch): Call it.
1475 2011-12-09 Richard Guenther <rguenther@suse.de>
1477 PR tree-optimization/51482
1478 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
1479 Make sure to only create REAL_TYPE and INTEGER_TYPE component vectors.
1481 2011-12-09 Kai Tietz <ktietz@redhat.com>
1483 * implicit-zee.c (num_realized): Change type to long.
1484 (num_ze_opportunities): Likewise.
1486 2011-12-08 Andrew Pinski <apinski@cavium.com>
1488 * config/mips/mips-cpus.def (octeon+): New CPU.
1489 * config/mips/mips-tables.opt: Regenerate.
1490 * config/mips/mips.h (MIPS_CPP_SET_PROCESSOR): Emit '+' as 'P'.
1492 2011-12-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1495 * tree-ssa-dom.c (enum expr_kind): Add EXPR_PHI.
1496 (struct hashable_expr): Add struct phi field.
1497 (initialize_hash_element): Handle phis; change to use XCNEWVEC.
1498 (hashable_expr_equal_p): Handle phis.
1499 (iterative_hash_hashable_expr): Likewise.
1500 (print_expr_hash_elt): Likewise.
1501 (free_expr_hash_elt): Likewise.
1502 (dom_opt_enter_block): Create equivalences from redundant phis.
1503 (eliminate_redundant_computations): Handle redundant phis.
1504 (lookup_avail_expr): Handle phis.
1506 2011-12-08 Jakub Jelinek <jakub@redhat.com>
1508 PR tree-optimization/51466
1509 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also copy
1512 2011-12-08 Richard Guenther <rguenther@suse.de>
1514 * tree-ssa-operands.c (add_stmt_operand): Do not mark stmts
1515 volatile when processing operands of an ADDR_EXPR.
1516 (get_indirect_ref_operands): Likewise.
1517 (get_tmr_operands): Likewise.
1518 (get_expr_operands): Likewise.
1520 2011-12-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1523 * config/s390/s390.c (s390_mainpool_finish): Emit the jump over
1524 the literal pool as jump insn.
1526 2011-12-08 Richard Guenther <rguenther@suse.de>
1528 PR tree-optimization/49772
1529 * tree-inline.c (optimize_inline_calls): Remove bail out on errors.
1531 2011-12-08 Richard Guenther <rguenther@suse.de>
1534 * lto-streamer-out.c (produce_symtab): Remove asserts.
1536 2011-12-08 Richard Guenther <rguenther@suse.de>
1539 * lto-streamer-out.c (tree_is_indexable): Localize variably
1540 modified types and their FIELD_DECLs.
1542 2011-12-08 Eric Botcazou <ebotcazou@adacore.com>
1544 PR tree-optimization/51315
1545 * tree.h (get_object_or_type_alignment): Declare.
1546 * expr.c (get_object_or_type_alignment): Move to...
1547 * builtins.c (get_object_or_type_alignment): ...here. Add assertion.
1548 * tree-sra.c (tree_non_mode_aligned_mem_p): Rename to...
1549 (tree_non_aligned_mem_p): ...this. Add ALIGN parameter. Look into
1550 MEM_REFs and use get_object_or_type_alignment for them.
1551 (build_accesses_from_assign): Adjust for above change.
1552 (access_precludes_ipa_sra_p): Likewise.
1554 2011-12-08 Richard Guenther <rguenther@suse.de>
1557 * lto-streamer-out.c (tree_is_indexable): Exclude block-local
1558 extern declarations.
1560 2011-12-07 Andrew Pinski <apinski@cavium.com>
1563 * expr.c (do_store_flag): Rewrite code that looks for BIT_AND_EXPR for
1566 2011-12-07 Richard Guenther <rguenther@suse.de>
1568 PR tree-optimization/50823
1569 * ipa-inline.c (edge_badness): Do not account for the number of
1572 2011-12-07 Martin Jambor <mjambor@suse.cz>
1574 PR tree-optimization/50744
1575 * ipa-cp.c (good_cloning_opportunity_p): Assert size_cost is positive,
1576 compute evaluation in HOST_WIDEST_INT.
1577 (safe_add): New function
1578 (propagate_effects): Use safe_add to accumulate effects.
1580 2011-12-06 Joel Sherrill <joel.sherrill@oarcorp.com>
1582 * config/rs6000/rtems.h: Switch to using global_options_set
1583 in SUBSUBTARGET_OVERRIDE_OPTIONS.
1585 2011-12-06 David S. Miller <davem@davemloft.net>
1587 * config/sparc/visintrin.h: Add appropriate __VIS__ cpp protection.
1589 2011-12-06 Georg-Johann Lay <avr@gjlay.de>
1591 * config/avr/avr.c (avr_file_start): Fix missing ,
1593 2011-12-06 Jakub Jelinek <jakub@redhat.com>
1596 * config/i386/i386.c (ix86_emit_leave): Call ix86_add_cfa_restore_note
1599 2011-12-06 Georg-Johann Lay <avr@gjlay.de>
1601 Forward-port from gcc-4_6-branch r181936 2011-12-02.
1602 * config/avr/avr-mcus.def (avr_mcu_types): ATtiny4313 and
1603 AT86RF401 have a 16-bit SP (their manual is bogus).
1605 2011-12-06 Georg-Johann Lay <avr@gjlay.de>
1607 Forward-port from gcc-4_6-branch r181936 2011-12-02.
1610 * config/avr/avr.md (movhi_sp_r): Set insn condition to
1612 * config/avr/avr.c (output_movhi): Use "clr%B0" instead of "in
1613 %B0,__SP_H__" if AVR_HAVE_8BIT_SP.
1614 (avr_file_start): Only print "__SP_H__ = 0x3e" if !AVR_HAVE_8BIT_SP.
1616 2011-12-06 Georg-Johann Lay <avr@gjlay.de>
1620 * config/avr/avr.h (ADDR_SPACE_PGM, ADDR_SPACE_PGM1,
1621 ADDR_SPACE_PGM2, ADDR_SPACE_PGM3, ADDR_SPACE_PGM4,
1622 ADDR_SPACE_PGM5, ADDR_SPACE_PGMX): Write as enum.
1623 (avr_addrspace_t): New typedef.
1624 (avr_addrspace): New declaration.
1625 * config/avr/avr-c.c (avr_toupper): New static function.
1626 (avr_register_target_pragmas, avr_cpu_cpp_builtins): Use
1627 avr_addrspace to get address space information.
1628 * config/avr/avr.c (avr_addrspace): New variable.
1629 (avr_out_lpm, avr_pgm_check_var_decl, avr_insert_attributes,
1630 avr_asm_named_section, avr_section_type_flags,
1631 avr_asm_select_section, avr_addr_space_address_mode,
1632 avr_addr_space_convert, avr_emit_movmemhi): Use it.
1633 (avr_addr_space_pointer_mode): Forward to avr_addr_space_address_mode.
1634 (avr_pgm_segment): Remove.
1636 2011-12-06 Richard Guenther <rguenther@suse.de>
1639 * varasm.c (assemble_alias): Move DECL_EXTERNAL implementation
1640 quirk adjustjment ...
1641 * passes.c (rest_of_decl_compilation): ... here.
1643 2011-12-06 Richard Guenther <rguenther@suse.de>
1646 * gimple-fold.c (gimplify_and_update_call_from_tree): Guard vdef check
1647 for the fact we do not have virtual operands when not optimizing.
1649 2011-12-06 Richard Guenther <rguenther@suse.de>
1651 PR tree-optimization/51245
1652 * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
1654 (vn_reference_lookup_3): Use it. Properly valueize all refs we create.
1656 2011-12-06 Iain Sandoe <iains@gcc.gnu.org>
1658 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Initialize
1661 2011-12-06 Richard Guenther <rguenther@suse.de>
1663 PR tree-optimization/51363
1664 * gimple.c (gimple_rhs_has_side_effects): Remove.
1665 * gimple.h (gimple_rhs_has_side_effects): Likewise.
1666 * tree-ssa-dom.c (optimize_stmt): Simplify conditional.
1668 2011-12-06 Alan Modra <amodra@gmail.com>
1671 * config/rs6000/rs6000.c (rs6000_emit_prologue <TARGET_SPE_ABI>):
1672 Do not mark r11 setup as frame-related. Pass correct offset to
1673 rs6000_emit_savres_rtx. Correct out-of-line rs6000_frame_related
1674 arguments. Correct sp_offset. Remove "offset" fudge from
1675 in-line rs6000_frame_related call. Rename misleading variable.
1676 Fix comments and whitespace. Tidy some expressions.
1677 (rs6000_emit_epilogue <TARGET_SPE_ABI>): Always set frame_reg_rtx
1678 to r11 in out-of-line case. Correct sp_offset. Pass correct
1679 offset to rs6000_emit_savres_rtx. Rename misleading variable.
1680 Fix comments and whitespace. Tidy some expressions.
1681 (rs6000_emit_epilogue <non-TARGET_SPE_ABI>): Add sp_offset
1682 adjustment when !saving_GPRs_inline. Correct register mode
1683 used in address calcs.
1684 (rs6000_emit_epilogue <non-TARGET_SPE_ABI>): Similarly when
1685 !restoring_GPRs_inline.
1687 2011-12-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1689 * config/arm/vfp.md (*combine_vcvt_f64_<FCVTI32typename>): Fix
1690 formatting character for vmov.f64 case.
1692 2011-12-05 Jakub Jelinek <jakub@redhat.com>
1694 PR tree-optimization/51396
1695 * tree-ssa-math-opts.c (convert_mult_to_fma): Don't optimize
1696 if MUL_RESULT has zero uses.
1699 * c-decl.c (pop_scope): Don't add DECL_EXTERNAL decls
1700 for debug info if scope is file_scope.
1703 * c-decl.c (c_finish_incomplete_decl, finish_decl): Call
1704 relayout_decl instead of layout_decl.
1706 2011-12-05 Richard Sandiford <rdsandiford@googlemail.com>
1708 * resource.c (init_resource_info): Only consider EXIT_IGNORE_STACK
1709 if there is in epilogue.
1711 2011-12-05 Richard Sandiford <rdsandiford@googlemail.com>
1713 * optabs.c (maybe_emit_sync_lock_test_and_set): Pass a null target
1714 to emit_library_call_value.
1715 (expand_atomic_compare_and_swap): Likewise.
1717 2011-12-05 Vladimir Makarov <vmakarov@redhat.com>
1720 * ira-int.h (struct ira_object): Remove add_data.
1721 (OBJECT_ADD_DATA): Remove.
1723 * ira-build.c (ira_create_object): Remove OBJECT_ADD_DATA
1726 * ira-color.c (object_hard_regs_t, object_hard_regs): Rename to
1727 allocno_hard_regs_t, allocno_hard_regs.
1728 (object_hard_regs_node_t, object_hard_regs_node): Rename to
1729 allocno_hard_regs_node_t and allocno_hard_regs_node.
1730 (struct allocno_color_data): Add new member last_process. Move
1731 profitable_hard_regs, hard_regs_node, and hard_regs_subnodes_start
1732 from object_color_data.
1733 (object_color_data_t, object_color_data, OBJECT_COLOR_DATA): Remove.
1734 (curr_allocno_process): New static variable.
1735 (object_hard_regs_eq, object_hard_regs_htab): Rename to
1736 allocno_hard_regs_eq and allocno_hard_regs_htab.
1737 (init_object_hard_regs, finish_object_hard_regs): Rename to
1738 init_allocno_hard_regs and finish_allocno_hard_regs.
1739 (object_hard_regs_compare, object_hard_regs_node_t): Rename to
1740 allocno_hard_regs_compare and allocno_hard_regs_node_t.
1741 (create_new_object_hard_regs_node): Rename to
1742 create_new_allocno_hard_regs_node.
1743 (add_new_object_hard_regs_node_to_forest): Rename to
1744 add_new_allocno_hard_regs_node_to_forest.
1745 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover):
1746 Rename to add_allocno_hard_regs_to_forest and
1747 collect_allocno_hard_regs_cover.
1748 (setup_object_hard_regs_nodes_parent): Rename to
1749 setup_allocno_hard_regs_nodes_parent.
1750 (remove_unused_object_hard_regs_nodes): Rename to
1751 remove_unused_allocno_hard_regs_nodes.
1752 (enumerate_object_hard_regs_nodes, object_hard_regs_nodes_num):
1753 Rename to enumerate_allocno_hard_regs_nodes and
1754 allocno_hard_regs_nodes_num.
1755 (object_hard_regs_nodes, object_hard_regs_subnode_t): Rename to
1756 allocno_hard_regs_nodes and allocno_hard_regs_subnode_t.
1757 (object_hard_regs_subnode, object_hard_regs_subnodes): Rename to
1758 allocno_hard_regs_subnode and allocno_hard_regs_subnodes.
1759 (object_hard_regs_subnode_index): Rename to
1760 allocno_hard_regs_subnode_index.
1761 (setup_object_hard_regs_subnode_index): Rename to
1762 setup_allocno_hard_regs_subnode_index.
1763 (get_object_hard_regs_subnodes_num): Rename to
1764 get_allocno_hard_regs_subnodes_num.
1765 (form_object_hard_regs_nodes_forest): Rename to
1766 form_allocno_hard_regs_nodes_forest.
1767 (finish_object_hard_regs_nodes_tree): Rename to
1768 form_allocno_hard_regs_nodes_forest
1769 (finish_object_hard_regs_nodes_forest): Rename to
1770 finish_allocno_hard_regs_nodes_forest.
1771 (setup_left_conflict_sizes_p): Use allocno data instead of object ones.
1772 Process conflict allocnos once.
1773 (update_left_conflict_sizes_p): Use allocno data instead of object
1774 ones. Change prototype signature.
1775 (empty_profitable_hard_regs): Use allocno data instead of object ones.
1776 (setup_profitable_hard_regs): Ditto.
1777 (get_conflict_profitable_regs): Rename to
1778 get_conflict_and_start_profitable_regs. Use allocno data for
1779 profitable regs calculation.
1780 (check_hard_reg_p): Change prototype signature. Check profitable
1781 regs for allocno not the objects.
1782 (assign_hard_reg): Process conflict allocnos only once for
1783 updating conflict costs.
1784 (setup_allocno_available_regs_num): Use allocno data instead of
1785 object ones. Modify debug output.
1786 (color_pass): Remove initialization and finalization of object
1789 2011-12-05 Kazu Hirata <kazu@codesourcery.com>
1792 * config/arm/arm.md (*minmax_arithsi): Always require the else
1793 clause in the MINUS case.
1795 2011-12-05 Richard Guenther <rguenther@suse.de>
1797 PR tree-optimization/50904
1798 * tree-ssa-loop-im.c (struct mem_ref): Remove vops member.
1799 (MEM_ANALYZABLE): New.
1800 (memory_references): Remove clobbered_vops and vop_ref_map
1801 members, add all_refs_stored_in_loop member.
1802 (memref_free): Adjust.
1803 (mem_ref_alloc): Likewise.
1804 (gather_mem_refs_stmt): Do not record clobbers, instead
1805 record refs for unanalyzable stmts.
1806 (gather_mem_refs_in_loops): Do not propagate clobbers.
1807 (struct vop_to_refs_elt, vtoe_hash, vtoe_eq, vtoe_free,
1808 record_vop_access, get_vop_accesses, get_vop_stores,
1809 add_vop_ref_mapping): Remove.
1810 (create_vop_ref_mapping_loop): Adjust to simply record all stores.
1811 (analyze_memory_references): Adjust.
1812 (refs_independent_p): Check for not analyzable refs.
1813 (can_sm_ref_p): Likewise.
1814 (ref_indep_loop_p_1): Simplify.
1815 (tree_ssa_lim_finalize): Adjust.
1817 * tree-ssa-loop-im.c (stmt_cost): Simplify, use LIM_EXPENSIVE
1818 rather than magic constants. Assign zero cost to PAREN_EXPR
1819 and SSA_NAME copies. Assign cost proportional to the vector
1820 size for vector constructors.
1822 2011-12-05 Richard Guenther <rguenther@suse.de>
1824 * tree-ssa-alias.h (struct ao_ref_s): Add volatile_p field.
1825 * tree-ssa-alias.c (ao_ref_init): Initialize it.
1826 (ao_ref_init_from_ptr_and_size): Likewise.
1827 (refs_may_alias_p_1): Two volatile accesses conflict.
1828 (ref_maybe_used_by_call_p_1): Likewise.
1829 (call_may_clobber_ref_p_1): Likewise.
1830 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Initialize
1833 2011-12-05 Richard Guenther <rguenther@suse.de>
1835 * tree-ssa.c (verify_ssa): Verify SSA names in the loop over all SSA
1836 names. Remove SSA operand checking, call verify_ssa_operands.
1837 * tree-ssa-operands.h (verify_ssa_operands): Declare.
1838 * tree-ssa-operands.c (verify_ssa_operands): New function.
1840 2011-12-05 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1842 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Define.
1843 * config/arm/arm-protos.h (vfp3_const_double_for_fract_bits): Declare.
1844 * config/arm/constraints.md ("Dt"): New constraint.
1845 * config/arm/predicates.md
1846 (const_double_vcvt_power_of_two_reciprocal): New.
1847 * config/arm/vfp.md (FCVTI32typename): New.
1848 (FCVT): New iterator.
1849 (*combine_vcvt_f32_<FCVTI32typename>): New.
1850 (*combine_vcvt_f64_<FCVTI32typename>): New.
1852 2011-12-05 Richard Guenther <rguenther@suse.de>
1854 * cgraph.c (cgraph_create_edge_1): Initialize
1855 call_stmt_cannot_inline_p from the stmt if possible.
1856 (cgraph_make_edge_direct): Likewise.
1857 * gimple-streamer-in.c (input_gimple_stmt): Do not
1858 call gimple_call_set_cannot_inline.
1859 * gimple.h (enum gf_mask): Remove GF_CALL_CANNOT_INLINE, shift values.
1860 (gimple_call_set_cannot_inline): Remove.
1861 (gimple_call_cannot_inline_p): Likewise.
1862 * ipa-inline-analysis.c (initialize_inline_failed): Look
1863 at the edge call_stmt_cannot_inline_p flag.
1864 * ipa-inline.c (can_inline_edge_p): Likewise.
1865 (early_inliner): Only update the edge flag.
1866 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
1867 (ipa_modify_call_arguments): Do not call gimple_call_set_cannot_inline.
1868 * cgraphunit.c (assemble_thunk): Likewise.
1869 * gimple-fold.c (gimple_fold_call): Likewise.
1871 * tree.h (CALL_CANNOT_INLINE_P): Remove.
1872 * tree-mudflap.c (mf_xform_statements): Do not modify alloca calls.
1873 * builtins.c (expand_builtin_alloca): With -fmudflap do not expand
1874 alloca calls inline.
1875 * cfgexpand.c (expand_call_stmt): Do not set CALL_CANNOT_INLINE_P.
1876 * gimple.c (gimple_build_call_from_tree): Do not read
1877 CALL_CANNOT_INLINE_P.
1878 * gimplify.c (gimplify_call_expr): Do not copy CALL_CANNOT_INLINE_P.
1880 2011-12-05 Jakub Jelinek <jakub@redhat.com>
1881 Eric Botcazou <ebotcazou@adacore.com>
1885 * calls.c (internal_arg_pointer_exp_state): New variable.
1886 (internal_arg_pointer_based_exp_1,
1887 internal_arg_pointer_exp_scan): New functions.
1888 (internal_arg_pointer_based_exp): New function.
1889 (mem_overlaps_already_clobbered_arg_p): Use it.
1890 (expand_call): Free internal_arg_pointer_exp_state.cache vector
1891 and clear internal_arg_pointer_exp_state.scan_start.
1893 2011-12-04 Kaz Kojima <kkojima@gcc.gnu.org>
1895 * config/sh/linux.h (TARGET_DEFAULT): Add MASK_SOFT_ATOMIC.
1896 * config/sh/sync.md: New file.
1897 * config/sh/sh.md: Include sync.md.
1898 * config/sh/sh.opt (msoft-atomic): New option.
1899 * doc/invoke.texi (SH Options): Document it.
1901 2011-12-04 Nathan Sidwell <nathan@acm.org>
1903 * gcov-io.h (struct gcov_info): Replace trailing array with
1905 * profile.c (branch_prob): Only call renamed
1906 coverage_begin_function once.
1907 * coverage.h (coverage_begin_output): Rename to ...
1908 (coverage_begin_function): ... here.
1909 * coverage.c (struct function_list): Rename to ...
1910 (struct coverage_data): ... this. Update all uses.
1911 (gcov_info_var, gcov_fn_info_type, gcov_fn_info_ptr_type): New globals.
1912 (bbg_file_opened, bbg_function_announced): Remove.
1913 (get_coverage_counts): Adjust message.
1914 (coverage_begin_ouput): Rename to ...
1915 (coverage_begin_function): ... here. Move file opening to
1916 coverage_init. Adjust for being called only once.
1917 (coverage_end_function): Remove bbg file and inhibit further
1918 output here on error.
1919 (build_info_type): Adjust for change to pointer to array.
1920 (build_info): Receive array of function pointers and adjust.
1921 (create_coverage): Break into ...
1922 (coverage_obj_init, coverage_obj_fn, coverage_obj_finish):
1923 ... these, and adjust.
1924 (coverage_init): Open the notes file here. Tidy.
1925 (coverage_finish): Call coverage_obj_init etc.
1927 2011-12-04 Ira Rosen <ira.rosen@linaro.org>
1930 * tree-vect-loop.c (vect_create_epilog_for_reduction): Create exit
1931 phi nodes for outer loop in case of double reduction.
1933 2011-12-04 Jérémie Detrey <Jeremie.Detrey@loria.fr>
1936 * config/i386/avxintrin.h (_mm256_insert_epi64): Declare second
1937 parameter as long long.
1939 2011-12-04 Richard Sandiford <rdsandiford@googlemail.com>
1942 * optabs.c (init_sync_libfuncs): Use "or" rather than "ior"
1943 in the external names.
1945 2011-12-03 Jack Howarth <howarth@bromo.med.uc.edu>
1947 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Pass -no_pie for
1948 non-PIC code when targeting 10.7 or later.
1950 2011-12-03 Iain Sandoe <iains@gcc.gnu.org>
1952 * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
1954 (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
1955 (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
1957 2011-12-03 Jakub Jelinek <jakub@redhat.com>
1959 * fold-const.c (fold_unary_loc): Fold VEC_UNPACK_LO_EXPR,
1960 VEC_UNPACK_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR and
1961 VEC_UNPACK_FLOAT_HI_EXPR with VECTOR_CST argument.
1962 (fold_binary_loc): Fold VEC_PACK_TRUNC_EXPR,
1963 VEC_PACK_FIX_TRUNC_EXPR, VEC_WIDEN_MULT_LO_EXPR
1964 and VEC_WIDEN_MULT_HI_EXPR with VECTOR_CST arguments.
1967 * tree-ssa.c (target_for_debug_bind): Also allow is_gimple_reg_type
1968 vars that aren't referenced.
1969 (tree-ssa-live.c (remove_unused_locals): Don't clear TREE_ADDRESSABLE
1970 of unreferenced local vars.
1971 * cfgexpand.c (expand_debug_expr): For DEBUG_IMPLICIT_PTR allow also
1972 TREE_ADDRESSABLE vars that satisfy target_for_debug_bind.
1974 2011-12-03 Anatoly Sokolov <aesok@post.ru>
1976 * config/arm/arm.h (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove.
1977 * config/arm/arm-protos.h (aapcs_libcall_value): Remove.
1978 * config/arm/arm.c (TARGET_FUNCTION_VALUE_REGNO_P): Define.
1979 (arm_libcall_value_1, arm_function_value_regno_p): New function.
1980 (arm_function_value, arm_libcall_value): Use arm_libcall_value_1.
1981 (aapcs_libcall_value): Make static.
1982 (arm_libcall_value): Add static qualifier.
1984 2011-12-02 Jakub Jelinek <jakub@redhat.com>
1987 * config/i386/sse.md (mul<mode>3 with VI1_AVX2 iterator): For
1988 V32QImode use { 0,2,..,14,32,34,..,46,16,18,..,30,48,50,..,62 }
1989 permutation instead of extract even permutation.
1991 2011-12-02 Nathan Sidwell <nathan@acm.org>
1993 * gcov.c (struct arc_info): Add is_throw field.
1994 (struct (block_info): Add exceptional field, reduce flags size to
1996 (struct function_info): Add has_catch field.
1997 (struct line_info): Add unexceptional field.
1998 (process_file): Call find_exception_blocks if necessary.
1999 (read_graph_file): Adjust. Note if an exceptional edge is seen.
2000 (find_exception_blocks): New.
2001 (add_line_counts): Set line's unexceptional flag if not exceptional.
2002 (output_branch_count): Note exceptional arcs, lines and blocks.
2003 * gcov-dump.c (tag_arcs): Decode arc flags.
2004 * doc/gcov.texi: Document '=====' lines.
2006 2011-12-02 Anatoly Sokolov <aesok@post.ru>
2008 * config/ia64/ia64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2009 PRINT_OPERAND_PUNCT_VALID_P): Remove macros.
2010 * config/ia64/ia64-protos.h (ia64_print_operand,
2011 ia64_print_operand_address): Remove.
2012 * config/ia64/ia64.c (TARGET_PRINT_OPERAND,
2013 TARGET_PRINT_OPERAND_ADDRESS, TARGET_PRINT_OPERAND_PUNCT_VALID_P):
2015 (ia64_print_operand_punct_valid_p): New function.
2016 (ia64_print_operand, ia64_print_operand_address): Make static.
2018 2011-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
2021 * config/rs6000/rs6000.c (def_builtin): Use the correct field to
2022 figure out the function's attributes.
2023 (struct builtin_description): Mark mask field as const since we no
2024 longer need to modify it for SPE and PAIRED builtins.
2026 2011-12-02 Joseph Myers <joseph@codesourcery.com>
2030 2008-09-18 Andrew Pinski <andrew_pinski@playstation.sony.com>
2033 * loop-doloop.c (doloop_modify): New argument zero_extend_p and
2034 zero extend count after the correction to it is done.
2035 (doloop_optimize): Update call to doloop_modify, don't zero extend
2038 2008-11-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
2041 * loop-doloop.c (doloop_modify): Add from_mode argument that says what
2043 (doloop_optimize): Update call to doloop_modify.
2045 2011-12-02 Richard Guenther <rguenther@suse.de>
2048 * ipa.c (varpool_externally_visible_p): Register variables
2049 are always externally visible.
2051 2011-12-02 Sameera Deshpande <sameera.deshpande@arm.com>
2053 * gimple-pretty-print.c (dump_gimple_call): Dereference fn only if
2056 2011-12-02 Martin Jambor <mjambor@suse.cz>
2058 PR tree-optimization/50622
2059 * tree-sra.c (load_assign_lhs_subreplacements): Force gimple operand
2060 if both lacc and racc are grp_partial_lhs.
2062 2011-12-01 Kaz Kojima <kkojima@gcc.gnu.org>
2065 * config/sh/sh.c (expand_ashiftrt): Handle TARGET_SH2A same as
2067 (shl_sext_kind): Likewise.
2068 * config/sh/sh.h (SH_DYNAMIC_SHIFT_COST): Likewise.
2069 * config/sh/sh.md (ashlsi3_sh2a, ashrsi3_sh2a, lshrsi3_sh2a): Remove.
2070 (ashlsi3_std): Handle TARGET_SH2A same as TARGET_SH3.
2071 (ashlsi3): Likewise.
2072 (ashrsi3_d): Likewise.
2073 (lshrsi3_d): Likewise.
2074 (lshrsi3): Likewise.
2076 2011-12-01 Diego Novillo <dnovillo@google.com>
2079 * ipa-inline.c (can_inline_edge_p): If the edge E has a statement,
2080 use the statement's inline indicator instead of E's.
2081 Remove consistency check.
2083 2011-12-01 Diego Novillo <dnovillo@google.com>
2088 2011-11-29 Diego Novillo <dnovillo@google.com>
2090 * gimple.c (gimple_call_set_cannot_inline): Move from gimple.h.
2091 Update field call_stmt_cannot_inline_p from call
2092 graph edge, if needed.
2093 * gimple.h (gimple_call_set_cannot_inline): Move to gimple.c.
2095 2011-12-01 Nathan Sidwell <nathan@acm.org>
2097 PR gcov-profile/51113
2098 * coverage.c (build_var): Keep coverage variables static.
2100 2011-12-01 Jakub Jelinek <jakub@redhat.com>
2102 PR tree-optimization/51356
2103 * tree-vect-patterns.c (vect_recog_bool_pattern): Give up if
2104 vectype doesn't have VECTOR_MODE_P.
2107 * tree-ssa-dce.c (remove_dead_stmt): Add a debug stmt when removing
2108 as unnecessary a store to a variable with gimple reg type.
2109 * tree-ssa-live.c (remove_unused_locals): Clear TREE_ADDRESSABLE bit
2110 on local unreferenced variables.
2111 * cfgexpand.c (expand_gimple_basic_block): Don't emit DEBUG_INSNs
2112 for !target_for_debug_bind variables.
2114 2011-12-01 Patrick Marlier <patrick.marlier@gmail.com>
2117 * cgraph.h (cgraph_call_node_duplication_hooks): Declare.
2118 * cgraph.c (cgraph_call_node_duplication_hooks): Make global.
2119 * cgraphunit.c (cgraph_copy_node_for_versioning): Call it.
2121 2011-12-01 Andrew Pinski <apinski@cavium.com>
2124 * tree.c (free_lang_data_in_decl): Clear FIELD_DECL's
2127 2011-12-01 Jakub Jelinek <jakub@redhat.com>
2129 PR tree-optimization/51246
2130 * tree-predcom.c (replace_ref_with): Handle also clobber on the rhs.
2132 PR rtl-optimization/51014
2133 * loop-unroll.c (apply_opt_in_copies): Ignore label DEBUG_INSNs
2134 both from bb and orig_bb.
2136 2011-12-01 Joern Rennecke <joern.rennecke@embecosm.com>
2138 PR tree-optimization/50802
2139 * tree-vrp.c (simplify_conversion_using_ranges): Rewrite test
2140 considering what happens to ranges during sign changes and/or
2141 intermediate narrowing conversions.
2143 2011-11-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2146 * config/pa/pa.md (in_branch_delay): Disallow frame related insns.
2147 (in_nullified_branch_delay): Likewise.
2148 (in_call_delay): Likewise.
2150 2011-11-30 Richard Henderson <rth@redhat.com>
2152 * predict.c (expr_expected_value_1): Assume compare-and-swap builtin
2153 boolean return is true.
2155 2011-11-30 Jakub Jelinek <jakub@redhat.com>
2157 PR rtl-optimization/51044
2158 * dse.c (emit_inc_dec_insn_before): Ensure new_insn is an instruction
2159 rather than just insn body.
2162 * function.c (thread_prologue_and_epilogue_insns): If
2163 stack_realign_drap, add drap_reg to SET_UP_BY_PROLOGUE
2167 * tree-eh.c (cleanup_empty_eh_merge_phis): Add check to
2168 avoid creating duplicate edges here.
2169 (cleanup_empty_eh_unsplit): And remove it in the caller.
2171 2011-11-30 Andrew Pinski <apinski@cavium.com>
2174 * c-parser.c (c_parser_postfix_expression): Check groktypename results
2175 before looking at the main variant.
2177 2011-11-30 Jakub Jelinek <jakub@redhat.com>
2179 PR rtl-optimization/48721
2180 * sched-deps.c (sched_analyze_insn): For SIBLING_CALL_P set
2181 reg_pending_barrier to TRUE_BARRIER.
2183 PR rtl-optimization/48721
2184 * sched-ebb.c (begin_move_insn): Insert empty unreachable
2185 block after BARRIER if insn is followed by it.
2187 2011-11-30 Richard Henderson <rth@redhat.com>
2189 * config/sparc/sparc-opts.h (enum sparc_memory_model_type): New.
2190 * config/sparc/sparc.opt (mmemory-model=): New option.
2191 * doc/invoke.texi (Sparc Options): Document it.
2192 * config/sparc/sparc.c (sparc_option_override): Provide default
2193 for sparc_memory_model.
2194 (sparc_emit_membar_for_model): Omit barrier combinations that are
2195 implied by the memory model.
2197 2011-11-30 Richard Henderson <rth@redhat.com>
2199 * config/sparc/sync.md (I124MODE): New mode iterator.
2200 (memory_barrier): Remove.
2201 (atomic_exchangesi): New.
2202 (swapsi): Rename from *swapsi.
2203 (atomic_test_and_set<I124MODE>): New.
2204 (ldstubqi): Rename from *ldstubqi, merge with expander.
2205 (ldstub<I24MODE>): Rename from *ldstub<I24MODE>, merge with expander.
2206 (sync_lock_test_and_setsi): Remove.
2207 (sync_lock_test_and_set<I12MODE>): Remove.
2209 2011-11-30 Richard Henderson <rth@redhat.com>
2211 * config/sparc/constraints.md ("w"): New.
2212 * config/sparc/predicates.md (mem_noofs_operand): New.
2213 * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): Make static.
2214 Generate the boolean result of the atomic_compare_exchange.
2215 (sparc_expand_compare_and_swap): New.
2216 * config/sparc/sync.md (atomic_compare_and_swap<I>): New.
2217 (atomic_compare_and_swap<I48MODE>_1): Rename from
2218 *sync_compare_and_swap<I48MODE>, use mem_noofs_operand.
2219 (*atomic_compare_and_swapdi_v8plus): Rename from
2220 *sync_compare_and_swapdi_v8plus, use mem_noofs_operand.
2221 (sync_compare_and_swap<I12MODE>): Remove.
2222 (sync_compare_and_swap<I48MODE>): Remove.
2224 2011-11-30 Richard Henderson <rth@redhat.com>
2226 * config/sparc/predicates.md (register_or_v9_zero_operand): New.
2227 * config/sparc/sparc.md (UNSPEC_ATOMIC): New.
2228 * config/sparc/sync.md (atomic_load<I>): New.
2229 (atomic_loaddi_1, atomic_store<I>, atomic_storedi_1): New.
2231 2011-11-30 Richard Henderson <rth@redhat.com>
2233 * config/sparc/predicates.md (zero_or_v7_operand): New.
2234 * config/sparc/sparc.c (sparc_emit_membar_for_model): New.
2235 * config/sparc/sparc-protos.h: Update.
2236 * config/sparc/sync.md (mem_thread_fence): New.
2237 (memory_barrier): Use sparc_emit_membar_for_model.
2238 (membar, *membar_empty, *membar_storestore, *membar_storeload): New.
2239 (*membar_v8): Accept and ignore the membar mask.
2240 (*membar): Accept and print the membar mask.
2242 2011-11-30 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2244 * config/arm/arm.c (arm_issue_rate): Cortex-A15 can triple issue.
2245 * config/arm/arm.md (mul64): New attribute.
2246 (generic_sched): Cortex-A15 is not scheduled generically.
2247 (cortex-a15.md): Include.
2248 * config/arm/cortex-a15.md: New machine description.
2249 * config/arm/t-arm (MD_INCLUDES): Add cortex-a15.md.
2251 2011-11-30 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2253 * config/arm/t-arm (MD_INCLUDES): Ensure all md files are listed.
2255 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
2257 * doc/tm.texi.in (NEXT_OBJC_RUNTIME): Update macro description.
2258 * doc/tm.texi: Regenerate.
2259 * flags.h (flag_next_runtime): Remove references.
2260 * toplev.c: Likewise.
2261 * defaults.h (NEXT_OBJC_RUNTIME): Provide default.
2262 * gccspec.c (lang_specific_driver): Adjust use of NEXT_OBJC_RUNTIME.
2263 * config/darwin.c (darwin_override_options): Provide default
2264 Objective-C abi settings and target conflict checks.
2265 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Remove unused
2266 code. Adjust indenting.
2268 2011-11-29 Joseph Myers <joseph@codesourcery.com>
2270 * config/sh/sh.h (enum reg_class, REG_CLASS_NAMES)
2271 (REG_CLASS_CONTENTS): Add NON_SP_REGS.
2272 (REGCLASS_HAS_GENERAL_REG): Handle NON_SP_REGS.
2273 * config/sh/constraints.md (u): New constraint.
2275 2011-11-29 Oleg Endo <oleg.endo@t-online.de>
2278 * config/sh/sh.c (sh_secondary_reload): Add case when FPUL
2279 register is being loaded from a pseudo in memory.
2281 2011-11-29 DJ Delorie <dj@redhat.com>
2283 * config.gcc (rl78-*-elf): New case.
2284 * doc/extend.texi: Add RL78 documentation.
2285 * doc/invoke.texi: Likewise.
2286 * doc/md.texi: Likewise.
2287 * doc/contrib.texi: Add RL78.
2288 * doc/install.texi: Add rl78-*-elf.
2289 * config/rl78: New directory for the Renesas RL78.
2291 2011-11-29 Jakub Jelinek <jakub@redhat.com>
2293 PR tree-optimization/51247
2294 * tree-vrp.c (extract_range_from_assert): For signed 1-bit precision
2295 types instead of adding 1 subtract -1 and instead of subtracting 1
2296 add -1 to avoid overflows.
2298 2011-11-29 Andrew MacLeod <amacleod@redhat.com>
2301 * optabs.c (maybe_optimize_fetch_op): New. Look for more optimal
2302 instructions for a FECTH_OP or OP_FECTH sequence.
2303 (expand_atomic_fetch_op): Call maybe_optimize_fetch_op.
2305 2011-11-29 Uros Bizjak <ubizjak@gmail.com>
2307 * config/i386/sync.md (UNSPEC_LDA, UNSPEC_STA): New unspecs.
2308 (movdi_via_fpu): Remove.
2309 (loaddi_via_fpu): New insn pattern.
2310 (storedi_via_fpu): Ditto.
2311 (atomic_loaddi_fpu): Use loaddi_via_fpu and storedi_via_fpu.
2312 (atomic_storedi_fpu): Ditto.
2313 * reg-stack.c (get_true_reg): Handle UNSPEC_LDA.
2314 (subst_stack_regs_pat): Handle UNSPEC_STA.
2316 2011-11-29 Uros Bizjak <ubizjak@gmail.com>
2318 * config/i386/i386.md (*floathi<mode>2_i387_with_temp): Do not
2319 allocate scratch memory for alternative 0.
2321 2011-11-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2323 * config/rs6000/rs6000-builtins.def: Completely rewrite builtin
2324 handling to centralize more of the builtins in this file. Change
2325 some builtin enumerations to be more consistant. Use a new mask
2326 to hold the current builtins, including SPE and PAIRED builtins
2327 which no longer are set via target_flags masks. Add
2328 -mdebug=builtin debug support. For power machines, define all
2329 Altivec and VSX buitins when the compiler starts, but don't allow
2330 the use of a builtin unless the appropriate switch is used, or
2331 #pragma GCC target is used to change the options. If the user
2332 uses #pragma GCC target, update the appropriate hardware macros.
2333 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Ditto.
2334 * config/rs6000/rs6000.opt (rs6000_builtin_mask): Ditto.
2335 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Ditto.
2336 (rs6000_define_or_undefine_macro): Ditto.
2337 (rs6000_target_modify_macros): Ditto.
2338 (rs6000_cpu_cpp_builtins): Ditto.
2339 (altivec_overloaded_builtins): Ditto.
2340 (altivec_build_resolved_builtin): Ditto.
2341 * config/rs6000/rs6000.c (rs6000_target_modify_macros_ptr): Ditto.
2342 (rs6000_builtin_info): Ditto.
2343 (def_builtin): Ditto.
2344 (enable_mask_for_builtins): Ditto.
2345 (DEBUG_FMT_X): Ditto.
2346 (rs6000_debug_reg_global): Ditto.
2347 (rs6000_builtin_mask_calculate): Ditto.
2348 (rs6000_option_override_internal): Ditto.
2349 (rs6000_builtin_conversion): Ditto.
2350 (rs6000_builtin_vectorized_function): Ditto.
2351 (bdesc_3arg): Ditto.
2353 (bdesc_2arg): Ditto.
2354 (builtin_description_predicates): Ditto.
2355 (bdesc_altivec_preds): Ditto.
2356 (bdesc_spe_predicates): Ditto.
2357 (bdesc_spe_evsel): Ditto.
2358 (bdesc_paired_preds): Ditto.
2360 (bdesc_1arg): Ditto.
2361 (rs6000_overloaded_builtin_p): Ditto.
2362 (rs6000_expand_unop_builtin): Ditto.
2363 (bdesc_2arg_spe): Ditto.
2364 (spe_expand_builtin): Ditto.
2365 (rs6000_invalid_builtin): Ditto.
2366 (rs6000_expand_builtin): Ditto.
2367 (rs6000_init_builtins): Ditto.
2368 (spe_init_builtins): Ditto.
2369 (paired_init_builtins): Ditto.
2370 (altivec_init_builtins): Ditto.
2371 (builtin_function_type): Ditto.
2372 (rs6000_common_init_builtins): Ditto.
2373 (rs6000_builtin_reciprocal): Ditto.
2374 (rs6000_builtin_mask_names): Ditto.
2375 (rs6000_pragma_target_parse): Ditto.
2376 (rs6000_function_specific_print): Ditto.
2377 * config/rs6000/rs6000.h (MASK_DEBUG_BUILTIN): Ditto.
2378 (MASK_DEBUG_ALL): Ditto.
2379 (TARGET_DEBUG_BUILTIN): Ditto.
2380 (TARGET_EXTRA_BUILTINS): Ditto.
2381 (REGISTER_TARGET_PRAGMAS): Ditto.
2382 (enum rs6000_btc): Ditto.
2383 (RS6000_BTC_*): Ditto.
2384 (RS6000_BTM_*): Ditto.
2385 (enum rs6000_builtins): Ditto.
2386 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_p): Ditto.
2387 (rs6000_target_modify_macros): Ditto.
2388 (rs6000_target_modify_macros_ptr): Ditto.
2390 * config/rs6000/vector.md (unsfloat<VEC_int><mode>2): Use the
2391 standard name for converting vector unsigned values to floating
2392 point. Delete the TARGET_VECTORIZE_BUILTIN_CONVERSION hook, which
2393 is handled by machine independent code.
2394 * config/rs6000/rs6000.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Ditto.
2395 (rs6000_builtin_conversion): Ditto.
2397 2011-11-29 Dodji Seketeli <dodji@redhat.com>
2399 * tree-diagnostic (struct loc_t): Rename into struct loc_map_pair.
2400 (maybe_unwind_expanded_macro_loc): Adjust.
2402 2011-11-29 David Edelsohn <dje.gcc@gmail.com>
2403 Aldy Hernandez <aldyh@redhat.com>
2405 * trans-mem.c (ipa_tm_create_version_alias): Mangle new_decl
2407 (ipa_tm_create_version): Same.
2409 2011-11-29 Bernd Schmidt <bernds@codesourcery.com>
2411 * haifa-sched.c (recompute_todo_spec): Simplify and correct the
2412 code checking for a clobber of a condition register when deciding
2413 whether to predicate.
2415 2011-11-29 Diego Novillo <dnovillo@google.com>
2417 * gimple.c (gimple_call_set_cannot_inline): Move from gimple.h.
2418 Update field call_stmt_cannot_inline_p from call graph edge, if needed.
2419 * gimple.h (gimple_call_set_cannot_inline): Move to gimple.c.
2421 2011-11-29 Sameera Deshpande <sameera.deshpande@arm.com>
2423 * config/arm/arm.md (arm_movdi): Update NEG_POOL_RANGE.
2424 (movdf_soft_insn): Likewise.
2425 * config/arm/fpa.md (thumb2_movdf_fpa): Likewise.
2426 * config/arm/neon.md (neon_mov<mode>): Likewise.
2427 * config/arm/vfp.md (movdi_vfp): Likewise.
2428 (movdi_vfp_cortexa8): Likewise.
2429 (movdf_vfp): Likewise.
2431 2011-11-29 Jakub Jelinek <jakub@redhat.com>
2434 * expr.c (expand_expr_addr_expr_1): Don't call force_operand for
2435 EXPAND_SUM modifier.
2437 2011-11-29 Ira Rosen <ira.rosen@linaro.org>
2439 PR tree-optimization/51301
2440 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check that
2441 the last statement doesn't convert to a bigger type than the original
2442 type of the computation.
2444 2011-11-28 Richard Henderson <rth@redhat.com>
2446 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
2447 Handle overlap between retval and oldval. Always compute boolval
2450 2011-11-28 Jakub Jelinek <jakub@redhat.com>
2453 * tree-ssa.c (execute_update_addresses_taken): Remove
2454 var ={v} {CLOBBER} stmts instead of rewriting them into
2455 var_N ={v} {CLOBBER}.
2458 * function.c (convert_jumps_to_returns): When redirecting an edge
2459 succ to EXIT_BLOCK_PTR, clear EDGE_CROSSING flag.
2461 PR tree-optimization/50078
2462 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Copy over
2463 TREE_THIS_VOLATILE also from the old to new lhs resp. rhs.
2465 PR tree-optimization/50682
2466 * tree-eh.c (maybe_remove_unreachable_handlers): New function.
2467 * tree-flow.h (maybe_remove_unreachable_handlers): New prototype.
2468 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call it.
2470 2011-11-28 Georg-Johann Lay <avr@gjlay.de>
2472 * doc/extend.texi (AVR Built-in Functions): Add documentation for
2473 __builtin_avr_map8 and __builtin_avr_map16.
2475 * config/avr/avr.md: Document new %t and %T asm output codes.
2476 (define_c_enum "unspec"): Add UNSPEC_MAP_BITS.
2477 (adjust_len): Add map_bits.
2478 (map_bitsqi, map_bitshi): New insns.
2479 * config/avr/avr-protos.h (avr_out_map_bits): New.
2480 * config/avr/avr-protos.c (print_operand): Implement %t and %T.
2481 (adjust_insn_length): Handle ADJUST_LEN_MAP_BITS.
2482 (avr_double_int_push_digit): New function.
2483 (avr_map, avr_revert_map, avr_swap_map, avr_id_map): New functions.
2484 (avr_sig_map, avr_map_hamming_byte): New functions.
2485 (avr_out_swap_bits, avr_out_revert_bits, avr_move_bits,
2486 avr_out_map_bits): New functions.
2487 (enum avr_builtin_id): Add AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
2488 (avr_init_builtins): Populate __builtin_avr_map8, __builtin_avr_map16.
2489 (bdesc_2arg): Add __builtin_avr_map8, __builtin_avr_map16 ...
2490 (avr_expand_builtin): ...and expand them.
2491 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
2492 __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
2494 2011-11-27 Richard Sandiford <rdsandiford@googlemail.com>
2497 * config/mips/mips.c (mips_rtx_costs): Handle baddu.
2499 2011-11-27 Richard Sandiford <rdsandiford@googlemail.com>
2501 * config/mips/mips.c (mips16_unextended_reference_p): Test for BLKmode.
2503 2011-11-27 Richard Sandiford <rdsandiford@googlemail.com>
2505 * config/mips/mips-protos.h (mips_emit_binary): Declare.
2506 * config/mips/mips.c (mips_emit_binary): Make global.
2507 (mips_set_mips16_mode): Turn off -mfix-r4000 in MIPS16 mode.
2508 (mips_conditional_register_usage): Don't treat LO and HI as
2509 register operands in MIPS16 mode.
2510 (mips_mulsidi3_gen_fn): Use {u,}mulsidi3_{32,64}bit_mips16
2512 * config/mips/predicates.md (muldiv_target_operand): New predicate.
2513 (move_operand): Allow hilo_operand.
2514 * config/mips/mips.md (mul<mode>3): Explicitly specify LO as the
2515 target of MIPS16 multiplies, then move it into the target register.
2516 (mul<mode>3_internal, *macc2, *msac2): Use muldiv_target_operand.
2517 (<u>mulsidi3_32bit_mips16): New expander.
2518 (<u>mulsidi3_32bit): Use muldiv_target_operand.
2519 (<u>mulsidi3_32bit_r4000): Disable for ISA_HAS_DSP.
2520 (<u>mulsidi3_64bit): Require !TARGET_MIPS16. Split into
2521 <u>mulsidi3_64bit_split.
2522 (<u>mulsidi3_64bit_mips16): New expander.
2523 (<u>mulsidi3_64bit_split): Likewise, using expansions from
2524 two previous define_splits.
2525 (<u>mulsidi3_64bit_hilo, *muls<u>_di, <u>msubsidi4): Use
2526 muldiv_target_operand.
2527 (<su>mulsi3_highpart): Use <su>mulsi3_highpart_split for MIPS16 code.
2528 (<su>mulsi3_highpart_internal): Require !TARGET_MIPS16.
2529 Split into <su>mulsi3_highpart_split.
2530 (<su>mulsi3_highpart_split): New expander.
2531 (<su>muldi3_highpart): Turn into a define_expand.
2532 Use <su>muldi3_highpart_split for MIPS16 code.
2533 (<su>muldi3_highpart_internal): Renamed from <su>muldi3_highpart.
2534 Require !TARGET_MIPS16. Split into <su>muldi3_highpart_split.
2535 (<su>muldi3_highpart_split): New expander.
2536 (<u>mulditi3): Explicitly specify LO as the target of MIPS16
2537 multiplies, then move it into the target register.
2538 (<u>mulditi3_internal, <u>maddsidi4): Use muldiv_target_operand.
2539 (divmod<mode>4, udivmod<mode>4): Turn into define_expands.
2540 Use <u>divmod<mode>4_split for MIPS16 code, then explicitly
2541 move LO into operand 0.
2542 (divmod<mode>4_internal, udivmod<mode>4_internal): Renamed
2543 from <u>divmod<mode>4. Use muldiv_target_operand.
2544 Require !TARGET_MIPS16. Split into <u>divmod<mode>4_split.
2545 (<u>divmod<mode>4_split): New expander.
2546 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): Use muldiv_target_operand.
2547 (mfhi<GPR:mode>_<HILO:mode>): Use hilo_operand.
2549 2011-11-27 Richard Sandiford <rdsandiford@googlemail.com>
2551 * hard-reg-set.h (target_hard_regs): Add x_accessible_reg_set
2552 and x_operand_reg_set.
2553 (accessible_reg_set, operand_reg_set): New macros.
2554 * reginfo.c (init_reg_sets): Initialize accessible_reg_set and
2556 (saved_accessible_reg_set, saved_operand_reg_set): New variables.
2557 (save_register_info): Save them.
2558 (restore_register_info): Restore them.
2559 (init_reg_sets_1): Limit operand_reg_set to accessible_reg_set.
2560 Remove NO_REGS registers from operand_reg_set. Treat members
2561 of operand_reg_set as fixed.
2562 * recog.c (general_operand): Check operand_reg_set rather than NO_REGS.
2563 (register_operand, nonmemory_operand): Likewise.
2564 * varasm.c (make_decl_rtl): Always use DECL_MODE as the mode of
2565 register variables. Check accessible_reg_set and operand_reg_set.
2566 * config/mips/mips.c (mips_conditional_register_usage): Remove
2567 inaccessible register from accessible_reg_set, rather than just
2570 2011-11-27 Gerald Pfeifer <gerald@pfeifer.com>
2572 * config/pa/pa-linux.h (TARGET_GAS): Remove comment.
2574 2011-11-26 Richard Henderson <rth@redhat.com>
2576 * config/arm/arm.c (arm_init_libfuncs): Call init_sync_libfuncs
2579 2011-11-26 Richard Henderson <rth@redhat.com>
2581 * optabs.c (expand_atomic_fetch_op): Always return result.
2583 * optabs.c (init_sync_libfuncs_1): Include max in iteration.
2585 * omp-low.c (expand_omp_atomic): Assume anything aligned to
2586 BIGGEST_ALIGNMENT is aligned.
2588 2011-11-26 Richard Henderson <rth@redhat.com>
2590 * config/m68k/m68k.md (UNSPECV_CAS_1, UNSPECV_CAS_2): New.
2591 (UNSPECV_TAS_1, UNSPECV_TAS_2): New.
2592 (I): New mode iterator.
2593 (xz): New mode attribute.
2594 * config/m68k/sync.md: New file.
2596 * config/m68k/linux.h (TARGET_INIT_LIBFUNCS): New.
2597 * config/m68k/m68k.c (m68k_init_sync_libfuncs): New.
2599 2011-11-26 Nathan Sidwell <nathan@acm.org>
2601 PR gcov-profile/51297
2602 * gcov.c (main): Allocate initial names and sources arrays.
2603 (find_source): Don't check for null name or source arrays here.
2605 2011-11-26 Jakub Jelinek <jakub@redhat.com>
2607 PR rtl-optimization/49912
2608 * cfgrtl.c (rtl_verify_flow_info_1): Ignore also EDGE_PRESERVE bit
2609 when counting n_branch.
2611 2011-11-26 Uros Bizjak <ubizjak@gmail.com>
2613 * config/i386/sync.md (movdi_via_fpu): Add %Z insn suffixes.
2615 2011-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
2618 * calls.c (mem_overlaps_already_clobbered_arg_p):
2619 Return false if no outgoing arguments have been stored so far.
2621 2011-11-25 Georg-Johann Lay <avr@gjlay.de>
2623 * config/avr/avr.c (print_operand): Support code = 'i' for CONST_INT.
2625 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
2628 * tree.h (is_builtin_name): No longer external.
2629 * builtins.c (is_builtin_name): Make static.
2630 * varasm.c (incorporeal_function_p): __sync and __atomic external calls
2631 are not incorporeal and may need asm label processing.
2633 2011-11-25 Georg-Johann Lay <avr@gjlay.de>
2636 * config/avr/avr-protos.h (avr_log_t): Add field .builtin.
2637 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
2638 Don't bypass TARGET_ALL_DEBUG. Print self-info with ?.
2639 (avr_log_vadump): Support %D and %X to print double_int.
2640 (avr_double_int_pop_digit): New static function.
2641 (avr_dump_double_int_hex): New static function.
2643 2011-11-24 Enkovich Ilya <ilya.enkovich@intel.com>
2646 * config/i386/i386.c (distance_non_agu_define_in_bb): Fix insn
2649 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
2651 * optab.c (maybe_emit_atomic_exchange): New. Try to emit an
2652 atomic_exchange pattern.
2653 (maybe_emit_sync_lock_test_and_set): New. Try to emit an exchange
2654 using __sync_lock_test_and_set.
2655 (maybe_emit_compare_and_swap_exchange_loop): New. Try to emit an
2656 exchange using a compare_and_swap loop.
2657 (expand_sync_lock_test_and_set): New. Expand sync_lock_test_and_set.
2658 (expand_atomic_test_and_set): New. Expand test_and_set operation.
2659 (expand_atomic_exchange): Use new maybe_emit_* functions.
2660 (expand_atomic_store): Use new maybe_emit_* functions.
2661 * builtins.c (expand_builtin_sync_lock_test_and_set): Call
2662 expand_sync_lock_test_and_set routine.
2663 (expand_builtin_atomic_exchange): Remove parameter from call.
2664 (expand_builtin_atomic_clear): Use atomic_clear pattern if present.
2665 (expand_builtin_atomic_test_and_set): Add target and simply call
2666 expand_atomic_test_and_set.
2667 (expand_builtin): Add target to expand_builtin_atomic_test_and_set.
2668 * expr.h (expand_atomic_exchange): Add parameter.
2669 (expand_sync_lock_test_and_set): New prototype.
2670 (expand_atomic_test_and_set, expand_atomic_clear): New prototypes.
2672 2011-11-24 H.J. Lu <hongjiu.lu@intel.com>
2675 * config/i386/i386.h (processor_costs): Revert revision 181357.
2676 * config/i386/i386.c (cost models): Likewise.
2677 (core_cost): Likewise.
2678 (promote_duplicated_reg): Likewise.
2679 (promote_duplicated_reg_to_size): Likewise.
2680 (processor_target): Likewise.
2681 (expand_set_or_movmem_via_loop_with_iter): Likewise.
2682 (expand_set_or_movmem_via_loop): Likewise.
2683 (emit_strset): Likewise.
2684 (expand_movmem_epilogue): Likewise.
2685 (expand_setmem_epilogue): Likewise.
2686 (expand_movmem_prologue): Likewise.
2687 (expand_setmem_prologue): Likewise.
2688 (expand_constant_movmem_prologue): Likewise.
2689 (expand_constant_setmem_prologue): Likewise.
2690 (decide_alg): Likewise.
2691 (decide_alignment): Likewise.
2692 (ix86_expand_movmem): Likewise.
2693 (ix86_expand_setmem): Likewise.
2694 (ix86_slow_unaligned_access): Likewise.
2695 * config/i386/i386.md (strset): Likewise.
2696 * config/i386/sse.md (vec_dupv4si): Likewise.
2697 (vec_dupv2di): Likewise.
2699 2011-11-24 Georg-Johann Lay <avr@gjlay.de>
2701 * config/avr/avr.md (*rotlhi2.15): Set length to 4.
2703 2011-11-24 Razya Ladelsky <razya@il.ibm.com>
2705 * tree-data-ref.c (initialize_data_dependence_relation): Update
2706 comment for the self dependence case.
2707 (compute_self_dependence): Remove.
2708 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove call to
2709 compute_self_dependenc.
2711 2011-11-24 Alan Modra <amodra@gmail.com>
2713 * c-decl.c (warn_if_shadowing): Don't warn if shadowed
2714 identifier is from system header.
2716 2011-11-23 Jakub Jelinek <jakub@redhat.com>
2719 * config/i386/i386.c (decide_alg): Initialize *dynamic_check
2722 2011-11-23 Vladimir Makarov <vmakarov@redhat.com>
2724 PR rtl-optimization/48455
2725 * doc/invoke.texi (-fira-region): Document default values.
2727 * flags-types.h (enum ira_region): Add new value
2728 IRA_REGION_AUTODETECT.
2730 * common.opt (fira-region): Set up initial value to
2731 IRA_REGION_AUTODETECT.
2733 * toplev.c (process_options): Set up flag_ira_region depending on
2736 * ira.c (ira.c): Remove optimize guard for ira_build.
2738 2011-11-23 Chung-Lin Tang <cltang@codesourcery.com>
2740 PR rtl-optimization/50496
2741 * jump.c (redirect_jump): Assert fail on nlabel == NULL_RTX
2742 only after epilogue is created. Add comments.
2744 2011-11-22 Richard Henderson <rth@redhat.com>
2746 * config/ia64/ia64.c (ia64_expand_atomic_op): Add model parameter.
2747 Generate the barrier required for the memory model.
2748 (rtx_needs_barrier): Handle UNSPEC_FETCHADD_REL, UNSPEC_CMPXCHG_REL.
2749 * config/ia64/ia64-protos.h: Update.
2750 * config/ia64/ia64.md (UNSPEC_FETCHADD_REL): New.
2751 (UNSPEC_CMPXCHG_REL): New.
2752 * config/ia64/sync.md (mem_thread_fence): New.
2753 (atomic_load<IMODE>, atomic_store<IMODE>): New.
2754 (atomic_compare_and_swap<IMODE>): New.
2755 (cmpxchg_acq_<I124MODE>, cmpxchg_acq_di): New.
2756 (atomic_exchange<IMODE>): New.
2757 (xchg_acq_<IMODE>): Rename from sync_lock_test_and_set<IMODE>.
2758 (atomic_<FETCHOP><IMODE>, atomic_nand<IMODE>): New.
2759 (atomic_fetch_<FETCHOP><IMODE>, atomic_fetch_nand<IMODE>): New.
2760 (atomic_<FETCHOP>_fetch<IMODE>, atomic_nand_fetch<IMODE>): New.
2761 (fetchadd_rel_<I48MODE>): New.
2762 (sync_<FETCHOP><IMODE>, sync_nand<IMODE>): Remove.
2763 (sync_old_<FETCHOP><IMODE>, sync_old_nand<IMODE>): Remove.
2764 (sync_new_<FETCHOP><IMODE>, sync_new_nand<IMODE>): Remove.
2765 (sync_compare_and_swap<IMODE>): Remove.
2766 (sync_lock_release<IMODE>): Remove.
2768 * config/ia64/ia64.md: Use define_c_enum for UNSPEC_*
2769 and UNSPECV_* constants.
2771 2011-11-22 Tom de Vries <tom@codesourcery.com>
2773 PR rtl-optimization/50764
2774 * sched-deps.c (sched_analyze_insn): Make sure frame-related insns are
2775 not moved past preceding jump.
2777 2011-11-22 Jeff Law <law@redhat.com>
2779 * doc/contrib.texi: Add entry for David Binderman.
2781 2011-11-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2783 * postreload.c (reload_combine): Mark reg_state as invalid at
2784 volatile insns if there has been a use already.
2786 2011-11-21 Aldy Hernandez <aldyh@redhat.com>
2788 * opts.c (finish_options): Do not fail for -fgnu-tm.
2789 * gimple-streamer-out.c (output_gimple_stmt): Handle
2791 * gimple-streamer-in.c (input_gimple_stmt): Same.
2792 * lto-cgraph.c (input_overwrite_node): Read tm_clone bit.
2793 (lto_output_node): Write tm_clone bit.
2795 2011-11-22 Ian Lance Taylor <iant@google.com>
2797 * doc/install.texi (Configuration): Correct doc of
2798 --enable-build-poststage1-with-cxx: it is not experimental.
2800 2011-11-22 Jakub Jelinek <jakub@redhat.com>
2802 PR tree-optimization/51074
2803 * fold-const.c (fold_binary_loc): Fix up VEC_INTERLEAVE_*_EXPR
2804 handling for BYTES_BIG_ENDIAN.
2805 * optabs.c (can_vec_perm_for_code_p): Likewise.
2807 2011-11-22 Michael Matz <matz@suse.de>
2810 * trans-mem.c (expand_block_tm): Ignore clobbers.
2812 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
2814 * config/darwin.h (ENDFILE_SPEC): New.
2815 (DARWIN_CRT1_SPEC): Add crttms.o.
2816 (STARTFILE_SPEC): Likewise for dynamic libs and bundles.
2817 * config/i386.h (ENDFILE_SPEC): Amend to include crttme.o.
2819 2011-11-22 Michael Matz <matz@suse.de>
2822 * tree.c (iterative_hash_expr): Remove break after return.
2824 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
2826 * target.def (tm_clone_table_section): New hook.
2827 * doc/tm.texi.in (TARGET_ASM_TM_CLONE_TABLE_SECTION): Define.
2828 * doc/tm.texi: Regenerate.
2829 * varasm.c (dump_tm_clone_pairs): Use target tm_clone_table_section.
2830 * output.h (default_clone_table_section): New prototype.
2831 * config/darwin.h (TARGET_ASM_TM_CLONE_TABLE_SECTION): New.
2832 * config/darwin-protos.h (darwin_tm_clone_table_section): New prototype.
2833 * config/darwin.c (darwin_tm_clone_table_section): New.
2835 2011-11-21 Torvald Riegel <triegel@redhat.com>
2837 * trans-mem.c (diagnose_tm_1): Print an expression instead of a
2838 declaration in error messages for indirect calls.
2840 2011-11-21 David S. Miller <davem@davemloft.net>
2842 * config/sparc/sparc.c (sparc_regmode_natural_size): New function
2843 implementing REGMODE_NATURAL_SIZE taking into consideration vector
2845 (sparc_modes_tieable_p): Similarly for MODES_TIEABLE_P.
2846 * config/sparc/sparc-protos.h (sparc_regmode_natural_size,
2847 sparc_modes_tieable_p): Declare.
2848 * gcc/config/sparc/sparc.h (REGMODE_NATURAL_SIZE,
2849 MODES_TIEABLE_P): Use new helper functions.
2852 2011-11-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2855 * expmed.c (store_bit_field_1): Use extract_bit_field on big
2856 endian targets if the source cannot be exactly covered by word
2859 2011-11-21 Jakub Jelinek <jakub@redhat.com>
2862 * var-tracking.c (loc_cmp): For ENTRY_VALUEs use ENTRY_VALUE_EXP
2863 macro instead of XEXP.
2865 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
2867 * configure: Regenerate.
2869 2011-11-21 Georg-Johann Lay <avr@gjlay.de>
2871 * config/avr/avr.c (output_reload_in_const): Loading a byte with 0
2872 must not affect cc0.
2873 * config/avr/avr.md (*movhi, *movpsi, *movsi, *movsf): Zero to any
2874 register does not change cc0. Same for any constant to ld-register.
2876 2011-11-21 Uros Bizjak <ubizjak@gmail.com>
2878 * config/i386/mmx.md (unspec) <UNSPEC_MOVNTQ, UNSPEC_PFRCP,
2879 UNSPEC_PFRCPIT1, UNSPEC_PFRCPIT2, UNSPEC_PFRSQRT, UNSPEC_PFRSQIT1>:
2880 Move from config/i386/i386.md
2881 (unspecv) <UNSPECV_EMMS, UNSPECV_FEMMS>: Ditto.
2882 * config/i386/sse.md (unspec) <UNSPEC_MOVNT,UNSPEC_MOVU, UNSPEC_LDDQU,
2883 UNSPEC_PSHUFB, UNSPEC_PSIGN, UNSPEC_PALIGNR, UNSPEC_EXTRQI,
2884 UNSPEC_EXTRQ, UNSPEC_INSERTQI, UNSPEC_INSERTQ, UNSPEC_BLENDV,
2885 UNSPEC_INSERTPS, UNSPEC_DP, UNSPEC_MOVNTDQA, UNSPEC_MPSADBW,
2886 UNSPEC_PHMINPOSUW, UNSPEC_PTEST, UNSPEC_PCMPESTR, UNSPEC_PCMPISTR,
2887 UNSPEC_FMADDSUB, UNSPEC_XOP_UNSIGNED_CMP, UNSPEC_XOP_TRUEFALSE,
2888 UNSPEC_XOP_PERMUTE, UNSPEC_FRCZ, UNSPEC_AESENC, UNSPEC_AESENCLAST,
2889 UNSPEC_AESDEC, UNSPEC_AESDECLAST, UNSPEC_AESIMC,
2890 UNSPEC_AESKEYGENASSIST, UNSPEC_PCLMUL, UNSPEC_PCMP, UNSPEC_VPERMIL,
2891 UNSPEC_VPERMIL2, UNSPEC_VPERMIL2F128, UNSPEC_CAST, UNSPEC_VTESTP,
2892 UNSPEC_VCVTPH2PS, UNSPEC_VCVTPS2PH, UNSPEC_VPERMSI, UNSPEC_VPERMDF,
2893 UNSPEC_VPERMSF, UNSPEC_VPERMTI, UNSPEC_GATHER, UNSPEC_VSIBADDR>: Ditto.
2894 (unspecv) <UNSPECV_LDMXCSR, UNSPECV_STMXCSR, UNSPECV_CLFLUSH,
2895 UNSPECV_MONITOR, UNSPECV_MWAIT, UNSPECV_VZEROALL, UNSPECV_VZEROUPPER>:
2897 * config/i386/sync.md (unspec) <UNSPEC_LFENCE, UNSPEC_SFENCE,
2898 UNSPEC_MFENCE, UNSPEC_MOVA>: Ditto.
2899 (unspecv) <UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2, UNSPECV_CMPXCHG_3,
2900 UNSPECV_CMPXCHG_4, UNSPECV_XCHG, UNSPECV_LOCK>: Ditto.
2901 (sse2_lfence): Move from config/i386/sse.md.
2902 (*sse2_lfence): Ditto.
2903 (sse_sfence): Ditto.
2904 (*sse_sfence): Ditto.
2905 (sse2_mfence): Ditto.
2906 (mfence_sse2): Ditto. Rename from *sse2_mfence. Enable also
2908 (mem_thread_fence): Use mfence_sse2.
2910 2011-11-21 Georg-Johann Lay <avr@gjlay.de>
2912 * config/avr/avr.h (struct base_arch_s): Add field sfr_offset.
2913 * config/avr/avr-devices.c: Ditto. And initialize it.
2914 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in define
2916 * config/avr/avr-protos.h (out_movqi_r_mr, out_movqi_mr_r): Remove.
2917 (out_movhi_r_mr, out_movhi_mr_r): Remove.
2918 (out_movsi_r_mr, out_movsi_mr_r): Remove.
2919 * config/avr/avr.md (*cbi, *sbi): Use %i instead of %m-0x20.
2920 (*insv.io, *insv.not.io): Ditto.
2921 * config/avr/avr.c (out_movsi_r_mr, out_movsi_mr_r): Make static.
2922 (print_operand): Implement "%i" to print address as I/O address.
2923 (output_movqi): Clean up call of out_movqi_mr_r.
2924 (output_movhi): Clean up call of out_movhi_mr_r.
2925 (avr_file_start): Use avr_current_arch->sfr_offset instead of
2926 magic -0x20. Use TMP_REGNO, ZERO_REGNO instead of 0, 1.
2927 (avr_out_sbxx_branch): Use %i instead of %m-0x20.
2928 (out_movqi_r_mr, out_movqi_mr_r): Ditto. And make static.
2929 (out_movhi_r_mr, out_movhi_mr_r): Ditto. And use avr_asm_len.
2930 (out_shift_with_cnt): Clean up code: Use avr_asm_len.
2931 (output_movsisf): Use output_reload_insisf for all CONSTANT_P sources.
2932 (avr_out_movpsi): USE avr_out_reload_inpsi for all CONSTANT_P sources.
2933 Clean up call of avr_out_store_psi.
2934 (output_reload_in_const): Don't cut symbols longer than 2 bytes.
2935 (output_reload_insisf): Filter CONST_INT_P or CONST_DOUBLE_P to
2936 try if setting pre-cleared register is advantageous.
2937 (avr_out_plus_1): Use gen_int_mode instead of GEN_INT.
2939 2011-11-20 Joey Ye <joey.ye@arm.com>
2941 * expr.c (expand_expr_real_1): Correctly handle strict volatile
2942 bitfield loads smaller than mode size.
2944 2011-11-20 Richard Henderson <rth@redhat.com>
2946 * config/mips/mips.c (mips_init_libfuncs): Call init_sync_libfuncs.
2948 2011-11-20 Uros Bizjak <ubizjak@gmail.com>
2951 * config/i386/i386.c (ix86_expand_vcond): Generate TARGET_XOP
2952 patterns for supported mode only.
2955 * config/i386/i386.c (ix86_expand_builtin)
2956 <IX86_BUILTIN_GATHERALTSIV4DI>: Use CODE_FOR_avx2_gathersiv4di.
2958 2011-11-20 Uros Bizjak <ubizjak@gmail.com>
2960 * config/i386/i386.md (UNSPEC_MOVNTI): Remove.
2961 (UNSPEC_MOVNTQ): New unspec.
2962 * config/i386/mmx.md (sse_movntq): Rename from sse_movntdi.
2963 Use UNSPEC_MOVNTQ instead of UNSPEC_MOVNT.
2964 * config/i386/sse.md (sse2_movnti<mode>): Use UNSPEC_MOVNT instead of
2966 (STORENT_MODE): Add DI and V4DI modes.
2968 2011-11-20 Nathan Sidwell <nathan@acm.org>
2970 PR gcov-profile/51113
2971 * coverage.c (build_var): Propagate visibility for public
2972 decls. Use make_decl_one_only for PIC correctness.
2975 * gcc.misc-tests/gcov-13.c: Check gcovpart-13b coverage
2976 * gcc.misc-tests/gcov-16.c: New.
2977 * gcc.misc-tests/gcov-17.c: New.
2978 * g++.dg/gcov/gcov-8.C: New.
2979 * g++.dg/gcov/gcov-9.C: New.
2980 * g++.dg/gcov/gcov-10.C: New.
2982 2011-11-19 Eric Botcazou <ebotcazou@adacore.com>
2984 PR rtl-optimization/51187
2985 * reorg.c (relax_delay_slots): Do not consider a jump useless if there
2986 is a barrier between the jump and its target label.
2988 2011-11-19 Patrick Marlier <patrick.marlier@gmail.com>
2991 * tracer.c (ignore_bb_p): Don't copy GIMPLE_TRANSACTION.
2993 2011-11-19 Eric Botcazou <ebotcazou@adacore.com>
2995 * expmed.c (store_bit_field_1): Revert bogus formatting change.
2997 2011-11-19 Richard Earnshaw <rearnsha@arm.com>
3000 * config/arm/arm.c (neon_disambiguate_copy): Correctly handle partial
3001 overlap of src and dest operands.
3003 2011-11-19 Iain Sandoe <iains@gcc.gnu.org>
3005 * config/darwin.h (ASM_DEBUG_SPEC): New.
3006 * config/darwin9.h (ASM_DEBUG_SPEC): New.
3008 2011-11-18 Jan Hubicka <jh@suse.cz>
3010 * config/i386/i386.c (atom_cost): Disable SSE loop until alignment
3013 2011-11-18 Anatoly Sokolov <aesok@post.ru>
3015 * config/cris/cris.c (cris_function_value_regno_p): Make static.
3016 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
3017 * config/cris/cris.h (FUNCTION_VALUE_REGNO_P): Remove.
3018 * config/cris/cris-protos.h (cris_function_value_regno_p): Remove.
3020 2011-11-18 H.J. Lu <hongjiu.lu@intel.com>
3023 * doc/extend.texi: Document __builtin_ia32_movnti64.
3025 * config/i386/emmintrin.h (_mm_stream_si64): New.
3027 * config/i386/i386-builtin-types.def: Add VOID_FTYPE_PLONGLONG_LONGLONG.
3029 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTI64.
3030 (bdesc_special_args): Update __builtin_ia32_movnti. Add
3031 __builtin_ia32_movnti64.
3032 (ix86_expand_special_args_builtin): Handle
3033 VOID_FTYPE_PLONGLONG_LONGLONG.
3035 * config/i386/i386.md (UNSPEC_MOVNTI): New.
3037 * config/i386/sse.md (sse2_movntsi): Renamed to ...
3038 (sse2_movnti<mode>): This.
3040 2011-11-18 Georg-Johann Lay <avr@gjlay.de>
3043 * config/avr/avr.h (base_arch_s): Add field n_segments.
3044 (ADDR_SPACE_PGM1, ADDR_SPACE_PGM2, ADDR_SPACE_PGM3,
3045 ADDR_SPACE_PGM4, ADDR_SPACE_PGM5, ADDR_SPACE_PGMX): New address spaces.
3046 (AVR_HAVE_ELPM, AVR_HAVE_ELPMX): New defines.
3047 (INIT_EXPANDERS): New define.
3048 * config/avr/avr-protos.h (avr_mem_pgmx_p): New.
3049 (avr_init_expanders): New.
3050 (avr_emit_movmemhi, avr_out_movmem): New.
3051 (avr_xload_libgcc_p): New.
3052 * config/avr/avr-c.c (avr_register_target_pragmas): Register
3053 address spaces __pgm1, __pgm2, __pgm3, __pgm4 __pgm5, __pgmx.
3054 (avr_cpu_cpp_builtins): Add built-in defines __PGM1,
3055 __PGM2, __PGM3, __PGM4, __PGM5, __PGMX.
3056 * config/avr/avr-devices.c (avr_arch_types): Set field n_segments.
3058 * config/avr/avr.c (AVR_SECTION_PROGMEM): Change define to cover
3059 3 bits instead of just 1.
3060 (xstring_empty, xstring_e, rampz_rtx): New static GTYed variables.
3061 (progmem_section): Change from section to array of sections.
3062 (progmem_section_prefix): New static variable.
3063 (avr_file_start): Print set for __RAMPZ__
3064 (avr_option_override): Move initialization of RTXes from here...
3065 (avr_init_expanders): ...to this new function.
3066 (avr_pgm_segment): New static function.
3067 (avr_decl_pgm_p): Handle error_mark_node.
3068 (avr_mem_pgmx_p, avr_decl_pgmx_p): New static functions.
3069 (avr_out_xload, avr_find_unused_d_reg): New static functions.
3070 (expand_prologue, expand_epilogue): Use rampz_rtx.
3071 (print_operand): Hande CONST_STRING.
3072 (avr_xload_libgcc_p): New static function.
3073 (avr_out_lpm_no_lpmx, avr_out_lpm): Handle ELPM.
3074 (avr_progmem_p): Return 2 for 24-bit flash address space.
3075 (avr_out_sbxx_branch): Clean-up code from ASn macros.
3076 (out_movqi_r_mr, out_movqi_mr_r): Ditto. And recognize RAMPZ's
3077 address and print symbolically.
3078 (avr_asm_named_section, avr_section_type_flags,
3079 avr_encode_section_info, avr_asm_select_section,
3080 avr_addr_space_address_mode, avr_addr_space_pointer_mode,
3081 avr_addr_space_legitimate_address_p, avr_addr_space_convert,
3082 avr_addr_space_legitimize_address): Handle new address spaces.
3083 (avr_output_progmem_section_asm_op): New static function.
3084 (avr_asm_init_sections): Initialize progmem_section[].
3085 (adjust_insn_length): Handle ADJUST_LEN_XLOAD, ADJUST_LEN_MOVMEM.
3086 (avr_const_address_lo16): New static function.
3087 (avr_assemble_integer): Use it to handle 3-byte integers.
3088 (avr_emit_movmemhi, avr_out_movmem): New functions.
3090 * config/avr/predicates.md (nox_general_operand): Handle new
3092 * config/avr/avr.md (unspec): Add UNSPEC_MOVMEM.
3093 (adjust_len): Add xload, movmem.
3094 (SP_ADDR): New define_constants.
3095 (isa): Add "lpm", "lpmx", "elpm", "elpmx".
3096 (enabled): Handle them.
3097 (load<mode>_libgcc): New expander.
3098 (*load.<mode>.libgcc): Rename to load_<mode>_libgcc.
3099 (xload8_A, xload<mode>_A): New insn-and-splits.
3100 (xload_8, xload_<mode>_libgcc, xload_<mode>, loadmem_elpm): New insns.
3101 (mov<mode>): Handle new address spaces.
3102 (movmemhi): Rewrite using avr_emit_movmemhi.
3103 (MOVMEM_r_d): New mode attribute.
3104 (movmem_<mode>, movmem_qi_elpm): New insns.
3105 (setmemhi, *clrmemqi, *clrmemhi, strlenhi, *strlenhi): Unquote
3106 C-code. Use label instead of hard-coded instrunction lengths.
3108 2011-11-18 Martin Jambor <mjambor@suse.cz>
3110 PR tree-optimization/50605
3111 * gimple.c (is_gimple_ip_invariant_address): Also handle MEM_REFs
3112 of IPA invariant decls.
3114 2011-11-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3116 * tree-outof-ssa.c (insert_back_edge_copies): Add call to
3117 mark_dfs_back_edges.
3119 2011-11-18 Iain Sandoe <iains@gcc.gnu.org>
3122 * configure.ac: Remove ranlib special-casing for Darwin.
3123 * configure: Regenerate.
3125 2011-11-18 Uros Bizjak <ubizjak@gmail.com>
3127 PR tree-optimization/51118
3128 * fold-const.c (fold_checksum_tree): Check for TS_TYPED structure
3129 before using TREE_TYPE accessor on expr.
3131 2011-11-17 Jan Hubicka <jh@suse.cz>
3134 * i386.c (atom_cost): Fix 32bit memset description.
3135 (expand_set_or_movmem_via_loop_with_iter): Output proper bounds check
3137 (expand_movmem_epilogue): Handle epilogues up to size 15 w/o producing
3139 (decide_alg): sse_loop is not useable wthen SSE2 is disabled;
3140 when not optimizing always use rep movsb or lincall; do not produce
3141 word sized loops when optimizing memset for size (to avoid need
3142 for large constants).
3143 (ix86_expand_movmem): Get into sync with ix86_expand_setmem;
3144 choose unroll factors better; always do 128bit moves when producing
3145 SSE loops; do not produce loopy epilogue when size is too small.
3146 (promote_duplicated_reg_to_size): Do not look into desired alignments
3147 when doing vector expansion.
3148 (ix86_expand_setmem): Track better when promoted value is available;
3149 choose unroll factors more sanely. Output loopy epilogue only
3152 2011-11-17 Steve Ellcey <sje@cup.hp.com>
3155 * output.h (fprint_w): Remove.
3156 * final.c (fprint_w): Remove.
3157 (output_addr_const): Change fprint_w back to fprintf.
3159 2011-11-17 Andrew Pinski <apinski@cavium.com>
3161 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for MIPS.
3163 2011-11-17 Andrew MacLeod <amacleod@redhat.com>
3165 * builtins.c (expand_builtin): Remove 4th parameter representing
3166 weak/strong mode when __atomic_compare_exchange becomes a library call.
3168 2011-11-17 Richard Henderson <rth@redhat.com>
3170 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap): Get
3171 new pseudo for target after convert_modes.
3172 (rs6000_expand_atomic_exchange, rs6000_expand_atomic_op): Likewise.
3174 2011-11-17 Richard Henderson <rth@redhat.com>
3176 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap): Get
3177 new pseudo for target after convert_modes.
3178 (rs6000_expand_atomic_exchange, rs6000_expand_atomic_op): Likewise.
3180 2011-11-17 Richard Henderson <rth@redhat.com>
3182 * builtins.c (expand_builtin_mem_thread_fence): Remove.
3183 (expand_builtin_mem_signal_fence): Remove.
3184 (expand_builtin_atomic_thread_fence): Use expand_mem_thread_fence.
3185 (expand_builtin_sync_synchronize): Likewise.
3186 (expand_builtin_atomic_signal_fence): Use expand_mem_signal_fence.
3187 * optabs.c (expand_asm_memory_barrier): Split out from
3188 expand_builtin_mem_signal_fence.
3189 (expand_mem_thread_fence): New, a combination of code from
3190 expand_builtin_mem_thread_fence and expand_builtin_sync_synchronize.
3191 (expand_mem_signal_fence): Moved and renamed from
3192 expand_builtin_mem_signal_fence.
3193 (expand_atomic_exchange): Use expand_mem_thread_fence.
3194 (expand_atomic_load, expand_atomic_store): Likewise.
3195 * expr.h, optabs.h: Update decls.
3197 2011-11-17 Bin Cheng <bin.cheng@arm.com>
3199 PR rtl-optimization/50663
3200 * cprop.c (implicit_set_indexes): New global variable.
3201 (insert_set_in_table): Add additional parameter and record implicit
3203 (hash_scan_set): Add additional parameter and pass it to above.
3204 (hash_scan_insn): Pass false to hash_scan_set.
3205 (compute_hash_table_work): Pass true to hash_scan_set.
3206 (compute_cprop_data): Add implicit set to AVIN of block which the
3207 implicit set is recorded for.
3208 (one_cprop_pass): Handle implicit_set_indexes array.
3210 2011-11-17 Michael Matz <matz@suse.de>
3214 * tree-ssa-live.c (mark_all_vars_used_1): Recurse only for decls of
3216 (remove_unused_locals): Ditto.
3218 2011-11-16 Richard Henderson <rth@redhat.com>
3220 * config/alpha/alpha.c (alpha_split_compare_and_swap_12): Copy
3221 ALIAS_SET_MEMORY_BARRIER when creating a new memory.
3222 (alpha_split_atomic_exchange_12): Likewise.
3223 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Likewise.
3225 2011-11-16 Joseph Myers <joseph@codesourcery.com>
3227 * config/i386/i386elf.h (PREFERRED_DEBUGGING_TYPE): Remove.
3229 2011-11-16 David Edelsohn <dje.gcc@gmail.com>
3231 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
3232 Default to minimum alignment if decl is NULL.
3234 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
3236 * config/i386/sse.md (round<mode>2_vec_pack_sfix): Optimize V2DFmode
3238 (<sse4_1>_round<ssemodesuffix>_vec_pack_sfix<avxsizesuffix>): Ditto.
3240 2011-11-16 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3242 * doc/invoke.texi: Document AMD bdver1 and btver1.
3244 2011-11-16 Richard Earnshaw <rearnsha@arm.com>
3245 Bernd Schmidt <bernds@coudesourcery.com>
3246 Sebastian Huber <sebastian.huber@embedded-brains.de>
3249 * config/arm/arm.c (store_multiple_sequence): Avoid cases where
3250 the base reg is stored iff compiling for Thumb1.
3252 2011-11-16 Razya Ladelsky <razya@il.ibm.com>
3254 PR tree-optimization/49960
3255 * tree-data-ref.c (initialize_data_dependence_relation): Add
3257 Remove call to compute_self_dependence.
3258 (compute_affine_dependence): Remove the !DDR_SELF_REFERENCE condition.
3259 (compute_self_dependence): Remove old code. Add call to
3260 compute_affine_dependence.
3261 (compute_all_dependences): Remove call to compute_self_dependence.
3262 Add call to compute_affine_dependence.
3264 2011-11-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3267 * expmed.c (store_bit_field_1): Use extract_bit_field on big
3268 endian targets if the source cannot be exactly covered by word
3271 2011-11-15 Joseph Myers <joseph@codesourcery.com>
3273 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Change STRING_LIMIT to
3276 2011-11-15 Richard Henderson <rth@redhat.com>
3278 * config/alpha/alpha.c (alpha_pre_atomic_barrier): New.
3279 (alpha_post_atomic_barrier): New.
3280 (alpha_split_atomic_op): New memmodel argument; honor it.
3281 (alpha_split_compare_and_swap): Take array of operands. Honor
3282 memmodel; always set bool output
3283 (alpha_expand_compare_and_swap_12): Similarly.
3284 (alpha_split_compare_and_swap_12): Similarly.
3285 (alpha_split_atomic_exchange): Similarly. Rename from
3286 alpha_split_lock_test_and_set.
3287 (alpha_expand_atomic_exchange_12): Similarly. Rename from
3288 alpha_expand_lock_test_and_set_12.
3289 (alpha_split_atomic_exchange_12): Similarly. Rename from
3290 alpha_split_lock_test_and_set_12.
3291 * config/alpha/alpha-protos.h: Update.
3292 * config/alpha/alpha.md (UNSPECV_CMPXCHG): New.
3293 * config/alpha/constraints.md ("w"): New.
3294 * config/alpha/predicates.md (mem_noofs_operand): New.
3295 * config/alpha/sync.md (atomic_compare_and_swap<mode>): Rename from
3296 sync_compare_and_swap<mode>; add the new parameters.
3297 (atomic_exchange<mode>): Update from sync_test_and_set<mode>.
3298 (atomic_fetch_<op><mode>): Update from sync_old_<op><mode>.
3299 (atomic_<op>_fetch<mode>): Update from sync_new_<op><mode>.
3300 (atomic_<op><mode>): Update from sync_<op><mode>.
3302 2011-11-16 Tom de Vries <tom@codesourcery.com>
3304 * tree-ssa-tail-merge.c (replace_block_by): Add frequency of bb2 to bb1.
3306 2011-11-16 Alan Modra <amodra@gmail.com>
3308 PR rtl-optimization/51051
3310 * function.c (thread_prologue_and_epilogue_insns): Guard
3311 emitting return with single_succ_p test.
3313 2011-11-15 Joern Rennecke <joern.rennecke@embecosm.com>
3315 * config/epiphany/epiphany.md (mov<mode>cc): Fix code to
3316 get mode from CMP_OP1 if CMP_OP0 is VOIDmode.
3318 2011-11-15 Uros Bizjak <ubizjak@gmail.com>
3320 * config/i386/sse.md (vec_pack_trunc_v2df): Optimize sequence for AVX.
3321 (vec_pack_sfix_trunc_v2df): Ditto.
3322 (vec_pack_sfix_v2df): Ditto.
3323 (vec_pack_sfix_trunc_v4df): Generate fix_truncv4dfv4si2 and
3324 avx_vec_concatv8si patterns.
3325 (vec_pack_sfix_v4df): Generate avx_cvtpd2dq256 and
3326 avx_vec_concatv8si patterns.
3328 2011-11-15 Torvald Riegel <triegel@redhat.com>
3330 * c-parser.c (c_parser_transaction_expression): Require parentheses
3331 when parsing transaction expressions.
3333 2011-11-15 Tristan Gingold <gingold@adacore.com>
3335 * incpath.c (get_added_cpp_dirs): New function.
3336 * incpath.h (get_added_cpp_dirs): Declare.
3337 * config/vms/vms-c.c (vms_c_register_includes): New function.
3338 (vms_std_modules): New variable.
3339 * config/vms/vms.h (TARGET_EXTRA_INCLUDES): Define.
3340 (vms_c_register_includes): Declare.
3342 2011-11-15 Tristan Gingold <gingold@adacore.com>
3344 * c-family/c-pragma.h (pragma_extern_prefix): Declare.
3345 * c-family/c-pragma.c (pragma_extern_prefix): Make it public.
3346 * config/vms/vms-c.c (saved_extern_prefix): New variable.
3347 (vms_pragma_extern_prefix): New function.
3348 (vms_c_register_pragma): Register vms_pragma_extern_prefix.
3350 2011-11-15 Georg-Johann Lay <avr@gjlay.de>
3353 * config/avr/avr.h (ADDR_SPACE_PGM): New address spaces.
3354 (REGISTER_TARGET_PRAGMAS): New define.
3355 * config/avr/avr-protos.h (avr_mem_pgm_p): New.
3356 (avr_load_libgcc_p): New.
3357 (avr_register_target_pragmas): New.
3358 (asm_output_external_libcall): Remove.
3359 (avr_log_t): Add field "progmem". Order alphabetically.
3360 * config/avr/avr-log.c (avr_log_set_avr_log): Set avr_log.progmem.
3361 * config/avr/avr-c.c (langhooks.h): New include.
3362 (avr_register_target_pragmas): New function. Register address
3364 (avr_cpu_cpp_builtins): Add built-in define __PGM.
3366 * config/avr/avr.c: Include "c-family/c-common.h".
3367 (TARGET_LEGITIMATE_ADDRESS_P): Remove define.
3368 (TARGET_LEGITIMIZE_ADDRESS): Remove define.
3369 (TARGET_ADDR_SPACE_SUBSET_P): Define to...
3370 (avr_addr_space_subset_p): ...this new static function.
3371 (TARGET_ADDR_SPACE_CONVERT): Define to...
3372 (avr_addr_space_convert): ...this new static function.
3373 (TARGET_ADDR_SPACE_ADDRESS_MODE): Define to...
3374 (avr_addr_space_address_mode): ...this new static function.
3375 (TARGET_ADDR_SPACE_POINTER_MODE): Define to...
3376 (avr_addr_space_pointer_mode): ...this new static function.
3377 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define to...
3378 (avr_addr_space_legitimate_address_p): ...this new static function.
3379 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Define to...
3380 (avr_addr_space_legitimize_address): ...this new static function.
3381 (avr_mode_code_base_reg_class): Handle address spaces.
3382 (avr_regno_mode_code_ok_for_base_p): Ditto.
3383 (lpm_addr_reg_rtx, lpm_reg_rtx, all_regs_rtx): New static variables.
3384 (avr_option_override): Initialize them.
3385 (output_reload_in_const): Use all_regs_rtx. Fix signedness of loop
3387 (avr_pgm_segment): New static function.
3388 (avr_decl_pgm_p, avr_mem_pgm_p): New static functions.
3389 (avr_out_lpm, avr_out_lpm_no_lpmx): New static functions.
3390 (output_movqi, output_movhi, output_movsisf, avr_out_movpsi): Call
3391 avr_out_lpm to handle loads from progmem.
3392 (avr_load_libgcc_p): New static function.
3393 (avr_progmem_p): Test if decl is in flash.
3394 (avr_pgm_pointer_const_p): New static function.
3395 (avr_nonconst_pointer_addrspace): New static function.
3396 (avr_pgm_check_var_decl): New static function.
3397 (avr_insert_attributes): Use it. Change error message to report
3398 cause (progmem or address space) when code wants to write to flash.
3399 (avr_section_type_flags): Unset section flag SECTION_BSS for
3402 * config/avr/predicates.md (nop_general_operand): New predicate.
3403 (nox_general_operand): New predicate.
3404 * config/avr/avr.md (LPM_REGNO): New define_constant.
3405 (load<mode>_libgcc): New expander.
3406 (*load.<mode>.libgcc): New insn.
3407 (mov<mode>): Handle loads from non-generic AS.
3408 (movmemhi): Ditto. Propagate address space information to newly
3410 (movqi_insn, *movhi, *movpsi, *movsi, *movsf): Change predicate #1
3411 to nox_general_operand.
3412 (ashrqi3, ashrhi3, ashrsi3): Change predicate #1 to
3413 nop_general_operand.
3414 (ashlqi3, *ashlqi3, ashlhi3, ashlsi3): Ditto.
3415 (lshrqi3, *lshrqi3, lshrhi3, lshrsi3): Ditto.
3416 (split-lpmx): New split.
3417 (*ashlhi3_const, *ashlsi3_const, *ashrhi3_const, *ashrsi3_const,
3418 *lshrhi3_const, *lshrsi3_const): Indent, unquote C.
3420 2011-11-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3422 * ipa-cp.c (ipa_value_from_jfunc): Make global.
3423 (ipa_cst_from_jfunc): Remove, use ipa_value_from_jfunc instead.
3424 (get_indirect_edge_target): Rename, make global.
3425 (devirtualization_time_bonus, estimate_local_effects,)
3426 (ipcp_discover_new_direct_edges): Update.
3427 * ipa-inline-analysis.c (evaluate_conditions_for_edge):
3428 Generalize to also handle types. Rename to ...
3429 (evaluate_properties_for_edge): Use instead of
3430 evaluate_conditions_for_edge.
3431 (estimate_edge_devirt_benefit): New function.
3432 (estimate_calls_size_and_time): Use it.
3433 (estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,)
3434 (inline_merge_summary): Update.
3435 (do_estimate_edge_time, do_estimate_edge_growth): Update. Calculate
3436 parameter information at the call site and pass it on to subroutines.
3437 * tree-inline.c (estimate_num_insns): Distinguish between direct and
3439 (init_inline_once): Set size and time costs or indirect calls.
3440 * tree-inline.h (eni_weights): Add indirect_call_cost.
3442 2011-11-15 Tom de Vries <tom@codesourcery.com>
3444 PR tree-optimization/51005
3445 * tree-ssa-tail-merge.c (delete_basic_block_same_succ): Rename to
3446 mark_basic_block_deleted.
3447 (update_worklist): Inline purge_bbs.
3448 (purge_bbs, unlink_virtual_phi, update_vuses, vop_at_entry)
3449 (delete_block_update_dominator_info): Remove.
3450 (replace_block_by): Remove update_vops parameter. Partially evaluate
3451 for update_vops == false.
3452 (apply_clusters): Remove update_vops parameter. Remove update_vops
3453 argument in replace_block_by call.
3454 (update_debug_stmts): Remove MAY_HAVE_DEBUG_STMTS test.
3455 (tail_merge_optimize): Remove update_vops argument to apply_clusters.
3456 Remove call to purge_bbs. Add calls to calculate_dominance_info and
3457 free_dominance_info. Add MAY_HAVE_DEBUG_STMTS before calling
3458 update_debug_stmts. Mark vop var for renaming, if necessary.
3460 2011-11-15 Bernd Schmidt <bernds@codesourcery.com>
3462 PR rtl-optimization/51051
3463 * cfgrtl.c (cfg_layout_can_merge_blocks_p): Return FALSE if the
3464 move would cause fallthrough into the exit block.
3466 2011-11-14 Richard Henderson <rth@redhat.com>
3468 * config/rs6000/rs6000.c (emit_load_locked): Assert the mode is
3470 (emit_store_conditional): Likewise.
3471 (rs6000_pre_atomic_barrier, rs6000_post_atomic_barrier): New.
3472 (rs6000_adjust_atomic_subword): New.
3473 (rs6000_mask_atomic_subword, rs6000_finish_atomic_subword): New.
3474 (rs6000_expand_atomic_op): Rename from rs6000_emit_sync; rewrite
3475 for pre-reload expansion.
3476 (rs6000_split_compare_and_swap, rs6000_split_compare_and_swapqhi,
3477 rs6000_expand_compare_and_swapqhi): Merge into ...
3478 (rs6000_expand_atomic_compare_and_swap): ... here. New function.
3479 rs6000_split_lock_test_and_set; expand immediately. Handle
3481 * config/rs6000/rs6000.md (UNSPEC_LWSYNC): Move and rename
3482 from UNSPECV_LWSYNC.
3483 * config/rs6000/sync.md (fetchopsi_constr, fetchopdi_constr): Remove.
3484 (mem_thread_fence): New.
3485 (hwsync): Rename from memory_barrier.
3486 (*hwsync): Rename from *sync_internal.
3487 (lwsync, *lwsync): Mirror hwsync implementation.
3488 (isync): Don't reference memory.
3490 (atomic_load<INT>, atomic_store<INT>): New.
3491 (ATOMIC): New mode iterator.
3492 (load_locked<ATOMIC>): Rename from load_locked_<GPR>.
3493 (store_conditional<ATOMIC>): Rename from store_conditional_<GPR>.
3494 (sync_compare_and_swap<GPR>): Remove.
3495 (sync_compare_and_swaphi, sync_compare_and_swapqi): Remove.
3496 (sync_compare_and_swapqhi_internal): Remove.
3497 (sync_lock_test_and_set<GPR>): Remove.
3498 (sync_<FETCHOP><INT1>): Remove.
3499 (*sync_<FETCHOP>si_internal, *sync_<FETCHOP>di_internal): Remove.
3500 (sync_nand<INT1>, *sync_nand<GPR>_internal): Remove.
3501 (sync_old_<FETCHOP><GPR>): Remove.
3502 (*sync_old_<FETCHOP>si_internal): Remove.
3503 (*sync_old_<FETCHOP>di_internal): Remove.
3504 (sync_old_nand<INT1>): Remove.
3505 (*sync_old_nand<GPR>_internal): Remove.
3506 (sync_new_<FETCHOP><GPR>): Remove.
3507 (*sync_new_<FETCHOP>si_internal): Remove.
3508 (*sync_new_<FETCHOP>di_internal): Remove.
3509 (sync_new_nand<INT1>): Remove.
3510 (*sync_new_nand<GPR>_internal): Remove.
3511 (*atomic_andsi, *atomic_anddi): Remove.
3512 (*sync_addshort_internal, *sync_subshort_internal): Remove.
3513 (*sync_andsi_internal, *sync_boolsi_internal): Remove.
3514 (*sync_boolcshort_internal): Remove.
3515 (sync_lock_release<INT1>): Remove.
3516 (atomic_compare_and_swap<INT1>): New.
3517 (atomic_exchange<INT1>): New.
3518 (atomic_<FETCHOP><INT1>, atomic_nand<INT1>): New.
3519 (atomic_fetch_<FETCHOP><INT1>, atomic_fetch_nand<INT1>): New.
3520 (atomic_<FETCHOP>_fetch<INT1>, atomic_nand_fetch<INT1>): New.
3522 2011-11-14 Uros Bizjak <ubizjak@gmail.com>
3524 * config/i386/sse.md (round<mode>2): Use register_operand for
3525 operand 1 predicate.
3526 (round<mode>2_sfix): Ditto.
3527 (round<mode>2_vec_pack_sfix): Ditto for operand 1 and operand 2.
3529 2011-11-14 Nathan Sidwell <nathan@acm.org>
3531 * gcov.c (canonicalize_name): Protect use of S_ISLNK.
3533 2011-11-14 Jan Hubicka <jh@suse.cz>
3536 * config/i386/i386.c (core cost model): Correct pasto.
3538 2011-11-14 Uros Bizjak <ubizjak@gmail.com>
3540 * config/i386/sse.md (round<mode>2_sfix): New expander.
3541 (round<mode>2_vec_pack_sfix): Ditto.
3542 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
3543 (<sse4_1>_round<ssemodesuffix>_vec_pack_sfix<avxsizesuffix>): Ditto.
3544 * config/i386/builtin-types.def (V4SI_FTYPE_V4SF_ROUND,
3545 V8SI_FTYPE_V8SF_ROUND, V4SI_FTYPE_V2DF_V2DF_ROUND,
3546 V8SI_FTYPE_V4DF_V4DF_ROUND): New builtin types.
3547 * config/i386/i386.c (ix86_builtins): Add
3548 IX86_BUILTIN_{FLOORPD,CEILPD,ROUNDPD_AZ}_VEC_PACK_SFIX{,256} and
3549 IX86_BUILTIN_{FLOORPS,CEILPS,ROUNDPS_AZ}_SFIX{,256} defines.
3550 (bdesc_args): Add __builtin_ia32_{floorpd,ceilpd}_vec_pack_sfix{,256},
3551 __builtin_ia32_roundpd_az_vec_pack_sfix{,256},
3552 __builtin_ia32_{floorps,ceilps}_sfix{,256}and
3553 __builtin_ia32_roundps_az_sfix{,256} descriptions.
3554 (ix86_expand_sse_round_vec_pack_sfix): New.
3555 (ix86_expand_args_builtin): Handle V4SI_FTYPE_V4SF_ROUND,
3556 V8SI_FTYPE_V8SF_ROUND, V4SI_FTYPE_V2DF_V2DF_ROUND and
3557 V8SI_FTYPE_V4DF_V4DF_ROUND types. Check last argument of
3558 CODE_FOR_sse4_1_roundpd_vec_pack_sfix, CODE_FOR_sse4_1_roundps_sfix,
3559 CODE_FOR_avx_roundpd_vec_pack_sfix256 and CODE_FOR_avx_roundps_sfix256.
3560 (ix86_builtin_vectorized_function): Handle
3561 BUILT_IN_{I,L,LL}FLOOR{,F}, BUILT_IN_{I,L,LL}CEIL{,F} and
3562 BUILT_IN_{I,L,LL}ROUND{,F}
3564 2011-11-14 Jan Hubicka <jh@suse.cz>
3567 * cgraph.h (varpool_externally_visible_p): Declare.
3568 (varpool_add_new_variable): Declare.
3569 * tree-emultls.c (get_emutls_init_templ_addr,
3570 new_emutls_decl): Use varpool_add_new_variable.
3571 * ipa.c (varpool_externally_visible_p): Export.
3572 * varpool.c (varpool_add_new_variable): New function.
3574 2011-11-14 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
3575 Jan Hubicka <jh@suse.cz>
3577 * config/i386/i386.h (processor_costs): Add second dimension to
3578 stringop_algs array.
3579 * config/i386/i386.c (cost models): Initialize second dimension of
3580 stringop_algs arrays.
3581 (core_cost): New costs based on generic64 costs with updated stringop
3583 (promote_duplicated_reg): Add support for vector modes, add
3585 (promote_duplicated_reg_to_size): Likewise.
3586 (processor_target): Set core costs for core variants.
3587 (expand_set_or_movmem_via_loop_with_iter): New function.
3588 (expand_set_or_movmem_via_loop): Enable reuse of the same iters in
3589 different loops, produced by this function.
3590 (emit_strset): New function.
3591 (expand_movmem_epilogue): Add epilogue generation for bigger sizes,
3592 use SSE-moves where possible.
3593 (expand_setmem_epilogue): Likewise.
3594 (expand_movmem_prologue): Likewise for prologue.
3595 (expand_setmem_prologue): Likewise.
3596 (expand_constant_movmem_prologue): Likewise.
3597 (expand_constant_setmem_prologue): Likewise.
3598 (decide_alg): Add new argument align_unknown. Fix algorithm of
3599 strategy selection if TARGET_INLINE_ALL_STRINGOPS is set; Skip sse_loop
3600 (decide_alignment): Update desired alignment according to chosen move
3602 (ix86_expand_movmem): Change unrolled_loop strategy to use SSE-moves.
3603 (ix86_expand_setmem): Likewise.
3604 (ix86_slow_unaligned_access): Implementation of new hook
3605 slow_unaligned_access.
3606 * config/i386/i386.md (strset): Enable half-SSE moves.
3607 * config/i386/sse.md (vec_dupv4si): Add expand for vec_dupv4si.
3608 (vec_dupv2di): Add expand for vec_dupv2di.
3610 2011-11-14 Dimitrios Apostolou <jimis@gmx.net>
3614 * config/elfos.h (TARGET_ASM_INTERNAL_LABEL): Remove.
3615 * varasm.c (default_elf_internal_label): Remove.
3617 2011-11-14 Kai Tietz <ktietz@redhat.com>
3619 * gcov.c (generate_results): Add missing semicolon and correct indent.
3621 2011-11-14 Ira Rosen <ira.rosen@linaro.org>
3624 * tree-vect-stmts.c (vectorizable_condition): Initialize comp_vectype.
3626 2011-11-14 Mingjie Xing <mingjie.xing@gmail.com>
3628 * doc/invoke.texi (Wunused-result): Change @pxref{Variable Attributes}
3629 to @pxref{Function Attributes}.
3631 2011-11-13 Oleg Endo <oleg.endo@t-online.de>
3634 * config/sh/sh.h (IS_LITTLE_ENDIAN_OPTION, UNSUPPORTED_SH2A):
3636 (DRIVER_SELF_SPECS): Use new macros to filter out unsupported options
3637 taking the default configuration into account.
3639 2011-11-13 Jonathan Wakely <jwakely.gcc@gmail.com>
3641 * doc/install.texi (Specific): Fix anchor for
3642 x86_64-*-solaris2.1[0-9]*.
3644 2011-11-13 Nathan Sidwell <nathan@acm.org>
3646 * gcov.c (source_prefix, source_length): New globals.
3647 (flag_relative_only): Likewise.
3648 (print_usage, options, process_args): Update.
3649 (generate_results): Use coverage.name, check
3650 flag_relative_only. Adjust messages.
3651 (find_source): Check source_prefix.
3652 (output_lines): Use coverage.name, adjust messages.
3653 * doc/gcov.texi (Invoking Gcov): Document new options.
3655 2011-11-12 Jason Merrill <jason@redhat.com>
3658 * gimplify.c (gimplify_target_expr): Add a clobber to the cleanup.
3659 (gimplify_modify_expr): Don't try to simplify it.
3661 2011-11-12 Dimitrios Apostolou <jimis@gmx.net>
3664 * config/elfos.h (STRING_ASM_OP): Define.
3665 * varasm.c (default_elf_asm_output_limited_string): Use it.
3668 * gcc/configure.ac: Check for stpcpy declaration.
3669 * system.h: Declare it if not.
3670 * config.in, configure: Regenerate.
3672 2011-11-12 Richard Henderson <rth@redhat.com>
3674 * config/rs6000/rs6000.md (fix_trunc<SFDF>si2_stfiwx): Use
3675 nonimmediate_operand for the destination.
3676 (fixuns_trunc<SFDF>si2_stfiwx): Likewise.
3678 * builtins.c (expand_builtin_compare_and_swap): If target is const0,
3679 don't pass the target to expand_atomic_compare_and_swap.
3680 (expand_builtin_atomic_compare_exchange): Likewise.
3682 * config/sh/linux.h (TARGET_INIT_LIBFUNCS): New.
3683 * config/sh/sh.c (sh_init_sync_libfuncs): New.
3685 * config/pa/pa-linux.h (TARGET_SYNC_LIBCALL): New.
3686 * config/pa/pa.h (TARGET_SYNC_LIBCALL): New default.
3687 * config/pa/pa.c (pa_init_libfuncs): Use init_sync_libfuncs.
3689 2011-11-12 Iain Sandoe <iains@gcc.gnu.org>
3692 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
3693 Only expand a symbol ref. into an access when the entity is defined
3696 2011-11-12 Jan Hubicka <jh@suse.cz>
3699 * cgraphunit.c (output_weakrefs): Output really only weakrefs.
3701 2011-11-12 Nathan Sidwell <nathan@acm.org>
3703 * gcov.c (struct name_map): New.
3704 (names, n_names, a_names): New global vars.
3705 (print_usage): Adjust usage.
3706 (generate_results): Canonicalize main file name.
3707 (release_structures): Adjust.
3708 (name_search, name_sort): New callbacks.
3709 (find_source): Look for and create a canonical name.
3710 (canonicalize_name): New.
3711 (make_gcov_file_name): Reimplement and fix mangling.
3713 * doc/gcov.texi: Update documentation about path preservation.
3715 2011-11-11 David S. Miller <davem@davemloft.net>
3717 * config/sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Delete.
3718 * config/sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Delete.
3720 2011-11-11 Jakub Jelinek <jakub@redhat.com>
3722 * config/i386/i386-protos.h (ix86_maybe_emit_epilogue_vzeroupper):
3724 * config/i386/i386.c (ix86_maybe_emit_epilogue_vzeroupper): New
3726 (ix86_expand_epilogue): Use it.
3727 * config/i386/i386.md (return, simple_return): Call it in the
3730 PR tree-optimization/51091
3731 * tree-stdarg.c (execute_optimize_stdarg): Ignore TREE_CLOBBER_P
3732 rhs also in the va_list_simple_ptr case.
3734 PR tree-optimization/51058
3735 * tree-vect-slp.c (vect_remove_slp_scalar_calls): New function.
3736 (vect_schedule_slp): Call it.
3737 * tree-vect-stmts.c (vectorizable_call): If slp_node != NULL,
3738 don't replace scalar calls with setting of their lhs to zero here.
3740 PR tree-optimization/51074
3741 * fold-const.c (vec_cst_ctor_to_array, fold_vec_perm): New functions.
3742 (fold_binary_loc): Handle VEC_EXTRACT_EVEN_EXPR,
3743 VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR and
3744 VEC_INTERLEAVE_LOW_EXPR with VECTOR_CST or CONSTRUCTOR operands.
3745 (fold_ternary_loc): Handle VEC_PERM_EXPR with VECTOR_CST or
3746 CONSTRUCTOR operands.
3747 * tree-ssa-propagate.c (valid_gimple_rhs_p): Handle ternary
3749 * tree-vect-generic.c (lower_vec_perm): Mask sel_int elements
3750 to 0 .. 2 * elements - 1.
3752 2011-11-11 Richard Henderson <rth@redhat.com>
3754 * gimple-pretty-print.c (dump_gimple_omp_atomic_load): Dump needed.
3755 (dump_gimple_omp_atomic_store): Likewise.
3756 * optabs.c (can_atomic_exchange_p): New.
3757 * optabs.h (can_atomic_exchange_p): Declare.
3758 * omp-low.c (expand_omp_atomic_load): Implement.
3759 (expand_omp_atomic_store): Likewise.
3760 (expand_omp_atomic): Update for new arguments to load/store.
3762 2011-11-11 Eric Botcazou <ebotcazou@adacore.com>
3764 * cprop.c: Adjust outdated comments throughout.
3765 (hash_scan_set): Rename PAT parameter into SET.
3766 (cprop_pavloc): Rename into...
3767 (cprop_avloc): ...this.
3768 (cprop_absaltered): Rename into...
3769 (cprop_kill): ...this.
3770 (alloc_cprop_mem): Adjust for above renaming.
3771 (free_cprop_mem): Likewise.
3772 (compute_cprop_data): Likewise.
3773 (compute_local_properties): Rename TRANSP parameter into KILL and
3774 adjust throughout. Rework comments.
3775 (try_replace_reg): Fix long line.
3776 (cprop_jump): Likewise.
3777 (constprop_register): Fix prototype and take INSN last.
3778 (cprop_insn): Adjust calls to above function. Fix long lines.
3779 (bypass_block): Likewise.
3780 (one_cprop_pass): Likewise.
3782 2011-11-11 Uros Bizjak <ubizjak@gmail.com>
3784 * config/alpha/elf.h (ELF_ASCII_ESCAPES): Rename from ESCAPES.
3785 (ELF_STRING_LIMIT): Rename from STRING_LIMIT.
3787 2011-11-11 Jason Merrill <jason@redhat.com>
3789 * varasm.c (default_elf_asm_output_limited_string): #ifdef
3791 (default_elf_asm_output_ascii): Likewise.
3793 2011-11-11 Uros Bizjak <ubizjak@gmail.com>
3796 * config/i386/constraints.md (j): New address constraint.
3797 * config/i386/predicates.md (lea_address_operand): Redefine as
3799 * config/i386/i386.md (*lea_3_zext): Use "j" constraint for operand 1.
3800 (*lea_4_zext): Ditto.
3802 2011-11-11 David S. Miller <davem@davemloft.net>
3805 2011-11-05 David S. Miller <davem@davemloft.net>
3807 * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
3808 (zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
3809 (*zero_extend_v8qi_<P:mode>_insn,
3810 *zero_extend_v4hi_<P:mode>_insn): New insns.
3811 * config/sparc/sparc.c (vector_init_move_words,
3812 vector_init_prepare_elts, sparc_expand_vector_init_vis2,
3813 sparc_expand_vector_init_vis1): New functions.
3814 (vector_init_bshuffle): Rewrite to handle more cases and make use
3815 of locs[] array prepared by vector_init_prepare_elts.
3816 (vector_init_fpmerge, vector_init_faligndata): Delete.
3817 (sparc_expand_vector_init): Rewrite using new infrastructure.
3819 2011-11-11 Jakub Jelinek <jakub@redhat.com>
3821 * opts-common.c (generate_canonical_option): Free opt_text
3822 it it has been allocated here and not stored anywhere.
3824 * tree-vect-slp.c (vect_free_slp_tree): Also free SLP_TREE_CHILDREN
3826 (vect_create_new_slp_node): Don't allocate node before checking stmt
3828 (vect_free_oprnd_info): Remove FREE_DEF_STMTS argument, always
3829 free def_stmts vectors and additionally free oprnd_info.
3830 (vect_build_slp_tree): Adjust callers. Call it even if
3831 stop_recursion. If vect_create_new_slp_node or
3832 vect_build_slp_tree fails, properly handle freeing memory.
3833 If it succeeded, clear def_stmts in oprnd_info.
3835 2011-11-11 Dimitrios Apostolou <jimis@gmx.net>
3837 * defaults.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Expand on
3838 multiple lines for readability.
3839 * output.h (fprint_whex, fprint_w, fprint_ul, sprint_ul): Declare.
3840 (ASM_OUTPUT_LABELREF): Call fputs instead of asm_fprintf.
3841 * dwarf2asm.c (dw2_assemble_integer, dw2_asm_output_data,
3842 dw2_asm_data_uleb128, dw2_asm_delta_uleb128,
3843 dw2_asm_delta_sleb128): Convert fprintf calls to the new functions.
3844 * dwarf2out.c (dwarf2out_source_line): Call fprint_ul instead of
3846 * final.c (fprint_whex, fprint_w, fprint_ul, sprint_ul): New functions
3847 serving as fast replacements for fprintf integer to string conversions.
3848 (sprint_ul_rev): Internal helper for the above.
3849 (output_addr_const) <CONST_INT>: Don't use fprintf.
3850 * varasm.c: Fix some whitespace inconsistencies.
3851 (default_elf_asm_output_limited_string): New.
3852 (default_elf_asm_output_ascii): Likewise.
3853 (default_elf_internal_label): Likewise.
3854 * config/elfos.h (ASM_GENERATE_INTERNAL_LABEL): Use sprint_ul and
3855 stpcpy instead of sprintf.
3856 (TARGET_ASM_INTERNAL_LABEL): Define as default_elf_internal_label.
3857 (ELF_ASCII_ESCAPES, ELF_STRING_LIMIT): Rename from old ESCAPES and
3858 STRING_LIMIT macros.
3859 (ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII): Call functions that
3860 provide the same functionality.
3861 * config/i386/i386.c (print_reg): Call fprint_ul instead of fprintf.
3863 2011-11-10 Andrew MacLeod <amacleod@redhat.com>
3865 * doc/extend.texi: Document __atomic_test_and_set and __atomic_clear.
3867 2011-11-10 Andrew MacLeod <amacleod@redhat.com>
3870 * builtins.c (expand_builtin_atomic_clear): New. Expand atomic_clear.
3871 (expand_builtin_atomic_test_and_set): New. Expand atomic test_and_set.
3872 (expand_builtin): Add cases for test_and_set and clear.
3873 * sync-builtins.def (BUILT_IN_ATOMIC_TEST_AND_SET): New.
3874 (BUILT_IN_ATOMIC_CLEAR): New.
3876 2011-11-10 Roberto Agostino Vitillo <ravitillo@lbl.gov>
3879 * dwarf2out.c (set_cur_line_info_table): Restore the last is_stmt
3880 value in the current line table.
3882 2011-11-10 Nathan Sidwell <nathan@acm.org>
3884 * gcov.c (struct function_info): Make src an index, not a pointer.
3885 (struct source_info): Remove index and next source fields.
3886 (fn_end): New static var.
3887 (sources_index): Remove.
3888 (sources): Now a pointer to an array, not a list.
3889 (n_sources, a_sources): New.
3890 (process_file): Adjust for changes to read_graph_file. Insert
3891 functions into source lists and check line numbers here.
3892 (generate_results): Only allocate lines for sources with
3893 contents. Adjust for source array.
3894 (release_structures): Likewise.
3895 (find_source): Return source index, adjust for source array.
3896 (read_graph_file): Return function list. Don't insert into source
3898 (read_count_file): Take list of functions.
3899 (solve_flow_graph): Reverse the arc lists here.
3900 (add_line_counts): Adjust for source array.
3902 2011-11-10 Jakub Jelinek <jakub@redhat.com>
3905 * tree-object-size.c (addr_object_size): Check TREE_CODE of
3906 MEM_REF's operand rather than code of the MEM_REF itself.
3908 2011-11-10 Andrew MacLeod <amacleod@redhat.com>
3910 PR rtl-optimization/51040
3911 * optabs.c (expand_atomic_fetch_op): Patchup code for NAND should
3912 be AND followed by NOT.
3913 * builtins.c (expand_builtin_atomic_fetch_op): Patchup code for NAND
3914 should be AND followed by NOT.
3916 2011-11-10 Jakub Jelinek <jakub@redhat.com>
3918 * vec.h (VEC_BASE): If base is at offset 0 in the structure,
3919 use &(P)->base even if P is NULL.
3921 PR rtl-optimization/51023
3922 * combine.c (simplify_comparison) <case SIGN_EXTEND>: Don't use
3923 val_signbit_known_clear_p for signed comparison narrowing
3924 optimization. Don't check for non-VOIDmode, use
3925 HWI_COMPUTABLE_MODE_P macro.
3926 <case ZERO_EXTEND>: Don't check for non-VOIDmode.
3927 Optimize even when const_op is equal to GET_MODE_MASK (mode),
3928 don't optimize if const_op is negative.
3930 2011-11-10 Richard Guenther <rguenther@suse.de>
3932 PR tree-optimization/51042
3933 * tree-ssa-pre.c (phi_translate_1): Avoid recursing on
3934 self-referential expressions. Refactor code to avoid duplication.
3936 2011-11-10 Richard Guenther <rguenther@suse.de>
3938 PR tree-optimization/51070
3939 * tree-loop-distribution.c (generate_builtin): Do not replace
3940 the loop with a builtin if the partition contains statements which
3941 results are used outside of the loop.
3942 (pass_loop_distribution): Verify and collect.
3944 2011-11-10 Richard Guenther <rguenther@suse.de>
3946 PR tree-optimization/51030
3947 * tree-ssa-phiopt.c (jump_function_from_stmt): New function.
3948 (value_replacement): Use it to handle trivial non-empty
3949 intermediate blocks.
3951 2011-11-10 Richard Guenther <rguenther@suse.de>
3954 * gimple.c (gimple_has_side_effects): Remove checking code
3955 that doesn't belong here.
3957 2011-11-10 Ira Rosen <ira.rosen@linaro.org>
3959 PR tree-optimization/51058
3960 * tree-vect-slp.c (vect_get_constant_vectors): Handle CALL_EXPR.
3962 2011-11-10 Jakub Jelinek <jakub@redhat.com>
3964 PR tree-optimization/51000
3965 * tree-vect-patterns.c (vect_recog_bool_pattern): If adding
3966 a pattern stmt for a bool store, adjust DR_STMT too.
3967 Don't handle bool conversions to single bit precision lhs.
3968 * tree-vect-stmts.c (vect_remove_stores): If next is a pattern
3969 stmt, remove its related stmt and free its stmt_vinfo.
3970 (free_stmt_vec_info): Free also pattern stmt's vinfo and
3971 pattern def stmt's vinfo.
3972 * tree-vect-loop.c (destroy_loop_vec_info): Don't try to
3973 free pattern stmt's vinfo here.
3974 (vect_transform_loop): When calling vect_remove_stores,
3975 do gsi_next first and don't call gsi_remove. If not strided
3976 store, free stmt vinfo for gsi_stmt (si) rather than stmt.
3978 2011-11-09 Jakub Jelinek <jakub@redhat.com>
3981 * config/i386/i386.c (expand_vec_perm_interleave2): If d->vmode is
3982 V4SImode, !TARGET_SSE2 and punpck[lh]* is needed, change dremap.vmode
3985 * function.h (requires_stack_frame_p): New prototype.
3986 * function.c (requires_stack_frame_p): No longer static.
3987 * config/i386/i386.c (ix86_finalize_stack_realign_flags): If
3988 stack_realign_fp was just a conservative guess for a function
3989 which doesn't use sp/fp/argp at all, clear frame_pointer_needed
3990 and stack realignment.
3992 2011-11-09 Paolo Carlini <paolo.carlini@oracle.com>
3994 PR preprocessor/51061
3995 * incpath.c (merge_include_chains): Make sure to not pass null
3996 pointers to free_path.
3998 2011-11-09 Paolo Carlini <paolo.carlini@oracle.com>
4000 * doc/invoke.texi ([Option Summary, C++ Language Options]):
4001 Add -Wzero-as-null-pointer-constant.
4003 2011-11-07 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4005 * config/arm/arm-cores.def: Add -mcpu=cortex-a7.
4006 * config/arm/arm-tables.opt: Regenerate.
4007 * config/arm/arm-tune.md: Likewise.
4008 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex A-7.
4009 * doc/invoke.texi: Document -mcpu=cortex-a7.
4011 2011-11-09 Richard Guenther <rguenther@suse.de>
4014 2011-11-09 Richard Guenther <rguenther@suse.de>
4016 * tree-cfg.c (verify_gimple_call): Verify that
4017 gimple_call_cannot_inline_p is returning a conservative
4018 correct result according to gimple_check_call_matching_types.
4020 2011-11-09 Richard Guenther <rguenther@suse.de>
4022 PR tree-optimization/51039
4023 * tree-cfg.c (verify_gimple_call): Verify that
4024 gimple_call_cannot_inline_p is returning a conservative
4025 correct result according to gimple_check_call_matching_types.
4026 * ipa-inline-analysis.c (estimate_function_body_sizes): Remove
4027 code dealing with un-inlinablility.
4028 * gimple-streamer-in.c (input_gimple_stmt): Update the
4031 2011-11-09 Richard Guenther <rguenther@suse.de>
4033 PR tree-optimization/51039
4034 * tree-inline.c (setup_one_parameter): Always perform a
4035 valid gimple type change.
4036 (declare_return_variable): Likewise.
4038 2011-11-09 Jakub Jelinek <jakub@redhat.com>
4040 * config/rs6000/vector.md (vcondv4sfv4si, vcondv4siv4sf,
4041 vconduv4sfv4si): New patterns.
4042 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Handle
4043 different dest_mode from comparison mode.
4045 2011-11-09 Richard Guenther <rguenther@suse.de>
4047 * gimple-fold.c (canonicalize_constructor_val): Mark
4048 address-taken variables addressable.
4050 2011-11-09 Ira Rosen <ira.rosen@linaro.org>
4052 PR tree-optimization/51015
4053 * tree-vect-loop.c (vect_determine_vectorization_factor): Expect
4054 vectype to be set for pattern def stmts.
4056 2011-11-09 Alan Modra <amodra@gmail.com>
4058 * function.c (bb_active_p): Delete.
4059 (dup_block_and_redirect, active_insn_between): New functions.
4060 (convert_jumps_to_returns, emit_return_for_exit): New functions,
4062 (thread_prologue_and_epilogue_insns): ..here. Delete
4063 shadowing variables. Don't do prologue register clobber tests
4064 when shrink wrapping already failed. Delete all last_bb_active
4065 code. Instead compute tail block candidates for duplicating
4066 exit path. Remove these from antic set. Duplicate tails when
4067 reached from both blocks needing a prologue/epilogue and
4068 blocks not needing such.
4069 * ifcvt.c (dead_or_predicable): Test both flag_shrink_wrap and
4071 * bb-reorder.c (get_uncond_jump_length): Make global.
4072 * bb-reorder.h (get_uncond_jump_length): Declare.
4073 * cfgrtl.c (rtl_create_basic_block): Comment typo fix.
4074 (rtl_split_edge): Likewise. Warning fix.
4075 (rtl_duplicate_bb): New function.
4076 (rtl_cfg_hooks): Enable can_duplicate_block_p and duplicate_block.
4077 * Makefile.in (function.o): Update dependencies.
4079 2011-11-08 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4080 Georg-Johann Lay <avr@gjlay.de>
4082 * doc/tm.texi.in (MODE_CODE_BASE_REG_CLASS): Add address space
4084 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
4085 * doc/tm.texi: Regenerate.
4087 * config/cris/cris.h (MODE_CODE_BASE_REG_CLASS): Add address
4089 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
4090 * config/bfin/bfin.h (MODE_CODE_BASE_REG_CLASS): Likewise.
4091 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
4092 * config/avr/avr.h (MODE_CODE_BASE_REG_CLASS): Add address space
4094 (REGNO_MODE_CODE_OK_FOR_BASE_P): Ditto.
4095 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
4096 (avr_regno_mode_code_ok_for_base_p): Ditto.
4097 * config/avr/avr.c (avr_mode_code_base_reg_class): Ditto.
4098 (avr_regno_mode_code_ok_for_base_p): Ditto.
4099 (avr_reg_ok_for_addr_p): Pass AS down to
4100 avr_regno_mode_code_ok_for_base_p.
4102 * addresses.h (base_reg_class): Add address space argument.
4103 Pass to MODE_CODE_BASE_REG_CLASS.
4104 (ok_for_base_p_1): Add address space argument. Pass to
4105 REGNO_MODE_CODE_OK_FOR_BASE_P.
4106 (regno_ok_for_base_p): Add address space argument. Pass to
4109 * regrename.c (scan_rtx_address): Add address space argument.
4110 Pass address space to regno_ok_for_base_p and base_reg_class.
4111 Update recursive calls.
4112 (scan_rtx): Pass address space to scan_rtx_address.
4113 (build_def_use): Likewise.
4114 * regcprop.c (replace_oldest_value_addr): Add address space
4115 argument. Pass to regno_ok_for_base_p and base_reg_class.
4116 Update recursive calls.
4117 (replace_oldest_value_mem): Pass address space to
4118 replace_oldest_value_addr.
4119 (copyprop_hardreg_forward_1): Likewise.
4121 * reload.c (find_reloads_address_1): Add address space argument.
4122 Pass address space to base_reg_class and regno_ok_for_base_p.
4123 Update recursive calls.
4124 (find_reloads_address): Pass address space to base_reg_class,
4125 regno_ok_for_base_p, and find_reloads_address_1.
4126 (find_reloads): Pass address space to base_reg_class.
4127 (find_reloads_subreg_address): Likewise.
4129 * ira-costs.c (record_reg_classes): Update calls to base_reg_class.
4130 (ok_for_base_p_nonstrict): Add address space argument. Pass to
4132 (record_address_regs): Add address space argument. Pass to
4133 base_reg_class and ok_for_base_p_nonstrict. Update recursive calls.
4134 (record_operand_costs): Pass address space to record_address_regs.
4135 (scan_one_insn): Likewise.
4137 * caller-save.c (init_caller_save): Update call to base_reg_class.
4138 * ira-conflicts.c (ira_build_conflicts): Likewise.
4139 * reload1.c (maybe_fix_stack_asms): Likewise.
4141 2011-11-08 Michael Matz <matz@suse.de>
4143 * gengtype.c (write_field_root): Avoid out-of-scope access of newv.
4145 * tree-stdarg.c (execute_optimize_stdarg): Accept clobbers.
4147 * tree.h (TREE_CLOBBER_P): New macro.
4148 * gimple.h (gimple_clobber_p): New inline function.
4149 * gimplify.c (gimplify_bind_expr): Add clobbers for all variables
4150 that go out of scope and live in memory.
4151 * tree-ssa-operands.c (get_expr_operands): Transfer volatility also
4153 * cfgexpand.c (decl_to_stack_part): New static variable.
4154 (add_stack_var): Allocate it, and remember mapping.
4155 (fini_vars_expansion): Deallocate it.
4156 (stack_var_conflict_p): Add early outs.
4157 (visit_op, visit_conflict, add_scope_conflicts_1,
4158 add_scope_conflicts): New static functions.
4159 (expand_used_vars_for_block): Don't call add_stack_var_conflict, tidy.
4160 (expand_used_vars): Add scope conflicts.
4161 (expand_gimple_stmt_1): Expand clobbers to nothing.
4162 (expand_debug_expr): Ditto.
4164 * tree-pretty-print.c (dump_generic_node): Dump clobbers nicely.
4165 * tree-ssa-live.c (remove_unused_locals): Remove clobbers that
4166 refer to otherwise unused locals.
4167 * tree-sra.c (build_accesses_from_assign): Ignore clobbers.
4168 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Clobbers of
4169 SSA names aren't necessary.
4170 (propagate_necessity): Accept and ignore constructors on the rhs, tidy.
4171 * gimple.c (walk_gimple_op): Accept constructors like mem_rhs.
4172 * tree-ssa-structalias.c (find_func_aliases): Clobbers don't store
4174 * tree-ssa-sccvn.c (vn_reference_lookup_3): Ditto, in particular they
4175 don't zero-initialize something.
4176 * tree-ssa-phiopt.c (cond_if_else_store_replacement_1): Ignore
4177 clobber RHS, we don't want PHI nodes with those.
4179 2011-11-08 Jakub Jelinek <jakub@redhat.com>
4181 * config/i386/i386.c (ix86_preferred_simd_mode): Even for TARGET_AVX
4182 if not TARGET_PREFER_AVX128 return 32-byte integer vectors.
4184 2011-11-08 Richard Guenther <rguenther@suse.de>
4186 PR tree-optimization/51012
4187 * ipa-prop.c (update_indirect_edges_after_inlining): Fixup
4188 non-inlinable state.
4189 * cgraph.c (cgraph_make_edge_direct): Likewise.
4191 2011-11-08 Eric Botcazou <ebotcazou@adacore.com>
4193 PR rtl-optimization/47698
4194 * ifcvt.c (noce_operand_ok): Move around comment.
4196 2011-11-08 Richard Guenther <rguenther@suse.de>
4199 * lto-opts.c (append_to_collect_gcc_options): Split out from...
4200 (lto_write_options): ... here. Prepend frontend specific flags.
4202 2011-11-08 Jakub Jelinek <jakub@redhat.com>
4204 * config/i386/sse.md (*avx_vperm2f128<mode>3_nozero): Emit mask
4205 0x12 and 0x20 as vinsert[fi]128 instead of vperm2[fi]128.
4207 * tree-vect-stmts.c (vectorizable_call): Add SLP_NODE argument.
4208 Handle vectorization of SLP calls.
4209 (vect_analyze_stmt): Adjust caller, add call to it for SLP too.
4210 (vect_transform_stmt): Adjust vectorizable_call caller, remove
4212 * tree-vect-slp.c (vect_get_and_check_slp_defs): For calls start
4214 (vect_build_slp_tree): Allow CALL_EXPR.
4216 2011-11-08 Richard Guenther <rguenther@suse.de>
4218 * gimple-fold.c (canonicalize_constructor_val): Make sure
4219 we have referenced vars setup before adding to them.
4221 2011-11-07 Richard Henderson <rth@redhat.com>
4222 Aldy Hernandez <aldyh@redhat.com>
4223 Andrew MacLeod <amacleod@redhat.com>
4224 Torvald Riegel <triegel@redhat.com>
4226 Merged from transactional-memory.
4228 * gtm-builtins.def: New file.
4229 * trans-mem.c: New file.
4230 * trans-mem.h: New file.
4232 * opts.c (finish_options): Error out when using -flto and -fgnu-tm.
4234 * config/i386/i386.c: Define TARGET_VECTORIZE* transactional variants.
4235 (ix86_handle_tm_regparm_attribute, struct bdesc_tm,
4236 ix86_builtin_tm_load, ix86_builtin_tm_store,
4237 ix86_init_tm_builtins): New.
4238 (ix86_init_builtins): Initialize TM builtins.
4239 (struct ix86_attribute_table): Add "*tm regparm".
4240 * config/i386/i386-builtin-types.def (PV2SI): Define.
4242 Define V2SI_FTYPE_PCV2SI.
4243 Define V4SF_FTYPE_PCV4SF.
4244 Define V8SF_FTYPE_PCV8SF.
4245 Define VOID_PV2SI_V2SI.
4247 * doc/invoke.texi (C Dialect Options): Document -fgnu-tm and
4248 tm-max-aggregate-size.
4249 * doc/tm.texi.in: Add TARGET_VECTORIZE_BUILTIN_TM_LOAD and
4250 TARGET_VECTORIZE_BUILTIN_TM_STORE hooks.
4251 * doc/tm.texi: Regenerate.
4253 * attribs.c (apply_tm_attr): New.
4254 (init_attributes): Allow '*' prefix for overrides.
4255 (register_attribute): Likewise.
4256 * builtin-attrs.def (ATTR_TM_TMPURE, ATTR_TM_REGPARM): New.
4257 (ATTR_TM_NOTHROW_LIST, ATTR_TM_TMPURE_NOTHROW_LIST,
4258 ATTR_TM_PURE_TMPURE_NOTHROW_LIST, ATTR_TM_NORETURN_NOTHROW_LIST,
4259 ATTR_TM_CONST_NOTHROW_LIST, ATTR_TMPURE_MALLOC_NOTHROW_LIST,
4260 ATTR_TMPURE_NOTHROW_LIST): New.
4261 * builtin-types.def (BT_FN_I[1248]_VPTR, BT_FN_FLOAT_VPTR,
4262 BT_FN_DOUBLE_VPTR, BT_FN_LDOUBLE_VPTR, BT_FN_VOID_VPTR_I[1248],
4263 BT_FN_VOID_VPTR_FLOAT, BT_FN_VOID_VPTR_DOUBLE,
4264 BT_FN_VOID_VPTR_LDOUBLE, BT_FN_VOID_VPTR_SIZE): New.
4265 * builtins.def: Include gtm-builtins.def. Add comments regarding
4266 transactional memory synchronization.
4267 (DEF_TM_BUILTIN): New.
4268 * c-parser.c (struct c_parser): Add in_transaction.
4269 (c_parser_transaction, c_parser_transaction_expression,
4270 c_parser_transaction_cancel, c_parser_transaction_attributes): New.
4271 (c_parser_attribute_any_word): Split out from c_parser_attributes.
4272 (c_parser_statement_after_labels): Handle RID_TRANSACTION*.
4273 (c_parser_unary_expression): Same.
4274 * c-tree.h (c_finish_transaction): Declare.
4275 * c-typeck.c (c_finish_transaction): New.
4276 (build_function_call_vec): Call tm_malloc_replacement.
4277 * calls.c (is_tm_builtin): New.
4278 (flags_from_decl_or_type): Add ECF_TM_BUILTIN and ECF_TM_PURE.
4279 * cfgbuild.c (make_edges): Add edges for REG_TM notes.
4280 * cfgexpand.c (expand_call_stmt): Call
4281 mark_transaction_restart_calls.
4282 (gimple_expand_cfg): Free the tm_restart map.
4283 (mark_transaction_restart_calls): New.
4284 * cfgrtl.c (purge_dead_edges): Look for REG_TM notes.
4285 * cgraph.c (dump_cgraph_node): Handle tm_clone.
4286 * cgraph.h (struct cgraph_node): Add tm_clone field.
4287 (decl_is_tm_clone): New.
4288 (struct cgraph_local_info): Add tm_may_enter_irr.
4289 (cgraph_copy_node_for_versioning): Declare.
4290 * cgraphunit.c (cgraph_copy_node_for_versioning): Export;
4291 copy analyzed from old version.
4292 * combine.c (distribute_notes): Handle REG_TM notes.
4293 * common.opt: Add -fgnu-tm.
4294 * crtstuff.c (__TMC_LIST__, __TMC_END__): New.
4295 (__do_global_dtors_aux): Deregister clone table.
4296 (frame_dummy): Register clone table.
4297 * emit-rtl.c (try_split): Handle REG_TM. Early return if no function
4299 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_ELSE and
4301 (gimple_stmt_may_fallthru): Handle GIMPLE_EH_ELSE.
4302 * gimple-pretty-print.c: Include trans-mem.h.
4303 (dump_gimple_fmt): Add %x.
4304 (dump_gimple_call): Dump arguments for calls to _ITM_beginTransaction.
4305 (dump_gimple_eh_else, dump_gimple_transaction): New.
4306 (dump_gimple_stmt): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
4307 * gimple.c (gimple_build_eh_else, gimple_build_transaction): New.
4308 (walk_gimple_seq): Honor removed_stmt. Document usage of removed_stmt
4310 (walk_gimple_op): Handle GIMPLE_TRANSACTION.
4311 (walk_gimple_stmt): Initialize and honor removed_stmt.
4312 Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
4313 (gimple_copy): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
4314 * gimple.def (GIMPLE_TRANSACTION, GIMPLE_EH_ELSE): New.
4315 * gimple.h (struct gimple_statement_eh_else,
4316 gimple_statement_transaction, GTMA_*): New.
4317 (gimple_statement_d): Add gimple_statement_eh_else and
4319 (gimple_build_eh_else, gimple_build_transaction,
4320 gimple_fold_call, diagnose_tm_safe_errors): Declare.
4321 (get_call_expr_in): Remove prototype.
4322 (gimple_has_substatements): Add GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
4323 (gimple_eh_else_n_body, gimple_eh_else_e_body,
4324 gimple_eh_else_set_n_body, gimple_eh_else_set_e_body,
4325 gimple_transaction_body, gimple_transaction_label,
4326 gimple_transaction_label_ptr, gimple_transaction_subcode,
4327 gimple_transaction_set_body, gimple_transaction_set_label,
4328 gimple_transaction_set_subcode): New.
4329 (struct walk_stmt_info): Use BOOL_BITFIELD; add removed_stmt.
4330 * gimplify.c (create_tmp_var_name): Use clean_symbol_name.
4331 (voidify_wrapper_expr): Handle TRANSACTION_EXPR.
4332 (gimplify_transaction): New.
4333 (gimplify_expr): Handle TRANSACTION_EXPR.
4334 * gsstruct.def (GSS_EH_ELSE, GSS_TRANSACTION): New.
4335 * ipa-inline.c (can_inline_edge_p): Do not inline TM safe calling
4337 * Makefile.in: Add trans-mem.o and dependencies.
4338 (BUILTINS_DEF): Add gtm-builtins.def.
4339 (gimple-pretty-print.o): Depend on TRANS_MEM_H.
4340 (GTFILES): Add trans-mem.c.
4341 * omp-low.c (WALK_SUBSTMTS): Add GIMPLE_TRANSACTION.
4342 * output.h (record_tm_clone_pair, finish_tm_clone_pairs,
4343 get_tm_clone_pair): Declare.
4344 * params.def (PARAM_TM_MAX_AGGREGATE_SIZE): New.
4345 * passes.c (init_optimization_passes): Place transactional memory
4347 * print-tree.c (print_node): Dump tm-clone.
4348 * recog.c (peep2_attempt): Handle REG_TM.
4349 * reg-notes.def (TM): New.
4350 * rtlanal.c (alloc_reg_note): Handle REG_TM.
4351 * target.def (builtin_tm_load, builtin_tm_store): New.
4352 * targhooks.c (default_builtin_tm_load_store): New.
4353 * targhooks.h (default_builtin_tm_load_store): Declare.
4354 * timevar.def (TV_TRANS_MEM): New.
4355 * toplev.c (compile_file): Call finish_tm_clone_pairs.
4356 * tree-cfg.c (make_edges): Handle GIMPLE_TRANSACTION.
4357 (cleanup_dead_labels): Handle GIMPLE_TRANSACTION. Avoid unnecessary
4358 writes into the statements to update labels.
4359 (is_ctrl_altering_stmt): Add TM ending statements. Handle
4361 (verify_gimple_transaction): New.
4362 (verify_gimple_stmt): Handle GIMPLE_TRANSACTION.
4363 (verify_gimple_in_seq_2): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
4364 (gimple_redirect_edge_and_branch): Handle TM_TRANSACTION.
4365 (dump_function_to_file): Display [tm-clone] if applicable.
4366 * tree-eh.c (struct_ptr_eq): Make inline and move to tree.h.
4367 (struct_ptr_hash): Same.
4368 (collect_finally_tree): Handle GIMPLE_EH_ELSE.
4369 (replace_goto_queue_1): Likewise.
4371 (honor_protect_cleanup_actions): Handle GIMPLE_EH_ELSE.
4372 (lower_try_finally_nofallthru): Likewise.
4373 (lower_try_finally_onedest): Likewise.
4374 (lower_try_finally_copy): Likewise.
4375 (lower_try_finally_switch): Likewise.
4376 (lower_try_finally): Likewise.
4377 (decide_copy_try_finally): Likewise.
4378 (lower_eh_constructs_2): Likewise.
4379 (refactor_eh_r): Likewise.
4380 * tree-flow.h (struct gimple_df): Add tm_restart field.
4381 Define tm_restart_node.
4382 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_TRANSACTION.
4383 (estimate_num_insns): Likewise.
4384 (init_inline_once): Init tm_cost.
4385 * tree-inline.h (struct eni_weights_d): Add tm_cost.
4386 * tree-pass.h (pass_diagnose_tm_blocks, pass_lower_tm, pass_tm_init,
4387 pass_tm_mark, pass_tm_memopt, pass_tm_edges, pass_ipa_tm): Declare.
4388 * tree-pretty-print.c (dump_generic_node): Handle TRANSACTION_EXPR.
4389 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4390 BUILT_IN_TM_MEMSET, BUILT_IN_TM_MEMCPY, BUILT_IN_TM_MEMMOVE.
4391 Add support for TM vector loads. Add support for TM logging builtins.
4392 (call_may_clobber_ref_p_1): Add support for vector stores.
4393 * tree-ssa-structalias.c (find_func_aliases): Add support for TM
4394 vector stores and loads. Handle BUILT_IN_TM_MEMSET,
4395 BUILT_IN_TM_MEMCPY, BUILT_IN_TM_MEMMOVE.
4396 * tree.c (strip_invariant_refs): Moved from gimple.c to here.
4397 (local_define_builtin): Handle ECF_TM_PURE.
4398 (build_common_builtin_nodes): Set __builtin_eh_pointer to ECF_TM_PURE.
4399 * tree.def (TRANSACTION_EXPR): New.
4400 * tree.h (strip_invariant_refs): Moved from gimple.h to here.
4401 (TRANSACTION_EXPR_BODY, TRANSACTION_EXPR_CHECK,
4402 TRANSACTION_EXPR_OUTER, TRANSACTION_EXPR_RELAXED,
4403 BUILTIN_TM_LOAD_STORE_P, BUILTIN_TM_LOAD_P, BUILTIN_TM_STORE_P,
4404 CASE_BUILT_IN_TM_LOAD, CASE_BUILT_IN_TM_STORE): New.
4405 (ECF_TM_PURE, ECF_TM_BUILTIN): New.
4406 (struct tree_function_decl): Add tm_clone_flag.
4407 (struct_ptr_eq, struct_ptr_hash): New.
4408 (apply_tm_attr): Declare.
4409 (is_tm_safe_or_pure): New.
4410 (build_tm_abort_call, is_tm_safe, is_tm_pure,
4411 is_tm_may_cancel_outer, is_tm_ending_fndecl, record_tm_replacement,
4412 tm_malloc_replacement): Declare.
4413 * varasm.c (tm_clone_hash): New.
4414 (record_tm_clone_pair, finish_tm_clone_pairs, get_tm_clone_pair,
4415 dump_tm_clone_to_vec, dump_tm_clone_pairs, tm_alias_pair_cmp): New.
4416 (struct tm_alias_pair): New. Declare VEC types for object.
4418 2011-11-07 Richard Henderson <rth@redhat.com>
4420 * optabs.h (OTI_sync_compare_and_swap, OTI_sync_lock_test_and_set,
4421 OTI_sync_old_add, OTI_sync_old_sub, OTI_sync_old_ior,
4422 OTI_sync_old_and, OTI_sync_old_xor, OTI_sync_old_nand,
4423 OTI_sync_new_add, OTI_sync_new_sub, OTI_sync_new_ior,
4424 OTI_sync_new_and, OTI_sync_new_xor, OTI_sync_new_nand): Move and
4425 rename from the direct_optab_index enum.
4426 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab,
4427 sync_old_add_optab, sync_old_sub_optab, sync_old_ior_optab,
4428 sync_old_and_optab, sync_old_xor_optab, sync_old_nand_optab,
4429 sync_new_add_optab, sync_new_sub_optab, sync_new_ior_optab,
4430 sync_new_and_optab, sync_new_xor_optab, sync_new_nand_optab): Read
4431 from the optab_table, not the direct_optab_table.
4432 (init_sync_libfuncs): Declare.
4433 (can_compare_and_swap_p): Update parameters.
4434 * optabs.c (init_sync_libfuncs_1, init_sync_libfuncs): New.
4435 (can_compare_and_swap_p): Add allow_libcall parameter; if true,
4436 test for the legacy compare-and-swap libcall.
4437 (expand_atomic_exchange): Use the legacy test-and-set libcall.
4438 (expand_atomic_compare_and_swap): Use the legacy CAS libcall.
4439 (struct atomic_op_functions): Update for optab type changes.
4440 (maybe_emit_op): Likewise.
4441 (expand_atomic_fetch_op): Use the legacy fetch-op libcalls.
4442 * builtins.c (fold_builtin_atomic_always_lock_free): Update call
4443 to can_compare_and_swap_p.
4444 * omp-low.c (expand_omp_atomic_fetch_op): Likewise.
4445 (expand_omp_atomic_pipeline): Likewise.
4446 * genopinit.c (optabs): Make sync_old_*_optab, sync_new_*_optab,
4447 sync_compare_and_swap_optab, sync_lock_test_and_set_optab regular
4449 * doc/md.texi (sync_compare_and_swap): Update docs for libcalls.
4451 2011-11-07 Jakub Jelinek <jakub@redhat.com>
4453 * config/i386/i386-bultin-types.def (V8SI_FTYPE_V4DF_V4DF): Add.
4454 * config/i386/i386.c (enum ix86_builtins): Add
4455 IX86_BUILTIN_VEC_PACK_SFIX256.
4456 (bdesc_args): Add __builtin_ia32_vec_pack_sfix256.
4457 (ix86_expand_args_builtin): Handle V8SI_FTYPE_V4DF_V4DF.
4458 (ix86_builtin_vectorized_function): Also vectorize lrint using
4459 256-bit vectors for -mavx.
4461 2011-11-07 Anatoly Sokolov <aesok@post.ru>
4463 * config/cris/constraints.md: New file.
4464 * config/cris/cris.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
4465 CRIS_CONST_OK_FOR_LETTER_P, CONST_OK_FOR_CONSTRAINT_P,
4466 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_MEMORY_CONSTRAINT,
4467 EXTRA_CONSTRAINT, EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R,
4468 EXTRA_CONSTRAINT_T, EXTRA_CONSTRAINT_S, EXTRA_CONSTRAINT_U): Remove.
4469 * config/cris/cris.c: Incule "tm-constrs.h".
4470 (cris_print_operand): Use satisfies_constraint_O.
4471 (cris_normal_notice_update_cc, cris_rtx_costs): Use
4472 satisfies_constraint_I.
4473 (cris_address_cost): Use satisfies_constraint_L.
4474 * config/cris/cris.md: Include "constraints.md".
4475 (*mov_side<mode>, *mov_sidesisf, *mov_side<mode>_mem,
4476 *mov_sidesisf_mem, *clear_side<mode>, *ext_sideqihi,
4477 *ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>,
4478 *extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side,
4479 *extop<mode>si_swap_side): Use satisfies_constraint_N and
4480 satisfies_constraint_J.
4481 (moversideqi movemsideqi mover2side peephole2): Use
4482 satisfies_constraint_N and satisfies_constraint_J.
4483 (andu peephole2): Use satisfies_constraint_I and
4484 satisfies_constraint_O.
4486 2011-11-07 Uros Bizjak <ubizjak@gmail.com>
4488 * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
4489 BUILT_IN_IRINT, BUILT_IN_IRINTF, BUILT_IN_LLRINT and BUILT_IN_LLRINTF.
4491 2011-11-07 Andrew MacLeod <amacleod@redhat.com>
4493 * optabs.c (get_atomic_op_for_code): Fill in optab table at runtime so
4494 SWITCHABLE_TARGET can change the values during compilation.
4495 (expand_atomic_fetch_op): Handle parameter change ripples for
4496 get_atomic_op_for_code call.
4498 2011-11-07 Andrew MacLeod <amacleod@redhat.com>
4500 * doc/extend.texi: Docuemnt behaviour change for __atomic_exchange and
4502 * optabs.c (expand_atomic_exchange): Expand to __sync_lock_test_and_set
4503 only when originated from that builtin.
4504 (expand_atomic_store): Expand to __sync_lock_release when originated
4506 * builtins.c (expand_builtin_sync_lock_test_and_set): Add flag that
4507 expand_atomic_exchange call originated from here.
4508 (expand_builtin_sync_lock_release): Add flag that expand_atomic_store
4509 call originated from here.
4510 (expand_builtin_atomic_exchange): Add origination flag.
4511 (expand_builtin_atomic_store): Add origination flag.
4512 * expr.h (expand_atomic_exchange, expand_atomic_store): Add boolean
4513 parameters to indicate implementation fall back options.
4515 2011-11-07 Georg-Johann Lay <avr@gjlay.de>
4517 * config/avr/avr.c (output_reload_in_const): Can handle CONSTANT_P
4518 now, not only CONST_INT and CONST_DOUBLE.
4519 (output_movqi): Use output_reload_in_const.
4520 (output_reload_inhi): Ditto.
4521 (output_reload_insisf): Move assertion to output_reload_in_const.
4522 (avr_out_reload_inpsi): Ditto.
4524 2011-11-07 Nathan Sidwell <nathan@acm.org>
4526 * gcov.c (object_summary): Replace with ...
4527 (object_runs): ... this.
4528 (process_file): Remove functions with no data.
4529 (generate_results): Ignore files with no lines.
4530 (release_function): New helper, broken out of ...
4531 (release_structures): ... here. Use it.
4532 (read_count_file): Adjust for new data file format.
4533 (output_lines): Use object_runs.
4534 * gcov-io.h (GCOV_TAG_OBJECT_SUMMARY): Obsolete.
4535 (struct gcov_ctr_info): Move definition.
4536 (struct gcov_fn_info): Add key field, use gcov_ctr_info for
4538 (struct gcov_info): Add merge function array, remove mask and
4539 counts. Trailing array is array of pointers to function info.
4540 * coverage.c (struct function_list): Replace counter numbers with
4541 counter arrays. Add fndecl field. GTYify.
4542 (counts_entry): Remove chain workspace.
4543 (functions_head): GTYify.
4544 (prg_n_ctrs): Remove.
4546 (tree_ctr_tables): Remove.
4547 (read_counts_file): Cope with blank entries and expect program
4548 summaries before functions. Don't warn on missing entries.
4549 (coverage_counter_alloc): Allocate individual function arrays.
4550 (tree_coverage_counter_ref, tree_coverage_counter_addr): Adjust
4551 for individual function arrays.
4552 (coverage_end_function): GTYify function list object. Finalize
4553 function's counter arrays.
4554 (build_var): New. Create a counter-related variable with
4555 appropriate linkage.
4556 (build_fn_info_type): Adjust for new runtime structure.
4557 (build_fn_info_value): Rename to ...
4558 (build_fn_info): ... here. Build new format data.
4559 (build_ctr_info_type, build_ctr_info_value): Remove.
4560 (build_info_type): New. Build new format data structure.
4561 (build_info): Adjust for new format data.
4562 (create_coverage): Likewise.
4563 * gcov-dump.c (tag_function): Recognize placeholders.
4565 2011-11-07 Georg-Johann Lay <avr@gjlay.de>
4567 * config/avr/constraints.md (Cm2): New constraint for int -2.
4568 * config/avr/avr.md (addqi3): Use it. New alternatives for +/-2.
4569 (*negqihi2): New insn.
4571 2011-11-07 H.J. Lu <hongjiu.lu@intel.com>
4573 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Check
4574 HARD_FRAME_POINTER_REGNUM instead of hard_frame_pointer_rtx in Rule 18.
4576 2011-11-07 Jakub Jelinek <jakub@redhat.com>
4578 * config/i386/i386.c (ix86_expand_builtin): If gather mask
4579 argument is known to have all high bits set, pass pc_rtx as
4580 second argument to the expander instead of op0.
4581 * config/i386/sse.md (*avx2_gathersi<mode>_2,
4582 *avx2_gatherdi<mode>_2): New patterns.
4583 * config/i386/avx2intrin.h (_mm256_i32gather_pd,
4584 _mm256_i64gather_pd, _mm256_i32gather_ps): Set mask using
4585 _mm256_cmp_pd with zero vector arguments and _CMP_EQ_OQ instead of
4588 PR tree-optimization/50789
4589 * tree-vect-stmts.c (process_use): Add force argument, avoid
4590 exist_non_indexing_operands_for_use_p check if true.
4591 (vect_mark_stmts_to_be_vectorized): Adjust callers. Handle
4592 STMT_VINFO_GATHER_P.
4593 (gen_perm_mask): New function.
4594 (perm_mask_for_reverse): Use it.
4595 (reverse_vec_element): Rename to...
4596 (permute_vec_elements): ... this. Add Y and MASK_VEC arguments,
4597 generalize for any permutations.
4598 (vectorizable_load): Adjust caller. Handle STMT_VINFO_GATHER_P.
4599 * target.def (TARGET_VECTORIZE_BUILTIN_GATHER): New hook.
4600 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_GATHER): Document it.
4601 * doc/tm.texi: Regenerate.
4602 * tree-data-ref.c (initialize_data_dependence_relation,
4603 compute_self_dependence): No longer static.
4604 * tree-data-ref.h (initialize_data_dependence_relation,
4605 compute_self_dependence): New prototypes.
4606 * tree-vect-data-refs.c (vect_check_gather): New function.
4607 (vect_analyze_data_refs): Detect possible gather load data refs.
4608 * tree-vectorizer.h (struct _stmt_vec_info): Add gather_p field.
4609 (STMT_VINFO_GATHER_P): Define.
4610 (vect_check_gather): New prototype.
4611 * config/i386/i386-builtin-types.def: Add types for alternate
4613 * config/i386/sse.md (AVXMODE48P_DI): Remove.
4614 (VEC_GATHER_MODE): Rename mode_attr to...
4615 (VEC_GATHER_IDXSI): ... this.
4616 (VEC_GATHER_IDXDI, VEC_GATHER_SRCDI): New mode_attrs.
4617 (avx2_gathersi<mode>, *avx2_gathersi<mode>): Use <VEC_GATHER_IDXSI>
4618 instead of <VEC_GATHER_MODE>.
4619 (avx2_gatherdi<mode>): Use <VEC_GATHER_IDXDI> instead of
4620 <AVXMODE48P_DI> and <VEC_GATHER_SRCDI> instead of VEC_GATHER_MODE
4621 on src and mask operands.
4622 (*avx2_gatherdi<mode>): Likewise. Use VEC_GATHER_MODE iterator
4623 instead of AVXMODE48P_DI.
4624 (avx2_gatherdi<mode>256, *avx2_gatherdi<mode>256): Removed.
4625 * config/i386/i386.c (enum ix86_builtins): Add
4626 IX86_BUILTIN_GATHERALTSIV4DF, IX86_BUILTIN_GATHERALTDIV8SF,
4627 IX86_BUILTIN_GATHERALTSIV4DI and IX86_BUILTIN_GATHERALTDIV8SI.
4628 (ix86_init_mmx_sse_builtins): Create those builtins.
4629 (ix86_expand_builtin): Handle those builtins and adjust expansions
4630 of other gather builtins.
4631 (ix86_vectorize_builtin_gather): New function.
4632 (TARGET_VECTORIZE_BUILTIN_GATHER): Define.
4634 2011-11-07 Uros Bizjak <ubizjak@gmail.com>
4636 * config/i386/f16cintrin.h: Remove extra _X86INTRIN_H_INCLUDED check.
4638 2011-11-07 Tristan Gingold <gingold@adacore.com>
4640 * config.gcc (*-*-*vms*): Set c_target_objs, cxx_target_objs.
4641 * config/vms/t-vms: Add vms-c.o rule.
4642 * config/vms/vms-c.c: New file.
4643 * config/vms/vms-protos.h (vms_c_register_pragma): New prototype.
4644 * config/vms/vms.h (REGISTER_TARGET_PRAGMAS): Define.
4646 2011-11-07 Tristan Gingold <gingold@adacore.com>
4648 * config/alpha/vms.h (TARGET_OBJECT_SUFFIX,
4649 TARGET_EXECUTABLE_SUFFIX, TARGET_OS_CPP_BUILTINS,
4650 TARGET_ABI_OPEN_VMS, LONG_TYPE_SIZE, ADA_LONG_TYPE_SIZE,
4651 POINTER_SIZE, POINTERS_EXTEND_UNSIGNED): Move to config/vms/vms.h
4652 (SUBTARGET_OS_CPP_BUILTINS): Define.
4653 (TARGET_DEFAULT): Tune according to POINTER_SIZE.
4654 (MASK_RETURN_ADDR): Define in 64 bit mode.
4655 * config/ia64/vms.h: Likewise.
4656 * config/vms/vms.h: New file.
4657 * config/vms/vms64.h: New file.
4658 * config/alpha/vms64.h: Removed.
4659 * config/ia64/vms64.h: Removed.
4660 * config.gcc (alpha64-dec-*vms*, alpha*-dec-*vms*, ia64-hp-*vms*):
4661 Adjust for above change.
4663 2011-11-07 Enkovich Ilya <ilya.enkovich@intel.com>
4666 * config/i386/i386-protos.h (ix86_use_lea_for_mov): New.
4667 * config/i386/i386.c (ix86_use_lea_for_mov): Likewise.
4668 * config/i386/i386.md (movsi_internal): Emit lea if profitable.
4669 (movdi_internal_rex64): Likewise.
4671 2011-11-07 Sergey Ostanevich <sergos.gnu@gmail.com>
4673 PR rtl-optimization/47698
4674 * ifcvt.c (noce_operand_ok): Return false for mems with side effects.
4676 2011-11-07 Tristan Gingold <gingold@adacore.com>
4678 * common/config/alpha/alpha-common.c (alpha_option_init_struct):
4680 (TARGET_OPTION_INIT_STRUCT): Define.
4681 * config/alpha/alpha.c (TARGET_MIN_ANCHOR_OFFSET)
4682 (TARGET_MAX_ANCHOR_OFFSET)
4683 (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Redefine.
4685 2011-11-06 Quentin Neill <quentin.neill@amd.com>
4687 Fix r180999, update ChangeLog
4688 * config.gcc: Add f16cintrin.h.
4689 * config/i386/f16cintrin.h: Add missing endif.
4691 2011-11-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
4693 * config.gcc (arm*-*-rtemseabi*): New target.
4694 * config/arm/rtems-eabi.h: New.
4695 * config/arm/t-rtems-eabi: New.
4697 2011-11-06 David S. Miller <davem@davemloft.net>
4699 * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): Delete.
4700 (zero_extend_v8qi_vis, zero_extend_v4hi_vis,
4701 *zero_extend_v8qi_<P:mode>_insn,
4702 *zero_extend_v4hi_<P:mode>_insn): Express using vec_merge
4703 and vec_duplicate instead of using an UNSPEC.
4705 2011-11-07 Alan Modra <amodra@gmail.com>
4708 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Always emit
4709 blockage for ABI_V4.
4711 2011-11-06 Dave Korn <dave.korn.cygwin@gmail.com>
4713 * config/i386/cygwin.h (LIBGCJ_SONAME): Updated to match recent
4714 libgcj version bump.
4715 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
4717 2011-11-06 Eric Botcazou <ebotcazou@adacore.com>
4719 * gcse.c: Adjust outdated comments throughout.
4720 (struct mem_conflict_info): New structure.
4721 (mems_conflict_for_gcse_p): Use it to communicate with caller.
4722 (load_killed_in_block_p): Pass it to note_stores.
4723 (hash_expr): Remove superfluous line break.
4724 (hash_scan_set): Rename PAT parameter into SET.
4725 (hash_scan_insn): Reorder cases.
4726 (canon_list_insert): Fix long line.
4727 (edge_list): Delete.
4728 (prune_expressions): Rename E local variable into EXPR.
4729 (compute_pre_data): Return struct edge_list * object.
4730 (pre_expr_reaches_here_p_work): Fix formatting.
4731 (process_insert_insn): Move around comment.
4732 (pre_edge_insert): Fix long line.
4733 (pre_insert_copies): Likewise.
4734 (gcse_emit_move_after): Swap SRC and DEST parameters.
4735 (pre_delete): Adjust call to gcse_emit_move_after.
4736 (pre_gcse): Take struct edge_list * parameter. Fix long line.
4737 (one_pre_gcse_pass): Use flag_gcse_lm condition for all routines.
4738 Use a local list of edges.
4739 (hoist_code): Fix long line. Adjust call to gcse_emit_move_after.
4740 (pre_ldst_expr_hash): Fix long line.
4741 (free_ldst_mems): Rename into...
4742 (free_ld_motion_mems): ...this.
4743 (first_ls_expr): Delete.
4744 (next_ls_expr): Likewise.
4745 (print_ldst_list): Do not use above two functions.
4746 (simple_mem): Adjust interface.
4747 (compute_ld_motion_mems): Fix formatting.
4748 (update_ld_motion_stores): Reuse local variable.
4750 2011-11-06 Joseph Myers <joseph@codesourcery.com>
4752 * c-decl.c (shadow_tag_warned, grokdeclarator): Handle _Alignas
4754 (build_null_declspecs): Initialize align_log and alignas_p fields.
4755 (declspecs_add_alignas): New.
4756 * c-parser.c (c_token_starts_declspecs): Handle RID_ALIGNAS.
4757 (c_parser_declspecs): Handle _Alignas specifiers.
4758 (c_parser_alignas_specifier): New.
4759 (c_parser_alignof_expression): Diagnose alignof use for non-C1X.
4760 Diagnose _Alignof (expression).
4761 * c-tree.h (struct c_declspecs): Add align_log and alignas_p fields.
4762 (declspecs_add_alignas): Declare.
4763 * ginclude/stddef.h (max_align_t): Define for C1X and C++11.
4764 * ginclude/stdalign.h: New.
4765 * Makefile.in (USER_H): Add stdalign.h.
4767 2011-11-06 Joern Rennecke <joern.rennecke@embecosm.com>
4769 * regset.h (fixed_reg_set_regset): Declare.
4770 * dse.c: Include regset.h .
4771 (struct insn_info): Add member fixed_regs_live.
4772 (note_add_store_info): New typedef.
4773 (note_add_store): New function.
4774 (emit_inc_dec_insn_before): Expect arg to be of type insn_info_t.
4775 Use gen_add3_insn / gen_move_insn.
4776 Check new insn for unwanted clobbers before emitting it.
4777 (check_for_inc_dec): Rename to...
4778 (check_for_inc_dec_1:) ... this. Return bool. Take insn_info
4779 parameter. Changed all callers in file.
4780 (check_for_inc_dec, copy_fixed_regs): New functions.
4781 (scan_insn): Set fixed_regs_live field of insn_info.
4782 * rtl.h (check_for_inc_dec): Update prototype.
4783 * postreload.c (reload_cse_simplify): Take new signature of
4784 check_ind_dec into account.
4785 * reginfo.c (fixed_reg_set_regset): New variable.
4786 (init_reg_sets_1): Initialize it.
4788 2011-11-06 Jakub Jelinek <jakub@redhat.com>
4790 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0 don't remove
4793 2011-11-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4795 * config/pa/pa.c (pa_hpux_init_libfuncs): Rename to pa_init_libfuncs.
4796 Remove dependence of declaration and target define on definition of
4797 HPUX_LONG_DOUBLE_LIBRARY. Update implementation.
4799 2011-11-06 Andrew Macleod <amacleod@redhat.com>
4800 Richard Henderson <rth@redhat.com>
4801 Aldy Hernandez <aldyh@redhat.com>
4803 Merged from cxx-mem-model.
4805 * cppbuiltin.c (define__GNUC__): Define __ATOMIC memory models
4806 * coretypes.h (enum memmodel): New. enumerated memory model type.
4807 * Makefile.in (cppbuiltin.o) Add missing dependency on $(TREE_H)
4808 * genopinit,c (optabs): Add atomic direct optab handlers.
4809 * sync-builtins.def (BUILT_IN_ATOMIC_*): New builtins.
4810 * builtin-types.def (BT_CONST_VOLATILE_PTR,
4811 BT_FN_I{1,2,4,8,16}_CONST_VPTR_INT, BT_FN_VOID_VPTR_INT,
4812 BT_FN_BOOL_VPTR_INT, BT_FN_BOOL_SIZE_CONST_VPTR,
4813 BT_FN_I{1,2,4,8,16}_VPTR_I{1,2,4,8,16}_INT,
4814 BT_FN_VOID_VPTR_I{1,2,4,8,16}_INT, BT_FN_VOID_SIZE_VPTR_PTR_INT,
4815 BT_FN_VOID_SIZE_CONST_VPTR_PTR_INT, BT_FN_VOID_SIZE_VPTR_PTR_PTR_INT,
4816 BT_FN_BOOL_VPTR_PTR_I{1,2,4,8,16}_BOOL_INT_INT): New builtin types.
4817 * expr.h (expand_atomic_*): Add prototypes.
4818 (expand_{bool,val}_compare_and_swap): Remove prototypes.
4819 * c-typeck.c (build_function_call_vec): Don't reprocess __atomic
4821 * common.opt (Winvalid-memory-model): New warning flag.
4822 (finline-atomics): New. Flag to disable atomic inlining.
4823 * params.h (ALLOW_LOAD_DATA_RACES): New.
4824 (ALLOW_PACKED_LOAD_DATA_RACES): New.
4825 (ALLOW_PACKED_STORE_DATA_RACES): New.
4826 * params.def (PARAM_ALLOW_LOAD_DATA_RACES): New.
4827 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES): New.
4828 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): New.
4829 * builtins.c (is_builtin_name): Handle __atomic.
4830 (get_memmodel): New. Extract memory model.
4831 (expand_expr_force_mode): New. Factor out common code for ensuring an
4832 integer argument is in the proper mode.
4833 (expand_builtin_sync_operation): Remove ignore param. Always call
4834 expand_atomic_fetch_op instead of the old expanders.
4835 (expand_builtin_compare_and_swap,
4836 expand_builtin_sync_lock_test_and_set): Use expand_expr_force_mode,
4837 call atomic expanders instead of sync expanders.
4838 (expand_builtin_sync_lock_release): Call atomic_store expander.
4839 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
4840 expand_builtin_atomic_store, expand_builtin_atomic_fetch_op): New.
4841 (expand_builtin_atomic_exchange): New.
4842 (fold_builtin_atomic_always_lock_free,
4843 expand_builtin_atomic_always_lock_free,
4844 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
4846 (expand_builtin_mem_thread_fence, expand_builtin_atomic_thread_fence,
4847 expand_builtin_atomic_signal_fence): New.
4848 (expand_builtin_mem_signal_fence): New.
4849 (expand_builtin): Add cases for BUILT_IN_ATOMIC_*.
4850 (fold_builtin_2): Add cases for BUILT_IN_ATOMIC_{IS,ALWAYS}_LOCK_FREE.
4851 * optabs.h (DOI_atomic_*): Define new atomics.
4852 (atomic_*_optab): Define.
4853 (can_compare_and_swap_p, expand_atomic_compare_and_swap): New
4855 * optabs.c (expand_sync_operation, expand_sync_fetch_operation): Remove.
4856 (expand_sync_lock_test_and_set): Remove.
4857 (expand_atomic_load, expand_atomic_store): New.
4858 (expand_atomic_exchange): New.
4859 (expand_atomic_compare_and_swap): New. Implements
4860 atomic_compare_exchange via compare and swap.
4861 (struct atomic_op_functions): Opcode table struct for fetch ops.
4862 (get_atomic_op_for_code): New. Return an opcode table entry.
4863 (maybe_emit_op): New. Try to emit a fetch op.
4864 (expand_atomic_fetch_op): New.
4865 (expand_val_compare_and_swap_1): Remove.
4866 (expand_val_compare_and_swap, expand_bool_compare_and_swap): Remove.
4867 (expand_atomic_compare_and_swap): Rename from
4868 expand_atomic_compare_exchange. Rewrite to return both success and
4869 oldval return values; expand via both atomic and sync optabs.
4870 (can_compare_and_swap_p): New.
4871 (expand_compare_and_swap_loop): Use expand_atomic_compare_and_swap.
4872 (maybe_gen_insn): Handle 7 and 8 operands.
4873 * omp-low.c (expand_omp_atomic_fetch_op): Don't test individual
4874 fetch_op optabs, only test can_compare_and_swap_p. Use __atomic
4875 builtins instead of __sync builtins.
4876 (expand_omp_atomic_pipeline): Use can_compare_and_swap_p.
4877 * doc/extend.texi: Document __atomic built-in functions.
4878 * doc/invoke.texi: Document data race parameters.
4879 * doc/md.texi: Document atomic patterns.
4880 * config/i386/i386.md (UNSPEC_MOVA): New.
4881 (UNSPECV_CMPXCHG): Split into ...
4882 (UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2,
4883 UNSPECV_CMPXCHG_3, UNSPECV_CMPXCHG_4): New.
4884 * config/i386/sync.md (ATOMIC): New mode iterator.
4885 (atomic_load<ATOMIC>, atomic_store<ATOMIC>): New.
4886 (atomic_loaddi_fpu, atomic_storedi_fpu, movdi_via_fpu): New.
4887 (mem_thread_fence): Rename from memory_barrier.
4888 Handle the added memory model parameter.
4889 (mfence_nosse): Rename from memory_barrier_nosse.
4890 (sync_compare_and_swap<CASMODE>): Split into ...
4891 (atomic_compare_and_swap<SWI124>): this and ...
4892 (atomic_compare_and_swap<CASMODE>): this. Handle the new parameters.
4893 (atomic_compare_and_swap_single<SWI>): Rename from
4894 sync_compare_and_swap<SWI>; rewrite to use split unspecs.
4895 (atomic_compare_and_swap_double<DCASMODE>): Rename from
4896 sync_double_compare_and_swap<DCASMODE>; rewrite to use split unspecs.
4897 (*atomic_compare_and_swap_doubledi_pic): Rename from
4898 sync_double_compare_and_swapdi_pic; rewrite to use split unspecs.
4899 (atomic_fetch_add<SWI>): Rename from sync_old_add<SWI>; add memory
4901 (*atomic_fetch_add_cmp<SWI>): Similarly.
4902 (atomic_add<SWI>, atomic<any_logic><SWI>): Similarly.
4903 (atomic_sub<SWI>): Similarly. Use x86_maybe_negate_const_int.
4904 (sync_lock_test_and_set<SWI>): Merge with ...
4905 (atomic_exchange<SWI>): ... this.
4907 2011-11-6 Richard Guenther <rguenther@suse.de>
4909 * ipa-prop.c (ipa_modify_call_arguments): Re-compute inlinable flag.
4911 2011-11-06 Ira Rosen <ira.rosen@linaro.org>
4913 * tree-vectorizer.h (vectorizable_condition): Add argument.
4914 * tree-vect-loop.c (vectorizable_reduction): Fail for condition
4915 in SLP. Update calls to vectorizable_condition.
4916 * tree-vect-stmts.c (vect_is_simple_cond): Add basic block info to
4917 the arguments. Pass it to vect_is_simple_use_1.
4918 (vectorizable_condition): Add slp_node to the arguments. Support
4919 vectorization of basic blocks. Fail for reduction in SLP. Update
4920 calls to vect_is_simple_cond and vect_is_simple_use. Support SLP:
4921 call vect_get_slp_defs to get vector operands.
4922 (vect_analyze_stmt): Update calls to vectorizable_condition.
4923 (vect_transform_stmt): Likewise.
4924 * tree-vect-slp.c (vect_create_new_slp_node): Handle COND_EXPR.
4925 (vect_get_and_check_slp_defs): Handle COND_EXPR. Allow pattern
4927 (vect_build_slp_tree): Handle COND_EXPR.
4928 (vect_analyze_slp_instance): Push pattern statements to root node.
4929 (vect_get_constant_vectors): Fix comments. Handle COND_EXPR.
4931 2011-11-05 David S. Miller <davem@davemloft.net>
4933 * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
4934 (zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
4935 (*zero_extend_v8qi_<P:mode>_insn,
4936 *zero_extend_v4hi_<P:mode>_insn): New insns.
4937 * config/sparc/sparc.c (vector_init_move_words,
4938 vector_init_prepare_elts, sparc_expand_vector_init_vis2,
4939 sparc_expand_vector_init_vis1): New functions.
4940 (vector_init_bshuffle): Rewrite to handle more cases and make use
4941 of locs[] array prepared by vector_init_prepare_elts.
4942 (vector_init_fpmerge, vector_init_faligndata): Delete.
4943 (sparc_expand_vector_init): Rewrite using new infrastructure.
4945 2011-11-05 Joern Rennecke <joern.rennecke@embecosm.com>
4947 * config.gcc (epiphany-*-*): New architecture.
4948 (epiphany-*-elf): New configuration.
4949 * config/epiphany, common/config/epiphany : New directories.
4950 * doc/extend.texi (disinterrupt attribute): Add Epiphany.
4951 (interrupt attribute): Add Epiphany.
4952 (long_call, short_call attribute): Add Epiphany.
4953 * doc/invoke.texi (Options): Add Epiphany options.
4954 * doc/md.texi (Machine Constraints): Add Epiphany constraints.
4955 * doc/install.texi (Options specification):
4956 Add --with-stack-offset=@var{num} description.
4957 (host/target specific issues): Add epiphany-*-elf.
4958 * doc/contrib.texi (Contributors): Mention Epiphany port.
4960 2011-11-05 Jakub Jelinek <jakub@redhat.com>
4962 PR tree-optimization/50693
4963 * tree-cfg.c (gimple_can_merge_blocks_p): Allow merging with
4964 non-forced user labels.
4965 (gimple_merge_blocks): Turn non-forced user labels into
4966 debug bind stmt with the label as first operand and reset value.
4967 (gimple_duplicate_bb): Don't duplicate label debug stmts.
4968 * dwarf2out.c (gen_label_die): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
4969 * final.c (final_scan_insn): Likewise.
4970 (rest_of_clean_state): Don't dump NOTE_INSN_DELETED_DEBUG_LABEL.
4971 * var-tracking.c (debug_label_num): New variable.
4972 (delete_debug_insns): Don't delete DEBUG_INSNs for LABEL_DECLs,
4973 instead turn them into NOTE_INSN_DELETED_DEBUG_LABEL notes.
4974 * cfglayout.c (skip_insns_after_block, duplicate_insn_chain): Handle
4975 NOTE_INSN_DELETED_DEBUG_LABEL.
4976 (duplicate_insn_chain): Don't duplicate LABEL_DECL DEBUG_INSNs.
4977 * insn-notes.def (DELETED_DEBUG_LABEL): New note kind.
4978 * print-rtl.c (print_rtx): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
4979 * gengtype.c (adjust_field_rtx_def): Likewise.
4980 * config/i386/i386.c (ix86_output_function_epilogue): For MachO
4981 clear CODE_LABEL_NUMBER of NOTE_INSN_DELETED_DEBUG_LABEL
4982 if their are at the end of function and nop hasn't been emitted.
4983 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Likewise.
4985 2011-11-05 Georg-Johann Lay <avr@gjlay.de>
4987 PR rtl-optimization/50448
4988 * cprop.c (try_replace_reg): Also try to replace uses of FROM that
4991 2011-11-05 Peter Dufault <dufault@hda.com>,
4992 Sebastian Huber <sebastian.huber@embedded-brains.de>
4994 * config/rs6000/rtems.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
4995 Extend rs6000_spe handling.
4997 2011-11-05 Ralf Corsépius <ralf.corsepius@rtems.org>
4999 * config/rs6000/t-rtems: Add -mcpu=8540/-mfloat-gprs=double multilib.
5000 Remove -mcpu=601 multilib.
5001 Remove -Dmpc8260 multilib.
5002 * config/rs6000/rtems.h: Allow --float-gprs=... to override grps
5005 2011-11-05 Quentin Neill <quentin.neill@amd.com>
5007 Piledriver f16cintrin.h fix.
5008 * config/i386/f16cintrin.h: Contents moved from immintrin.h.
5009 * config/i386/immintrin.h: Include f16cintrin.h.
5010 * config.gcc (i[34567]86-*-*, x86_64-*-*): Add f16cintrin.h.
5013 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
5016 * c-parser.c (c_parser_postfix_expression) <RID_OFFSETOF>: Adjust call
5018 * c-typeck.c (build_unary_op) <ADDR_EXPR>: Call fold_offsetof_1.
5020 2011-11-04 Alan Modra <amodra@gmail.com>
5022 * reload1.c (gen_reload): Don't use REGNO on SUBREGs.
5023 * print-rtl.c (print_rtx): Don't segfault on negative regno.
5025 2011-11-04 David S. Miller <davem@davemloft.net>
5028 * config/sparc/sparc.c (sparc_expand_conditional_move): Handle the
5029 fact that sparc_emit_float_lib_cmp modifies the comparison in
5032 2011-11-04 Ralf Corsépius <ralf.corsepius@rtems.org>
5034 * config/lm32/t-rtems: New.
5035 * config.gcc (lm32-*-rtems*): Add t-rtems.
5037 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
5040 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=v8.
5042 2011-11-04 Jiangning Liu <jiangning.liu@arm.com>
5044 PR rtl-optimization/38644
5045 * config/arm/arm.c (thumb1_expand_epilogue): Add memory barrier
5046 for epilogue having stack adjustment.
5048 2011-11-04 Georg-Johann Lay <avr@gjlay.de>
5051 * config/avr/avr-modes.def: New file defining PSImode.
5052 * config/avr/avr-c.c (__INT24_MAX__, __INT24_MIN__,
5053 __UINT24_MAX__): New built-in defines.
5054 * config/avr/avr.md (adjust_len): Add tstpsi, mov24, reload_in24,
5055 ashlpsi, ashrpsi, lshrpsi.
5056 (QISI, QIDI, HISI, HIDI, MPUSH, rotx, rotsmode): Add PSI.
5057 (MOVMODE): New mode iterator.
5058 (movpsi): New expander.
5059 (movqi, movhi, movsi, movsf, movpsi): Write as one using MOVMODE.
5060 (*reload_inpsi, *movpsi): New insns.
5061 (*reload_inpsi): New RTL peephole.
5062 (addpsi3, *addpsi3_zero_extend.qi, *addpsi3_zero_extend.hi,
5063 *addpsi3_sign_extend.hi): New insns.
5064 (subpsi3, *subpsi3_zero_extend.qi, *subpsi3_zero_extend.hi,
5065 *subpsi3_sign_extend.hi): New insns.
5066 (divmodpsi4, udivmodpsi4): New define insn-and-split.
5067 (*divmodpsi4_call, *udivmodpsi4_call): New insns.
5068 (andpsi3, iorpsi3, xorpsi3): New insns.
5069 (*rotlpsi2.1, *rotlpsi2.23): New insns.
5070 (*rotw<mode>): Insn condition only allow even-sized modes.
5071 (*rotb<mode>): Insn condition allows odd-sized modes.
5072 (ashlpsi3, ashrpsi3, lshrpsi3, *addpsi3.lt0): New insns.
5073 (negpsi2, one_cmplpsi2): New insns.
5074 (extendqipsi2, extendhipsi2, extendpsisi2): New insns.
5075 (zero_extendqipsi2, zero_extendhipsi2, zero_extendpsisi2): New
5077 (*cmppsi, *negated_tstpsi, *reversed_tstpsi): New insns.
5078 (cbranchpsi4): New expander.
5079 * config/avr/constraints.md (Ca3, Co3, Cx3): New constraints.
5080 * config/avr/avr-protos.h (avr_out_tstpsi, avr_out_movpsi,
5081 avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3,
5082 avr_out_reload_inpsi): New prototypes.
5084 * config/avr/avr.c (TARGET_SCALAR_MODE_SUPPORTED_P): Define to...
5085 (avr_scalar_mode_supported_p): ...this new static function.
5086 (avr_asm_len): Always return "".
5087 (avr_out_load_psi, avr_out_store_psi): New static functions.
5088 (avr_out_movpsi, avr_out_reload_inpsi): New functions.
5089 (avr_out_tstpsi): New function.
5090 (avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3): New functions.
5091 (avr_out_plus_1, output_reload_in_const): Handle 3-byte types.
5092 (avr_simplify_comparison_p): Ditto.
5093 (adjust_insn_length): Handle ADJUST_LEN_RELOAD_IN24,
5094 ADJUST_LEN_MOV24, ADJUST_LEN_TSTPSI, ADJUST_LEN_ASHLPSI,
5095 ADJUST_LEN_ASHRPSI, ADJUST_LEN_LSHRPSI.
5096 (avr_rtx_costs_1): Report PSI costs.
5097 (avr_libcall_value): Handle odd-sized parameters.
5098 (avr_init_builtin_int24): New static function to define built-in
5099 24-bit types __int24 and __uint24.
5100 (avr_init_builtins): Use it.
5102 2011-11-04 Thomas Doerfler <thomas.doerfler@embedded-brains.de>
5105 * config/arm/rtems-elf.h, config/arm/t-rtems: Add optional
5106 support for VFP floating point model.
5108 2011-11-04 Tristan Gingold <gingold@adacore.com>
5110 * config/alpha/vms.h (ASM_OUTPUT_DEF): Do not switch section.
5112 2011-11-04 Ira Rosen <ira.rosen@linaro.org>
5115 2011-10-24 Ira Rosen <ira.rosen@linaro.org>
5117 PR tree-optimization/50730
5118 * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
5119 analysis if encountered unsupported data-ref.
5121 2011-11-04 Jakub Jelinek <jakub@redhat.com>
5123 * config/i386/i386.c (ix86_expand_vector_convert_uns_vsivsf): New
5125 * config/i386/i386-protos.h (ix86_expand_vector_convert_uns_vsivsf):
5127 * config/i386/sse.md (floatuns<sseintvecmodelower><mode>2): Use it.
5128 For floatunsv8siv8sf2 require TARGET_AVX2.
5130 * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): Add
5131 XORP argument. Subtract 0x1p31 instead of 0x1p32. Use normal
5132 signalling comparison instead of non-signalling. Store into
5133 *XORP pseudo holding 0x80000000 integers if 0x1p31 has been
5134 subtracted and 0 otherwise.
5135 * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si):
5137 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Enable
5138 already for TARGET_SSE2. Xor in vector initialized by
5139 ix86_expand_adjust_ufix_to_sfix_si at the end.
5140 (vec_pack_ufix_trunc_<mode>): Likewise.
5142 * tree-vect-stmts.c (vectorizable_conversion): Rewritten to handle
5143 not just FLOAT_EXPR and FIX_TRUNC_EXPR, but also CONVERT_EXPR_CODE_P,
5144 WIDEN_MULT_EXPR and WIDEN_LSHIFT_EXPR to handle what
5145 vectorizable_type_demotion and vectorizable_type_promotion did.
5146 Additionally handle FLOAT_EXPR and FIX_TRUNC_EXPR where the integer
5147 is {,un}signed {char,short}.
5148 (vect_create_vectorized_demotion_stmts): Fix comment typo. For
5149 recursive calls unconditionally use VEC_PACK_TRUNC_EXPR.
5150 Push vec_dest back to the vec_dsts vector at the end.
5151 (vect_create_vectorized_promotion_stmts): Don't recurse, do just
5152 one step. Removed multi_step_cvt, vec_dsts, slp_node and
5153 prev_stmt_info arguments, add vec_dest argument. Push always
5154 into vec_tmp, not just when multi_step_cvt != 0, replace *vec_oprdn0
5155 with vec_tmp at the end after freeing old *vec_oprnd0 vector.
5156 (vectorizable_type_demotion, vectorizable_type_promotion): Removed.
5157 (vect_analyze_stmt): Don't call vectorizable_type_demotion and
5158 vectorizable_type_promotion. Call vectorizable_conversion even
5159 for SLP bb vectorization.
5160 (vect_transform_stmt): Call vectorizable_conversion instead of
5161 vectorizable_type_demotion and vectorizable_type_promotion.
5162 (supportable_widening_operation): Clear *multi_step_cvt first,
5163 simplify c1/c2 computation, free *interm_types vector on failure.
5164 (supportable_narrowing_operation): Clear *multi_step_cvt first,
5165 free *interm_types vector on failure, handle multi-step
5168 2011-11-04 Tristan Gingold <gingold@adacore.com>
5170 * config/alpha/alpha.c (alpha_write_linkage): Remove fundecl
5171 argument. Conditionally generate crash debug info. Adjust
5172 for alpha_funcs_tree removal.
5173 (machine_function): Add links field.
5174 (alpha_start_function): Conditionally generate crash debug info.
5175 (alpha_end_function): Adjust call to alpha_write_linkage.
5176 (alpha_funcs): Remove.
5177 (links_kind): Remove.
5178 (alpha_links): Remove num, target and lkind field. Add func field.
5179 (alpha_links_tree): Remove.
5180 (alpha_funcs_tree): Remove.
5181 (alpha_need_linkage): Remove.
5182 (alpha_use_linkage): Change prototype. Adjust.
5183 (alpha_write_one_linkage): Use ASM_OUTPUT_INTERNAL_LABEL.
5184 Use SYMBOL_REF_EXTERNAL_P and SYMBOL_REF_LOCAL_P macro.
5185 * config/alpha/alpha-protos.h (alpha_use_linkage): Update.
5186 (alpha_need_linkage): Remove.
5187 * config/alpha/alpha.md: Update calls to alpha_use_linkage.
5188 Adjust calls to alpha_need_linkage.
5190 2011-11-03 Uros Bizjak <ubizjak@gmail.com>
5192 * sched-vis.c (print_value): Handle STRICT_LOW_PART.
5194 2011-11-03 Uros Bizjak <ubizjak@gmail.com>
5196 * config/i386/i386.md (lround<X87MODEF:mode><SWI248x:mode>2,
5197 rint<mode>2, floor<mode>2, lfloor<MODEF:mode><SWI48:mode>2,
5198 btrunc<mode>2, lwp_lwpval<mode>3): Use operands[N] instead of operandN.
5200 2011-11-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5203 * config/arm/t-bpabi: New file.
5204 * config.gcc (arm*-*-linux*): Add arm/t-bpabi to tmake_file for
5206 (arm*-*-uclinux*): Add arm/t-bpabi to tmake_file for
5207 arm*-*-uclinux*eabi.
5208 (arm*-*-eabi*, arm*-*-symbianelf*): Add arm/t-bpabi to tmake_file
5211 2011-11-03 Michael Matz <matz@suse.de>
5214 * configure.ac: Check for -fno-exceptions -fno-rtti.
5215 * configure: Regenerate.
5216 * Makefile.in (NOEXCEPTION_FLAGS): New flag.
5217 (ALL_CXXFLAGS): Use it.
5219 2011-11-03 Uros Bizjak <ubizjak@gmail.com>
5221 * config/i386/i386.md: Use {} for multi-line preparation statements.
5223 2011-11-03 Eric Botcazou <ebotcazou@adacore.com>
5225 * config/sparc/sparc.md (movtf_insn_sp32_no_fpu): Consolidate into...
5226 (movtf_insn_sp32): ...this.
5227 (movtf_insn_sp64_no_fpu): Consolidate into...
5228 (movtf_insn_sp64): ...this.
5229 (movtf_insn_sp64_hq): Do not test TARGET_FPU.
5230 * config/sparc/sparc.c (sparc_legitimate_address_p): Likewise.
5232 2011-11-03 Tristan Gingold <gingold@adacore.com>
5234 * config/vms/vms.c (vms_patch_builtins): Fix typo.
5236 2011-11-03 Richard Guenther <rguenther@suse.de>
5239 * lto-opts.c: Re-implement.
5240 * lto-streamer.h (lto_register_user_option): Remove.
5241 (lto_read_file_options): Likewise.
5242 (lto_reissue_options): Likewise.
5243 (lto_clear_user_options): Likewise.
5244 (lto_clear_file_options): Likewise.
5245 * opts-global.c (post_handling_callback): Remove.
5246 (set_default_handlers): Do not set post_handling_callback.
5247 (decode_options): Remove LTO specific code.
5248 * lto-wrapper.c (merge_and_complain): New function.
5249 (run_gcc): Read all input file options and
5250 prepend a merged set before the linker driver options.
5251 * gcc.c (driver_post_handling_callback): Remove.
5252 (set_option_handlers): Do not set post_handling_callback.
5253 * opts-common.c (handle_option): Do not call post_handling_callback.
5254 * opts.h (struct cl_option_handlers): Remove post_handling_callback.
5256 2011-11-03 Richard Guenther <rguenther@suse.de>
5258 * collect2.c (main): Guard object_nbr variable with TARGET_AIX_VERSION.
5260 2011-11-03 Martin Jambor <mjambor@suse.cz>
5262 * ipa-prop.c (type_change_info): New fields offset, object,
5263 known_current_type and multiple_types_encountered.
5264 (extr_type_from_vtbl_ptr_store): New function.
5265 (check_stmt_for_type_change): Use it, set multiple_types_encountered if
5266 the result is different from the previous one.
5267 (detect_type_change): Renamed to detect_type_change_1. New parameter
5268 comp_type. Set up new fields in tci, build known type jump
5269 functions if the new type can be identified.
5270 (detect_type_change): New function.
5271 * tree.h (DECL_CONTEXT): Comment new use.
5273 2011-11-03 Richard Guenther <rguenther@suse.de>
5276 * lto-wrapper.c (get_options_from_collect_gcc_options): Properly
5277 decode an encoded literal '.
5279 2011-11-03 Tristan Gingold <gingold@adacore.com>
5281 * collect2.c (main): Add support of -f (response file) on AIX.
5283 2011-11-03 Ira Rosen <ira.rosen@linaro.org>
5285 PR tree-optimization/50912
5286 * tree-vectorizer.h (slp_void_p): New.
5287 (struct _slp_tree): Replace left and right with children. Update
5289 (struct _slp_oprnd_info): New.
5290 (vect_get_vec_defs): Declare.
5291 (vect_get_slp_defs): Update arguments.
5292 * tree-vect-loop.c (vect_create_epilog_for_reduction): Call
5293 vect_get_vec_defs instead of vect_get_slp_defs.
5294 (vectorizable_reduction): Likewise.
5295 * tree-vect-stmts.c (vect_get_vec_defs): Remove static, add argument.
5296 Update call to vect_get_slp_defs.
5297 (vectorizable_conversion): Update call to vect_get_vec_defs.
5298 (vectorizable_assignment, vectorizable_shift,
5299 vectorizable_operation): Likewise.
5300 (vectorizable_type_demotion): Call vect_get_vec_defs instead of
5302 (vectorizable_type_promotion, vectorizable_store): Likewise.
5303 (vect_analyze_stmt): Fix typo.
5304 * tree-vect-slp.c (vect_free_slp_tree): Update SLP tree traversal.
5305 (vect_print_slp_tree, vect_mark_slp_stmts,
5306 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
5307 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
5308 vect_schedule_slp_instance): Likewise.
5309 (vect_create_new_slp_node): New.
5310 (vect_create_oprnd_info, vect_free_oprnd_info): Likewise.
5311 (vect_get_and_check_slp_defs): Pass information about defs using
5312 oprnds_info, allow any number of operands.
5313 (vect_build_slp_tree): Likewise. Update calls to
5314 vect_get_and_check_slp_defs. Fix comments.
5315 (vect_analyze_slp_instance): Move node creation to
5316 vect_create_new_slp_node.
5317 (vect_get_slp_defs): Allow any number of operands.
5319 2011-11-02 Peter Bergner <bergner@vnet.ibm.com>
5320 Iain Sandoe <iains@gcc.gnu.org>
5322 * config/rs6000/rs6000.c (USE_HIDDEN_LINKONCE): New define.
5323 (get_ppc476_thunk_name): Use it.
5324 (rs6000_code_end): Likewise.
5325 (macho_branch_islands): Fix typo.
5327 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
5328 Jason Merrill <jason@redhat.com>
5331 * configure.ac: Add -Wno-narrowing to warning options.
5332 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
5334 2011-11-02 Eric Botcazou <ebotcazou@adacore.com>
5337 * config/sparc/sparc.md (movsf_insn): Reindent constraints.
5338 (movdf_insn_sp32): Likewise. Remove redundant G constraint.
5339 (movdf_insn_sp64): Likewise.
5340 (DFmode splitter): Do not test TARGET_FPU.
5341 (movtf_insn_sp32): Reindent constraints.
5342 (movtf_insn_sp32_no_fpu): Likewise.
5343 (movtf_insn_sp64): Likewise.
5344 (movtf_insn_sp64_hq): Likewise.
5345 (movtf_insn_sp64_no_fpu): Likewise.
5347 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
5350 * builtins.c (fold_builtin_memchr): Fix cast.
5352 2011-11-02 Teresa Johnson <tejohnson@google.com>
5354 * config/i386/predicates.md (promotable_binary_operator): Add minus
5355 to the list of promotable operators.
5357 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5359 * gthr-single.h, gthr.h: Move to ../libgcc.
5360 * gthr-aix.h: Move to ../libgcc/config/rs6000.
5361 * gthr-dce.h: Move to ../libgcc/config/pa.
5362 * gthr-lynx.h: Move to ../libgcc/config.
5363 * gthr-mipssde.h: Move to ../libgcc/config/mips.
5364 * gthr-posix.h: Move to ../libgcc/config.
5365 * gthr-rtems.h: Likewise.
5366 * gthr-tpf.h: Move to ../libgcc/config/s390.
5367 * gthr-vxworks.h: Move to ../libgcc/config.
5368 * gthr-win32.h: Move to ../libgcc/config/i386.
5369 * configure.ac (gthread_flags): Remove
5370 (gthr-default.h): Don't create.
5371 (thread_file): Don't substitute.
5372 * configure: Regenerate.
5373 * Makefile.in (GCC_THREAD_FILE): Remove.
5374 (GTHREAD_FLAGS): Remove.
5375 (libgcc.mvars): Remove GTHREAD_FLAGS.
5376 * config/t-vxworks (EXTRA_HEADERS): Remove.
5378 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5379 Paolo Bonzini <bonzini@gnu.org>
5381 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
5382 * configure: Regenerate.
5383 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
5384 (TM_H): Remove libgcc_tm.h, $(libgcc_tm_file_list).
5385 (libgcc_tm.h, cs-libgcc_tm.h): Remove.
5386 (clean): Remove libgcc_tm.h
5387 * mkconfig.sh: Don't include libgcc_tm.h in tm.h.
5388 * config.gcc (libgcc_tm_file): Remove.
5389 (arm*-*-linux*): Remove libgcc_tm_file for arm*-*-linux-*eabi.
5390 (arm*-*-uclinux*): Remove libgcc_tm_file for arm*-*-uclinux*eabi.
5391 (arm*-*-eabi*, arm*-*-symbianelf*): Remove libgcc_tm_file.
5392 (avr-*-rtems*): Likewise.
5393 (avr-*-*): Likewise.
5394 (frv-*-elf): Likewise.
5395 (frv-*-*linux*): Likewise.
5396 (h8300-*-rtems*): Likewise.
5397 (h8300-*-elf*): Likewise.
5398 (i[34567]86-*-darwin*): Likewise.
5399 (x86_64-*-darwin*): Likewise.
5400 (rx-*-elf*): Likewise.
5401 (tic6x-*-elf): Likewise.
5402 (tic6x-*-uclinux): Likewise.
5403 (i[34567]86-*-linux*, x86_64-*-linux*): Likewise.
5405 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5407 * Makefile.in (LIBGCC2_DEBUG_CFLAGS LIBGCC2_CFLAGS)
5408 (LIBGCC2_INCLUDES, TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA)
5409 (LIB2FUNCS_STATIC_EXTRA, LIB2FUNCS_EXCLUDE, T, T_TARGET)
5410 (INCLUDES_FOR_TARGET): Remove.
5411 (LIBGCC2_CFLAGS): Don't export.
5412 (LIB2FUNCS_ST, LIB2_DIVMOD_FUNCS, LIB2ADD, LIB2ADD_ST, srcdirify):
5414 (libgcc-support): Remove $(LIB2ADD), $(LIB2ADD_ST) dependencies.
5415 (libgcc.mvars): Likewise.
5416 Don't emit LIB2FUNCS_ST, LIB2FUNCS_EXCLUDE, LIB2ADD, LIB2ADD_ST,
5417 LIB2_SIDITI_CONV_FUNCS, LIB2_DIVMOD_FUNCS, LIBGCC2_CFLAGS,
5418 TARGET_LIBGCC2_CFLAGS.
5420 * libgcc2.c, libgcc2.h, gbl-ctors.h, longlong.h: Move to ../libgcc.
5421 * config/darwin-64.c: Move to ../libgcc/config.
5422 * config/divmod.c, config/floatunsidf.c, config/floatunsisf.c,
5423 config/floatunsitf.c, config/floatunsixf.c, config/udivmod.c,
5424 config/udivmodsi4.c: Move to ../libgcc/config.
5425 * config/gthr-posix.c: Move to ../libgcc/config/alpha.
5426 * config/memcmp.c, config/memcpy.c, config/memmove.c,
5427 config/memset.c: Move to ../libgcc/config.
5428 * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Remove.
5429 * config/t-freebsd: Remove.
5430 * config/t-freebsd-thread: Move to ../libgcc/config.
5431 * config/t-libgcc-pic: Move to ../libgcc/config.
5432 * config/t-libunwind (TARGET_LIBGCC2_CFLAGS): Remove.
5433 * config/t-linux: Remove.
5434 * config/t-lynx (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
5436 * config/t-openbsd-thread: Move to ../libgcc/config.
5437 * config/t-rtems (LIBGCC2_INCLUDES): Remove.
5438 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Remove.
5439 * config/t-svr4: Remove.
5440 * config/t-vxworks (LIBGCC, INSTALL_LIBGCC, TARGET_LIBGCC2_CFLAGS)
5441 (LIBGCC2_DEBUG_CFLAGS, LIB2FUNCS_EXTRA, LIBGCC2_INCLUDES): Remove.
5442 * config/vxlib.c, config/vxlib-tls.c: Move to ../libgcc/config.
5443 * config/alpha/qrnnd.asm: Move to ../libgcc/config/alpha/qrnnd.S.
5444 * config/alpha/t-alpha, config/alpha/t-ieee: Remove.
5445 * config/alpha/t-vms (LIB2FUNCS_EXTRA, LIBGCC, INSTALL_LIBGCC): Remove.
5446 * config/alpha/vms-gcc_shell_handler.c: Move to ../libgcc/config/alpha.
5447 * config/arm/bpabi.c, config/arm/unaligned-funcs.c,
5448 config/arm/fp16.c, config/arm/linux-atomic.c,
5449 config/arm/linux-atomic-64bit.c: Move to ../libgcc/config/arm.
5450 * config/arm/t-arm-elf (LIBGCC, INSTALL_LIBGCC)
5451 (TARGET_LIBGCC2_CFLAGS): Remove.
5452 * config/arm/t-bpabi, config/arm/t-linux: Remove.
5453 * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS)
5454 (LIB2FUNCS_STATIC_EXTRA): Remove.
5455 * config/arm/t-netbsd: Remove.
5456 * config/arm/t-strongarm-elf (LIBGCC, INSTALL_LIBGCC)
5457 (TARGET_LIBGCC2_CFLAGS): Remove.
5458 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Remove.
5459 * config/arm/t-wince-pe (LIBGCC, INSTALL_LIBGCC)
5460 (TARGET_LIBGCC2_CFLAGS): Remove.
5461 * config/avr/t-avr (LIB2FUNCS_EXCLUDE, TARGET_LIBGCC2_CFLAGS)
5462 (LIBGCC, INSTALL_LIBGCC): Remove.
5463 * config/bfin/t-bfin-elf (TARGET_LIBGCC2_CFLAGS): Remove.
5464 * config/bfin/t-bfin-linux: Likewise.
5465 * config/bfin/t-bfin-uclinux: Likewise.
5466 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
5467 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
5468 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
5469 config/c6x/ltf.c: Move to ../libgcc/config/c6x.
5470 * config/c6x/t-c6x-elf (LIB2FUNCS_EXCLUDE, LIB2FUNCS_EXTRA): Remove.
5471 * config/c6x/t-c6x-uclinux (TARGET_LIBGCC2_CFLAGS): Remove.
5472 * config/cris/arit.c: Move to ../libgcc/config/cris.
5473 * config/cris/cris_abi_symbol.c: Remove.
5474 * config/cris/cris.h: Remove obsolete comment.
5475 * config/cris/mulsi3.asm: Move to ../libgcc/config/cris/mulsi3.S.
5476 * config/cris/t-cris (LIB2FUNCS_EXTRA, CRIS_LIB1CSRC)
5477 ($(LIB2FUNCS_EXTRA)): Remove.
5478 * config/cris/t-elfmulti (LIB2FUNCS_STATIC_EXTRA, INSTALL_LIBGCC)
5480 * config/cris/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
5481 * config/fr30/t-fr30: Remove.
5482 * config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
5483 config/frv/modi.c, config/frv/uitod.c, config/frv/uitof.c,
5484 config/frv/ulltod.c, config/frv/ulltof.c, config/frv/umodi.c: Move
5485 to ../libgcc/config/frv.
5486 * config/frv/t-frv (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
5487 (cmovh.c, cmovw.c, cmovd.c, modi.c, umodi.c, uitof.c, uitod.c)
5488 (ulltof.c, LIBGCC, INSTALL_LIBGCC): Remove.
5489 * config/frv/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
5490 * config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
5491 config/h8300/fixunssfsi.c, config/h8300/parityhi2.c,
5492 config/h8300/popcounthi2.c: Move to ../libgcc/config/h8300.
5493 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
5494 (LIBGCC, INSTALL_LIBGCC): Remove.
5495 * config/i386/gthr-win32.c: Move to ../libgcc/config/i386.
5496 * config/i386/t-cygming (LIBGCC2_INCLUDES): Remove.
5497 * config/i386/t-cygwin: Remove.
5498 * config/i386/t-darwin (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
5499 (LIB2FUNCS_EXCLUDE): Remove.
5500 * config/i386/t-darwin64 (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
5501 (LIBGCC, INSTALL_LIBGCC): Remove.
5502 * config/i386/t-gthr-win32: Move to ../libgcc/config/i386.
5503 * config/i386/t-linux64 (LIBGCC, INSTALL_LIBGCC): Remove.
5504 * config/i386/t-mingw-w32: Likewise.
5505 * config/i386/t-mingw-w64: Likewise.
5506 * config/i386/t-openbsd: Likewise.
5507 * config/i386/t-nto: Remove.
5508 * config/ia64/quadlib.c: Move to ../libgcc/config/ia64.
5509 * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
5510 (quadlib.c): Remove.
5511 * config/ia64/t-ia64: Remove comment.
5512 * config/iq2000/lib2extra-funcs.c: Move to
5513 ../libgcc/config/iq2000/lib2funcs.c.
5514 * config/iq2000/t-iq2000: Remove.
5515 * config/m32c/m32c-lib2.c: Move to ../libgcc/config/m32c/lib2funcs.c.
5516 * config/m32c/m32c-lib2-trapv.c: Move to ../libgcc/config/m32c/trapv.c.
5517 * config/m32r/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
5518 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Remove.
5519 * config/m32r/t-m32r (TARGET_LIBGCC2_CFLAGS, LIBGCC)
5520 (INSTALL_LIBGCC): Remove.
5521 * config/m68k/fpgnulib.c: Move to ../libgcc/config/m68k.
5522 * config/m68k/t-floatlib: Remove.
5523 * config/m68k/t-mlibs (LIBGCC, INSTALL_LIBGCC): Remove.
5524 * config/mcore/t-mcore (TARGET_LIBGCC2_CFLAGS): Remove.
5526 (LIBGCC, INSTALL_LIBGCC): Remove.
5527 * config/mep/mep-lib2.c: Move to ../libgcc/config/mep/lib2funcs.c.
5528 * config/mep/mep-tramp.c: Move to ../libgcc/config/mep/tramp.c.
5529 * config/mep/t-mep (LIB2FUNCS_EXTRA): Remove.
5530 * config/mips/t-elf (TARGET_LIBGCC2_CFLAGS, LIBGCC)
5531 (INSTALL_LIBGCC): Remove.
5532 * config/mips/t-isa3264: Likewise.
5533 * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Remove.
5534 * config/mips/t-r3900 (TARGET_LIBGCC2_CFLAGS, LIBGCC)
5535 (INSTALL_LIBGCC): Remove.
5536 * config/mips/t-sde (LIBGCC, INSTALL_LIBGCC): Remove.
5537 * config/mips/t-sr71k (TARGET_LIBGCC2_CFLAGS, LIBGCC)
5538 (INSTALL_LIBGCC): Remove.
5539 * config/mips/t-vr (TARGET_LIBGCC2_CFLAGS)
5540 (LIB2FUNCS_STATIC_EXTRA): Remove.
5541 * config/mips/vr4120-div.S: Move to ../libgcc/config/mips.
5542 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Remove.
5543 * config/mn10300/t-mn10300 (LIBGCC, INSTALL_LIBGCC): Remove.
5544 * config/pa/fptr.c, config/pa/linux-atomic.c: Move to
5545 ../libgcc/config/pa.
5546 * config/pa/lib2funcs.asm: Move to ../libgcc/config/pa/lib2funcs.S.
5547 * config/pa/quadlib.c: Move to ../libgcc/config/pa.
5548 * config/pa/t-dce-thr (LIBGCC, INSTALL_LIBGCC): Remove.
5549 * config/pa/t-linux, config/pa/t-linux64: Remove.
5550 * config/pa/t-pa-hpux, config/pa/t-pa-hpux10,
5551 config/pa/t-pa-hpux11, config/pa/t-pa64: Remove.
5552 * config/pdp11/t-pdp11 (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA):
5554 * config/picochip/libgccExtras: Move to ../libgcc/config/picochip.
5555 * config/picochip/t-picochip (LIB2FUNCS_EXTRA, RANLIB_FOR_TARGET)
5556 (TARGET_LIBGCC2_CFLAGS, LIBGCC2_DEBUG_CFLAGS): Remove.
5557 * config/rs6000/crtresfpr.asm: Move to
5558 ../libgcc/config/rs6000/crtresfpr.S.
5559 * config/rs6000/crtresgpr.asm: Move to
5560 ../libgcc/config/rs6000/crtresgpr.S.
5561 * config/rs6000/crtresxfpr.asm: Move to
5562 ../libgcc/config/rs6000/crtresxfpr.S.
5563 * config/rs6000/crtresxgpr.asm: Move to
5564 ../libgcc/config/rs6000/crtresxgpr.S.
5565 * config/rs6000/crtsavfpr.asm: Move to
5566 ../libgcc/config/rs6000/crtsavfpr.S.
5567 * config/rs6000/crtsavgpr.asm: Move to
5568 ../libgcc/config/rs6000/crtsavgpr.S.
5569 * config/rs6000/darwin-asm.h: Move to ../libgcc/config/rs6000.
5570 * config/rs6000/darwin-fpsave.asm: Move to
5571 ../libgcc/config/rs6000/darwin-fpsave.S.
5572 * config/rs6000/darwin-gpsave.asm: Move to
5573 ../libgcc/config/rs6000/darwin-gpsave.S.
5574 * config/rs6000/darwin-tramp.asm: Move to
5575 ../libgcc/config/rs6000/darwin-tramp.S.
5576 * config/rs6000/darwin-vecsave.asm: Move to
5577 ../libgcc/config/rs6000/darwin-vecsave.S.
5578 * config/rs6000/darwin-world.asm: Move to
5579 ../libgcc/config/rs6000/darwin-world.S.
5580 * config/rs6000/e500crtres32gpr.asm: Move to
5581 ../libgcc/config/rs6000/e500crtres32gpr.S.
5582 * config/rs6000/e500crtres64gpr.asm: Move to
5583 ../libgcc/config/rs6000/e500crtres64gpr.S.
5584 * config/rs6000/e500crtres64gprctr.asm: Move to
5585 ../libgcc/config/rs6000/e500crtres64gprctr.S.
5586 * config/rs6000/e500crtrest32gpr.asm: Move to
5587 ../libgcc/config/rs6000/e500crtrest32gpr.S.
5588 * config/rs6000/e500crtrest64gpr.asm: Move to
5589 ../libgcc/config/rs6000/e500crtrest64gpr.S.
5590 * config/rs6000/e500crtresx32gpr.asm: Move to
5591 ../libgcc/config/rs6000/e500crtresx32gpr.S.
5592 * config/rs6000/e500crtresx64gpr.asm: Move to
5593 ../libgcc/config/rs6000/e500crtresx64gpr.S.
5594 * config/rs6000/e500crtsav32gpr.asm: Move to
5595 ../libgcc/config/rs6000/e500crtsav32gpr.S.
5596 * config/rs6000/e500crtsav64gpr.asm: Move to
5597 ../libgcc/config/rs6000/e500crtsav64gpr.S.
5598 * config/rs6000/e500crtsav64gprctr.asm: Move to
5599 ../libgcc/config/rs6000/e500crtsav64gprctr.S.
5600 * config/rs6000/e500crtsavg32gpr.asm: Move to
5601 ../libgcc/config/rs6000/e500crtsavg32gpr.S.
5602 * config/rs6000/e500crtsavg64gpr.asm: Move to
5603 ../libgcc/config/rs6000/e500crtsavg64gpr.S.
5604 * config/rs6000/e500crtsavg64gprctr.asm: Move to
5605 ../libgcc/config/rs6000/e500crtsavg64gprctr.S.
5606 * config/rs6000/eabi.asm: Move to ../libgcc/config/rs6000/eabi.S.
5607 * config/rs6000/t-aix43 (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
5608 (TARGET_LIBGCC2_CFLAGS): Remove.
5609 * config/rs6000/t-aix52: Likewise.
5610 * config/rs6000/t-darwin: Remove.
5611 * config/rs6000/t-darwin64 (LIB2_SIDITI_CONV_FUNCS)
5612 (LIB2FUNCS_EXTRA): Remove.
5613 * config/rs6000/t-fprules (LIBGCC, INSTALL_LIBGCC): Remove.
5614 * config/rs6000/t-linux64 (TARGET_LIBGCC2_CFLAGS): Remove.
5615 * config/rs6000/t-lynx (LIB2FUNCS_EXTRA, tramp.S, LIBGCC)
5616 (INSTALL_LIBGCC): Remove.
5617 * config/rs6000/t-netbsd (LIB2FUNCS_EXTRA)
5618 (LIB2FUNCS_STATIC_EXTRA, tramp.S, crtsavfpr.S, crtresfpr.S)
5619 (crtsavgpr.S, crtresgpr.S, crtresxfpr.S, crtresxgpr.S, LIBGCC)
5620 (INSTALL_LIBGCC, $(T)crtsavfpr$(objext), $(T)crtresfpr$(objext))
5621 ($(T)crtsavgpr$(objext), $(T)crtresgpr$(objext))
5622 ($(T)crtresxfpr$(objext), $(T)crtresxgpr$(objext)): Remove.
5623 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA)
5624 (LIB2FUNCS_STATIC_EXTRA, eabi.S, tramp.S): Remove.
5625 * config/rs6000/t-spe (LIBGCC, INSTALL_LIBGCC): Remove.
5626 * config/rs6000/t-vxworks: Remove comment.
5627 * config/rs6000/tramp.asm: Move to ../libgcc/config/rs6000/tramp.S.
5628 * config/rx/t-rx (LIBGCC, INSTALL_LIBGCC): Remove.
5629 * config/sh/linux-atomic.asm: Move to
5630 ../libgcc/config/sh/linux-atomic.S.
5631 * config/sh/t-linux (LIB2FUNCS_EXTRA): Remove.
5632 * config/sh/t-netbsd: Remove.
5633 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
5635 * config/sparc/t-elf (LIBGCC, INSTALL_LIBGCC): Remove.
5636 * config/sparc/t-leon: Likewise.
5637 * config/sparc/t-leon3: Likewise.
5638 * config/sparc/t-linux64: Likewise.
5639 * config/sparc/t-netbsd64: Fix typo.
5641 * config/spu/divmodti4.c, config/spu/divv2df3.c,
5642 config/spu/float_disf.c, config/spu/float_unsdidf.c,
5643 config/spu/float_unsdisf.c, config/spu/float_unssidf.c,
5644 config/spu/mfc_multi_tag_release.c,
5645 config/spu/mfc_multi_tag_reserve.c, config/spu/mfc_tag_release.c,
5646 config/spu/mfc_tag_reserve.c, config/spu/mfc_tag_table.c,
5647 config/spu/multi3.c: Move to ../libgcc/config/spu.
5648 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXCLUDE)
5649 (LIB2FUNCS_STATIC_EXTRA, LIB2_SIDITI_CONV_FUNCS, LIBGCC)
5650 (INSTALL_LIBGCC): Remove.
5651 * config/stormy16/stormy16-lib2.c: Move to
5652 ../libgcc/config/stormy16/lib2.c.
5653 * config/stormy16/stormy16-lib2-ashlsi3.c: Move to
5654 ../libgcc/config/stormy16/ashlsi3.c.
5655 * config/stormy16/stormy16-lib2-ashrsi3.c: Move to
5656 ../libgcc/config/stormy16/ashrsi3.c.
5657 * config/stormy16/stormy16-lib2-clzhi2.c: Move to
5658 ../libgcc/config/stormy16/clzhi2.c.
5659 * config/stormy16/stormy16-lib2-cmpsi2.c: Move to
5660 ../libgcc/config/stormy16/cmpsi2.c.
5661 * config/stormy16/stormy16-lib2-ctzhi2.c: Move to
5662 ../libgcc/config/stormy16/ctzhi2.c.
5663 * config/stormy16/stormy16-lib2-divsi3.c: Move to
5664 ../libgcc/config/stormy16/divsi3.c.
5665 * config/stormy16/stormy16-lib2-ffshi2.c: Move to
5666 ../libgcc/config/stormy16/ffshi2.c.
5667 * config/stormy16/stormy16-lib2-lshrsi3.c: Move to
5668 ../libgcc/config/stormy16/lshrsi3.c.
5669 * config/stormy16/stormy16-lib2-modsi3.c: Move to
5670 ../libgcc/config/stormy16/modsi3.c.
5671 * config/stormy16/stormy16-lib2-parityhi2.c: Move to
5672 ../libgcc/config/stormy16/parityhi2.c.
5673 * config/stormy16/stormy16-lib2-popcounthi2.c: Move to
5674 ../libgcc/config/stormy16/popcounthi2.c.
5675 * config/stormy16/stormy16-lib2-ucmpsi2.c: Move to
5676 ../libgcc/config/stormy16/ucmpsi2.c.
5677 * config/stormy16/stormy16-lib2-udivmodsi4.c: Move to
5678 ../libgcc/config/stormy16/udivmodsi4.c.
5679 * config/stormy16/stormy16-lib2-udivsi3.c: Move to
5680 ../libgcc/config/stormy16/udivsi3.c.
5681 * config/stormy16/stormy16-lib2-umodsi3.c: Move to
5682 ../libgcc/config/stormy16/umodsi3.c.
5683 * config/stormy16/t-stormy16: Move to ../libgcc/config/t-stormy16.
5684 * config/v850/t-v850 (INSTALL_LIBGCC): Remove.
5685 * config/xtensa/lib2funcs.S: Move to ../libgcc/config/xtensa.
5686 * config/xtensa/t-elf: Remove.
5687 * config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove.
5688 * config.gcc (*-*-freebsd*): Remove t-freebsd, t-freebsd-thread
5690 (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
5691 *-*-gnu*, *-*-kopensolaris*-gnu): Remove t-linux from tmake_file.
5692 (*-*-netbsd*): Remove t-libgcc-pic from tmake_file.
5693 (*-*-openbsd*): Likewise.
5694 Remove t-openbsd-thread for posix threads.
5695 (alpha*-*-linux*): Remove alpha/t-alpha, alpha/t-ieee from tmake_file.
5696 (alpha*-*-freebsd*): Likewise.
5697 (alpha*-*-netbsd*): Likewise.
5698 (alpha*-*-openbsd*): Likewise.
5699 (alpha64-dec-*vms*): Likewise.
5700 (alpha*-dec-*vms*): Likewise.
5701 (arm*-*-netbsdelf*): Remove arm/t-netbsd from tmake_file.
5702 (arm*-*-linux*): Remove t-linux from tmake_file.
5703 Remove arm/t-bpabi from tmake_file for arm*-*-linux-*eabi.
5704 (arm*-*-uclinux*): Remove arm/t-bpabi from tmake_file for
5705 arm*-*-uclinux*eabi.
5706 (arm*-*-eabi*, arm*-*-symbianelf* ): Remove arm/t-bpabi from
5707 tmake_file for arm*-*-eabi*.
5708 (fr30-*-elf): Remove tmake_file.
5709 (hppa*64*-*-linux*): Remove tmake_file.
5710 (hppa*-*-linux*): Likewise.
5711 (hppa[12]*-*-hpux10*): Remove pa/t-pa-hpux10, pa/t-pa-hpux from
5713 (hppa*64*-*-hpux11*): Remove pa/t-pa64, pa/t-pa-hpux from tmake_file.
5714 (hppa[12]*-*-hpux11*): Remove pa/t-pa-hpux11, pa/t-pa-hpux from
5716 (i[34567]86-*-elf*): Remove tmake_file.
5717 (x86_64-*-elf*): Likewise.
5718 (i[34567]86-*-nto-qnx*): Likewise.
5719 (i[34567]86-*-cygwin*): Remove i386/t-cygwin from tmake_file.
5720 (i[34567]86-*-mingw*, x86_64-*-mingw*): Remove i386/t-gthr-win32
5721 from tmake_file if using win32 threads.
5722 (iq2000*-*-elf*): Remove tmake-file.
5723 (microblaze*-linux*): Likewise.
5724 (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*)
5725 (sh[2346lbe]*-*-linux*, sh-*-netbsdelf*, shl*-*-netbsdelf*)
5726 (sh5-*-netbsd*, sh5l*-*-netbsd*, sh64-*-netbsd*)
5727 (sh64l*-*-netbsd*): Remove sh/t-netbsd from tmake_file for
5728 sh5*-*-netbsd*, sh64*-netbsd*, *-*-netbsd.
5729 (xtensa*-*-elf*): Remove tmake_file.
5731 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5733 * Makefile.in (LIB1ASMSRC): Don't export.
5734 (libgcc.mvars): Don't emit LIB1ASMFUNCS, LIB1ASMSRC.
5735 * config/arm/arm.c: Update lib1funcs.asm filename.
5736 * config/arm/linux-eabi.h: Likewise.
5737 * config/arm/bpabi-v6m.S, config/arm/bpabi.S,
5738 config/arm/ieee754-df.S, config/arm/ieee754-sf.S: Move to
5739 ../libgcc/config/arm.
5740 * config/arm/lib1funcs.asm: Move to ../libgcc/config/arm/lib1funcs.S.
5741 * config/arm/t-arm (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5742 * config/arm/t-arm-elf (LIB1ASMFUNCS): Remove.
5743 * config/arm/t-bpabi: Likewise.
5744 * config/arm/t-linux (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5745 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Remove.
5746 * config/arm/t-strongarm-elf: Likewise.
5747 * config/arm/t-symbian: Likewise.
5748 * config/arm/t-vxworks: Likewise.
5749 * config/arm/t-wince-pe: Likewise.
5750 * config/avr/libgcc.S: Move to ../libgcc/config/avr.
5751 * config/avr/t-avr (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5752 * config/bfin/lib1funcs.asm: Move to ../libgcc/config/bfin/lib1funcs.S.
5753 * config/bfin/t-bfin: Remove.
5754 * config/bfin/t-bfin-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5755 * config/bfin/t-bfin-linux: Likewise.
5756 * config/bfin/t-bfin-uclinux: Likewise.
5757 * config/c6x/lib1funcs.asm: Move to ../libgcc/config/c6x/lib1funcs.S.
5758 * config/c6x/t-c6x-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5759 * config/fr30/lib1funcs.asm: Move to ../libgcc/config/fr30/lib1funcs.S.
5760 * config/fr30/t-fr30 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5761 * config/frv/lib1funcs.asm: Move to ../libgcc/config/frv/lib1funcs.S.
5762 * config/frv/t-frv (CROSS_LIBGCC1, LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5763 * config/h8300/fixunssfsi.c: Update lib1funcs.asm filename.
5764 * config/h8300/lib1funcs.asm: Move to
5765 ../libgcc/config/h8300/lib1funcs.S.
5766 * config/h8300/t-h8300 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5767 * config/i386/cygwin.asm: Move to ../libgcc/config/i386/cygwin.S.
5768 * config/i386/t-cygming (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5769 * config/i386/t-interix: Likewise.
5770 * config/ia64/lib1funcs.asm: Move to ../libgcc/config/ia64/lib1funcs.S.
5771 * config/ia64/t-hpux (LIB1ASMFUNCS, LIBGCC1_TEST): Remove.
5772 * config/ia64/t-ia64 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5773 * config/iq2000/t-iq2000 (LIBGCC1, CROSS_LIBGCC1): Remove.
5774 * config/m32c/m32c.c: Update m32c-lib1.S filename.
5775 * config/m32c/m32c-lib1.S: Move to ../libgcc/config/m32c/lib1funcs.S.
5776 * config/m32c/t-m32c (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5777 * config/m32r/t-linux (CROSS_LIBGCC1, LIBGCC1, LIBGCC1_TEST): Remove.
5778 * config/m68k/lb1sf68.asm: Move to ../libgcc/config/m68k/lb1sf68.S.
5779 * config/m68k/t-floatlib (LIB1ASMSRC, LIB1ASMFUNCS): New file.
5780 * config/mcore/lib1.asm: Move to ../libgcc/config/mcore/lib1funcs.S.
5781 * config/mcore/t-mcore (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5782 * config/mep/mep-lib1.asm: Move to ../libgcc/config/mep/lib1funcs.S.
5783 * config/mep/t-mep (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5784 * config/mips/mips16.S: Move to ../libgcc/config/mips.
5785 * config/mips/t-libgcc-mips16: Remove.
5786 * config/mips/t-sr71k (LIBGCC1, CROSS_LIBGCC1): Remove.
5787 * config/pa/milli64.S: Move to ../libgcc/config/pa.
5788 * config/pa/t-linux (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
5789 * config/pa/t-linux64: Likewise.
5790 * config/picochip/libgccExtras/fake_libgcc.asm: Move to
5791 ../libgcc/config/picochip/lib1funcs.S.
5792 * config/picochip/t-picochip (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
5793 * config/sh/lib1funcs.asm: Move to ../libgcc/config/sh/lib1funcs.S.
5794 * config/sh/lib1funcs.h: Move to ../libgcc/config/sh.
5795 * config/sh/sh.h: Update lib1funcs.asm filename.
5796 * config/sh/t-linux (LIB1ASMFUNCS_CACHE): Remove.
5797 * config/sh/t-netbsd: Likewise.
5798 * config/sh/t-sh (LIB1ASMSRC, LIB1ASMFUNCS, LIB1ASMFUNCS_CACHE):
5800 * config/sh/t-sh64 (LIB1ASMFUNCS): Remove.
5801 * config/sparc/lb1spc.asm: Move to ../libgcc/config/sparc/lb1spc.S.
5802 * config/sparc/lb1spl.asm: Remove.
5803 * config/sparc/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5804 * config/sparc/t-leon: Likewise.
5805 * config/spu/t-spu-elf (LIBGCC1, CROSS_LIBGCC1): Remove.
5806 * config/v850/lib1funcs.asm: Move to ../libgcc/config/v850/lib1funcs.S.
5807 * config/v850/t-v850 (LIB1ASMSRC, LIB1ASMFUNCS): Remove
5808 * config/vax/lib1funcs.asm: Move to ../libgcc/config/vax/lib1funcs.S.
5809 * config/vax/t-linux: Remove.
5810 * config/xtensa/ieee754-df.S, config/xtensa/ieee754-sf.S: Move to
5811 ../libgcc/config/xtensa.
5812 * config/xtensa/lib1funcs.asm: Move to
5813 ../libgcc/config/xtensa/lib1funcs.S.
5814 * config/xtensa/t-xtensa (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5815 * config.gcc (bfin*-rtems*): Remove bfin/t-bfin from tmake_file.
5816 (bfin*-*): Likewise.
5817 (mips64*-*-linux*, mipsisa64*-*-linux*): Remove
5818 mips/t-libgcc-mips16 from tmake_file.
5819 (mips*-*-linux*): Likewise.
5820 (mips*-sde-elf*): Likewise.
5821 (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
5822 (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
5823 (mipsisa64r2-*-elf*, mipsisa64r2el-*-elf*): Likewise.
5824 (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*): Likewise.
5825 (mips-*-elf*, mipsel-*-elf*): Likewise.
5826 (mips64-*-elf*, mips64el-*-elf*): Likewise.
5827 (mips64orion-*-elf*, mips64orionel-*-elf*): Likewise.
5828 (mips*-*-rtems*): Likewise.
5829 (mipstx39-*-elf*, mipstx39el-*-elf*): Likewise.
5830 (vax-*-linux*): Remove vax/t-linux from tmake_file.
5832 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5834 * config.gcc (extra_parts): Remove.
5835 (*-*-freebsd*): Remove extra_parts.
5836 (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
5837 *-*-gnu*, *-*-kopensolaris*-gnu): Likewise.
5838 (*-*-netbsd*): Remove t-libc-ok, t-netbsd from tmake_file.
5839 Remove extra_parts for *-*-netbsd*1.[7-9]*, *-*-netbsd[2-9]*,
5840 *-*-netbsdelf[2-9]*.
5841 (*-*-openbsd*): Remove t-libc-ok from tmake_file.
5842 (alpha*-*-linux*): Remove extra_parts.
5843 (alpha*-*-freebsd*): Likewise.
5844 (bfin*-linux-uclibc*): Likewise.
5845 (fr30-*-elf): Likewise.
5846 (moxie-*-elf): Likewise.
5847 (moxie-*-uclinux*): Likewise.
5848 (h8300-*-rtems*): Remove h8300/t-elf from tmake_file.
5849 (h8300-*-elf*): Likewise.
5850 (hppa*64*-*-hpux11*): Remove extra_parts.
5851 (i[34567]86-*-elf*): Remove i386/t-i386elf, i386/t-crtstuff from
5853 (x86_64-*-elf*): Likewise.
5854 (i[34567]86-*-freebsd*): Remove tmake_file.
5855 (x86_64-*-freebsd*): Likewise.
5856 (x86_64-*-netbsd*): Likewise.
5857 (i[34567]86-*-openbsd2.*, i[34567]86-*openbsd3.[0123]): Remove
5858 t-libc-ok from tmake_file.
5859 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
5860 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
5861 i[34567]86-*-kopensolaris*-gnu): Remove i386/t-crtstuff from
5864 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
5865 Remove i386/t-crtstuff from tmake_file.
5866 (i[34567]86-*-lynxos*): Likewise.
5868 (ia64*-*-elf*): Remove extra_parts.
5869 (ia64*-*-freebsd*): Likewise.
5870 (ia64*-*-linux*): Likewise.
5871 (ia64-hp-*vms*): Remove ia64/t-vms from tmake_file.
5872 (m32r-*-elf*): Remove extra_parts.
5873 (m32rle-*-elf*): Likewise.
5874 (m32r-*-rtems*): Likewise.
5875 (m68k-*-elf*, fido-*-elf*): Likewise.
5876 (m68k*-*-openbsd*): Remove t-libc-ok from tmake_file.
5877 (m68k-*-rtems*): Remove extra_parts.
5878 (mep-*-*): Likewise.
5879 (microblaze*-linux*): Likewise.
5880 (mips64*-*-linux*, mipsisa64*-*-linux*): Likewise.
5881 (mips*-*-linux*): Likewise.
5882 (powerpc-*-lynxos*): Likewise.
5883 (s390x-ibm-tpf*): Likewise.
5884 (score-*-elf): Likewise.
5886 (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*, sh[2346lbe]*-*-linux*,
5887 sh-*-netbsdelf*, shl*-*-netbsdelf*, sh5-*-netbsd*, sh5l*-*-netbsd*,
5888 sh64-*-netbsd*, sh64l*-*-netbsd*): Remove sh/t-elf from tmake_file.
5889 Remove sh/t-superh from tmake_file for sh*-superh-elf.
5890 Remove sh/t-linux64 from tmake_file for sh64*-*-linux*.
5891 (sh-*-rtems*): Remove sh/t-elf from tmake_file.
5892 (sh-wrs-vxworks): Likewise.
5893 (sparc-*-linux*): Remove extra_parts.
5894 (sparc64-*-linux*): Likewise.
5895 (sparc64-*-freebsd*, ultrasparc-*-freebsd*): Likewise.
5896 (xstormy16-*-elf): Likewise.
5897 (xtensa*-*-linux*): Remove xtensa/t-linux from tmake_file.
5898 (am33_2.0-*-linux*): Remove extra_parts.
5899 * configure.ac (extra_parts): Don't substitute.
5900 * configure: Regenerate.
5901 * crtstuff.c: Move to ../libgcc.
5902 * Makefile.in (CRTSTUFF_CFLAGS): Remove.
5903 (EXTRA_PARTS): Remove.
5904 (CRTSTUFF_T_CFLAGS): Remove.
5905 (MOSTLYCLEANFILES): Remove $(EXTRA_PARTS).
5906 (GCC_EXTRA_PARTS): Remove.
5907 (libgcc.mvars): Remove GCC_EXTRA_PARTS, CRTSTUFF_CFLAGS,
5908 CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S.
5909 Emit GCC_CFLAGS, INHIBIT_LIBC_CFLAGS.
5910 ($(T)crtbegin.o, $(T)crtend.o, $(T)crtbeginS.o, $(T)crtendS.o)
5911 ($(T)crtbeginT.o): Remove.
5912 * config/alpha/t-vms (EXTRA_PARTS): Remove.
5913 ($(T)vms-dwarf2.o, $(T)vms-dwarf2eh.o): Remove.
5914 * config/alpha/vms-dwarf2.asm: Move to
5915 ../libgcc/config/alpha/vms-dwarf2.S.
5916 * config/alpha/vms-dwarf2eh.asm: Move to
5917 ../libgcc/config/alpha/vms-dwarf2eh.S.
5918 * config/arm/crti.asm: Move to ../libgcc/config/arm/crti.S.
5919 * config/arm/crtn.asm: Move to ../libgcc/config/arm/crtn.S.
5920 * config/arm/t-arm-elf (EXTRA_MULTILIB_PARTS): Remove.
5921 ($(T)crti.o, $(T)crtn.o): Remove.
5922 * config/arm/t-linux: Remove comment.
5923 * config/arm/t-linux-eabi (EXTRA_MULTILIB_PARTS): Remove.
5924 * config/arm/t-strongarm-elf (EXTRA_MULTILIB_PARTS): Remove.
5925 ($(T)crti.o, $(T)crtn.o): Remove.
5926 * config/arm/t-symbian (EXTRA_MULTILIB_PARTS): Remove.
5927 * config/bfin/crti.s: Move to ../libgcc/config/bfin/crti.S.
5928 * config/bfin/crtn.s: Move to ../libgcc/config/bfin/crtn.S.
5929 * config/bfin/crtlibid.s: Move to ../libgcc/config/bfin/crtlibid.S.
5930 * config/bfin/t-bfin (EXTRA_PARTS): Remove.
5931 ($(T)crti.o, $(T)crtn.o): Remove.
5932 * config/bfin/t-bfin-elf (CRTSTUFF_T_CFLAGS): Remove.
5933 ($(T)crti.o, $(T)crtn.o, $(T)crtlibid.o): Remove
5934 (EXTRA_MULTILIB_PARTS): Remove.
5935 * config/bfin/t-bfin-linux (CRTSTUFF_T_CFLAGS,
5936 EXTRA_MULTILIB_PARTS): Remove.
5937 * config/bfin/t-bfin-uclinux (CRTSTUFF_T_CFLAGS): Remove.
5938 ($(T)crtlibid.o): Remove.
5939 (EXTRA_MULTILIB_PARTS): Remove.
5940 * config/c6x/crti.s: Move to ../libgcc/config/c6x/crti.S.
5941 * config/c6x/crtn.s: Move to ../libgcc/config/c6x/crtn.S.
5942 * config/c6x/t-c6x-elf ($(T)crti.o, $(T)crtn.o): Remove.
5943 (EXTRA_MULTILIB_PARTS): Remove.
5944 (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
5945 * config/c6x/t-c6x-uclinux (CRTSTUFF_T_CFLAGS,
5946 CRTSTUFF_T_CFLAGS_S): Remove.
5947 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Remove.
5948 * config/cris/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
5949 * config/fr30/crti.asm: Move to ../libgcc/config/fr30/crti.S.
5950 * config/fr30/crtn.asm: Move to ../libgcc/config/fr30/crtn.S.
5951 * config/fr30/t-fr30 ($(T)crti.o, $(T)crtn.o): Remove.
5952 * config/frv/frvbegin.c, config/frv/frvend.c: Move to
5953 ../libgcc/config/frv.
5954 * config/frv/t-frv (EXTRA_MULTILIB_PARTS): Remove.
5955 (FRVSTUFF_CFLAGS, $(T)frvbegin$(objext), $(T)frvend$(objext)): Remove.
5956 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove.
5957 (CRTSTUFF_T_CFLAGS): Remove.
5958 * config/h8300/crti.asm: Move to ../libgcc/config/h8300/crti.S.
5959 * config/h8300/crtn.asm: Move to ../libgcc/config/h8300/crtn.S.
5960 * config/h8300/t-elf: Remove.
5961 * config/i386/cygming-crtbegin.c, config/i386/cygming-crtend.c:
5962 Move to ../libgcc/config/i386.
5963 * config/i386/t-crtstuff: Remove.
5964 * config/i386/t-i386elf: Remove.
5965 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
5966 * config/i386/t-nto (CRTSTUFF_T_CFLAGS, EXTRA_PARTS): Remove.
5967 * config/ia64/crtbegin.asm: Move to ../libgcc/config/ia64/crtbegin.S.
5968 * config/ia64/crtend.asm: Move to ../libgcc/config/ia64/crtend.S.
5969 * config/ia64/crti.asm: Move to ../libgcc/config/ia64/crti.S.
5970 * config/ia64/crtn.asm: Move to ../libgcc/config/ia64/crtn.S.
5971 * config/ia64/t-vms: Remove.
5972 * config/ia64/vms-crtinit.asm: Move to
5973 ../libgcc/config/ia64/vms-crtinit.S.
5974 * config/m32c/t-m32c (EXTRA_MULTILIB_PARTS): Remove.
5975 * config/m32r/initfini.c: Move to ../libgcc/config/m32r.
5976 * config/m32r/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
5977 * config/m32r/t-m32r (CRTSTUFF_T_CFLAGS): Remove.
5978 ($(T)crtinit.o, $(T)crtfini.o): Remove.
5979 (m32rx, m32r2): Remove.
5980 (EXTRA_MULTILIB_PARTS): Remove.
5981 * config/m68k/crti.s: Move to ../libgcc/config/m68k/crti.S.
5982 * config/m68k/crtn.s: Move to ../libgcc/config/m68k/crtn.S.
5983 * config/m68k/t-crtstuff: Remove.
5984 * config/m68k/t-linux (EXTRA_MULTILIB_PARTS): Remove.
5985 * config/m68k/t-m68kelf: Remove.
5986 * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Remove.
5987 * config/mcore/crti.asm: Move to ../libgcc/config/mcore/crti.S.
5988 * config/mcore/crtn.asm: Move to ../libgcc/config/mcore/crtn.S.
5989 * config/mcore/t-mcore ($(T)crti.o, $(T)crtn.o): Remove.
5990 (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
5991 * config/mep/t-mep (CRTSTUFF_CFLAGS): Remove.
5992 (EXTRA_MULTILIB_PARTS): Remove.
5993 * config/microblaze/crti.s: Move to ../libgcc/config/microblaze/crti.S.
5994 * config/microblaze/crtn.s: Move to ../libgcc/config/microblaze/crtn.S.
5995 * config/microblaze/t-microblaze (EXTRA_MULTILIB_PARTS,
5996 EXTRA_PARTS): Remove.
5997 ($(T)crti$(objext), $(T)crtn$(objext)): Remove.
5998 * config/mips/crti.asm: Move to ../libgcc/config/mips/crti.S.
5999 * config/mips/crtn.asm: Move to ../libgcc/config/mips/crtn.S.
6000 * config/mips/t-elf (CRTSTUFF_T_CFLAGS): Remove.
6001 ($(T)crti.o, $(T)crtn.o): Remove.
6002 (EXTRA_MULTILIB_PARTS): Remove.
6003 * config/mips/t-isa3264: Likewise.
6004 * config/mips/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
6005 * config/mips/t-r3900 (EXTRA_MULTILIB_PARTS): Remove.
6006 (CRTSTUFF_T_CFLAGS): Remove.
6007 * config/mips/t-sde (CRTSTUFF_T_CFLAGS): Remove.
6008 ($(T)crti.o, $(T)crtn.o): Remove.
6009 (EXTRA_MULTILIB_PARTS): Remove.
6010 * config/mips/t-sr71k (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS):
6012 ($(T)crti.o, $(T)crtn.o): Remove.
6013 * config/mips/t-st (EXTRA_MULTILIB_PARTS): Remove.
6014 * config/mips/t-vr (CRTSTUFF_T_CFLAGS): Remove.
6015 (EXTRA_MULTILIB_PARTS): Remove.
6016 ($(T)crti.o, $(T)crtn.o): Remove.
6017 * config/mmix/crti.asm: Move to ../libgcc/config/crti.S.
6018 * config/mmix/crtn.asm: Move to ../libgcc/config/crtn.S.
6019 * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Remove.
6020 * config/moxie/crti.asm, config/moxie/crtn.asm: Remove.
6021 * config/pa/stublib.c: Move to libgcc/config/pa.
6022 * config/pa/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
6023 * config/pa/t-linux64 (CRTSTUFF_T_CFLAGS_S): Remove.
6024 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS, stublib.c): Remove.
6025 (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
6026 (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
6027 ($(T)libgcc_stub.a): Remove.
6028 * config/pa/t-pa64 (LIBGCCSTUB_OBJS, stublib.c): Remove.
6029 (rfi-stub.o, dfi-stub.o, cxaf-stub.o, jvrc-stub.o)
6030 (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
6031 (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
6032 ($(T)libgcc_stub.a): Remove.
6033 * config/rs6000/eabi-cn.asm: Move to
6034 ../../../libgcc/config/rs6000/eabi-cn.S.
6035 * config/rs6000/eabi-ci.asm: Move to
6036 ../../../libgcc/config/rs6000/eabi-ci.S.
6037 * config/rs6000/sol-ci.asm: Move to
6038 ../../../libgcc/config/rs6000/sol-ci.S.
6039 * config/rs6000/sol-cn.asm: Move to
6040 ../../../libgcc/config/rs6000/sol-cn.S.
6041 * config/rs6000/t-lynx (EXTRA_MULTILIB_PARTS): Remove.
6042 (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
6043 * config/rs6000/t-netbsd (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S):
6045 (EXTRA_MULTILIB_PARTS): Remove.
6046 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Remove.
6047 (ecrti.S, ecrtn.S, ncrti.S, ncrtn.S): Remove.
6048 ($(T)ecrti$(objext), $(T)ecrtn$(objext), $(T)ncrti$(objext),
6049 ($(T)ncrtn$(objext)): Remove.
6050 (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
6051 * config/rs6000/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
6052 * config/rx/t-rx (EXTRA_MULTILIB_PARTS): Remove.
6053 * config/score/crti.asm: Move to ../libgcc/config/score/crti.S.
6054 * config/score/crtn.asm: Move to ../libgcc/config/score/crtn.S.
6055 * config/score/t-score-elf: Remove.
6056 * config/sh/crt1.asm: Move to ../libgcc/config/sh/crt1.S.
6057 * config/sh/crti.asm: Move to ../libgcc/config/sh/crti.S.
6058 * config/sh/crtn.asm: Move to ../libgcc/config/sh/crtn.S.
6059 * config/sh/lib1funcs-4-300.asm: Move to
6060 ../../../libgcc/config/sh/lib1funcs-4-300.S.
6061 * config/sh/lib1funcs-Os-4-200.asm: Move to
6062 ../libgcc/config/sh/lib1funcs-Os-4-200.S.
6063 * config/sh/t-elf: Remove.
6064 * config/sh/t-linux (EXTRA_MULTILIB_PARTS): Remove.
6065 * config/sh/t-linux64: Remove.
6066 * config/sh/t-netbsd (EXTRA_MULTILIB_PARTS): Remove.
6067 * config/sh/t-sh ($(T)crt1.o, $(T)crti.o, $(T)crtn.o): Remove.
6068 (IC_EXTRA_PARTS, OPT_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
6069 ($(T)ic_invalidate_array_4-100.o)
6070 ($(T)libic_invalidate_array_4-100.a)
6071 ($(T)ic_invalidate_array_4-200.o)
6072 ($(T)libic_invalidate_array_4-200.a, $(T)ic_invalidate_array_4a.o)
6073 ($(T)libic_invalidate_array_4a.a, $(T)sdivsi3_i4i-Os-4-200.o)
6074 ($(T)udivsi3_i4i-Os-4-200.o, $(T)unwind-dw2-Os-4-200.o)
6075 ($(T)libgcc-Os-4-200.a, $(T)div_table-4-300.o)
6076 ($(T)libgcc-4-300.a): Remove.
6077 * config/sh/t-superh: Remove.
6078 * config/sh/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
6079 * config/sparc/t-linux64 (CRTSTUFF_T_CFLAGS): Remove.
6080 * config/spu/cache.S: Move to ../libgcc/config/spu.
6081 * config/spu/cachemgr.c: Move to ../libgcc/config/spu.
6082 * config/spu/t-spu-elf (CRTSTUFF_T_CFLAGS): Remove.
6083 (EXTRA_MULTILIB_PARTS): Remove.
6084 ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o, $(T)libgcc_%.a): Remove.
6085 ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache32k.o)
6086 ($(T)cache64k.o, $(T)cache128k.o): Remove.
6087 * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Remove.
6088 * config/t-libc-ok: Remove.
6089 * config/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
6090 * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Remove.
6091 * config/t-netbsd: Remove.
6092 * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Remove.
6093 * config/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
6094 * config/vms/t-vms (VMS_EXTRA_PARTS): Remove.
6095 ($(T)vcrt0.o, $(T)pcrt0.o): Remove.
6096 * config/vms/vms-ucrt0.c: Move to ../libgcc/config/vms.
6097 * config/xtensa/crti.asm: Move to ../libgcc/config/xtensa/crti.S.
6098 * config/xtensa/crtn.asm: Move to ../libgcc/config/xtensa/crtn.S.
6099 * config/xtensa/t-elf (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
6100 (EXTRA_MULTILIB_PARTS): Remove.
6101 * config/xtensa/t-linux: Remove.
6102 * config/xtensa/t-xtensa ($(T)crti.o, $(T)crtn.o): Remove.
6104 2011-11-02 Uros Bizjak <ubizjak@gmail.com>
6106 * config/i386/i386.c (bdesc_args) [IX86_BUILTIN_CVTTPD2DQ256]: Use
6107 CODE_FOR_fix_truncv4dfv4si2, not CODE_FOR_fix_truncv4sfv4si2.
6109 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6111 PR translation/45116
6112 * Makefile.in (slibdir): Remove, don't export.
6113 (SHLIB_NM_FLAGS): Remove.
6114 (libgcc.mvars): Don't emit SHLIB_LINK, SHLIB_INSTALL,
6115 SHLIB_DLLDIR, SHLIB_EXT, SHLIB_MKMAP, SHLIB_MKMAP_OPTS,
6116 SHLIB_MAPFILES, SHLIB_NM_FLAGS.
6117 (DRIVER_DEFINES): Test SHLIB instead of SHLIB_LINK.
6118 (gcc.o): Pass SHLIB instead of SHLIB_LINK.
6119 (gccspec.o): Likewise.
6120 (installdirs): Don't create $(DESTDIR)$(slibdir).
6121 * configure.ac (slibdir): Remove.
6122 * configure: Regenerate.
6123 * libgcc-libsystem.ver: Move to ../libgcc/config.
6124 * mkmap-flat.awk, mkmap-symver.awk: Move to ../libgcc.
6125 * config/libgcc-glibc.ver: Move to ../libgcc/config.
6126 * config/t-libunwind (SHLIB_LC): Remove.
6127 * config/t-linux (SHLIB_MAPFILES): Remove.
6128 * config/t-slibgcc-dummy: Rename to config/t-slibgcc.
6129 * config/t-slibgcc-elf-ver: Remove.
6130 * config/t-slibgcc-libgcc, config/t-slibgcc-nolc-override: Move to
6132 * config/alpha/libgcc-alpha-ldbl.ver, config/alpha/t-linux: Move
6133 to ../libgcc/config/alpha.
6134 * config/alpha/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
6135 SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_SYMVEC,
6136 SHLIB_SYMVECX2, SHLIB_LINK): Remove.
6137 * config/arm/libgcc-bpabi.ver: Move to ../libgcc/config/arm.
6138 * config/arm/t-bpabi (SHLIB_MAPFILES): Remove.
6139 * config/arm/t-netbsd (SHLIB_EXT, SHLIB_NAME, SHLIB_SONAME,
6140 SHLIB_OBJS, SHLIB_LINK, SHLIB_INSTALL): Remove.
6141 * config/arm/t-symbian (SHLIB_LC): Remove.
6142 * config/bfin/libgcc-bfin.ver: Move to
6143 ../libgcc/config/bfin/libgcc-glibc.ver.
6144 * config/bfin/t-bfin-linux (SHLIB_MAPFILES): Remove.
6145 * config/c6x/libgcc-c6xeabi.ver: Move to
6146 ../libgcc/config/c6x/libgcc-eabi.ver.
6147 * config/c6x/t-c6x-elf (SHLIB_MAPFILES): Remove.
6148 * config/cris/libgcc.ver: Move to
6149 ../libgcc/config/cris/libgcc-glibc.ver.
6150 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
6151 * config/frv/libgcc-frv.ver: Move to ../libgcc/config/frv.
6152 * config/frv/t-linux (SHLIB_MAPFILES): Remove.
6153 * config/i386/darwin-libgcc.10.4.ver: Move to
6154 ../libgcc/config/i386/libgcc-darwin.10.4.ver.
6155 * config/i386/darwin-libgcc.10.5.ver: Move to
6156 ../libgcc/config/i386/libgcc-darwin.10.5.ver.
6157 * config/i386/libgcc-glibc.ver: Move to ../libgcc/config/i386.
6158 * config/i386/t-cygming (SHLIB_EXT, SHLIB_IMPLIB, SHLIB_SOVERSION,
6159 SHLIB_SONAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_DIR, SHLIB_SLIBDIR_QUAL)
6160 SHLIB_PTHREAD_CFLAG, SHLIB_PTHREAD_LDFLAG, SHLIB_LINK,
6161 SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MKMAP_OPTS, SHLIB_MAPFILES): Remove.
6162 * config/i386/t-cygwin (SHLIB_LC, SHLIB_EH_EXTENSION,
6163 SHLIB_IMPLIB, SHLIB_SONAME, SHLIB_MKMAP_OPTS): Remove.
6164 * config/i386/t-dlldir, config/i386/t-dlldir-x: Move to
6165 ../libgcc/config/i386.
6166 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Move to
6167 ../libgcc/config/i386.
6168 * config/i386/t-linux: Move to ../libgcc/config/i386.
6169 * config/i386/t-mingw-pthread: Move to ../libgcc/config/i386.
6170 * config/i386/t-mingw-w32 (SHLIB_LC): Remove.
6171 * config/i386/t-mingw-w64: Likewise.
6172 * config/i386/t-mingw32: Remove.
6173 * config/ia64/libgcc-glibc.ver, config/ia64/libgcc-ia64.ver: Move
6174 to ../libgcc/config/ia64.
6175 * config/ia64/t-glibc: Remove.
6176 * config/ia64/t-hpux (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL): Remove.
6177 * config/ia64/t-ia64 (SHLIB_MAPFILES): Remove.
6178 * config/ia64/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
6179 SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_LINK): Remove.
6180 * config/ia64/vms_symvec_libgcc_s.opt: Remove.
6181 * config/m32r/libgcc-glibc.ver: Move to ../libgcc/config/m32r.
6182 * config/m32r/t-linux (SHLIB_MAPFILES): Remove.
6183 * config/m68k/t-slibgcc-elf-ver: Move to ../libgcc/config/m68k.
6184 * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Remove.
6185 * config/pa/t-hpux-shlib: Move to ../libgcc/config/pa/t-slibgcc-hpux.
6186 * config/pa/t-slibgcc-dwarf-ver, config/pa/t-slibgcc-sjsj-ver:
6187 Move to ../libgcc/config/pa.
6188 * config/rs6000/darwin-libgcc.10.4.ver: Move to
6189 ../libgcc/config/rs6000/libgcc-darwin.10.4.ver.
6190 * config/rs6000/darwin-libgcc.10.5.ver: Move to
6191 ../libgcc/config/rs6000/libgcc-darwin.10.5.ver.
6192 * config/rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL,
6193 SHLIB_LIBS, SHLIB_MKMAP, SHLIB_NM_FLAGS, AR_FLAGS_FOR_TARGET): Remove.
6194 * config/rs6000/t-aix52: Likewise.
6195 * config/sh/libgcc-excl.ver, config/sh/libgcc-glibc.ver: Move to
6196 ../libgcc/config/sh.
6197 * config/sparc/libgcc-sparc-glibc.ver: Move to
6198 ../libgcc/config/sparc/libgcc-glibc.ver.
6199 * config/sparc/t-linux: Move to ../libgcc/config/sparc.
6200 * config/xtensa/t-linux (SHLIB_MAPFILES): Remove.
6201 * config/xtensa/libgcc-xtensa.ver: Move to
6202 ../libgcc/config/xtensa/libgcc-glibc.ver.
6203 * config.gcc (*-*-freebsd*): Replace t-slibgcc-elf-ver with
6204 t-slibgcc in tmake_file.
6205 Remove t-slibgcc-nolc-override for *-*-freebsd[34],
6206 *-*-freebsd[34].* with pthreads.
6207 (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu,
6208 *-*-knetbsd*-gnu, *-*-gnu*, *-*-kopensolaris*-gnu): Replace
6209 t-slibgcc-elf-ver with t-slibgcc in tmake_file.
6210 (*-*-netbsd*): Likewise.
6211 (*-*-solaris2*): Replace t-slibgcc-dummy with t-slibgcc in tmake_file.
6212 (*-*-*vms*): Add t-slibgcc to tmake_file.
6213 (alpha*-*-linux*): Remove alpha/t-linux from tmake_file.
6214 (alpha*-dec-osf5.1*): Replace t-slibgcc-dummy with t-slibgcc in
6216 (arm*-*-linux*): Remove t-slibgcc-libgcc from tmake_file for
6218 (bfin*-linux-uclibc*): Replace t-slibgcc-dummy with t-slibgcc in
6220 (crisv32-*-linux*, cris-*-linux*): Likewise.
6221 (hppa*-*-linux*): Remove t-slibgcc-libgcc, pa/t-slibgcc-sjlj-ver,
6222 pa/t-slibgcc-dwarf-ver from tmake_file.
6223 (hppa[12]*-*-hpux10*): Replace pa/t-hpux-shlib with t-slibgcc in
6225 Remove pa/t-slibgcc-sjlj-ver, pa/t-slibgcc-dwarf-ver from tmake_file.
6226 (hppa*64*-*-hpux11*): Likewise.
6227 (hppa[12]*-*-hpux11*): Likewise.
6228 (i[34567]86-*-darwin*): Replace t-slibgcc-dummy in t-slibgcc in
6230 (x86_64-*-darwin*): Likewise.
6231 (i[34567]86-*-cygwin*): Remove tmake_eh_file, tmake_dlldir_file.
6232 Add t-slibgcc to tmake_file.
6233 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
6234 Remove i386/t-mingw32 from tmake_file unless x86_64-w64-*,
6236 Remove i386/t-mingw-pthread from tmake_file.
6237 (ia64*-*-linux*): Remove ia64/t-glibc from tmake_file.
6238 (ia64*-*-hpux*): Add t-slibgcc to tmake_file.
6239 (ia64-hp-*vms*): Likewise.
6240 (m32r-*-linux*): Replace t-slibgcc-elf-ver with t-slibgcc in
6242 (m32rle-*-linux*): Likewise.
6243 (m68k-*-linux*): Remove m68k/t-slibgcc-elf-ver from tmake_file.
6244 (microblaze*-linux*): Remove t-slibgcc-elf-ver,
6245 t-slibgcc-nolc-override from tmake_file.
6246 (mips-sgi-irix6.5*): Replace t-slibgcc-dummy with t-slibgcc in
6248 (powerpc-*-darwin*): Likewise.
6249 (powerpc64-*-darwin*): Likewise.
6250 (powerpc-*-freebsd*): Remove t-slibgcc-libgcc from tmake_file.
6251 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
6252 (rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*): Add
6253 t-slibgcc to tmake_file.
6254 (rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*): Likewise.
6255 (rs6000-ibm-aix5.2.*, powerpc-ibm-aix5.2.*): Likewise.
6256 (rs6000-ibm-aix5.3.*, powerpc-ibm-aix5.3.*): Likewise.
6257 (rs6000-ibm-aix[6789].*, powerpc-ibm-aix[6789].*): Likewise.
6258 (sparc-*-linux*): Remove sparc/t-linux from tmake_file.
6259 (sparc64-*-linux*): Likewise.
6260 (tic6x-*-uclinux): Replace t-slibgcc-elf-ver with t-slibgcc in
6262 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu,
6263 x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Remove i386/t-linux
6266 2011-11-02 Richard Guenther <rguenther@suse.de>
6268 PR tree-optimization/50902
6269 * tree-vect-stmts.c (vectorizable_load): Properly convert
6270 an invariant initializer element.
6272 2010-11-02 Richard Guenther <rguenther@suse.de>
6274 PR tree-optimization/50890
6275 * gimple.h (gimple_fold_call): Remove.
6276 * gimple-fold.c (fold_stmt_1): Move all call related code to ...
6277 (gimple_fold_call): ... here. Make static. Update the
6278 cannot-inline flag on direct calls.
6279 * ipa-inline.c (early_inliner): Copy the cannot-inline flag
6280 from the statements to the edges.
6282 2011-11-01 Ian Lance Taylor <iant@google.com>
6284 * godump.c (struct macro_hash_value): Define.
6285 (macro_hash_hashval): New static function.
6286 (macro_hash_eq, macro_hash_del): New static functions.
6287 (go_define): Use macro_hash_value to store values in macro_hash.
6288 Replace an old value on a redefinition. Don't print anything to
6290 (go_undef): Delete the entry from the hash table.
6291 (go_output_typedef): For an enum, use macro_hash_value, and don't
6292 print anything to go_dump_file.
6293 (go_print_macro): New static function.
6294 (go_finish): Traverse macro_hash with go_print_macro.
6295 (dump_go_spec_init): Update macro_hash creation for macro_hash_value.
6297 2011-11-02 Alan Modra <amodra@gmail.com>
6299 * config/rs6000/rs6000.c (rs6000_code_end): Declare ATTRIBUTE_UNUSED.
6301 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
6304 * doc/invoke.texi: Document -Wzero-as-null-pointer-constant.
6306 2011-11-01 Andrew Stubbs <ams@codesourcery.com>
6308 * config/arm/bpabi.h (BE8_LINK_SPEC): Recognize generic-armv7 tuning.
6310 2011-11-01 Uros Bizjak <ubizjak@gmail.com>
6312 * config/i386/i386.md (splitters for int-float conversion): Use
6313 SUBREG_REG on SUBREGs in splitter constraints.
6315 2011-11-01 Jakub Jelinek <jakub@redhat.com>
6317 * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si): New
6319 * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): New
6321 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Use it.
6322 (ssepackfltmode): New mode attr.
6323 (vec_pack_ufix_trunc_<mode>): New expander.
6325 2011-11-01 Uros Bizjak <ubizjak@gmail.com>
6328 * config/i386/i386.md (floatsi<mode>2_vector_sse_with_temp splitter):
6329 Compare <ssevecmode>mode to V4SFmode, not V4SImode.
6331 2011-11-01 Peter Bergner <bergner@vnet.ibm.com>
6333 * config.gcc (powerpc*-*-linux*): Add powerpc*-*-linux*ppc476* variant.
6334 * config/rs6000/476.h: New file.
6335 * config/rs6000/476.opt: Likewise.
6336 * config/rs6000/rs6000.h (TARGET_LINK_STACK): New define.
6337 (SET_TARGET_LINK_STACK): Likewise.
6338 (TARGET_ASM_CODE_END): Define.
6339 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
6340 TARGET_LINK_STACK for -mtune=476 and -mtune=476fp.
6341 (rs6000_legitimize_tls_address): Emit the link stack preserving GOT
6342 code if TARGET_LINK_STACK.
6343 (rs6000_emit_load_toc_table): Likewise.
6344 (output_function_profiler): Likewise
6345 (macho_branch_islands): Likewise
6346 (machopic_output_stub): Likewise
6347 (get_ppc476_thunk_name): New function.
6348 (rs6000_code_end): Likewise.
6349 * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
6350 Convert to a define_expand.
6351 (load_toc_v4_PIC_1_normal): New define_insn.
6352 (load_toc_v4_PIC_1_476): Likewise.
6353 (load_toc_v4_PIC_1b_normal): Likewise.
6354 (load_toc_v4_PIC_1b_476): Likewise.
6356 2011-11-01 Georg-Johann Lay <avr@gjlay.de>
6359 * config/avr/avr.opt (-mbranch-cost=): New option.
6360 * config/avr/avr.h (BRANCH_COST): Define to avr_branch_cost.
6361 * config/avr/avr.c (avr_rtx_costs_1): Adjust [U]DIV/[U]MOD costs.
6362 * config/avr/avr.md (*addqi3.lt0, *addhi3.lt0, *addsi3.lt0): New insns.
6363 (*addhi3_zero_extend1): Remove % in constraint of operand 1.
6364 (*addhi3.sign_extend1, *subhi3.sign_extend2): New insns.
6366 2011-11-01 Tom de Vries <tom@codesourcery.com>
6368 PR tree-optimization/50908
6369 * tree-ssa-tail-merge.c (update_vuses): Now that edges are removed
6370 before update_vuses, test for 1 predecessor rather than two.
6371 (delete_block_update_dominator_info): New function, part of it factored
6373 (replace_block_by): Use delete_block_update_dominator_info. Call
6374 update_vuses after deleting bb1 and updating dominator info, instead of
6377 2011-11-01 David S. Miller <davem@davemloft.net>
6379 * config/sparc/sparc.c (vector_init_faligndata): New function.
6380 (sparc_expand_vector_init): Use it for V4HImode on VIS1.
6382 * config/sparc/sparc.c (sparc_expand_vcond): New function.
6383 * config/sparc/sparc-protos.h (sparc_expand_vcond): Declare it.
6384 * config/sparc/sparc.md (vcond<mode><mode>): New VIS3 expander.
6385 (vconduv8qiv8qi): Likewise.
6387 2011-11-01 Alexandre Oliva <aoliva@redhat.com>
6390 * cselib.c (cfa_base_preserved_regno): Initialize.
6391 (cselib_expand_value_rtx_1): Don't expand it.
6392 * var-tracking.c (vt_expand_var_loc_chain): Initialize depth.
6393 Check it's only zero if result is NULL.
6395 2011-11-01 Jakub Jelinek <jakub@redhat.com>
6397 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): New
6400 * config/i386/sse.md (sseintvecmode): Remove duplicate modes.
6401 (sseintvecmodelower): New mode iterator.
6402 (floatv8siv8sf2, floatunsv4siv4sf2): Macroize into...
6403 (float<sseintvecmodelower><mode>2): ... this using VF1 iterator.
6404 (floatunsv4siv4sf2): Macroize into...
6405 (floatuns<sseintvecmodelower><mode>2): ... this using VF1 iterator.
6407 2011-10-31 David S. Miller <davem@davemloft.net>
6409 * config/sparc/sparc.md (cmask patterns): Allow zero operand.
6411 * dwarf2out.c (cached_next_real_insn): New.
6412 (dwarf2out_end_epilogue): Set it to NULL_RTX.
6413 (dwarf2out_var_location): Remove cached_next_real_insn local static.
6415 2011-10-31 Richard Henderson <rth@redhat.com>
6417 * config/i386/sse.md (floatv8siv8sf2): Rename from avx_cvtdq2ps256.
6418 (floatv4siv4sf2): Rename from sse2_cvtdq2ps.
6419 (floatunsv4siv4sf2): Rename from sse2_cvtudq2ps.
6420 (fix_truncv8sfv8si2): Rename from avx_cvttps2dq256.
6421 (fix_truncv4sfv4si2): Rename from sse2_cvttps2dq.
6422 (floatv4siv4df2): Rename from avx_cvtdq2pd256.
6423 (fix_truncv4dfv4si2): Rename from avx_cvttpd2dq256.
6424 (vec_unpacku_float_hi_v8si): Update for insn pattern name changes.
6425 * config/i386/i386.md (splitters for int-float conversion): Likewise.
6426 * config/i386/i386.c (ix86_split_convert_uns_si_sse): Likewise.
6427 (bdesc_args): Likewise.
6428 (enum ix86_builtins) [IX86_BUILTIN_CVTUDQ2PS]: Remove.
6429 (ix86_vectorize_builtin_conversion): Remove.
6430 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
6432 2011-10-31 Martin Jambor <mjambor@suse.cz>
6434 * ipa-prop.c (mark_modified): Moved up in the file.
6435 (is_parm_modified_before_call): Renamed to
6436 is_parm_modified_before_stmt, moved up in the file.
6437 (load_from_unmodified_param): New function.
6438 (compute_complex_assign_jump_func): Also attempt to create pass
6439 through jump functions for values loaded from (addressable)
6442 2011-10-31 Jakub Jelinek <jakub@redhat.com>
6444 * tree-vect-stmts.c (vectorizable_shift): If op1 is vect_external_def
6445 in a loop and has different type from op0, cast it to op0's type
6446 before the loop first. For slp give up. Don't crash if op1_vectype
6449 2011-10-31 Paul Brook <paul@codesourcery.com>
6451 * cgraphunit.c: Don't mark clones as static constructors.
6453 2011-10-31 David Edelsohn <dje.gcc@gmail.com>
6455 * gcc-ar: Do not include stdio.h.
6457 2011-10-31 Diego Novillo <dnovillo@google.com>
6459 * tree-streamer-out.c (pack_ts_base_value_fields): Emit
6461 * tree-streamer-in.c (unpack_ts_base_value_fields): Read
6464 2011-10-30 David S. Miller <davem@davemloft.net>
6466 * config/sparc/sparc.c (vector_init_bshuffle): New function.
6467 (vector_init_fpmerge): New function.
6468 (sparc_expand_vector_init): Use them to improve non-const cases.
6470 * dwarf2out.c (dwarf2out_var_location): When processing several
6471 consecutive location notes, cache the result of next_real_insn().
6473 2011-10-30 Uros Bizjak <ubizjak@gmail.com>
6475 * config/i386/i386.md (avx2_vec_dup<mode>): Macroize insn from
6476 avx2_vec_dup{v8sf,v4sf} using VF1 mode iterator.
6477 (vec_dupv4sf): Remove expander.
6478 (vec_dupv4sf): Merge from *vec_dupv4sf and *vec_dupv4sf_avx.
6479 (vec_dupv2df): Remove expander.
6480 (vec_dupv2df): Merge from *vec_dupv2df and *vec_dupv2df_sse3.
6481 (*vec_concatv2df): Merge *vec_concatv2df_sse3.
6482 (*vec_dupv4si): Merge *vec_dupv4si_avx.
6483 (*vec_dupv2di): Merge *vec_dupv2di_sse3.
6485 2011-10-30 Dmitry Plotnikov <dplotnikov@ispras.ru>
6487 * tree-cfg.c (verify_gimple_assign_unary): Allow vector conversions.
6488 * optabs.c (supportable_convert_operation): New function.
6489 * optabs.h (supportable_convert_operation): New prototype.
6490 * tree-vect-stmts.c (vectorizable_conversion): Change condition and
6491 behavior for NONE modifier case.
6492 * tree.h (VECTOR_INTEGER_TYPE_P): New macro.
6494 2011-10-30 Jakub Jelinek <jakub@redhat.com>
6496 * tree-vectorizer.h (NUM_PATTERNS): Bump to 9.
6497 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): New
6499 (vect_vect_recog_func_ptrs): Add it.
6501 2011-10-30 David S. Miller <davem@davemloft.net>
6503 * reorg.c (label_before_next_insn): New function.
6504 (relax_delay_slots): Use it instead of prev_label.
6505 * rtl.h (prev_label): Delete declaration.
6506 * emit-rtl.c (prev_label): Remove.
6508 2011-10-30 Revital Eres <revital.eres@linaro.org>
6510 * modulo-sched.c (generate_prolog_epilog): Mark prolog and epilog
6511 as BB_DISABLE_SCHEDULE.
6512 (mark_loop_unsched): New function.
6513 (sms_schedule): Call it.
6515 2011-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6518 * config/pa/protos.h (attr_length_save_restore_dltp): Delete.
6519 (cmpib_comparison_operator): Likewise.
6520 (following_cal, output_and, output_ior, output_move_double,
6521 output_fp_move_double, output_block_move, output_block_clear,
6522 output_cbranch, output_lbranch, output_bb, output_bvb, output_dbra,
6523 output_movb, output_parallel_movb, output_parallel_addb, output_call,
6524 output_indirect_call, output_millicode_call, output_mul_insn,
6525 output_div_insn, output_mod_insn, singlemove_string,
6526 output_arg_descriptor, output_global_address, print_operand,
6527 legitimize_pic_address, hppa_encode_label, symbolic_expression_p,
6528 fmpyaddoperands, fmpysuboperands, emit_bcond_fp, emit_move_sequence,
6529 emit_hpdiv_const, is_function_label_plus_const, jump_in_call_delay,
6530 hppa_fpstore_bypass_p, attr_length_millicode_call, attr_length_call,
6531 attr_length_indirect_call, return_addr_rtx, function_arg_padding,
6532 insn_refs_are_delayed, get_deferred_plabel, ldil_cint_p, zdepi_cint_p,
6533 output_ascii, compute_frame_size, and_mask_p, cint_ok_for_move,
6534 hppa_expand_prologue, hppa_expand_epilogue, ior_mask_p,
6535 compute_zdepdi_operands, output_64bit_and, output_64bit_ior,
6536 reloc_needed, magic_milli, shadd_constant_p): Consistently prefix
6537 exported functions and variables with "pa_".
6538 * config/pa/predicates.md: Likewise.
6539 * config/pa/pa64-hpux.h: likewise.
6540 * config/pa/som.h: Likewise.
6541 * config/pa/elf.h: Likewise.
6542 * config/pa/pa64-linux.h: Likewise.
6543 * config/pa/pa.md: Likewise.
6544 * config/pa/pa.c: Likewise.
6545 * config/pa/pa-linux.h: Likewise.
6546 * config/pa/pa.h: Likewise.
6547 * config/pa/constraints.md: Likewise.
6549 2011-10-29 Uros Bizjak <ubizjak@gmail.com>
6551 * config/i386/i386.md (xop_sha<mode>3): Rename from xop_ashl<mode>3.
6553 (xop_shl<mode>3): Rename from xop_lshl<mode>3. Update all uses.
6554 * config/i386/i386.c: Update all uses.
6556 2011-10-29 Uros Bizjak <ubizjak@gmail.com>
6558 * config/i386/i386.md (lshlv16qi3): Remove expander.
6559 (lshrv16qi3): New expander.
6560 (<shift_insn>v16qi3): Macroize expander from ashrv16qi3 and lshrv16qi3
6561 using any_shiftrt code iterator. Cleanup.
6562 (ashlv16qi3): Cleanup.
6565 2011-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6568 * config/pa/pa.c (emit_move_sequence): Legitimize TLS symbol
6570 (pa_legitimate_constant_p): Return false for TLS_MODEL_GLOBAL_DYNAMIC
6571 and TLS_MODEL_LOCAL_DYNAMIC symbol references.
6573 2011-10-29 Georg-Johann Lay <avr@gjlay.de>
6576 * config/avr/avr.opt (-maccumulate-args): New option.
6577 * config/avr/avr.h (STARTING_FRAME_OFFSET): Redefine to
6578 avr_starting_frame_offset.
6579 (ACCUMULATE_OUTGOING_ARGS): Define to avr_accumulate_outgoing_args.
6580 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): Remove.
6581 (UNSPECV_WRITE_SP_IRQ_OFF): Remove.
6582 (UNSPECV_WRITE_SP): New constant.
6583 (*addhi3_sp_R): Rewrite to...
6584 (*addhi3_sp): ...this new insn.
6585 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): Combine to...
6586 (movhi_sp_r): ...this new insn.
6587 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): New.
6588 (avr_starting_frame_offset): New.
6589 * config/avr/avr.c (avr_accumulate_outgoing_args): New function.
6590 (avr_starting_frame_offset): New function.
6591 (avr_outgoing_args_size): New static function.
6592 (avr_initial_elimination_offset): Use it.
6593 (avr_simple_epilogue): Use it.
6594 (avr_asm_function_end_prologue): Use it.
6595 (expand_epilogue): Use it.
6596 (expand_prologue): Use it. Break out code to...
6597 (avr_prologue_setup_frame): ...this new static function.
6598 (avr_can_eliminate): Allow eliminating to frame pointer if there
6600 (avr_frame_pointer_required_p): Use frame pointer if target has a
6602 * config/avr/constraints.md (R): Remove.
6603 (Csp): New constraint.
6604 * config/avr/predicates.md (avr_sp_immediate_operand): Use it.
6606 2011-10-29 Andi Kleen <ak@linux.intel.com>
6608 * gcc-ar.c (target_machine): Add.
6610 2011-10-29 Anatoly Sokolov <aesok@post.ru>
6612 * config/cris/cris.c (reg_ok_for_base_p, reg_ok_for_index_p,
6613 cris_constant_index_p, cris_base_p, cris_index_p,
6614 cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p,
6615 cris_legitimate_address_p): New functions.
6616 (TARGET_LEGITIMATE_ADDRESS_P): Define.
6617 (cris_pic_symbol_type, cris_valid_pic_const): Change arguments type
6618 from rtx to const_rtx.
6619 (cris_print_operand_address, cris_address_cost,
6620 cris_side_effect_mode_ok): Use
6621 cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
6622 cris_biap_index_p and cris_bdap_index_p.
6623 * config/cris/cris.h (CONSTANT_INDEX_P, BASE_P, BASE_OR_AUTOINCR_P,
6624 BDAP_INDEX_P, BIAP_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
6625 REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
6626 (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R, EXTRA_CONSTRAINT_T): Use
6627 cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
6628 cris_biap_index_p and cris_bdap_index_p.
6629 * config/cris/cris.md (moversideqi movemsideqi peephole2): Use
6631 * config/cris/cris-protos.h (cris_constant_index_p, cris_base_p,
6632 cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p): New
6634 (cris_pic_symbol_type, cris_valid_pic_const): Update prototype.
6636 2011-10-21 Andi Kleen <ak@linux.intel.com>
6638 * ggc-page (PAGE_ALIGN): Add.
6639 (alloc_page, ggc_pch_total_size, ggc_pch_this_base, ggc_pch_read):
6640 Replace ROUND_UP with PAGE_ALIGN.
6642 2011-10-20 Andi Kleen <ak@linux.intel.com>
6644 * ggc-page (alloc_anon): Add check argument.
6645 (alloc_page): Add fallback to 1 page allocation.
6646 Adjust alloc_anon calls to new argument.
6648 2011-10-18 Andi Kleen <ak@linux.intel.com>
6650 * ggc-page (release_pages): First free large continuous
6651 chunks in the madvise path.
6653 2011-10-18 Andi Kleen <ak@linux.intel.com>
6655 * ggc-page.c (alloc_pages): Always round up entry_size.
6657 2011-10-19 Andi Kleen <ak@linux.intel.com>
6659 * Makefile.in (MOSTLYCLEANFILES): Add gcc-ar/nm/ranlib.
6660 (native): Add gcc-ar, gcc-nm, gcc-ranlib.
6661 (AR_LIBS, gcc-ar, gcc-ar.o, gcc-ranlib, gcc-ranlib.o,
6662 gcc-nm, gcc-nm.o, gcc-ranlib.c, gcc-nm.c): Add.
6663 (install): Depend on install-gcc-ar.
6664 (install-gcc-ar): Add.
6665 (uninstall): Uninstall gcc-ar, gcc-nm, gcc-ranlib.
6666 * gcc-ar.c: Add new file.
6668 2011-10-28 Pat Haugen <pthaugen@us.ibm.com>
6670 * config/rs6000/rs6000.md (define_attr "type"): Add vecdouble.
6671 * config/rs6000/vsx.md (VStype_simple, VStype_mul): Use vecdouble
6673 (VStype_div): Use vector types for V2DF/V4SF.
6674 (VStype_sqrt): Use *sqrt types.
6675 (VS_spdp_type): Change type to vecdouble.
6676 (*vsx_fmav2df4, *vsx_nfmsv2df4, vsx_xvcvdpsxws, vsx_xvcvdpuxws,
6677 vsx_xvcvuxdsp, vsx_xvcvsxwdp, vsx_xvcvuxwdp, vsx_xvcvspsxds,
6678 vsx_xvcvspuxds): Likewise.
6679 (*vsx_fms<mode>4): Set type via <VStype_mul>.
6680 (*vsx_eq_<mode>_p, *vsx_gt_<mode>_p, *vsx_ge_<mode>_p): Set type via
6682 * config/rs6000/power7.md (power7-vecstore): Correct VSU pipe.
6683 (power7-fpcompare, power7-sdiv, power7-ddiv, power7-sqrt,
6684 power7-dsqrt): Correct insn latency.
6685 (power7-vecsimple): Add veccmp type and correct dispatch/VSU values.
6686 (power7-veccmp): Delete.
6687 (power7-vecfloat): Correct latency/dispatch/VSU values.
6688 (define_bypass "power7-vecfloat"): Correct latency and types.
6689 (power7-veccomplex, power7-vecperm): Correct dispatch/VSU values.
6690 (power7-vecdouble, power7-vecfdiv, power7-vecdiv): New.
6692 2011-10-28 Uros Bizjak <ubizjak@gmail.com>
6694 * config/i386/i386.md (shift_insn): Rename code attribute from
6695 shiftrt_insn. Also handle ashift RTX.
6696 (shift): Rename code attribute from shiftrt. Also handle ashift RTX.
6697 (vshift): New code attribute.
6698 (<shift_insn>*): Rename from <shiftrt_insn>*. Update asm templates.
6699 (any_lshift): Move and rename code iterator from ...
6700 * config/i386/sse.md (lshift): ... here.
6701 (lshift_insn): Remove code attribute.
6702 (lshift): Remove code attribute.
6703 (vlshr<mode>3): Use lshiftrt RTX.
6704 (vashr<mode>3, ashrv16qi3, ashrv2di3): Use ashiftrt RTX.
6705 (vashl<mode>3, ashlv16qi3): Use ashift RTX.
6706 (avx2_<lshift>v<mode>): Rename from avx2_<shift_insn>v<mode>. Use
6707 any_lshift code iterator. Update asm template.
6708 (<shift_insn><mode>3): Macroize insn from lshr<mode>3 and ashl<mode>3
6709 usign any_lshift code iterator.
6710 * config/i386/mmx.md (mmx_<shift_insn><mode>3): Macroize insn from
6711 mmx_lshr<mode>3 and mmx_ashl<mode>3 usign any_lshift code iterator.
6712 * config/i386/i386.c (bdesc_args) <__builtin_ia32_psll>: Update.
6714 2011-10-28 Georg-Johann Lay <avr@gjlay.de>
6717 * config/avr/avr.md (parityhi2): Expand allowing pseudos.
6718 (*parityhi2): New pre-reload insn-and-split to map 16-bit parity
6720 (*parityqihi2): Same for 8-bit parity.
6722 2011-10-28 Julian Brown <julian@codesourcery.com>
6724 PR rtl-optimization/47918
6725 * reload1.c (set_initial_label_offsets): Use initial offsets
6726 for labels on the nonlocal_goto_handler_labels chain.
6728 2011-10-28 Iain Sandoe <iains@gcc.gnu.org>
6730 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
6731 Move darwin-fpsave.asm from here to ... LIB2FUNCS_EXTRA.
6732 (LIB2FUNCS_EXTRA): Add darwin-gpsave.asm.
6733 (TARGET_LIBGCC2_CFLAGS): Ensure that fPIC and -pipe are inherited from
6735 * config/rs6000/darwin.h (FP_SAVE_INLINE): Adjust to enable.
6736 (GP_SAVE_INLINE): Likewise.
6737 (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
6738 RESTORE_FP_SUFFIX): Set to empty strings.
6739 * config/rs6000/rs6000.c (rs6000_savres_strategy): Implement for Darwin.
6740 (debug_stack_info): Print savres_strategy.
6741 (rs6000_savres_routine_name): Implement for Darwin.
6742 (rs6000_make_savres_rtx): Adjust used register for Darwin.
6743 (rs6000_emit_prologue): Implement out-of-line saves for Darwin.
6744 (rs6000_output_function_prologue): Don't emit .extern for Mach-O.
6745 (rs6000_emit_epilogue): Implement out-of-line saves for Darwin.
6746 * config/rs6000/darwin-gpsave.asm: New file.
6748 2011-10-28 Jakub Jelinek <jakub@redhat.com>
6750 * config/i386/sse.md (VI4SD_AVX2): Removed.
6751 (VI48_AVX2, VI128_128, VI48_128, VI48_256): New mode iterators.
6752 (vashl<mode>3): Use VI12_128 iterator instead of VI124_128.
6753 Add another expander using VI48_128 iterator for
6754 TARGET_AVX2 || TARGET_XOP and another using VI48_256 iterator
6756 (vlshr<mode>3): Likewise. Change register_operand predicate to
6757 nonimmediate_operand on last operand in the VI12_128 expander.
6758 (vashr<mode>3): Use VI128_128 iterator instead of VI124_128.
6759 (vashrv4si3, vashrv8si3): New expanders.
6760 (avx2_ashrvv8si, avx2_ashrvv4si, avx2_<lshift>vv8si,
6761 avx2_<lshift>vv2di): Removed.
6762 (avx2_ashrv<mode>): New insn with VI4_AVX2 iterator.
6763 (avx2_<lshift>v<mode>): Macroize using VI48_AVX2
6764 iterator. Simplify pattern.
6766 2010-10-28 Richard Guenther <rguenther@suse.de>
6769 * lto-wrapper.c (get_options_from_collect_gcc_options):
6770 Properly count arguments.
6771 (run_gcc): Use an obstack to collect argv, properly separate
6772 switches and their arguments.
6774 2011-10-28 Jakub Jelinek <jakub@redhat.com>
6776 * tree-vect-stmts.c (vectorizable_shift): Give up if op1 has different
6777 vector mode from vectype's mode.
6779 2011-10-28 Chung-Lin Tang <cltang@codesourcery.com>
6781 PR rtl-optimization/49720
6782 * simplify-rtx.c (simplify_relational_operation_1): Detect
6783 infinite recursion condition in "(eq/ne (plus x cst1) cst2)
6784 simplifies to (eq/ne x (cst2 - cst1))" case.
6786 2011-10-27 David S. Miller <davem@davemloft.net>
6788 * config/sparc/sparc.md (snedi_special): Only match when not VIS3.
6789 (*snedi_zero): Likewise.
6790 (*snedi_zero_trunc): Likewise.
6791 (snedi_special_vis3): New expander.
6792 (*snedi_zero_vis3): New insn.
6793 (*snedi_zero_trunc_vis3): Likewise.
6794 (*sltu_insn_vis3): Likewise.
6795 (*sltu_insn_vis3_trunc): Likewise.
6797 (*addxc_trunc_sp64_vis3): Likewise.
6798 * config/sparc/sparc.c (emit_scc_insn): When VIS3 use the
6799 gen_snedi_special_vis3 expander, and try GTU/LTU addx based
6800 sequences on DImode values.
6802 * config/sparc/sparc.md (64-bit vector moves): Use 'e' not 'f'
6805 * regcprop.c (copyprop_hardreg_forward_1): Reject the
6806 transformation when we narrow the mode on big endian.
6808 2011-10-27 Jakub Jelinek <jakub@redhat.com>
6810 * config/i386/sse.md (avx_cvtpd2dq256_2, avx_cvttpd2dq256_2,
6811 vec_pack_sfix_trunc_v4df, vec_pack_sfix_v4df): New expanders.
6812 (*avx_cvtpd2dq256_2, *avx_cvttpd2dq256_2): New insns.
6814 * config/i386/i386.c (ix86_print_operand): Handle 'q' and 'x'
6815 overrides for -masm=intel memory.
6816 * config/i386/sse.md (sse2_cvtdq2pd, sse2_cvtps2pd,
6817 sse4_1_<code>v8qiv8hi2, avx2_<code>v8qiv8si2,
6818 sse4_1_<code>v4hiv4si2, avx2_<code>v4hiv4di2,
6819 sse4_1_<code>v2siv2di2): Use %q1 instead of %1 for -masm=intel.
6820 (sse4_1_<code>v4qiv4si2, avx2_<code>v4qiv4di2,
6821 sse4_1_<code>v2hiv2di2): Use %k1 instead of %1 for -masm=intel.
6822 (sse4_1_<code>v2qiv2di2): Use %w1 instead of %1 for -masm=intel.
6824 2011-10-27 Martin Jambor <mjambor@suse.cz>
6826 * ipa-prop.c (compute_pass_through_member_ptrs): Rename parm_info
6828 (ipa_compute_jump_functions_for_edge): Likewise.
6829 (ipa_compute_jump_functions): Likewise.
6830 (ipa_analyze_indirect_call_uses): Likewise.
6831 (ipa_analyze_call_uses): Likewise.
6832 (ipa_analyze_params_uses): Likewise.
6833 (ipa_analyze_node): Likewise.
6835 2011-10-27 Uros Bizjak <ubizjak@gmail.com>
6838 * config/i386/sse.md (*avx_unpcklpd256): Remove extra insn
6839 constraints. Change alternative 1 to "x,m,1".
6841 2011-10-27 Jakub Jelinek <jakub@redhat.com>
6843 * Makefile.in (build/gencheck.o): Depend on tree.def and
6844 c-family/c-common.def.
6846 * tree-ssa-strlen.c: Include expr.h.
6847 (get_stridx): Don't use c_strlen, instead use string_constant
6848 and compute string length from it.
6849 * Makefile.in (tree-ssa-strlen.o): Depend on $(EXPR_H).
6851 2011-10-27 Eric Botcazou <ebotcazou@adacore.com>
6853 PR rtl-optimization/46603
6855 * reload.c (push_reload): In the out case, restore previous behavior
6856 for subregs that don't have word mode.
6858 2011-10-27 Ian Lance Taylor <iant@google.com>
6860 * cppdefault.c: Undef NATIVE_SYSTEM_HEADER_DIR if
6861 CROSS_DIRECTORY_STRUCTURE is defined and TARGET_SYSTEM_ROOT is not.
6862 (cpp_include_defaults): Only use NATIVE_SYSTEM_HEADER_DIR if it is
6865 2011-10-27 Richard Henderson <rth@redhat.com>
6867 * optabs.c (expand_vec_perm): Use the correct mode for scaling the
6868 selector. Save the qimode constant selector for later use by the
6869 qimode vec_perm pattern.
6871 2011-10-27 Bernd Schmidt <bernds@codesourcery.com>
6873 * config/c6x/c6x.c (unit_req_imbalance, res_mii): Cast the first arg
6874 to unit_req_factor to the right enum type.
6875 (get_unit_operand_masks, reshuffle_units, try_rename_operands,
6876 hwloop_optimize): Remove unused variables.
6878 2010-10-27 Richard Guenther <rguenther@suse.de>
6881 * tree-vect-generic.c (do_binop): Handle scalar operands.
6883 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
6886 * config/i386/sse.md (*vec_extract_v4sf_mem): Avoid combining registers
6887 from different units in a single alternative.
6889 2011-10-26 David S. Miller <davem@davemloft.net>
6891 * config/sparc/sparc.c (emit_scc_insn): Force attempt of v9 sequences
6892 if we're comparing DImode and comparison is other than EQ or NE.
6894 * config/sparc/sparc.c (emit_scc_insn): Do not try v9 sequences until
6895 LEU/LTU/GEU/GTU is attempted.
6896 * config/sparc/sparc.md (*neg_snesi_sign_extend): New 64-bit insn
6898 (*neg_seqsi_sign_extend): Likewise.
6899 (*sltu_extend_sp64, *neg_sltu_extend_sp64, *sgeu_extend_sp64,
6900 *neg_sgeu_extend_sp64): New insns.
6902 * config/sparc/sparc-protos.h (sparc_expand_conditional_move): Declare.
6903 * config/sparc/sparc.md (mov<I:mode>cc, mov<F:mode>cc): Call it.
6904 (*mov<I:mode>_cc_v9): Normalize to expect operand 0 always in operand 4.
6905 (*mov<I:mode>_cc_reg_sp64): Likewise.
6906 (*movsf_cc_v9): Likewise.
6907 (*movsf_cc_reg_sp64): Likewise.
6908 (*movdf_cc_v9): Likewise.
6909 (*movdf_cc_reg_sp64): Likewise.
6910 (*movtf_cc_hq_v9): Likewise.
6911 (*movtf_cc_reg_hq_sp64): Likewise.
6912 (*movtf_cc_v9): Likewise.
6913 (*movtf_cc_reg_sp64): Likewise.
6914 * config/sparc/sparc.c (sparc_expand_conditional_move): New function.
6915 (sparc_print_operand): Delete 'c' and 'd' handling, no longer used.
6917 2011-10-26 Eric Botcazou <ebotcazou@adacore.com>
6919 * reload.c (reload_inner_reg_of_subreg): Change type of return value
6920 and type of OUTPUT parameter to bool and adjust. Document MODE and
6921 OUTPUT parameters. Use HARD_REGISTER_P. Reorder final condition
6922 and improve associated comment.
6923 (push_reload): Clarify and update comments about reloading of subregs.
6924 Adjust calls to reload_inner_reg_of_subreg. Compute the class upfront
6925 for the reloading of subregs in the out case as well.
6927 2011-10-26 Alexandre Oliva <aoliva@redhat.com>
6930 * var-tracking.c (rtx_debug_expr_p): New.
6931 (use_type): Don't use debug exprs to track non-VTA variables.
6933 2011-10-26 Jeff Law <law@redhat.com>
6935 * doc/invoke.texi (sink-frequency-threshold): Document.
6936 * tree-ssa-sink.c: Include params.h.
6937 (select_best_block): New function.
6938 (statement_sink_location): Use it.
6939 * params.def (SINK_FREQUENCY_THRESHOLD): New PARAM.
6941 2011-10-26 Iain Sandoe <iains@gcc.gnu.org>
6944 * config/darwin.c (top level): Amend comments concerning LTO output.
6945 (lto_section_num): New variable. (darwin_lto_section_e): New GTY.
6946 (LTO_SECTS_SECTION, LTO_INDEX_SECTION): New.
6947 (LTO_NAMES_SECTION): Rename.
6948 (darwin_asm_named_section): Record LTO section counts and switches
6949 in a vec of darwin_lto_section_e.
6950 (darwin_file_start): Remove unused code.
6951 (darwin_file_end): Put an LTO section termination label. Handle
6952 output of the wrapped LTO sections, index and names table.
6954 2011-10-26 Alan Modra <amodra@gmail.com>
6956 * config/rs6000/rs6000.c (rs6000_make_savres_rtx): Delete unneeded
6958 (rs6000_emit_stack_reset): Only return insn emitted when it adjusts sp.
6959 (rs6000_make_savres_rtx): Rename to rs6000_emit_savres_rtx. Use
6960 simple_return in pattern, emit instruction, and set jump_label.
6961 (rs6000_emit_prologue): Update for rs6000_emit_savres_rtx. Use
6962 simple_return rather than return.
6963 (emit_cfa_restores): New function.
6964 (rs6000_emit_epilogue): Emit cfa_restores when flag_shrink_wrap.
6965 Add missing cfa_restores for SAVE_WORLD. Add missing LR cfa_restore
6966 when using out-of-line gpr restore. Add missing LR and FP regs
6967 cfa_restores for out-of-line fpr restore. Consolidate code setting
6968 up cfa_restores. Formatting. Use LR_REGNO define.
6969 (rs6000_output_mi_thunk): Use simple_return rather than return.
6970 * config/rs6000/rs6000.md (sibcall*, sibcall_value*): Likewise.
6971 (return_internal*): Likewise.
6972 (any_return, return_pred, return_str): New iterators.
6973 (return, conditional return insns): Provide both return and
6974 simple_return variants.
6975 * config/rs6000/rs6000.h (EARLY_R12, LATE_R12): Define.
6976 (REG_ALLOC_ORDER): Move r12 before call-saved regs when FIXED_R13.
6977 Move r11 and r0 later to suit shrink-wrapping.
6979 2011-10-26 Richard Guenther <rguenther@suse.de>
6981 * lto-wrapper.c (run_gcc): Properly init/free obstack.
6983 2011-10-26 Jakub Jelinek <jakub@redhat.com>
6985 * config/i386/i386.md (UNSPEC_VSIBADDR): New.
6986 * config/i386/predicates.md (vsib_address_operand,
6987 vsib_mem_operator): New predicates.
6988 * config/i386/i386.c (ix86_print_operand_address): Handle
6989 UNSPEC_VSIBADDR addresses.
6990 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>,
6991 avx2_gatherdi<mode>256): Adjust expanders to use MEM with
6992 UNSPEC_VSIBADDR address.
6993 (*avx2_gathersi<mode>, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>256):
6994 Adjust insns to use MEM with UNSPEC_VSIBADDR address.
6996 2011-10-26 Tom de Vries <tom@codesourcery.com>
6998 PR tree-optimization/50763
6999 * tree-ssa-tail-merge.c (replace_block_by): Update vops if phi_vuse1 or
7000 phi_vuse2 is NULL_TREE only if bb1 dominates or is dominated by bb2.
7002 2011-10-26 Richard Guenther <rguenther@suse.de>
7005 * Makefile.in (lto-wrapper): Depend on and link against opts-common.o.
7006 (lto-wrapper.o): Depend on $(OPTS_H) and $(OPTIONS_H).
7007 * lto-wrapper.c (get_options_from_collect_gcc_options): New function.
7008 (run_gcc): Use it. Filter out language specific options.
7010 2011-10-26 Andreas Tobler <andreast@fgznet.ch>
7012 * config/i386/freebsd64.h (LINK_SPEC): Emit the same warning as the
7015 2011-10-25 Paolo Carlini <paolo.carlini@oracle.com>
7018 * gcc.c (main): Fix fatal_error string for translation.
7020 2011-10-25 Ian Lance Taylor <iant@google.com>
7022 * tree-eh.c (do_return_redirection): Remove return_value_p
7023 parameter. Change all callers.
7024 (lower_try_finally_nofallthru): Remove local return_val.
7025 (lower_try_finally_onedest): Likewise.
7026 (lower_try_finally_copy): Likewise.
7027 (lower_try_finally_switch): Likewise.
7029 2011-10-25 H.J. Lu <hongjiu.lu@intel.com>
7031 * config/i386/mmx.md (*mmx_maskmovq): Replace :SI with :P and
7032 remove "&& !TARGET_64BIT"
7033 (*mmx_maskmovq_rex): Removed.
7035 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
7037 PR rtl-optimization/46603
7038 * reload.c (push_reload): In the out case, reload the subreg as well
7039 as the reg if it has word mode.
7041 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
7043 * dwarf2out.c (add_gnat_descriptive_type_attribute): Temporarily
7044 suppress debug info for the parent type.
7046 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
7048 * config/ia64/ia64.c (ia64_profile_hook): Fix thinko.
7050 2011-10-25 Richard Henderson <rth@redhat.com>
7052 * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Remove.
7053 (vec_extract_even<mode>, vec_extract_odd<mode>): Remove.
7055 * config/rs6000/altivec.md (vec_extract_evenv8hi,
7056 vec_extract_evenv16qi, vec_extract_oddv4si,
7057 vec_extract_oddv4sf): Remove.
7059 * config/spu/spu.md (vec_extract_evenv4si, vec_extract_evenv4sf,
7060 vec_extract_evenv8hi, vec_extract_evenv16qi, vec_extract_oddv4si,
7061 vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
7062 vec_interleave_highv4sf, vec_interleave_lowv4sf,
7063 vec_interleave_highv4si, vec_interleave_lowv4si,
7064 vec_interleave_highv8hi, vec_interleave_lowv8hi,
7065 vec_interleave_highv16qi, vec_interleave_lowv16qi): Remove.
7067 * expr.c (expand_expr_real_2) [VEC_EXTRACT_EVEN_EXPR]: Use binop.
7068 [VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR]: Likewise.
7069 [VEC_INTERLEAVE_LOW_EXPR]: Likewise.
7070 * optabs.c (expand_binop): Implement vec_interleave_high_optab,
7071 vec_interleave_low_optab, vec_extract_even_optab,
7072 vec_extract_odd_optab with expand_vec_perm.
7073 (can_vec_perm_for_code_p): New.
7075 * tree-vect-data-refs.c (vect_strided_store_supported): Allow for
7076 fallback via can_vec_perm_for_code_p.
7077 (vect_strided_load_supported): Likewise.
7078 * tree-vect-generic.c (expand_vector_operations_1): Never lower
7079 VEC_INTERLEAVE_HIGH_EXPR, VEC_INTERLEAVE_LOW_EXPR,
7080 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR.
7082 * target.def (vec_perm_const_ok): Change parameters to mode and
7084 * doc/tm.texi: Rebuild.
7085 * config/i386/i386.c (ix86_vectorize_vec_perm_const_ok): Change
7086 parameters to mode and array of indicies.
7087 * expr.c (expand_expr_real_2) [VEC_PERM_EXPR]: Expand operands here.
7088 * optabs.c (can_vec_perm_p): Rename from can_vec_perm_expr_p.
7089 Change parameters to mode and array of indicies.
7090 (expand_vec_perm_1): Rename from expand_vec_perm_expr_1.
7091 (expand_vec_perm): Rename from expand_vec_perm_expr. Change
7092 parameters to mode and rtx inputs. Try lowering to QImode
7093 vec_perm_const before trying fully variable permutation.
7094 * optabs.h: Update decls.
7095 * tree-vect-generic.c (lower_vec_perm): Extract array of indices from
7096 VECTOR_CST to pass to can_vec_perm_p.
7097 * tree-vect-slp.c (vect_get_mask_element): Change mask parameter type
7098 from int pointer to unsigned char pointer.
7099 (vect_transform_slp_perm_load): Update for change to can_vec_perm_p.
7100 * tree-vect-stmts.c (perm_mask_for_reverse): Likewise.
7102 * tree.def (VEC_EXTRACT_EVEN_EXPR): Fix typo in text name.
7103 (VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
7104 VEC_INTERLEAVE_LOW_EXPR): Likewise.
7106 2011-10-25 Mike Stump <mikestump@comcast.net>
7108 * reload.c (regno_clobbered_p): Fix typo.
7110 2011-10-25 Dodji Seketeli <dodji@redhat.com>
7112 * input.c (expand_location): Rewrite using linemap_resolve_location
7113 and linemap_expand_location. Add a comment.
7115 2011-10-25 Jakub Jelinek <jakub@redhat.com>
7117 PR tree-optimization/50596
7118 * tree-vect-stmts.c (vect_mark_relevant): Only use
7119 FOR_EACH_IMM_USE_FAST if lhs is SSA_NAME.
7120 (vectorizable_store): If is_pattern_stmt_p look through
7121 VIEW_CONVERT_EXPR on lhs.
7122 * tree-vect-patterns.c (check_bool_pattern, adjust_bool_pattern):
7123 Use unsigned type instead of signed.
7124 (vect_recog_bool_pattern): Optimize also stores into bool memory in
7125 addition to casts from bool to integral types.
7126 (vect_mark_pattern_stmts): If pattern_stmt already has vinfo
7127 created, don't create it again.
7129 2011-10-25 Kai Tietz <ktietz@redhat.com>
7131 * config/i386/i386.c (ix86_frame_pointer_required): Require
7132 frame-pointer, if setjmp is used for 32-bit ms-abi.
7134 2011-10-24 Michael Meissner <meissner@linux.vnet.ibm.com>
7136 * builtins.c (set_builtin_user_assembler_name): Remove extra
7137 newline added in October 11th, 2011 change.
7139 2011-10-24 David S. Miller <davem@davemloft.net>
7141 * config/sparc/little-endian.opt: Delete.
7142 * config.gcc: Remove references to config/sparc/little-endian.opt
7143 * doc/invoke.texi: Remove documentation of -mlittl-endian on sparc.
7144 * config/sparc/linux64.h: Delete references to -mlittle-endian.
7145 * config/sparc/netbsd-elf.h: Likewise.
7146 * config/sparc/openbsd64.h: Likewise.
7147 * config/sparc/sparc.h: Likewise.
7148 * config/sparc/sp64-elf.h: Likewise and delete overrides for
7149 BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
7150 * config/sparc/sparc.c (dump_target_flag_bits): Remove reference
7151 to MASK_LITTLE_ENDIAN.
7152 * config/sparc/sparc.opt (Mask(LITTLE_ENDIAN)): Delete.
7154 * config/sparc/sparc.md: Only use F, G, and C constraints in FP insns.
7155 Only use D, Y, and Z constraints in vector insns.
7157 * config/sparc/sparc.md (cpu_feature, enabled): New attributes.
7158 (*movsi_insn_novis3, *movsi_insn_vis3): Consolidate into one pattern
7160 (*movdi_insn_sp32_v9_novis3, *movdi_insn_sp32_v9_vis3): Consolidate
7161 into *movdi_insn_sp32.
7162 (*movdi_insn_sp64_novis3, *movdi_insn_sp64_vis3): Consolidate into
7163 one pattern called *movdi_insn_sp64.
7164 (*movsf_insn_novis3, *movsf_insn_vis3, *movsf_insn_no_fpu):
7165 Consolidate into one pattern called *movsf_insn.
7166 (*movdf_insn_sp32_no_fpu, *movdf_insn_sp32_v9_novis3,
7167 *movdf_insn_sp32_v9_vis3, *movdf_insn_sp32_v9_no_fpu): Consolidate
7168 into *movdf_insn_sp32.
7169 (*movdf_insn_sp64_novis3, *movdf_insn_sp64_vis3,
7170 *movdf_insn_sp64_no_fpu): Consolidate into one pattern called
7172 (*zero_extendsidi2_insn_sp64_novis3,
7173 *zero_extendsidi2_insn_sp64_vis3): Consolidate into one pattern
7174 called *zero_extendsidi2_insn_sp64.
7175 (*sign_extendsidi2_insn_novis3, *sign_extendsidi2_insn_vis3):
7176 Consolidate into one pattern named *sign_extendsidi2_insn.
7177 (*mov<VM32:mode>_insn_novis3, *mov<VM32:mode>_insn_vis3):
7178 Consolidate into one pattern named *mov<VM32:mode>_insn.
7179 (*mov<VM64:mode>_insn_sp64_novis3,
7180 *mov<VM64:mode>_insn_sp64_novis3): Consolidate into one pattern
7181 named *mov<VM64:mode>_insn_sp64.
7182 (*mov<VM64:mode>_insn_sp32_novis3,
7183 *mov<VM64:mode>_insn_sp32_vis3): Consolidate into one pattern
7184 named *mov<VM64:mode>_insn_sp32.
7186 2011-10-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7188 * tree-ssa-strlen.c (get_string_length): Change assertion to STPCPY.
7189 (zero_length_string): Change assertion to accept strinfo without
7190 length but with stmt instead.
7191 Set the endptr pointer also if starting a new chain.
7192 (adjust_related_strinfos): Ignore strinfos marked for delayed
7194 (handle_builtin_strcpy): Mark earlier strinfo elements also for
7195 delayed length computation.
7197 2011-10-24 Georg-Johann Lay <avr@gjlay.de>
7200 Port from 4.6 branch r180379
7201 * doc/invoke.texi (AVR Options): New subsubsection to explain EIND
7202 handling and indirect jump/calls on devices > 128k.
7204 2011-10-24 Anatoly Sokolov <aesok@post.ru>
7205 Georg-Johann Lay <avr@gjlay.de>
7208 * doc/extend.texi (Declaring Attributes of Functions):
7209 Document OS_main and OS_task attributes.
7210 (Specifying Attributes of Variables): Move up
7211 subsection "AVR Variable Attributes" as of alphabetical order.
7213 2011-10-24 Richard Guenther <rguenther@suse.de>
7215 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Convert constants
7216 to vector element type.
7217 (vectorizable_assignment): Bail out for non-mode-precision operations.
7218 (vectorizable_shift): Likewise.
7219 (vectorizable_operation): Likewise.
7220 (vectorizable_type_demotion): Likewise.
7221 (vectorizable_type_promotion): Likewise.
7222 (vectorizable_store): Handle non-mode-precision stores.
7223 (vectorizable_load): Handle non-mode-precision loads.
7224 (get_vectype_for_scalar_type_and_size): Return a vector type
7225 for non-mode-precision integers.
7226 * tree-vect-loop.c (vectorizable_reduction): Bail out for
7227 non-mode-precision reductions.
7229 2011-10-24 Julian Brown <julian@codesourcery.com>
7231 * config/m68k/m68k.c (notice_update_cc): Tighten condition for
7232 setting CC_REVERSED for FP comparisons.
7234 2011-10-24 Richard Guenther <rguenther@suse.de>
7236 PR tree-optimization/50838
7237 * tree-data-ref.c (dr_analyze_indices): Properly canonicalize
7238 a MEM_REF base if we change it.
7240 2011-10-24 Bernd Schmidt <bernds@codesourcery.com>
7243 * rtlanal.c: Swap includes of "hard-reg-set.h" and "rtl.h".
7245 PR rtl-optimization/50833
7246 * function.c (thread_prologue_and_epilogue_insns): Expect the
7247 return insn optimization only if optimize.
7249 2011-10-24 Georg-Johann Lay <avr@gjlay.de>
7251 * config/avr/avr.c: Break long lines.
7252 Define target hooks on the fly if applicable.
7253 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove first definition
7255 (targetm): Move definition to end of file.
7256 (avr_can_eliminate): Make static on the fly.
7257 (avr_frame_pointer_required_p): Ditto.
7258 (avr_hard_regno_scratch_ok): Ditto.
7259 (avr_builtin_setjmp_frame_value): Make static on the fly.
7260 Indent according to coding rules.
7261 (avr_case_values_threshold): Ditto.
7262 (avr_attribute_table): Move down.
7264 2011-10-24 Ira Rosen <ira.rosen@linaro.org>
7266 PR tree-optimization/50730
7267 * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
7268 analysis if encountered unsupported data-ref.
7270 2011-10-23 David S. Miller <davem@davemloft.net>
7272 * config/sparc/sparc.c (sparc_option_override): Remove -mv8plus
7274 * config/sparc/linux64.h (CC1_SPEC): When defaulting to 64-bit,
7275 append -mcpu=v9 when -mv8plus is given.
7277 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): We can move
7278 between float and non-float regs when VIS3.
7279 * config/sparc/sparc.c (eligible_for_restore_insn): We can't
7280 use a restore when the source is a float register.
7281 (sparc_split_regreg_legitimate): When VIS3 allow moves between
7282 float and integer regs.
7283 (sparc_register_move_cost): Adjust to account for VIS3 moves.
7284 (sparc_preferred_reload_class): On 32-bit with VIS3 when moving an
7285 integer reg to a class containing EXTRA_FP_REGS, constrain to FP_REGS.
7286 (sparc_secondary_reload): On 32-bit with VIS3 when moving between
7287 float and integer regs we sometimes need a FP_REGS class
7288 intermediate move to satisfy the reload. When this happens
7289 specify an extra cost of 2.
7290 (*movsi_insn): Rename to have "_novis3" suffix and add !VIS3 guard.
7291 (*movdi_insn_sp32_v9): Likewise.
7292 (*movdi_insn_sp64): Likewise.
7293 (*movsf_insn): Likewise.
7294 (*movdf_insn_sp32_v9): Likewise.
7295 (*movdf_insn_sp64): Likewise.
7296 (*zero_extendsidi2_insn_sp64): Likewise.
7297 (*sign_extendsidi2_insn): Likewise.
7298 (*movsi_insn_vis3): New insn.
7299 (*movdi_insn_sp32_v9_vis3): New insn.
7300 (*movdi_insn_sp64_vis3): New insn.
7301 (*movsf_insn_vis3): New insn.
7302 (*movdf_insn_sp32_v9_vis3): New insn.
7303 (*movdf_insn_sp64_vis3): New insn.
7304 (*zero_extendsidi2_insn_sp64_vis3): New insn.
7305 (*sign_extendsidi2_insn_vis3): New insn.
7306 (TFmode reg/reg split): Make sure both REG operands are float.
7307 (*mov<VM32:mode>_insn): Add "_novis3" suffix and !VIS3 guard. Remove
7308 easy constant to integer reg alternatives.
7309 (*mov<VM64:mode>_insn_sp64): Likewise.
7310 (*mov<VM64:mode>_insn_sp32_novis3): Likewise.
7311 (*mov<VM32:mode>_insn_vis3): New insn.
7312 (*mov<VM64:mode>_insn_sp64_vis3): New insn.
7313 (*mov<VM64:mode>_insn_sp32_vis3): New insn.
7314 (VM64 reg<-->reg split): New splitter for 32-bit.
7316 * config/sparc/sparc.c (sparc_split_regreg_legitimate): New function.
7317 * config/sparc/sparc-protos.h (sparc_split_regreg_legitimate):
7319 * config/sparc/sparc.md (DImode reg/reg split): Use it.
7320 (DFmode reg/reg split): Likewise.
7322 * config/sparc/sparc.md (*movdi_insn_sp32_v9): Add alternatives for
7323 generating fzero and fone instructions.
7324 (DImode const_int --> reg splitter): Only trigger for integer regs.
7326 * config/sparc/predicates.md (input_operand): Disallow vector
7327 constants other than 0 and -1.
7328 * config/sparc/sparc.c (sparc_preferred_reload_class): Return
7329 NO_REGS for vector constants other than 0 and -1.
7331 * config/sparc/sparc.h (SPARC_FIRST_INT_REG, SPARC_LAST_INT_REG,
7332 SPARC_INT_REG_P): Define.
7333 (HARD_REGNO_NREGS): Use SPARC_INT_REG_P.
7334 (REGNO_OK_FOR_INDEX_P): Likewise.
7335 * config/sparc/sparc.c (gen_df_reg): Likewise.
7336 (eligible_for_return_delay): Likewise.
7337 (eligible_for_sibcall_delay): Likewise.
7338 (sparc_legitimate_address_p): Likewise.
7339 (emit_save_or_restore_regs): Likewise.
7340 (registers_ok_for_ldd_peep): Likewise.
7341 * config/spac/sparc.md (DI mode splitters): Likewise.
7342 (SF mode const splitters): Likewise.
7343 (DF mode splitters): Likewise.
7344 (32-bit DI mode logical op splitters): Likewise.
7346 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7350 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7353 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
7355 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
7357 * config/i386/sse.md (avx2_lshl<mode>3): Remove insn pattern.
7358 (VI248_256): Remove mode iterator.
7359 * config/i386/i386.c (ix86_expand_vec_perm): Use gen_ashlv4di3
7360 instead of gen_avx2_lshlv4di3.
7361 (bdesc_args): Use CODE_FOR_ashl{v16hi,v8si,v4di}3 instead of
7362 CODE_FOR_avx2_lshl{v16hi,v8si,v4di}3.
7364 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
7366 * config/i386/sse.md (sseintprefix): Rename from gthrfirstp.
7367 (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>): Delete expander.
7368 (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>) Merge insn
7369 pattern from *avx2_maskload<ssemodesuffix><avxsizesuffix> and
7370 *avx_maskload<ssemodesuffix><avxsizesuffix> using V48_AVX mode
7371 iterator. Use sseintprefix mode attribute.
7372 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Delete expander.
7373 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>) Merge insn
7374 pattern from *avx2_maskstore<ssemodesuffix><avxsizesuffix> and
7375 *avx_maskstore<ssemodesuffix><avxsizesuffix> using V48_AVX mode
7376 iterator. Use sseintprefix mode attribute.
7377 (*avx2_gathersi<mode>) Use sseintprefix and ssemodesuffix mode
7379 (*avx2_gatherdi<mode>): Ditto.
7380 (*avx2_gatherdi<mode>256): Ditto.
7381 (VI48_AVX2): Remove mode iterator.
7382 (gthrlastfp): Remove mode attribute.
7384 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7387 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
7389 2011-10-23 Tom de Vries <tom@codesourcery.com>
7391 PR tree-optimization/50763
7392 * tree-ssa-tail-merge.c (same_succ_flush_bb): New function, factored
7394 (same_succ_flush_bbs): Use same_succ_flush_bb.
7395 (purge_bbs): Remove argument. Remove calls to same_succ_flush_bbs,
7396 release_last_vdef and delete_basic_block.
7397 (unlink_virtual_phi): New function.
7398 (update_vuses): Add and use vuse1_phi_args argument. Set var to
7399 SSA_NAME_VAR of vuse1 or vuse2, and use var. Handle case that
7400 def_stmt2 is NULL. Use phi result as phi arg in case vuse1 or vuse2
7401 is NULL_TREE. Replace uses of vuse1 if vuse2 is NULL_TREE. Fix code
7402 to limit replacement of uses. Propagate phi argument for phis with a
7404 (replace_block_by): Update vops if phi_vuse1 or phi_vuse2 is NULL_TREE.
7405 Set vuse1_phi_args if vuse1 is a phi defined in bb1. Add
7406 vuse1_phi_args as argument to call to update_vuses. Call
7407 release_last_vdef, same_succ_flush_bb, delete_basic_block. Update
7408 CDI_DOMINATORS info.
7409 (tail_merge_optimize): Remove argument in call to purge_bbs. Remove
7410 call to free_dominance_info. Only call calculate_dominance_info once.
7412 2011-10-23 Eric Botcazou <ebotcazou@adacore.com>
7414 * fold-const.c (invert_tree_comparison): Always invert EQ_EXPR/NE_EXPR.
7416 PR tree-optimization/44683
7417 * tree-ssa-dom.c (record_edge_info): Record simple equivalences only if
7418 we can be sure that there are no signed zeros involved.
7420 2011-10-23 Jan Hubicka <jh@suse.cz>
7422 * ipa-inline.c (estimate_badness): Scale up and handle overflows.
7424 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
7427 * config/i386/sse.md (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>):
7428 Remove (match_dup 0).
7429 (*avx2_maskload<ssemodesuffix><avxsizesuffix>): New insn pattern.
7430 (*avx_maskload<ssemodesuffix><avxsizesuffix>): Ditto.
7431 (*avx2_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
7432 (*avx_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
7433 (*avx2_maskmov<ssemodesuffix><avxsizesuffix>): Remove insn pattern.
7434 (*avx_maskmov<ssemodesuffix><avxsizesuffix>): Ditto.
7436 2011-10-23 Ira Rosen <ira.rosen@linaro.org>
7438 PR tree-optimization/50819
7439 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Remove
7441 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
7442 vect_analyze_data_ref_dependences.
7443 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Remove
7444 the last argument. Check load-after-store dependence for unknown
7445 dependencies in basic blocks.
7446 (vect_analyze_data_ref_dependences): Update call to
7447 vect_analyze_data_ref_dependences.
7448 * tree-vect-patterns.c (vect_recog_widen_shift_pattern): Fix typo.
7449 * tree-vect-slp.c (vect_bb_vectorizable_with_dependencies): Remove.
7450 (vect_slp_analyze_bb_1): Update call to
7451 vect_analyze_data_ref_dependences. Don't call
7452 vect_bb_vectorizable_with_dependencies.
7454 2011-10-22 David S. Miller <davem@davemloft.net>
7456 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS,
7457 SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
7458 * config/sparc/sparc.c (TARGET_SECONDARY_RELOAD): Redefine.
7459 (sparc_secondary_reload): New function.
7461 * config/sparc/sparc.h (sparc_costs): Remove extern decl.
7462 (struct processor_costs): Move from here..
7463 * config/sparc/sparc.c (struct processor_costs): To here.
7464 (sparc_costs): Mark static.
7466 * config/sparc/sparc.c (short_branch, reg_unused_after): Delete.
7467 * config/sparc/sparc-protos.h (short_branch, reg_unused_after):
7468 Get rid of declarations.
7470 2011-10-21 Paul Brook <paul@codesourcery.com>
7472 * config/c6x/c6x.c (c6x_asm_emit_except_personality,
7473 c6x_asm_init_sections): New functions.
7474 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): Define.
7476 2011-10-21 Jakub Jelinek <jakub@redhat.com>
7479 * config/i386/i386.c (expand_vec_perm_even_odd_1): Handle
7480 V4DImode and V8SImode for !TARGET_AVX2.
7482 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
7485 * sched-deps.c (add_dependence): If not doing predication, promote
7486 REG_DEP_CONTROL to REG_DEP_ANTI.
7488 2011-10-21 Georg-Johann Lay <avr@gjlay.de>
7490 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Pass address of X
7491 instead of X to avr_legitimize_reload_address.
7492 * config/avr/avr-protos.h (avr_legitimize_reload_address): Change
7493 first argument's type from rtx to rtx*.
7494 * config/avr/avr.c (avr_legitimize_reload_address): Ditto.
7495 Pass PX to push_reload instead of &X. Change log messages for
7498 2011-10-21 Roland Stigge <stigge@antcom.de>
7500 PR translation/47064
7501 * params.def: Fix typo "compilatoin" -> "compilation".
7503 2011-10-21 H.J. Lu <hongjiu.lu@intel.com>
7504 Kirill Yukhin <kirill.yukhin@intel.com>
7507 * config/i386/driver-i386.c (host_detect_local_cpu): Do cpuid 7 only
7508 if max_level allows that.
7510 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
7512 * reg-notes.def (DEP_CONTROL): New.
7513 * sched-ebb.c (add_deps_for_risky_insns): Add a REG_DEP_CONTROL when
7514 not doing speculation.
7515 * rtlanal.c (record_hard_reg_sets, find_all_hard_reg_sets,
7516 record_hard_reg_uses_1, record_hard_reg_uses): New functions.
7517 * function.c (record_hard_reg_sets, record_hard_reg_uses,
7518 record_hard_reg_uses_1): Remove; move to rtlanal.c.
7519 * lists.c (copy_INSN_LIST, concat_INSN_LIST): New functions.
7520 * haifa-sched.c: Swap includes of "rtl.h" and "hard-reg-set.h".
7521 (MUST_RECOMPUTE_SPEC_P): New macro.
7522 (real_insn_for_shadow): New function.
7523 (cond_clobbered_p, recompute_todo_spec, check_clobbered_conditions,
7524 toggle_cancelled_flags): New static functions.
7525 (schedule_insn): Relax an assert to only check for empty hard back
7526 dependencies. Skip cancelled dependencies. Call
7527 check_clobbered_conditions.
7528 (copy_insn_list): Remove function, renamed moved to lists.c.
7529 (save_backtrack_point): Use new spelling copy_INSN_LIST.
7530 (unschedule_insns_until): Ensure TODO_SPEC is reset properly.
7531 (restore_last_backtrack_point): Likewise. Call toggle_cancelled_flags.
7532 (estimate_insn_tick): Ignore cancelled dependencies.
7533 (haifa_speculate_insn): Move declaration.
7534 (try_ready): Move code into recompute_todo_spec and call it. Tweak
7535 some asserts. Ensure predicated patterns are restored if necessary.
7536 Dump DEP_CONTROL flag.
7537 (haifa_change_pattern): Merge with sched_change_pattern.
7538 (sched_change_pattern): Remove function.
7539 * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP): Remove. All
7540 uses changed to simply not test NON_FLUSH_JUMP_P.
7541 (ds_to_dk, dk_to_ds, dump_dep, ds_to_dt, dump_ds, check_dep): Handle
7543 (dep_spec_p): If DO_PREDICATION, REG_DEP_CONTROL is speculative.
7544 (reg_pending_control_uses, control_dependency_cache): New static
7546 (sched_get_reverse_condition_uncached): New function.
7547 (sd_find_dep_between): Remove pointless assert. Look in
7548 control_dependency_cache.
7549 (ask_dependency_caches, set_dependency_caches, sd_delete_dep,
7550 extend_dependency_caches, sched_deps_finish): Handle REG_DEP_CONTROL
7551 and control_dependency_cache.
7552 (sd_unresolve_dep): Use dep_spec_p.
7553 (add_dependence): Now a wrapper around add_dependence_1, handling
7554 REG_DEP_CONTROL specially.
7555 (flush_pending_lists): Clear pending_jump_insns.
7556 (sched_analyze_1): Handle pending_jump_insns like a memory flush.
7557 (sched_analyze_2): Unconditionally add to pending memory flushes,
7558 keep previous behaviour but apply it to pending_jump_insns instead.
7559 (sched_analyze_insn): Defer adding jump reg dependencies using
7560 reg_pending_control_uses; add them to the control_uses list. Handle
7561 pending_jump_insns and control_uses when adding dependence lists.
7562 (deps_analyze_insn): Update INSN_COND_DEPS.
7563 (deps_analyze_insn): Add jumps to pending_jump_insns rather than
7564 last_pending_memory_flush.
7565 (init_deps): Initialize pending_jump_insns.
7566 (free_deps): Free control_uses.
7567 (remove_from_deps): Remove from pending_jump_insns.
7568 (init_deps_global): Allocate reg_pending_control_uses).
7569 (finish_deps_global): Free it.
7570 (add_dependence_1): Renamed from add_dependence. Handle
7572 * rtl.h (record_hard_reg_uses, find_all_hard_reg_sets): Declare.
7573 (copy_INSN_LIST, concat_INSN_LIST): Declare.
7574 * sched-int.h (struct deps_reg): Add control_uses.
7575 (struct deps_desc): Add pending_jump_insns.
7576 (struct _haifa_deps_insn_data): Add cond_deps.
7577 (struct _haifa_insn_data): Add must_recompute_spec and predicated_pat.
7578 (INSN_COND_DEPS, PREDICATED_PAT): New macros.
7579 (BITS_PER_DEP_WEAK): Adjust for two extra bits in the word.
7580 (DEP_CONTROL): New macro.
7581 (DEP_TYPES): Include it.
7582 (HARD_DEP): Adjust definition.
7583 (DEP_CANCELLED): New macro.
7584 (enum SCHED_FLAGS): Add DO_PREDICATION.
7585 (sched_get_reverse_condition_uncached, real_insn_for_shadow): Declare.
7586 * sched-rgn.c (concat_INSN_LIST): Remove function.
7587 (deps_join): Handle pending_jump_insns.
7588 (free_pending_lists): Likewise.
7589 * config/c6x/c6x.c (c6x_set_sched_flags): Set DO_PREDICATION for final
7592 2011-10-21 Georg-Johann Lay <avr@gjlay.de>
7595 * config/avr/libgcc.S (__EIND__): New define to 0x3C.
7596 (__tablejump__): Consistently use EIND for indirect jump/call.
7597 (__tablejump_elpm__): Ditto.
7599 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
7601 * config/c6x/c6x.md (attr "op_pattern"): New.
7602 (load_sdata_pic, mov<mode>_insn for QIHIM and SISFVM): Set it.
7603 * config/c6x/c6x-mult.md.in (mulhi3_VARIANT_, mulhisi3_insn_VARIANT_):
7605 * config/c6x/c6x-mult.md: Regenerate.
7606 * config/c6x/c6x.c: Include "regrename.h".
7607 (unit_req_table): New typedef.
7608 (unit_reqs): Use it for the declaration.
7609 (unit_req_factor, get_unit_reqs, merge_unit_reqs, unit_req_imbalance,
7610 get_unit_operand_masks, try_rename_operands, reshuffle_units): New
7612 (count_unit_reqs): New arg reqs. All callers changed. Use
7613 get_unit_reqs, and don't merge here.
7614 (res_mii): New arg reqs. All callers changed. Rewrite to use a loop
7615 using unit_req_factor.
7616 (hwloop_optimize): Call reshuffle_units. Call merge_unit_reqs after
7618 (c6x_reorg): Add reg notes problem, and call df_analyze.
7619 * Makefile.in ($(out_object_file)): Depend on regrename.h.
7621 2011-10-21 Kai Tietz <ktietz@redhat.com>
7623 * fold-const.c (simple_operand_p_2): Handle integral
7624 casts from boolean-operands.
7626 2011-10-21 Jan Hubicka <jh@suse.cz>
7628 * cgraph.c (dump_cgraph_node): Dump alias flag.
7629 * cgraphunit.c (handle_alias_pairs): Handle weakrefs with
7631 (get_alias_symbol): New function.
7632 (output_weakrefs): Output also weakrefs with no destinatoin.
7633 (lto_output_node): Output weakref alias flag when at function boundary.
7635 2011-10-21 Andrew Stubbs <ams@codesourcery.com>
7638 * config/arm/driver-arm.c (vendors): Make static.
7640 2011-10-21 Uros Bizjak <ubizjak@gmail.com>
7642 * config/i386/i386.c (ix86_emit_swdivsf): Force b into register.
7643 (ix86_emit_swsqrtsf): Force a into register.
7645 2011-10-20 Mike Stump <mikestump@comcast.net>
7647 * regcprop.c (copyprop_hardreg_forward_1): Update recog_data
7648 after validate_change wipes it out.
7650 2011-10-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7652 * config/spu/spu.md ("vec_permv16qi"): Reduce selector modulo 32
7653 before using the shufb instruction.
7655 2011-10-20 Kirill Yukhin <kirill.yukhin@intel.com>
7658 * config/i386/i386.md (bmi_bextr_<mode>): Update register/
7659 memory operand order.
7660 (bmi2_bzhi_<mode>3): Ditto.
7661 (bmi2_pdep_<mode>3): Ditto.
7662 (bmi2_pext_<mode>3): Ditto.
7664 2011-10-20 Richard Henderson <rth@redhat.com>
7666 * target.def (vec_perm_const_ok): Rename from builtin_vec_perm_ok.
7667 * optabs.c (can_vec_perm_expr_p): Update to match.
7668 (expand_vec_perm_expr): Likewise.
7669 * config/i386/i386.c (TARGET_VECTORIZE_VEC_PERM_CONST_OK): Rename
7670 from TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK.
7671 * doc/tm.texi.in: Likewise.
7673 2011-10-20 Sergey Ostanevich <sergos.gnu@gmail.com>
7676 * config/i386/i386.c (processor_target_table): Change Atom
7677 align_loops_max_skip to 15.
7679 2011-10-20 Richard Henderson <rth@redhat.com>
7681 * target.def (builtin_vec_perm): Remove.
7682 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
7684 * config/i386/i386.c (ix86_expand_vec_perm_builtin): Remove.
7685 (IX86_BUILTIN_VEC_PERM_*): Remove.
7686 (bdesc_args): Remove vec_perm builtins
7687 (ix86_expand_builtin): Likewise.
7688 (ix86_expand_vec_perm_const_1): Rename from
7689 ix86_expand_vec_perm_builtin_1.
7690 (extract_vec_perm_cst): Merge into...
7691 (ix86_vectorize_vec_perm_const_ok): ... here. Rename from
7692 ix86_vectorize_builtin_vec_perm_ok.
7693 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
7695 * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): Remove.
7696 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
7698 * config/spu/spu.c (spu_builtin_vec_perm): Remove.
7699 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
7701 2011-10-20 Uros Bizjak <ubizjak@gmail.com>
7704 * config/i386/i386.h (RECIP_MASK_DEFAULT): New define.
7705 * config/i386/i386.op (recip_mask): Initialize with RECIP_MASK_DEFAULT.
7706 * doc/invoke.texi (ix86 Options, -mrecip): Document that GCC
7707 implements vectorized single float division and vectorized sqrtf(x)
7708 with reciprocal sequence with additional Newton-Raphson step with
7711 2011-10-20 Dodji Seketeli <dodji@redhat.com>
7713 * ggc-zone.c (ggc_internal_alloc_zone_stat): Rename
7714 ggc_alloced_size_order_for_request into ggc_round_alloc_size like
7715 it was done in ggc-page.c.
7718 * doc/cppopts.texi: Use @smallexample/@end smallexample in
7719 documentation for -fdebug-cpp instead of @quotation/@end quotation
7720 that is not supported by contrib/texi2pod.pl.
7722 2011-10-19 Jan Hubicka <jh@suse.cz>
7724 * ipa-inline.c (inline_small_functions): Always update all calles after
7727 2011-10-19 Jan Hubicka <jh@suse.cz>
7730 * ipa-inline.c (inline_small_functions): Fix checking code to not make
7731 effect on fibheap stability.
7733 2011-10-20 Maxim Kuvyrkov <maxim@codesourcery.com>
7735 * config/m68k/t-linux (M68K_MLIB_CPU): Add ColdFire CPUs.
7737 2011-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7740 * config/arm/arm.c (thumb_unexpanded_epilogue): Handle return
7743 2011-10-20 Richard Guenther <rguenther@suse.de>
7745 * tree-ssa-loop-im.c (stmt_cost): Add WIDEN_*, FMA_EXPR
7746 and rotates to the set of expensive operations.
7748 2011-10-19 David S. Miller <davem@davemloft.net>
7750 * config/sparc/sparc.c (sparc_expand_move): Use can_create_pseudo_p.
7751 (sparc_emit_set_const32): Likewise.
7752 (sparc_emit_set_const64_longway): Likewise.
7753 (sparc_emit_set_const64): Likewise.
7754 (sparc_legitimize_pic_address): Likewise.
7755 (memory_ok_for_ldd): Likewise.
7757 2011-10-20 Dehao Chen <dehao@google.com>
7759 * profile.c (compute_branch_probabilities): Compute and dump the
7760 overlap between the static estimation and the instrumentation profile.
7761 (OVERLAP_BASE): New macro.
7762 (compute_frequency_overlap): New function
7764 2011-10-19 Jakub Jelinek <jakub@redhat.com>
7766 * config/i386/i386.c (expand_vec_perm_vpshufb2_vpermq_even_odd): Use
7767 d->op1 instead of d->op0 for the second vpshufb.
7768 (expand_vec_perm_even_odd_1): For V8SImode fix vpshufd immediates.
7769 (ix86_expand_vec_perm_const): If mask indicates two operands are
7770 needed, but both are the same and expanding them as d.op0 == d.op1
7771 failed, retry with d.op0 != d.op1.
7772 (ix86_expand_vec_perm_builtin): Likewise. Handle sorry printing
7773 also for d.nelt == 32.
7776 * cfgexpand.c (expand_debug_expr): Handle WIDEN_LSHIFT_EXPR, ignore
7779 2011-10-19 Bernd Schmidt <bernds@codesourcery.com>
7781 * regrename.h: New file.
7782 * regrename.c: Include it. Also include "emit-rtl.h".
7783 (struct du_head, struct du_chain, du_head_p DEF_VEC and
7784 DEF_VEC_ALLOC_P): Move to regrename.h.
7785 (do_replace): Remove declaration.
7786 (insn_rr): New variable.
7787 (cur_operand): New static variable.
7788 (regrename_chain_from_id): Renamed from chain_from_id and no longer
7789 static. All callers changed.
7790 (record_operand_use): New static function.
7791 (scan_rtx_reg): Use it.
7792 (find_best_rename_reg): New function, broken out of rename_chains.
7793 (rename_chains): Use it. Don't update chain regno and nregs here, ...
7794 (regrename_do_replace): ... do it here instead. Renamed from
7795 do_replace, and no longer static. All callers changed.
7796 (regrename_analyze): No longer static. New arg bb_mask.
7797 All callers changed. If bb_mask is nonzero, use it to limit the
7798 number of basic blocks we analyze. If we failed to analyze a block,
7799 clear insn operand data.
7800 (record_out_operands): New arg insn_info. Update cur_operand if it is
7802 (build_def_use): If insn_rr is nonnull, pass an insn_info to
7803 record_out_operands, and update cur_operand here as well.
7804 (regrename_init, regrename_finish): New functions.
7805 (regrename_optimize): Use them.
7806 * Makefile.in (regrename.o): Adjust dependencies.
7808 2011-10-19 Tom de Vries <tom@codesourcery.com>
7810 PR tree-optimization/50769
7811 * tree-ssa-tail-merge.c (replace_block_by): Calculate phi_vuse2
7812 unconditionally. Handle case that phi_vuse2 is not an SSA_NAME. Add
7813 dummy argument .MEM to phi when increasing number of arguments of phi by
7814 redirecting edges to the block with phi.
7816 2011-10-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7819 * configure.ac: Save and restore CXXFLAGS around
7820 gcc_AC_CHECK_DECLS uses.
7821 Check for madvise() declaration with g++ if --enable-build-with-cxx.
7822 * configure: Regenerate.
7823 * config.in: Regenerate.
7824 * ggc-page.c (USING_MADVISE): Also check HAVE_DECL_MADVISE.
7826 2011-10-19 Alexandre Oliva <aoliva@redhat.com>
7829 * var-tracking.c (loc_exp_dep, onepart_aux): New structs.
7830 (variable_part): Replace offset with union.
7831 (enum onepart_enum, onepart_enum_t): New.
7832 (variable_def): Drop cur_loc_changed, add onepart.
7833 (value_chain_def, const_value_chain): Remove.
7834 (VAR_PART_OFFSET, VAR_LOC_1PAUX): New macros, with checking.
7835 (VAR_LOC_DEP_LST, VAR_LOC_DEP_LSTP): New macros.
7836 (VAR_LOC_FROM, VAR_LOC_DEPTH, VAR_LOC_DEP_VEC): Likewise.
7837 (value_chain_pool, value_chains): Remove.
7838 (dropped_values): New.
7839 (struct parm_reg): Only if HAVE_window_save.
7840 (vt_stack_adjustments): Don't record register arguments.
7842 (dv_onepart_p): Return a onepart_enum_t.
7843 (onepart_pool): New.
7846 (variable_htab_free): Release onepart aux data. Reset flags.
7847 (value_chain_htab_hash, value_chain_htab_eq): Remove.
7848 (unshare_variable): Use onepart field. Propagate onepart aux
7849 data or offset. Drop cur_loc_changed.
7850 (val_store): Cope with NULL insn. Rephrase dump output. Check
7851 for unsuitable locs. Add FIXME on using cselib locs.
7852 (val_reset): Remove FIXME of unfounded concerns.
7853 (val_resolve): Check for unsuitable locs. Add FIXME on using
7855 (variable_union): Use onepart field, adjust access to offset.
7857 (VALUE_CHANGED, DECL_CHANGED): Update doc.
7858 (set_dv_changed): Clear NO_LOC_P when changed.
7859 (find_loc_in_1pdv): Use onepart field.
7860 (intersect_loc_chains): Likewise.
7861 (unsuitable_loc): New.
7862 (loc_cmp): Keep ENTRY_VALUEs at the end of the loc list.
7863 (add_value_chain, add_value_chains): Remove.
7864 (add_cselib_value_chains, remove_value_chain): Likewise.
7865 (remove_value_chains, remove_cselib_value_chains): Likewise.
7866 (canonicalize_loc_order_check): Use onepart. Drop cur_loc_changed.
7867 (canonicalize_values_star, canonicalize_vars_star): Use onepart.
7868 (variable_merge_over_cur): Likewise. Adjust access to offset.
7869 Drop cur_loc_changed.
7870 (variable_merge_over_src): Use onepart field.
7871 (remove_duplicate_values): Likewise.
7872 (variable_post_merge_new_vals): Likewise.
7873 (find_mem_expr_in_1pdv): Likewise.
7874 (dataflow_set_preserve_mem_locs): Likewise. Drop cur_loc_changed
7876 (dataflow_set_remove_mem_locs): Likewise. Use VAR_LOC_FROM.
7877 (variable_different_p): Use onepart field. Move onepart test out
7879 (argument_reg_set): Drop.
7880 (add_uses, add_stores): Preserve but do not record in dynamic
7881 tables equivalences for ENTRY_VALUEs and CFA_based addresses.
7882 Avoid unsuitable address expressions.
7883 (EXPR_DEPTH): Unlimit.
7884 (EXPR_USE_DEPTH): Repurpose PARAM_MAX_VARTRACK_EXPR_DEPTH.
7885 (prepare_call_arguments): Use DECL_RTL_IF_SET.
7886 (dump_var): Adjust access to offset.
7887 (variable_from_dropped, recover_dropped_1paux): New.
7888 (variable_was_changed): Drop cur_loc_changed. Use onepart.
7889 Preserve onepart aux in empty_var. Recover empty_var and onepart
7890 aux from dropped_values.
7891 (find_variable_location_part): Special-case onepart. Adjust
7893 (set_slot_part): Use onepart. Drop cur_loc_changed. Adjust
7894 access to offset. Initialize onepaux. Drop value chains.
7895 (delete_slot_part): Drop value chains. Use VAR_LOC_FROM.
7896 (VEC (variable, heap), VEC (rtx, stack)): Define.
7897 (expand_loc_callback_data): Drop dummy, cur_loc_changed,
7898 ignore_cur_loc. Add expanding, pending, depth.
7899 (loc_exp_dep_alloc, loc_exp_dep_clear): New.
7900 (loc_exp_dep_insert, loc_exp_dep_set): New.
7901 (notify_dependents_of_resolved_value): New.
7902 (update_depth, vt_expand_var_loc_chain): New.
7903 (vt_expand_loc_callback): Revamped.
7904 (resolve_expansions_pending_recursion): New.
7905 (INIT_ELCD, FINI_ELCD): New.
7906 (vt_expand_loc): Use the new macros above. Drop ignore_cur_loc
7907 parameter, adjust all callers.
7908 (vt_expand_loc_dummy): Drop.
7909 (vt_expand_1pvar): New.
7910 (emit_note_insn_var_location): Operate on non-debug decls only.
7911 Revamp multi-part cur_loc recomputation and one-part expansion.
7912 Drop cur_loc_changed. Adjust access to offset.
7913 (VEC (variable, heap)): Drop.
7914 (changed_variables_stack, changed_values_stack): Drop.
7915 (check_changed_vars_0, check_changed_vars_1): Remove.
7916 (check_changed_vars_2, check_changed_vars_3): Remove.
7917 (values_to_stack, remove_value_from_changed_variables): New.
7918 (notify_dependents_of_changed_value, process_changed_values): New.
7919 (emit_notes_for_changes): Revamp onepart updates.
7920 (emit_notes_for_differences_1): Use onepart. Drop cur_loc_changed
7921 and value chains. Propagate onepaux. Recover empty_var and onepaux
7922 from dropped_values.
7923 (emit_notes_for_differences_2): Drop value chains.
7924 (emit_notes_in_bb): Adjust.
7925 (vt_emit_notes): Drop value chains, changed_variables_stack.
7926 Initialize and release dropped_values.
7927 (create_entry_value): Revamp.
7928 (vt_add_function_parameter): Use new interface.
7929 (note_register_arguments): Remove.
7930 (vt_initialize): Drop value chains and register arguments.
7931 (vt_finalize): Drop value chains. Release windowed_parm_regs only
7932 if HAVE_window_save.
7933 * rtl.h: Document various pass-local uses of RTL flags.
7934 * tree.h (DECL_RTL_KNOWN_SET): New.
7935 * doc/invoke.texi (param max-vartrack-expr-depth): Update
7936 description and default.
7938 2011-10-19 Georg-Johann Lay <avr@gjlay.de>
7941 * config/avr/avr.md (cc): New alternative out_plus_noclobber.
7942 (adjust_len): Ditto.
7943 (addhi3): Don't pipe through short; use gen_int_mode instead.
7944 Prior to reload, expand to gen_addhi3_clobber.
7945 (*addhi3): Use avr_out_plus_noclobber if applicable, use
7946 out_plus_noclobber in cc and adjust_len attribute.
7947 (addhi3_clobber): 2 new RTL peepholes.
7948 (addhi3_clobber): New insn.
7949 * config/avr/avr-protos.h: (avr_out_plus_noclobber): New prototype.
7950 * config/avr/avr.c (avr_out_plus_noclobber): New function.
7951 (notice_update_cc): Handle CC_OUT_PLUS_NOCLOBBER.
7952 (avr_out_plus_1): Tweak if only MSB is +/-1 and other bytes are 0.
7953 Set cc0 to set_zn for adiw on 16-bit values.
7954 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS_NOCLOBBER.
7955 (expand_epilogue): No need to add 0 to frame_pointer_rtx.
7957 2011-10-19 Richard Guenther <rguenther@suse.de>
7960 * tree-ssa-forwprop.c (forward_propagate_into_cond): Verify
7961 the condition is properly gimple before using it.
7962 * tree-eh (stmt_could_throw_1_p): Properly extract the
7963 operation type from comparisons.
7965 2011-10-19 Roland Stigge <stigge@antcom.de>
7967 PR translation/48638
7968 * plugin.c (add_new_plugin): Fix typo in fatal_error message.
7970 2011-10-19 Roland Stigge <stigge@antcom.de>
7972 PR translation/49517
7973 * config/rx/rx.c (rx_print_operand): Fix typo in warning message.
7975 2011-10-19 Richard Guenther <rguenther@suse.de>
7978 * gimple-fold.c (gimplify_and_update_call_from_tree): Rewrite.
7980 2011-10-19 Andrey Belevantsev <abel@ispras.ru>
7982 PR rtl-optimization/50340
7983 * sel-sched-ir.c (update_target_availability): LHS register
7984 availability is not known if the unavailable LHS of the other
7985 expression is a different register.
7987 2011-10-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7990 * config/spu/spu.c (spu_emit_vector_compare): Support unordered
7991 floating-point comparisons.
7993 2011-10-19 Jan Hubicka <jh@suse.cz>
7995 * cgraphunit.c (handle_alias_pairs): Also handle wekref with
7996 destination declared.
7997 (output_weakrefs): New function.
7998 * varpool.c (varpool_create_variable_alias): Handle external aliases.
8000 2011-10-19 Jakub Jelinek <jakub@redhat.com>
8002 * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
8003 second argument instead of mode.
8005 2011-10-18 Jakub Jelinek <jakub@redhat.com>
8007 * config/i386/i386.c (ix86_expand_vec_perm): In merge_two use
8008 mode SUBREG of operands[0] as target.
8009 (valid_perm_using_mode_p): Don't ignore higher bits of d->perm.
8010 (expand_vec_pshufb): For V8SImode vmode emit avx2_permvarv8si.
8011 (expand_vec_perm_1): Handle identity and some broadcast
8013 (expand_vec_perm_interleave2): Handle also 32-byte modes, using
8014 vperm2[fi]128 or vpunpck[lh]* followed by single insn permutation.
8015 For d->testing_p return true earlier to avoid creating more GC
8017 (expand_vec_perm_vpermq_perm_1): New function.
8018 (expand_vec_perm_vpshufb2_vpermq): For d->testing_p return true
8019 earlier to avoid creating more GC garbage. Fix handling of
8020 V16HImode. Avoid some SUBREGs in SET_DEST.
8021 (expand_vec_perm_broadcast_1): Return false for 32-byte integer
8023 (expand_vec_perm_vpshufb4_vpermq2): New function.
8024 (ix86_expand_vec_perm_builtin_1): Call expand_vec_perm_vpermq_perm_1
8025 and expand_vec_perm_vpshufb4_vpermq2.
8027 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
8029 * config/arm/driver-arm.c (host_detect_local_cpu): Close the file
8032 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
8034 PR tree-optimization/50717
8035 * tree-ssa-math-opts.c (is_widening_mult_p): Remove the 'type'
8036 parameter. Calculate 'type' from stmt.
8037 (convert_mult_to_widen): Update call the is_widening_mult_p.
8038 (convert_plusminus_to_widen): Likewise.
8040 2011-10-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8042 * config/spu/spu.c (struct machine_function): New data structure.
8043 (spu_init_machine_status): New function.
8044 (spu_option_override): Install it.
8045 (get_pic_reg): Set and use cfun->machine->pic_reg.
8046 (spu_split_immediate): Do not set crtl->uses_pic_offset_table.
8047 (need_to_save_reg): Use cfun->machine->pic_reg instead of
8048 checking crtl->uses_pic_offset_table.
8049 (spu_expand_prologue): Likewise.
8051 2011-10-18 Jakub Jelinek <jakub@redhat.com>
8053 PR tree-optimization/50735
8054 * function.c (gimplify_parameters): Use create_tmp_var instead of
8055 create_tmp_reg. If parm is not TREE_ADDRESSABLE and type is complex
8056 or vector type, set DECL_GIMPLE_REG_P.
8058 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
8060 * config.host (arm*-*-linux*): Add driver-arm.o and x-arm.
8061 * config/arm/arm.opt: Add 'native' processor_type and
8062 arm_arch enum values.
8063 * config/arm/arm.h (host_detect_local_cpu): New prototype.
8064 (EXTRA_SPEC_FUNCTIONS): New define.
8065 (MCPU_MTUNE_NATIVE_SPECS): New define.
8066 (DRIVER_SELF_SPECS): New define.
8067 * config/arm/driver-arm.c: New file.
8068 * config/arm/x-arm: New file.
8069 * doc/invoke.texi (ARM Options): Document -mcpu=native,
8070 -mtune=native and -march=native.
8072 2011-10-18 Alexander Monakov <amonakov@ispras.ru>
8074 PR rtl-optimization/50205
8075 * sel-sched.c (count_occurrences_1): Simplify on the assumption that
8076 p->x is a register. Forbid substitution when the same register is
8077 found in a different mode.
8078 (count_occurrences_equiv): Assert that 'what' is a register.
8080 2011-10-18 Richard Guenther <rguenther@suse.de>
8082 PR tree-optimization/50767
8083 * tree-ssa-pre.c (create_expression_by_pieces): Update the
8086 2011-10-18 Julian Brown <julian@codesourcery.com>
8088 * config/arm/arm.c (arm_block_move_unaligned_straight)
8089 (arm_adjust_block_mem, arm_block_move_unaligned_loop)
8090 (arm_movmemqi_unaligned): New.
8091 (arm_gen_movmemqi): Support unaligned block copies.
8093 2011-10-18 Ira Rosen <ira.rosen@linaro.org>
8095 * doc/md.texi (vec_widen_ushiftl_hi, vec_widen_ushiftl_lo,
8096 vec_widen_sshiftl_hi, vec_widen_sshiftl_lo): Document.
8097 * tree-pretty-print.c (dump_generic_node): Handle WIDEN_LSHIFT_EXPR,
8098 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
8099 (op_code_prio): Likewise.
8100 (op_symbol_code): Handle WIDEN_LSHIFT_EXPR.
8101 * optabs.c (optab_for_tree_code): Handle
8102 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
8103 (init-optabs): Initialize optab codes for vec_widen_u/sshiftl_hi/lo.
8104 * optabs.h (enum optab_index): Add OTI_vec_widen_u/sshiftl_hi/lo.
8105 * genopinit.c (optabs): Initialize the new optabs.
8106 * expr.c (expand_expr_real_2): Handle
8107 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
8108 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
8109 * tree-vectorizer.h (NUM_PATTERNS): Increase to 8.
8110 * tree.def (WIDEN_LSHIFT_EXPR, VEC_WIDEN_LSHIFT_HI_EXPR,
8111 VEC_WIDEN_LSHIFT_LO_EXPR): New.
8112 * cfgexpand.c (expand_debug_expr): Handle new tree codes.
8113 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
8114 vect_recog_widen_shift_pattern.
8115 (vect_handle_widen_mult_by_const): Rename...
8116 (vect_handle_widen_op_by_const): ...to this. Handle shifts.
8117 Add a new argument, update documentation.
8118 (vect_recog_widen_mult_pattern): Assume that only second
8119 operand can be constant. Update call to
8120 vect_handle_widen_op_by_const.
8121 (vect_recog_over_widening_pattern): Fix typo.
8122 (vect_recog_widen_shift_pattern): New.
8123 * tree-vect-stmts.c (vectorizable_type_promotion): Handle
8125 (supportable_widening_operation): Likewise.
8126 * tree-inline.c (estimate_operator_cost): Handle new tree codes.
8127 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
8128 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
8129 * config/arm/neon.md (neon_vec_<US>shiftl_<mode>): New.
8130 (vec_widen_<US>shiftl_lo_<mode>, neon_vec_<US>shiftl_hi_<mode>,
8131 vec_widen_<US>shiftl_hi_<mode>, neon_vec_<US>shift_left_<mode>):
8133 * config/arm/predicates.md (const_neon_scalar_shift_amount_operand):
8135 * config/arm/iterators.md (V_innermode): New.
8136 * tree-vect-slp.c (vect_build_slp_tree): Require same shift operand
8139 2011-10-18 Richard Guenther <rguenther@suse.de>
8141 * tree-ssa-alias.h (struct pt_solution): Remove
8142 vars_contains_restrict member.
8143 (pt_solutions_same_restrict_base): Remove.
8144 (pt_solution_set): Adjust.
8145 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Remove
8146 vars_contains_restrict handling.
8147 (dump_points_to_solution): Likewise.
8148 (ptr_derefs_may_alias_p): Do not call pt_solutions_same_restrict_base.
8149 * tree-ssa-structalias.c (struct variable_info): Remove is_restrict_var
8151 (new_var_info): Do not initialize it.
8152 (ipa_escaped_pt): Adjust.
8153 (make_constraint_from_restrict): Make the tag global.
8154 (make_constraint_from_global_restrict): New function.
8155 (make_constraint_from_heapvar): Remove.
8156 (create_variable_info_for): Do not make restrict vars point
8158 (intra_create_variable_infos): Likewise.
8159 (find_what_var_points_to): Remove vars_contains_restrict handling.
8160 (pt_solution_set): Adjust.
8161 (pt_solution_ior_into): Likewise.
8162 (pt_solutions_same_restrict_base): Remove.
8163 (compute_points_to_sets): Do not test is_restrict_var.
8164 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
8165 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
8167 2011-10-18 Tom de Vries <tom@codesourcery.com>
8169 PR tree-optimization/50672
8170 * tree-ssa-dce.c (mark_virtual_operand_for_renaming): New function,
8172 (mark_virtual_phi_result_for_renaming): Use
8173 mark_virtual_operand_for_renaming.
8174 * tree-flow.h (mark_virtual_operand_for_renaming): Declare.
8175 * tree-ssa-tail-merge.c (release_last_vdef): New function.
8176 (purge_bbs): Add update_vops parameter. Call release_last_vdef for each
8177 deleted basic block.
8178 (tail_merge_optimize): Add argument to call to purge_bbs.
8180 2011-10-18 Richard Guenther <rguenther@suse.de>
8183 * expr.c (get_object_or_type_alignment): New function.
8184 (expand_assignment): Use it.
8185 (expand_expr_real_1): Likewise.
8187 2011-10-18 Dodji Seketeli <dodji@redhat.com>
8190 * input.c (dump_line_table_statistics): Use long, not size_t.
8192 2011-10-17 Eric Botcazou <ebotcazou@adacore.com>
8194 * config/sparc/sparc.md (in_call_delay): Fix formatting issues.
8196 2011-10-17 Simon Baldwin <simonb@google.com>
8197 Ian Lance Taylor <iant@google.com>
8199 * configure.ac: Add --with-native-system-header-dir. Set and
8200 substitute NATIVE_SYSTEM_HEADER_DIR. Use native_system_header
8201 when setting target_header_dir.
8202 * config.gcc: Always set native_system_header_dir.
8203 (*-*-gnu*): Set native_system_header_dir. Don't use t-gnu.
8204 (i[34567]86-pc-msdosdjgpp*): Set native_system_header_dir. Don't
8206 (i[34567]86-*-mingw* | x86_64-*-mingw*): Set
8207 native_system_header_dir.
8208 (spu-*-elf*): Set native_system_header_dir.
8209 * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): Set to
8210 @NATIVE_SYSTEM_HEADER_DIR@.
8211 (PREPROCESSOR_DEFINES): Define NATIVE_SYSTEM_HEADER_DIR.
8212 * cppdefault.c (STANDARD_INCLUDE_DIR): Don't define.
8213 (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
8214 STANDARD_INCLUDE_COMPONENT.
8215 (cpp_include_defaults): Don't use SYSTEM_INCLUDE_DIR. Rename
8216 STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
8217 * system.h: Poison SYSTEM_INCLUDE_DIR, STANDARD_INCLUDE_DIR, and
8218 STANDARD_INCLUDE_COMPONENT.
8219 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Remove.
8220 * config/i386/t-mingw-w32: Likewise.
8221 * config/i386/t-mingw-w64: Likewise.
8222 * config/spu/t-spu-elf: Likewise.
8223 * config/i386/t-djgpp: Remove.
8224 * config/t-gnu: Remove.
8225 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Don't define.
8226 (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
8227 STANDARD_INCLUDE_COMPONENT.
8228 * config/i386/djgpp.h (STANDARD_INCLUDE_DIR): Don't define.
8229 * config/spu/spu-elf.h: Likewise.
8230 * config/vms/xm-vms.h: Likewise.
8231 * config/gnu.h: Likewise.
8232 * config/openbsd.h (INCLUDE_DEFAULTS): Change STANDARD_INCLUDE_DIR
8233 and STANDARD_INCLUDE_COMPONENT to NATIVE_SYSTEM_HEADER_DIR and
8234 NATIVE_SYSTME_HEADER_COMPONENT.
8235 * doc/install.texi (Configuration): Document
8236 --with-native-system-header-dir. Mention it in the documentation
8237 for --with-sysroot and --with-build-sysroot.
8238 * doc/tm.texi.in (Driver): Don't document SYSTEM_INCLUDE_DIR or
8239 STANDARD_INCLUDE_DIR. Rename STANDARD_INCLUDE_COMPONENT to
8240 NATIVE_SYSTEM_HEADER_COMPONENT. Rename uses of
8241 STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
8242 * doc/fragments.texi (Target Fragment): Don't document
8243 NATIVE_SYSTEM_HEADER_DIR.
8244 * configure, doc/tm.texi: Rebuild.
8246 2011-10-17 Richard Henderson <rth@redhat.com>
8248 * config/sparc/sparc.md: Use register_or_zero_operand where rJ
8251 * config/sparc/sparc.md (vec_perm_constv8qi, vec_perm<mode>): New
8253 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): New function.
8254 * config/sparc/sparc-protos.h (sparc_expand_vec_perm_bmask): Declare.
8256 2011-10-17 David S. Miller <davem@davemloft.net>
8258 * config/sparc/sparc-modes.def: Add single entry vector modes for
8260 * config/sparc/sparc.md (V32, V32I, V64, V64I, V64N8): Delete
8262 (mov<V32:mode>): Revert back to plain SFmode pattern.
8263 (*movsf_insn): Likewise.
8264 (mov<V64:mode>): Revert back to plain DFmode pattern.
8265 (*movdf_insn_sp32): Likewise.
8266 (*movdf_insn_sp32_v9): Likewise.
8267 (*movdf_insn_sp64): Likewise.
8268 (V64 mode splitters) Likewise.
8269 (addsi3): Remove VIS alternatives.
8271 (and<V64I:mode>3): Revert to DImode only pattern.
8272 (and<V64I:mode>3_sp32): Likewise.
8273 (*and<V64I:mode>3_sp64): Likewise.
8274 (and<V32I:mode>3): Likewise.
8275 (*and_not_<V64I:mode>_sp32): Likewise.
8276 (*and_not_<V64I:mode>_sp64): Likewise.
8277 (*and_not_<V32I:mode>): Likewise.
8278 (ior<V64I:mode>3): Likewise.
8279 (*ior<V64I:mode>3_sp32): Likewise.
8280 (*ior<V64I:mode>3_sp64): Likewise.
8281 (ior<V32I:mode>3): Likewise.
8282 (*or_not_<V64I:mode>_sp32): Likewise.
8283 (*or_not_<V64I:mode>_sp64): Likewise.
8284 (*or_not_<V32I:mode>): Likewise.
8285 (xor<V64I:mode>3): Likewise.
8286 (*xor<V64I:mode>3_sp32): Likewise.
8287 (*xor<V64I:mode>3_sp64): Likewise.
8288 (xor<V32I:mode>3): Likewise.
8289 (V64I mode splitters): Likewise.
8290 (*xor_not_<V64I:mode>_sp32): Likewise.
8291 (*xor_not_<V64I:mode>_sp64): Likewise.
8292 (*xor_not_<V32I:mode>): Likewise.
8293 (one_cmpl<V64I:mode>2): Likewise.
8294 (*one_cmpl<V64I:mode>2_sp32): Likewise.
8295 (*one_cmpl<V64I:mode>2_sp64): Likewise.
8296 (one_cmpl<V32I:mode>2): Likewise.
8297 (VM32, VM64, VMALL): New mode iterators.
8298 (vbits, vconstr, vfptype): New mode attributes.
8299 (mov<VMALL:mode>): New expander.
8300 (*mov<VM32:mode>_insn): New insn.
8301 (*mov<VM64:mode>_insn_sp64): New insn.
8302 (*mov<VM64:mode>_insn_sp32): New insn, and associated splitter
8303 specifically for the register to memory case.
8304 (vec_init<mode>): New expander.
8305 (VADDSUB): New mode iterator.
8306 (<plusminus_insn>v2si3, <plusminus_insn>v2hi3): Remove and replace
8308 (<plusminus_insn><mode>3): New consolidated pattern.
8309 (VL): New mode iterator for logical operations.
8310 (vlsuf): New more attribute.
8311 (vlop): New code iterator.
8312 (vlinsn, vlninsn): New code attributes.
8313 (<code><mode>3): New insn to non-negated vector logical ops.
8314 (*not_<code><mode>3): Likewise for negated variants.
8315 (*nand<mode>_vis): New insn.
8316 (vlnotop): New code iterator.
8317 (*<code>_not1<mode>_vis, *<code>_not2<mode>_vis): New insns.
8318 (one_cmpl<mode>2): New insn.
8319 (faligndata<V64I:mode>_vis): Rewrite to use VM64 iterator.
8320 (bshuffle<VM64:mode>_vis): Likewise.
8321 (v<vis3_shift_patname><mode>3): Use GCM mode iterator.
8322 (fp<plusminus_insn>64_vis): Use V1DI mode.
8323 (VASS mode iterator): Use V1SI not SI mode.
8324 * config/sparc/sparc.c (sparc_vis_init_builtins): Account for
8325 single-entry vector mode changes.
8326 (sparc_expand_builtin): Likewise.
8327 (sparc_expand_vector_init): New function.
8328 * config/sparc/sparc-protos.h (sparc_expand_vector_init): Declare.
8330 2011-10-17 Kai Tietz <ktietz@redhat.com>
8332 * fold-const.c (simple_operand_p_2): New function.
8333 (fold_truthop): Rename to
8334 (fold_truth_andor_1): function name.
8335 Additionally remove branching creation for logical and/or.
8336 (fold_truth_andor): Handle branching creation for logical and/or here.
8338 2011-10-17 Andi Kleen <ak@linux.intel.com>
8340 * ggc-page.c (USING_MADVISE): Adjust ifdef to check for USING_MMAP.
8342 2011-10-17 Georg-Johann Lay <avr@gjlay.de>
8344 * config/avr/avr.h (ASSEMBLER_DIALECT): Remove.
8345 * config/avr/avr.md (mcu_have_movw, mcu_mega): Remove attributes.
8346 (adjust_len): Add alternative "call".
8347 (isa, enabled): New insn attributes.
8348 (length): Use match_test with AVR_HAVE_JMP_CALL instead of
8350 (*sbrx_branch<mode>): Ditto.
8351 (*sbrx_and_branch<mode>): Ditto.
8352 (*sbix_branch): Ditto.
8353 (*sbix_branch_bit7): Ditto.
8354 (*sbix_branch_tmp): Ditto.
8355 (*sbix_branch_tmp_bit7): Ditto.
8357 (negsi2): Use attribute "isa" instead of assembler dialect.
8358 (extendhisi2): Ditto.
8359 (call_insn, call_value_insn): Set adjust_len attribute.
8360 (indirect_jump): Indent to coding rules.
8361 (call_prologue_saves): Use isa attribute instead of mcu_mega.
8362 (epilogue_restores): Ditto. Fix setting of SP as described in the
8364 (*indirect_jump): Fusion of *jcindirect_jump, *njcindirect_jump
8365 and *indirect_jump_avr6.
8366 (*tablejump): Fusion of *tablejump_rjmp and *tablejump_lib.
8367 (*jcindirect_jump, *njcindirect_jump, *indirect_jump_avr6): Remove.
8368 (*tablejump_rjmp, *tablejump_lib): Remove.
8369 * config/avr/avr.c (adjust_insn_length): Handle ADJUST_LEN_CALL.
8371 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
8374 * doc/invoke.texi ([Wnonnull]): Update.
8376 2011-10-17 Richard Henderson <rth@redhat.com>
8379 * optabs.c (expand_vec_perm_expr): Fix indexing error.
8381 2011-10-17 Sergio Durigan Junior <sergiodj@redhat.com>
8383 * configure.ac: Display `yes' if the SystemTap header has been found.
8384 * configure: Regenerate.
8386 2011-10-08 Andi Kleen <ak@linux.intel.com>
8389 * config.in, configure: Regenerate.
8390 * configure.ac (madvise): Add to AC_CHECK_FUNCS.
8391 * ggc-page.c (USING_MADVISE): Add.
8392 (page_entry): Add discarded field.
8393 (alloc_page): Check for discarded pages.
8394 (release_pages): Add USING_MADVISE branch.
8396 2011-10-17 Richard Guenther <rguenther@suse.de>
8398 PR tree-optimization/50729
8399 * tree-vrp.c (extract_range_from_unary_expr_1): Remove redundant test.
8400 (simplify_conversion_using_ranges): Properly test the
8401 intermediate result.
8403 2011-10-15 Tom Tromey <tromey@redhat.com>
8404 Dodji Seketeli <dodji@redhat.com>
8406 * ggc.h (ggc_round_alloc_size): Declare new public entry point.
8407 * ggc-none.c (ggc_round_alloc_size): New public stub function.
8408 * ggc-page.c (ggc_alloced_size_order_for_request): New static
8409 function. Factorized from ggc_internal_alloc_stat.
8410 (ggc_round_alloc_size): New public function. Uses
8411 ggc_alloced_size_order_for_request.
8412 (ggc_internal_alloc_stat): Use ggc_alloced_size_order_for_request.
8413 * ggc-zone.c (ggc_round_alloc_size): New public function extracted
8414 from ggc_internal_alloc_zone_stat.
8415 (ggc_internal_alloc_zone_stat): Use ggc_round_alloc_size.
8416 * toplev.c (general_init): Initialize
8417 line_table->alloced_size_for_request.
8419 2011-10-15 Tom Tromey <tromey@redhat.com>
8420 Dodji Seketeli <dodji@redhat.com>
8422 * input.c (ONE_K, ONE_M, SCALE, STAT_LABEL, FORMAT_AMOUNT): New macros.
8423 (num_expanded_macros_counter, num_macro_tokens_counter): Declare
8425 (dump_line_table_statistics): Define new function.
8426 * input.h (dump_line_table_statistics): Declare new function.
8427 * toplev.c (dump_memory_report): Call dump_line_table_statistics.
8429 2011-10-15 Tom Tromey <tromey@redhat.com>
8430 Dodji Seketeli <dodji@redhat.com>
8432 * doc/cppopts.texi: Document -fdebug-cpp.
8433 * doc/invoke.texi: Add -fdebug-cpp to the list of preprocessor options.
8435 2011-10-15 Tom Tromey <tromey@redhat.com>
8436 Dodji Seketeli <dodji@redhat.com>
8438 * gcc/diagnostic.h (diagnostic_report_current_module): Add a
8440 * diagnostic.c (diagnostic_report_current_module): Add a location
8441 parameter to the function definition. Use it instead of
8442 input_location. Resolve the virtual location rather than just
8443 looking up its map and risking to touch a resulting macro map.
8444 (default_diagnostic_starter): Pass the relevant diagnostic
8445 location to diagnostic_report_current_module.
8446 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
8447 (virt_loc_aware_diagnostic_finalizer): Likewise.
8448 (diagnostic_report_current_function): Pass the
8449 relevant location to diagnostic_report_current_module.
8450 * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
8452 * toplev.c (general_init): By default, use the new
8453 virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
8454 * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
8456 2011-10-15 Tom Tromey <tromey@redhat.com>
8457 Dodji Seketeli <dodji@redhat.com>
8459 * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
8460 * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
8461 preprocessor related options.
8463 2011-10-15 Tom Tromey <tromey@redhat>
8464 Dodji Seketeli <dodji@redhat.com>
8466 * input.h (struct expanded_location): Move to libcpp/line-map.h.
8467 (LOCATION_COLUMN): New accessor
8468 (in_system_header_at): Use linemap_location_in_system_header_p.
8469 * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
8470 touching the internals of struct line_map. Use the public API instead.
8471 (diagnostic_report_diagnostic): Don't use relational operator '<'
8472 on virtual locations. Use linemap_location_before_p instead.
8473 * input.c (expand_location): Adjust to expand to the tokens'
8474 spelling location when macro location tracking is on.
8477 2011-10-08 Andi Kleen <ak@linux.intel.com>
8479 * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
8481 2011-10-13 Andi Kleen <ak@linux.intel.com>
8483 * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
8485 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
8487 PR tree-optimization/50727
8488 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
8489 DEF_STMT to the list of statements to be replaced by the
8492 2011-10-16 Eric Botcazou <ebotcazou@adacore.com>
8494 PR rtl-optimization/50615
8495 * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
8497 2011-10-16 Jakub Jelinek <jakub@redhat.com>
8499 PR tree-optimization/50596
8500 * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
8501 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
8502 vect_recog_bool_pattern.
8503 (check_bool_pattern, adjust_bool_pattern_cast,
8504 adjust_bool_pattern, vect_recog_bool_pattern): New functions.
8506 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
8508 * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
8509 treat the first load of the node as the first element in its
8511 * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
8512 necessary and possible.
8513 (vect_build_slp_tree): Add new argument. Allow load groups of any size
8514 in basic blocks. Keep all the loads for further permutation check.
8515 Use the new argument to determine if there is a permutation. Update
8516 the recursive calls.
8517 (vect_supported_load_permutation_p): Allow subchains of interleaving
8518 chains in basic block vectorization.
8519 (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
8520 Check load permutation based on the new parameter.
8521 (vect_schedule_slp_instance): Don't start from the first element in
8522 interleaving chain unless the loads are permuted.
8524 2011-10-15 Jan Hubicka <jh@suse.cz>
8528 * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
8529 after function body.
8531 2011-10-15 Richard Henderson <rth@redhat.com>
8533 * tree-vect-slp.c: Include langhooks.h.
8534 (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
8535 (vect_transform_slp_perm_load): Use can_vec_perm_expr_p. Simplify
8536 mask creation for VEC_PERM_EXPR.
8537 * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
8539 (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
8540 * Makefile.in (tree-vect-slp.o): Update dependency.
8541 * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
8543 2011-10-15 Alan Modra <amodra@gmail.com>
8546 * ifcvt.c (dead_or_predicable): Revert accidental commit with
8547 HAVE_simple_return test.
8549 2011-10-15 Alan Modra <amodra@gmail.com>
8551 * ifcvt.c (dead_or_predicable): Disable if-conversion when
8552 doing so is likely to kill a shrink-wrapping opportunity.
8554 PR rtl-optimization/49941
8555 * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
8557 * rtl.h (set_return_jump_label): Declare.
8558 * function.c (set_return_jump_label): New function, extracted..
8559 (thread_prologue_and_epilogue_insns): ..from here. Use it in
8560 another instance to set return jump_label.
8561 * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
8562 * reorg.c (find_end_label): Likewise.
8564 2011-10-14 David S. Miller <davem@davemloft.net>
8566 * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
8567 with a more complete cpp test.
8568 * config/sparc/linux64.h: Likewise.
8569 * config/sparc/linux.h: Likewise.
8570 * config/sparc/sparc.opt (sparc_debug): New target variable.
8571 (mdebug): New target option.
8572 * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
8573 TARGET_DEBUG_OPTIONS): New defines.
8574 * config/sparc/sparc.c (debug_target_flag_bits,
8575 debug_target_flags): New functions.
8576 (sparc_option_override): Add name strings back to cpu_table[].
8577 Parse -mdebug string. When TARGET_DEBUG_OPTIONS is true, print
8578 out the target flags before and after override processing as well
8579 as the selected cpu. If MASK_V8PLUS, make sure that the selected
8582 2011-10-15 Oleg Endo <oleg.endo@t-online.de>
8585 * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
8586 * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
8587 * config/sh/sh.md (tstsi_t): Name existing insn. Make inner
8588 and instruction commutative.
8589 (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
8590 tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
8591 tstsi_t_zero_extract_subreg_xor_little,
8592 tstsi_t_zero_extract_subreg_xor_big): New insns.
8593 (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
8595 (*andsi_compact): Reorder alternatives so that K08 is considered first.
8597 2011-10-14 Eric Botcazou <ebotcazou@adacore.com>
8600 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
8601 processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
8603 2011-10-14 Gerald Pfeifer <gerald@pfeifer.com>
8605 * invoke.texi (AVR Options): Avoid \leq{}.
8607 2011-10-14 Kai Tietz <ktietz@redhat.com>
8609 * gimplify.c (gimplify_expr): Take care that for bitwise-binary
8610 transformation the operands have compatible types.
8612 2011-10-14 Jakub Jelinek <jakub@redhat.com>
8614 * config/i386/sse.md (vec_widen_smult_hi_v8hi,
8615 vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
8616 vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
8617 mode iterator and any_extend code iterator.
8618 (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
8619 (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
8620 also for TARGET_SSE4_1 using pmuldq insn.
8621 (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
8622 (sse2_sse4_1): New code attr.
8623 (udot_prodv4si): Macroize using any_extend code iterator.
8624 (<s>dot_prodv8si): New expander.
8626 2011-10-14 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
8628 * config/i386/i386.c (atom_cost): Changed cost for loading
8629 QImode using movzbl.
8631 2011-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8633 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
8634 change on October 11th, 2011.
8636 2011-10-14 Jakub Jelinek <jakub@redhat.com>
8638 * config/i386/sse.md (vec_interleave_high<mode>,
8639 vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
8640 * config/i386/i386.c (expand_vec_perm_interleave3): New function.
8641 (ix86_expand_vec_perm_builtin_1): Call it.
8643 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
8645 Fix thinko from r179765
8646 * config/avr/avr.c (avr_option_override): Don't override
8647 flag_omit_frame_pointer if not actually needed.
8649 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
8652 * doc/invoke.texi (AVR Options): Document -mstrict-X.
8654 * config/avr/avr.opt (-mstrict-X): New option.
8655 (avr_strict_X): New variable reflecting -mstrict-X.
8656 * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
8657 outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
8658 (avr_legitimate_address_p): Pass outer_code to
8659 avr_reg_ok_for_addr_p and use that function in case PLUS.
8660 (avr_mode_code_base_reg_class): Depend on avr_strict_X.
8661 (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
8662 (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
8664 2011-10-14 Jakub Jelinek <jakub@redhat.com>
8666 * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
8669 * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
8670 (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
8671 Use <sseinsnmode> instead of TI in mode attr.
8673 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
8675 * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
8676 * config/arm/linux-atomic.c: Change comment to point to 64bit version.
8677 (SYNC_LOCK_RELEASE): Instantiate 64bit version.
8678 * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
8680 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
8682 * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
8683 (arm_output_strex): Support strexd.
8684 (arm_output_it): New helper to output it in Thumb2 mode only.
8685 (arm_output_sync_loop): Support DI mode. Change comment to
8686 not support const_int.
8687 (arm_expand_sync): Support DI mode.
8688 * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
8690 * config/arm/iterators.md (NARROW): move from sync.md.
8691 (QHSD): New iterator for all current ARM integer modes.
8692 (SIDI): New iterator for SI and DI modes only.
8693 * config/arm/sync.md (sync_predtab): New mode_attr.
8694 (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
8695 (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
8696 (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
8697 (sync_nandsi): Fold into sync_nand<mode>.
8698 (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
8699 (sync_new_nandsi): Fold into sync_new_nand<mode>.
8700 (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
8701 (sync_old_nandsi): Fold into sync_old_nand<mode>.
8702 (sync_compare_and_swap<mode>): Support SI & DI.
8703 (sync_lock_test_and_set<mode>): Likewise.
8704 (sync_<sync_optab><mode>): Likewise.
8705 (sync_nand<mode>): Likewise.
8706 (sync_new_<sync_optab><mode>): Likewise.
8707 (sync_new_nand<mode>): Likewise.
8708 (sync_old_<sync_optab><mode>): Likewise.
8709 (sync_old_nand<mode>): Likewise.
8710 (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
8711 (arm_sync_lock_test_and_setsi): Likewise.
8712 (arm_sync_new_<sync_optab>si): Likewise.
8713 (arm_sync_new_nandsi): Likewise.
8714 (arm_sync_old_<sync_optab>si): Likewise.
8715 (arm_sync_old_nandsi): Likewise.
8716 (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
8717 (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
8718 (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
8719 (arm_sync_new_nand<mode> NARROW): Likewise.
8720 (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
8721 (arm_sync_old_nand<mode> NARROW): Likewise.
8723 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
8726 * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
8728 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
8730 * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
8732 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
8734 * doc/invoke.texi ([Wformat-zero-length]): Tidy.
8736 2011-10-14 Jakub Jelinek <jakub@redhat.com>
8738 * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
8739 on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
8741 2011-10-14 Richard Guenther <rguenther@suse.de>
8743 PR tree-optimization/50723
8744 * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
8746 2011-10-14 Nicola Pero <nicola.pero@meta-innovation.com>
8748 * gengtype.c (files_rules): Added rules for objc/objc-map.h and
8751 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
8754 * doc/invoke.texi ([Wformat-zero-length]): Update.
8756 2011-10-14 Iain Sandoe <iains@gcc.gnu.org>
8759 * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
8760 build for powerpc targets. (darwin_patch_builtins): Only build for
8763 2011-10-14 Jakub Jelinek <jakub@redhat.com>
8765 * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
8766 (avx_cvtdq2pd256_2): ... this.
8767 (sseunpackfltmode): New mode attr.
8768 (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
8769 vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
8770 using VI2_AVX2 iterator.
8771 (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
8773 2011-10-13 David S. Miller <davem@davemloft.net>
8775 * config/sparc/sparc.md (plusminus): New code iterator.
8776 (plusminus_insn): New code attr.
8777 (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
8778 using plusminus and plusminus_insn.
8779 (fpadd64_vis, fpsub64_vis): Likewise.
8781 2011-10-13 Richard Henderson <rth@redhat.com>
8783 * doc/md.texi (vec_perm): Document fallback to byte permutation.
8784 * genopinit.c (optabs): Add vec_perm_const.
8785 * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
8786 Reject non-vector modes. Allow fallback to byte permutation.
8787 (expand_vec_perm_expr_1): Split out from ...
8788 (expand_vec_perm_expr): ... here. Allow fallback to byte permutation.
8789 * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
8790 * tree-vect-generic.c (lower_vec_perm): Update for name change.
8792 2011-10-13 Richard Henderson <rth@redhat.com>
8794 * config/rs6000/altivec.md (vec_permv16qi): New pattern.
8796 * config/rs6000/spu.md (vec_permv16qi): New pattern.
8798 * config/i386/i386.c (ix86_expand_vec_perm_const): New.
8799 * config/i386/i386-protos.h: Update.
8800 * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
8801 (vec_perm_const<VEC_PERM_CONST>): New expander.
8803 * optabs.c (expand_vector_broadcast): New.
8804 (expand_binop): Expand scalar shifts of vectors to vector shifts
8805 of vectors, if the former isn't supported.
8806 * tree-vect-generic.c (expand_vector_operations_1): Don't do that
8807 here; always simplify to scalar shift of vector if possible.
8809 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
8810 test for vector splat.
8812 2011-10-13 Jakub Jelinek <jakub@redhat.com>
8814 * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
8816 2011-10-13 Jakub Jelinek <jakub@redhat.com>
8817 Richard Guenther <rguenther@suse.de>
8819 * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
8820 or complex vars even if their DECL_UID is in not_reg_needs bitmap.
8822 2011-10-13 Jakub Jelinek <jakub@redhat.com>
8824 * config/i386/sse.md (reduc_umin_v8hi): New pattern.
8825 * config/i386/i386.c (ix86_build_const_vector): Handle
8826 also V32QI, V16QI, V16HI and V8HI modes.
8827 (emit_reduc_half): New function.
8828 (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
8829 Use emit_reduc_half helper function.
8831 2011-10-13 Lawrence Crowl <crowl@google.com>
8832 Diego Novillo <dnovillo@google.com>
8834 * lto-streamer-in.c (input_struct_function_base): Factor out of ...
8835 (input_function): ... here.
8836 * lto-streamer-out.c (output_struct_function_base): Factor out of ...
8837 (output_function): ... here.
8839 2011-10-13 Gabriel Charette <gchare@google.com>
8840 Diego Novillo <dnovillo@google.com>
8842 * streamer-hooks.h (struct streamer_hooks): Add hooks
8843 input_location and output_location.
8844 * lto-streamer-in.c (lto_input_location): Use
8845 streamer_hooks.input_location, if set.
8846 * lto-streamer-out.c (lto_output_location): Use
8847 streamer_hooks.output_location, if set.
8849 2011-10-13 Eric Botcazou <ebotcazou@adacore.com>
8851 * doc/invoke.texi (SPARC options): Document -mfix-at697f.
8852 * config/sparc/sparc.opt (mfix-at697f): New option.
8853 * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8854 (sparc_reorg): New function.
8856 2011-10-13 Richard Guenther <rguenther@suse.de>
8858 PR tree-optimization/50712
8859 * ipa-split.c (split_function): Always re-gimplify parameters
8860 when they are not gimple vals before passing them. Properly
8861 check for type compatibility.
8863 2011-10-13 Tom de Vries <tom@codesourcery.com>
8865 * function.c (gimplify_parameters): Set number of arguments of call to
8866 BUILT_IN_ALLOCA_WITH_ALIGN to 2.
8868 2011-10-13 Tom de Vries <tom@codesourcery.com>
8870 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
8871 for static const strings.
8872 * varasm.c (build_constant_desc): Generate the memory location of the
8873 constant using gen_const_mem.
8875 2011-10-13 Richard Guenther <rguenther@suse.de>
8877 PR tree-optimization/50698
8878 * tree-data-ref.c (split_constant_offset_1): Also process
8881 2011-10-12 David S. Miller <davem@davemloft.net>
8883 * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
8884 (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
8886 (fpmerge_vis): Remove inaccurate comment, represent using vec_select
8888 (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
8889 (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
8890 Reimplement as unspecs and remove inaccurate comments.
8891 (vis3_shift_patname): New code attr.
8892 (<vis3_shift_insn><vbits>_vis): Rename to
8893 "v<vis3_shift_patname><mode>3".
8894 (vis3_addsub_ss_patname): New code attr.
8895 (<vis3_addsub_ss_insn><vbits>_vis): Rename to
8896 "<vis3_addsub_ss_patname><mode>3".
8897 * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
8898 accommodate pattern name changes.
8900 * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
8901 to zero when assembler lacks support for such instructions.
8902 * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
8903 and MASK_FMAF in defaults when assembler lacks necessary support.
8905 2011-10-12 Jakub Jelinek <jakub@redhat.com>
8907 * config/i386/sse.md (vec_unpacks_lo_<mode>,
8908 vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
8909 vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
8910 * config/i386/i386.c (ix86_expand_sse_unpack): Handle
8911 V32QImode, V16HImode and V8SImode for TARGET_AVX2.
8913 * config/i386/sse.md (vec_avx2): New mode_attr.
8914 (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
8915 (mul<mode>3): ... this.
8917 * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
8918 * config/i386/i386.c (ix86_expand_vec_perm): Handle
8919 V16QImode and V32QImode for TARGET_AVX2.
8920 (MAX_VECT_LEN): Increase to 32.
8921 (expand_vec_perm_blend): Add support for 32-byte integer
8922 vectors with TARGET_AVX2.
8923 (valid_perm_using_mode_p): New function.
8924 (expand_vec_perm_pshufb): Add support for 32-byte integer
8925 vectors with TARGET_AVX2.
8926 (expand_vec_perm_vpshufb2_vpermq): New function.
8927 (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
8928 (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
8930 (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
8931 and expand_vec_perm_vpshufb2_vpermq_even_odd.
8932 * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
8933 32-byte integer vector modes.
8934 (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
8935 (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
8936 (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
8938 (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
8939 match_dup, instead add 4 new operands and require they have
8940 right cross-lane values.
8941 (avx2_permv4di): Change into define_expand.
8942 (avx2_permv4di_1): New instruction.
8943 (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
8944 for "xm" constrained operand.
8945 (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
8947 * config/i386/sse.md (avx2_gathersi<mode>,
8948 avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
8949 match_scratch, change memory_operand to register_operand,
8950 add (mem:BLK (scratch)) use.
8951 (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
8952 *avx2_gatherdi<mode>256): Add clobber of match_scratch,
8953 add earlyclobber to the output operand and match_scratch,
8954 add (mem:BLK (scratch)) use, change the other mem to match_operand.
8955 Use %p6 instead of %c6 in the pattern.
8956 * config/i386/i386.c (ix86_expand_builtin): Adjust for
8957 operand 2 being a Pmode register_operand instead of memory_operand.
8959 2011-10-12 Kai Tietz <ktietz@redhat.com>
8961 * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
8963 2011-10-12 Steve Ellcey <sje@cup.hp.com>
8965 * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
8967 2011-10-12 Richard Guenther <rguenther@suse.de>
8969 * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
8970 of the first store we visit in a basic-block.
8971 (get_continuation_for_phi): Search for a candidate VUSE that
8972 might dominates all others. Do pairwise disambiguation against
8975 2011-10-12 Paul Koning <pkoning@gcc.gnu.org>
8977 PR tree-optimization/50189
8978 * tree-vrp.c (extract_range_from_assert): Use the type of
8979 the variable, not the limit.
8981 2011-10-12 Richard Guenther <rguenther@suse.de>
8983 PR tree-optimization/50700
8984 * tree-object-size.c (addr_object_size): Simplify and treat
8985 MEM_REF bases consistently.
8987 2011-10-12 Bernd Schmidt <bernds@codesourcery.com>
8989 * function.c (prepare_shrink_wrap, bb_active_p): New function.
8990 (thread_prologue_and_epilogue_insns): Use bb_active_p. Call
8991 prepare_shrink_wrap, then recompute bb_active_p for the last block.
8993 2011-10-12 Joseph Myers <joseph@codesourcery.com>
8996 * convert.c (convert_to_integer): Do not narrow operands of
8997 pointer subtraction.
8999 2011-10-12 Nick Clifton <nickc@redhat.com>
9001 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro. Used to
9002 emit a .eabi_attribute assembler directive, possibly with a
9004 * config/arm/arm.c (arm_file_start): Use the new macro.
9005 * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
9007 2011-10-12 Georg-Johann Lay <avr@gjlay.de>
9010 * config/avr/avr.md (*movqi): Rename to movqi_insn.
9011 (*call_insn): Rename to call_insn.
9012 (*call_value_insn): Rename to call_value_insn.
9013 * config/avr/avr.c (avr_2word_insn_p): New static function.
9014 (jump_over_one_insn_p): Use it.
9016 2011-10-12 Richard Sandiford <richard.sandiford@linaro.org>
9019 * expr.h (copy_blkmode_to_reg): Declare.
9020 * expr.c (copy_blkmode_to_reg): New function.
9021 (expand_assignment): Don't expand register RESULT_DECLs before
9022 the lhs. Use copy_blkmode_to_reg to copy BLKmode values into a
9023 RESULT_DECL register.
9024 (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
9025 * stmt.c (expand_return): Move BLKmode-to-register code into
9026 copy_blkmode_to_reg.
9028 2011-10-11 Eric Botcazou <ebotcazou@adacore.com>
9031 * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
9032 (mov<F:mode>cc): Likewise.
9034 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9036 * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
9038 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
9040 * tree.h (built_in_decls): Delete old interface with two parallel
9041 arrays to hold standard builtin declarations, and replace it with
9042 a function based interface that can support creating builtins on
9043 the fly in the future. Change all uses, and poison the old
9044 names. Make sure 0 is not a legitimate builtin index.
9045 (implicit_built_in_decls): Ditto.
9046 (built_in_info): Ditto.
9047 (BUILTIN_VALID_P): Ditto.
9048 (builtin_decl_explicit): Ditto.
9049 (builtin_decl_implicit): Ditto.
9050 (set_builtin_decl): Ditto.
9051 (set_builtin_decl_implicit_p): Ditto.
9052 (builtin_decl_explicit_p): Ditto.
9053 (builtin_decl_implicit_p): Ditto.
9054 * tree-complex.c (expand_complex_libcall): Ditto.
9055 * tree-loop-distribution.c (generate_memset_zero): Ditto.
9056 * tree-ssa-strlen.c (get_string_length): Ditto.
9057 (handle_builtin_strcpy): Ditto.
9058 (handle_builtin_strcat): Ditto.
9059 * tree.c (iterative_hash_expr): Ditto.
9060 (local_define_builtin): Ditto.
9061 (build_common_builtin_nodes): Ditto.
9062 * builtins.c (built_in_decls): Ditto.
9063 (implicit_built_in_decls): Ditto.
9064 (built_in_info): Ditto
9065 (expand_builtin_classify_type): Ditto.
9066 (mathfn_built_in_1): Ditto.
9067 (expand_builtin_cexpi): Ditto.
9068 (expand_builtin_mempcpy_args): Ditto.
9069 (expand_builtin_stpcpy): Ditto.
9070 (gimplify_va_arg_expr): Ditto.
9071 (expand_builtin_sync_operation): Ditto.
9072 (build_builtin_expect_predicate): Ditto.
9073 (fold_builtin_memory_op): Ditto.
9074 (fold_builtin_strcpy): Ditto.
9075 (fold_builtin_stpcpy): Ditto.
9076 (fold_builtin_strncpy): Ditto.
9077 (fold_builtin_interclass_mathfn): Ditto.
9078 (fold_builtin_classify): Ditto.
9079 (fold_builtin_2): Ditto.
9080 (fold_builtin_strstr): Ditto.
9081 (fold_builtin_strrchr): Ditto.
9082 (fold_builtin_strpbrk): Ditto.
9083 (fold_builtin_strcat): Ditto.
9084 (fold_builtin_strncat): Ditto.
9085 (fold_builtin_strcspn): Ditto.
9086 (fold_builtin_fputs): Ditto.
9087 (fold_builtin_sprintf): Ditto.
9088 (fold_builtin_snprintf): Ditto.
9089 (expand_builtin_memory_chk): Ditto.
9090 (fold_builtin_memory_chk): Ditto.
9091 (fold_builtin_stxcpy_chk): Ditto.
9092 (fold_builtin_strncpy_chk): Ditto.
9093 (fold_builtin_strcat_chk): Ditto.
9094 (fold_builtin_strncat_chk): Ditto.
9095 (fold_builtin_sprintf_chk_1): Ditto.
9096 (fold_builtin_snprintf_chk_1): Ditto.
9097 (fold_builtin_printf): Ditto.
9098 (fold_builtin_fprintf): Ditto.
9099 (fold_call_stmt): Ditto.
9100 (set_builtin_user_assembler_name): Ditto.
9101 * tree-emutls.c (emutls_common_1): Ditto.
9102 * omp-low.c (scan_omp): Ditto.
9103 (lower_rec_input_clauses): Ditto.
9104 (lower_reduction_clauses): Ditto.
9105 (expand_parallel_call): Ditto.
9106 (expand_task_call): Ditto.
9107 (maybe_catch_exception): Ditto.
9108 (optimize_omp_library_calls): Ditto.
9109 (expand_omp_for_generic): Ditto.
9110 (expand_omp_for_static_nochunk): Ditto.
9111 (expand_omp_for_static_chunk): Ditto.
9112 (expand_omp_sections): Ditto.
9113 (expand_omp_atomic_fetch_op): Ditto.
9114 (expand_omp_atomic_pipeline): Ditto.
9115 (expand_omp_atomic_mutex): Ditto.
9116 (lower_omp_single_simple): Ditto.
9117 (lower_omp_single_copy): Ditto.
9118 (lower_omp_master): Ditto.
9119 (lower_omp_ordered): Ditto.
9120 (lower_omp_critical): Ditto.
9121 * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
9122 * builtins.c (DEF_BUILTIN_STUB): Ditto.
9123 (BUILT_IN_NONE): Ditto.
9124 * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
9125 * gimple-low.c (lower_function_body): Ditto.
9126 (lower_builtin_setjmp): Ditto.
9127 * c-decl.c (merge_decls): Ditto.
9128 * tree-eh.c (lower_resx): Ditto.
9129 (lower_resx): Ditto.
9130 (lower_eh_dispatch): Ditto.
9131 * function (gimplify_parameters): Ditto.
9132 * c-typeck.c (build_function_call_vec): Ditto.
9133 * gimplify.c (build_stack_save_restore): Ditto.
9134 (gimplify_vla_decl): Ditto.
9135 (gimplify_modify_expr_to_memcpy): Ditto.
9136 (gimplify_modify_expr_to_memset): Ditto.
9137 (gimplify_variable_sized_compare): Ditto.
9138 (gimplify_function_tree): Ditto.
9139 * calls.c (emit_call_1): Ditto.
9140 * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
9141 * tree-nested.c (convert_nl_goto_reference): Ditto.
9142 (convert_tramp_reference_op): Ditto.
9143 (finalize_nesting_tree_1): Ditto.
9144 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
9145 (tree_ssa_prefetch_arrays): Ditto.
9146 * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
9147 * system.h (built_in_decls): Ditto.
9148 (implicit_built_in_decls): Ditto.
9149 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
9150 * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
9151 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
9152 (ix86_veclibabi_svml): Ditto.
9153 (ix86_veclibabi_acml): Ditto.
9154 * config/vms/vms.c (vms_patch_builtins): Ditto.
9155 * config/ia64/ia64.c (ia64_init_builtins): Ditto.
9156 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
9157 (rs6000_builtin_vectorized_libmass): Ditto.
9158 (rs6000_init_builtins): Ditto.
9159 * config/darwin.c (darwin_override_options): Ditto.
9160 (darwin_patch_builtin): Ditto.
9161 (darwin_rename_builtins): Ditto.
9162 * config/pa/pa.c (pa_init_builtins): Ditto.
9164 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9166 * tree.h (copy_ref_info): Expose existing function.
9167 * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
9168 * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
9170 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
9172 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
9174 (avr_regno_mode_code_ok_for_base_p): New prototype.
9175 * config/avr/avr.h (BASE_REG_CLASS): Remove.
9176 (REGNO_OK_FOR_BASE_P): Remove.
9177 (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
9178 (REG_OK_FOR_BASE_STRICT_P): Remove.
9179 (MODE_CODE_BASE_REG_CLASS): New define.
9180 (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
9181 * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
9182 (avr_regno_mode_code_ok_for_base_p): New function.
9183 (avr_reg_ok_for_addr_p): New static function.
9184 (avr_legitimate_address_p): Use it. Beautify.
9186 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
9189 * config/avr/avr.md (cc): Add out_plus attribute alternative.
9190 (addsi3): Use it. Adapt avr_out_plus to new prototype. Use
9191 avr_out_plus for all CONST_INT addends.
9192 * config/avr/avr-protos.h (avr_out_plus): Change prototype.
9193 * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
9195 (avr_out_plus_1): Change prototype and report effect on cc0.
9196 (avr_out_plus): Ditto.
9197 (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
9199 2011-10-11 H.J. Lu <hongjiu.lu@intel.com>
9201 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
9204 2011-10-11 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
9206 * doc/invoke.texi: Document new warning.
9207 * common.opt (Wvector-operation-performance): Define new warning.
9208 * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
9210 (exapnd_vector_parallel): Warn about expanded vector operation.
9211 (lower_vec_shuffle): Warn about expanded vector operation.
9212 * c-typeck.c (c_build_vec_perm_expr): Store correct location
9213 when creating VEC_PERM_EXPR.
9215 2011-10-11 Richard Guenther <rguenther@suse.de>
9217 PR tree-optimization/50204
9218 * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
9219 two argument handling from ...
9220 (get_continuation_for_phi): ... here. Handle arbitrary number
9223 2011-10-11 Richard Sandiford <richard.sandiford@linaro.org>
9225 * modulo-sched.c: Fix comment typo. Mention the possibility
9226 of using scheduling windows of II+1 cycles.
9228 2011-10-11 Tristan Gingold <gingold@adacore.com>
9230 * doc/invoke.texi (C Dialect Options): Document
9231 -fallow-parameterless-variadic-functions.
9232 * c-parser.c (c_parser_parms_list_declarator): Handle it.
9234 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
9236 * config/avr/avr.c (avr_option_override): Set flag_omit_frame_pointer
9237 to 0 if frame pointer is needed for unwinding.
9239 2011-10-10 Uros Bizjak <ubizjak@gmail.com>
9242 * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm. Move from enum
9243 optab_index to enum direct_optab_index.
9244 (vec_perm_optab): Update.
9246 2011-10-10 Anatoly Sokolov <aesok@post.ru>
9248 * config/cris/cris.c (cris_preferred_reload_class): New function.
9249 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9250 * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
9252 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
9254 * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
9256 (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
9257 (*tablejump_enh, *tablejump): Remove insns.
9258 * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
9259 EIJMP for indirect jump. Use LPM Z+ where available.
9261 2011-10-10 Richard Henderson <rth@redhat.com>
9263 * doc/md.texi (vec_perm_const): Fix typo in cindex.
9265 2011-10-10 Kirill Yukhin <kirill.yukhin@intel.com>
9266 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
9268 * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
9270 2011-10-10 Richard Guenther <rguenther@suse.de>
9273 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
9274 mark symbols for renaming. Append the VUSE to all statements
9275 that possibly can have one.
9277 2011-10-10 Richard Guenther <rguenther@suse.de>
9279 * ipa-split.c (pass_split_functions): Add verification TODOs.
9280 (pass_feedback_split_functions): Likewise.
9282 2011-10-10 Richard Guenther <rguenther@suse.de>
9285 * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
9286 only when optimizing.
9288 2011-10-10 Nick Clifton <nickc@redhat.com>
9291 * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
9292 df_get_live_out instead of accessing the bitmaps directly.
9293 (execute_compare_elim_after_reload): Remove calls to df_set_flags,
9294 df_live_add_problem and df_analyze.
9296 2011-10-10 Michael Matz <matz@suse.de>
9299 * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
9301 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
9303 * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
9304 (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
9305 (node_sched_params): Remove first_reg_move and nreg_moves.
9306 (ps_num_consecutive_stages, extend_node_sched_params): New functions.
9307 (update_node_sched_params): Move up file.
9308 (print_node_sched_params): Print the stage. Don't dump info related
9309 to first_reg_move and nreg_moves.
9310 (set_columns_for_row): New function.
9311 (set_columns_for_ps): Move up file and use set_columns_for_row.
9312 (schedule_reg_move): New function.
9313 (schedule_reg_moves): Call extend_node_sched_params and
9314 schedule_reg_move. Extend size of uses bitmap. Initialize
9315 num_consecutive_stages. Return false if a move could not be
9317 (apply_reg_moves): Don't emit moves here.
9318 (permute_partial_schedule): Handle register moves.
9319 (duplicate_insns_of_cycles): Remove for_prolog. Emit moves according
9320 to the same stage-count test as ddg nodes.
9321 (generate_prolog_epilog): Update calls accordingly.
9322 (sms_schedule): Allow move-scheduling to add a new first stage.
9324 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
9326 * modulo-sched.c (ps_insn): Adjust comment.
9327 (ps_reg_move_info): New structure.
9328 (partial_schedule): Add reg_moves field.
9329 (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
9330 (node_sched_params): Turn first_reg_move into an identifier.
9331 (ps_reg_move): New function.
9332 (ps_rtl_insn): Cope with register moves.
9333 (ps_first_note): Adjust comment and assert that the instruction
9334 isn't a register move.
9335 (node_sched_params): Replace with...
9336 (node_sched_param_vec): ...this vector.
9337 (set_node_sched_params): Adjust accordingly.
9338 (print_node_sched_params): Take a partial schedule instead of a ddg.
9339 Use ps_rtl_insn and ps_reg_move.
9340 (generate_reg_moves): Rename to...
9341 (schedule_reg_moves): ...this. Remove rescan parameter. Record each
9342 move in the partial schedule, but don't emit it here. Don't perform
9343 register substitutions here either.
9344 (apply_reg_moves): New function.
9345 (duplicate_insns_of_cycles): Use register indices directly,
9346 rather than finding instructions using PREV_INSN. Use ps_reg_move.
9347 (sms_schedule): Call schedule_reg_moves before committing to
9348 a partial schedule. Try the next ii if the schedule fails.
9349 Use apply_reg_moves instead of generate_reg_moves. Adjust
9350 call to print_node_sched_params. Free node_sched_param_vec
9351 instead of node_sched_params.
9352 (create_partial_schedule): Initialize reg_moves.
9353 (free_partial_schedule): Free reg_moves.
9355 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
9357 * modulo-sched.c (ps_insn): Replace node field with an identifier.
9358 (SCHED_ASAP): Replace with..
9359 (NODE_ASAP): ...this macro.
9360 (SCHED_PARAMS): New macro.
9361 (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
9362 (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
9363 (node_sched_params): Remove asap.
9364 (ps_rtl_insn, ps_first_note): New functions.
9365 (set_node_sched_params): Use XCNEWVEC. Don't copy across the
9367 (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
9368 (generate_reg_moves): Pass ids to the SCHED_* macros.
9369 (update_node_sched_params): Take a ps insn identifier rather than
9370 a node as parameter. Use ps_rtl_insn.
9371 (set_columns_for_ps): Update for above field and SCHED_* macro changes.
9372 (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
9373 (optimize_sc): Update for above field and SCHED_* macro changes.
9374 Update calls to try_scheduling_node_in_cycle and
9375 update_node_sched_params.
9376 (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
9377 macro changes. Use ps_rtl_insn and ps_first_note.
9378 (sms_schedule): Pass ids to the SCHED_* macros.
9379 (get_sched_window): Adjust for above field and SCHED_* macro changes.
9380 Use NODE_ASAP instead of SCHED_ASAP.
9381 (try_scheduling_node_in_cycle): Remove node parameter. Update
9382 call to ps_add_node_check_conflicts. Pass ids to the SCHED_* macros.
9383 (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
9384 (ps_insert_empty_row): Adjust for above field changes.
9385 (compute_split_row): Use ids rather than nodes.
9386 (verify_partial_schedule): Adjust for above field changes.
9387 (print_partial_schedule): Use ps_rtl_insn.
9388 (create_ps_insn): Take an id rather than a node.
9389 (ps_insn_find_column): Adjust for above field changes.
9391 (ps_insn_advance_column): Adjust for above field changes.
9392 (add_node_to_ps): Remove node parameter. Update call to
9394 (ps_has_conflicts): Use ps_rtl_insn.
9395 (ps_add_node_check_conflicts): Replace node parameter than an id.
9397 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
9399 * modulo-sched.c (undo_replace_buff_elem): Delete.
9400 (generate_reg_moves): Don't build and return an undo list.
9401 (free_undo_replace_buff): Delete.
9402 (sms_schedule): Adjust call to generate_reg_moves.
9403 Don't call free_undo_replace_buff.
9405 2011-10-10 Matthias Klose <doko@ubuntu.com>
9407 * common/config/m32c: Remove empty directory.
9409 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
9411 * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
9413 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
9416 * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
9417 atmega164a to 0x100.
9419 2011-10-09 Eric Botcazou <ebotcazou@adacore.com>
9421 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
9422 the replacement if the conversion to the LHS type is not useless.
9424 2011-10-09 Ira Rosen <ira.rosen@linaro.org>
9426 PR tree-optimization/50635
9427 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
9428 DEF_STMT to the list of statements to be replaced by the
9430 (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
9432 2011-10-09 Anatoly Sokolov <aesok@post.ru>
9434 * system.h: Commit forgotten hunk in previous patch.
9435 (OUTPUT_ADDR_CONST_EXTRA): Poison.
9437 2011-10-08 Nicola Pero <nicola.pero@meta-innovation.com>
9440 * doc/objc.texi (Garbage Collection): Updated example to protect
9441 +initialize against execution in subclasses.
9443 2011-10-07 Richard Henderson <rth@redhat.com>
9445 * doc/extend.texi (__builtin_shuffle): Improve the description to
9446 include the modulus of the selector. Mention OpenCL.
9447 * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
9449 * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
9450 * genopinit.c (optabs): Rename vshuffle to vec_perm.
9451 * c-typeck.c (c_build_vec_perm_expr): Rename from
9452 c_build_vec_shuffle_expr. Update for name changes.
9453 * optabs.c (expand_vec_perm_expr_p): Rename from
9454 expand_vec_shuffle_expr_p.
9455 (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
9456 * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
9457 (vec_perm_optab): Rename from vshuffle_optab.
9458 * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
9459 c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
9460 tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
9462 * config/i386/i386.c (ix86_expand_vec_perm): Rename from
9463 ix86_expand_vshuffle.
9464 * config/i386/i386-protos.h: Update.
9465 * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
9466 (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
9468 2011-10-07 Richard Henderson <rth@redhat.com>
9470 * config/i386/predicates.md (avx2_pblendw_operand): New.
9471 * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
9472 (avx2_pblendw, *avx2_pblendw): New expander and insn.
9474 2011-10-07 Richard Henderson <rth@redhat.com>
9476 * config/i386/i386.c (bdesc_args): Update code for
9477 __builtin_ia32_palignr256. Change type of __builtin_ia32_pslldqi256,
9478 and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
9479 (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
9480 * config/i386/sse.md (mode iterator V16): Add V2TI.
9481 (mode iterator SSESCALARMODE): Use V2TI not V4DI.
9482 (mode attr ssse3_avx2): Add V2TI.
9483 (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
9485 2011-10-07 David S. Miller <davem@davemloft.net>
9488 * configure.ac: Add .register directives to VIS3 test.
9489 * configure: Regenerate.
9491 2011-10-07 Richard Henderson <rth@redhat.com>
9493 * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
9495 2011-10-07 Richard Henderson <rth@redhat.com>
9498 * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
9500 2011-10-07 Andrew Stubbs <ams@codesourcery.com>
9502 * config/arm/predicates.md (shift_amount_operand): Remove constant
9504 (shift_operator): Check range of constants for all shift operators.
9506 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9508 * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
9509 Load GOT pointer for non-pic builds.
9510 (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
9511 (s390_emit_call): Likewise.
9513 2011-10-07 Tom de Vries <tom@codesourcery.com>
9516 * tree.c (build_common_builtin_nodes): Add local_define_builtin for
9517 BUILT_IN_ALLOCA_WITH_ALIGN. Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
9519 * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
9520 arglist. Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
9521 (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
9522 (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
9523 * tree-ssa-ccp.c (evaluate_stmt): Set align for
9524 BUILT_IN_ALLOCA_WITH_ALIGN.
9525 (fold_builtin_alloca_for_var): Rename to ...
9526 (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
9527 BUILT_IN_ALLOCA_WITH_ALIGN argument.
9528 (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
9529 fold_builtin_alloca_with_align.
9530 (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
9531 * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
9533 * ipa-pure-const.c (special_builtin_state): Handle
9534 BUILT_IN_ALLOCA_WITH_ALIGN.
9535 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
9536 (call_may_clobber_ref_p_1): Same.
9537 * function.c (gimplify_parameters): Lower vla to
9538 BUILT_IN_ALLOCA_WITH_ALIGN.
9539 * gimplify.c (gimplify_vla_decl): Same.
9540 * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
9541 * tree-mudflap.c (mf_xform_statements): Same.
9542 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
9543 (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
9544 * varasm.c (incorporeal_function_p): Same.
9545 * tree-object-size.c (alloc_object_size): Same.
9546 * gimple.c (gimple_build_call_from_tree): Same.
9548 2011-10-07 Bernd Schmidt <bernds@codesourcery.com>
9550 * function.c (frame_required_for_rtx): Remove function.
9551 (requires_stack_frame_p): New arg set_up_by_prologue. All callers
9552 changed. Compute a set of mentioned registers and compare against
9553 the new arg rather than calling frame_required_for_rtx.
9554 (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
9555 reg set. Convert the unconverted_simple_returns mechanism to store
9556 jump insns rather than their basic blocks. Also check the
9557 orig_entry_edge destination for new blocks.
9559 2011-10-07 Jakub Jelinek <jakub@redhat.com>
9561 PR tree-optimization/50650
9562 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
9563 call vect_is_simple_cond here, instead fail if cond_expr isn't
9564 COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
9565 for cond_expr's first operand.
9566 * tree-vect-stmts.c (vect_is_simple_cond): Static again.
9567 * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
9569 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9571 * config/s390/s390.md (DWH, dwh): New mode macros.
9572 ("umulsidi3"): Extend to support "umulditi3" as well.
9574 2011-10-07 Uros Bizjak <ubizjak@gmail.com>
9575 H.J. Lu <hongjiu.lu@intel.com>
9578 * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
9579 integer PLUS RTX to a register to improve address combine.
9581 2011-10-06 Richard Henderson <rth@redhat.com>
9583 * combine-stack-adjust.c (maybe_move_args_size_note): Add after
9584 parameter; use it to decide whether to merge two notes.
9585 (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
9586 for the deallocation case as well.
9588 2011-10-06 Anatoly Sokolov <aesok@post.ru>
9590 * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
9591 * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
9592 * doc/tm.texi: Regenerate.
9593 * target.def (output_addr_const_extra): Use
9594 hook_bool_FILEptr_rtx_false.
9595 * targhooks.c (default_asm_output_addr_const_extra): Remove.
9596 * targhooks.h (default_asm_output_addr_const_extra): Remove.
9597 * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
9598 * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
9600 2011-10-06 David S. Miller <davem@davemloft.net>
9602 * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
9603 (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
9604 SI mode 64-bit code gen case explicitly zero-extend and truncate.
9605 (*popcount<mode>_sp64): Split up into...
9606 (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
9607 SImode case use truncate.
9608 (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
9609 subtract so the compiler can optimize it.
9610 (SIDI): Remove unused mode iterator.
9612 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
9614 * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
9615 on the orig_entry_edge. Don't account for it in prologue_clobbered.
9617 2011-10-06 Jakub Jelinek <jakub@redhat.com>
9619 PR tree-optimization/50596
9620 * tree-vectorizer.h (vect_is_simple_cond): New prototype.
9621 (NUM_PATTERNS): Change to 6.
9622 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
9624 (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
9625 (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
9626 if it already has one, and don't set STMT_VINFO_VECTYPE in it
9627 if it is already set.
9628 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
9629 COND_EXPR in pattern stmts.
9630 (vect_is_simple_cond): No longer static.
9632 2001-10-06 Richard Henderson <rth@redhat.com>
9634 * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
9635 * config/i386/sse.md (sseshuffint): Remove.
9636 (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
9637 (VSHUFFLE_AVX2): New mode iterator.
9638 (vshuffle<mode>): Use it.
9639 (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
9641 * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
9642 for vector_all_ones_operand.
9643 (ix86_expand_int_vcond): Distinguish between comparison mode
9644 and data mode. Allow them to differ.
9645 (ix86_expand_vshuffle): Don't force data mode to match maskmode.
9647 2001-10-06 Richard Henderson <rth@redhat.com>
9649 * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
9650 mask operand. Tidy the code.
9652 2011-10-06 Jakub Jelinek <jakub@redhat.com>
9654 * tree-vect-patterns.c (vect_pattern_recog_1): Use
9655 vect_recog_func_ptr typedef for the first argument.
9656 (vect_pattern_recog): Rename vect_recog_func_ptr variable
9657 to vect_recog_func, use vect_recog_func_ptr typedef for it.
9659 PR tree-optimization/49279
9660 * tree-ssa-structalias.c (find_func_aliases): Don't handle
9662 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
9663 restrict propagation.
9664 * tree-ssa.c (useless_type_conversion_p): Don't return false
9665 if TYPE_RESTRICT differs.
9667 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
9669 * function.c (thread_prologue_and_epilogue_insns): Build a vector
9670 of unconverted simple return blocks rather than trying to
9671 recompute them later based on bb_flags bitmap tests.
9673 2011-10-06 Michael Matz <matz@suse.de>
9675 * tree-flow.h (get_var_ann): Don't declare.
9676 * tree-flow-inline.h (get_var_ann): Remove.
9677 (set_is_used): Use var_ann, not get_var_ann.
9678 * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
9679 * tree-profile.c (gimple_gen_edge_profiler): Call
9680 find_referenced_var_in.
9681 (gimple_gen_interval_profiler): Ditto.
9682 (gimple_gen_pow2_profiler): Ditto.
9683 (gimple_gen_one_value_profiler): Ditto.
9684 (gimple_gen_average_profiler): Ditto.
9685 (gimple_gen_ior_profiler): Ditto.
9686 (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
9687 (gimple_gen_ic_func_profiler): Call add_referenced_var.
9688 * tree-mudflap.c (execute_mudflap_function_ops): Call
9691 2011-10-06 Jakub Jelinek <jakub@redhat.com>
9693 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
9694 don't set SSA_NAME_DEF_STMT that has been already set by
9695 gimple_build_assign_with_ops.
9696 (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
9697 vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
9700 * tree.h (avoid_folding_inline_builtin): New prototype.
9701 * builtins.c (avoid_folding_inline_builtin): No longer static.
9702 * gimple-fold.c (gimple_fold_builtin): Give up if
9703 avoid_folding_inline_builtin returns true.
9705 2011-10-06 Richard Guenther <rguenther@suse.de>
9707 * tree-vect-generic.c (vector_element): Look at previous
9710 2011-10-06 David Edelsohn <dje.gcc@gmail.com>
9713 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
9714 __powerpc__, __PPC__, __unix__.
9716 2011-10-06 Michael Matz <matz@suse.de>
9718 * i386/i386.opt (recip_mask, recip_mask_explicit,
9719 x_recip_mask_explicit): New variables and cl_target member.
9720 (mrecip=): New option.
9721 * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
9722 RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
9723 (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
9724 TARGET_RECIP_VEC_SQRT): New tests.
9725 * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
9726 (sqrt<mode>2): Check TARGET_RECIP_SQRT.
9727 * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
9728 (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
9729 * i386/i386.c (ix86_option_override_internal): Set recip_mask
9730 for -mrecip and -mrecip=options.
9731 (ix86_function_specific_save): Save recip_mask_explicit.
9732 (ix86_function_specific_restore): Restore recip_mask_explicit.
9734 * doc/invoke.texi (ix86 Options): Document the new option.
9736 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
9739 * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
9741 2011-10-06 Ulrich Weigand <ulrich.weigand@linaro.org>
9744 * config/arm/arm.c (arm_legitimize_reload_address): Recognize
9745 output of a previous pass through legitimize_reload_address.
9746 Do not attempt to optimize addresses if the base register is
9747 equivalent to a constant.
9749 2011-10-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9751 * function.c (thread_prologue_and_epilogue_insns): Mark
9752 last_bb_active as possibly unused. It is unused for targets which
9753 do neither have "return" nor "simple_return" expanders.
9755 2011-10-06 Richard Guenther <rguenther@suse.de>
9757 * fold-const.c (fold_ternary_loc): Also fold non-constant
9758 vector CONSTRUCTORs. Make more efficient.
9759 * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
9760 (cprop_into_stmt): Don't propagate into virtual operands.
9761 (optimize_stmt): Really dump original statement.
9763 2011-10-06 Nick Clifton <nickc@redhat.com>
9765 * config/rx/rx.md (smin3): Revert previous delta.
9767 2011-10-06 Richard Guenther <rguenther@suse.de>
9769 PR tree-optimization/38884
9770 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
9771 reads from aggregate SSA names.
9773 2011-10-05 Jakub Jelinek <jakub@redhat.com>
9775 * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
9776 argument, truncate it at the beginning instead of allocating there
9777 and freeing at the end.
9778 (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
9779 pass its address to vect_pattern_recog_1.
9781 2011-10-05 David S. Miller <davem@davemloft.net>
9783 * config/sparc/sparc.opt (POPC): New option.
9784 * doc/invoke.texi: Document it.
9785 * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
9786 default on Niagara-2 and later.
9787 * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
9788 * config/sparc/sparc.md (SIDI): New mode iterator.
9789 (ffsdi2): Delete commented out pattern and comments.
9790 (popcount<mode>2, clz<mode>2): New expanders.
9791 (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
9792 *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
9794 2011-10-06 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
9797 * c-tree.h (c_expr_t): New typedef for struct c_expr.
9798 (C_EXPR_APPEND): New macro.
9799 * c-parser.c (c_parser_get_builtin_args): Preserve
9800 original_tree_code of c_expr structure.
9801 (c_parser_postfix_expression): Adjust to the new function.
9803 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
9805 * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
9806 if profiling after the prologue.
9808 2011-10-05 Jakub Jelinek <jakub@redhat.com>
9810 PR tree-optimization/50613
9811 * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
9812 operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
9813 and if it is neither that not SSA_NAME, give up.
9815 2011-10-05 Richard Henderson <rth@redhat.com>
9817 * tree-vect-generic.c (vector_element): Never fail. Use
9818 build_zero_cst. Tidy up type references.
9819 (lower_vec_shuffle): Never fail. Mask shuffle indicies. Reduce
9820 code duplication. Do update_stmt here ...
9821 (expand_vector_operations_1): ... not here.
9823 * config/i386/i386.c (ix86_expand_vshuffle): Never fail. Handle
9824 TARGET_XOP. Fix pshufb constant vector creation. Reduce code
9825 duplication. Handle V2DI without SSE4.1.
9826 * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
9827 * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
9829 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
9831 * config/i386/i386.c (distance_non_agu_define): Simplify calculation
9832 of "found". Simplify return value calculation.
9833 (distance_agu_use): Ditto.
9835 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
9838 * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
9839 if the function was not shrink-wrapped.
9840 (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
9842 * function.c (thread_prologue_and_epilogue_insns): Make sure the
9843 shrink_wrapped flag is set even if there is no dump file.
9845 2011-10-05 DJ Delorie <dj@redhat.com>
9846 Nick Clifton <nickc@redhat.com>
9848 * config/rx/rx.opt (mpid): Define.
9849 * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
9850 (MULTILIB_DIRNAMES): Add pid.
9851 * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
9852 (rx_num_interrupt_regs): New variable.
9853 (rx_gp_base_regnum): New function. Returns the number of the
9854 small data area register.
9855 (rx_pid_base_regnum): New function. Returns the number of the pid
9857 (rx_decl_for_addr): New function. Returns the symbolic part of a MEM.
9858 (rx_pid_data_operand): New function. Returns whether an object is
9859 in the position independent data area.
9860 (rx_legitimize_address): New function. Puts undecided PID
9861 objects in the PID data area.
9862 (rx_is_legitimate_address): Add support for PID operands.
9863 (rx_print_operand_address): Likewise.
9864 (rx_print_operand): Likewise.
9865 (rx_maybe_pidify_operand): New function. Determine if an operand
9866 is suitable for PID addressing.
9867 (rx_gen_move_template): Add PID support.
9868 (rx_conditional_register_usage): Likewise.
9869 (rx_option_override): Initialise rx_num_interrupt_regs.
9870 (rx_is_legitimate_constant): Add support for PID constants.
9871 (TARGET_LEGITIMIZE_ADDRESS): Define.
9872 * config/rx/constraints.md (Rpid): Define.
9874 * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
9875 (tablejump): Add PID support.
9877 (mov<>_internal): Likewise.
9878 (addsi3): Convert to an expander. Add PID support.
9879 (pid_addr): New pattern.
9880 * config/rx/rx.h (CPP_SPEC): Define.
9881 (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
9882 (CASE_VECTOR_PC_RELATIVE): Define.
9883 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
9884 * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
9885 * doc/invoke.texi (RX Options): Document -mpid command line option.
9887 2011-10-05 Richard Guenther <rguenther@suse.de>
9889 PR tree-optimization/38885
9890 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
9893 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
9895 * doc/invoke.texi (-fshrink-wrap): Document.
9896 * opts.c (default_options_table): Add it.
9897 * common.opt (fshrink-wrap): Add.
9898 * function.c (emit_return_into_block): Remove useless declaration.
9899 (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
9900 requires_stack_frame_p, gen_return_pattern): New static functions.
9901 (emit_return_into_block): New arg simple_p. All callers changed.
9902 Use gen_return_pattern.
9903 (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
9904 * config/i386/i386.md (return): Expand into a simple_return.
9905 (simple_return): New expander):
9906 (simple_return_internal, simple_return_internal_long,
9907 simple_return_pop_internal_long, simple_return_indirect_internal):
9908 Renamed from return_internal, return_internal_long,
9909 return_pop_internal_long and return_indirect_internal; changed to use
9911 * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
9913 (ix86_pad_returns): Likewise.
9914 * function.h (struct rtl_data): Add member shrink_wrapped.
9915 * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
9916 are not jumps or sibcalls can't be compared.
9918 2011-10-05 Richard Guenther <rguenther@suse.de>
9920 * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
9922 (simplify_unary_expression): Handle BIT_FIELD_REFs.
9923 (try_to_simplify): Handle BIT_FIELD_REFs.
9925 2011-10-05 Georg-Johann Lay <avr@gjlay.de>
9927 * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
9928 * config/avr/avr.c (avr_out_addto_sp): New function.
9929 (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
9930 * config/avr/avr.md (adjust_len): Add "addto_sp".
9931 (*movhi_sp): Remove insn.
9932 (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
9934 2011-10-05 Richard Guenther <rguenther@suse.de>
9936 * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
9937 with an embedded expression valueize and fold that as well.
9938 * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
9939 results from gimple_fold_stmt_to_constant_1.
9941 2011-10-05 Nick Clifton <nickc@redhat.com>
9943 * config/rx/rx.md (tablejump): Add missing label.
9944 (adddi3_internal): Mark operand 0 as early-clobbered.
9945 (smaxsi3): Revert previous delta.
9946 (adc_internal): Fix whitespace in generated asm.
9947 (adc_flags): Likewise.
9949 2011-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9951 * expmed.c (expand_mult_highpart_optab): Replace optab_handler
9952 with the new widening_optab_handler.
9954 2011-10-05 Richard Guenther <rguenther@suse.de>
9956 PR tree-optimization/50609
9957 * gimple-fold.c (fold_array_ctor_reference): Also handle
9958 vector typed constructors.
9959 (fold_ctor_reference): Dispatch to fold_array_ctor_reference
9960 for vector typed constructors.
9962 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
9964 * config/i386/i386.c (ix86_emit_binop): New static function.
9965 (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
9967 (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
9969 2011-10-04 David S. Miller <davem@davemloft.net>
9971 * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
9972 UNSPEC_XMUL): New unspecs.
9973 (muldi3_v8plus): Use output_v8plus_mult.
9974 (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
9975 New VIS 3.0 combiner patterns.
9976 (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
9977 fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
9978 umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
9979 xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
9981 * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
9982 (output_v8plus_mult): New function.
9983 * config/sparc/sparc-protos.h: Declare it.
9984 * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
9985 __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
9986 __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
9987 * doc/extend.texi: Document new builtins.
9989 2011-10-04 Richard Henderson <rth@redhat.com>
9991 * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
9992 Avoid save_expr unless two_arguments.
9994 2011-10-04 Ozkan Sezer <sezeroz@gmail.com>
9996 * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
9997 * config/i386/mingw32.h (CPP_SPEC): Likewise.
9999 2011-10-04 David S. Miller <davem@davemloft.net>
10001 * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
10004 2011-10-04 Jakub Jelinek <jakub@redhat.com>
10006 PR tree-optimization/50604
10007 * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
10008 fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
10009 last argument to memcpy has size_type_node type instead of ssizetype.
10010 * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
10011 instead of TREE_TYPE (len) as type for newlen.
10013 PR tree-optimization/50522
10014 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
10016 (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
10019 * fold-const.c (fold_unary_loc): Don't optimize
10020 POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
10021 casting the inner pointer if it isn't TYPE_RESTRICT.
10022 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
10023 casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
10025 2011-10-04 Joseph Myers <joseph@codesourcery.com>
10027 * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
10029 2011-10-04 Jan Hubicka <jh@suse.cz>
10031 * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
10032 * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
10033 * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
10034 * lto-cgraph.c (order_base): New static var.
10035 (lto_output_node): Stream in order.
10036 (lto_output_varpool_node): Stream out order.
10037 (input_node): Stream in order.
10038 (input_varpool_node): Stream out order.
10039 (input_cgraph_1): Initialize order base; update call of
10040 lto_input_toplevel_asms.
10042 2011-10-04 Georg-Johann Lay <avr@gjlay.de>
10045 * config/avr/avr-protos.h (avr_legitimize_reload_address): New
10047 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
10049 * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
10050 function. Log if avr_log.legitimize_reload_address.
10052 2011-10-04 Eric Botcazou <ebotcazou@adacore.com>
10054 * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
10056 2011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10058 * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
10059 variables. Fix second operand of DR. Swap inputs for sdiv_qrnnd.
10061 2011-10-03 David S. Miller <davem@davemloft.net>
10063 * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
10064 GSR_REG an input operand to UNSPEC instead of a parallel USE.
10065 (faligndata<V64I:mode>_vis): Likewise and use DI mode.
10066 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
10067 Reference GSR_REG in DI mode, simplify convoluted expressions by using
10069 (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
10071 2011-10-03 Maxim Kuvyrkov <maxim@codesourcery.com>
10073 * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
10075 2011-10-03 Jakub Jelinek <jakub@redhat.com>
10076 Ian Lance Taylor <iant@google.com>
10078 * godump.c (go_output_typedef): Support printing enum values that
10079 don't fit in a signed HOST_WIDE_INT.
10081 2011-10-03 Anatoly Sokolov <aesok@post.ru>
10083 * config/cris/cris.c (cris_output_addr_const_extra): Make static.
10084 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10085 * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10086 * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
10088 2011-10-03 Anatoly Sokolov <aesok@post.ru>
10090 * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
10091 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10092 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10093 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
10095 2011-10-03 Steve Ellcey <sje@cup.hp.com>
10098 * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
10099 (gcc_cv_ld_static_option): Ditto.
10100 (gcc_cv_ld_dynamic_option): Ditto.
10101 * configure: Regenerate.
10103 2011-10-03 David S. Miller <davem@davemloft.net>
10105 * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
10106 and 'si' patterns which describe the GSR changes explicitly in the
10107 RTL using zero_extract.
10108 (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
10110 * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
10111 GSR_REG in a USE, since it's now a true arg to the UNSPEC.
10113 2011-10-03 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
10115 * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
10116 if given expression can be expanded by the target.
10117 (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
10118 using target vector instructions.
10119 * optabs.h: New optab vshuffle.
10120 (expand_vec_shuffle_expr_p): New prototype.
10121 (expand_vec_shuffle_expr): New prototype.
10122 (vshuffle_optab): New optab.
10123 * genopinit.c: Adjust to support vecshuffle.
10124 * c-tree.h (c_build_vec_shuffle_expr): New prototype.
10125 * expr.c (expand_expr_real_2): Adjust.
10126 * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
10127 recognizing the cases of two and three arguments.
10128 (convert_arguments) (build_binary_op)
10129 (scalar_to_vector) (build_array_ref): Spurious whitespace.
10130 * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
10131 * tree.def: New tree code VEC_SHUFFLE_EXPR.
10132 * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
10133 * tree-vect-generic.c (vector_element): New function. Returns an
10134 element of the vector at the given position.
10135 (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
10136 by the backend or expand an expression piecewise.
10137 (expand_vector_operations_1): Adjusted.
10138 (gate_expand_vector_operations_noop): New gate function.
10139 * Makefile.in (tree-vect-generic.o): New include.
10140 * gimple.c (get_gimple_rhs_num_ops): Adjust.
10141 * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
10142 * passes.c: Move veclower down.
10143 * tree-pretty-print.c (dump_generic_node): Recognize
10144 VEC_SHUFFLE_EXPR as valid expression.
10145 * c-parser.c (c_parser_get_builtin_args): Helper function for the
10146 builtins with variable number of arguments.
10147 (c_parser_postfix_expression): Use a new helper function for
10148 RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
10149 * tree-ssa-operands: Adjust.
10150 * c-family/c-common.c: New __builtin_shuffle keyword.
10151 * c-family/c-common.h: New __builtin_shuffle keyword.
10152 * gcc/doc/extend.texi: Adjust.
10154 * gcc/config/i386/sse.md: (sseshuffint) New mode_attr. Correspondence
10155 between the vector and the type of the mask when shuffling.
10156 (vecshuffle<mode>): New expansion.
10157 * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
10158 * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
10159 (ix86_vectorize_builtin_vec_perm_ok): Adjust.
10161 2011-10-03 Jakub Jelinek <jakub@redhat.com>
10163 PR tree-optimization/50587
10164 * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
10165 arg0 is not a SSA_NAME.
10167 2011-10-03 Richard Sandiford <rdsandiford@googlemail.com>
10169 * ipa-inline-analysis.c (MAX_TIME): Update comment.
10171 2011-10-02 Richard Henderson <rth@redhat.com>
10172 David S. Miller <davem@davemloft.net>
10174 * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
10175 conditional insn type setting, we always emit a shift.
10176 (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
10177 (*lshrsi3_extend): Rename to *lshrsi3_extend1.
10178 * config/sparc/predicates.md (const_one_operand): Delete.
10180 2011-10-02 Gerald Pfeifer <gerald@pfeifer.com>
10182 * invoke.texi (SPARC Options): Refer to GNU/Linux.
10184 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
10186 * config/mips/mips.c (mips_frame_barrier): New function.
10187 (mips_expand_prologue): Call it after allocating stack space.
10188 (mips_deallocate_stack): New function.
10189 (mips_expand_epilogue): Call mips_frame_barrier and
10190 mips_deallocate_stack.
10192 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
10195 * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
10196 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
10197 (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
10199 2011-10-02 Jan Hubicka <jh@suse.cz>
10201 * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
10203 * cgraphunit.c (ipa_passes): Remove unrechable nodes.
10204 * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
10205 * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
10206 functions are reachable when address is taken.
10207 * tree-sra.c (modify_function): Free dominance info.
10209 2011-10-02 Jan Hubicka <jh@suse.cz>
10211 * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
10213 * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
10214 (reset_inline_summary): New function.
10215 (compute_inline_parameters, inline_node_removal_hook,
10216 inline_edge_removal_hook): Use it.
10217 (inline_free_summary): Reset holders correctly.
10218 (inline_generate_summary): Free summary before computing it.
10220 2011-10-02 Paolo Carlini <paolo.carlini@oracle.com>
10222 PR preprocessor/36819
10223 * incpath.c (merge_include_chains): Call free_path on
10224 heads[QUOTE] and tails[QUOTE].
10226 2011-10-02 Jan Hubicka <jh@suse.cz>
10229 * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
10230 when resolution is already availbale from plugin.
10231 (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
10232 * cgraph.c (ld_plugin_symbol_resolution): Add
10233 prevailing_def_ironly_exp.
10234 * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
10235 * ipa.c (varpool_externally_visible_p): IRONLY variables are never
10236 externally visible.
10237 * varasm.c (resolution_to_local_definition_p): Add
10238 LDPR_PREVAILING_DEF_IRONLY_EXP.
10239 (resolution_local_p): Likewise.
10241 2011-10-01 David S. Miller <davem@davemloft.net>
10243 * config/sparc/sparc.opt (VIS3): New option.
10244 * doc/invoke.texi: Document it.
10245 * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
10246 not capable of such instructions.
10247 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
10248 to 0x300 when TARGET_VIS3.
10249 * config/sparc/sparc-modes.def: Create 16-byte vector modes.
10250 * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
10251 UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
10252 (V64N8, VASS): New mode iterators.
10253 (vis3_shift, vis3_addsub_ss): New code iterators.
10254 (vbits, vconstr): New mode attributes.
10255 (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
10256 (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
10257 fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
10258 fmean16_vis, fpadd64_vis, fpsub64_vis,
10259 <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
10260 VIS 3.0 instruction patterns.
10261 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
10262 default when targetting capable cpus. TARGET_VIS3 implies
10263 TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
10264 (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
10265 (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
10267 * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
10268 __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
10269 __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
10270 __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
10271 __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
10272 __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
10273 __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
10274 __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
10275 * doc/extend.texi: Document new VIS 3.0 builtins.
10277 2011-10-01 Eric Botcazou <ebotcazou@adacore.com>
10279 * ira-color.c (assign_hard_reg): Fix typo.
10281 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
10283 * doc/extend.texi: Add missing ','.
10285 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
10287 * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
10288 Enable -fmodulo-sched at -O2 and above.
10289 * config/c6x/c6x.md (doloop_end): New expander.
10290 (mvilc, sploop, spkernel, loop_end): New patterns.
10291 (loop_end with memory destination splitter): New.
10292 * config/c6x/c6x.c: Include "hw-doloop.h".
10293 (enum unitreqs): New.
10294 (unit_req_table): New typedef.
10295 (unit_reqs): New static variable.
10296 (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
10297 res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
10298 hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
10299 hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
10300 (struct c6x_sched_context): New member last_scheduled_iter0.
10301 (init_sched_state): Initialize it.
10302 (c6x_variable_issue): Update it.
10303 (sploop_max_uid_iter0): New static variable.
10304 (c6x_sched_reorder_1): Be careful about issuing sploop.
10305 (c6x_reorg): Call c6x_hwlooops before the final schedule.
10307 2011-09-30 Georg-Johann Lay <avr@gjlay.de>
10310 * config/avr/avr-protos.h (avr_log_t): New field address_cost.
10311 * config/avr/avr.c (avr_address_cost): Use it.
10312 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
10313 (avr_log_vadump): Unknown %-codes finish printing.
10315 2011-09-30 Jakub Jelinek <jakub@redhat.com>
10317 PR inline-asm/50571
10318 * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
10319 input constraints allow mem and not reg, pass true instead of
10320 false as second argument to maybe_fold_reference.
10322 PR tree-optimization/46309
10323 * fold-const.c (make_range, merge_ranges): Remove prototypes.
10324 (make_range_step): New function.
10325 (make_range): Use it.
10326 * tree.h (make_range_step): New prototypes.
10327 * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
10328 * tree-ssa-reassoc.c: Include diagnostic-core.h.
10329 (struct range_entry): New type.
10330 (init_range_entry, range_entry_cmp, update_range_test,
10331 optimize_range_tests): New functions.
10332 (reassociate_bb): Call optimize_range_tests.
10334 2011-09-30 Jakub Jelinek <jakub@redhat.com>
10335 Richard Guenther <rguenther@suse.de>
10337 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
10338 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
10339 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise. Fix
10340 handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
10341 (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
10342 BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
10344 2011-09-30 Jan Beulich <jbeulich@suse.com>
10346 * lto-cgraph.c (output_cgraph): Remove processing of
10347 'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
10348 (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
10349 lto_input_toplevel_asms() instead.
10350 * lto-section-in.c (lto_section_name): Add "asm" entry.
10351 * lto-streamer-in.c (lto_input_toplevel_asms): New.
10352 * lto-streamer-out.c (lto_output_toplevel_asms): New.
10353 * lto-streamer.h (LTO_minor_version): Bump.
10354 (enum lto_section_type): Add LTO_section_asm.
10355 (struct lto_asm_header): New.
10356 (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
10357 * tree-streamer.h (streamer_write_string_cst): Declare.
10358 * tree-streamer-out.c (write_string_cst): Rename to
10359 streamer_write_string_cst and make global. Handle incoming string
10361 (streamer_write_tree_header): Adjust call to renamed function.
10363 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
10365 * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
10366 modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
10367 modulo_last_stage): New static variables.
10368 (set_modulo_params, discard_delay_pairs_above): New functions.
10369 (struct delay_pair): New member stages.
10370 (htab_i2_traverse, htab_i1_traverse): New static functions.
10371 (record_delay_slot_pair): New arg stages. All callers changed.
10373 (pair_delay): Take stages into account.
10374 (add_delay_dependencies): Don't do so for stage pairs.
10375 (struct sched_block_state): New member modulo_epilogue.
10376 (save_backtrack_point): Don't set SHADOW_P for stage pairs.
10377 (unschedule_insns_until): Decrease modulo_insns_scheduled.
10378 Set HARD_DEP without using or.
10379 (resolve_dependencies): New static function.
10380 (prune_ready_list): New arg modulo_epilogue_p. All callers changed.
10381 If it is true, allow only insns with INSN_EXACT_TICK set.
10382 (schedule_block): Return bool, always true for normal scheduling,
10383 true or false depending on modulo scheduling success otherwise.
10384 Add bookkeeping for modulo scheduling, and call resolve_dependencies
10385 on everything left over after a modulo schedule.
10386 (haifa_sched_init): Remove check_cfg call. Clear modulo_ii.
10387 * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
10389 (set_modulo_params, discard_delay_pairs_above): Declare.
10390 * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
10391 * doc/invoke.texi (--param): Document it.
10393 * sched-ebb.c (schedule_ebb): No longer static. Remove declaration.
10394 New arg modulo_scheduling. All callers changed. Move note handling
10395 code here from schedule_ebbs.
10396 (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
10397 out of schedule_ebbs.
10398 (schedule_ebbs): Call them. Remove note handling code moved to
10400 * sched-int.h (schedule_ebb, schedule_ebbs_init,
10401 schedule_ebbs_finish): Declare.
10403 2011-09-30 Richard Guenther <rguenther@suse.de>
10405 PR middle-end/50574
10406 * tree-cfg.c (verify_gimple_comparison): Compare component
10407 mode sizes for vector comparisons.
10409 2011-09-30 Revital Eres <revital.eres@linaro.org>
10411 * ddg.c (autoinc_var_is_used_p): New function.
10412 (create_ddg_dep_from_intra_loop_link,
10413 add_cross_iteration_register_deps): Call it.
10414 * ddg.h (autoinc_var_is_used_p): Declare.
10415 * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
10416 (sms_schedule): Handle instructions with REG_INC.
10418 2011-09-30 Revital Eres <revital.eres@linaro.org>
10420 * modulo-sched.c (generate_reg_moves): Skip instructions that
10421 do not set a register and verify no regmoves are created for
10422 !single_set instructions.
10424 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
10426 * hw-doloop.c (scan_loop): Compute register usage only for non-debug
10429 2011-09-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10432 * config/arm/iterators.md (qhs_zextenddi_cstr): New.
10433 (qhs_zextenddi_op): New.
10434 * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
10435 * config/arm/predicates.md ("arm_extendqisi_mem_op"):
10436 Distinguish between ARM and Thumb2 states.
10438 2011-09-30 David S. Miller <davem@davemloft.net>
10440 * config/sparc/sparc.opt (VIS2): New option.
10441 * doc/invoke.texi: Document it.
10442 * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
10443 UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
10444 UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
10445 (define_attr type): New insn type 'edgen'.
10446 (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
10447 edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
10448 edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
10450 * niagara.md: Handle edgen.
10451 * niagara2.md: Likewise.
10452 * ultra1_2.md: Likewise.
10453 * ultra3.md: Likewise.
10454 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
10455 to 0x200 when TARGET_VIS2.
10456 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
10457 default when targetting capable cpus. TARGET_VIS2 implies
10458 TARGET_VIS, clear and it when TARGET_FPU is disabled.
10459 (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
10460 (sparc_expand_builtin): Fix predicate indexing when builtin returns
10462 (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
10463 * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
10464 __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
10465 __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
10466 __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
10467 * doc/extend.texi: Document new VIS 2.0 builtins.
10469 2011-09-29 Nick Clifton <nickc@redhat.com>
10470 Bernd Schmidt <bernds@codesourcery.com>
10472 * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
10473 * config/frv/frvend.c: Likewise.
10474 * config/frv/frv.c (frv_function_prologue): Move misplaced
10475 CALL_ARG_LOCATION notes back to their proper locations.
10477 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
10480 * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
10481 * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
10482 from avr_rtx_costs.
10483 (avr_legitimate_address_p): Use avr_edump to print log information
10484 filtered by avr_log.
10485 (extra_constraint_Q): Ditto.
10486 (avr_legitimize_address): Ditto.
10487 (avr_rtx_costs): Ditto. Rewrite as wrapper for avr_rtx_costs_1.
10488 (final_prescan_insn): Use avr_log.rtx_costs as filter.
10490 2011-09-29 Richard Sandiford <richard.sandiford@linaro.org>
10492 * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
10493 * config/arm/arm.h (MODES_TIEABLE_P): Use it.
10494 * config/arm/arm.c (arm_modes_tieable_p): New function. Allow
10495 NEON vector and structure modes to be tied.
10497 2011-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10499 * graphite-scop-detection.c (make_close_phi_nodes_unique): New
10500 forward declaration.
10501 (remove_duplicate_close_phi): Detect and repair creation of
10502 duplicate close-phis for a containing loop.
10504 2011-09-27 Andi Kleen <ak@linux.intel.com>
10506 * gcc.c (get_local_tick). Rename to get_random_number. Read from
10507 /dev/urandom. Add getpid call.
10508 (compare_debug_dump_opt_spec_function): Drop getpid call.
10510 2011-09-26 Andi Kleen <ak@linux.intel.com>
10512 * toplev.c (init_local_tick): Try reading random seed
10515 2011-09-26 Andi Kleen <ak@linux.intel.com>
10517 * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
10518 * lto-streamer.c (lto_get_section_name): Remove crc32_string.
10519 Handle numerical random seed.
10520 * lto-streamer.h (lto_file_decl_data): Change id to
10521 unsigned HOST_WIDE_INT.
10522 * toplev.c (random_seed): Add.
10523 (init_random_seed): Change for numerical random seed.
10524 (get_random_seed): Return as HOST_WIDE_INT.
10525 (set_random_seed): Crc32 existing string.
10526 * toplev.h (get_random_seed): Change to numercal return.
10527 * tree.c (get_file_function_name): Remove CRC. Handle
10528 numerical random seed.
10530 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
10533 * config.gcc (extra_objs): Add avr-log.o for $target in:
10534 avr-*-rtems*, avr-*-*.
10535 * config/avr/t-avr (avr-log.o): New rule to compile...
10536 * config/avr/avr-log.c: ...this new file.
10537 * config/avr/avr.opt (mlog=): New option.
10538 * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
10539 (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
10540 (avr_log_set_avr_log): New prototype.
10541 (avr_log_t): New typedef.
10542 (avr_log): New declaration.
10543 * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
10545 2011-09-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
10547 * expr.c (do_store_flag): Expand vector comparison by
10548 building an appropriate VEC_COND_EXPR.
10549 * c-typeck.c (build_binary_op): Typecheck vector comparisons.
10550 (c_objc_common_truthvalue_conversion): Adjust.
10551 * tree-vect-generic.c (do_compare): Helper function.
10552 (expand_vector_comparison): Check if hardware supports
10553 vector comparison of the given type or expand vector piecewise.
10554 (expand_vector_operation): Treat comparison as binary
10555 operation of vector type.
10556 (expand_vector_operations_1): Adjust.
10558 2011-09-29 Richard Guenther <rguenther@suse.de>
10560 * tree.c (build_opaque_vector_type): Make opaque vectors
10561 variant types of the corresponding non-opaque type. Make
10562 sure to share opaque vector types properly.
10564 2011-09-29 David S. Miller <davem@davemloft.net>
10566 * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
10567 UNSPEC_ARRAY32): New unspec.
10568 (define_attr type): New type 'array'.
10569 (array{8,16,32}<P:mode>_vis): New patterns.
10570 * config/sparc/ultra1_2.md: Add reservations for 'array'.
10571 * config/sparc/ultra3.md: Likewise.
10572 * config/sparc/niagara.md: Likewise.
10573 * config/sparc/niagara2.md: Likewise.
10574 * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
10576 * config/sparc/visintrin.h (__vis_array8, __vis_array16,
10577 __vis_array32): New.
10578 * doc/extend.texi: Document new VIS builtins.
10580 * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
10581 (VIS pixel-compare insn): Just use <gcond:name>.
10583 * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
10584 code iterator used, so just use <code>. There are two mode iterators
10585 so explicitly use <GCM:gcm_name>.
10587 2011-09-29 Iain Sandoe <iains@gcc.gnu.org>
10589 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
10592 2011-09-28 David S. Miller <davem@davemloft.net>
10594 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
10595 UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
10596 (UNSPEC_FCMP): New unspec.
10597 (gcond): New code iterator.
10598 (gcond_name): New code attr.
10599 (GCM): New mode iterator.
10600 (gcm_name): New mode attr.
10601 (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
10603 2011-09-28 Oleg Endo <oleg.endo@t-online.de>
10606 * config/sh/sh.md (negdi2): Move expansion into split to
10607 allow more combination options. Add T_REG clobber.
10608 (abssi2): New expander.
10609 (*negdi2, *abssi2, *negabssi2): New insns.
10610 (cneg): Change from insn to insn_and_split. Rename to
10611 negsi_cond. Add alternative for non-SH4.
10613 2011-09-28 Richard Sandiford <richard.sandiford@linaro.org>
10615 * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
10616 (neon_move_hi_quad_<mode>): Likewise.
10617 (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
10619 2011-09-28 Nick Clifton <nickc@redhat.com>
10621 * config/rx/predicates.md (rx_minmax_operand): New predicate.
10622 Accepts immediates and a restricted subset of MEMs.
10623 * config/rx/rx.md (int_modes): New iterator.
10624 (smaxsi3, sminsi3): Delete and replace with...
10625 (smax<int_mode>3, smin<int_mode>3): New patterns.
10626 (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
10628 2011-09-28 Richard Guenther <rguenther@suse.de>
10630 PR middle-end/50460
10631 * fold-const.c (try_move_mult_to_index): Handle &a.array the
10632 same as &a.array[0].
10634 2011-09-28 Kai Tietz <ktietz@redhat.com>
10636 * configure.ac: Add test for new section attribute
10637 specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
10638 * config.in: Regenerated.
10639 * configure: Regenerated.
10640 * config/i386/winnt.c (i386_pe_asm_named_section): Emit
10641 new section flag "e" for excluded sections, if supported.
10642 Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
10644 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
10646 * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
10649 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
10651 * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
10654 2011-09-27 Sriraman Tallam <tmsriram@google.com>
10656 * output.h (SECTION_EXCLUDE): New macro.
10657 * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
10659 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
10661 * fwprop.c (forward_propagate_and_simplify): After checking
10662 reg/subreg combinations, check whether the modes are the same.
10664 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
10665 Richard Sandiford <rdsandiford@googlemail.com>
10667 * config/mips/mips.c (mips_add_cfa_restore): New function.
10668 (mips16e_save_restore_reg): Use it.
10669 (mips_restore_reg): Likewise. Split double FPRs for
10670 REG_CFA_RESTORE notes.
10672 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
10674 PR middle-end/50386
10675 PR middle-end/50326
10676 * tree-sra.c (build_ref_for_model): Use the type of the field as
10677 the type of the COMPONENT_REF.
10679 2011-09-27 Jeff Law <law@redhat.com>
10681 * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument. Scale
10682 non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
10683 (find_if_case_1): Use the probability of the THEN clause when
10684 determining if speculation is profitable.
10685 (find_if_case_2): Similarly for the ELSE clause.
10687 2011-09-27 Jakub Jelinek <jakub@redhat.com>
10689 * common.opt: Add -foptimize-strlen option.
10690 * Makefile.in (OBJS): Add tree-ssa-strlen.o.
10691 (tree-sssa-strlen.o): Add dependencies.
10692 * opts.c (default_options_table): Enable -foptimize-strlen
10693 by default at -O2 if not -Os.
10694 * passes.c (init_optimization_passes): Add pass_strlen
10695 after pass_object_sizes.
10696 * timevar.def (TV_TREE_STRLEN): New timevar.
10697 * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
10698 * tree-pass.h (pass_strlen): Declare.
10699 * tree-ssa-strlen.c: New file.
10700 * c-decl.c (merge_decls): If compatible stpcpy prototype
10701 is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
10703 2011-09-27 Tom de Vries <tom@codesourcery.com>
10705 PR middle-end/43864
10706 * tree-ssa-tail-merge.c: New file.
10707 (struct same_succ_def): Define.
10708 (same_succ, const_same_succ): New typedef.
10709 (struct bb_cluster_def): Define.
10710 (bb_cluster, const_bb_cluster): New typedef.
10711 (struct aux_bb_info): Define.
10712 (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
10713 (gvn_uses_equal): New function.
10714 (same_succ_print, same_succ_print_traverse, update_dep_bb)
10715 (stmt_update_dep_bb, local_def, same_succ_hash)
10716 (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
10717 (same_succ_reset): New function.
10718 (same_succ_htab, same_succ_edge_flags)
10719 (deleted_bbs, deleted_bb_preds): New var.
10720 (debug_same_succ): New function.
10721 (worklist): New var.
10722 (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
10723 (init_worklist, delete_worklist, delete_basic_block_same_succ)
10724 (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
10725 (print_cluster, debug_cluster, update_rep_bb)
10726 (add_bb_to_cluster, new_cluster, delete_cluster): New function.
10727 (all_clusters): New var.
10728 (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
10729 (merge_clusters, set_cluster): New function.
10730 (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
10731 (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
10732 (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
10733 (find_clusters_1, find_clusters): New function.
10734 (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
10735 (update_bbs): New var.
10736 (apply_clusters): New function.
10737 (update_debug_stmt, update_debug_stmts): New function.
10738 (tail_merge_optimize): New function.
10739 tree-pass.h (tail_merge_optimize): Declare.
10740 * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
10741 * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
10742 (tree-ssa-tail-merge.o): New rule.
10743 * opts.c (default_options_table): Set OPT_ftree_tail_merge by
10744 default at OPT_LEVELS_2_PLUS.
10745 * tree-ssa-sccvn.c (vn_valueize): Move to ...
10746 * tree-ssa-sccvn.h (vn_valueize): Here.
10747 * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
10748 * common.opt (ftree-tail-merge): New switch.
10749 * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
10750 (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
10751 * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
10752 (-ftree-tail-merge, max-tail-merge-comparisons)
10753 (max-tail-merge-iterations): New item.
10755 2011-09-27 Jan Hubicka <jh@suse.cz>
10757 * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
10759 2011-09-27 Jan Hubicka <jh@suse.cz>
10761 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
10762 parameters passed by reference; handle loads from non-SSA scalars
10763 and update comments.
10765 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
10767 PR rtl-optimization/50249
10768 * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
10769 instead of opnum and type. All callers changed. Remove useless
10771 Search forward for other reloads of the same type for the same operand
10772 using the same register; if any are found, return false.
10773 (reload_regs_reach_end_p): Same argument changes; all callers changed.
10775 2011-09-27 Andi Kleen <ak@linux.intel.com>
10776 Jan Hubicka <jh@suse.cz>
10778 * doc/invoke.texi (ffat-lto-objects): Document.
10779 * toplev.c (compile_file): Do not output assembly when doing slim lto;
10780 Output __gnu_slim_lto when doing slim lto.
10781 * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
10782 (cgraph_optimize): Return early when doing slim lto.
10783 * opts.c (finish_options): Complain about lack of linker plugin
10784 when doing slim lto.
10785 * common.opt (ffat-lto-objects): New.
10787 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
10789 * ipa-inline-analysis.c (predicate_probability): Avoid comparison
10790 between signed and unsigned.
10792 2011-09-27 Ira Rosen <ira.rosen@linaro.org>
10794 * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
10796 (vectorizable_type_promotion): Likewise.
10797 (vect_analyze_stmt): Call vectorizable_type_demotion and
10798 vectorizable_type_promotion for basic blocks.
10799 (supportable_widening_operation): Don't assume loop vectorization.
10800 * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
10801 basic blocks. Update vectorization factor for basic block
10803 (vect_analyze_slp_instance): Allow multiple types for basic block
10804 vectorization. Recheck unrolling factor after construction of SLP
10807 2011-09-27 Richard Guenther <rguenther@suse.de>
10809 * tree-object-size.c (compute_object_sizes): Fix dumping of
10812 2011-09-27 Richard Guenther <rguenther@suse.de>
10814 PR tree-optimization/50363
10815 * tree-ssa-pre.c (create_expression_by_pieces): Handle
10816 pointer conversions in POINTER_PLUS_EXPRs properly.
10818 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
10820 * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
10821 (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
10822 (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
10823 (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
10824 that produce subreg moves. Define using VQX iterators.
10826 2011-09-27 Georg-Johann Lay <avr@gjlay.de>
10828 * config/avr/avr.md (ashrqi3): Split alternative "n"
10829 into its remaining parts C03, C04, C05, C06, C07 and describe
10830 impact in CC by attribute "cc" appropriately.
10831 * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
10834 2011-09-27 Jakub Jelinek <jakub@redhat.com>
10836 * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
10837 from 3 x MAX_MACHINE_MODE.
10838 (CONSTM1_RTX): Define.
10839 * emit-rtl.c (const_tiny_rtx): Change into array of
10840 4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
10841 (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
10843 (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
10844 MODE_VECTOR_INT modes.
10845 * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
10846 Optimize if one operand is CONSTM1_RTX.
10847 * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
10850 2011-09-26 David S. Miller <davem@davemloft.net>
10852 * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
10853 (fcmp{le,ne,gt,eq}{16,32}): Likewise.
10854 * config/sparc/visintrin.h: Update edge and pixel-compare
10855 intrinsics to return 'long' instead of 'int'.
10856 * doc/extend.texi: Update documentation to match.
10857 * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
10858 flat, allow any instruction. Otherwise, when V9 allow parallels
10859 which consist only of sets to registers outside of %o0 to %o5.
10860 (sparc_vis_init_builtins): Update VIS builtin types for edge
10863 * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
10864 is enabled, mark %gsr as global.
10865 * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
10866 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
10868 * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
10869 which will now define __VIS and __VIS__ when -mvis is enabled.
10870 * config/sparc/t-sparc: Likewise.
10871 * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
10872 and add t-sparc to tmake_file for all sparc targets.
10873 * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
10874 * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
10876 * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
10877 builtins for VIS vector addition and subtraction.
10878 * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
10879 __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
10880 __vis_fpsub32, __vis_fpsub32s): New.
10881 * doc/extend.texi: Document new VIS intrinsics.
10883 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
10885 * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
10886 * config/avr/avr.c (avr_out_compare): Print shorter sequence for
10887 EQ/NE comparisons against +/-1 in the case of unused-after,
10888 non-ld-regs target.
10890 2011-09-26 Jakub Jelinek <jakub@redhat.com>
10892 * gimple-fold.c (gimplify_and_update_call_from_tree): Set
10893 gctx.into_ssa after push_gimplify_context.
10895 * gimple.c (gimple_build_call_valist): New function.
10896 * gimple.h (gimple_build_call_valist): New prototype.
10897 * tree-ssa-propagate.c (finish_update_gimple_call): New function.
10898 (update_gimple_call): Likewise.
10899 (update_call_from_tree): Use finish_update_gimple_call.
10900 * tree-ssa-propagate.h (update_gimple_call): New prototype.
10902 2011-09-26 Richard Guenther <rguenther@suse.de>
10904 PR tree-optimization/50472
10905 * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
10906 volatile references.
10908 2011-09-26 Bingfeng Mei <bmei@broadcom.com>
10910 * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
10911 * target.def: (addr_space_subset_p): Likewise.
10913 2011-09-26 Tom de Vries <tom@codesourcery.com>
10915 * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
10916 * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
10917 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
10920 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
10923 * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
10924 * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
10925 output_reload_insisf.
10926 (adjust_len): Set default to "no".
10927 Remove alternative "yes". Add alternatives: "mov8", "mov16",
10928 "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
10929 "lshrhi", "ashlsi, "ashrsi", "lshrsi".
10930 (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
10931 *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
10932 *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
10933 *lshrsi3_const): Set attribute "adjust_len".
10934 * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
10935 (output_movsisf): Don't pass insn to output_reload_insisf.
10936 (adjust_insn_length): Handle new alternatives to adjust_len.
10937 Remove handling of ADJUST_LEN_YES. Clean-up code.
10939 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
10941 * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
10942 may_trap_p to detect loads that may trap of fault.
10944 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
10946 * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
10947 * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
10948 (*reload_inhi): Use it. Adapt call to output_reload_inhi to new
10950 (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
10951 * config/avr/avr.c: Rename output_reload_insisf_1 to
10952 output_reload_in_const.
10953 (avr_popcount_each_byte): Handle SFmode, too.
10954 (output_reload_in_const): Change so it can handle HI loads, too.
10955 Use avr_popcount_each_byte to work out if scratch register must be
10956 created on the fly.
10957 (output_reload_inhi): Rewrite using output_reload_in_const and...
10958 (output_movhi): ...use it to print constants' loads.
10959 (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
10961 2011-09-25 David S. Miller <davem@davemloft.net>
10963 * config/sparc/constraints.md (C, P, Z): New constraints for
10964 const_doube, const_int, and const_vector "all ones" values.
10965 Make unused constraint letters comment match reality.
10966 * config/sparc/predicates.md (const_all_ones_operand,
10967 register_or_zero_or_all_ones_operand): New predicates.
10968 * config/sparc/sparc.c (sparc_expand_move): Allow all ones
10969 as well as zero constants when VIS.
10970 (sparc_legitimate_constant_p): Likewise.
10971 * config/sparc/sparc.md (movsi_insn): Add fones alternative.
10972 (movsf_insn): Likewise
10973 (movdi_insn_sp64): Add fone alternative.
10974 (movdf_insn_sp32_v9): Likewise.
10975 (movdf_insn_sp64): Likewise.
10977 * configure.ac: Add feature check to make sure the assembler
10978 supports the FMAF, HPC, and VIS 3.0 instructions found on
10979 Niagara-3 and later cpus.
10980 * configure: Rebuild.
10981 * config.in: Likewise.
10982 * config/sparc/sparc.opt: New option '-mfmaf'.
10983 * config/sparc/sparc.md: Add float fused multiply-add patterns.
10984 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
10985 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
10986 * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
10987 ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
10988 * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
10989 by default for Niagara-3 and later. Turn it off if TARGET_FPU is
10991 (sparc_rtx_costs): Handle 'FMA'.
10992 * doc/invoke.texi: Document -mfmaf.
10994 2011-09-25 Jakub Jelinek <jakub@redhat.com>
10996 * tree-ssa-structalias.c (intra_create_variable_infos): Treat
10997 TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
10998 DECL_BY_REFERENCE parameters.
11000 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
11002 * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
11003 if there is no outgoing edge.
11005 * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
11008 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
11010 * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
11011 of vect_analyze_bb here.
11012 (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
11014 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
11016 * tree-data-ref.c (dr_analyze_innermost): Add new argument.
11017 Allow not simple iv if analyzing basic block.
11018 (create_data_ref): Update call to dr_analyze_innermost.
11019 (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
11020 * tree-loop-distribution.c (generate_memset_zero): Likewise.
11021 * tree-predcom.c (find_looparound_phi): Likewise.
11022 * tree-data-ref.h (dr_analyze_innermost): Add new argument.
11024 2011-09-24 David S. Miller <davem@davemloft.net>
11026 * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
11027 (SPARC_GSR_REG): Define.
11028 (FIXED_REGISTERS): Mark GSR as fixed.
11029 (CALL_USED_REGISTERS): Mark GSR as call used.
11030 (HARD_REGNO_NREGS): GSR is always 1 register.
11031 (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
11032 (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
11033 (REGISTER_NAMES): Add "%gsr".
11034 * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
11035 (UNSPEC_WRGSR): New unspec.
11036 (GSR_REG): New constant.
11037 (type): Add new insn type 'gsr'.
11038 (fpack16_vis, fpackfix_vis, fpack32_vis,
11039 faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
11040 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
11041 rdgsr_v8plus): New expanders and insns.
11042 (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
11043 using patterns which show that this is a plus in addition to a
11044 modification of GSR_REG, instead of an unspec.
11045 * config/sparc/ultra1_2.md: Handle 'gsr'.
11046 * config/sparc/ultra3.md: Likewise.
11047 * config/sparc/niagara.md: Likewise.
11048 * config/sparc/niagara2.md: Likewise.
11049 * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
11051 (sparc_option_override): Make -mvis imply -mv8plus.
11052 (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
11054 (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
11055 __builtin_vis_read_gsr.
11056 (sparc_expand_buildin): Handle builtins that take one argument and
11058 (sparc_fold_builtin): Never fold writes to %gsr.
11059 * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
11060 * doc/extend.texi: Document new VIS intrinsics.
11062 2011-09-23 Jan Hubicka <jh@suse.cz>
11064 * ipa-inline-transform.c (inline_call): Add comment.
11065 * ipa-inline.h (inline_param_summary): New structure and vector.
11066 (struct inline_edge_summary): Add param field.
11067 * ipa-inline-analysis.c (CHANGED): New constant.
11068 (add_clause): Handle CHANGED and NOT_CONSTANT.
11069 (predicate_probability): New function.
11070 (dump_condition): Dump CHANGED predicate.
11071 (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
11072 of unknown function wide invariant.
11073 (evaluate_conditions_for_edge): Handle change probabilities.
11074 (inline_edge_duplication_hook): Copy param summaries.
11075 (inline_edge_removal_hook): Free param summaries.
11076 (dump_inline_edge_summary): Fix dumping of indirect edges and callee
11077 sizes; dump param summaries.
11078 (will_be_nonconstant_predicate): Use CHANGED predicate.
11079 (record_modified_bb_info): New structure.
11080 (record_modified): New function.
11081 (param_change_prob): New function.
11082 (estimate_function_body_sizes): Compute param summaries.
11083 (estimate_edge_size_and_time): Add probability argument.
11084 (estimate_node_size_and_time): Add inline_param_summary argument;
11085 handle predicate probabilities.
11086 (remap_predicate): Fix formating.
11087 (remap_edge_change_prob): New function.
11088 (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
11089 (remap_edge_predicates): ... this one.
11090 (inline_merge_summary): Remap edge summaries; handle predicate
11091 probabilities; remove param summaries after we are done.
11092 (do_estimate_edge_time): Update.
11093 (do_estimate_edge_growth): Update.
11094 (read_inline_edge_summary): Read param info.
11095 (inline_read_summary): Fix formating.
11096 (write_inline_edge_summary): Write param summaries.
11098 2011-09-23 Jakub Jelinek <jakub@redhat.com>
11100 * config/i386/i386.c (ix86_print_operand): Handle %~.
11101 (ix86_print_operand_punct_valid_p): Return true also for '~'.
11102 * config/i386/sse.md (i128): New mode_attr.
11103 (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
11104 avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
11105 *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
11106 vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
11107 patterns, use "<sseinsnmode>" for "mode" attribute.
11108 (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
11109 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
11110 %~128 in the patterns, use "OI" for "mode" attribute.
11112 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
11115 * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
11116 "tstsi", "compare".
11117 (*cmpqi_sign_extend): Use s8_operand.
11118 (*cmphi, *cmpsi): Rewrite using avr_out_compare.
11119 * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
11121 (out_tsthi, out_tstsi): Remove prototypes.
11122 (avr_out_tsthi, avr_out_tstsi): New prototypes.
11123 * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
11124 (avr_asm_len): Negative length now sets *plen to -length.
11125 (compare_sign_p): Return bool instead of int.
11126 (compare_diff_p, compare_eq_p): Ditto and make static.
11127 (avr_out_tsthi): New function.
11128 (avr_out_tstsi): New function.
11129 (avr_out_compare): New function.
11130 (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
11131 ADJUST_LEN_COMPARE.
11133 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
11136 * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
11137 (addsi3): Rewrite using QI scratch register. Adjust text
11138 peepholes using plus:SI.
11139 (*addsi3_zero_extend.hi): New insn.
11140 (*subsi3_zero_extend.hi): New insn.
11141 (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
11142 (*subsi3_zero_extend): Ditto.
11143 (subsi3): Change predicate #2 to register_operand.
11144 * config/avr/avr-protos.h (avr_out_plus): New prototype.
11145 (avr_out_plus_1): New static function.
11146 (avr_out_plus): New function.
11147 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
11149 2011-09-23 Jakub Jelinek <jakub@redhat.com>
11151 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
11152 GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
11154 2011-09-23 Ian Lance Taylor <iant@google.com>
11156 * godump.c (go_define): Treat a single character in single quotes,
11157 or a string, as an operand.
11159 2011-09-23 Martin Jambor <mjambor@suse.cz>
11161 * ipa-prop.h (jump_func_type): Updated comments.
11162 (ipa_known_type_data): New type.
11163 (ipa_jump_func): Use it to describe known type jump functions.
11164 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
11165 reflect the new known type jump function contents.
11166 (compute_known_type_jump_func): Likewise.
11167 (combine_known_type_and_ancestor_jfs): Likewise.
11168 (try_make_edge_direct_virtual_call): Likewise.
11169 (ipa_write_jump_function): Likewise.
11170 (ipa_read_jump_function): Likewise.
11171 * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
11172 (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
11173 (propagate_accross_jump_function): Likewise.
11175 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
11178 * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
11179 (rotlqi3_4): Turn insn into expander.
11180 (*rotlqi3): New insn.
11181 (rotlhi3, rotlsi3): Support rotate left/right by 1.
11182 (*rotlhi2.1, *rotlhi2.15): New insns.
11183 (*rotlsi2.1, *rotlsi2.31): New insns.
11184 * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
11186 2011-09-23 Bin Cheng <bin.cheng@arm.com>
11188 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
11190 2011-09-22 Maxim Kuvyrkov <maxim@codesourcery.com>
11192 * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
11194 2011-09-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11196 * reload.c (find_reloads): Set operand_mode to Pmode for address
11197 operands consisting of just a CONST_INT.
11199 2011-09-22 Uros Bizjak <ubizjak@gmail.com>
11202 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
11203 blendv, force op_true to register if it doesn't satisfy
11204 nonimmediate_operand predicate.
11206 2011-09-22 Richard Sandiford <rdsandiford@googlemail.com>
11208 PR middle-end/50113
11209 PR middle-end/50061
11210 * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
11211 get the locate.where_pad value for register-only arguments.
11212 * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
11213 (arm_pad_reg_upward): Handle null types.
11215 2011-09-22 Jan Hubicka <jh@suse.cz>
11217 * ipa-inline-analysis.c: Fix overly long lines.
11219 2011-09-22 Jan Hubicka <jh@suse.cz>
11221 * ipa-inline-transform.c (inline_call): Always update jump functions
11223 * ipa-inline.c (ipa_inline): Likewise; do not call
11224 ipa_create_all_structures_for_iinln.
11225 (ipa_inline): Always free jump functions.
11226 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
11227 (remap_edge_predicates): Fix pasto.
11228 (inline_merge_summary): Remove nlined edge predicate; remove hack.
11229 (inline_analyze_function): Always initialize jump functions.
11230 (inline_generate_summary): Likewise.
11231 (inline_write_summary): Always write jump functions when ipa-cp
11233 (inline_read_summary): Always read jump functions when ipa-cp
11235 * ipa-prop.c (iinlining_processed_edges): Remove.
11236 (update_indirect_edges_after_inlining): Do not use
11237 iinlining_processed_edges; instead set param_index to -1.
11238 (propagate_info_to_inlined_callees): Only try to indirect inlining
11239 when asked to do so; update jump functions of indirect calls, too;
11240 remove jump functions of the inlined edge.
11241 (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
11242 (ipa_create_all_structures_for_iinln): Remove.
11243 (ipa_free_all_structures_after_iinln): Do not free
11244 iinlining_processed_edges.
11245 * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
11247 2011-09-22 Richard Sandiford <richard.sandiford@linaro.org>
11249 * config/arm/predicates.md (expandable_comparison_operator): New
11250 predicate, extracted from...
11251 (arm_comparison_operator): ...here.
11252 * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
11253 (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
11254 (movdfcc): Use expandable_comparison_operator.
11256 2011-09-22 Georg-Johann Lay <avr@gjlay.de>
11260 * config/avr/avr-protos.h (avr_out_bitop): New prototype.
11261 (avr_popcount_each_byte): New prototype.
11262 * config/avr/avr.c (avr_popcount): New static function.
11263 (avr_popcount_each_byte): New function.
11264 (avr_out_bitop): New function.
11265 (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
11266 avr_out_bitop. Cleanup code.
11267 * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
11268 (Ca4, Co4, Cx4): New constraints.
11269 * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
11271 (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
11272 (andsi3, iorsi3, xorsi3): Ditto.
11273 (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
11275 2011-09-22 Ira Rosen <ira.rosen@linaro.org>
11277 PR tree-optimization/50451
11278 * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
11279 constant operands in reduction.
11280 (vect_get_slp_defs): Don't create vector operand for NULL scalar
11283 2011-09-22 David S. Miller <davem@davemloft.net>
11285 * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
11286 fpack16, fpack32, fpackfix as const.
11288 * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
11289 I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
11290 constants. Use them everywhere.
11292 2011-09-22 Oleg Endo <oleg.endo@t-online.de>
11294 * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
11295 Added AND special case. Adapted comments.
11296 (sh_rtx_costs): Added XOR and IOR case.
11298 2011-09-21 Jan Hubicka <jh@suse.cz>
11300 * ipa-inline-analsis.c (compute_inline_parameters): Set
11301 cfun and current_function_decl.
11303 2011-09-21 Jan Hubicka <jh@suse.cz>
11305 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
11306 handled components in parameter of builtin_constant_p.
11307 (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
11309 2011-09-21 Jan Hubicka <jh@suse.cz>
11311 * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
11312 * ipa-inline.h (estimate_edge_time): Fix pasto.
11313 * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
11315 2011-09-21 Jakub Jelinek <jakub@redhat.com>
11317 * config/i386/i386.c (ix86_expand_sse_movcc): Use
11318 blendvps, blendvpd and pblendvb if possible.
11320 2011-09-21 Uros Bizjak <ubizjak@gmail.com>
11323 * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
11324 operand 1 predicate to register_operand and operand 2 predicate
11325 to nonimmediate_operand.
11326 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
11327 xop_pcmov, force op_true to register. Also, force op_false to
11328 register if it doesn't satisfy nonimmediate_operand predicate.
11330 2011-09-21 Kirill Yukhin <kirill.yukhin@intel.com>
11332 * config/i386/bmi2intrin.h (_mulx_u64): New.
11333 (_mulx_u32): Ditto.
11335 2011-09-21 Jan Hubicka <jh@suse.cz>
11337 PR tree-optimization/50433
11338 * ipa-inline-analysis.c (eliminated_by_inlining_prob):
11339 Use get_base_address.
11341 2011-09-21 Jakub Jelinek <jakub@redhat.com>
11343 * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
11344 nonimmediate_operand instead of register_operand predicate for operands
11345 1 and 2, force them into registers if expanding them as comparison.
11346 (<code><mode>3 umaxmin:VI124_128 expander): Similarly. For UMAX
11347 V8HImode force into register just operand 1.
11349 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
11352 * config/avr/avr.c (avr_function_arg_advance): Change error to
11353 warning if a fixed register is needed as function argument.
11355 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
11359 * config/avr/avr.md (adjust_len): New insn attribute.
11360 (*reload_insi, *reload_insf): Use it.
11361 (*movsi, *movsf): Use new interface of output_movsisf.
11362 * config/avr/avr-protos.h (output_movsisf): Change prototype.
11363 * config/avr/avr.c (output_movsisf): Ditto.
11364 (adjust_insn_length): Use insn attribute "adjust_len" to adjust
11365 lengths of insns *reload_insi, *reload_insf.
11366 (output_reload_insisf_1): New static function.
11367 (output_reload_insisf): Use it.
11369 2011-09-21 David S. Miller <davem@davemloft.net>
11371 * config/sparc/sparc.c (def_builtin): Change from macro into function.
11372 (def_builtin_const): New.
11373 (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
11374 other than alignaddr and falignaddr.
11376 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
11377 UNSPEC_FCMPEQ): New unspec codes.
11378 (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
11379 fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
11380 * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
11381 new pixel compare VIS patterns.
11382 * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
11383 __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
11384 __vis_fcmpeq16, __vis_fcmpeq32): New.
11385 * doc/extend.texi: Document new pixel compare VIS intrinsics.
11387 2011-09-21 Tom de Vries <tom@codesourcery.com>
11389 * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
11391 2011-09-20 David S. Miller <davem@davemloft.net>
11393 * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
11394 (aligneddrl<P:mode>_vis): New pattern.
11395 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
11396 edge32l_vis): Adjust to take Pmode arguments, and return SImode.
11397 * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
11398 alignaddrl insn, and adjust edge operations for updated types.
11399 * config/sparc/visintrin.h: Likewise.
11400 * doc/extend.texi: Make typing in VIS documentation match reality.
11402 2011-09-20 Terry Guo <terry.guo@arm.com>
11404 * config/arm/arm-arches.def: Add armv6s-m.
11405 * config/arm/arm-tables.opt: Regenerate.
11407 2011-09-20 Wei Guozhi <carrot@google.com>
11409 PR rtl-optimization/49452
11410 * postreload.c (reload_combine): Invalidate use information when across
11413 2011-09-19 Maxim Kuvyrkov <maxim@codesourcery.com>
11415 * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
11416 Remove maintenance overhead.
11417 (haifa_sched_init, sched_finish): Update.
11419 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
11421 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
11422 to calculate unit, prefix_rep and prefix_data16 attributes.
11423 (*mov<mode>_internal): Ditto for unit attribute.
11424 (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
11425 (*movv2sf_internal): Ditto.
11426 * config/i386/sse.md (VI1248_256): Remove mode iterator.
11427 (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
11428 (*avx2_eq<mode>3): Ditto.
11429 (avx2_gt<mode>3): Ditto.
11431 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
11433 * config/i386/i386.md (maxmin): New code iterator.
11434 * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
11435 from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
11437 (*avx2_<maxmin:code><mode>3): Macroize isn from
11438 *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
11439 maxmin code iterator.
11440 (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
11441 (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
11442 <umaxmin:code>v16qi3.
11444 2011-09-19 Alan Modra <amodra@gmail.com>
11445 Michael Meissner <meissner@linux.vnet.ibm.com>
11448 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
11449 split the load of the indirect function's TOC from the call to
11450 prevent the compiler from moving the load of the new TOC above
11451 code that references the current function's TOC.
11452 (call_indirect_aix<ptrsize>_internal): Ditto.
11453 (call_indirect_aix<ptrsize>_nor11): Ditto.
11454 (call_indirect_aix<ptrsize>_internal2): Ditto.
11455 (call_value_indirect_aix<ptrsize>): Ditto.
11456 (call_value_indirect_aix<ptrsize>_internal): Ditto.
11457 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
11458 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
11460 2011-09-19 Jakub Jelinek <jakub@redhat.com>
11462 * config/i386/sse.md (*sse4_1_extractps): Change into
11463 define_insn_and_split, add =x 0 n and =x x n alternatives
11464 and split them after reload.
11466 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
11468 * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
11470 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
11472 * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
11474 2011-09-19 Ira Rosen <ira.rosen@linaro.org>
11476 PR tree-optimization/50413
11477 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
11478 a basic block if one of its data-refs can't be analyzed.
11480 2011-09-19 Paul Brook <paul@codesourcery.com>
11482 * config/arm/predicates.md (shift_amount_operand): Check constant
11483 shift count is in range.
11484 (const_shift_operand): Remove.
11486 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
11487 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11490 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
11491 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
11493 2011-09-18 H.J. Lu <hongjiu.lu@intel.com>
11495 * config/i386/bmiintrin.h: Remove tmp.
11496 * config/i386/tbmintrin.h: Likewise.
11498 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
11500 PR tree-optimization/50414
11501 * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
11504 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
11506 PR tree-optimization/50412
11507 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
11508 acceses that require epilogue loop if vectorizing outer loop.
11510 2011-09-17 David S. Miller <davem@davemloft.net>
11512 * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
11513 UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
11515 (define_attr type): New type 'edge'.
11516 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
11517 edge32l_vis): New patterns.
11518 * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
11519 * config/sparc/ultra3.md: Likewise.
11520 * config/sparc/niagara.md: Likewise.
11521 * config/sparc/niagara2.md: Likewise.
11522 * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
11523 builtins for VIS edge instructions.
11524 * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
11525 (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
11527 (__v8qi, __v4qi): Make unsigned.
11528 (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
11529 __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
11530 __vis_fpack32): Fix types.
11531 * doc/extend.texi: Document new 'edge' VIS intrinsics.
11533 * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
11535 (niagara3_costs): New.
11536 (sparc_option_override): Use it.
11537 * gcc/config/sparc/niagara2.md: Adjust with more accurate
11538 Niagara-3 reservations.
11540 2011-09-17 Jakub Jelinek <jakub@redhat.com>
11542 * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
11543 (sse2_avx, sseinsnmode): Add V2TI.
11544 (REDUC_SMINMAX_MODE): New mode iterator.
11545 (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
11546 reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
11547 (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
11548 (sse2_lshrv1ti3): Rename to...
11549 (<sse2_avx2>_lshr<mode>3): ... this. Use VIMAX_AVX2 mode
11550 iterator. Move before umaxmin expanders.
11551 * config/i386/i386.h (VALID_AVX256_REG_MODE,
11552 SSE_REG_MODE_P): Accept V2TImode.
11553 * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
11554 V16HImode, V8SImode and V4DImode.
11556 * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
11558 (ix86_build_signbit_mask): Likewise.
11559 (ix86_expand_int_vcond): Likewise. Handle V16HImode and V32QImode.
11560 (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
11561 instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
11562 * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
11563 (<code><mode>3) ... this.
11564 (avx2_<code><mode>3 smaxmin expand): Rename to...
11565 (<code><mode>3) ... this.
11566 (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
11567 (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
11568 VI8_AVX2 mode iterator.
11569 (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
11570 VI8_AVX2 mode iterator.
11571 (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
11574 2011-09-17 Richard Sandiford <rdsandiford@googlemail.com>
11576 * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
11579 2011-09-16 David S. Miller <davem@davemloft.net>
11581 * config/sparc/visintrin.h: New file.
11582 * config.gcc: Add it to extra_headers on sparc.
11584 2011-09-16 Jakub Jelinek <jakub@redhat.com>
11586 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
11587 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
11588 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
11589 reduc_smin_v4sf): Adjust callers.
11590 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
11593 * config/i386/sse.md (vec_extract_hi_<mode>,
11594 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
11595 vextracti128 instead of vextractf128 for -mavx2 and
11596 integer vectors. For V4DFmode fix up mode attribute.
11597 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
11598 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
11599 instead of V8SF mode attribute.
11600 (avx2_extracti128): Change into define_expand.
11601 * config/i386/i386.c (ix86_expand_vector_extract): Handle
11602 32-byte vector modes if TARGET_AVX.
11604 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
11606 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
11607 (umulqi3_highpart, smulqi3_highpart): Ditto.
11608 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
11609 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
11610 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
11612 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
11615 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
11616 (*maddqi4, *maddqi4.const): New insns.
11617 (*msubqi4, *msubqi4.const): New insns.
11618 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
11619 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
11620 HImode by 1 in the case of multiplying with a CONST_INT.
11621 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
11623 2011-09-15 Jan Hubicka <jh@suse.cz>
11626 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
11627 error_mark_node in the DECL_INITIAL of vtable.
11629 2011-09-15 Diego Novillo <dnovillo@google.com>
11631 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
11632 @SYSROOT_CFLAGS_FOR_TARGET@.
11633 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
11634 * configure: Regenerate.
11635 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
11636 Remove setting of GCC_UNDER_TEST.
11638 2011-09-15 Uros Bizjak <ubizjak@gmail.com>
11640 * config/i386/i386.c (output_fp_compare): Return %v prefixed
11641 instruction mnemonics for TARGET_AVX.
11643 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
11644 "type" attribute calculation.
11645 (*movdf_internal): Ditto.
11646 (*movsf_internal): Ditto.
11648 2011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
11650 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
11652 2011-09-15 Jason Merrill <jason@redhat.com>
11655 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
11657 2011-09-15 Jan Hubicka <jh@suse.cz>
11659 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
11660 simplify obviously true clauses.
11661 (and_predicates, or_predicates): Add conditions parameter.
11662 (inline_duplication_hoook): Update.
11663 (mark_modified): New function.
11664 (unmodified_parm): New function.
11665 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
11666 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
11667 Use unmodified_parm.
11668 (estimate_function_body_sizes): Update.
11669 (remap_predicate): Update.
11671 2011-09-15 Ira Rosen <ira.rosen@linaro.org>
11673 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
11674 read-after-read dependencies in basic block SLP.
11676 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
11678 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
11681 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
11683 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
11686 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
11688 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
11691 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
11693 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
11695 * config/rs6000/constraints.md: Likewise.
11697 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
11699 * config/microblaze/microblaze.md: Use match_test rather than
11700 eq/ne symbol_ref throughout file.
11702 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
11704 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
11707 2011-09-14 Tom de Vries <tom@codesourcery.com>
11709 PR middle-end/50251
11710 * explow.c (emit_stack_restore): Set crtl->need_drap if
11711 stack_restore is emitted.
11713 2011-09-14 Julian Brown <julian@codesourcery.com>
11715 * config/arm/arm.c (arm_override_options): Add unaligned_access
11717 (arm_file_start): Emit attribute for unaligned access as appropriate.
11718 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
11719 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
11720 (insv, extzv): Add unaligned-access support.
11721 (extv): Change to expander. Likewise.
11722 (extzv_t1, extv_regsi): Add helpers.
11723 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
11724 (unaligned_storesi, unaligned_storehi): New.
11725 (*extv_reg): New (previous extv implementation).
11726 * config/arm/arm.opt (munaligned_access): Add option.
11727 * config/arm/constraints.md (Uw): New constraint.
11728 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
11729 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
11730 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
11731 volatile accesses when -fstrict-volatile-bitfields is in effect.
11732 (extract_bit_field_1): Likewise.
11734 2011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
11736 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
11737 a scalar integer before applying integer-only optimisations to
11740 2011-09-14 Bernd Schmidt <bernds@codesourcery.com>
11742 * config/mips/mips.c (mips_expand_epilogue): Generate a
11743 simple_return only if the return address is in r31.
11745 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
11747 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
11748 NULL for a jump that is a cc0 insn, pick the previous insn for
11751 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
11753 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
11756 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
11758 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
11761 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
11763 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
11764 symbol_ref throughout file.
11766 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
11768 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
11771 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
11773 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
11776 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
11778 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
11780 * config/arm/neon.md: Likewise.
11781 * config/arm/vfp.md: Likewise.
11782 * config/arm/thumb2.md: Likewise.
11783 * config/arm/cortex-m4.md: Likewise.
11785 2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
11787 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
11788 define_insn patterns for combine.
11790 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
11792 * reorg.c: Always define make_return_insns.
11794 2011-09-13 Jan Hubicka <jh@suse.cz>
11797 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
11799 2011-09-13 Jan Hubicka <jh@suse.cz>
11802 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
11804 2011-09-13 Paul Brook <paul@codesourcery.com>
11806 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11807 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
11808 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
11809 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
11810 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
11811 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
11812 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
11813 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
11814 enabling unwind tables.
11815 (c6x_debug_unwind_info): New function.
11816 (TARGET_ARM_EABI_UNWINDER): Define.
11817 (TARGET_DEBUG_UNWIND_INFO): Define.
11818 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
11819 (TARGET_EXTRA_CFI_SECTION): Remove.
11820 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
11821 * ginclude/unwind-arm-common.h: New file.
11823 2011-09-13 Georg-Johann Lay <avr@gjlay.de>
11826 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
11827 * config/avr/avr.md: (extend_s): New code attribute.
11828 (mul_r_d): New code attribute.
11829 (*maddqihi4, *umaddqihi4): New insns.
11830 (*msubqihi4, *umsubqihi4): New insns.
11831 (*usmaddqihi4, *sumaddqihi4): New insns.
11832 (*usmsubqihi4, *susubdqihi4): New insns.
11833 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
11834 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
11835 (*umsubqihi4.uconst.ashift): New insn-and-split.
11836 (*msubqihi4.sconst.ashift): New insn-and-split.
11837 (*sumaddqihi4.uconst): New insn-and-split.
11838 (*sumsubqihi4.uconst): New insn-and-split.
11839 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
11840 PLUS:HI and MINUS:HI.
11842 2011-09-13 Revital Eres <revital.eres@linaro.org>
11844 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
11845 (optimize_sc): Adjust call to remove_node_from_ps.
11846 (sms_schedule): Add print info.
11848 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
11850 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
11853 2011-09-12 Jakub Jelinek <jakub@redhat.com>
11856 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
11857 NOTE_INSN_CFI notes, with the exception of
11858 NOTE_INSN_SWITCH_TEXT_SECTIONS.
11860 2011-09-12 Bernd Schmidt <bernds@codesourcery.com>
11861 Richard Sandiford <rdsandiford@googlemail.com>
11863 * config/mips/mips.c (mips_epilogue): New structure.
11864 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
11865 restoring registers.
11866 (mips_epilogue_emit_cfa_restores): New function.
11867 (mips_epilogue_set_cfa): Likewise.
11868 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
11869 the current CFA register from the stack, redefine the CFA in terms
11870 of the stack pointer.
11871 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
11872 to the epilogue instructions.
11874 2011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
11876 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
11878 (mips16e_build_save_restore): Update accordingly.
11880 2011-09-12 Jakub Jelinek <jakub@redhat.com>
11882 PR rtl-optimization/50212
11883 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
11884 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
11887 * calls.c (load_register_parameters): Use use_reg_mode instead
11888 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
11890 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
11891 for stack CALL_INSN_FUNCTION_USAGE uses.
11892 * expr.h (use_reg_mode): New prototype.
11893 (use_reg): Changed into inline around use_reg_mode.
11894 * expr.c (use_reg): Renamed to...
11895 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
11896 mode to that mode instead of VOIDmode.
11897 * var-tracking.c (prepare_call_arguments): Don't track parameters
11898 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
11899 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
11902 2011-09-12 Georg-Johann Lay <avr@gjlay.de>
11905 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
11906 (progmem_section): New Variable.
11907 (avr_asm_init_sections): Initialize it.
11908 (TARGET_ASM_SELECT_SECTION): Define to...
11909 (avr_asm_select_section): ... this new Function.
11910 (avr_replace_prefix): New Function.
11911 (avr_asm_function_rodata_section): Use it.
11912 (avr_insert_attributes): Don't add section attribute for PROGMEM.
11913 (avr_section_type_flags): Use avr_progmem_p instead of section
11914 name to detect if object is in PROGMEM.
11915 (avr_asm_named_section): Set section name prefix for objects in
11918 2011-09-12 Jakub Jelinek <jakub@redhat.com>
11921 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
11922 sprintf format string.
11924 2011-09-12 Richard Guenther <rguenther@suse.de>
11926 PR tree-optimization/50343
11927 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
11928 that the reduction is over an SSA name before checking its definition.
11930 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
11932 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
11935 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
11937 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
11939 * config/mips/sb1.md: Likewise.
11940 * config/mips/predicates.md: Replace (match_test "!...")
11941 with (not (match_test "..."))
11942 * config/mips/constraints.md: Likewise.
11944 2011-09-09 Andrew Stubbs <ams@codesourcery.com>
11946 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
11947 * config/arm/arm-tables.opt: Regenerate.
11948 * config/arm/arm-tune.md: Regenerate.
11949 * config/arm/arm.c (arm_file_start): Output .arch directive when
11950 user passes -mcpu=generic-*.
11951 (arm_issue_rate): Add genericv7a support.
11952 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
11953 (ASM_CPU_SPEC): New define.
11954 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
11955 * config/arm/semi.h (ASM_SPEC): Likewise.
11956 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
11957 and -mtune=generic-*.
11959 2011-09-09 Richard Guenther <rguenther@suse.de>
11961 PR tree-optimization/50328
11962 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
11963 constant or default-def operand.
11965 2011-09-09 Richard Guenther <rguenther@suse.de>
11967 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
11970 2011-09-09 Richard Guenther <rguenther@suse.de>
11972 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
11973 instead of a statement.
11974 * gimple-fold.c (fold_stmt_inplace): Likewise.
11975 * sese.c (graphite_copy_stmts_from_block): Adjust.
11976 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
11977 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
11979 (forward_propagate_addr_into_variable_array_index): Likewise.
11980 (forward_propagate_addr_expr_1): adjust.
11981 (associate_plusminus): Likewise.
11982 (ssa_forward_propagate_and_combine): Likewise.
11983 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
11984 (execute_cse_reciprocals): Likewise.
11985 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
11987 2011-09-09 Nick Clifton <nickc@redhat.com>
11989 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
11990 Return a positive value to indicate that the bits at the
11991 bottom of the register should be cleared.
11993 2011-09-09 Richard Guenther <rguenther@suse.de>
11995 * tree-ssa-operands.c (swap_tree_operands): Always adjust
11996 existing operand positions.
11998 2011-09-09 Richard Guenther <rguenther@suse.de>
12000 PR middle-end/50333
12001 * tree-data-ref.c (split_constant_offset): Do not try to handle
12004 2011-09-08 Andrew Stubbs <ams@codesourcery.com>
12006 PR tree-optimization/50318
12007 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
12008 typo in use of mult_rhs1 and mult_rhs2.
12010 2011-09-08 Uros Bizjak <ubizjak@gmail.com>
12012 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
12013 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
12015 2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
12017 * config/arm/arm.md (push_multi): Emit predicates.
12018 (push_fp_multi): Likewise.
12019 * config/arm/arm.c (vfp_output_fstmd): Likewise.
12021 2011-09-08 Dodji Seketeli <dodji@redhat.com>
12023 PR c++/33255 - Support -Wunused-local-typedefs warning
12024 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
12025 (pushdecl): Use the new record_locally_defined_typedef.
12026 (store_parm_decls): Allocate cfun->language.
12027 (finish_function): Use the new maybe_warn_unused_local_typedefs,
12028 and free cfun->language.
12029 (c_push_function_context): Allocate cfun->language here only if needed.
12030 (c_pop_function_context): Likewise, mark cfun->language
12031 for collection only when it should be done.
12032 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
12033 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
12034 maybe_record_local_typedef_use.
12035 * doc/invoke.texi: Update documentation for
12036 -Wunused-local-typedefs.
12038 2011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
12040 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
12041 (ix86_avoid_lea_for_add): Likewise.
12042 (ix86_avoid_lea_for_addr): Likewise.
12043 (ix86_split_lea_for_addr): Likewise.
12045 * config/i386/i386.c (LEA_MAX_STALL): New.
12046 (increase_distance): Likewise.
12047 (insn_defines_reg): Likewise.
12048 (insn_uses_reg_mem): Likewise.
12049 (distance_non_agu_define_in_bb): Likewise.
12050 (distance_agu_use_in_bb): Likewise.
12051 (ix86_lea_outperforms): Likewise.
12052 (ix86_ok_to_clobber_flags): Likewise.
12053 (ix86_avoid_lea_for_add): Likewise.
12054 (ix86_avoid_lea_for_addr): Likewise.
12055 (ix86_split_lea_for_addr): Likewise.
12056 (distance_non_agu_define): Search in pred BBs added.
12057 (distance_agu_use): Search in succ BBs added.
12058 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
12059 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
12060 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
12062 * config/i386/i386.md: Split added to transform non destructive
12063 add into move and add.
12064 (lea_1): transformed into insn_and_split to avoid AGU stalls.
12065 (lea<mode>_2): Likewise.
12067 2011-09-08 Martin Jambor <mjambor@suse.cz>
12069 PR tree-optimization/50287
12070 * ipa-split.c (split_function): Do not create SSA names for
12071 non-gimple-registers.
12073 2011-09-08 Richard Guenther <rguenther@suse.de>
12075 PR tree-optimization/19831
12076 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
12077 skip builtins with vdefs that do not really store something.
12078 (propagate_necessity): For calls to free that we can associate
12079 with an allocation function do not mark the freed pointer
12080 definition necessary.
12081 (eliminate_unnecessary_stmts): Remove a call to free if
12082 the associated call to an allocation function is not necessary.
12084 2011-09-08 Richard Guenther <rguenther@suse.de>
12086 PR tree-optimization/19831
12087 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
12088 allocation functions as necessary.
12090 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
12092 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
12094 (darwin_default_min_version): Amended to provide defaults
12095 for the cross directory case.
12096 (darwin_driver_init): call darwin_default_min_version unconditionally.
12097 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
12098 * config/darwin9.h: Likewise.
12099 * config/darwin10.h: Likewise.
12100 * config/rs6000/darwin7.h: Likewise.
12102 2011-09-08 Jakub Jelinek <jakub@redhat.com>
12105 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
12106 code early if TARGET_AVX.
12107 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
12109 2011-09-07 Jakub Jelinek <jakub@redhat.com>
12111 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
12115 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
12116 "mode" attribute computation.
12118 2011-09-07 Bernd Schmidt <bernds@codesourcery.com>
12120 * regrename.c (struct du_head): Make nregs signed.
12121 (closed_chains): Remove.
12122 (create_new_chain): Return the new chain.
12123 (chain_from_id): New static function.
12124 (dump_def_use_chain): Change argument to be an int, indicating
12125 the first ID to print. All callers changed.
12126 (merge_overlapping_regs): Use chain_from_id. Assert that
12127 chains don't conflict with themselves.
12128 (rename_chains): Take no argument. Iterate over id_to_chain
12129 rather to find chains to rename. Clear tick before the main loop.
12130 (struct incoming_reg_info): New struct.
12131 (struct bb_rename_info): New struct.
12132 (init_rename_info, set_incoming_from_chain, merge_chains): New
12134 (regrename_analyze): New static function, broken out of
12135 regrename_optimize. Record and make use of open chain information
12136 at basic block boundaries, and merge chains where possible.
12137 (scan_rtx_reg): Make this_nregs signed. Don't update
12139 (build_def_use): Return a bool to indicate success. All callers
12140 changed. Don't initialize global data here.
12141 (regrename_optimize): Move most code out of here into
12143 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
12144 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
12145 static inline functions.
12146 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
12148 * bb-reorder.c (insert_section_boundary_note): Don't check
12149 optimize_function_for_speed_p.
12150 (gate_handle_partition_blocks): Do it here instead.
12151 (gate_handle_reorder_blocks): Move preliminary checks here ...
12152 (rest_of_handle_reorder_blocks): ... from here.
12154 2011-09-07 Martin Jambor <mjambor@suse.cz>
12156 PR middle-end/50301
12157 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
12158 function index bounds.
12159 (perhaps_add_new_callers): Likewise.
12161 2011-09-07 Martin Jambor <mjambor@suse.cz>
12163 PR tree-optimization/49911
12164 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
12165 enumerations to the corresponding plain integer type.
12167 2011-09-07 Richard Guenther <rguenther@suse.de>
12169 PR tree-optimization/50319
12170 * tree-if-conv.c (set_bb_predicate): Assert we only set
12171 canonical predicates.
12172 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
12173 around canonical predicates.
12174 (predicate_bbs): Do not re-gimplify already canonical
12175 predicates. Properly unshare them though.
12176 (find_phi_replacement_condition): Simplify.
12178 2011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
12181 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
12182 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
12183 reusing the old code from get_arm_condition_code. Return ARM_NV
12184 for invalid comparison codes.
12185 (get_arm_condition_code): Redefine in terms of
12186 maybe_get_arm_condition_code.
12187 * config/arm/predicates.md (arm_comparison_operator): Use
12188 maybe_get_arm_condition_code.
12190 2011-09-07 Richard Guenther <rguenther@suse.de>
12192 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
12193 Canonicalize negated predicates by swapping edges.
12194 (forward_propagate_into_cond): Likewise.
12196 2011-09-07 Richard Guenther <rguenther@suse.de>
12198 PR tree-optimization/50213
12199 * tree-flow.h (simple_iv_increment_p): Declare.
12200 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
12202 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
12203 not propagate simple IV counter increments.
12205 2011-09-07 Eric Botcazou <ebotcazou@adacore.com>
12206 Iain Sandoe <iains@gcc.gnu.org>
12208 * config/rs6000/rs6000.c (compute_save_world_info): Test
12209 cfun->has_nonlocal_label to determine if the out-of-line save
12210 world call may be used.
12212 2011-09-07 Nick Clifton <nickc@redhat.com>
12214 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
12215 label on the parallel part of the insn.
12217 2011-09-07 Jakub Jelinek <jakub@redhat.com>
12220 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
12221 avoid_constant_pool_reference first instead of last.
12223 2011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12225 * doc/configfiles.texi (Configuration Files): Update documentation
12226 about tm_p.h and remove FIXME comment.
12228 2011-09-06 Uros Bizjak <ubizjak@gmail.com>
12230 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
12231 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
12233 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
12235 * config/darwin10.h Remove duplicate LIB_SPEC.
12237 2011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
12239 PR middle-end/44382
12240 * target.def (reassociation_width): New hook.
12242 * doc/tm.texi.in (reassociation_width): Likewise.
12244 * doc/tm.texi (reassociation_width): Likewise.
12246 * doc/invoke.texi (tree-reassoc-width): New param documented.
12248 * hooks.h (hook_int_uint_mode_1): New default hook.
12250 * hooks.c (hook_int_uint_mode_1): Likewise.
12252 * config/i386/i386.h (ix86_tune_indices): Add
12253 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
12255 (TARGET_REASSOC_INT_TO_PARALLEL): New.
12256 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
12258 * config/i386/i386.c (initial_ix86_tune_features): Add
12259 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
12261 (ix86_reassociation_width): New function.
12263 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
12265 * tree-ssa-reassoc.c (get_required_cycles): New function.
12266 (get_reassociation_width): Likewise.
12267 (swap_ops_for_binary_stmt): Likewise.
12268 (rewrite_expr_tree_parallel): Likewise.
12270 (rewrite_expr_tree): Refactored. Part of code moved into
12271 swap_ops_for_binary_stmt.
12273 (reassociate_bb): Now checks reassociation width to be used and
12274 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
12276 2011-09-06 Richard Guenther <rguenther@suse.de>
12278 PR tree-optimization/47025
12279 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
12281 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
12283 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
12284 definitely points to.
12285 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12286 BUILT_IN_VA_START doesn't let its va_list argument escape.
12287 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
12288 not make any previous stores necessary.
12290 2011-09-06 Martin Jambor <mjambor@suse.cz>
12292 * ipa-inline.h (struct inline_summary): Move versionable flag...
12293 * cgraph.h (struct cgraph_local_info): ...here
12294 * ipa-cp.c (determine_versionability): Use the new versionable flag.
12295 (determine_versionability): Likewise.
12296 (ipcp_versionable_function_p): Likewise.
12297 (ipcp_generate_summary): Likewise.
12298 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
12300 (compute_inline_parameters): Do not clear the versionable flag.
12301 (inline_read_section): Do not stream the versionable flag.
12302 (inline_write_summary): Likewise.
12303 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
12304 (input_overwrite_node): Likewise.
12306 2011-09-06 Richard Guenther <rguenther@suse.de>
12308 PR tree-optimization/48149
12309 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
12310 (vn_valueize): Move earlier.
12311 (valueize_expr): Use vn_valueize.
12312 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
12314 (simplify_unary_expression): Simplify.
12316 2011-09-06 Richard Guenther <rguenther@suse.de>
12318 PR tree-optimization/48317
12319 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
12321 (sizeof_vn_nary_op): New inline function.
12322 (vn_nary_op_lookup_pieces): Adjust.
12323 (vn_nary_op_insert_pieces): Likewise.
12324 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
12325 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
12326 any number of operands.
12327 (vn_nary_length_from_stmt): New function.
12328 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
12329 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
12331 (vn_nary_op_lookup): Likewise.
12332 (vn_nary_op_lookup_stmt): Likewise.
12333 (vn_nary_op_insert_into): Likewise.
12334 (vn_nary_op_insert_stmt): Likewise.
12335 (visit_use): Handle CONSTRUCTOR as nary.
12336 * tree-ssa-pre.c (phi_translate_1): Adjust.
12337 (create_expression_by_pieces): Likewise.
12338 (compute_avail): Likewise.
12340 2011-09-06 Ira Rosen <ira.rosen@linaro.org>
12342 * config/arm/arm.c (arm_preferred_simd_mode): Check
12343 TARGET_NEON_VECTORIZE_DOUBLE instead of
12344 TARGET_NEON_VECTORIZE_QUAD.
12345 (arm_autovectorize_vector_sizes): Likewise.
12346 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
12347 mask of mvectorize-with-neon-double. Add RejectNegative.
12348 (mvectorize-with-neon-double): New.
12350 2011-09-06 Richard Guenther <rguenther@suse.de>
12352 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
12354 2011-09-06 Tom de Vries <tom@codesourcery.com>
12356 * recog.c (asm_labels_ok): New function.
12357 (check_asm_operands): Use asm_labels_ok.
12359 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
12362 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
12363 (PMODE_INSN): New macro.
12364 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
12365 (mips_got_load, mips_expand_synci_loop): Likewise.
12366 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
12367 cprestore patterns.
12368 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
12369 copygp_mips16 patterns.
12370 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
12371 and use_cprestore patterns.
12372 (mips_override_options): Check for incompatible -mabi and -mlong
12374 * config/mips/mips.md (unspec_got<mode>): Rename to...
12375 (unspec_got_<mode>): ...this.
12376 (copygp_mips16): Use the Pmode iterator.
12377 (potential_cprestore, cprestore, use_cprestore): Likewise.
12378 (clear_cache, indirect_jump): Use PMODE_INSN.
12379 (indirect_jump<mode>): Rename to...
12380 (indirect_jump_<mode>): ...this.
12381 (tablejump): Use PMODE_INSN.
12382 (tablejump<mode>): Rename to...
12383 (tablejump_<mode>): ...this.
12384 (exception_receiver): Handle restore_gp_si and restore_gp_di.
12385 (restore_gp): Use the Pmode iterator.
12386 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
12389 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
12391 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
12392 Fix the type of the BIT_AND_EXPR.
12394 2011-09-05 David S. Miller <davem@davemloft.net>
12396 * config.host: Add driver-sparc.o and sparc/x-sparc on
12397 native sparc*-*-linux* builds.
12398 * config/sparc/driver-sparc.c: Correct Linux strings.
12399 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
12400 * config/sparc/linux64.h: Likewise.
12401 * doc/invoke.texi: Document that Linux also supports
12402 -mcpu=native and -mtune=native on sparc.
12404 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
12405 PROCESSOR_NIAGARA4): New.
12406 * config/sparc/sparc.opt: Handle new processor types.
12407 * config/sparc/sparc.md: Add to "cpu" attribute.
12408 * config/sparc/sparc.h (TARGET_CPU_niagara3,
12409 TARGET_CPU_niagara4): New, treat as niagara2.
12410 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
12411 * config/sparc/sol2.h: Likewise.
12412 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
12413 * config/sparc/sparc.c (sparc_option_override): Add
12414 niagara3 and niagara4 handling.
12415 (sparc32_initialize_trampoline): Likewise.
12416 (sparc64_initialize_trampoline): Likewise.
12417 (sparc_use_sched_lookahead): Likewise.
12418 (sparc_issue_rate): Likewise.
12419 (sparc_register_move_cost): Likewise.
12420 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
12421 and niagara4 as appropriate.
12422 * doc/invoke.texi: Document new processor types.
12423 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
12424 and --with-tune options.
12426 * config/sparc/sol2-64.h: Move ...
12427 * config/sparc/default-64.h: ... to here. Update comment.
12428 * config.gcc: Update Solaris sparc to use default-64.h, also
12429 prefix this header into the list on sparc64-*-linux.
12430 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
12431 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
12434 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
12437 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
12438 that contain global register variable.
12440 2011-09-05 Richard Guenther <rguenther@suse.de>
12442 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
12444 2011-09-05 Richard Guenther <rguenther@suse.de>
12446 * stor-layout.c (layout_type): Use size_binop for array size
12449 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
12451 * config/avr/avr.h (progmem_section): Remove Declaration.
12452 * config/avr/avr.c (progmem_section): Make static and rename to
12453 progmem_swtable_section.
12454 (avr_output_addr_vec_elt): No need to switch sections.
12455 (avr_asm_init_sections): Use output_section_asm_op as section
12456 callback for progmem_swtable_section.
12457 (avr_output_progmem_section_asm_op): Remove Function.
12458 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
12459 (avr_asm_function_rodata_section): New static Function.
12460 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
12461 alignment 2**1 for jump tables.
12463 2011-09-04 Jan Hubicka <jh@suse.cz>
12465 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
12466 parameter is SSA name.
12468 2011-09-04 Richard Guenther <rguenther@suse.de>
12471 2011-08-31 Richard Guenther <rguenther@suse.de>
12473 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
12476 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
12479 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
12481 2011-09-04 Jakub Jelinek <jakub@redhat.com>
12482 Ira Rosen <ira.rosen@linaro.org>
12484 PR tree-optimization/50208
12485 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
12486 argument. Check that def_stmt is inside the loop.
12487 (vect_recog_widen_mult_pattern): Update calls to
12488 vect_handle_widen_mult_by_cons.
12489 (vect_operation_fits_smaller_type): Check that def_stmt is
12492 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
12494 * tree-vectorizer.c (vect_print_dump_info): Print line
12495 number when dumping to a file.
12496 (vectorize_loops): Add new messages to dump file.
12498 2011-09-03 Martin Jambor <mjambor@suse.cz>
12500 * ipa-prop.h (ipa_jump_func_t): New typedef.
12501 (struct ipa_edge_args): Removed field argument_count, field
12502 jump_functions turned into a vector.
12503 (ipa_set_cs_argument_count): Removed.
12504 (ipa_get_cs_argument_count): Updated to work on vectors.
12505 (ipa_get_ith_jump_func): Likewise.
12506 * ipa-prop.c (ipa_count_arguments): Removed.
12507 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
12508 jump functions. Update caller.
12509 (compute_pass_through_member_ptrs): Likewise.
12510 (compute_cst_member_ptr_arguments): Likewise.
12511 (ipa_compute_jump_functions_for_edge): Get number of arguments from
12512 the statement, allocate vector.
12513 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
12514 (duplicate_ipa_jump_func_array): Removed.
12515 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
12516 (ipa_read_node_info): Allocate vector.
12518 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12520 PR middle-end/50232
12521 * config/pa/pa.md (return): Define "return" insn pattern.
12522 (epilogue): Use it when no epilogue is needed.
12523 * config/pa/pa.c (pa_can_use_return_insn): New function.
12524 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
12526 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
12528 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
12529 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
12530 Force at least BITS_PER_UNIT alignment on the new variable.
12532 2011-09-02 Gary Funck <gary@intrepid.com>
12534 * opts.c (print_specific_help): Fix off-by-one compare in
12536 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
12537 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
12538 Increase by +5 to allow for more languages.
12539 * optc-gen.awk: Generate #if that ensures that the number of
12540 languages is within the implementation-defined limit.
12542 2011-09-02 Michael Matz <matz@suse.de>
12544 PR middle-end/50260
12545 * ipa-split.c (split_function): Call add_referenced_var.
12547 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
12548 (cond_if_else_store_replacement_1): Ditto.
12549 * tree-ssa-pre.c (get_representative_for): Ditto.
12550 (create_expression_by_pieces): Ditto.
12551 (insert_into_preds_of_block): Ditto.
12552 * tree-sra.c (create_access_replacement): Ditto.
12553 (get_replaced_param_substitute): Ditto.
12555 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
12557 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
12559 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
12560 (l1w, s1w, l2w, s2w): Define in the main automaton.
12561 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
12563 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
12564 (c6x_unit_names): Add the new units.
12565 (c6x_unit_codes): New static array.
12566 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
12567 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
12568 UNIT_QID_SIDE_OFFSET): New macros.
12569 (RESERVATION_S2): Adjust value.
12570 (c6x_option_override): Compute c6x_unit_codes.
12571 (assign_reservations): Take the unit_mask of the last instruction
12572 into account. Detect floating point reservations by looking for
12573 the new units. Don't assign reservations if the field is already
12575 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
12576 (init_sched_state): Initialize it.
12577 (c6x_clear_sched_context): Free it.
12578 (insn_set_clock): Clear reservation.
12579 (prev_cycle_state): New static variable.
12580 (c6x_init_sched_context): Save it.
12581 (c6x_sched_init): Allocate space for it and clear it.
12582 (c6x_sched_dfa_pre_cycle_insn): New static function.
12583 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
12584 (c6x_variable_issue): Only record units in the unit_mask that
12585 were not set at the start of the cycle.
12586 (c6x_variable_issue): Compute and store the unit_mask from the
12588 (reorg_split_calls): Ensure the new information remains correct.
12589 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
12590 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
12591 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
12592 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
12593 Add special reservations.
12594 * config/c6x/c6x-sched.md: Regenerate.
12596 2011-09-02 Martin Jambor <mjambor@suse.cz>
12598 * ipa-prop.h (ipa_node_params): Removed fields
12599 called_with_var_arguments and node_versionable.
12600 (ipa_set_called_with_variable_arg): Removed.
12601 (ipa_is_called_with_var_arguments): Likewise.
12602 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
12603 (determine_versionability): Do not check for type attributes and va
12604 builtins. Record versionability into inline summary.
12605 (initialize_node_lattices): Do not check
12606 ipa_is_called_with_var_arguments.
12607 (propagate_constants_accross_call): Likewise, ignore arguments we do
12608 not have PARM_DECLs for, set variable flag for parameters that were
12609 not passed a value.
12610 (create_specialized_node): Dump info that we cannot change signature.
12611 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
12612 number of arguments.
12613 (ipa_make_edge_direct_to_target): Likewise.
12614 (ipa_update_after_lto_read): Likewise.
12615 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
12616 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
12617 they were remapped.
12619 2011-09-02 Richard Guenther <rguenther@suse.de>
12621 PR tree-optimization/27460
12622 PR middle-end/29269
12623 * doc/md.texi (vcond): Document.
12624 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
12625 optab with two modes.
12626 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
12627 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
12628 (vcond_optab): Adjust.
12629 (vcondu_optab): Likewise.
12630 (expand_vec_cond_expr_p): Adjust prototype.
12631 * optabs.c (get_vcond_icode): Adjust.
12632 (expand_vec_cond_expr_p): Likewise.
12633 (expand_vec_cond_expr): Likewise.
12634 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
12636 (vectorizable_condition): Allow differing types for comparison
12638 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
12639 for the comparison.
12640 * config/i386/sse.md (vcond<mode>): Split to
12641 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
12642 vcond<V_128:mode><VI124_128:mode> and
12643 vcondu<V_128:mode><VI124_128:mode>.
12644 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
12645 (vconduv2di): Likewise.
12646 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
12647 (vcondu<mode>): Likewise.
12648 * config/ia64/vect.md (vcond<mode>): Likewise.
12649 (vcondu<mode>): Likewise.
12650 (vcondv2sf): Likewise.
12651 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
12652 * config/rs6000/paired.md (vcondv2sf): Likewise.
12653 * config/rs6000/vector.md (vcond<mode>): Likewise.
12654 (vcondu<mode>): Likewise.
12655 * config/spu/spu.md (vcond<mode>): Likewise.
12656 (vcondu<mode>): Likewise.
12658 2011-09-02 Richard Guenther <rguenther@suse.de>
12660 * pretty-print.h (pp_unsigned_wide_integer): New.
12661 * tree-pretty-print.c (dump_generic_node): Print unsigned
12662 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
12664 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
12667 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
12668 valid CONST_VECTOR operands.
12669 (rs6000_expand_vector_init): Likewise.
12671 2011-09-02 Martin Jambor <mjambor@suse.cz>
12673 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
12674 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
12675 BINFO_VTABLE. Parameter delta removed, all callers updated.
12676 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
12678 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
12680 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
12681 handling of thunk_delta.
12682 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
12683 (devirtualization_time_bonus): Do not handle thunk deltas.
12684 (ipcp_discover_new_direct_edges): Likewise.
12685 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
12686 (try_make_edge_direct_simple_call): Likewise.
12687 (try_make_edge_direct_virtual_call): Likewise.
12688 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
12689 parameter set as unused.
12690 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
12691 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
12692 parameter set as unused.
12693 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
12694 (input_edge_opt_summary): Likewise.
12695 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
12696 BINFO_VIRTUALS at all.
12697 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
12699 2011-09-02 Richard Guenther <rguenther@suse.de>
12701 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
12702 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
12704 2011-08-31 Richard Guenther <rguenther@suse.de>
12706 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
12707 handling here, from ...
12708 (expand_expr_real_1): ... here.
12709 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
12711 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
12712 a GIMPLE_TERNARY_RHS.
12713 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
12714 and VEC_COND_EXPR here ...
12715 (verify_gimple_assign_single): ... not here.
12716 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
12717 * tree-object-size.c (cond_expr_object_size): Adjust.
12718 (collect_object_sizes_for): Likewise.
12719 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
12720 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
12721 (ssa_forward_propagate_and_combine): Adjust.
12722 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
12724 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
12725 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
12726 * tree-vect-stmt.c (vectorizable_condition): Likewise.
12727 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
12728 (extract_range_from_assignment): Likewise.
12730 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
12732 * config/i386/i386.md: Use (match_test ...) for attribute tests.
12733 * config/i386/mmx.md: Likewise.
12734 * config/i386/sse.md: Likewise.
12735 * config/i386/predicates.md (call_insn_operand): Use
12736 (not (match_test "...")) instead of (match_test "!...")
12737 * config/i386/constraints.md (w): Likewise.
12739 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
12741 * doc/md.texi: Describe the use of match_tests in attribute tests.
12742 * rtl.def (MATCH_TEST): Update commentary.
12743 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
12744 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
12746 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
12748 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
12749 (attr_string): Use copy_md_ptr_loc.
12751 2011-08-31 Martin Jambor <mjambor@suse.cz>
12753 PR middle-end/49886
12754 * ipa-inline-analysis.c (compute_inline_parameters): Set
12755 can_change_signature of noes with typde attributes.
12756 * ipa-split.c (split_function): Do not skip any arguments if
12757 can_change_signature is set.
12759 2011-08-31 Martin Jambor <mjambor@suse.cz>
12761 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
12764 2011-08-31 Richard Guenther <rguenther@suse.de>
12766 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
12769 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
12771 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
12773 2011-08-31 Tom de Vries <tom@codesourcery.com>
12775 PR middle-end/43513
12776 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
12777 * tree-ssa-ccp.c (params.h): Include.
12778 (fold_builtin_alloca_for_var): New function.
12779 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
12781 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
12783 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
12786 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
12788 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
12789 b3 and b4 unsigned.
12791 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
12793 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
12796 2011-08-30 Richard Guenther <rguenther@suse.de>
12798 PR middle-end/48571
12799 * gimple.h (maybe_fold_offset_to_address): Remove.
12800 (maybe_fold_offset_to_reference): Likewise.
12801 (maybe_fold_stmt_addition): Likewise.
12802 (may_propagate_address_into_dereference): Likewise.
12803 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
12805 * gimple-fold.c (canonicalize_constructor_val): Likewise.
12806 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
12808 (may_propagate_address_into_dereference): Remove.
12809 (maybe_fold_offset_to_array_ref): Likewise.
12810 (maybe_fold_offset_to_reference): Likewise.
12811 (maybe_fold_offset_to_address): Likewise.
12812 (maybe_fold_stmt_addition): Likewise.
12813 (fold_gimple_assign): Do not reconstruct array references but
12814 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
12816 (gimple_fold_stmt_to_constant_1): Likewise.
12817 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
12818 * gimplify.c (gimplify_conversion): Likewise.
12819 (gimplify_expr): Likewise.
12821 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
12823 * config/i386/fmaintrin.h: New.
12824 * config.gcc: Add fmaintrin.h.
12825 * config/i386/i386.c
12826 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
12827 <IX86_BUILTIN_VFMADDSD3>: Likewise.
12828 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
12829 (*fmai_fmadd_<mode>): Likewise.
12830 (*fmai_fmsub_<mode>): Likewise.
12831 (*fmai_fnmadd_<mode>): Likewise.
12832 (*fmai_fnmsub_<mode>): Likewise.
12833 * config/i386/immintrin.h: Add fmaintrin.h.
12835 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
12837 * genautomata.c (NO_COMB_OPTION): New macro.
12838 (no_comb_flag): New static variable.
12839 (gen_automata_option): Handle NO_COMB_OPTION.
12840 (comb_vect_p): False if no_comb_flag.
12841 (add_vect): Move computation of min/max values. Return early if
12843 * doc/md.texi (automata_option): Document no-comb-vect.
12845 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
12846 "__x86.get_pc_thunk".
12848 * bb-reorder.c (insert_section_boundary_note): Only do it if
12849 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
12851 2011-08-30 Christian Bruel <christian.bruel@st.com>
12853 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
12856 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
12858 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
12859 to off. Document switch.
12860 * doc/invoke.texi (-msave-toc-indirect): Ditto.
12862 2011-08-29 Jakub Jelinek <jakub@redhat.com>
12864 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
12865 conditionals and comments inside macro arguments.
12867 2011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
12868 Richard Guenther <rguenther@suse.de>
12870 * tree.h (constant_boolean_node): Adjust prototype.
12871 * fold-const.c (fold_convert_loc): Move aggregate conversion
12873 (constant_boolean_node): Make value parameter boolean, add
12874 vector type handling.
12875 (fold_unary_loc): Use constant_boolean_node.
12876 (fold_binary_loc): Preserve types properly when folding
12877 COMPLEX_EXPR <__real x, __imag x>.
12878 * gimplify.c (gimplify_expr): Handle vector comparison.
12879 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
12881 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
12884 2011-08-29 Jakub Jelinek <jakub@redhat.com>
12886 PR middle-end/48722
12887 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
12888 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
12889 (verify_rtl_sharing): Likewise and verify_rtx_sharing
12891 (unshare_all_rtl_in_chain): For CALL_INSNs
12892 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
12894 2011-08-29 Richard Guenther <rguenther@suse.de>
12896 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
12897 on the built ADDR_EXPR.
12899 2011-08-29 Jakub Jelinek <jakub@redhat.com>
12902 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
12903 before adding ENTRY_VALUE to val->locs.
12905 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
12908 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
12911 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
12913 * doc/rtl.texi (simple_return): Document.
12914 (parallel, PATTERN): Here too.
12915 * doc/md.texi (return): Mention it's allowed to expand to simple_return
12917 (simple_return): Document standard pattern.
12918 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
12919 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
12920 * reorg.c (function_return_label, function_simple_return_label):
12921 New static variables, replacing...
12922 (end_of_function_label): ... this.
12923 (simplejump_or_return_p): New static function.
12924 (optimize_skip, steal_delay_list_from_fallthrough,
12925 fill_slots_from_thread): Use it.
12926 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
12927 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
12928 (find_end_label): Take a new arg which is one of the two return
12929 rtxs. Depending on which, set either function_return_label or
12930 function_simple_return_label. All callers changed.
12931 (make_return_insns): Make both kinds.
12932 (dbr_schedule): Adjust for two kinds of end labels.
12933 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
12934 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
12935 (gen_expand, gen_split): Use ANY_RETURN_P.
12936 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
12937 * rtl.def (SIMPLE_RETURN): New code.
12938 * ifcvt.c (find_if_case_1): Be more careful about
12939 redirecting jumps to the EXIT_BLOCK.
12940 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
12941 returnjump_p_1): Handle SIMPLE_RETURNs.
12942 * print-rtl.c (print_rtx): Likewise.
12943 * rtl.c (copy_rtx): Likewise.
12944 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
12945 * combine.c (simplify_set): Likewise.
12946 * resource.c (find_dead_or_set_registers, mark_set_resources):
12948 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
12949 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
12950 (init_emit_regs): Initialize simple_return_rtx.
12951 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
12952 force_nonfallthru_and_redirect.
12953 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
12954 (GR_SIMPLE_RETURN): New enum value.
12955 (simple_return_rtx): New macro.
12956 * basic-block.h (force_nonfallthru_and_redirect): Adjust
12958 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
12959 argument. All callers changed. Be careful about what kinds of
12960 returnjumps to generate.
12961 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
12962 ix86_pad_short_function): Likewise.
12963 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
12965 * config/mips/mips.md (any_return): New code_iterator.
12966 (optab): Add cases for return and simple_return.
12967 (return): Expand to a simple_return.
12968 (simple_return): New pattern.
12969 (*<optab>, *<optab>_internal for any_return): New patterns.
12970 (return_internal): Remove.
12971 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
12972 a simple_return_internal.
12974 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
12976 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
12977 (vec_extract_lo_<mode>): Prevent both operands in memory.
12978 (vec_extract_lo_v16hi): Ditto.
12979 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
12981 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
12983 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
12984 (*sse2_mulv4si3): Ditto.
12986 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
12987 notes to REG_EQUAL.
12989 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
12992 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
12993 when all outputs are unused.
12994 (sse4_2_pcmpistr): Ditto.
12996 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
12998 * config/i386/i386.md (round<mode>2): New expander.
12999 * config/i386/i386.c (enum ix86_builtins): Add
13000 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
13001 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
13003 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
13004 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
13006 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
13008 PR middle-end/50083
13009 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
13010 only when TARGET_C99_FUNCTIONS.
13011 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
13012 <BUILT_IN_RINT{,F,L}>: Ditto.
13014 2011-08-26 Michael Matz <matz@suse.de>
13015 Jakub Jelinek <jakub@redhat.com>
13018 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
13019 don't call strlen twice, use memcpy.
13021 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
13023 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
13024 * config/i386/bmiintrin.h: Likewise.
13025 * config/i386/lzcntintrin.h: Likewise.
13027 * config/i386/immintrin.h: Include <lzcntintrin.h>,
13028 <bmiintrin.h> and <bmi2intrin.h>.
13030 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13033 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
13034 * configure: Regenerate.
13036 2011-08-26 Jakub Jelinek <jakub@redhat.com>
13039 * c-typeck.c (c_process_expr_stmt): Skip over nops and
13040 call mark_exp_read even if exprv is ADDR_EXPR.
13042 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
13044 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
13045 to df_set_dead_notes_for_mw.
13047 2011-08-26 Richard Guenther <rguenther@suse.de>
13049 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
13051 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
13052 Tom de Vries <tom@codesourcery.com>
13054 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
13055 (struct ivopts_data): Add loop_single_exit_p field.
13056 (niter_for_exit): Change parameter desc_p into return value. Return
13057 desc if desc->may_be_zero. Free desc if unused.
13058 (niter_for_single_dom_exit): Change return type.
13059 (find_induction_variables): Handle changed return type of
13060 niter_for_single_dom_exit. Dump may_be_zero.
13061 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
13062 (set_use_iv_cost): Add and handle comp parameter.
13063 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
13064 comp argument to set_use_iv_cost.
13065 (strip_wrap_conserving_type_conversions, expr_equal_p)
13066 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
13067 (may_eliminate_iv): Add comp parameter. Handle new return type of
13068 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
13069 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
13070 and may_eliminate_iv.
13071 (rewrite_use_compare): Move call to iv_elimination_compare to ...
13072 (may_eliminate_iv): Here.
13073 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
13075 2011-08-26 Tom de Vries <tom@codesourcery.com>
13077 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
13078 accessing TREE_TYPE.
13080 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
13082 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
13083 (*ior_scc_scc_cmp): Likewise
13084 (*and_scc_scc): Likewise.
13085 (*and_scc_scc_cmp): Likewise.
13086 (*and_scc_scc_nodom): Likewise.
13087 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
13089 2011-08-26 Jakub Jelinek <jakub@redhat.com>
13091 * rtlanal.c (nonzero_bits1): Handle CLRSB.
13093 2011-08-26 Richard Guenther <rguenther@suse.de>
13095 * expr.c (string_constant): Handle &MEM_REF.
13097 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
13099 * config/arm/arm.c (struct four_ints): New type.
13100 (count_insns_for_constant): Delete function.
13101 (find_best_start): Delete function.
13102 (optimal_immediate_sequence): New function.
13103 (optimal_immediate_sequence_1): New function.
13104 (arm_gen_constant): Move constant splitting code to
13105 optimal_immediate_sequence.
13106 Rewrite constant negation/invertion code.
13108 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
13110 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
13111 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
13112 Remove prototype. Remove static function type.
13113 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
13114 Add arch attribute.
13115 * config/arm/constraints.md (Pj, PJ): New constraints.
13117 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13119 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
13120 ("cortex_a9_multiply_long"): New and use above. Handle all
13121 long multiply cases.
13122 ("cortex_a9_multiply"): Handle smmul and smmulr.
13123 ("cortex_a9_mac"): Handle smmla.
13125 2011-08-25 Richard Henderson <rth@redhat.com>
13129 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
13130 non-constant stack adjutment.
13131 * expr.c (find_args_size_adjust): Break out from ...
13132 (fixup_args_size_notes): ... here.
13133 * rtl.h (find_args_size_adjust): Declare.
13135 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
13137 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
13138 sse4 and sse4_noavx.
13139 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
13140 (*pushdf_rex64): Change Y2 register constraint to x.
13141 (*movdf_internal_rex64): Ditto.
13142 (*zero_extendsidi2_rex64): Ditto.
13143 (*movdi_internal): Change Y2 register constraint to x
13144 and update "isa" attribute.
13146 (*movdf internal): Ditto.
13147 (zero_extendsidi2_1): Ditto.
13148 (*truncdfdf_mixed): Ditto.
13149 (*truncxfdf2_mixed): Ditto.
13150 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
13151 register constraint to x.
13152 (*movv2sf_internal_rex64): Ditto.
13153 (*mov<mode>_internal): Change Y2 register constraint to x
13154 and add "isa" attribute.
13155 (*movv2sf_internal): Ditto.
13156 (*vec_extractv2si_1): Ditto.
13157 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
13158 constraints to x and update "isa" attribute.
13159 (*vec_interleave_highv2df): Change Y3 registerconstraint
13160 to x and update "isa" attribute.
13161 (*vec_interleave_lowv2df): Ditto.
13162 (*vec_concatv2df): Change Y2 register constraint to x and
13163 update "isa" attribute.
13164 (sse2_loadld): Ditto.
13165 (*vec_extractv2di_1): Ditto.
13166 (*vec_dupv4si): Ditto.
13167 (*vec_dupv2di): Ditto.
13168 (*vec_concatv4si): Ditto.
13169 (vec_concatv2di): Ditto.
13170 * config/i386/constraints.md (Y2): Remove.
13174 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
13176 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
13177 dump_def_use_chain): Don't declare.
13178 (mark_conflict, create_new_chain): Move before users.
13179 (regrename_optimize): Move to near end of file.
13181 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
13183 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
13184 (secondary_input_reload_class): Remove Prototype.
13185 * config/avr/avr.c (byte_immediate_operand): Remove Function.
13186 * config/avr/avr.md (setmemhi): Use u8_operand.
13187 (strlenhi): Use const0_rtx for comparison.
13188 * config/avr/avr.h (avr_reg_order): Remove Declaration.
13190 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
13192 * config/avr/avr.c (reg_class_tab): Make local to
13193 avr_regno_reg_class. Return smallest register class available.
13195 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
13197 * config/avr/avr.c (STR_PREFIX_P): New Define.
13198 (avr_asm_declare_function_name): Use it.
13199 (avr_asm_named_section): Use it.
13200 (avr_section_type_flags): Use it.
13202 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
13204 * doc/md.texi (automata_option): Document collapse-ndfa.
13205 * genautomata.c (COLLAPSE_OPTION): New macro.
13206 (collapse_flag): New static variable.
13207 (struct description): New member normal_decls_num.
13208 (struct automaton): New members advance_ainsn and collapse_ainsn.
13209 (gen_automata_option): Check for COLLAPSE_OPTION.
13210 (collapse_ndfa_insn_decl): New static variable.
13211 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
13212 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
13213 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
13214 necessary. Use normal_decls_num rather than decls_num, remove
13215 test for special decls.
13216 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
13217 (make_automaton); Likewise. Use the new advance_cycle_insn member
13218 of struct automaton.
13219 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
13221 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
13222 transition. Create the necessary transitions for it.
13223 (create_ainsns): Return void. Take an automaton_t argument, and
13224 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
13226 (COLLAPSE_NDFA_VALUE_NAME): New macro.
13227 (output_tables): Output code to define it.
13228 (output_internal_insn_code_evaluation): Output code to accept
13229 const0_rtx as collapse-ndfa transition.
13230 (output_default_latencies, output_print_reservation_func,
13231 output_print_description): Reorganize loops to use normal_decls_num
13232 as loop bound; remove special case for advance_cycle_insn_decl.
13233 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
13234 (check_automata_insn_issues): Check for collapse_ainsn.
13235 (expand_automate): Allocate sufficient space. Initialize
13238 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
13240 * config/avr/avr.md: Fix indentation from r177991.
13242 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
13244 * regrename.c (struct du_head): Remove member terminated.
13245 (create_new_chain): Don't initialize it.
13246 (scan_rtx_reg): Don't set or test it, test the open_chains_set
13248 (tick, this_tick): New global variables, moved out of
13249 regrename_optimize.
13250 (current_id, open_chains, closed_chains, open_chains_set,
13251 live_in_chains, live_hard_regs): Reorder declarations.
13252 (dump_def_use_chain): Move function earlier in the file.
13253 (rename_chains): New static function, broken out of
13254 regrename_optimize.
13255 (regrename_optimize): Use it. Remove #if 0'ed code.
13257 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13259 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
13261 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
13264 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
13266 2011-08-24 Richard Guenther <rguenther@suse.de>
13268 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
13269 ref in the basic-block case. Move stripping array-refs
13270 to the place we create an access-function for it. Remove
13271 bogus stripping down a MEM_REF to its base.
13273 2011-08-24 Richard Guenther <rguenther@suse.de>
13275 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
13276 with -fno-strict-overflow.
13278 2011-08-24 Richard Guenther <rguenther@suse.de>
13280 * tree-vectorizer.c (vect_print_dump_info): Avoid the
13281 file and location clutter when dumping to dump files.
13283 2011-08-24 Simon Baldwin <simonb@google.com>
13285 * gengtype-state.c (write_state): Remove timestamped header line.
13287 2011-08-24 Joseph Myers <joseph@codesourcery.com>
13289 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
13290 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
13291 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
13292 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
13293 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
13294 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
13295 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
13297 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
13299 2011-08-24 Joseph Myers <joseph@codesourcery.com>
13301 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
13303 2011-08-24 Richard Guenther <rguenther@suse.de>
13305 PR tree-optimization/50067
13306 * tree-data-ref.c (dr_analyze_indices): Do not add an access
13307 function for a MEM_REF base that has no evolution in the loop
13308 nest or that is not analyzable.
13310 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
13312 * ira.c (ira_init_register_move_cost): Check small subclasses
13313 through ira_reg_class_max_nregs and ira_available_class_regs.
13315 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
13317 * config/i386/constraints.md (Yp): New register constraint.
13318 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
13319 Yp register constraint.
13320 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
13321 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
13322 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
13324 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
13326 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
13328 2011-08-23 Mark Heffernan <meheff@google.com>
13330 PR middle-end/38509
13331 * common.opt (Wfree-nonheap-object): New option.
13332 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
13333 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
13335 (expand_builtin): Make warning conditional.
13337 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
13339 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
13340 (length_immediate): Handle imulx, ishiftx and rotatex.
13343 (enabled): Handle bmi2.
13344 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
13345 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
13346 (*bmi2_umulditi3_1): New insn pattern.
13347 (*bmi2_umulsidi3_1): Ditto.
13348 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
13349 (*bmi2_ashl<mode>3_1): New insn pattern.
13350 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
13351 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
13352 (*bmi2_ashlsi3_1_zext): New insn pattern.
13353 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
13354 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
13355 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
13356 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
13357 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
13359 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
13360 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
13361 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
13363 (*bmi2_rorx<mode>3_1): New insn pattern.
13364 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
13365 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
13366 (*rotatert<mode>3_1 splitter): Ditto.
13367 (*bmi2_rorxsi3_1_zext): New insn pattern.
13368 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
13369 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
13370 (*rotatertsi3_1_zext splitter): Ditto.
13372 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
13374 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
13375 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
13376 (ix86_handle_option): Handle OPT_mbmi2 case.
13377 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
13378 (x86_64-*-*): Likewise.
13379 * config/i386/bmi2intrin.h: New file.
13380 * config/i386/cpuid.h (bit_BMI2): New.
13381 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13383 * config/i386/i386-c.c (ix86_target_macros_internal):
13384 Conditionally define __BMI2__.
13385 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
13386 Handle BMI2 option.
13387 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
13388 (print_reg): New code.
13389 (ix86_print_operand): Likewise.
13390 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
13391 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
13392 IX86_BUILTIN_PEXT64.
13393 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
13394 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
13395 IX86_BUILTIN_PEXT64.
13396 * config/i386/i386.h (TARGET_BMI2): New.
13397 * config/i386/i386.md (UNSPEC_PDEP): New.
13398 (UNSPEC_PEXT): Likewise.
13399 (*bmi2_bzhi_<mode>3): Likewise.
13400 (*bmi2_pdep_<mode>3): Likewise.
13401 (*bmi2_pext_<mode>3): Likewise.
13402 * config/i386/i386.opt (mbmi2): New.
13403 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
13405 * doc/extend.texi: Document BMI2 built-in functions.
13406 * doc/invoke.texi: Document -mbmi2.
13408 2011-08-23 Jakub Jelinek <jakub@redhat.com>
13410 PR middle-end/50161
13411 * simplify-rtx.c (simplify_const_unary_operation): If
13412 op is CONST_INT, don't look at op_mode, but use instead mode.
13413 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
13414 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
13415 operation and TRUNCATE/ZERO_EXTEND if needed.
13416 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
13417 Document that operand mode must be same as operation mode,
13419 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
13420 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
13421 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
13422 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
13423 use the mode of operand for the operation and add truncate
13424 or zero_extend around if needed.
13425 * config/c6x/c6x.md (ctzdi2): Likewise.
13426 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
13428 2011-08-12 Michael Matz <matz@suse.de>
13430 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
13431 (gimple_expand_cfg): Merge alignment info for coalesced pointer
13434 2011-08-23 Richard Guenther <rguenther@suse.de>
13436 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
13437 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
13438 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
13440 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
13441 (mem_refs_may_alias_p): Adjust.
13442 * tree-data-ref.h (dr_may_alias_p): Adjust.
13443 * tree-data-ref.c: Include tree-affine.h.
13444 (dr_analyze_indices): Do nothing for the non-loop case.
13445 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
13446 more cases in the non-loop case.
13447 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
13448 calls to dr_may_alias_p.
13449 (write_alias_graph_to_ascii_ecc): Likewise.
13450 (write_alias_graph_to_ascii_dot): Likewise.
13451 (build_alias_set_optimal_p): Likewise.
13453 2011-08-23 Richard Guenther <rguenther@suse.de>
13455 PR tree-optimization/50162
13456 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
13458 2011-08-23 Richard Guenther <rguenther@suse.de>
13460 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
13461 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
13462 (create_data_ref): Also dump access functions for the created data-ref.
13464 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
13465 Kirill Yukhin <kirill.yukhin@intel.com>
13468 * config/i386/sse.md (VI_AVX2): New.
13469 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
13470 (*<plusminus_insn><mode>3): Ditto.
13471 (<sse2_avx2>_andnot<mode>3): Ditto.
13472 (*andnot<mode>3): Fix order of cond operands.
13473 Add asserts for correct TARGET_xxx.
13474 (*<any_logic:code><mode>3): Ditto.
13476 2011-08-22 Anatoly Sokolov <aesok@post.ru>
13478 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
13479 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
13480 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
13481 regclass argument type to reg_class_t. Change 'max' and 'v' vars
13482 and return types to unsigned char. Use reg_class_contents instead
13484 (TARGET_CLASS_MAX_NREGS): Define.
13486 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
13488 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
13489 to make computed_jump_p return true.
13491 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13493 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
13494 (PICFLAG_FOR_TARGET): Substitute.
13495 * aclocal.m4: Regenerate.
13496 * configure: Regenerate.
13498 2011-08-22 Dodji Seketeli <dodji@redhat.com>
13500 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
13501 after reading in the pch.
13503 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
13505 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
13506 * configure: Regenerated.
13508 2011-08-22 Jakub Jelinek <jakub@redhat.com>
13510 PR tree-optimization/50133
13511 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
13512 from stmt instead of some statement around gsi.
13514 PR middle-end/50141
13515 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
13516 innerdecl is a VAR_DECL.
13518 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
13520 * config/i386/avx2intrin.h: New file.
13521 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
13522 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
13523 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
13524 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
13525 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
13526 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
13527 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
13528 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
13529 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
13530 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
13531 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
13532 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
13533 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
13534 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
13535 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
13536 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
13537 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
13538 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
13539 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
13540 VOID_FTYPE_PV8SI_V8SI_V8SI,
13541 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
13542 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
13543 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
13544 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
13545 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
13546 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
13547 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
13548 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
13549 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
13550 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
13551 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
13552 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
13553 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
13554 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
13555 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
13556 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
13557 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
13558 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
13559 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
13560 V4DI_FTYPE_V4DI_INT_CONVERT,
13561 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
13562 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
13563 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
13564 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
13565 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
13566 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
13567 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
13568 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
13569 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
13570 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
13571 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
13572 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
13573 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
13574 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
13575 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
13576 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
13577 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
13578 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
13579 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
13580 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
13581 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
13582 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
13583 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
13584 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
13585 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
13586 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
13587 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
13588 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
13589 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
13590 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
13591 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
13592 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
13593 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
13594 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
13595 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
13596 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
13597 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
13598 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
13599 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
13600 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
13601 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
13602 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
13603 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
13604 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
13605 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
13606 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
13607 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
13608 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
13609 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
13610 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
13611 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
13612 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
13613 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
13614 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
13615 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
13616 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
13617 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
13618 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
13619 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
13620 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
13621 IX86_BUILTIN_VBROADCASTSS_PS256,
13622 IX86_BUILTIN_VBROADCASTSD_PD256,
13623 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
13624 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
13625 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
13626 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
13627 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
13628 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
13629 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
13630 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
13631 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
13632 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
13633 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
13634 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
13635 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
13636 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
13637 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
13638 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
13639 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
13640 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
13641 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
13642 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
13643 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
13644 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
13645 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
13646 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
13647 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
13648 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
13649 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
13650 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
13651 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
13652 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
13653 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
13654 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
13655 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
13656 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
13657 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
13658 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
13659 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
13660 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
13661 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
13662 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
13663 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
13664 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
13665 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
13666 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
13667 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
13668 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
13669 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
13670 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
13671 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
13672 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
13673 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
13674 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
13675 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
13676 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
13677 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
13678 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
13679 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
13680 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
13681 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
13682 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
13683 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
13684 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
13685 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
13686 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
13687 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
13688 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
13689 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
13690 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
13691 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
13692 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
13693 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
13694 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
13695 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
13696 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
13697 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
13698 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
13699 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
13700 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
13701 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
13702 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
13703 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
13704 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
13705 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
13706 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
13707 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
13708 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
13709 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
13710 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
13711 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
13712 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
13713 IX86_BUILTIN_VBROADCASTSD_PD256,
13714 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
13715 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
13716 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
13717 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
13718 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
13719 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
13720 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
13721 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
13722 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
13723 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
13724 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
13725 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
13726 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
13727 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
13728 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
13729 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
13730 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
13731 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
13732 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
13733 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
13734 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
13735 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
13736 IX86_BUILTIN_GATHERDIV8SI.
13737 (ix86_preferred_simd_mode): Support AVX2 modes.
13738 (ix86_expand_args_builtin): Support AVX2 builtins.
13739 (ix86_expand_special_args_builtin): Likewise.
13740 (ix86_expand_builtin): Likewise.
13741 * config/i386/i386.md (UNSPEC_VPERMSI): New.
13742 (UNSPEC_VPERMDF): Likewise.
13743 (UNSPEC_VPERMSF): Likewise.
13744 (UNSPEC_VPERMDI): Likewise.
13745 (UNSPEC_VPERMTI): Likewise.
13746 (UNSPEC_GATHER): Likewise.
13747 (ssemodesuffix): Extend.
13748 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
13750 * config/i386/predicates.md (const1248_operand): New.
13751 * config/i386/sse.md (VI1_AVX2): New mode iterator.
13752 (VI2_AVX2): Likewise.
13753 (VI4_AVX2): Likewise.
13754 (VI8_AVX2): Likewise.
13755 (VIMAX_AVX2): Likewise.
13756 (SSESCALARMODE): Likewise.
13757 (VI12_AVX2): Likewise.
13758 (VI24_AVX2): Likewise.
13759 (VI124_AVX2): Likewise.
13760 (VI248_AVX2): Likewise.
13761 (VI48_AVX2): Likewise.
13762 (VI4SD_AVX2): Likewise.
13763 (V48_AVX2): Likewise.
13764 (AVX256MODE2P): Likewise.
13765 (AVXMODE48P_DI): Likewise.
13766 (sse2_avx2): New mode attribute.
13767 (ssse3_avx2): Likewise.
13768 (sse4_1_avx2): Likewise.
13769 (avx_avx2): Likewise.
13770 (ssebytemode): Likewise.
13771 (AVXTOSSEMODE): Likewise.
13772 (AVXMODE48P_DI): Likewise.
13773 (gthrfirstp): Likewise.
13774 (gthrlastp): Likewise.
13775 (lshift): New code_iterator
13776 (lshift): New code attribute.
13777 (lshift): Likewise.
13778 (ssescalarmodesuffix): Update.
13779 (sseunpackmode): Likewise.
13780 (ssepackmode): Likewise.
13781 (avx2_vec_dupv4sf): New insn pattern.
13782 (avx2_vec_dupv8sf): Likewise.
13783 (avx2_interleave_highv4di): Likewise.
13784 (avx2_interleave_lowv4di): Likewise.
13785 (avx2_umulv4siv4di3): Likewise
13786 (*avx2_umulv4siv4di3): Likewise
13787 (avx2_pmaddwd): Likewise.
13788 (*avx2_pmaddwd): Likewise.
13789 (avx2_lshrqv4di3): Likewise.
13790 (avx2_lshlqv4di3): Likewise.
13791 (avx2_lshl<mode>3): Likewise.
13792 (avx2_<umaxmin:code><mode>3): Likewise.
13793 (*avx2_<umaxmin:code><mode>3): Likewise.
13794 (avx2_<smaxmin:code><mode>3): Likewise.
13795 (*avx2_<smaxmin:code><mode>3): Likewise.
13796 (avx2_eq<mode>3): Likewise.
13797 (*avx2_eq<mode>3): Likewise.
13798 (avx2_gt<mode>3): Likewise.
13799 (avx2_interleave_highv32qi): New.
13800 (avx2_interleave_lowv32qi): Likewise.
13801 (avx2_interleave_highv16hi): Likewise.
13802 (avx2_interleave_lowv16hi): Likewise.
13803 (avx2_interleave_highv8si): Likewise.
13804 (avx2_interleave_lowv8si): Likewise.
13805 (avx2_pshufd): Likewise.
13806 (avx2_pshufd_1): Likewise.
13807 (avx2_pshuflwv3): Likewise.
13808 (avx2_pshuflw_1): Likewise.
13809 (avx2_pshufhwv3): Likewise.
13810 (avx2_pshufhw_1): Likewise.
13811 (avx2_uavgv32qi3): Likewise.
13812 (*avx2_uavgv32qi3): Likewise.
13813 (avx2_uavgv16hi3): Likewise.
13814 (*avx2_uavgv16hi3): Likewise.
13815 (avx2_pmovmskb): Likewise.
13816 (avx2_phaddwv16hi3): Likewise.
13817 (avx2_phadddv8si3): Likewise.
13818 (avx2_phaddswv16hi3): Likewise.
13819 (avx2_phsubwv16hi3): Likewise.
13820 (avx2_phsubdv8si3): Likewise.
13821 (avx2_phsubswv16hi3): Likewise.
13822 (avx2_pmaddubsw256): Likewise.
13823 (avx2_umulhrswv16hi3): Likewise.
13824 (*avx2_umulhrswv16hi3): Likewise.
13825 (avx2_packusdw): Likewise.
13826 (avx2_pblendd<mode>): Likewise.
13827 (avx2_<code>v16qiv16hi2): Likewise.
13828 (avx2_<code>v8qiv8si2): Likewise.
13829 (avx2_<code>v8hiv8si2): Likewise.
13830 (avx2_<code>v4qiv4di2): Likewise.
13831 (avx2_<code>v4hiv4di2): Likewise.
13832 (avx2_<code>v4siv4di2): Likewise.
13833 (avx2_pbroadcast<mode>): Likewise.
13834 (avx2_permvarv8si): Likewise.
13835 (avx2_permv4df): Likewise.
13836 (avx2_permvarv8sf): Likewise.
13837 (avx2_permv4di): Likewise.
13838 (avx2_permv2ti): Likewise.
13839 (avx2_vec_dupv4df): Likewise.
13840 (avx2_vbroadcasti128_<mode>): Likewise.
13841 (avx2_vec_set_lo_v4di): Likewise.
13842 (avx2_vec_set_hi_v4di): Likewise.
13843 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
13844 (avx2_extracti128): Likewise.
13845 (avx2_inserti128): Likewise.
13846 (avx2_ashrvv8si): Likewise.
13847 (avx2_ashrvv4si): Likewise.
13848 (avx2_<lshift>vv8si): Likewise.
13849 (avx2_<lshift>v<mode>): Likewise.
13850 (avx2_<lshift>vv2di): Likewise.
13851 (avx2_gathersi<mode>): Likewise.
13852 (*avx2_gathersi<mode>): Likewise.
13853 (avx2_gatherdi<mode>): Likewise.
13854 (*avx2_gatherdi<mode>): Likewise.
13855 (avx2_gatherdi<mode>256): Likewise.
13856 (*avx2_gatherdi<mode>256): Likewise.
13857 (<plusminus_insn><mode>3): Use VI mode iterator.
13858 (*<plusminus_insn><mode>3): Use VI mode iterator.
13859 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
13860 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
13861 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
13862 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
13863 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
13864 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
13865 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
13866 Use VI2_AVX2 mode iterator.
13867 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
13868 Use VI2_AVX2 mode iterator.
13869 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
13870 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
13871 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
13872 Use VI4_AVX2 mode iterator.
13873 (ashr<mode>3): Use VI24_AVX2 mode iterator.
13874 (lshr<mode>3): Use VI248_AVX2 mode iterator.
13875 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
13876 Use VIMAX_AVX2 mode iterator.
13877 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
13878 Use VI mode iterator.
13879 (*andnot<mode>3): Update for AVX2.
13880 (*<any_logic:code><mode>3): Likewise.
13881 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
13882 Use VI1_AVX mode iterator.
13883 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
13884 Use VI2_AVX mode iterator.
13885 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
13886 Use VI1_AVX mode iterator.
13887 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
13888 Use VI8_AVX2 mode iterator.
13889 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
13890 Use VI1_AVX2 mode iterator.
13891 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
13892 Use VI124_AVX2 mode iterator.
13893 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
13894 Use SSESCALARMODE mode iterator.
13895 (abs<mode>2): Use VI124_AVX2 mode iterator.
13896 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
13897 Use VI8_AVX2 mode iterator.
13898 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
13899 Use VI1_AVX2 mode iterator.
13900 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
13901 Use VI1_AVX2 mode iterator.
13902 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
13903 Use VI2_AVX2 mode iterator.
13904 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
13905 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
13906 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
13907 avx_maskstore<ssemodesuffix><avxsizesuffix>.
13908 Use V48_AVX2 mode iterator.
13909 * doc/extend.texi: Document AVX2 built-in functions.
13910 * doc/invoke.texi: Document -mavx2.
13912 2011-08-22 Matthias Klose <doko@debian.org>
13915 2011-07-11 Arthur Loiret <aloiret@debian.org>
13916 Matthias Klose <doko@debian.org>
13917 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
13918 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
13920 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
13922 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
13925 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
13926 to #ifndef HONOR_REG_ALLOC_ORDER block.
13928 2011-08-21 Richard Henderson <rth@redhat.com>
13930 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
13931 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
13932 * resource.c (next_insn_no_annul): Likewise.
13933 (mark_set_resources): Likewise.
13934 * reorg.c (delete_from_delay_slot): Likewise.
13935 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
13936 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
13938 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
13940 * config/i386/i386.md (any_div): Remove.
13941 (sgnprefix): Update for removal.
13944 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
13946 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
13947 for ira_reg_class_max_nregs. Increase pressure by 1.
13948 (mark_pseudo_regno_subword_dead): Use allocno class
13949 for ira_reg_class_max_nregs.
13951 2011-08-20 Richard Henderson <rth@redhat.com>
13953 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
13954 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
13955 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
13956 config/c6x/ltf.c: Adjust include path for soft-fp.
13958 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
13961 * config.gcc (tm_file): Add initfini-array.h if
13962 .init_arrary/.fini_array are supported.
13964 * crtstuff.c: Don't generate .ctors nor .dtors sections if
13965 USE_INITFINI_ARRAY is defined.
13967 * output.h (default_elf_init_array_asm_out_constructor): New.
13968 (default_elf_fini_array_asm_out_destructor): Likewise.
13969 * varasm.c (elf_init_array_section): Likewise.
13970 (elf_fini_array_section): Likewise.
13971 (get_elf_initfini_array_priority_section): Likewise.
13972 (default_elf_init_array_asm_out_constructor): Likewise.
13973 (default_elf_fini_array_asm_out_destructor): Likewise.
13975 * config/initfini-array.h: New.
13977 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
13979 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
13980 OK for ST_REGS and FP_REGS before taking those classes into account.
13982 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
13984 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
13985 before checking for annulled branches.
13987 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
13989 * config/i386/i386.c (ix86_binary_operator_ok): Use
13990 satisfies_constraint_L.
13992 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
13993 Michael Matz <matz@suse.de>
13995 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
13996 trunc (a + copysign (nextafter (0.5, 0.0), a)).
13998 2011-08-20 Anatoly Sokolov <aesok@post.ru>
14000 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14001 * doc/tm.texi: Regenerate.
14002 * targhooks.c (default_preferred_output_reload_class): Don't use
14003 PREFERRED_OUTPUT_RELOAD_CLASS macro.
14004 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
14006 2011-08-20 Jakub Jelinek <jakub@redhat.com>
14008 PR tree-optimization/48739
14009 * tree-ssa.c: Include cfgloop.h.
14010 (execute_update_addresses_taken): When updating ssa, if in loop closed
14011 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
14012 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
14014 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
14016 PR rtl-optimization/49936
14017 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
14018 for calculation of max register move costs.
14020 2011-08-19 Joseph Myers <joseph@codesourcery.com>
14022 * c-parser.c (c_parser_postfix_expression): Convert operands of
14023 __builtin_complex to their semantic types.
14025 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
14027 PR middle-end/49721
14028 * explow.c (convert_memory_address_addr_space): Also permute the
14029 conversion and addition of constant for zero-extend.
14031 2011-08-19 Joseph Myers <joseph@codesourcery.com>
14033 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
14034 * doc/extend.texi (__builtin_complex): Document.
14036 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
14038 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
14039 beyond conversions.
14040 (convert_mult_to_widen): Convert constant inputs to the right type.
14041 (convert_plusminus_to_widen): Don't automatically reject inputs that
14042 are not an SSA_NAME.
14043 Convert constant inputs to the right type.
14045 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
14047 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
14048 to the correct type.
14050 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
14052 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
14053 unsigned inputs of different modes.
14054 (convert_plusminus_to_widen): Likewise.
14056 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
14058 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
14060 Use 'type' from caller, not inferred from 'rhs'.
14061 Don't reject non-conversion statements. Do return lhs in this case.
14062 (is_widening_mult_p): Add new argument 'type'.
14063 Use 'type' from caller, not inferred from 'stmt'.
14064 Pass type to is_widening_mult_rhs_p.
14065 (convert_mult_to_widen): Pass type to is_widening_mult_p.
14066 (convert_plusminus_to_widen): Likewise.
14068 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
14070 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
14071 Ensure the the larger type is the first operand.
14073 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
14075 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
14076 unsupported unsigned multiplies to signed.
14077 (convert_plusminus_to_widen): Likewise.
14079 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
14081 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
14082 conversion statement separating multiply-and-accumulate.
14084 2011-08-19 Richard Guenther <rguenther@suse.de>
14086 PR tree-optimization/50067
14087 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
14088 offset only if we accounted for it.
14090 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
14092 * config/arm/arm.md (maddhidi4): Remove '*' from name.
14093 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
14094 * optabs.c (find_widening_optab_handler_and_mode): New function.
14095 (expand_widen_pattern_expr): Use find_widening_optab_handler.
14096 (expand_binop_directly): Likewise.
14097 (expand_binop): Likewise.
14098 * optabs.h (find_widening_optab_handler): New macro define.
14099 (find_widening_optab_handler_and_mode): New prototype.
14100 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
14101 type precision rules.
14102 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
14103 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
14104 (is_widening_mult_rhs_p): Allow widening by more than one mode.
14105 Explicitly disallow mis-matched input types.
14106 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
14107 input types to fit the new handler.
14108 (convert_plusminus_to_widen): Likewise.
14110 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
14112 * expr.c (expand_expr_real_2): Use widening_optab_handler.
14113 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
14114 (gen_insn): $N now means $a must be wider than $b, not consecutive.
14115 * optabs.c (widened_mode): New function.
14116 (expand_widen_pattern_expr): Use widening_optab_handler.
14117 (expand_binop_directly): Likewise.
14118 (expand_binop): Likewise.
14119 * optabs.h (widening_optab_handlers): New struct.
14120 (optab_d): New member, 'widening'.
14121 (widening_optab_handler): New function.
14122 (set_widening_optab_handler): New function.
14123 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
14124 widening_optab_handler.
14125 (convert_plusminus_to_widen): Likewise.
14127 2011-08-19 Joseph Myers <joseph@codesourcery.com>
14129 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
14131 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
14132 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
14134 2011-08-19 Joseph Myers <joseph@codesourcery.com>
14136 * opth-gen.awk: Do not declare target save/restore structures and
14137 functions if IN_RTS defined.
14139 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
14142 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
14143 when stack was realigned in interrupt handler prologue.
14145 2011-08-18 Joseph Myers <joseph@codesourcery.com>
14147 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
14148 (quals_from_declspecs): Assert _Noreturn not present.
14149 (grokdeclarator): Handle _Noreturn.
14150 (build_null_declspecs): Initialize noreturn_p.
14151 (declspecs_add_scspec): Handle RID_NORETURN.
14152 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
14153 (c_parser_attributes): Handle RID_NORETURN.
14154 * c-tree.h (struct c_declspecs): Add noreturn_p.
14155 * ginclude/stdnoreturn.h: New.
14156 * Makefile.in (USER_H): Add stdnoreturn.h.
14158 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
14160 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
14161 (OPTION_MASK_ISA_AVX_UNSET): Update.
14162 (OPTION_MASK_ISA_AVX2_UNSET): New.
14163 (ix86_handle_option): Handle OPT_mavx2 case.
14164 * config/i386/cpuid.h (bit_AVX2): New.
14165 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14167 * config/i386/i386-c.c (ix86_target_macros_internal):
14168 Conditionally define __AVX2__.
14169 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
14170 Define "core-avx2" processor alias. Handle avx2 option.
14171 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
14172 * config/i386/i386.h (TARGET_AVX2): New.
14173 * config/i386/i386.opt (mavx2): New.
14174 * doc/invoke.texi: Document -mavx2.
14176 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
14178 PR rtl-optimization/49890
14179 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
14180 subclasses of class which is superset of a pressure class.
14182 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
14183 Igor Zamyatin <igor.zamyatin@intel.com>
14185 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
14186 with HOST_WIDE_INT for isa_flag.
14187 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
14190 * config/i386/i386.c (ix86_target_string): Replace int with
14191 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
14192 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
14193 (pta_flags): Removed.
14194 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
14195 (pta): Use HOST_WIDE_INT on flags.
14196 (builtin_isa): Use HOST_WIDE_INT on isa.
14197 (ix86_add_new_builtins): Likewise.
14198 (def_builtin): Use HOST_WIDE_INT on mask.
14199 (def_builtin_const): Likewise.
14200 (builtin_description): Likewise.
14202 * config/i386/i386.opt (ix86_isa_flags): Replace int with
14204 (ix86_isa_flags_explicit): Likewise.
14205 (x_ix86_isa_flags_explicit): Likewise.
14207 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
14209 PR rtl-optimization/50107
14210 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
14211 (ira_hard_reg_in_set_p): New.
14213 * ira-color.c (calculate_saved_nregs): New.
14214 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
14216 (allocno_reload_assign, fast_allocation): Use
14217 ira_hard_reg_set_intersection_p instead of
14218 ira_hard_reg_not_in_set_p.
14220 * ira.c (setup_reg_renumber): Use
14221 ira_hard_reg_set_intersection_p instead of
14222 ira_hard_reg_not_in_set_p.
14223 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
14224 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
14226 * ira-costs.c (ira_tune_allocno_costs): Use
14227 ira_hard_reg_set_intersection_p instead of
14228 ira_hard_reg_not_in_set_p.
14230 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
14231 Igor Zamyatin <igor.zamyatin@intel.com>
14233 * hwint.h (HOST_WIDE_INT_1): New.
14235 * opt-functions.awk (switch_bit_fields): Initialize the
14236 host_wide_int field.
14237 (host_wide_int_var_name): New.
14238 (var_type_struct): Check and return HOST_WIDE_INT.
14240 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
14242 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
14244 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
14245 check masks for HOST_WIDE_INT.
14247 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
14248 (option_enabled): Likewise.
14249 (get_option_state): Likewise.
14251 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
14254 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14255 Marc Glisse <marc.glisse@normalesup.org>
14257 PR libstdc++-v3/1773
14258 * target.def (decl_mangling_context): New C++ hook.
14259 * doc/tm.texi: Regenerate.
14260 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
14261 * config/sol2-protos.h: Group by source file.
14262 (solaris_cxx_decl_mangling_context): Declare.
14263 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
14264 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
14266 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
14267 Add sol2-stubs.o to extra_objs.
14269 2011-08-18 Jakub Jelinek <jakub@redhat.com>
14272 * stor-layout.c (update_alignment_for_field): Don't ICE on
14273 packed flexible array members if ms_bitfield_layout_p.
14276 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
14277 on the result before returning it.
14280 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
14281 is a debug stmt, use location of the first non-debug stmt after it.
14283 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
14285 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
14286 (arm_size_rtx_costs): Likewise.
14288 2011-08-18 Richard Guenther <rguenther@suse.de>
14290 * tree.h (tree_int_cst_msb): Remove.
14291 * tree.c (tree_int_cst_msb): Likewise.
14292 (tree_int_cst_sign_bit): Move from ...
14293 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
14295 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
14297 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
14298 * doc/tm.texi: Regenerate.
14299 * target.def (rtx_costs): Add an opno parameter.
14300 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
14301 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
14302 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
14303 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
14304 * cse.c (COST_IN): Add an opno parameter.
14305 (notreg_cost): Likewise. Update call to rtx_cost.
14306 (COST, fold_rtx): Update accordingly.
14307 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
14308 * expmed.c (emit_store_flag): Likewise.
14309 * optabs.c (avoid_expensive_constant): Add an opno parameter.
14310 Update call to rtx_cost.
14311 (expand_binop_directly, expand_binop): Likewise.
14312 (expand_twoval_binop, prepare_cmp_insn): Likewise.
14313 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
14314 (set_src_cost, get_full_set_src_cost): Update accordingly.
14315 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
14317 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
14318 (default_adress_cost): Update calls to rtx_cost.
14320 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
14321 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
14322 (arm_rtx_costs): Add an opno parameter.
14323 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
14324 adjust any recursive rtx-cost calls.
14325 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
14326 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
14327 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
14328 * config/cris/cris.c (cris_rtx_costs): Likewise.
14329 * config/frv/frv.c (frv_rtx_costs): Likewise.
14330 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
14331 * config/i386/i386.c (ix86_rtx_costs): Likewise.
14332 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
14333 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
14334 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
14335 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
14336 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
14337 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
14338 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
14339 * config/mep/mep.c (mep_rtx_cost): Likewise.
14340 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
14341 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
14342 (mips_zero_extend_cost): Add an opno parameter.
14343 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
14344 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
14346 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
14348 * config/pa/pa.c (hppa_rtx_costs): Likewise.
14349 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
14350 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
14351 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
14352 (rs6000_debug_rtx_costs): Likewise.
14353 * config/s390/s390.c (s390_rtx_costs): Likewise.
14354 * config/score/score-protos.h (score_rtx_costs): Likewise.
14355 * config/score/score.c (score_rtx_costs): Likewise.
14356 * config/sh/sh.c (andcosts): Update call to rtx_cost.
14357 (sh_rtx_costs): Add an opno parameter.
14358 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
14359 * config/spu/spu.c (spu_rtx_costs): Likewise.
14360 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
14361 * config/v850/v850.c (v850_rtx_costs): Likewise.
14362 * config/vax/vax.c (vax_rtx_costs): Likewise.
14363 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
14365 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
14367 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
14368 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
14370 * calls.c (precompute_register_parameters): Likewise.
14371 * combine.c (expand_compound_operation, make_extraction): Likewise.
14372 (force_to_mode, distribute_and_simplify_rtx): Likewise.
14373 * dse.c (find_shift_sequence): Likewise.
14374 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
14375 * expr.c (compress_float_constant): Likewise.
14376 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
14377 * gcse.c (want_to_gcse_p): Likewise.
14378 * ifcvt.c (noce_try_sign_mask): Likewise.
14379 * loop-doloop.c (doloop_optimize): Likewise.
14380 * loop-invariant.c (create_new_invariant): Likewise.
14381 * optabs.c (avoid_expensive_constant): Likewise.
14382 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
14383 (try_replace_in_use, reload_cse_move2add): Likewise.
14384 * reload1.c (calculate_elim_costs_all_insns): Likewise.
14385 (note_reg_elim_costly): Likewise.
14386 * rtlanal.c (insn_rtx_cost): Likewise.
14387 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
14388 * stmt.c (lshift_cheap_p): Likewise.
14389 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
14390 * config/avr/avr.c (final_prescan_insn): Likewise.
14391 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
14392 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
14394 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
14396 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
14397 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
14398 * cfgloopanal.c (seq_cost): Likewise.
14399 * loop-invariant.c (create_new_invariant): Likewise.
14400 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
14401 (reload_cse_move2add): Use get_full_set_rtx_cost.
14403 2011-08-18 Richard Guenther <rguenther@suse.de>
14405 * expr.c (get_inner_reference): Fix typo in last change.
14407 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
14408 Joseph Myers <joseph@codesourcery.com>
14410 PR tree-optimization/49963
14411 * hwint.c (absu_hwi): Define.
14412 * hwint.h (absu_hwi): Declare.
14413 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
14415 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
14416 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
14418 2011-08-18 Richard Guenther <rguenther@suse.de>
14420 * expr.c (get_inner_reference): Sign-extend the constant
14421 twos-complement offset before doing arbitrary precision
14423 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
14424 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
14425 to get_constraint_for_ptr_offset.
14427 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
14430 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
14432 2011-08-17 Richard Guenther <rguenther@suse.de>
14434 * tree.h (convert_to_ptrofftype_loc): New function.
14435 (convert_to_ptrofftype): Define.
14436 * builtins.c (expand_builtin_bzero): Use size_type_node.
14437 (fold_builtin_bzero): Likewise.
14438 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
14439 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
14440 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
14441 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
14442 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
14443 * fold-const.c (build_range_check): Negate using the original type.
14444 (fold_unary_loc): Use fold_build_pointer_plus_loc.
14445 * gimple-fold.c (gimple_adjust_this_by_delta): Use
14446 convert_to_ptrofftype.
14447 * gimplify.c (gimplify_self_mod_expr): Likewise.
14448 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
14449 (graphite_create_new_loop_guard): Likewise.
14450 * graphite-sese-to-poly.c (my_long_long): Remove.
14451 (scop_ivs_can_be_represented): Adjust.
14452 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
14453 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
14454 * tree-loop-distribution.c (build_size_arg_loc): Use
14456 (generate_memset_zero): Simplify.
14457 * tree-mudflap.c: Use fold_convert, not convert.
14458 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
14460 (determine_offset): Likewise for DR_STEP.
14461 (valid_initializer_p): Likewise.
14462 * tree-profile.c (prepare_instrumented_value): Convert the pointer
14463 to an integer type of same size.
14464 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
14465 to sizetype without need.
14466 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
14467 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
14468 * tree-ssa-loop-manip.c (create_iv): Likewise.
14469 (determine_exit_conditions): Adjust comment.
14470 * tree-ssa-pre.c (create_expression_by_pieces): Use
14471 convert_to_ptrofftype.
14472 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
14473 * varasm.c (array_size_for_constructor): Compute using double_ints.
14475 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14477 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
14478 when generating an integer result where possible. Short-cut
14479 comparison against 0 also for QImode.
14481 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14483 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
14484 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
14486 * config/spu/spu.c (spu_legitimize_reload_address): New function.
14487 (spu_legitimate_address_p): Do not check displacement if the base
14488 is an eliminable stack register.
14490 2011-08-16 Anatoly Sokolov <aesok@post.ru>
14492 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
14493 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
14494 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
14495 m32c_preferred_output_reload_class): Remove.
14496 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
14497 Change rclass argument and return types to reg_class_t. Use
14498 reg_class_subset_p instead of class_sizes.
14499 (m32c_preferred_output_reload_class): Make static. Change rclass
14500 argument and return types to reg_class_t.
14501 (TARGET_PREFERRED_RELOAD_CLASS,
14502 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14504 2011-08-16 Kai Tietz <ktietz@redhat.com>
14506 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
14508 2011-08-16 Richard GUenther <rguenther@suse.de>
14510 PR tree-optimization/50082
14511 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
14512 warnings here, instead of ...
14513 (ssa_forward_propagate_and_combine): ... here.
14514 (forward_propagate_into_comparison_1): Adjust.
14515 (forward_propagate_into_comparison): Likewise.
14516 (forward_propagate_into_gimple_cond): Likewise.
14517 (forward_propagate_into_cond): Likewise.
14519 2011-08-16 Andreas Schwab <schwab@redhat.com>
14521 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
14522 instead of ggc_alloc_zone_vec_rtvec_def.
14524 2011-08-16 Richard Guenther <rguenther@suse.de>
14526 * tree.h (ptrofftype_p): New helper function.
14527 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
14528 offset verification.
14529 (verify_gimple_assign_binary): Likewise.
14530 * tree.c (build2_stat): Likewise.
14531 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
14532 (reset_evolution_in_loop): Likewise.
14533 * tree-chrec.h (build_polynomial_chrec): Likewise.
14535 2011-08-16 Liang Wang <lwang1@marvell.com>
14537 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
14538 ggc_alloc_zone_vec_rtvec_def.
14540 2011-08-16 Richard Guenther <rguenther@suse.de>
14542 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
14543 helper factored out from ...
14544 (extract_range_from_binary_expr_1): ... here. Re-structure
14545 to not glob handling too different tree codes.
14547 2011-08-15 Richard Henderson <rth@redhat.com>
14549 PR middle-end/50006
14550 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
14551 setting out to include allocate_stack named pattern as well.
14552 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
14553 * stmt.c (expand_stack_restore): Likewise.
14555 2011-08-15 Richard Guenther <rguenther@suse.de>
14557 PR middle-end/50082
14558 * fold-const.c (maybe_canonicalize_comparison_1): Properly
14559 convert the modified operand to the other operand type.
14560 (fold_comparison): Call maybe_canonicalize_comparison_1 with
14561 useless conversions stripped from comparison operands.
14563 2011-08-15 Richard Guenther <rguenther@suse.de>
14565 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
14566 (extract_range_from_unary_expr_1): Restructure.
14568 2011-08-15 Richard Guenther <rguenther@suse.de>
14570 PR tree-optimization/50058
14571 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
14574 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14577 * config/arm/arm.c (output_move_double): Add 2 parameters
14578 to count the number of insns emitted and whether to emit or not.
14579 Use the flag to decide when to emit and count number of instructions
14580 that will be emitted.
14581 Handle case where output_move_double might be called for calculating
14582 lengths with an invalid constant.
14583 (arm_count_output_move_double_insns): Define.
14584 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
14585 (output_move_double): Adjust prototype.
14586 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
14587 output_move_double.
14588 ("*movdi_vfp_cortexa8"): Likewise and add attribute
14590 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
14591 ("*movdf_soft_insn"): Likewise.
14592 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
14593 ("*cirrus_thumb2_movdi"): Likewise.
14594 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
14595 ("*cirrus_movdf_hard_insn"): Likewise.
14596 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
14597 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
14598 ("mov<mode>_internal VMMX"): Likewise.
14599 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
14601 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
14603 * config/i386/i386.c (ix86_expand_round_sse4): New function.
14604 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
14605 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
14608 (rint<mode>2): Simplify TARGET_ROUND check.
14609 (floor<mode>2): Ditto.
14610 (ceil<mode>2): Ditto.
14611 (btrunc<mode>2): Ditto.
14613 2011-08-14 Anatoly Sokolov <aesok@post.ru>
14615 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
14616 as mmix_preferred_output_reload_class.
14618 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
14621 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
14622 (branch_unspec): New insn.
14623 (branch): Beauty farm.
14624 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
14625 to be IF_THEN_ELSE.
14626 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
14627 New static functions.
14628 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
14629 Use CONST_INT_P. Beauty.
14631 2011-08-12 Richard Henderson <rth@redhat.com>
14634 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
14635 * sched-deps.c (init_deps): Clear it.
14636 (deps_analyze_insn): Consume it.
14637 (sched_analyze_insn): Fill it.
14639 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14642 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
14643 for tbh instructions.
14645 2011-08-12 Diego Novillo <dnovillo@google.com>
14647 * data-streamer.h (streamer_write_zero): Rename from output_zero.
14648 (streamer_write_uhwi): Rename from lto_output_uleb128.
14649 (streamer_write_hwi): Rename from output_sleb128.
14650 (streamer_write_string): Rename from lto_output_string.
14651 (streamer_string_index): Rename from lto_string_index.
14652 (streamer_write_string_with_length): Rename from
14653 lto_output_string_with_length.
14654 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
14655 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
14656 (streamer_read_string): Rename from lto_input_string.
14657 (streamer_read_indexed_string): Rename from input_string_internal.
14658 (streamer_read_uhwi): Rename from lto_input_uleb128.
14659 (streamer_read_hwi): Rename from lto_input_sleb128.
14660 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
14661 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
14662 (streamer_write_enum): Rename from lto_output_enum.
14663 (streamer_read_enum): Rename from lto_input_enum.
14664 (streamer_write_record_start): Rename from output_record_start.
14665 (streamer_read_record_start): Rename from input_record_start.
14666 (streamer_write_bitpack): Rename from lto_output_bitpack.
14667 (streamer_read_bitpack): Rename from lto_input_bitpack.
14668 (streamer_write_char_stream): Rename from lto_output_1_stream.
14669 (streamer_read_uchar): Rename from lto_input_1_unsigned.
14670 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
14671 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
14672 (streamer_read_string_cst): Rename from input_string_cst.
14673 (streamer_read_chain): Rename from lto_input_chain.
14674 (streamer_alloc_tree): Rename from lto_materialize_tree.
14675 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
14676 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
14677 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
14678 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
14679 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
14680 (streamer_write_chain): Rename from lto_output_chain.
14681 (streamer_write_tree_header): Rename from lto_output_tree_header.
14682 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
14683 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
14684 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
14685 (streamer_write_builtin): Rename from lto_output_builtin_tree.
14686 (streamer_check_handled_ts_structures): Rename from
14687 check_handled_ts_structures.
14688 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
14689 (streamer_tree_cache_insert_at): Rename from
14690 lto_streamer_cache_insert_at.
14691 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
14692 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
14693 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
14694 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
14695 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
14696 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
14697 (write_identifier): Rename from output_identifier.
14698 (write_ts_common_tree_pointers): Rename from
14699 lto_output_ts_common_tree_pointers.
14700 (write_ts_vector_tree_pointers): Rename from
14701 lto_output_ts_vector_tree_pointers.
14702 (write_ts_complex_tree_pointers): Rename from
14703 lto_output_ts_complex_tree_pointers.
14704 (write_ts_decl_minimal_tree_pointers): Rename from
14705 lto_output_ts_decl_minimal_tree_pointers.
14706 (write_ts_decl_common_tree_pointers): Rename from
14707 lto_output_ts_decl_common_tree_pointers.
14708 (write_ts_decl_non_common_tree_pointers): Rename from
14709 lto_output_ts_decl_non_common_tree_pointers.
14710 (write_ts_decl_with_vis_tree_pointers): Rename from
14711 lto_output_ts_decl_with_vis_tree_pointers.
14712 (write_ts_field_decl_tree_pointers): Rename from
14713 lto_output_ts_field_decl_tree_pointers.
14714 (write_ts_function_decl_tree_pointers): Rename from
14715 lto_output_ts_function_decl_tree_pointers.
14716 (write_ts_type_common_tree_pointers): Rename from
14717 lto_output_ts_type_common_tree_pointers.
14718 (write_ts_type_non_common_tree_pointers): Rename from
14719 lto_output_ts_type_non_common_tree_pointers.
14720 (write_ts_list_tree_pointers): Rename from
14721 lto_output_ts_list_tree_pointers.
14722 (write_ts_vec_tree_pointers): Rename from
14723 lto_output_ts_vec_tree_pointers.
14724 (write_ts_exp_tree_pointers): Rename from
14725 lto_output_ts_exp_tree_pointers.
14726 (write_ts_block_tree_pointers): Rename from
14727 lto_output_ts_block_tree_pointers.
14728 (write_ts_binfo_tree_pointers): Rename from
14729 lto_output_ts_binfo_tree_pointers.
14730 (write_ts_constructor_tree_pointers): Rename from
14731 lto_output_ts_constructor_tree_pointers.
14732 (write_ts_target_option): Rename from lto_output_ts_target_option.
14733 (write_ts_translation_unit_decl_tree_pointers): Rename from
14734 lto_output_ts_translation_unit_decl_tree_pointers.
14735 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
14736 Rename from lto_streamer_cache_add_to_node_array.
14737 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
14738 (record_common_node): Rename from lto_record_common_node.
14740 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
14742 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
14744 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
14746 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
14747 (ipa-reference.o): Likewise.
14748 * lto-section-out.c: Include data-streamer.h.
14749 * ipa-reference.c: Include data-streamer.h.
14751 2011-08-12 Nick Clifton <nickc@redhat.com>
14753 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
14754 * doc/md.texi (cmpstrn): Note that the comparison stops if both
14755 fetched bytes are zero.
14756 (cmpstr): Likewise.
14757 (cmpmem): Note that the comparison does not stop if both of the
14758 fetched bytes are zero.
14760 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
14762 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
14763 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
14764 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
14765 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
14766 to integer_type_node.
14767 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
14768 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
14769 * builtins.c (expand_builtin_in): Ditto.
14770 (mathfn_built_in_1): Ditto.
14771 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
14773 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
14775 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
14776 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
14777 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
14779 2011-08-12 Richard Guenther <rguenther@suse.de>
14781 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
14783 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
14785 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
14787 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
14789 * config/arm/arm.c (get_label_padding): New function.
14790 (create_fix_barrier, arm_reorg): Use it.
14792 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
14795 * config/i386/i386.md (*lea_5_zext): New.
14796 (*lea_6_zext): Ditto.
14797 * config/i386/predicates.md (const_32bit_mask): New predicate.
14798 (lea_address_operand): Reject AND.
14799 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
14800 const_32bit_mask immediate.
14801 (ix86_print_operand_address): Handle AND.
14802 (memory_address_length): Ditto.
14804 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
14805 Brian Hackett <bhackett1024@gmail.com>
14807 * plugin.def: Add event for finish_decl.
14808 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
14809 * c-decl.c (finish_decl): Invoke callbacks on above event.
14810 * doc/plugins.texi: Document above event.
14812 2011-08-11 Richard Guenther <rguenther@suse.de>
14814 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
14815 lookups, make looking through aggregate copies stronger.
14817 2011-08-11 Richard Henderson <rth@redhat.com>
14820 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
14822 2011-08-11 Richard Guenther <rguenther@suse.de>
14824 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
14825 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
14826 (vrp_visit_stmt): Likewise.
14828 2011-08-11 Richard Guenther <rguenther@suse.de>
14830 PR middle-end/50040
14831 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
14832 load of the other piece with TREE_NO_WARNING.
14833 * tree-flow.h (warn_uninit): Adjust prototype.
14834 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
14835 the base variable and the expression that is used separately.
14836 Properly query all TREE_NO_WARNING flags.
14837 (struct walk_data): Remove.
14838 (warn_uninitialized_var): Likewise.
14839 (warn_uninitialized_vars): Do not walk gimple pieces but simply
14840 look at all SSA uses of the statement. Handle unused memory
14842 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
14844 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
14846 * config/rx/rx.md (movsicc): Allow register to register transfers.
14847 (*movsicc): Likewise.
14848 (*stcc): Restrict this pattern to EQ and NE compares.
14849 (*stcc_reg): New pattern. Works for any comparison but only for
14850 register transfers.
14852 2011-08-11 Diego Novillo <dnovillo@google.com>
14854 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
14855 Call stream_write_tree instead of output_record_start.
14856 (lto_output_ts_binfo_tree_pointers): Likewise.
14858 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
14859 Convert it to a macro.
14860 (stream_read_tree): Likewise.
14862 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
14863 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
14865 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
14866 and tree_read_bitfields.
14867 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
14868 (lto_write_tree): Call it.
14869 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
14870 * streamer-hooks.h (struct streamer_hooks): Remove fields
14871 name, is_streamable and alloc_tree. Update all users.
14872 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
14873 (lto_materialize_tree): ... here.
14874 Handle CALL_EXPR codes.
14875 Remove call to lto_streamer_cache_append.
14876 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
14877 * tree-streamer.h (tree_read_bitfields): Declare.
14879 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
14880 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
14881 * tree-streamer.h (stream_read_tree): New. Replace all calls
14882 to lto_input_tree with it.
14883 (stream_write_tree): New. Replace all calls to lto_output_tree,
14884 lto_output_tree_ref and lto_output_tree_or_ref with it.
14885 * lto-streamer-in.c (lto_read_tree): Inline code from
14886 lto_streamer_read_tree.
14887 (lto_input_tree): Move from tree-streamer-in.c.
14888 * lto-streamer-out.c (lto_output_tree_ref): Make static.
14889 Remove handling of NULL values for EXPR.
14890 Do not handle EXPRs that are not indexable.
14891 (lto_write_tree): Move from tree-streamer-out.c.
14892 Inline lto_streamer_write_tree.
14893 (lto_output_tree): Move from tree-streamer-out.c.
14894 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
14895 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
14896 (lto_preload_common_nodes): Likewise.
14897 Remove assertions and adjustments for nodes
14898 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
14899 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
14900 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
14901 * lto-streamer.h (lto_input_tree): Declare.
14902 (lto_output_tree_ref): Remove.
14903 * streamer-hooks.h (struct streamer_hooks): Remove fields
14904 preload_common_nodes, indexable_with_decls_p,
14905 pack_value_fields, unpack_value_fields and output_tree_header.
14907 * tree-streamer-in.c (lto_materialize_tree): Make extern.
14908 (lto_input_tree_pointers): Likewise.
14909 (lto_read_tree): Move to lto-streamer-in.c.
14910 (lto_input_integer_cst): Make extern.
14911 (lto_get_pickled_tree): Likewise.
14912 (lto_get_builtin_tree): Likewise.
14913 (lto_input_tree): Move to lto-streamer-in.c.
14914 * tree-streamer-out.c (pack_value_fields): Make extern.
14915 (lto_output_tree_or_ref): Remove. Replace all callers with
14916 calls to stream_write_tree.
14917 (lto_output_builtin_tree): Make extern.
14918 (lto_streamer_write_tree): Inline into lto_write_tree.
14919 (lto_output_tree_pointers): Make extern.
14920 (lto_output_tree_header): Likewise.
14921 (lto_output_integer_cst): Likewise.
14922 (lto_write_tree): Move to lto-streamer-out.c.
14923 (lto_output_tree): Likewise.
14924 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
14925 (preload_common_nodes): Likewise.
14926 (lto_streamer_cache_create): Call it.
14927 * tree-streamer.h: Include streamer-hooks.h.
14928 (stream_write_tree): New.
14929 (stream_read_tree): New.
14930 (lto_input_tree): Remove.
14931 (lto_materialize_tree): Declare.
14932 (lto_input_tree_pointers): Declare.
14933 (lto_get_pickled_tree): Declare.
14934 (lto_get_builtin_tree): Declare.
14935 (lto_input_integer_cst): Declare.
14936 (lto_output_tree_header): Declare.
14937 (pack_value_fields): Declare.
14938 (lto_output_tree_pointers): Declare.
14939 (lto_output_integer_cst): Declare.
14940 (lto_output_builtin_tree): Declare.
14942 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
14944 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
14945 only if producer writes to the register given by regno.
14947 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
14948 Alexander Monakov <amonakov@ispras.ru>
14950 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
14951 (sched_get_condition_with_rev_uncached): ... this. Factor out
14952 condition caching logic into ...
14953 (sched_get_condition_with_rev): ... this. Reimplement. Do not
14954 attempt to use cache for instructions with zero luid.
14955 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
14956 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
14958 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
14960 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
14961 get_seqno_for_a_jump. Update the caller.
14962 (get_seqno_by_succs): New. Use it ...
14963 (get_seqno_for_a_jump): ... here to find a seqno if looking at
14964 predecessors was not sufficient.
14965 (get_seqno_by_preds): Include head in iteration range, exclude insn.
14967 2011-08-11 Dmitry Melnik <dm@ispras.ru>
14969 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
14971 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
14973 * sel-sched-ir.h (register_unavailable_p): Declare.
14974 * sel-sched-ir.c (register_unavailable_p): New. Use it...
14975 (set_unavailable_target_for_expr): ... here to properly test
14976 availability of a register.
14977 (speculate_expr): Ditto.
14978 * sel-sched.c (substitute_reg_in_expr): Ditto.
14979 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
14981 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
14983 * sel-sched.c (verify_target_availability): Fix usage of
14986 2011-08-11 Dmitry Melnik <dm@ispras.ru>
14988 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
14989 recognized by cannot_copy_insn_p hook and volatile instructions.
14991 2011-08-11 Dmitry Melnik <dm@ispras.ru>
14993 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
14995 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
14997 * doc/md.texi (define_bypass): Say that the instruction names can
14998 be filename-style globs.
14999 * Makefile.in (FNMATCH_H): Define.
15000 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
15001 * genattrtab.c: Include fnmatch.h.
15002 (bypass_list): Change field name from "insn" to "pattern".
15003 (gen_bypass_1): Update accordingly.
15004 (process_bypasses): Use fnmatch to check for matches between
15005 insn reservations and define_bypasses.
15006 * genautomata.c: Include fnmatch.h.
15007 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
15008 and out_pattern respectively.
15009 (gen_bypass, insert_bypass): Update accordingly.
15010 (for_each_matching_insn, process_bypass_2, process_bypass_1)
15011 (process_bypass): New functions.
15012 (process_decls): Use process_bypass. Update after field name changes.
15014 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
15017 * config/avr/avr.md (smulqi3_highpart): New insn.
15018 (umulqi3_highpart): New insn.
15019 (*subqi3.ashiftrt7): New insn.
15020 (smulhi3_highpart): New expander.
15021 (umulhi3_highpart): Nex expander.
15022 (*smulhi3_highpart_call): New insn.
15023 (*umulhi3_highpart_call): New insn.
15024 (extend_u): New code attribute.
15025 (extend_prefix): Rename code attribute to extend_su.
15026 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
15027 widening QI/HI multiply.
15029 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
15031 PR tree-optimization/50039
15032 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
15033 that DEF_STMT has a stmt_vec_info.
15035 2011-08-10 Richard Guenther <rguenther@suse.de>
15037 * tree.h (can_trust_pointer_alignment): Remove.
15038 * builtins.c (can_trust_pointer_alignment): Remove.
15040 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
15042 * c-typeck.c (scalar_to_vector): New function. Try scalar to
15044 (stv_conv): New enum for scalar_to_vector return type.
15045 (build_binary_op): Adjust.
15046 * doc/extend.texi: Description of scalar to vector expansion.
15048 2011-08-10 Richard Guenther <rguenther@suse.de>
15050 * tree.h (get_pointer_alignment): Remove max-align argument.
15051 (get_object_alignment): Likewise.
15052 * builtins.c (get_object_alignment_1): Adjust.
15053 (get_object_alignment): Remove max-align argument.
15054 (get_pointer_alignment): Likewise.
15055 (expand_builtin_strlen): Adjust.
15056 (expand_builtin_memcpy): Likewise.
15057 (expand_builtin_mempcpy_args): Likewise.
15058 (expand_builtin_strncpy): Likewise.
15059 (expand_builtin_memset_args): Likewise.
15060 (expand_builtin_memcmp): Likewise.
15061 (expand_builtin_strcmp): Likewise.
15062 (expand_builtin_strncmp): Likewise.
15063 (get_builtin_sync_mem): Likewise.
15064 (fold_builtin_memset): Likewise.
15065 (fold_builtin_memory_op): Likewise.
15066 (expand_builtin_memory_chk): Likewise.
15067 * emit-rtl.c (get_mem_align_offset): Likewise.
15068 (set_mem_attributes_minus_bitpos): Likewise.
15069 * expr.c (expand_assignment): Likewise.
15070 (expand_expr_real_1): Likewise.
15071 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
15072 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
15073 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
15074 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
15075 * value-prof.c (gimple_stringops_transform): Likewise.
15077 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
15079 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
15080 * doc/tm.texi: Regenerate.
15082 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
15085 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
15086 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
15087 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
15088 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
15089 shift target is unused.
15091 2011-08-10 Richard Guenther <rguenther@suse.de>
15093 PR tree-optimization/49937
15094 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
15095 using get_object_alignment_1.
15097 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
15099 * config/i386/i386.c (ix86_emit_i387_round): New function.
15100 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
15101 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
15102 Use ix86_emit_i387_round to expand round function for i387 math.
15103 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
15104 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
15106 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15108 * config/sync.c: Move to ../libgcc.
15109 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
15110 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
15113 2011-08-09 Anatoly Sokolov <aesok@post.ru>
15115 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
15116 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
15117 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
15118 Change 'from' and 'to' arguments type to reg_class_t.
15119 (TARGET_REGISTER_MOVE_COST): Define.
15121 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
15125 PR rtl-optimization/49990
15126 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
15127 ignore classes which can not change mode.
15128 (find_costs_and_classes): Ditto.
15130 2011-08-09 Richard Guenther <rguenther@suse.de>
15132 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
15133 information for ranges with only negative values.
15134 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
15135 BIT_AND_EXPR handling to handle ranges with negative values.
15137 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
15139 * config/i386/i386.c: Remove traling spaces.
15140 * config/i386/sse.md: Likewise.
15141 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
15142 (*fma_fmsub_<mode>): Likewise.
15143 (*fma_fnmadd_<mode>): Likewise.
15144 (*fma_fnmsub_<mode>): Likewise.
15146 2011-08-09 Nick Clifton <nickc@redhat.com>
15148 * config/rx/rx.md: Disable extender peepholes at -O3.
15150 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
15153 * config/i386/i386.md (reload_noff_load): New.
15154 (reload_noff_store): Ditto.
15155 * config/i386/i386.c (ix86_secondary_reload): Use
15156 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
15157 double-word moves from/to non-offsetable addresses instead of
15158 generating XMM temporary.
15160 2011-08-09 Anatoly Sokolov <aesok@post.ru>
15162 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
15164 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
15166 PR tree-optimization/50014
15167 * tree-vect-loop.c (vectorizable_reduction): Get def type before
15168 calling vect_get_vec_def_for_stmt_copy ().
15170 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
15172 PR rtl-optimization/49990
15173 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
15174 ignore classes which can not change mode.
15175 (find_costs_and_classes): Ditto.
15177 2011-08-08 Richard Henderson <rth@redhat.com>
15179 PR middle-end/49990
15180 * config/i386/i386.c (ix86_expand_prologue): Call
15181 for SEH target gen_prologue_use instead of gen_blockage
15184 2011-08-08 Martin Jambor <mjambor@suse.cz>
15186 PR middle-end/49923
15187 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
15190 2011-08-08 Diego Novillo <dnovillo@google.com>
15192 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
15193 (DATA_STREAMER_H): New.
15194 (GIMPLE_STREAMER_H): New.
15195 (TREE_STREAMER_H): New.
15196 (STREAMER_HOOKS_H): New.
15197 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
15198 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
15199 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
15200 (data-streamer.o): New.
15201 (data-streamer-in.o): New.
15202 (data-streamer-out.o): New.
15203 (gimple-streamer-in.o): New.
15204 (gimple-streamer-out.o): New.
15205 (streamer-hooks.o): New.
15206 (tree-streamer.o): New.
15207 (tree-streamer-in.o): New.
15208 (tree-streamer-out.o): New.
15209 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
15210 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
15211 GIMPLE_STREAMER_H and TREE_STREAMER_H.
15212 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
15213 GIMPLE_STREAMER_H and TREE_STREAMER_H.
15214 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
15215 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
15216 (ipa-inline-analysis.o): Likewise.
15217 (ipa-pure-const.o): Likewise.
15218 * data-streamer-in.c: New.
15219 * data-streamer-out.c: New.
15220 * data-streamer.c: New.
15221 * data-streamer.h: New.
15222 * gimple-streamer-in.c: New.
15223 * gimple-streamer-out.c: New.
15224 * gimple-streamer.h: New.
15225 * ipa-inline-analysis.c: Include data-streamer.h.
15226 * ipa-prop.c: Include data-streamer.h.
15227 * ipa-pure-const.c: Include data-streamer.h.
15228 * lto-cgraph.c: Include data-streamer.h.
15229 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
15230 (lto_input_widest_uint_uleb128): Likewise.
15231 (lto_input_sleb128): Likewise.
15232 (bp_unpack_var_len_unsigned): Likewise.
15233 (bp_unpack_var_len_int): Likewise.
15234 * lto-section-out.c (lto_output_uleb128_stream): Move to
15235 data-streamer-out.c.
15236 (lto_output_widest_uint_uleb128_stream): Likewise.
15237 (lto_output_sleb128_stream): Likewise.
15238 (bp_pack_var_len_unsigned): Likewise.
15239 (bp_pack_var_len_int): Likewise.
15240 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
15241 (struct string_slot): Remove. Update all users.
15242 (lto_tag_check_set): Make extern.
15243 (lto_tag_check_range): Move to lto-streamer.h.
15244 (lto_tag_check): Likewise.
15245 (hash_string_slot_node): Remove. Update all users.
15246 (eq_string_slot_node): Remove. Update all users.
15247 (string_for_index): Move to data-streamer-in.c
15248 (input_string_internal): Likewise.
15249 (input_string_cst): Move to tree-streamer-in.c.
15250 (input_identifier): Likewise.
15251 (lto_input_string): Move to data-streamer-in.c
15252 (input_record_start): Move to data-streamer.h
15253 (canon_file_name): Use new definition of struct string_slot
15254 from data-streamer.h. Set S_SLOT.LEN.
15255 (lto_input_location): Make extern.
15256 (lto_input_chain): Move to tree-streamer-in.c.
15257 (lto_init_eh): Make extern.
15258 (input_phi): Move to gimple-streamer-in.c.
15259 (input_gimple_stmt): Likewise.
15260 (input_bb): Likewise.
15261 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
15262 (unpack_ts_real_cst_value_fields): Likewise.
15263 (unpack_ts_fixed_cst_value_fields): Likewise.
15264 (unpack_ts_decl_common_value_fields): Likewise.
15265 (unpack_ts_decl_wrtl_value_fields): Likewise.
15266 (unpack_ts_decl_with_vis_value_fields): Likewise.
15267 (unpack_ts_function_decl_value_fields): Likewise.
15268 (unpack_ts_type_common_value_fields): Likewise.
15269 (unpack_ts_block_value_fields): Likewise.
15270 (unpack_ts_translation_unit_decl_value_fields): Likewise.
15271 (unpack_value_fields): Likewise.
15272 (lto_materialize_tree): Likewise.
15273 (lto_input_ts_common_tree_pointers): Likewise.
15274 (lto_input_ts_vector_tree_pointers): Likewise.
15275 (lto_input_ts_complex_tree_pointers): Likewise.
15276 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
15277 (lto_input_ts_decl_common_tree_pointers): Likewise.
15278 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
15279 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
15280 (lto_input_ts_field_decl_tree_pointers): Likewise.
15281 (lto_input_ts_function_decl_tree_pointers): Likewise.
15282 (lto_input_ts_type_common_tree_pointers): Likewise.
15283 (lto_input_ts_type_non_common_tree_pointers): Likewise.
15284 (lto_input_ts_list_tree_pointers): Likewise.
15285 (lto_input_ts_vec_tree_pointers): Likewise.
15286 (lto_input_ts_exp_tree_pointers): Likewise.
15287 (lto_input_ts_block_tree_pointers): Likewise.
15288 (lto_input_ts_binfo_tree_pointers): Likewise.
15289 (lto_input_ts_constructor_tree_pointers): Likewise.
15290 (lto_input_ts_target_option): Likewise.
15291 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
15292 (lto_input_tree_pointers): Likewise.
15293 (lto_get_pickled_tree): Likewise.
15294 (lto_get_builtin_tree): Likewise.
15295 (lto_read_tree): Likewise.
15296 (lto_input_integer_cst): Likewise.
15297 (lto_input_tree): Likewise.
15298 * lto-streamer-out.c: Include data-streamer.h,
15299 gimple-streamer.h and streamer-hooks.h.
15300 (struct string_slot): Move to data-streamer.h.
15301 (hash_string_slot_node): Likewise.
15302 (eq_string_slot_node): Likewise.
15303 (lto_string_index): Move to data-streamer-out.c.
15304 (lto_output_string_with_length): Likewise.
15305 (lto_output_string): Likewise.
15306 (output_string_cst): Move to tree-streamer-out.c.
15307 (output_identifier): Likewise.
15308 (output_zero): Move to data-streamer-out.c
15309 (output_uleb128): Likewise.
15310 (output_sleb128): Likewise.
15311 (output_record_start): Move to data-streamer.h
15312 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
15313 (pack_ts_real_cst_value_fields): Likewise.
15314 (pack_ts_fixed_cst_value_fields): Likewise.
15315 (pack_ts_decl_common_value_fields): Likewise.
15316 (pack_ts_decl_wrtl_value_fields): Likewise.
15317 (pack_ts_decl_with_vis_value_fields): Likewise.
15318 (pack_ts_function_decl_value_fields): Likewise.
15319 (pack_ts_type_common_value_fields): Likewise.
15320 (pack_ts_block_value_fields): Likewise.
15321 (pack_ts_translation_unit_decl_value_fields): Likewise.
15322 (pack_value_fields): Likewise.
15323 (lto_output_chain): Likewise.
15324 (lto_output_ts_common_tree_pointers): Likewise.
15325 (lto_output_ts_vector_tree_pointers): Likewise.
15326 (lto_output_ts_complex_tree_pointers): Likewise.
15327 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
15328 (lto_output_ts_decl_common_tree_pointers): Likewise.
15329 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
15330 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
15331 (lto_output_ts_field_decl_tree_pointers): Likewise.
15332 (lto_output_ts_function_decl_tree_pointers): Likewise.
15333 (lto_output_ts_type_common_tree_pointers): Likewise.
15334 (lto_output_ts_type_non_common_tree_pointers): Likewise.
15335 (lto_output_ts_list_tree_pointers): Likewise.
15336 (lto_output_ts_vec_tree_pointers): Likewise.
15337 (lto_output_ts_exp_tree_pointers): Likewise.
15338 (lto_output_ts_block_tree_pointers): Likewise.
15339 (lto_output_ts_binfo_tree_pointers): Likewise.
15340 (lto_output_ts_constructor_tree_pointers): Likewise.
15341 (lto_output_ts_target_option): Likewise.
15342 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
15343 (lto_output_tree_pointers): Likewise.
15344 (lto_output_tree_header): Likewise.
15345 (lto_output_builtin_tree): Likewise.
15346 (lto_write_tree): Likewise.
15347 (lto_output_integer_cst): Likewise.
15348 (lto_output_tree): Likewise.
15349 (output_phi): Move to gimple-streamer-out.c.
15350 (output_gimple_stmt): Likewise.
15351 (output_bb): Likewise.
15352 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
15353 (streamer_hooks): Move to streamer-hooks.c.
15354 (check_handled_ts_structures): Move to tree-streamer.c
15355 (lto_streamer_cache_add_to_node_array): Likewise.
15356 (lto_streamer_cache_insert_1): Likewise.
15357 (lto_streamer_cache_insert): Likewise.
15358 (lto_streamer_cache_insert_at): Likewise.
15359 (lto_streamer_cache_append): Likewise.
15360 (lto_streamer_cache_lookup): Likewise.
15361 (lto_streamer_cache_get): Likewise.
15362 (lto_record_common_node): Likewise.
15363 (lto_preload_common_nodes): Likewise.
15364 (lto_streamer_cache_create): Likewise.
15365 (lto_streamer_cache_delete): Likewise.
15366 (streamer_hooks_init): Move to streamer-hooks.c.
15367 * lto-streamer.h: Include diagnostic.h
15368 (struct output_block, struct lto_input_block,
15369 struct data_in, struct bitpack_d): Remove forward declarations.
15370 (struct bitpack_d): Move to data-streamer.h.
15371 (struct lto_streamer_cache_d): Move to tree-streamer.h.
15372 (struct streamer_hooks): Move to streamer-hooks.h.
15373 (bp_pack_var_len_unsigned): Move to data-streamer.h.
15374 (bp_pack_var_len_int): Likewise.
15375 (bp_unpack_var_len_unsigned): Likewise.
15376 (bp_unpack_var_len_int): Likewise.
15377 (lto_input_location): Declare.
15378 (lto_tag_check_set): Declare.
15379 (lto_init_eh): Declare.
15380 (lto_output_tree_ref): Declare.
15381 (lto_output_location): Declare.
15382 (bitpack_create): Move to data-streamer.h.
15383 (bp_pack_value): Likewise.
15384 (lto_output_bitpack): Likewise.
15385 (lto_input_bitpack): Likewise.
15386 (bp_unpack_value): Likewise.
15387 (lto_output_1_stream): Likewise.
15388 (lto_input_1_unsigned): Likewise.
15389 (lto_output_int_in_range): Likewise.
15390 (lto_input_int_in_range): Likewise.
15391 (bp_pack_int_in_range): Likewise.
15392 (bp_unpack_int_in_range): Likewise.
15393 (lto_output_enum): Likewise.
15394 (lto_input_enum): Likewise.
15395 (bp_pack_enum): Likewise.
15396 (bp_unpack_enum): Likewise.
15397 * streamer-hooks.c: New.
15398 * streamer-hooks.h: New.
15399 * tree-streamer-in.c: New.
15400 * tree-streamer-out.c: New.
15401 * tree-streamer.c: New.
15402 * tree-streamer.h: New.
15404 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15406 * gthr-posix95.h: Remove.
15407 * gthr.h [_PTHREADS95]: Remove.
15408 * configure.ac (enable_threads): Remove posix95.
15409 * configure: Regenerate.
15410 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
15412 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
15415 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
15417 (ix86_print_operand_address): Handle zero-extended addresses.
15418 (memory_address_length): Add length of addr32 prefix for
15419 zero-extended addresses.
15420 (ix86_secondary_reload): Handle moves to/from double-word general
15421 registers from/to zero-extended addresses.
15422 * config/i386/predicates.md (lea_address_operand): Reject
15423 zero-extended operands.
15425 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
15428 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
15430 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
15431 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
15433 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
15434 (_Unwind_Context_Reg_Val): Likewise.
15435 (_Unwind_Get_Unwind_Word): Likewise.
15436 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
15437 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
15438 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
15439 for EXTENDED_CONTEXT_BIT.
15440 (__frame_state_for): Likewise.
15441 (uw_init_context_1): Likewise.
15442 (_Unwind_GetGR): Updated.
15443 (_Unwind_SetGR): Likewise.
15444 (_Unwind_GetGRPtr): Likewise.
15445 (_Unwind_SetGRPtr): Likewise.
15446 (_Unwind_SetGRValue): Likewise.
15447 (_Unwind_GRByValue): Likewise.
15448 (uw_install_context_1): Likewise.
15450 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
15451 ASSUME_EXTENDED_UNWIND_CONTEXT.
15452 * doc/tm.texi: Regenerated.
15454 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15456 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
15458 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15460 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
15461 Linux/GNU-specific.
15462 (DEC Alpha Options, -mtune): Likewise.
15463 (MIPS Options, -march): native is supported on IRIX.
15465 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15467 * config/sparc/driver-sparc.c: New file.
15468 * config/sparc/x-sparc: New file.
15469 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
15470 * config/sparc/sparc.opt (native): New value for enum processor_type.
15471 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
15472 * config/sparc/sparc.c (sparc_option_override): Abort if
15473 PROCESSOR_NATIVE gets here.
15474 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
15475 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
15476 DRIVER_SELF_SPECS): Define.
15477 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
15478 (SPARC Options, -mtune): Likewise.
15479 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
15481 * configure: Regenerate.
15482 * Makefile.in (EXTRA_GCC_LIBS): Set.
15483 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
15484 (cpp$(exeext)): Likewise.
15486 2011-08-08 Richard Guenther <rguenther@suse.de>
15488 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
15490 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
15493 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
15495 PR tree-optimization/50005
15496 * ipa-inline-analysis (remap_predicate): Add cast to
15497 silence signed/unsigned comparison warning.
15499 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
15501 * modulo-sched.c (get_sched_window): Use a table for the debug output.
15502 Print the current ii.
15503 (sms_schedule_by_order): Reduce whitespace in dump line.
15505 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
15507 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
15508 and one loop for successors. Fix upper bound of memory range.
15510 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
15513 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
15514 (TARGET_INSTANTIATE_DECLS): New define.
15516 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
15517 Mikael Morin <mikael.morin@sfr.fr>
15519 * Makefile.in (INCLUDES_FOR_TARGET): New.
15520 (LIBGCC2_CFLAGS): Use it.
15521 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
15523 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
15525 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
15526 frame->save_regs_using_mov calculation.
15528 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
15530 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
15531 * config/i386/sse.md (castmode): New mode attribute.
15532 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
15533 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
15535 2011-08-05 Jan Hubicka <jh@suse.cz>
15537 PR middle-end/49494
15538 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
15540 2011-08-05 Jan Hubicka <jh@suse.cz>
15542 PR middle-end/49500
15543 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
15545 (create_emultls_var):New function.
15546 (ipa_lower_emutls): Handle aliases correctly.
15548 2011-08-05 Jan Hubicka <jh@suse.cz>
15550 PR middle-end/49735
15551 * ipa-inline.c (recursive_inlining): Look through aliases.
15553 2011-08-05 Jason Merrill <jason@redhat.com>
15555 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
15556 declarations to beginning of function.
15558 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
15560 PR rtl-optimization/49900
15561 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
15562 ensure basic blocks stay in the same order.
15564 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
15566 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
15568 (s390_expand_atomic): Same.
15570 2011-08-05 Richard Henderson <rth@redhat.com>
15573 * dwarf2cfi.c (scan_insn_after): Split out of ...
15574 (scan_trace): ... here. Correctly place notes wrt sequences.
15576 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
15577 Richard Henderson <rth@redhat.com>
15580 * expr.c (fixup_args_size_notes): Look through no-op moves.
15582 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
15584 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
15585 of "m" for operand 0. Add type and mode attribute.
15586 (*pushxf_nointeger"): Use "<" constraint for operand 0.
15587 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
15588 constraint instead of "o" for opreand 1.
15589 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
15590 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
15591 operand 0, alternative 4.
15592 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
15594 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
15596 * config/i386/predicates.md (lea_address_operand): Rename from
15597 no_seg_address_operand.
15598 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
15599 (*lea_1_zext): Ditto.
15601 (*lea_2_zext): Ditto.
15603 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
15605 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
15606 parts.base and parts.index.
15607 * config/i386/predicates.md (aligned_operand): Ditto.
15608 (cmpxchg8b_pic_memory_operand): Ditto.
15610 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15612 * config/soft-fp: Move to ../libgcc.
15613 * Makefile.in (SFP_MACHINE): Remove.
15614 (libgcc-support): Remove $(SFP_MACHINE) dependency.
15615 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
15616 * config/arm/t-arm-softfp: Move to
15617 ../libgcc/config/arm/t-softfp.
15618 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
15619 * config/c6x/t-c6x-softfp: Remove.
15620 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
15621 * config/i386/t-fprules-softfp: Move to
15622 ../libgcc/config/t-softfp-tf.
15623 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
15624 * config/ia64/t-fprules-softfp: Remove.
15625 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
15626 * config/lm32/t-fprules-softfp: Remove.
15627 * config/moxie/sfp-machine.h: Remove.
15628 * config/moxie/t-moxie-softfp: Remove.
15629 * config/rs6000/darwin-ldouble-format: Move to
15630 ../libgcc/config/rs6000/ibm-ldouble-format.
15631 * config/rs6000/darwin-ldouble.c: Move to
15632 ../libgcc/config/rs6000/ibm-ldouble.c
15633 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
15634 * config/rs6000/libgcc-ppc64.ver: Likewise.
15635 * config/rs6000/sfp-machine.h: Likewise.
15636 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
15637 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
15638 (LIB2FUNCS_EXTRA): Remove.
15639 (TARGET_LIBGCC2_CFLAGS): Remove.
15640 * config/rs6000/t-aix52: Likewise
15641 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
15642 $(srcdir)/config/rs6000/darwin-ldouble.c.
15643 (SHLIB_MAPFILES): Remove.
15644 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
15645 $(srcdir)/config/rs6000/darwin-ldouble.c.
15646 * config/rs6000/t-fprules-softfp: Move to
15647 ../libgcc/config/t-softfp-sfdf.
15648 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
15649 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
15650 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
15651 $(srcdir)/config/rs6000/darwin-ldouble.c.
15652 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
15653 * config/score/t-score-softfp: Remove.
15654 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
15655 soft-fp/t-softfp from tmake_file.
15656 (arm*-*-uclinux*): Likewise.
15657 (arm*-*-ecos-elf): Likewise.
15658 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
15659 (arm*-*-rtems*): Likewise.
15660 (arm*-*-elf): Likewise.
15661 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
15663 (moxie-*-uclinux*): Likewise.
15664 (moxie-*-rtems*): Likewise.
15665 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
15667 (lm32-*-rtems*): Likewise.
15668 (lm32-*-uclinux*): Likewise.
15669 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
15670 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
15671 (powerpc-*-linux*, powerpc64-*-linux*): Remove
15672 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
15673 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
15675 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
15677 (tic6x-*-uclinux): Likewise.
15678 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
15679 soft-fp/t-softfp from tmake_file.
15680 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
15681 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
15682 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
15683 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
15684 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
15686 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15688 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
15689 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
15690 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
15691 TPBIT, TPBIT_FUNCS.
15692 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
15693 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
15695 * config/arm/t-vxworks: Likewise.
15696 * config/arm/t-wince-pe: Likewise.
15697 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
15698 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15699 * config/bfin/t-bfin-elf: Likewise.
15700 * config/bfin/t-bfin-linux: Likewise.
15701 * config/bfin/t-bfin-uclinux: Likewise.
15702 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
15704 * config/fr30/t-fr30: Likewise.
15705 * config/frv/t-frv: Likewise.
15706 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
15707 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15708 * config/m32c/t-m32c: Likewise.
15709 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
15710 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15711 * config/mcore/t-mcore: Likewise.
15712 * config/mep/t-mep: Likewise.
15713 * config/microblaze/t-microblaze: Likewise.
15714 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
15715 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15716 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
15717 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15718 * config/mn10300/t-linux: Remove.
15719 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15720 * config/pdp11/t-pdp11: Likewise.
15721 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
15722 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
15723 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15724 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
15725 * config/rs6000/t-aix52: Likewise.
15726 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
15727 $(srcdir)/config/rs6000/ppc64-fp.c.
15728 * config/rs6000/t-fprules-fpbit: Remove.
15729 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
15730 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15731 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
15732 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15733 * config/sparc/t-elf: Likewise.
15734 * config/sparc/t-leon: Likewise.
15735 * config/sparc/t-leon3: Likewise.
15736 * config/spu/t-spu-elf: Likewise.
15737 (DPBIT_FUNCS): Remove.
15738 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15739 * config/v850/t-v850: Likewise.
15740 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
15741 (avr-*-*): Likewise.
15742 (h8300-*-rtems*): Set libgcc_tm_file.
15743 (h8300-*-elf*): Likewise.
15744 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
15746 (powerpc-*-eabisim*): Likewise.
15747 (powerpc-*-elf*): Likewise.
15748 (powerpc-*-eabialtivec*): Likewise.
15749 (powerpc-xilinx-eabi*): Likewise.
15750 (powerpc-*-eabi*): Likewise.
15751 (powerpc-*-rtems*): Likewise.
15752 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
15753 (powerpcle-*-elf*): Likewise.
15754 (powerpcle-*-eabisim*): Likewise.
15755 (powerpcle-*-eabi*): Likewise.
15756 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
15757 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
15758 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
15761 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15763 * Makefile.in (UNWIND_H): Remove.
15764 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
15765 ../libgcc/Makefile.in.
15766 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
15767 (LIBUNWINDDEP): Remove.
15768 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
15769 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
15770 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
15771 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
15772 Don't copy $(UNWIND_H).
15773 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
15774 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
15775 * aclocal.m4: Regenerate.
15776 * configure: Regenerate.
15777 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
15778 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
15779 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
15780 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
15781 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
15782 * config/arm/libunwind.S, config/arm/pr-support.c,
15783 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
15784 ../libgcc/config/arm.
15785 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
15786 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
15787 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
15788 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
15789 ($(T)frvend$(objext)): Likewise.
15790 * config/ia64/t-glibc (LIB2ADDEH): Remove.
15791 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
15792 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
15793 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
15794 ../libgcc/config/ia64.
15795 * config/ia64/t-hpux (LIB2ADDEH): Remove.
15796 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
15797 * config/ia64/t-vms (LIB2ADDEH): Remove.
15798 * config/ia64/vms.h (UNW_IVMS_MODE,
15799 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
15800 * config/picochip/t-picochip (LIB2ADDEH): Remove.
15801 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
15802 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
15803 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
15804 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
15805 $(srcdir)/../libgcc to refer to unwinder sources.
15806 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
15807 * config/t-darwin (LIB2ADDEH): Remove.
15808 * config/t-freebsd (LIB2ADDEH): Remove.
15809 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
15810 * config/t-libunwind-elf: Move to ../libgcc/config.
15811 * config/t-linux (LIB2ADDEH): Remove.
15812 * config/t-sol2 (LIB2ADDEH): Remove.
15813 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
15814 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
15816 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
15818 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
15820 * doc/invoke.texi: Document core-avx-i.
15822 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15824 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
15826 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
15828 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
15829 result of multiple results reduction when extracting the final
15830 value using scalar code.
15832 2011-08-05 Richard Guenther <rguenther@suse.de>
15834 PR tree-optimization/49984
15835 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
15837 2011-08-05 Richard Guenther <rguenther@suse.de>
15839 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
15840 return true for constant integer ranges.
15841 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
15842 BIT_IOR_EXPR handling.
15844 2011-08-04 Kai Tietz <ktietz@redhat.com>
15846 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
15847 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
15849 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
15851 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
15852 pattern def statement, and its access macro.
15853 (NUM_PATTERNS): Set to 5.
15854 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
15855 pattern def statement.
15856 (vect_transform_loop): Likewise.
15857 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
15858 function vect_recog_over_widening_pattern ().
15859 (vect_operation_fits_smaller_type): New function.
15860 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
15862 (vect_pattern_recog_1): Move the code that marks pattern
15863 statements to vect_mark_pattern_stmts (), and call it. Update
15865 * tree-vect-stmts.c (vect_supportable_shift): New function.
15866 (vect_analyze_stmt): Handle pattern def statement.
15867 (new_stmt_vec_info): Initialize pattern def statement.
15869 2011-08-04 Richard Henderson <rth@redhat.com>
15872 * config/i386/i386.c (ix86_expand_call): Don't create nested
15873 PARALLELs for TARGET_VZEROUPPER.
15874 (ix86_split_call_vzeroupper): Fix extraction of the original call.
15875 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
15876 recognize nested PARALLELs.
15877 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
15878 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
15879 *sibcall_value_pop_vzeroupper): Likewise.
15881 2011-08-04 Richard Henderson <rth@redhat.com>
15883 PR middle-end/49968
15884 * calls.c (expand_call): Use fixup_args_size_notes for
15885 emit_stack_restore.
15886 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
15887 in non-standard modes.
15889 2011-08-04 Jakub Jelinek <jakub@redhat.com>
15891 * gcc.c (self_spec): New variable.
15892 (static_specs): Add self_spec.
15893 (main): Call do_self_spec on "self_spec" specs after reading
15894 user specs files. Move compare_debug handling right after that.
15896 2011-08-04 Richard Guenther <rguenther@suse.de>
15898 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
15899 (value_range_nonnegative_p): New function.
15900 (ssa_name_nonnegative_p): Use it.
15901 (value_range_constant_singleton): New function.
15902 (op_with_constant_singleton_value_range): Use it.
15903 (extract_range_from_binary_expr_1): New function, split out from ...
15904 (extract_range_from_binary_expr): ... this. Remove fallback
15905 constant folding done here.
15907 2011-08-04 Richard Guenther <rguenther@suse.de>
15909 PR tree-optimization/49806
15910 * tree-vrp.c (op_with_boolean_value_range_p): New function.
15911 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
15912 a new statement for a final conversion to bool.
15914 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
15916 * gengtype-state.c: Include "bconfig.h" if
15917 GENERATOR_FILE is defined, "config.h" otherwise.
15918 * gengtype.c: Likewise.
15919 * gengtype-lex.l: Likewise.
15920 * gengtype-parse.c: Likewise.
15921 * Makefile.in (gengtype-lex.o-warn): New variable.
15922 (plugin_resourcesdir): Likewise.
15923 (plugin_bindir): Likewise.
15924 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
15925 (MOSTLYCLEANFILES): Add gengtype$(exeext).
15926 (native): Depend on gengtype$(exeext) is $enable_plugin
15928 (gtype.state): Depend on s-gtype. Use temporary file.
15929 (gengtype-lex.o): New rule.
15930 (gengtype-parse.o): Likewise.
15931 (gengtype-state.o): Likewise.
15932 (gengtype$(exeext)): Likewise.
15933 (install-gengtype): Likewise.
15934 (gengtype.o): Likewise.
15935 (build/gengtype.o): Depend on version.h.
15936 (build/gengtype-state): Depend on double-int.h, version.h,
15937 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
15938 (install-plugin): Depend on install-gengtype.
15940 2011-08-04 Jakub Jelinek <jakub@redhat.com>
15942 PR middle-end/49905
15943 * tree.h (init_attributes): New prototype.
15944 * attribs.c (init_attributes): No longer static.
15946 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15948 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
15951 2011-08-03 David Li <davidxl@google.com>
15953 * tree-optimize.c (execute_fixup_cfg): Fix up entry
15954 outgoing edge counts after inlining.
15956 2011-08-03 David Li <davidxl@google.com>
15958 * profile.c (compute_branch_probabilities): Compute
15959 function frequency after profile annotation.
15961 2011-08-04 Alan Modra <amodra@gmail.com>
15963 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
15964 use_backchain_to_restore_sp initialisation.
15965 (rs6000_legitimate_offset_address_p): Simplify offset test.
15967 2011-08-03 Richard Henderson <rth@redhat.com>
15969 * config/spu/spu.md: Use define_c_enum instead of define_constants.
15970 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
15971 (UNSPECV_NOP): New.
15973 2011-08-03 Richard Henderson <rth@redhat.com>
15976 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
15978 2011-08-03 Jakub Jelinek <jakub@redhat.com>
15980 PR tree-optimization/49948
15981 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
15983 2011-08-03 Anatoly Sokolov <aesok@post.ru>
15985 * config/m32c/m32c.c (class_sizes): Remove.
15986 (reduce_class): Change arguments and return type to reg_class_t.
15987 Change type cc var to HARD_REG_SET. Change type best var to
15988 reg_class_t. Change type best_size var to unsigned int. Remove
15989 initialization class_sizes var. Use reg_class_size array instead
15990 of class_sizes. Use reg_class_contents array instead
15993 2011-08-03 Richard Guenther <rguenther@suse.de>
15995 PR middle-end/49958
15996 * fold-const.c (fold_binary_loc): Only associate
15997 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
16000 2011-08-03 Alan Modra <amodra@gmail.com>
16002 PR rtl-optimization/49941
16003 * jump.c (mark_jump_label): Comment.
16004 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
16005 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
16006 (mark_used_flags): Don't mark RETURN.
16008 2011-08-03 Richard Guenther <rguenther@suse.de>
16010 PR tree-optimization/49938
16011 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
16012 deal with a POLYNOMIAL_CHREC.
16014 2011-08-03 Revital Eres <revital.eres@linaro.org>
16016 * modulo-sched.c (calculate_stage_count,
16017 calculate_must_precede_follow, get_sched_window,
16018 try_scheduling_node_in_cycle, remove_node_from_ps): Add
16020 (update_node_sched_params, set_must_precede_follow, optimize_sc):
16022 (reset_sched_times): Call update_node_sched_params.
16023 (sms_schedule): Call optimize_sc.
16024 (get_sched_window): Change function arguments.
16025 (sms_schedule_by_order): Update call to get_sched_window.
16026 Call set_must_precede_follow.
16027 (calculate_stage_count): Add function argument.
16029 2011-08-02 Richard Henderson <rth@redhat.com>
16033 * reg-notes.def (REG_ARGS_SIZE): New.
16034 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
16035 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
16036 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
16037 different stack levels.
16038 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
16039 (maybe_move_args_size_note): New.
16040 (combine_stack_adjustments_for_block): Use it.
16041 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
16042 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
16043 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
16044 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
16046 (queued_args_size): Remove.
16047 (add_cfi_args_size): Assert size is non-negative.
16048 (stack_adjust_offset, dwarf2out_args_size): Remove.
16049 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
16050 (notice_args_size, notice_eh_throw): New.
16051 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
16052 (dwarf2out_frame_debug_adjust_cfa): Likewise.
16053 (dwarf2out_frame_debug_cfa_offset): Likewise.
16054 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
16055 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
16056 (change_cfi_row): Don't emit args_size.
16057 (maybe_record_trace_start_abnormal): Split out from ...
16058 (maybe_record_trace_start): Here. Set args_size_undefined.
16059 (create_trace_edges): Update to match.
16060 (scan_trace): Handle REG_ARGS_SIZE.
16061 (connect_traces): Connect args_size between EH insns.
16062 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
16063 * explow.c (suppress_reg_args_size): New.
16064 (adjust_stack_1): Split out from ...
16065 (adjust_stack): ... here.
16066 (anti_adjust_stack): Use it.
16067 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
16068 * expr.c (mem_autoinc_base): New.
16069 (fixup_args_size_notes): New.
16070 (emit_single_push_insn_1): Rename from emit_single_push_insn.
16071 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
16072 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
16073 * reload1.c (reload_as_needed): Likewise.
16074 * rtl.h (fixup_args_size_notes): Declare.
16076 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
16079 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
16081 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
16082 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
16084 2011-08-02 Richard Henderson <rth@redhat.com>
16086 * config/h8300/h8300.c (push, pop): Return the insn.
16087 (h8300_swap_into_er6): Generate correct unwind info.
16088 (h8300_swap_out_of_er6): Likewise.
16089 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
16090 complex cfa expression.
16091 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
16093 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
16095 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
16097 2011-08-02 Richard Henderson <rth@redhat.com>
16100 * config/h8300/h8300.c (h8300_move_ok): New.
16101 * config/h8300/h8300-protos.h: Declare it.
16102 * config/h8300/h8300.md (P): New mode iterator.
16103 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
16104 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
16105 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
16106 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
16107 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
16108 and pushqi1_h8300hs_normal; use PRE_MODIFY and
16109 register_no_sp_elim_operand.
16110 (*pushhi1_h8300hs_<P>): Similarly.
16111 (pushqi1, pushhi1, pushhi1_h8300): Remove.
16112 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
16114 2011-08-02 Richard Henderson <rth@redhat.com>
16117 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
16119 2011-08-02 Jakub Jelinek <jakub@redhat.com>
16121 * c-parser.c (enum c_parser_prec): New enum, moved from within
16122 c_parser_binary_expression.
16123 (c_parser_binary_expression): Add PREC argument. Stop parsing
16124 if operator has lower or equal precedence than PREC.
16125 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
16127 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
16128 Adjust c_finish_omp_atomic caller.
16129 (c_parser_omp_taskyield): New function.
16130 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
16131 (c_parser_omp_clause_name): Handle final and mergeable clauses.
16132 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
16134 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
16135 and PRAGMA_OMP_CLAUSE_MERGEABLE.
16136 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
16137 (c_parser_omp_clause_reduction): Handle min and max.
16138 * c-typeck.c (c_finish_omp_clauses): Don't complain about
16139 const qualified predetermined vars in firstprivate clause.
16140 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
16141 Handle MIN_EXPR and MAX_EXPR.
16142 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
16143 and OMP_CLAUSE_MERGEABLE.
16144 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
16145 and OMP_ATOMIC_CAPTURE_NEW.
16146 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
16147 OMP_CLAUSE_MERGEABLE.
16148 (omp_clause_code_name): Likewise.
16149 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
16150 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
16151 and OMP_CLAUSE_MERGEABLE.
16152 (OMP_CLAUSE_FINAL_EXPR): Define.
16153 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
16154 OMP_CLAUSE_MERGEABLE.
16155 (expand_task_call): Likewise.
16156 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
16157 (expand_omp_atomic_fetch_op): Handle cases where old or new
16158 value is needed afterwards.
16159 (expand_omp_atomic): Call expand_omp_atomic_load resp.
16160 expand_omp_atomic_store.
16161 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
16162 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
16163 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
16164 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
16165 * tree-nested.c (convert_nonlocal_omp_clauses,
16166 convert_local_omp_clauses): Likewise.
16167 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
16168 OMP_ATOMIC_CAPTURE_NEW): New.
16169 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
16170 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
16172 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
16173 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
16174 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
16176 2011-08-02 Kai Tietz <ktietz@redhat.com>
16178 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
16180 (ssa_forward_propagate_and_combine): Interprete result of
16181 forward_propagate_comparison.
16182 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
16183 boolean-typed operands for comparisons.
16185 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
16187 * config/avr/libgcc.S: Gather related function in the
16188 same input section.
16189 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
16190 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
16192 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
16193 __udivmodsi4, __divmodsi4, __prologue_saves__,
16194 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
16195 __do_copy_data, __do_clear_bss, __do_global_ctors,
16196 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
16198 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
16201 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
16202 (stack_protect_test): The pattern compares ptr_mode value.
16204 2011-08-02 Alan Modra <amodra@gmail.com>
16206 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
16207 note for save_LR_around_toc_setup sequence.
16209 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
16211 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
16213 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
16214 Joseph Myers <joseph@codesourcery.com>
16216 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
16217 * hwint.c: Include diagnostic-core.h.
16219 (gcd): Moved here...
16220 (pos_mul_hwi): New.
16222 (least_common_multiple): Moved here...
16223 * hwint.h (gcd): ... from here.
16224 (least_common_multiple): ... from here.
16225 (HOST_WIDE_INT_MIN): New.
16226 (HOST_WIDE_INT_MAX): New.
16227 (abs_hwi): Declared.
16229 (pos_mul_hwi): Declared.
16230 (mul_hwi): Declared.
16231 (least_common_multiple): Declared.
16232 * omega.c (check_pos_mul): Removed.
16233 (check_mul): Removed.
16234 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
16235 mul_hwi instead of check_mul.
16237 2011-08-01 Richard Henderson <rth@redhat.com>
16240 * config/avr/avr.h (PUSH_ROUNDING): New.
16241 * config/avr/avr.md (pushqi1): Rename from *pushqi.
16242 (*pushhi, *pushsi, *pushsf): Remove.
16243 (MPUSH): New mode iterator.
16244 (push<MPUSH>1): New expander.
16246 2011-08-01 Anatoly Sokolov <aesok@post.ru>
16248 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
16249 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
16250 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
16251 mmix_preferred_output_reload_class): Remove.
16252 * config/mmix/mmix.c (mmix_preferred_reload_class,
16253 mmix_preferred_output_reload_class): Make static. Change rclass
16254 argument and return type to reg_class_t.
16255 (TARGET_PREFERRED_RELOAD_CLASS,
16256 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16258 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
16260 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
16263 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
16266 * config/i386/i386.md (PTR): New.
16267 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
16268 (stack_protect_test): Likewise.
16269 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
16270 (stack_tls_protect_set_<mode>): Likewise.
16271 (stack_tls_protect_test_<mode>): Likewise.
16273 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
16276 * config/i386/i386.c (ix86_address_subreg_operand): New.
16277 (ix86_decompose_address): Use ix86_address_subreg_operand.
16278 (ix86_legitimate_address_p): Do not assert that subregs satisfy
16279 register_no_elim_operand in DImode.
16281 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
16283 PR tree-optimization/49926
16284 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
16285 in a chain doesn't have uses both inside and outside the loop.
16287 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
16289 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
16290 * config/avr/avr-devices.c (avr_mcu_types): Use it.
16291 * config/avr/avr-mcus.def (AVR_MCU): Use it.
16292 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
16293 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
16294 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
16295 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
16296 to detect if XJMP must not be skipped.
16298 2011-08-02 Alan Modra <amodra@gmail.com>
16300 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
16302 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
16303 (rs6000_emit_prologue): Don't prematurely return when
16304 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
16305 save_toc_in_prologue case.
16306 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
16309 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
16311 * config/avr/avr-devices.c: Delete SVN property svn:executable.
16312 * config/avr/predicates.md: Ditto.
16313 * config/avr/driver-avr.c: Ditto.
16314 * config/avr/genopt.sh: Set SVN property svn:executable to *.
16316 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
16318 * calls.c (emit_library_call_value_1): Declare size only if
16319 BLOCK_REG_PADDING is defined.
16321 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
16324 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
16325 (x86_64-*-*): Likewise.
16326 * config/i386/i386.opt (mlzcnt): New.
16327 * config/i386/abmintrin.h: File removed.
16328 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
16329 * config/i386/lzcntintrin.h: ... here. New file.
16330 (__lzcnt): Rename to ...
16331 (__lzcnt32): ... this.
16332 * config/i386/bmiintrin.h (head): Update copyright year.
16333 (__lzcnt_u16): Removed.
16334 (__lzcnt_u32): Likewise.
16335 (__lzcnt_u64): Likewise.
16336 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
16337 is defined, remove abmintrin.h.
16338 * config/i386/cpuid.h (bit_LZCNT): New.
16339 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
16341 * config/i386/i386-c.c (ix86_target_macros_internal): Define
16342 __LZCNT__ if needed.
16343 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
16344 (ix86_option_override_internal): Handle LZCNT option.
16345 (ix86_valid_target_attribute_inner_p): Likewise.
16346 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
16347 * config/i386/i386.h (TARGET_LZCNT): New.
16348 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
16349 * config/i386/i386.md (clz<mode>2): Update insn constraint.
16350 (clz<mode>2_lzcnt): Likewise.
16351 * doc/invoke.texi: Mention -mlzcnt option.
16352 * doc/extend.texi: Likewise.
16354 2011-08-01 Julian Brown <julian@codesourcery.com>
16356 * configure.ac (fixed-point): Add ARM support.
16357 * configure: Regenerate.
16358 * config/arm/arm.c (arm_fixed_mode_set): New struct.
16359 (arm_set_fixed_optab_libfunc): New.
16360 (arm_set_fixed_conv_libfunc): New.
16361 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
16362 ARM-specific names.
16363 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
16364 return values in SImode.
16365 (arm_return_in_msb): Return fixed-point types in the msb.
16366 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
16368 (arm_scalar_mode_supported_p): Support fixed-point modes.
16369 (arm_vector_mode_supported_p): Support vector fixed-point modes.
16370 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
16371 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
16372 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
16373 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
16374 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
16375 New mode iterators.
16376 (qaddsub_suf): New mode attribute.
16377 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
16379 * config/arm/predicates.md (sat_shift_operator): New predicate.
16380 * config/arm/arm-fixed.md: New.
16381 * config/arm/arm.md: Include arm-fixed.md.
16382 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
16384 2011-08-01 Julian Brown <julian@codesourcery.com>
16386 * calls.c (emit_library_call_value_1): Support padding for libcall
16387 arguments and return values.
16388 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
16389 downwards in big-endian mode.
16391 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16394 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
16395 * config/sol2-protos.h: Likewise.
16396 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
16398 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
16399 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
16401 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
16403 2011-08-01 Julian Brown <julian@codesourcery.com>
16405 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
16407 2011-08-01 Julian Brown <julian@codesourcery.com>
16409 * final.c (output_addr_const): Print fixed-point constants as
16412 2011-08-01 Richard Guenther <rguenther@suse.de>
16414 * stor-layout.c (initialize_sizetypes): Properly sign-extend
16415 bitsiztype TYPE_MAX_VALUE.
16417 2011-08-01 Julian Brown <julian@codesourcery.com>
16419 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
16420 comparison helpers.
16422 2011-07-31 Richard Henderson <rth@redhat.com>
16424 * config/h8300/crti.asm: Add flags to .section directive.
16425 * config/h8300/crtn.asm: Likewise.
16427 2011-07-31 Richard Henderson <rth@redhat.com>
16429 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
16430 * tree.c (build_common_tree_nodes): Likewise.
16432 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
16435 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
16436 (divsi3_i1): Likewise.
16438 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16440 PR tree-optimization/49749
16441 * tree-ssa-reassoc.c (get_rank): New forward declaration.
16442 (PHI_LOOP_BIAS): New macro.
16443 (phi_rank): New function.
16444 (loop_carried_phi): Likewise.
16445 (propagate_rank): Likewise.
16446 (get_rank): Add calls to phi_rank and propagate_rank.
16448 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
16450 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
16452 (PTRDIFF_TYPE): Likewise.
16454 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
16457 * config/i386/i386.md (strset): Do not expand strset_singleop
16458 when %eax or $edi are fixed.
16459 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
16460 (*strsetsi_1): Ditto.
16461 (*strsethi_1): Ditto.
16462 (*strsetqi_1): Ditto.
16463 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
16464 (*rep_stossi): Ditto.
16465 (*rep_stosqi): Ditto.
16466 (*strlenqi_1): Ditto.
16467 (cmpstrnsi): Also fail when %ecx is fixed.
16468 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
16469 (*cmpstrnqi_1): Ditto.
16470 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
16471 (*strmovsi_1): Ditto.
16472 (*strmovhi_1): Ditto.
16473 (*strmovqi_1): Ditto.
16474 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
16475 (*rep_movsi): Ditto.
16476 (*rep_movqi): Ditto.
16478 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
16481 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
16482 Disable instruction scheduling for non-ColdFire targets.
16483 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
16485 2011-07-31 Revital Eres <revital.eres@linaro.org>
16487 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
16488 of anti-dep edge from a branch.
16489 (add_cross_iteration_register_deps): Create anti-dep edge from
16492 2011-07-31 Revital Eres <revital.eres@linaro.org>
16494 * modulo-sched.c: Change comment.
16495 (reset_sched_times): Fix print message.
16496 (print_partial_schedule): Add print info.
16498 2011-07-31 Tom de Vries <tom@codesourcery.com>
16500 PR middle-end/43513
16501 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
16502 get_object_alignment and TYPE_ALIGN.
16504 2011-07-30 Tom de Vries <tom@codesourcery.com>
16506 PR middle-end/43513
16507 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
16508 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
16510 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16512 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
16514 (cpu_types): New array.
16515 (cputype): New function.
16516 (host_detect_local_cpu): Only define buf, f if !__sgi__.
16517 Use scaninvent instead of /proc/cpuinfo if __sgi__.
16518 * config.host: Also use driver-native.o, mips/x-native on
16520 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
16521 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
16522 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
16524 2011-07-29 Jakub Jelinek <jakub@redhat.com>
16526 PR middle-end/49897
16527 PR middle-end/49898
16528 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
16529 in nested parallel and outer is a gimple_reg, mark it as addressable
16530 and set its bit in task_shared_vars bitmap too.
16532 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
16534 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
16536 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16538 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
16539 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
16540 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
16541 AMASK_LOCKPFTCHOK): Define.
16542 (host_detect_local_cpu): Remove buf, f, cpu_names.
16543 Define cpu_types, implver, amask.
16544 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
16546 * config.host: Also use driver-alpha.o, alpha/x-alpha on
16548 * config/alpha/osf5.h [__alpha__ || __alpha]
16549 (host_detect_local_cpu): Declare.
16550 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
16551 (DRIVER_SELF_SPECS): Define.
16553 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
16556 * config/i386/i386.md (*load_tp_x32): New.
16557 (*load_tp_x32_zext): Ditto.
16558 (*add_tp_x32): Ditto.
16559 (*add_tp_x32_zext): Ditto.
16560 (*load_tp_<mode>): Disable for TARGET_X32 targets.
16561 (*add_tp_<mode>): Ditto.
16562 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
16563 ptr_mode and convert to Pmode if needed.
16565 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
16568 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
16569 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
16570 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
16571 Add X to register footprint: Clobber r26/r27.
16573 2011-07-29 Richard Guenther <rguenther@suse.de>
16575 * builtins.c (fold_builtin_signbit): Build the comparison
16576 with a proper type.
16578 2011-07-29 Richard Guenther <rguenther@suse.de>
16580 PR tree-optimization/49893
16581 * tree-predcom.c (suitable_reference_p): Volatile references
16584 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
16587 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
16588 (__ctzsi2): Result for 0 may be undefined.
16589 (__ctzhi2): Result for 0 may be undefined.
16590 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
16591 (__popcountsi2): Ditto. And don't clobber r26.
16592 (__popcountdi2): Ditto. And don't clobber r27.
16593 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
16594 (parityhi2): New expand.
16595 (paritysi2): New expand.
16596 (popcounthi2): New expand.
16597 (popcountsi2): New expand.
16598 (clzhi2): New expand.
16599 (clzsi2): New expand.
16600 (ctzhi2): New expand.
16601 (ctzsi2): New expand.
16602 (ffshi2): New expand.
16603 (ffssi2): New expand.
16604 (copysignsf3): New insn.
16605 (bswapsi2): New expand.
16606 (*parityhi2.libgcc): New insn.
16607 (*parityqihi2.libgcc): New insn.
16608 (*paritysihi2.libgcc): New insn.
16609 (*popcounthi2.libgcc): New insn.
16610 (*popcountsi2.libgcc): New insn.
16611 (*popcountqi2.libgcc): New insn.
16612 (*popcountqihi2.libgcc): New insn-and-split.
16613 (*clzhi2.libgcc): New insn.
16614 (*clzsihi2.libgcc): New insn.
16615 (*ctzhi2.libgcc): New insn.
16616 (*ctzsihi2.libgcc): New insn.
16617 (*ffshi2.libgcc): New insn.
16618 (*ffssihi2.libgcc): New insn.
16619 (*bswapsi2.libgcc): New insn.
16621 2011-07-29 Richard Guenther <rguenther@suse.de>
16623 * tree-vrp.c (get_value_range): Only set parameter default
16624 definitions to varying, leave others at undefined.
16625 (extract_range_from_binary_expr): Fix undefined handling.
16626 (vrp_visit_phi_node): Handle merged undefined state.
16628 2011-07-29 Wei Guozhi <carrot@google.com>
16630 PR rtl-optimization/49799
16631 * combine.c (make_compound_operation): Check if the bit field is valid
16632 before change it to bit field extraction.
16634 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
16636 PR rtl-optimization/49891
16637 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
16638 newly created returnjumps.
16640 2011-07-28 DJ Delorie <dj@redhat.com>
16642 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
16643 local frame in a naked function, and produce a suitable error for
16644 that specific case.
16646 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
16647 registers to be reloaded in HI classes when the target is HI.
16649 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
16651 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
16652 bound_one, bound_two.
16654 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
16656 PR middle-end/48648
16657 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
16659 (translate_clast): Same.
16660 (translate_clast_assignment): New.
16662 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
16664 PR tree-optimization/49876
16665 * sese.c (rename_uses): Do not return false on gloog_error: set
16666 the new_expr to integer_zero_node and continue code generation.
16667 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
16669 2011-07-28 Jakub Jelinek <jakub@redhat.com>
16672 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
16673 arguments also check if they aren't initialized with a MODE_INT
16674 mode of the same size.
16676 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
16678 * expr.c (get_bit_range): Handle *MEM_REF's.
16680 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
16682 * rtlanal.c (tablejump_p): False for returns.
16683 * reorg.c (first_active_target_insn): New static function.
16684 (find_end_label): Set JUMP_LABEL for a new returnjump.
16685 (optimize_skip, get_jump_flags, rare_destination,
16686 mostly_true_jump, get_branch_condition,
16687 steal_delay_list_from_target, own_thread_p,
16688 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
16689 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
16690 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
16691 * jump.c (delete_related_insns): Likewise.
16692 (jump_to_label_p): New function.
16693 (redirect_target): New static function.
16694 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
16695 (redirect_jump_1): Assert that the new label is nonnull.
16696 (redirect_jump): Likewise.
16697 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
16698 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
16700 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
16701 changed. Ensure that the right label is passed to redirect_jump.
16702 * function.c (emit_return_into_block,
16703 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
16704 ret_rtx in their JUMP_LABEL.
16705 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
16706 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
16707 pass ret_rtx as label.
16708 * cfglayout.c (fixup_reorder_chain): Use
16709 force_nonfallthru_and_redirect rather than force_nonfallthru.
16710 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
16711 * rtl.h (ANY_RETURN_P): New macro.
16712 (jump_to_label_p): Declare.
16713 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
16715 (mark_target_live_regs): Likewise.
16716 * basic-block.h (force_nonfallthru_and_redirect): Declare.
16717 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
16718 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
16719 alpha_tablejump_best_label): Remove functions.
16720 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
16721 alpha_tablejump_best_label): Remove declarations.
16722 * config/sh/sh.c (barrier_align, split_branches): Adjust for
16723 ret_rtx in JUMP_LABELs.
16724 * config/arm/arm.c (is_jump_table): Likewise.
16726 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
16728 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
16729 special predicate. Remove explicit mode checks.
16731 2011-07-28 Jakub Jelinek <jakub@redhat.com>
16733 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
16734 DW_AT_data_member_location containing just DW_OP_plus_uconst.
16737 * dwarf2out.c (size_of_die, value_format, output_die): Use
16738 DW_FORM_udata instead of DW_FORM_data[48] for
16739 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
16741 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
16743 * config/i386/i386.md (*tls_global_dynamic_64): Update
16746 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
16749 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
16750 tls_symbolic_operand check. Update code sequence for TARGET_X32.
16751 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
16752 (tls_dynamic_gnu2_64): Ditto.
16753 (*tls_dynamic_gnu2_lea_64): Ditto.
16754 (*tls_dynamic_gnu2_call_64): Ditto.
16755 (*tls_dynamic_gnu2_combine_64): Ditto.
16757 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
16759 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
16761 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
16764 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
16766 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16768 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
16769 before the core constraints. Adjust attributes.
16770 ("*thumb2_movdf_vfp"): Likewise.
16772 2011-07-28 Kai Tietz <ktietz@redhat.com>
16774 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
16775 (simplify_truth_ops_using_ranges): Likewise.
16776 (build_assert_expr_for): Likewise.
16777 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
16778 and handle BIT_NOT_EXPR for truth-operation.
16780 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
16783 Undo r176835 from trunk
16784 2011-07-27 Georg-Johann Lay
16786 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
16789 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
16790 Add _muluhisi3, _mulshisi3, _usmulhisi3.
16791 * config/avr/libgcc.S (__mulsi3): Rewrite.
16792 (__mulhisi3): Rewrite.
16793 (__umulhisi3): Rewrite.
16794 (__usmulhisi3): New.
16795 (__muluhisi3): New.
16796 (__mulshisi3): New.
16797 (__mulohisi3): New.
16798 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
16800 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
16801 (pseudo_register_or_const_int_operand): New.
16802 (combine_pseudo_register_operand): New.
16803 (u16_operand): New.
16804 (s16_operand): New.
16805 (o16_operand): New.
16806 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
16807 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
16808 (any_extend, any_extend2): New code iterators.
16809 (extend_prefix): New code attribute.
16810 (mulsi3): Rewrite. Turn insn to expander.
16812 (umulhisi3): Ditto.
16813 (usmulhisi3): New expander.
16814 (*mulsi3): New insn-and-split.
16815 (mulu<mode>si3): New insn-and-split.
16816 (muls<mode>si3): New insn-and-split.
16817 (mulohisi3): New insn-and-split.
16818 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
16819 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
16820 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
16821 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
16823 (*mulsi3_call): Rewrite.
16824 (*mulhisi3_call): Rewrite.
16825 (*umulhisi3_call): Rewrite.
16826 (*usmulhisi3_call): New insn.
16827 (*muluhisi3_call): New insn.
16828 (*mulshisi3_call): New insn.
16829 (*mulohisi3_call): New insn.
16830 (extendqihi2): Use combine_pseudo_register_operand as predicate
16832 (extendqisi2): Ditto.
16833 (zero_extendqihi2): Ditto.
16834 (zero_extendqisi2): Ditto.
16835 (zero_extendhisi2): Ditto.
16836 (extendhisi2): Ditto. Don't early-clobber operand 0.
16838 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
16840 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
16842 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
16844 PR tree-optimization/49471
16845 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
16846 iv only when the largest type is unsigned. Do not call
16847 lang_hooks.types.type_for_size.
16849 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
16851 PR middle-end/45450
16852 * graphite-poly.c (apply_poly_transforms): Disable legality check
16853 after an openscop read.
16855 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
16857 PR middle-end/47691
16858 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
16859 copy_bb_and_scalar_dependences.
16860 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
16861 (graphite_copy_stmts_from_block): Update call to rename_uses.
16862 (copy_bb_and_scalar_dependences): Update call to
16863 graphite_copy_stmts_from_block.
16864 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
16866 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
16869 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
16870 (__ctzsi2): Result for 0 may be undefined.
16871 (__ctzhi2): Result for 0 may be undefined.
16872 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
16873 (__popcountsi2): Ditto. And don't clobber r26.
16874 (__popcountdi2): Ditto. And don't clobber r27.
16875 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
16876 (parityhi2): New expand.
16877 (paritysi2): New expand.
16878 (popcounthi2): New expand.
16879 (popcountsi2): New expand.
16880 (clzhi2): New expand.
16881 (clzsi2): New expand.
16882 (ctzhi2): New expand.
16883 (ctzsi2): New expand.
16884 (ffshi2): New expand.
16885 (ffssi2): New expand.
16886 (copysignsf3): New insn.
16887 (bswapsi2): New expand.
16888 (*parityhi2.libgcc): New insn.
16889 (*parityqihi2.libgcc): New insn.
16890 (*paritysihi2.libgcc): New insn.
16891 (*popcounthi2.libgcc): New insn.
16892 (*popcountsi2.libgcc): New insn.
16893 (*popcountqi2.libgcc): New insn.
16894 (*popcountqihi2.libgcc): New insn-and-split.
16895 (*clzhi2.libgcc): New insn.
16896 (*clzsihi2.libgcc): New insn.
16897 (*ctzhi2.libgcc): New insn.
16898 (*ctzsihi2.libgcc): New insn.
16899 (*ffshi2.libgcc): New insn.
16900 (*ffssihi2.libgcc): New insn.
16901 (*bswapsi2.libgcc): New insn.
16903 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
16905 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
16906 the mode of symbolic_opreand RTXes.
16908 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
16910 * config/i386/predicates.md (x86_64_movabs_operand): Return false
16911 for pic_32bit_operand RTXes.
16912 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
16915 2011-07-27 Kai Tietz <ktietz@redhat.com>
16917 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
16919 (ix86_handle_abi_attribute): Allow function attributes
16920 ms_abi/sysv_abi in 32-bit mode, too.
16921 * doc/extend.texi: Adjust attribute documentation.
16923 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
16924 expression handling.
16925 (and_var_with_comparison_1): Likewise.
16927 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
16929 * params.h (ALLOW_STORE_DATA_RACES): New.
16930 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
16931 * Makefile.in (expr.o): Depend on PARAMS_H.
16932 * machmode.h (get_best_mode): Add argument.
16933 * fold-const.c (optimize_bit_field_compare): Add argument to
16935 (fold_truthop): Same.
16936 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
16937 * expr.c (emit_group_store): Same.
16938 (copy_blkmode_from_reg): Same.
16939 (write_complex_part): Same.
16940 (optimize_bitfield_assignment_op): Add argument.
16941 Add argument to get_best_mode.
16942 (get_bit_range): New.
16943 (expand_assignment): Calculate maxbits and pass it down accordingly.
16944 (store_field): New argument.
16945 (expand_expr_real_2): New argument to store_field. Include params.h.
16946 * expr.h (store_bit_field): New argument.
16947 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
16948 into account maxbits.
16949 * calls.c (store_unaligned_arguments_into_pseudos): New argument
16950 to store_bit_field.
16951 * expmed.c (store_bit_field_1): New argument. Use it.
16952 (store_bit_field): Same.
16953 (store_fixed_bit_field): Same.
16954 (store_split_bit_field): Same.
16955 (extract_bit_field_1): Pass new argument to get_best_mode.
16956 (extract_bit_field): Same.
16957 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
16958 * doc/invoke.texi: Document parameter allow-store-data-races.
16960 2011-07-27 Jakub Jelinek <jakub@redhat.com>
16962 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
16964 2011-07-27 Kai Tietz <ktietz@redhat.com>
16966 * tree-vrp.c (extract_range_from_binary_expr): Remove
16967 TRUTH-binary cases and add new bitwise-cases.
16968 (extract_range_from_assignment): Likewise.
16969 (register_edge_assert_for_1): Likeiwise.
16970 (register_edge_assert_for): Likewise.
16971 (simplify_truth_ops_using_ranges): Likewise.
16972 (simplify_stmt_using_ranges): Likewise.
16974 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
16977 * config/i386/i386.c (ix86_delegitimize_address): Call
16978 simplify_gen_subreg for PIC with mode of x only if modes of
16979 x and orig_x are different.
16981 2011-07-26 Jakub Jelinek <jakub@redhat.com>
16983 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
16984 to GC allocated copy of the string.
16985 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
16986 before .debug_line, not after it.
16988 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
16990 PR middle-end/47046
16991 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
16992 evolution_function_is_affine_p on CHREC_RIGHT.
16994 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
16996 * tree-data-ref.c (max_stmt_executions_tree): Do not call
16997 lang_hooks.types.type_for_size.
16999 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
17001 PR middle-end/47653
17002 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
17003 loops using wrapping semantics.
17005 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
17007 PR middle-end/48805
17008 * tree-scalar-evolution.c (instantiate_scev_r): Return
17009 chrec_dont_know for ADDR_EXPR.
17011 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
17012 H.J. Lu <hongjiu.lu@intel.com>
17016 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
17017 if legitimize_tls_address returned operand in wrong mode. Allow
17018 SImode and DImode symbolic operand for PIC. Call convert_to_mode
17019 if legitimize_pic_address returned operand in wrong mode.
17021 2011-07-26 Martin Jambor <mjambor@suse.cz>
17023 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
17024 return false for invariants.
17026 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
17028 * config/i386/i386.md (add->lea splitter): Implement using SWI
17029 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
17030 (add->lea zext splitter): Change operand 2 predicate to
17031 x86_64_nonmemory_operand.
17033 2011-07-26 Richard Guenther <rguenther@suse.de>
17035 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
17036 frequency makes everything hot.
17038 2011-07-26 Richard Guenther <rguenther@suse.de>
17040 PR tree-optimization/49840
17041 * tree-vrp.c (range_fits_type_p): Properly handle full
17042 double-int precision.
17044 2011-07-26 Martin Jambor <mjambor@suse.cz>
17047 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
17049 (update_specialized_profile): Likewise.
17051 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
17052 H.J. Lu <hongjiu.lu@intel.com>
17057 * config/i386/i386.md (i): Change SImode attribute to "e".
17058 (g): Change SImode attribute to "rme".
17059 (di): Change SImode attribute to "nF".
17060 (general_operand): Change SImode attribute to x86_64_general_operand.
17061 (general_szext_operand): Change SImode attribute to
17062 x86_64_szext_general_operand.
17063 (immediate_operand): Change SImode attribute to
17064 x86_64_immediate_operand.
17065 (nonmemory_operand): Change SImode attribute to
17066 x86_64_nonmemory_operand.
17067 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
17068 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
17069 (*lea_1): Use SWI48 mode iterator.
17070 (*lea_1_zext): New insn pattern.
17071 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
17072 (*bt<mode>): Ditto.
17073 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
17074 Update operand constraints.
17075 (addsi_1_zext): Ditto.
17076 (*add<mode>2): Ditto.
17077 (*addsi_3_zext): Ditto.
17078 (*subsi_1_zext): Ditto.
17079 (*subsi_2_zext): Ditto.
17080 (*subsi_3_zext): Ditto.
17081 (*addsi3_carry_zext): Ditto.
17082 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
17083 (*mulsi3_1_zext): Ditto.
17085 (*andsi_1_zext): Ditto.
17086 (*andsi_2_zext): Ditto.
17087 (*<any_or:code>si_1_zext): Ditto.
17088 (*<any_or:code>si_2_zext): Ditto.
17089 (*test<mode>_1): Use <general_operand> predicate for operand 1.
17090 (*and<mode>_2): Ditto.
17091 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
17092 (add->lea splitter): Check operand modes in insn constraint. Extend
17093 operands less than SImode wide to SImode.
17094 (add->lea zext splitter): Do not extend input operands to DImode.
17095 (*lea_general_1): Handle only QImode and HImode operands.
17096 (*lea_general_2): Ditto.
17097 (*lea_general_3): Ditto.
17098 (*lea_general_1_zext): Remove.
17099 (*lea_general_2_zext): Ditto.
17100 (*lea_general_3_zext): Ditto.
17101 (*lea_general_4): Check operand modes in insn constraint. Extend
17102 operands less than SImode wide to SImode.
17103 (ashift->lea splitter): Ditto.
17104 * config/i386/i386.c (ix86_print_operand_address): Print address
17105 registers with 'q' modifier on 64bit targets.
17106 * config/i386/predicates.md (pic_32bit_opreand): Define as special
17107 predicate. Reject non-SI and non-DI modes.
17109 2011-07-25 Andrew Pinski <apinski@cavium.com>
17112 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
17113 TREE_THIS_NOTRAP into the inner most MEM_REF.
17114 Always copy TREE_THIS_VOLATILE.
17115 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
17116 arguments are not volatile references.
17118 2011-07-25 Richard Henderson <rth@redhat.com>
17120 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
17121 * final.c (final_scan_insn): Don't test for it.
17122 (rest_of_clean_state): Likewise.
17124 2011-07-25 Richard Henderson <rth@redhat.com>
17127 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
17128 (emit_frame_save): Likewise.
17129 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
17130 insn onto a dummy blockage insn after the join label.
17132 2011-07-25 Richard Henderson <rth@redhat.com>
17134 * dwarf2cfi.c (dw_trace_info): Add ID member.
17135 (get_trace_index): Remove. Change users to use ID member.
17136 (before_next_cfi_note): New.
17137 (connect_traces): Remove unreachable traces before the main loop.
17138 Look across one trace and generate remember/restore_state if needed.
17140 2011-07-25 Richard Henderson <rth@redhat.com>
17142 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
17144 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
17146 * genattr.c (write_upcase, gen_attr <enum definition writing>):
17148 * genattr-common.c ... here.
17149 (main): Call gen_attr.
17150 * optc-gen.awk: Make generated program include insn-attr-common.h .
17151 * Makefile.in (oprions.o): Depend on insn-attr-common.h
17153 2011-07-25 Anatoly Sokolov <aesok@post.ru>
17155 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
17156 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
17157 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
17158 m32c_print_operand, m32c_print_operand_address): Remove.
17159 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
17160 Change return type to bool. Change argument type to bool.
17161 (m32c_print_operand, m32c_print_operand_address): Make static.
17162 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
17163 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
17165 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17167 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
17168 attributes): Document mmap.
17170 2011-07-25 Anatoly Sokolov <aesok@post.ru>
17172 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
17173 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
17174 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
17175 mmix_print_operand, mmix_print_operand_address): Remove.
17176 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
17177 Change return type to bool. Change argument type to bool.
17178 (mmix_print_operand, mmix_print_operand_address): Make static.
17179 (mmix_intval, mmix_output_condition): Change 'x' argument type
17181 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
17182 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
17184 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
17187 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
17188 shift counter for x << x and x >> x shifts.
17190 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17193 * config.gcc: Reject *-*-solaris2 configuration.
17195 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
17197 PR tree-optimization/49809
17198 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
17199 gimple_get_lhs instead of gimple_assign_lhs.
17201 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17203 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
17205 2011-07-25 Richard Guenther <rguenther@suse.de>
17207 PR tree-optimization/49822
17208 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
17209 more. Make sure to preserve stmts with side-effects. Properly
17210 handle virtual defs, follow a longer def chain.
17212 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
17217 * Makefile.in: Do not flatten c-family directory when installing
17220 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
17222 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
17223 original nodes if we are dealing with virtual clones.
17225 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
17227 * common/config/c6x/c6x-common.c: New file.
17229 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
17231 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
17233 2011-07-25 Richard Guenther <rguenther@suse.de>
17235 PR tree-optimization/49715
17236 * tree-vrp.c: Include expr.h and optabs.h.
17237 (range_fits_type_): New function.
17238 (simplify_float_conversion_using_ranges): Likewise.
17239 (simplify_stmt_using_ranges): Call it.
17240 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
17241 * optabs.c (can_float_p): Export.
17242 * optabs.h (can_float_p): Declare.
17244 2011-07-25 Richard Guenther <rguenther@suse.de>
17246 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
17247 (get_value_range): For out-of-range SSA names or names created
17248 after propagation return a read-only varying range.
17249 (dump_all_value_ranges): Adjust.
17250 (vrp_initialize): Likewise.
17251 (vrp_finalize): Likewise.
17253 2011-07-24 Richard Henderson <rth@redhat.com>
17256 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
17259 2011-07-24 Richard Henderson <rth@redhat.com>
17262 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
17263 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
17265 2011-07-24 Richard Henderson <rth@redhat.com>
17268 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
17270 2011-07-24 Richard Henderson <rth@redhat.com>
17272 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
17273 Zero args_size for abnormal edges. Adjust all callers.
17275 2011-07-24 Richard Henderson <rth@redhat.com>
17278 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
17280 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
17283 * collect2.c (demangle_flag): Removed.
17285 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
17287 * configure.ac (demangler_in_ld): Default to yes.
17288 * configure: Regenerated.
17289 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
17290 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
17291 --no-demangle options straight through to ld. When
17292 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
17293 way that has the intended effect on Windows.
17295 2011-07-23 Richard Henderson <rth@redhat.com>
17297 * dwarf2cfi.c: Include basic-block.h.
17298 (dw_label_info): Remove.
17299 (trace_work_list, trace_index): New.
17300 (remember_row, emit_cfa_remember): Remove.
17301 (dw_trace_info_hash, dw_trace_info_eq): New.
17302 (get_trace_index, get_trace_info): New.
17303 (save_point_p): New.
17304 (free_cfi_row): Remove.
17305 (add_cfi): Do not emit DW_CFA_remember_state.
17306 (cfa_row_equal_p): New.
17307 (barrier_args_size): Remove.
17308 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
17309 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
17310 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
17311 (dwarf2out_cfi_begin_epilogue): Remove.
17312 (dwarf2out_frame_debug_restore_state): Remove.
17313 (connect_traces, create_pseudo_cfg): New.
17314 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
17315 * Makefile.in (dwarf2cfi.o): Update.
17317 2011-07-23 Richard Henderson <rth@redhat.com>
17319 * dwarf2cfi.c (dw_trace_info): New.
17320 (dw_label_info): New.
17321 (cie_return_save): New.
17323 (queued_args_size): Rename from args_size. Update all users.
17324 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
17325 (def_cfa_1): Use cur_trace instead of cfa_*.
17326 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
17327 (clobbers_queued_reg_save, reg_saved_in): Likewise.
17328 (dwarf2out_frame_debug_expr): Likewise.
17329 (create_cie_data): Split out from ...
17330 (execute_dwarf2_frame): ... here. Initialize cur_trace.
17332 2011-07-23 Richard Henderson <rth@redhat.com>
17334 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
17335 Update all users to match.
17336 (execute_dwarf2_frame): Free reg_saved_in_data.
17338 2011-07-23 Richard Henderson <rth@redhat.com>
17340 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
17341 (queued_reg_saves): Don't GTY. Change to a VEC.
17342 (queue_reg_save): Update to match.
17343 (dwarf2out_flush_queued_reg_saves): Likewise.
17344 (clobbers_queued_reg_save): Likewise.
17345 (reg_saved_in): Likewise.
17346 (execute_dwarf2_frame): Free queued_reg_saves.
17348 2011-07-23 Richard Henderson <rth@redhat.com>
17350 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
17352 2011-07-23 Richard Henderson <rth@redhat.com>
17354 * dwarf2cfi.c (add_cfi_args_size): Split out from...
17355 (dwarf2out_args_size): ... here.
17356 (add_cfi_restore): Split out from ...
17357 (dwarf2out_frame_debug_cfa_restore): ... here.
17358 (def_cfa_0): Split out from ...
17359 (def_cfa_1): ... here.
17360 (cfi_oprnd_equal_p, cfi_equal_p): New.
17361 (change_cfi_row): New.
17362 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
17363 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
17364 (output_cfis): Remove.
17365 * dwarf2out.c (output_fde): Simplify output_cfi loop.
17366 (dwarf2out_switch_text_section): Don't call output_cfis.
17367 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
17368 * dwarf2out.h: Update decls.
17369 (enum dw_val_class): Add dw_val_class_none.
17371 2011-07-23 Richard Henderson <rth@redhat.com>
17373 * dwarf2cfi.c (update_row_reg_save): New.
17374 (dwarf2out_frame_debug_cfa_expression): Use it.
17375 (dwarf2out_frame_debug_cfa_restore): Likewise.
17376 (reg_save): Likewise. Do not emit DW_CFA_same_value.
17378 2011-07-23 Richard Henderson <rth@redhat.com>
17380 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
17382 2011-07-23 Richard Henderson <rth@redhat.com>
17384 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
17385 (cie_cfi_row): New.
17386 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
17387 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
17388 (cur_row, remember_row): New.
17389 (def_cfa_1): Use cur_row instead of the old_* variables.
17390 (dwarf2out_frame_debug_restore_state): Similarly.
17391 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
17392 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
17393 (dwarf2out_frame_debug_adjust_cfa): Likewise.
17394 (dwarf2out_frame_debug_cfa_offset): Likewise.
17395 (dwarf2out_frame_debug_expr): Likewise.
17396 (execute_dwarf2_frame): Set up cur_row.
17397 * dwarf2out.h (struct cfa_loc): Mark for GTY.
17399 2011-07-23 Richard Henderson <rth@redhat.com>
17401 * basic-block.h (EDGE_PRESERVE): New.
17402 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
17403 * bb-reorder.c: Include except.h.
17404 (fix_up_crossing_landing_pad): New.
17405 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
17406 landing pads in the right partition. Duplicate as necessary.
17407 (partition_hot_cold_basic_blocks): Fix up DF info after
17408 duplicating landing pads.
17409 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
17410 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
17411 is set properly. Validate that EH edges are not CROSSING.
17412 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
17413 (dw2_build_landing_pads): ... here.
17414 (convert_to_eh_region_ranges): Remove code to fixup crossing
17416 * except.h (expand_dw2_landing_pad_for_region): Declare.
17417 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
17419 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
17422 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
17424 2011-07-22 Jason Merrill <jason@redhat.com>
17426 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
17428 2011-07-22 Richard Henderson <rth@redhat.com>
17430 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
17432 2011-07-22 Richard Henderson <rth@redhat.com>
17434 * jump.c (maybe_propagate_label_ref): Split out of...
17435 (mark_all_labels): ... here. Do not attempt label_ref
17436 propagation while in cfglayout mode.
17438 2011-07-22 Jakub Jelinek <jakub@redhat.com>
17440 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
17441 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
17442 (dwarf_attr_name): Handle DW_AT_GNU_macros.
17443 (dwarf2out_define): If the vector is empty and
17444 lineno is 0, emit a dummy entry first.
17445 (dwarf2out_undef): Likewise. Remove redundant semicolon.
17446 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
17447 optimize_macinfo_range): New functions.
17448 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
17449 mergeable, optimize longer strings using
17450 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
17451 optimize longer sequences of define/undef ops from headers
17452 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
17453 emit a section headers.
17454 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
17455 and macinfo_section_label to DEBUG_MACRO_SECTION
17456 resp. DEBUG_MACRO_SECTION_LABEL.
17457 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
17458 instead of DW_AT_macro_info.
17461 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
17463 * dwarf2out.c: Include opts.h.
17464 (dchar_p): New typedef. Define heap VEC for it.
17465 (producer_string): New variable.
17466 (gen_producer_string): New function.
17467 (gen_compile_unit_die): Use it.
17468 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
17469 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
17470 * doc/invoke.texi: Document -grecord-gcc-switches and
17471 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
17472 to -frecord-gcc-switches description.
17474 2011-07-22 Jason Merrill <jason@redhat.com>
17477 * c-decl.c (c_linkage_bindings): Define.
17479 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
17482 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
17484 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
17486 * config/i386/i386.c (ix86_option_override_internal): Disallow
17487 MS ABI in x32 mode.
17488 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
17489 only for TARGET_LP64.
17490 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
17492 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
17494 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
17495 avoid warnings when GCC is built with a C++ compiler.
17497 2011-07-22 Martin Jambor <mjambor@suse.cz>
17500 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
17501 if decl node is in another partition, call cgraph_get_node only once.
17503 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
17505 * config.gcc (x86_64-*-linux*): Set
17506 default_gnu_indirect_function to yes.
17508 2011-07-22 Richard Guenther <rguenther@suse.de>
17510 PR tree-optimization/45819
17511 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
17512 preserve volatile and notrap flags.
17514 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17515 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17518 * configure.ac: Test AM_ICONV with CXX.
17519 * configure: Regenerate.
17520 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
17522 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17525 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
17526 (set_cloog_options): Use it.
17528 2011-07-22 Jakub Jelinek <jakub@redhat.com>
17531 * gcc.c (main): Call stack_limit_increase (64MB).
17532 * toplev.c (toplev_main): Likewise.
17534 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
17536 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
17537 instead of force_reg.
17539 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
17541 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
17542 needed and use force_reg after convert.
17543 (ix86_expand_call): Likewise.
17544 (ix86_expand_special_args_builtin): Likewise.
17545 (ix86_expand_builtin): Likewise.
17547 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17549 PR middle-end/47654
17550 PR middle-end/49649
17551 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
17552 in parameter. Initialize v1 and v2 based on the values returned
17553 by clast_name_to_lb_ub.
17554 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
17556 (type_for_clast_bin): Same.
17557 (type_for_clast_expr): Same.
17558 (type_for_clast_eq): Update calls to type_for_clast_expr.
17559 (type_for_clast_for): Same.
17560 (build_iv_mapping): Same.
17561 * graphite-ppl.h (value_min): New.
17563 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17565 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
17566 types whenever possible.
17568 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17570 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
17572 (new_clast_name_index): Add lb and ub parameters.
17573 (free_clast_name_index): New.
17574 (clast_name_to_lb_ub): New.
17575 (save_clast_name_index): Add lb and ub parameters.
17576 (compute_bounds_for_param): New.
17577 (type_for_level): Removed.
17578 (type_for_clast_for): Removed level parameter. Do not call
17580 (graphite_create_new_loop): Store the lb and ub for the clast_name
17581 of the iterator of the loop that has been generated.
17582 (graphite_create_new_loop_guard): Remove parameter level.
17583 (create_params_index): Store the lb and ub of each parameter.
17584 (gloog): Use free_clast_name_index. Pass to create_params_index
17587 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17589 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
17590 (max_precision_type): Inline max_signed_precision_type.
17591 (type_for_clast_red): Use max_precision_type.
17592 (type_for_clast_bin): Same.
17593 (type_for_clast_for): Same.
17595 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17597 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
17599 (gcc_type_for_value): Renamed type_for_value.
17600 (gcc_type_for_clast_term): Renamed type_for_clast_term.
17601 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
17602 (gcc_type_for_clast_red): Renamed type_for_clast_red.
17603 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
17604 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
17605 (graphite_translate_clast_equation): Update calls.
17606 (compute_type_for_level): Renamed type_for_level.
17607 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
17608 (build_iv_mapping): Update calls.
17609 (graphite_create_new_loop_guard): Same.
17611 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17613 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
17616 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17618 * graphite-clast-to-gimple.c (struct ivs_params): New.
17619 (clast_name_to_gcc): Use ivs_params to pass around parameters.
17620 (clast_to_gcc_expression): Same.
17621 (clast_to_gcc_expression_red): Same.
17622 (gcc_type_for_clast_term): Same.
17623 (gcc_type_for_clast_expr): Same.
17624 (gcc_type_for_clast_red): Same.
17625 (gcc_type_for_clast_bin): Same.
17626 (gcc_type_for_clast_eq): Same.
17627 (graphite_translate_clast_equation): Same.
17628 (graphite_create_guard_cond_expr): Same.
17629 (graphite_create_new_guard): Same.
17630 (graphite_create_new_loop): Same.
17631 (build_iv_mapping): Same.
17632 (translate_clast_user): Same.
17633 (graphite_create_new_loop_guard): Same.
17634 (translate_clast): Same.
17635 (translate_clast_for_loop): Same.
17636 (translate_clast_for): Same.
17637 (translate_clast_guard): Same.
17638 (initialize_cloog_names): Fix typo.
17639 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
17641 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17643 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
17644 (new_clast_name_index): Add level parameter.
17645 (clast_name_to_level): New.
17646 (save_clast_name_index): Add level parameter.
17647 (newivs_to_depth_to_newiv): Removed.
17648 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
17649 (graphite_create_new_loop): Add level parameter. Pass level to
17650 save_clast_name_index.
17651 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
17652 (create_params_index): Pass level to save_clast_name_index.
17654 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17656 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
17657 recompute type, lb, and ub. Get them from...
17658 (graphite_create_new_loop_guard): ...here. Pass in parameter
17659 pointers to type, lb, and ub.
17660 (translate_clast_for_loop): Update function calls.
17661 (translate_clast_for): Same.
17663 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17665 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
17667 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
17668 (gcc_type_for_iv_of_clast_loop): Update use of level.
17669 (gloog): Start counting nesting level from 0.
17670 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
17671 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
17672 psct_dynamic_dim on level.
17674 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
17676 * config/i386/i386.c (ix86_legitimize_address): Convert to
17679 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
17681 * config/i386/i386.c (function_value_64): Always return pointers
17683 (ix86_promote_function_mode): New.
17684 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
17686 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17688 PR tree-optimization/49749
17689 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
17690 remove no-longer-used maxrank variable.
17692 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
17694 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
17696 2011-07-21 Jason Merrill <jason@redhat.com>
17698 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
17699 * recog.h (struct insn_data_d): Check it instead of
17700 HAVE_DESIGNATED_INITIALIZERS.
17701 * genoutput.c (output_insn_data): Likewise.
17703 2011-07-21 Richard Guenther <rguenther@suse.de>
17705 PR tree-optimization/49770
17706 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
17707 valueized any operand. Renamed from ...
17708 (valueize_refs): ... this. New wrapper around valueize_refs_1.
17709 (valueize_shared_reference_ops_from_ref): Return whether we
17710 valueized any operand.
17711 (vn_reference_lookup): Only when we valueized any operand
17712 use the valueized reference for alias analysis. Do not preserve
17713 the original reference tree in this case.
17715 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
17717 * config/i386/i386.c (ix86_decompose_address): Reject all but
17718 register operands and subregs of DImode hard registers in index.
17720 2011-07-21 Kai Tietz <ktietz@redhat.com>
17722 * fold-const.c (fold_unary_loc): Preserve indirect
17723 comparison cast to none-boolean type.
17724 * tree-ssa.c (useless_type_conversion_p): Preserve cast
17725 from/to boolean-type.
17726 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
17727 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
17728 * tree-cfg.c (verify_gimple_comparison): Check result
17729 type of comparison expression.
17730 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
17731 of condition result and disallow type-cast sinking into comparison.
17733 2011-07-21 Richard Guenther <rguenther@suse.de>
17735 * tree-ssa-forwprop.c (combine_conversions): Return whether
17736 we have to run cfg-cleanup. Properly remove dead stmts.
17737 (ssa_forward_propagate_and_combine): Adjust.
17739 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
17741 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
17743 2011-07-21 Kai Tietz <ktietz@redhat.com>
17745 * tree-ssa-propagate.c (substitute_and_fold): Use
17746 do_dce flag to deside, if BB's statements are scanned
17747 in last to first, or first to last order.
17749 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
17751 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
17753 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
17754 Uros Bizjak <ubizjak@gmail.com>
17755 Richard Henderson <rth@redhat.com>
17757 * config/i386/constraints.md (w): New.
17759 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
17760 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
17762 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
17763 instead of TARGET_64BIT.
17765 * config/i386/i386.md (indirect_jump): Replace
17766 nonimmediate_operand with indirect_branch_operand.
17767 (*indirect_jump): Likewise. Replace constraint "m" with "w".
17768 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
17769 Convert operand 0 to Pmode for x32 if not PIC.
17770 (*tablejump_1): Replace nonimmediate_operand with
17771 indirect_branch_operand. Replace constraint "m" with "w".
17772 (*call_vzeroupper): Replace constraint "m" with "w".
17774 (*call_rex64_ms_sysv_vzeroupper): Likewise.
17775 (*call_rex64_ms_sysv): Likewise.
17776 (*call_value_vzeroupper): Likewise.
17777 (*call_value): Likewise.
17778 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
17779 (*call_value_rex64_ms_sysv): Likewise.
17780 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
17782 * config/i386/predicates.md (indirect_branch_operand): New.
17783 (call_insn_operand): Support x32.
17785 2011-07-20 Michael Eager <eager@eagercon.com>
17787 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
17789 2011-07-20 Richard Henderson <rth@redhat.com>
17791 * cfg.c (dump_bb_info): Dump basic_block->flags.
17792 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
17794 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
17796 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
17797 of DImode hard registers in index.
17798 (ix86_legitimate_address_p): Allow subregs of base and index to span
17799 more than a word. Assert that subregs of base and index satisfy
17800 register_no_elim_operand predicates. Reject addresses where
17801 base and index have different modes.
17803 2011-07-20 Robert Millan <rmh@gnu.org>
17805 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
17807 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17809 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
17810 removing now-unnecessary assignment.
17812 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17814 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
17815 memory address space to the type's address space.
17817 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
17821 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
17822 and expand appropriately if there is a CONST_INT in operand2.
17823 (usmulqihi3): New insn.
17824 (*sumulqihi3): New insn.
17825 (*osmulqihi3): New insn.
17826 (*oumulqihi3): New insn.
17827 (*muluqihi3.uconst): New insn_and_split.
17828 (*muluqihi3.sconst): New insn_and_split.
17829 (*mulsqihi3.sconst): New insn_and_split.
17830 (*mulsqihi3.uconst): New insn_and_split.
17831 (*mulsqihi3.oconst): New insn_and_split.
17832 (*ashifthi3.signx.const): New insn_and_split.
17833 (*ashifthi3.signx.const7): New insn_and_split.
17834 (*ashifthi3.zerox.const): New insn_and_split.
17835 (mulsqihi3): New insn.
17836 (muluqihi3): New insn.
17837 (muloqihi3): New insn.
17838 * config/avr/predicates.md (const_2_to_7_operand): New.
17839 (const_2_to_6_operand): New.
17844 (register_or_s9_operand): New.
17846 2011-07-20 Kai Tietz <ktietz@redhat.com>
17848 * builtins.c (fold_builtin_expect): See through the cast
17849 from truthvalue_type_node to long.
17851 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
17853 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
17854 where we can use them from the standard and altivec instruction
17855 sets, instead of always using the 3 operand VSX forms that require
17856 the destination to overlap one of the inputs.
17858 (vsx_fnma*): Ditto.
17859 (vsx_fnms*): Ditto.
17861 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
17863 (fmsdf4_fpr): Ditto.
17864 (nfmadf4_fpr): Ditto.
17865 (nfmsdf4_fpr): Ditto.
17867 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
17869 * genrecog.c (make_insn_sequence): Correct position numbering
17870 when filtering out match_scratch and match_dup.
17872 2011-07-20 Richard Guenther <rguenther@suse.de>
17874 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
17875 against already removed statements.
17876 (forward_propagate_into_comparison): Remove dead defining stmts.
17877 (forward_propagate_into_gimple_cond): Likewise.
17878 (forward_propagate_into_cond): Simplify.
17879 (ssa_forward_propagate_and_combine): Handle changed cfg from
17880 forward_propagate_into_comparison.
17881 * tree-ssa-phiopt.c (conditional_replacement): Use proper
17882 locations for newly built statements.
17884 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
17886 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
17888 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17890 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
17891 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
17893 2011-07-20 Richard Guenther <rguenther@suse.de>
17895 PR middle-end/18908
17896 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
17897 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
17898 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
17900 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
17902 * config/frv/frv.c (frv_register_move_cost): Define explicitly
17903 costs for subclasses of GR_REGS.
17905 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
17908 * config/i386/predicates.md (no_seg_addres_operand): No more special.
17909 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
17910 of DImode hard registers in base.
17911 (ix86_legitimate_address_p): Allow SImode and DImode base and index
17914 2011-07-20 Richard Guenther <rguenther@suse.de>
17916 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
17917 (unify_nodes): Deal with that.
17918 (solve_graph): Likewise.
17920 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
17922 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
17923 canonicalize left operand from ZERO_EXTEND to AND.
17925 2011-07-20 Anatoly Sokolov <aesok@post.ru>
17927 * target.def (class_max_nregs): New hook.
17928 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
17929 * doc/tm.texi: Regenerate.
17930 * targhooks.c (default_class_max_nregs): New function.
17931 * targhooks.h (default_class_max_nregs): Declare.
17932 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
17933 x_ira_reg_class_min_nregs arrays to unsigned char.
17934 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
17935 hook instead of CLASS_MAX_NREGS macro.
17936 * reginfo.c (restore_register_info): Ditto.
17937 * ira-conflicts.c (process_regs_for_copy): Use
17938 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
17939 Change type rclass and aclass vars to reg_class_t.
17940 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
17941 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
17943 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
17944 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
17946 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
17947 * config/i386/i386.c (ix86_class_max_nregs): New function.
17948 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
17949 instead of CLASS_MAX_NREGS macro.
17950 (TARGET_CLASS_MAX_NREGS): Define.
17951 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
17952 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
17953 * config/avr/avr.c (class_max_nregs): Remove function.
17954 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
17955 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
17956 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
17957 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
17958 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
17959 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
17960 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
17961 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
17962 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
17963 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
17964 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
17965 * config/score/score.h (CLASS_MAX_NREGS): Remove.
17966 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
17967 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
17968 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
17970 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
17972 * cif-code.def (OVERWRITABLE): Fix typo and move around.
17973 (TARGET_OPTIMIZATION_MISMATCH): Delete.
17974 (EH_PERSONALITY): Fix typo.
17975 (NON_CALL_EXCEPTIONS): Fix message.
17976 (OPTIMIZATION_MISMATCH): Adjust message.
17977 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
17979 2011-07-19 Ian Lance Taylor <iant@google.com>
17981 * doc/install.texi (Configuration): Document
17982 --enable-build-poststage1-with-cxx.
17984 2011-07-19 Robert Millan <rmh@gnu.org>
17986 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
17987 (GLIBC_DYNAMIC_LINKER): Remove.
17989 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
17990 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
17991 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
17992 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
17993 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
17994 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
17996 * config/mips/linux.h: Remove everything except for ...
17997 (GLIBC_DYNAMIC_LINKER): ... this macro.
17999 * config/mips/linux64.h: Remove everything except for ...
18000 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
18001 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
18002 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
18003 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
18004 (GNU_USER_LINK_EMULATIONN32): New macros.
18006 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
18007 Use the new headers.
18009 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
18011 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
18012 Add offset_known_p and size_known_p fields.
18013 (MEM_OFFSET_KNOWN_P): Update accordingly.
18014 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
18015 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
18016 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
18017 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
18018 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
18019 (init_emit_regs): Likewise.
18021 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
18023 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
18024 (MEM_OFFSET): Change from returning an rtx to returning a
18026 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
18027 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
18028 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
18029 (clear_mem_offset): Declare.
18030 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
18031 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
18032 MEM_OFFSET to get a HOST_WIDE_INT offset.
18033 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
18034 (adjust_offset_for_component_ref): Take a bool "known_p"
18035 parameter and a HOST_WIDE_INT "offset" parameter.
18036 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
18037 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
18038 than an rtx. Use clear_mem_offset to clear the offset.
18039 * cfgcleanup.c (merge_memattrs): Likewise.
18040 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
18041 * function.c (assign_parm_find_stack_rtl): Likewise.
18042 (assign_parm_setup_stack): Likewise.
18043 * print-rtl.c (print_rtx): Likewise.
18044 * reload.c (find_reloads_subreg_address): Likewise.
18045 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
18046 * var-tracking.c (INT_MEM_OFFSET): Likewise.
18047 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
18048 (get_mem_align_offset): Likewise.
18049 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
18050 (clear_mem_offset): New function.
18051 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
18052 offset rather than an rtx. Assume both the expressio and offset
18054 (r10k_needs_protection_p_1): Update accordingly, checking the
18055 expression and offset availability here instead.
18057 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
18059 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
18060 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
18061 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
18062 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
18063 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
18064 (clear_mem_size): Declare.
18065 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
18066 (clear_mem_size): New function.
18067 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
18068 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
18069 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
18070 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
18072 (nonoverlapping_memrefs_p): Likewise.
18073 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
18074 (expand_builtin_init_trampoline): Likewise.
18075 * calls.c (compute_argument_addresses): Likewise.
18076 * cfgcleanup.c (merge_memattrs): Likewise.
18077 * dce.c (find_call_stack_args): Likewise.
18078 * dse.c (record_store, scan_insn): Likewise.
18079 * dwarf2out.c (dw_sra_loc_expr): Likewise.
18080 * expr.c (emit_block_move_hints): Likewise.
18081 * function.c (assign_parm_find_stack_rtl): Likewise.
18082 * print-rtl.c (print_rtx): Likewise.
18083 * reload.c (find_reloads_subreg_address): Likewise.
18084 * rtlanal.c (may_trap_p_1): Likewise.
18085 * var-tracking.c (track_expr_p): Likewise.
18086 * varasm.c (assemble_trampoline_template): Likewise.
18087 * config/arm/arm.c (arm_print_operand): Likewise.
18088 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
18089 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
18090 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
18091 (expand_constant_setmem_prologue): Likewise.
18092 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
18093 * config/rs6000/rs6000.c (expand_block_move): Likewise.
18094 (adjacent_mem_locations): Likewise.
18095 * config/s390/s390.c (s390_expand_setmem): Likewise.
18096 (s390_expand_insv): Likewise.
18097 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
18098 (*extendqi<mode>2_short_displ): Likewise.
18099 * config/sh/sh.c (expand_block_move): Likewise.
18100 * config/sh/sh.md (extv, extzv): Likewise.
18102 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
18104 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
18105 (mem_attrs_htab_eq): ...here.
18106 (find_mem_attrs): Replace with...
18107 (set_mem_attrs): ...this function. Take a mem_attrs structure
18108 rather than individual fields.
18109 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
18110 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
18111 (set_mem_size, change_address, adjust_address_1, offset_address)
18112 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
18113 Update accordingly.
18115 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
18117 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
18118 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
18119 Provide a dummy definition of MEM_ADDR_SPACE for generators.
18120 (target_rtl): Add x_mode_mem_attrs.
18121 (mode_mem_attrs): New macro.
18122 (get_mem_attrs): New function.
18123 * emit-rtl.c (get_mem_attrs): Rename to...
18124 (find_mem_attrs): ...this.
18125 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
18126 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
18127 (set_mem_size, change_address, adjust_address_1, offset_address)
18128 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
18129 Update accordingly.
18130 (init_emit_regs): Initialize mode_mem_attrs.
18132 2011-07-19 Richard Guenther <rguenther@suse.de>
18134 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
18135 TRUTH_*_EXPR handling.
18136 * tree-ssa-operands.c (get_expr_operands): Likewise.
18137 * tree-ssa-pre.c (fully_constant_expression): Likewise.
18138 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
18140 (is_and_or_or): Likewise.
18141 (is_norm_cond_subset_of): Likewise.
18143 2011-07-19 Richard Guenther <rguenther@suse.de>
18145 * tree.h (fold_build_pointer_plus_loc): New helper function.
18146 (fold_build_pointer_plus_hwi_loc): Likewise.
18147 (fold_build_pointer_plus): Define.
18148 (fold_build_pointer_plus_hwi): Likewise.
18149 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
18150 (fold_builtin_memory_op): Likewise.
18151 (fold_builtin_stpcpy): Likewise.
18152 (fold_builtin_memchr): Likewise.
18153 (fold_builtin_strstr): Likewise.
18154 (fold_builtin_strchr): Likewise.
18155 (fold_builtin_strrchr): Likewise.
18156 (fold_builtin_strpbrk): Likewise.
18157 (fold_builtin_strcat): Likewise.
18158 (expand_builtin_memory_chk): Likewise.
18159 (fold_builtin_memory_chk): Likewise.
18160 * c-typeck.c (build_unary_op): Likewise.
18161 * cgraphunit.c (thunk_adjust): Likewise.
18162 * fold-const.c (build_range_check): Likewise.
18163 (fold_binary_loc): Likewise.
18164 * omp-low.c (extract_omp_for_data): Likewise.
18165 (expand_omp_for_generic): Likewise.
18166 (expand_omp_for_static_nochunk): Likewise.
18167 (expand_omp_for_static_chunk): Likewise.
18168 * tree-affine.c (add_elt_to_tree): Likewise.
18169 * tree-data-ref.c (split_constant_offset_1): Likewise.
18170 * tree-loop-distribution.c (generate_memset_zero): Likewise.
18171 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
18172 * tree-predcom.c (ref_at_iteration): Likewise.
18173 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
18174 (add_to_parts): Likewise.
18175 (create_mem_ref): Likewise.
18176 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
18177 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
18178 (number_of_iterations_le): Likewise.
18179 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
18180 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
18181 (vect_create_addr_base_for_vector_ref): Likewise.
18182 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
18183 (vect_create_cond_for_alias_checks): Likewise.
18184 * tree-vrp.c (extract_range_from_assert): Likewise.
18185 * config/alpha/alpha.c (alpha_va_start): Likewise.
18186 (alpha_gimplify_va_arg_1): Likewise.
18187 * config/i386/i386.c (ix86_va_start): Likewise.
18188 (ix86_gimplify_va_arg): Likewise.
18189 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
18190 * config/mep/mep.c (mep_expand_va_start): Likewise.
18191 (mep_gimplify_va_arg_expr): Likewise.
18192 * config/mips/mips.c (mips_va_start): Likewise.
18193 (mips_gimplify_va_arg_expr): Likewise.
18194 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
18195 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
18196 (rs6000_gimplify_va_arg): Likewise.
18197 * config/s390/s390.c (s390_va_start): Likewise.
18198 (s390_gimplify_va_arg): Likewise.
18199 * config/sh/sh.c (sh_va_start): Likewise.
18200 (sh_gimplify_va_arg_expr): Likewise.
18201 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
18202 * config/spu/spu.c (spu_va_start): Likewise.
18203 (spu_gimplify_va_arg_expr): Likewise.
18204 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
18206 (xstormy16_gimplify_va_arg_expr): Likewise.
18207 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
18208 (xtensa_gimplify_va_arg_expr): Likewise.
18210 2011-07-19 Richard Guenther <rguenther@suse.de>
18212 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
18213 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
18216 PR middle-end/18908
18217 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
18218 result of BIT_*_EXPR to bitfield precision.
18220 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
18222 PR tree-optimization/49742
18223 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
18224 as a potential write.
18226 2011-07-19 Richard Guenther <rguenther@suse.de>
18228 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
18229 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
18230 (forward_propagate_comparison): Simplify, remove obsolete code.
18232 2011-07-19 Richard Guenther <rguenther@suse.de>
18234 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
18235 BIT_XOR_EXPR, same as the RTL expander does.
18236 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
18237 (verify_gimple_assign_unary): Likewise.
18238 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
18239 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
18240 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
18242 2011-07-19 Jakub Jelinek <jakub@redhat.com>
18244 PR tree-optimization/49768
18245 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
18246 if offset is smaller than bitoffset, but offset+size is bigger
18249 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
18251 PR tree-optimization/49771
18252 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
18253 zero step, set segment length to the size of the data-ref's type.
18255 2011-07-18 Martin Jambor <mjambor@suse.cz>
18257 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
18259 (ipcp_values_pool): Declare.
18260 (ipcp_sources_pool): Likewise.
18261 (ipcp_lattice): Changed to forward declaration.
18262 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
18263 cannot_devirtualize.
18264 (ipa_node_params): New fields descriptors, lattices, known_vals,
18265 clone_for_all_contexts and node dead, removed fields params and
18267 (ipa_set_param_count): Removed.
18268 (ipa_get_param_count): Made to work with descriptors vector.
18269 (ipa_get_param): Updated.
18270 (ipa_param_cannot_devirtualize_p): Removed.
18271 (ipa_param_types_vec_empty): Likewise.
18272 (ipa_set_param_used): New function.
18273 (ipa_get_param_used): Updated to use descriptors vector.
18274 (ipa_func_list): Removed.
18275 (ipa_init_func_list): Removed declaration.
18276 (ipa_push_func_to_list_1): Likewise.
18277 (ipa_pop_func_from_list): Likewise.
18278 (ipa_push_func_to_list): Removed.
18279 (ipa_lattice_from_jfunc): Remove declaration.
18280 (ipa_get_jf_pass_through_result): Declare.
18281 (ipa_get_jf_ancestor_result): Likewise.
18282 (ipa_value_from_jfunc): Likewise.
18283 (ipa_get_lattice): Update.
18284 (ipa_lat_is_single_const): New function.
18285 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
18286 (ipa_init_func_list): Likewise.
18287 (ipa_pop_func_from_list): Likewise.
18288 (ipa_get_param_decl_index): Fix coding style.
18289 (count_formal_params): Removed.
18290 (count_formal_params_1): Renamed to count_formal_params.
18291 (ipa_populate_param_decls): Update to use descriptors vector.
18292 (ipa_initialize_node_params): Likewise.
18293 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
18294 (ipa_analyze_params_uses): Likewise.
18295 (ipa_free_node_params_substructures): Likewise and free also lattices
18297 (duplicate_array): Removed.
18298 (ipa_edge_duplication_hook): Add the new edge to the list of edge
18300 (ipa_node_duplication_hook): Update to use new lattices.
18301 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
18302 (ipa_free_all_structures_after_iinln): Likewise.
18303 (ipa_write_node_info): Update to use new lattices.
18304 (ipa_read_node_info): Likewise.
18305 (ipa_get_jf_pass_through_result): New function.
18306 (ipa_get_jf_ancestor_result): Likewise.
18307 (ipa_value_from_jfunc): Likewise.
18308 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
18309 * ipa-cp.c: Reimplemented.
18310 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
18311 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
18312 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
18313 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
18314 * doc/invoke.texi (devirt-type-list-size): Removed description.
18315 (ipa-cp-value-list-size): Added description.
18317 2011-07-18 Richard Henderson <rth@redhat.com>
18319 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
18320 before calling create_basic_block.
18322 2011-07-18 Jakub Jelinek <jakub@redhat.com>
18324 PR middle-end/49675
18325 * tree.c (build_common_builtin_nodes): Register
18326 __builtin_return_address, __cyg_profile_func_enter
18327 and __cyg_profile_func_exit.
18329 2011-07-18 Richard Henderson <rth@redhat.com>
18331 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
18332 (add_labels_and_missing_jumps): ... here.
18333 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
18335 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
18338 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
18339 of DImode hard registers in PLUS address chains.
18341 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18344 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
18345 (alpha*-*-freebsd*): Likewise.
18346 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
18347 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
18348 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
18349 crtprec80.o, crtfastmath.o to extra_parts for all targets.
18350 (ia64*-*-elf*): Remove extra_parts.
18351 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
18352 (sparc64-*-linux*): Likewise.
18353 (sparc64-*-freebsd*): Likewise.
18356 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
18357 (ia64*-*-linux*): Likewise.
18358 (mips64*-*-linux*): Likewise.
18359 (mips*-*-linux*): Likewise.
18361 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
18363 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
18365 2011-07-18 Richard Guenther <rguenther@suse.de>
18367 * gimplify.c (gimplify_expr): Use input_location, not saved_location
18368 when building new trees.
18370 2011-07-18 Richard Guenther <rguenther@suse.de>
18372 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
18373 expansion result to bitfield precision if required.
18375 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18377 * config.gcc (i[3456x]86-*-netware*): Remove.
18379 * gthr-nks.h: Remove.
18380 * configure.ac (enable_threads): Remove nks.
18381 * configure: Regenerate.
18383 * config/i386/i386.c (ix86_encode_section_info): Remove netware
18385 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
18386 <netware.h> reference.
18388 * config/i386/netware-libgcc.c,
18389 gcc/config/i386/netware-libgcc.def,
18390 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
18391 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
18392 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
18393 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
18395 * doc/extend.texi (Function Attributes,
18396 callee_pop_aggregate_return): Remove i?86-netware reference.
18397 * doc/install.texi (Configuration, --enable-threads): Remove nks.
18399 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18403 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18405 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
18408 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
18410 PR middle-end/49732
18411 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
18413 2011-07-16 Matthias Klose <doko@ubuntu.com>
18415 * doc/install.texi: Document --enable-static-libjava.
18417 2011-07-15 Richard Henderson <rth@redhat.com>
18419 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
18420 Replace all three arguments by returning a VEC of edges.
18421 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
18422 pointers and counts.
18423 (fix_edges_for_rarely_executed_code): Merge ...
18424 (rest_of_handle_partition_blocks): ... into...
18425 (partition_hot_cold_basic_blocks): ... here. Return todo items if
18426 any work was performed.
18427 (pass_partition_blocks): Clear todo_flags_finish.
18429 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
18430 Jakub Jelinek <jakub@redhat.com>
18431 Jonathan Wakely <jwakely.gcc@gmail.com>
18434 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
18435 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
18437 2011-07-15 Jason Merrill <jason@redhat.com>
18440 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
18441 rather than --tool_opts.
18443 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
18445 * doc/plugins.texi (Building GCC plugins): gengtype needs its
18446 corresponding gtype.state.
18448 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18451 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
18453 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
18456 * doc/md.texi (Standard Names): Document window_save.
18457 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
18458 expand_debug_expr and expand_debug_source_expr. If the target has
18459 a window_save instruction, adjust the ENTRY_VALUE_EXP.
18460 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
18461 SSA_NAME_VAR is a parameter.
18462 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
18463 * var-tracking.c (parm_reg_t): New type and associated vector type.
18464 (windowed_parm_regs): New variable.
18465 (adjust_insn): If the target has a window_save instruction and this
18466 is the instruction, make its effect on parameter registers explicit.
18467 (next_non_note_insn_var_location): New function.
18468 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
18469 (vt_add_function_parameter): If the target has a window_save insn,
18470 adjust the incoming RTL and record that in windowed_parm_regs.
18471 (vt_finalize): Free windowed_parm_regs.
18473 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
18475 * doc/invoke.texi (C6X Options): New section.
18476 * doc/md.texi (TI C6X family): New section.
18477 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
18479 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
18480 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
18481 Provide C6X definitions.
18482 * config/c6x/c6x.md: New file.
18483 * config/c6x/constraints.md: New file.
18484 * config/c6x/predicates.md: New file.
18485 * config/c6x/c6x-sched.md.in: New file.
18486 * config/c6x/c6x-sched.md: New file.
18487 * config/c6x/gensched.sh: New file.
18488 * config/c6x/c6x-mult.md.in: New file.
18489 * config/c6x/genmult.sh: New file.
18490 * config/c6x/c6x-mult.md: New file.
18491 * config/c6x/sync.md: New file.
18492 * config/c6x/c6x-protos.h: New file.
18493 * config/c6x/sfp-machine.h: New file.
18494 * config/c6x/c6x.c: New file.
18495 * config/c6x/c6x.h: New file.
18496 * config/c6x/crti.s: New file.
18497 * config/c6x/crtn.s: New file.
18498 * config/c6x/lib1funcs.asm: New file.
18499 * config/c6x/c6x-modes.def: New file.
18500 * config/c6x/genopt.sh: New file.
18501 * config/c6x/c6x.opt: New file.
18502 * config/c6x/c6x-tables.opt: New file.
18503 * config/c6x/c6x-opts.h: New file.
18504 * config/c6x/c6x-isas.def: New file.
18505 * config/c6x/elf.h: New file.
18506 * config/c6x/elf-common.h: New file.
18507 * config/c6x/uclinux-elf.h: New file.
18508 * config/c6x/t-c6x: New file.
18509 * config/c6x/t-c6x-elf: New file.
18510 * config/c6x/t-c6x-uclinux: New file.
18511 * config/c6x/t-c6x-softfp: New file.
18512 * config/c6x/gtd.c: New file.
18513 * config/c6x/gtf.c: New file.
18514 * config/c6x/ltd.c: New file.
18515 * config/c6x/ltf.c: New file.
18516 * config/c6x/ged.c: New file.
18517 * config/c6x/gef.c: New file.
18518 * config/c6x/led.c: New file.
18519 * config/c6x/lef.c: New file.
18520 * config/c6x/eqd.c: New file.
18521 * config/c6x/eqf.c: New file.
18522 * config/c6x/libgcc-c6xeabi.ver: New file.
18525 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
18526 PR rtl-optimization/11320
18527 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
18528 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
18529 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
18530 current_sched_info->compute_jump_reg_dependencies. Record which
18531 registers are used and which registers are set by the jump.
18532 Clear deps->reg_conditional_sets after a barrier.
18533 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
18534 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
18535 (init_deps): Initialize reg_conditional_sets.
18536 (free_deps): Clear reg_conditional_sets.
18537 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
18538 Mark registers live on entry of the fallthrough block and conditionally
18539 set as set by the jump. Mark registers live on entry of non-fallthrough
18540 blocks as used by the jump.
18541 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
18542 Mark new parameters as unused.
18544 2011-07-14 Andrew Pinski <pinskia@gmail.com>
18547 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
18548 Use fold_build2_loc instead of build2.
18549 Use the correct type for the new tree.
18551 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
18553 PR rtl-optimization/11320
18554 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
18555 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
18557 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
18560 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
18562 (*rotw<mode>): Use const_int_operand for operand2.
18563 Use match_scatch for operand3.
18564 (*rotb<mode>): Ditto
18565 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
18567 2011-07-14 Richard Guenther <rguenther@suse.de>
18569 PR tree-optimization/49651
18570 * tree-ssa-structalias.c (get_constraint_for_1): Properly
18571 handle dereferences with subvariables.
18573 2011-07-14 Richard Guenther <rguenther@suse.de>
18575 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
18576 (fold_stmt_1): Do it here directly on gimple and as a first thing.
18578 2011-07-14 Richard Guenther <rguenther@suse.de>
18580 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
18581 not bool_var when folding bool_var != 1 or bool_var == 0.
18583 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
18585 * haifa-sched.c (schedule_insns): Remove outdated comment.
18586 (schedule_block): When computing a known value for TODO_SPEC,
18587 just set it rather than using logical operations.
18588 (try_ready): Likewise. Use a local variable rather than a
18589 pointer to TODO_SPEC. Reorder an if statement to move the
18590 easy case to the then block.
18591 * sched-deps.c (dep_spec_p): New static function.
18592 (update_dep): Use it to decide whether to call
18593 change_spec_dep_to_hard.
18594 (get_back_and_forw_lists): Use it.
18595 (sd_resolve_dep): Likewise.
18596 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
18597 (haifa_note_mem_dep): Likewise.
18598 (check_dep): Likewise.
18599 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
18600 (sched_free_deps): Free in two passes.
18602 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
18604 PR middle-end/49736
18605 * expr.c (all_zeros_p): Undo bogus part of last change.
18607 2011-07-14 Matthias Klose <doko@ubuntu.com>
18609 * doc/extend.texi (optimize attribute): Fix typo.
18611 2011-07-14 Richard Guenther <rguenther@suse.de>
18613 * gimplify.c (gimplify_expr): Only do required conversions.
18615 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
18618 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
18619 i.e. use default_elf_select_section.
18620 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
18621 (READONLY_DATA_SECTION_ASM_OP): Remove.
18622 (TARGET_ASM_NAMED_SECTION): Move from here...
18623 * config/avr/avr.c: ...to here.
18624 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
18625 (avr_asm_named_section): Make static.
18627 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18630 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
18631 and crtfastmath.o for Linux/x86.
18633 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
18635 * haifa-sched.c: Include "hashtab.h"
18636 (sched_no_dce): New global variable.
18637 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
18638 SHADOW_P): New macros.
18639 (last_clock_var, cycle_issued_insns): Move declarations.
18640 (must_backtrack): New static variable.
18641 (struct delay_pair): New structure.
18642 (delay_htab, delay_htab_i2): New static variables.
18643 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
18644 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
18646 (dep_cost_1): If delay pairs exist, try to look up the insns and
18647 use the correct pair delay if we find them.
18648 (rank-for_schedule): Tweak priority for insns that must be scheduled
18649 soon to avoid backtracking.
18650 (queue_insn): Detect conditions which force backtracking.
18651 (ready_add): Likewise.
18652 (struct sched_block_state): Add member shadows_only_p.
18653 (struct haifa_save_data): New structure.
18654 (backtrack_queue): New static variable.
18655 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
18656 unschedule_insns_until, restore_last_backtrack_point,
18657 free_topmost_backtrack_point, free_backtrack_queue,
18658 estimate_insn_tick, estimate_shadow_tick): New functions.
18659 (prune_ready_list): New arg shadows_only_p. All callers changed.
18660 If true, remove everything that isn't SHADOW_P. Look up delay
18661 pairs and estimate ticks to avoid scheduling the first insn too early.
18662 (verify_shadows): New function.
18663 (schedule_block): Add machinery to enable backtracking.
18664 (sched_init): Take sched_no_dce into account when setting
18666 (free_delay_pairs): New function.
18667 (init_h_i_d): Initialize INSN_EXACT_TICK.
18668 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
18669 * sched-deps.c (sd_unresolve_dep): New function.
18670 * sched-int. (struct haifa_sched_info): New fields save_state
18672 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
18673 feeds_backtrack_insn and shadow_p.
18674 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
18675 (sched_no_dce): Declare variable.
18676 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
18677 sd_unresolve_dep): Declare functions.
18678 * modulo-sched.c (sms_sched_info): Clear the two new fields.
18679 * sched-rgn.c (rgn_const_sched_info): Likewise.
18680 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
18681 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
18682 (ebb_sched_info): Add them for the two new fields.
18683 (add_deps_for_risky_insns): Call add_delay_dependencies.
18685 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
18687 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
18689 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
18690 (rs6000_call_indirect_aix): Ditto.
18691 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
18692 (call_indirect_aix<ptrsize>_internal): Ditto.
18693 (call_indirect_aix<ptrsize>_nor11): Ditto.
18694 (call_indirect_aix<ptrsize>_internal2): Ditto.
18695 (call_value_indirect_aix<ptrsize>): Ditto.
18696 (call_value_indirect_aix<ptrsize>_internal): Ditto.
18697 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
18698 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
18699 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
18701 2011-07-13 Jason Merrill <jason@redhat.com>
18703 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
18705 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18707 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
18708 * config/spu/spu.md ("clrsb<mode>2"): New expander.
18710 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
18712 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
18713 * configure: Regenerate.
18715 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18717 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
18718 (asm_file_start): Remove.
18719 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
18720 free_bb_for_insn around code that modifies insns before
18721 restarting df analysis.
18723 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18726 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
18727 (LINK_SPEC): ... here.
18729 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
18731 * haifa-sched.c (struct sched_block_state): New.
18732 (schedule_block): Move some local variables into such a structure.
18734 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18736 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
18737 * config/i386/t-crtpc: Remove.
18738 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
18739 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
18741 (x86_64-*-darwin*): Likewise.
18742 (i[34567]86-*-linux*): Likewise.
18743 (x86_64-*-linux*): Likewise.
18745 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
18746 Handle -mpc32, -mpc64, -mpc80.
18748 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18750 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
18751 * config/alpha/t-crtfm: Remove.
18752 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
18753 * config/i386/t-crtfm: Remove.
18754 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
18755 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
18756 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
18757 * config/sparc/t-crtfm: Remove.
18759 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
18760 (alpha*-*-freebsd*): Likewise.
18761 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
18762 (x86_64-*-darwin*): Likewise.
18763 (i[34567]86-*-linux*): Likewise.
18764 (x86_64-*-linux*): Likewise.
18765 (x86_64-*-mingw*): Likewise.
18766 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
18767 (ia64*-*-freebsd*): Likewise.
18768 (ia64*-*-linux*): Likewise.
18769 (mips64*-*-linux*): Likewise.
18770 (mips*-*-linux*): Likewise.
18771 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
18772 (sparc64-*-linux*): Likewise.
18773 (sparc64-*-freebsd*): Likewise.
18775 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18777 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
18778 * config/darwin-crt3.c: Move to ../libgcc/config.
18779 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
18780 ($(T)crt3$(objext)): Remove.
18781 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
18782 ($(T)crt2$(objext)): Remove.
18783 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
18784 (powerpc64-*-darwin*): Likewise.
18786 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
18788 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
18790 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
18791 (addsi_1_zext): This.
18793 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
18795 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
18796 * doc/tm.texi: Regenerate.
18797 * target.def (mergeable_rodata_prefix): New defhookpod.
18798 * varasm.c (mergeable_string_section, mergeable_constant_section):
18799 Use it. Allocate name with alloca.
18801 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
18803 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
18805 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
18807 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
18810 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
18812 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
18813 (count_type_elements): Delete.
18814 (complete_ctor_at_level_p): Declare.
18815 * expr.c (flexible_array_member_p): New function, split out from...
18816 (count_type_elements): ...here. Make static. Replace allow_flexarr
18817 parameter with for_ctor_p. When for_ctor_p is true, return the
18818 number of elements that should appear in the top-level constructor,
18819 otherwise return an estimate of the number of scalars.
18820 (categorize_ctor_elements): Replace p_must_clear with p_complete.
18821 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
18822 (complete_ctor_at_level_p): New function, borrowing union logic
18823 from old categorize_ctor_elements_1.
18824 (mostly_zeros_p): Return true if the constructor is not complete.
18825 (all_zeros_p): Update call to categorize_ctor_elements.
18826 * gimplify.c (gimplify_init_constructor): Update call to
18827 categorize_ctor_elements. Don't call count_type_elements.
18828 Unconditionally prevent clearing for variable-sized types,
18829 otherwise rely on categorize_ctor_elements to detect
18830 incomplete initializers.
18832 2011-07-13 Richard Guenther <rguenther@suse.de>
18834 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
18835 the final type is integral.
18837 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
18839 * sched-int.h (struct _dep): Add member cost.
18840 (DEP_COST, UNKNOWN_DEP_COST): New macros.
18841 * sched-deps.c (init_dep_1): Initialize DEP_COST.
18842 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
18843 (sched_change_pattern): Reset it for dependent insns.
18845 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18847 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
18848 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
18849 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
18850 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
18851 (CRT0_S, MCRT0_S): Remove.
18852 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
18855 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
18857 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
18859 * cse.c (insert_with_costs): Put semi-colon after empty loop body
18861 * emit-rtl.c (push_to_sequence): Likewise.
18862 * haifa-sched.c (max_issue): Likewise.
18863 * matrix-reorg.c (add_allocation_site): Likewise.
18864 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
18865 * reload.c (alternative_allows_const_pool_ref): Likewise.
18866 * sched-rgn.c (rgn_add_block): Likewise.
18867 (rgn_fix_recovery_cfg): Likewise.
18868 * tree.c (attribute_list_contained): Likewise.
18870 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
18872 * config/i386/i386.c: Tidy processor feature bitmasks.
18873 (m_P4_NOCONA): New.
18875 2011-07-12 Andrew Pinski <pinskia@gmail.com>
18878 * cprop.c (find_implicit_sets): Correct the condition.
18880 2011-07-12 Richard Henderson <rth@redhat.com>
18883 * dwarf2out.h (dwarf_frame_regnum): Remove.
18884 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
18885 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
18886 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
18887 (execute_dwarf2_frame): Initialize them.
18888 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
18889 users of the macros with the variables.
18890 (expand_builtin_dwarf_sp_column): Revert last change.
18891 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
18892 result of DWARF_FRAME_REGNUM into a local variable.
18894 2011-07-12 Richard Henderson <rth@redhat.com>
18897 * config/i386/i386.c (x86_output_mi_thunk): Use
18898 machopic_indirect_call_target instead of machopic_indirection_name
18901 2011-07-12 Laurent GUERBY <laurent@guerby.net>
18902 Eric Botcazou <ebotcazou@adacore.com>
18904 * prefix.h: Wrap up in extern "C" block.
18906 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
18908 AMD bdver2 Enablement
18909 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
18910 (case ${target}): Add bdver2.
18911 * config/i386/driver-i386.c (host_detect_local_cpu): Let
18912 -march=native recognize bdver2 processors.
18913 * config/i386/i386-c.c (ix86_target_macros_internal): Add
18914 bdver2 def_and_undef
18915 * config/i386/i386.c (struct processor_costs bdver2_cost): New
18917 (m_BDVER2): New definition.
18918 (m_AMD_MULTIPLE): Includes m_BDVER2.
18919 (initial_ix86_tune_features): Add bdver2 tuning.
18920 (processor_target_table): Add bdver2 entry.
18921 (static const char *const cpu_names): Add bdver2 entry.
18922 (ix86_option_override_internal): Add bdver2 instruction sets.
18923 (ix86_issue_rate): Add bdver2.
18924 (ix86_adjust_cost): Add bdver2.
18925 (has_dispatch): Add bdver2.
18926 * config/i386/i386.h (TARGET_BDVER2): New definition.
18927 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
18928 (enum processor_type): Add PROCESSOR_BDVER2.
18929 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
18930 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
18933 2011-07-12 Richard Henderson <rth@redhat.com>
18936 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
18937 destination address in memory on some paths.
18939 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
18941 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
18942 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
18943 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
18944 * function.c (locate_and_pad_parm): Take it into account.
18945 * target.def (function_arg_round_boundary): New hook.
18946 * targhooks.c (default_function_arg_round_boundary): New function.
18947 * targhooks.h (default_function_arg_round_boundary): Declare.
18948 * doc/tm.texi: Regenerate.
18950 2011-07-12 Richard Guenther <rguenther@suse.de>
18952 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
18953 Do not perform no-op changes.
18955 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
18957 * config/arm/predicates.md (neon_struct_operand): Make a normal
18959 (neon_struct_or_register_operand): New predicate.
18960 * config/arm/neon.md (movmisalign<mode>): Replace predicates
18961 with neon_struct_or_register_operand.
18962 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
18963 neon_struct_operand instead of memory_operand.
18965 2011-07-12 Martin Jambor <mjambor@suse.cz>
18967 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
18968 * cgraph.c (cgraph_get_node_or_alias): Removed.
18969 (change_decl_assembler_name): Changed all calls to
18970 cgraph_get_node_or_alias to a call to cgraph_get_node.
18971 (cgraph_make_decl_local): Likewise.
18972 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
18973 * varasm.c (default_binds_local_p_1): Likewise.
18974 (decl_binds_to_current_def_p): Likewise.
18976 2011-07-12 Jakub Jelinek <jakub@redhat.com>
18978 PR tree-optimization/49712
18979 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
18981 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
18983 * genautomata.c (add_arc): Return void. All callers changed.
18984 (make_automaton): Remove dead code.
18986 2011-07-11 Richard Henderson <rth@redhat.com>
18988 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
18989 (DW_FRAME_POINTER_REGNUM): New.
18990 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
18991 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
18993 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
18994 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
18995 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
18997 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
18998 * dwarf2out.h (dwarf_frame_regnum): New.
18999 (struct cfa_loc): Document the domain of the reg member.
19001 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
19003 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
19004 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
19006 2011-07-11 Jakub Jelinek <jakub@redhat.com>
19009 * dwarf2out.c (int_shift_loc_descriptor): New function.
19010 (int_loc_descriptor): If shorter, emit i as
19011 (i >> shift), shift, DW_OP_shl for suitable shift value.
19012 Similarly, try to optimize large negative values using
19013 DW_OP_neg of a positive value if shorter.
19014 (size_of_int_shift_loc_descriptor): New function.
19015 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
19017 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
19018 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
19019 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
19021 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
19022 addend as added DW_OP_plus if it is shorter.
19024 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19026 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
19027 (DTORS_SECTION_ASM_OP): Define.
19029 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19031 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
19032 * config/t-dfprules: Move to ../libgcc/config.
19033 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
19034 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
19035 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
19036 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
19038 (i[34567]86-*-cygwin*): Likewise.
19039 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
19040 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
19041 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
19042 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
19043 D64PBIT_FUNCS, D128PBIT_FUNCS.
19045 2011-07-11 Richard Guenther <rguenther@suse.de>
19047 * tree-vrp.c (simplify_conversion_using_ranges): Manually
19048 translate the source value-range through the conversion chain.
19050 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
19052 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
19054 2011-07-11 Arthur Loiret <aloiret@debian.org>
19056 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
19057 a bi-arch compiler defaulting to 31-bit. In this case:
19058 (tmake_file): Add s390/t-linux64.
19059 * doc/install.texi: Add s390-linux to the list of targets supporting
19060 --enable-targets=all.
19062 2011-07-11 Arthur Loiret <aloiret@debian.org>
19063 Matthias Klose <doko@debian.org>
19065 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
19066 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
19067 (tm_file): Add mips/linux64.h.
19068 (tmake_file): Add mips/t-linux64.
19069 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
19070 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
19071 instead of hardcoded mabi=n32.
19072 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
19073 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
19076 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19078 * passes.c (init_optimization_passes): Add invariant motion pass
19079 after induction variable optimization.
19081 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
19084 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
19085 offsets 1..5 set cc0 in a usable way.
19087 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
19089 * tree.h (call_expr_arg): Remove.
19090 (call_expr_argp): Likewise.
19092 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
19094 * config/sparc/sparc.md (save_register_window_1): Rename to...
19095 (window_save): ...this.
19096 * config/sparc/sparc.c (emit_save_register_window): Rename to...
19097 (emit_window_save): ...this.
19098 (sparc_expand_prologue): Adjust to above renaming.
19100 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
19102 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
19105 2011-07-10 Richard Henderson <rth@redhat.com>
19107 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
19108 run final, instead of emitting text directly.
19110 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
19112 * config/i386/i386.c (ix86_option_override_internal): Turn on
19113 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
19114 small PIC models for TARGET_X32.
19116 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
19119 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
19123 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
19124 stray notes and debug insns by using prev_nonnote_nondebug_insn
19125 instead of PREV_INSN.
19127 2011-07-09 Richard Henderson <rth@redhat.com>
19129 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
19130 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
19131 * dwarf2out.c: ... here.
19132 (output_all_cfis): Remove.
19133 (dwarf2out_switch_text_section): Use output_cfis directly.
19134 (size_of_locs): Export.
19135 (output_loc_sequence, output_loc_sequence_raw): Export.
19136 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
19137 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
19138 output_cfa_loc_raw): Move to ...
19139 * dwarfcfi.c: ... here.
19140 * dwarf2out.h: Update decls.
19142 2011-07-09 Richard Henderson <rth@redhat.com>
19144 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
19145 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
19146 * dwarf2cfi.c: ... here.
19147 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
19148 (DWARF_ROUND, DWARF_CIE_ID): Remove.
19149 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
19150 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
19151 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
19153 2011-07-09 Richard Henderson <rth@redhat.com>
19155 * dwarf2cfi.c (cie_return_save): New.
19156 (queue_reg_save): Use compare_reg_or_pc.
19157 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
19158 (dwarf2out_frame_debug_expr): Likewise.
19159 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
19160 (initial_return_save): Likewise.
19161 (execute_dwarf2_frame): Save and restore initial return save from
19162 the cie to the fde.
19163 * config/mips/mips.c (mips_frame_set): Remove special case for
19164 DWARF_FRAME_RETURN_COLUMN.
19166 2011-07-09 Richard Henderson <rth@redhat.com>
19168 * dwarf2cfi.c (lookup_cfa): Remove.
19169 (execute_dwarf2_frame): Assert queues are empty on entry.
19170 Setup initial cfa directly, not via lookup_cfa.
19171 Don't clear args_size state here.
19173 2011-07-09 Richard Henderson <rth@redhat.com>
19175 * dwarf2cfi.c (add_cfi_vec): New.
19176 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
19177 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
19178 (execute_dwarf2_frame): Set add_cfi_vec.
19180 2011-07-09 Richard Henderson <rth@redhat.com>
19182 * defaults.h (ASM_COMMENT_START): Move here...
19183 * dwarf2asm.c: ... from here.
19184 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
19185 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
19186 * varasm.c: Likewise.
19188 2011-07-09 Richard Henderson <rth@redhat.com>
19191 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
19192 (create_cfi_notes): ... do it here instead.
19194 2011-07-09 Jakub Jelinek <jakub@redhat.com>
19197 * dwarf2out.c (size_of_int_loc_descriptor): New function.
19198 (address_of_int_loc_descriptor): Use it.
19199 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
19201 2011-07-09 Richard Henderson <rth@redhat.com>
19203 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
19204 (prologue, epilogue): New.
19205 (return, *rts): New.
19206 (blockage, setd, seti): New.
19207 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
19208 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
19209 (pdp11_saved_regno): New.
19210 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
19211 generate rtl instead of text.
19212 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
19213 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
19214 * config/pdp11/pdp11-protos.h: Update.
19216 2011-07-09 Richard Henderson <rth@redhat.com>
19218 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
19219 try to insert an rtl prologue here.
19220 (rs6000_output_function_epilogue): Similarly.
19221 * config/rs6000/rs6000.md (prologue): Emit a barrier to
19222 satisfy !TARGET_SCHED_PROLOG.
19223 (epilogue, sibcall_epilogue): Likewise.
19225 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
19227 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
19228 (FP_REG_P): Delete.
19229 (IN_OR_GLOBAL_P): Likewise.
19231 2011-07-08 Jason Merrill <jason@redhat.com>
19234 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
19235 compound assignment.
19237 * cgraph.c (cgraph_add_to_same_comdat_group): New.
19238 * cgraph.h: Declare it.
19239 * ipa.c (function_and_variable_visibility): Make sure thunks
19240 have the right visibility.
19242 2011-07-08 Richard Henderson <rth@redhat.com>
19245 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
19246 any tablejump vector.
19249 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
19250 end of the prologue.
19252 2011-07-08 Jakub Jelinek <jakub@redhat.com>
19255 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
19256 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
19257 * config/rs6000/vector.md (vector_select_<mode>,
19258 vector_select_<mode>_uns): Change second operand of NE to
19259 CONST0_RTX (<MODE>mode) instead of const0_rtx.
19260 * config/rs6000/altivec.md (*altivec_vsel<mode>,
19261 *altivec_vsel<mode>_uns): Expect second operand of NE to be
19262 zero_constant of the corresponding vector mode.
19263 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
19266 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
19268 * graphite-dependences.c (build_alias_set_powerset): Remove
19269 continue from loop, add one more assert.
19271 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
19274 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
19275 In particular, allow 8-bit values in r28 and r29.
19276 (avr_hard_regno_scratch_ok): Disallow any register that might be
19277 part of the frame pointer.
19278 (avr_hard_regno_rename_ok): Same.
19279 (avr_legitimate_address_p): Don't allow SUBREGs.
19281 2011-07-08 Julian Brown <julian@codesourcery.com>
19283 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
19285 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
19286 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
19287 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
19288 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
19289 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
19290 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
19291 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
19292 registers in big-endian mode.
19294 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
19296 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
19297 in terms of another.
19298 (write_attr_value): Write a cast if necessary.
19300 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
19301 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
19302 (REG_WORDS_BIG_ENDIAN): Document.
19303 * doc/tm.texi: Regenerate.
19304 * reload.c (operands_match_p): Take it into account.
19305 (reload_adjust_reg_for_mode): Likewise.
19306 * rtlanal.c (subreg_get_info): Likewise.
19308 2011-07-08 Richard Guenther <rguenther@suse.de>
19310 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
19313 2011-07-08 Kai Tietz <ktietz@redhat.com>
19315 * fold-const.c (fold_truth_andor): Factored out truth_andor
19316 label from fold_binary as function.
19317 (fold_binary_loc): Replace truth_andor lable
19318 by function fold_truth_andor.
19320 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
19322 PR middle-end/49519
19323 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
19324 check if address is stored in register. If so - give up.
19325 (check_sibcall_argument_overlap_1): Do not perform check of
19326 overlapping when it is call to address.
19328 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
19330 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
19333 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
19335 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
19336 GET_MODE_BITSIZE where appropriate.
19337 (widen_leading, expand_parity, expand_ctz, expand_ffs,
19338 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
19339 expand_float, expand_fix): Likewise.
19340 * expr.c (convert_move, convert_modes, expand_expr_real_2,
19341 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
19342 * stor-layout.c (get_mode_bounds): Likewise.
19343 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
19345 * convert.c (convert_to_integer): Likewise.
19346 * expmed.c (expand_shift_1): Likewise.
19348 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
19351 * optabs.c (expand_binop): Tighten conditions for doubleword
19353 (widen_bswap): Assert that mode bitsize and precision are the same.
19354 * stor-layout.c (get_best_mode): Skip modes that have lower
19355 precision than bitsize.
19356 * recog.c (simplify_while_replacing): Assert that bitsize and
19357 precision are the same.
19359 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19361 * Makefile.in (LIBGCOV): Remove.
19362 (libgcc.mvars): Remove LIBGCOV.
19363 * libgov.c: Move to ../libgcc.
19365 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19367 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
19369 2011-07-08 Martin Jambor <mjambor@suse.cz>
19371 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
19372 is too big for total scalarization.
19374 2011-07-07 Richard Henderson <rth@redhat.com>
19376 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
19377 (DBX_DEBUGGING_INFO): Undef.
19379 2011-07-07 Richard Henderson <rth@redhat.com>
19381 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
19382 Handle some opcodes specially for debugging.
19383 * print-rtl.c: Include dwarf2out.h
19384 (print_rtx): Handle NOTE_INSN_CFI.
19385 * Makefile.in (print-rtl.o): Update.
19387 2011-07-07 Richard Henderson <rth@redhat.com>
19389 * tree-pass.h (pass_dwarf2_frame): Declare.
19390 * passes.c (init_optimization_passes): Add it.
19391 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
19392 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
19393 make static, do not call add_cfis_to_fde.
19394 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
19395 dwarf2out_frame_init): Merge into...
19396 (execute_dwarf2_frame): ... here. New function.
19397 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
19398 saved_do_cfi_asm to a tri-state variable.
19399 (gate_dwarf2_frame, pass_dwarf2_frame): New.
19400 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
19401 if it has yet to be done. Don't call dwarf2cfi_function_init.
19402 * dwarf2out.h, debug.h: Update decls.
19403 * final.c (final_start_function): Don't call
19404 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
19405 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
19406 * toplev.c (lang_dependent_init): Likewise.
19408 2011-07-07 Richard Henderson <rth@redhat.com>
19410 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
19411 FDE_TABLE_INCREMENT): Replace with...
19412 (fde_vec): ... this, a new vector.
19413 (current_fde): Remove. Replace all users with cfun->fde.
19414 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
19415 (size_of_aranges, dwarf2out_finish): Likewise.
19416 (dwarf2out_alloc_current_fde): Break out from ...
19417 (dwarf2out_begin_prologue): ... here.
19418 (dwarf2out_frame_init): Remove.
19419 * dwarf2cfi.c: Update all users of current_fde.
19420 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
19421 * dwarf2out.h: Update decls.
19422 (dw_fde_node): Add fde_index member.
19423 * function.h (struct function): Add fde member.
19425 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
19426 Richard Henderson <rth@redhat.com>
19428 * dwarf2cfi.c (add_cfi): Remove.
19429 (dwarf2out_cfi_label): Remove force argument. Only generate the
19431 (add_fde_cfi): Simplify the different code paths.
19432 (add_cie_cfi): New.
19433 (old_cfa, old_cfa_remember): New.
19434 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
19435 (last_reg_save_label): Remove.
19436 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
19437 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
19438 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
19439 dwarf2out_frame_debug_cfa_expression,
19440 dwarf2out_frame_debug_cfa_restore,
19441 dwarf2out_frame_debug_cfa_window_save,
19442 dwarf2out_frame_debug_expr): Remove label parameter.
19443 (cfi_label_required_p, add_cfis_to_fde): New.
19444 (dwarf2out_frame_debug_after_prologue): New.
19445 (dwarf2cfi_frame_init): Initialize old_cfa.
19446 (dwarf2out_frame_debug_restore_state): Likewise.
19447 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
19448 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
19449 * final.c (final_start_function): Call
19450 dwarf2out_frame_debug_after_prologue.
19452 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
19453 Richard Henderson <rth@redhat.com>
19455 * dwarf2cfi.c (cfi_insn): New.
19456 (dwarf2out_cfi_label): Don't emit cfi label here.
19457 (add_fde_cfi): Create a NOTE_INSN_CFI.
19458 (dwarf2out_frame_debug): Setup cfi_insn.
19459 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
19460 (dwarf2out_cfi_begin_epilogue): Make static.
19461 (dwarf2out_frame_debug_restore_state): Make static.
19462 * dwarf2out.c (output_cfi_directive): Make static.
19463 (dwarf2out_emit_cfi): New.
19464 * dwarf2out.h: Update.
19465 * final.c (final): Remove CFI notes.
19466 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
19467 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
19468 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
19469 * insn-notes.def (NOTE_INSN_CFI): New.
19470 (NOTE_INSN_CFI_LABEL): New.
19471 * rtl.h (union rtunion_def): Add rt_cfi member.
19472 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
19474 2011-07-07 Richard Henderson <rth@redhat.com>
19476 * dwarf2cfi.c: New file.
19477 * Makefile.in (OBJS): Add it.
19478 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
19479 * gengtype.c (open_base_files): Include dwarf2out.h.
19480 * coretypes.h (enum var_init_status): Move from ...
19482 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
19483 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
19484 expand_builtin_dwarf_sp_column, init_return_column_size,
19485 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
19486 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
19487 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
19488 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
19489 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
19490 compute_barrier_args_size, dwarf2out_args_size,
19491 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
19492 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
19493 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
19494 queue_reg_save, dwarf2out_flush_queued_reg_saves,
19495 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
19496 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
19497 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
19498 dwarf2out_frame_debug_cfa_expression,
19499 dwarf2out_frame_debug_cfa_restore,
19500 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
19501 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
19502 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
19503 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
19504 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
19505 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
19506 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
19507 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
19508 dw_loc_descr_node): Move to dwarf2out.h.
19509 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
19510 mem_loc_descriptor): Export.
19511 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
19512 (dwarf2out_frame_init): Extract CIE generation code to
19513 dwarf2cfi_frame_init.
19515 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
19518 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
19519 MASK_V8PLUS, remove commented out flag and reorder.
19521 2011-07-07 Jakub Jelinek <jakub@redhat.com>
19524 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
19525 one non-complex and one complex argument, call c_save_expr on both
19528 2011-07-07 Martin Jambor <mjambor@suse.cz>
19530 PR middle-end/49495
19531 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
19532 (verify_cgraph_node): Some functinality moved to
19533 verify_edge_corresponds_to_fndecl, call it.
19535 2011-07-07 Joseph Myers <joseph@codesourcery.com>
19537 * config.gcc (*local*): Remove.
19538 * doc/install-old.texi: Don't mention local configurations.
19540 2011-07-07 Jakub Jelinek <jakub@redhat.com>
19543 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
19544 referencing debug insns that have been reset.
19545 (dead_debug_insert_before): Don't assert reg is non-NULL,
19546 instead return immediately if it is NULL.
19548 2011-07-07 Joseph Myers <joseph@codesourcery.com>
19550 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
19552 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
19554 * hw-doloop.c: New file.
19555 * hw-doloop.h: New file.
19556 * Makefile.in (OBJS): Add hw-doloop.o.
19557 (hw-doloop.o): New rule.
19558 ($(obj_out_file)): Add hw-doloop.h dependency.
19559 * config/bfin/bfin.c: Include "hw-doloop.h".
19560 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
19561 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
19562 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
19563 type changed to hwloop_info. Return bool, true if the loop was
19564 successfully optimized. Remove code that was moved to
19565 hw-doloop.c, and adjust other parts.
19566 (hwloop_fail): New static function, containing parts that used
19567 to be in bfin_optimize_loop.
19568 (bfin_discover_loop, bfin_discover_loops, free_loops,
19569 bfin_reorder_loops): Remove.
19570 (hwloop_pattern_reg): New static function.
19571 (bfin_doloop_hooks): New variable.
19572 (bfin_reorg_loops): Remove most code, call reorg_loops.
19573 * config/bfin/bfin.md (doloop_end splitter): Also enable if
19574 loop counter is a memory_operand.
19576 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
19578 * config.gcc: Support --with-multilib-list for x86 Linux targets.
19580 * configure.ac: Mention x86-64 for --with-multilib-list.
19581 * configure: Regenerated.
19583 * config/i386/gnu-user64.h (SPEC_64): Support x32.
19584 (SPEC_32): Likewise.
19585 (ASM_SPEC): Likewise.
19586 (LINK_SPEC): Likewise.
19587 (TARGET_THREAD_SSP_OFFSET): Likewise.
19588 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
19591 * config/i386/i386.h (TARGET_X32): New.
19592 (TARGET_LP64): New.
19593 (LONG_TYPE_SIZE): Likewise.
19594 (POINTER_SIZE): Likewise.
19595 (POINTERS_EXTEND_UNSIGNED): Likewise.
19596 (OPT_ARCH64): Support x32.
19597 (OPT_ARCH32): Likewise.
19599 * config/i386/i386.opt (mx32): New.
19601 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
19602 (GLIBC_DYNAMIC_LINKERX32): Likewise.
19603 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
19604 (GLIBC_DYNAMIC_LINKERX32): Likewise.
19606 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
19607 (BIONIC_DYNAMIC_LINKERX32): Likewise.
19608 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
19610 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
19612 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
19614 * doc/invoke.texi: Document -mx32.
19616 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
19618 * doc/invoke.texi (mwords-little-endian): Deprecate.
19619 * config/arm/arm.opt (mwords-little-endian): Likewise.
19620 * config/arm/arm.c (arm_option_override): Warn about the deprecation
19621 of -mwords-little-endian.
19623 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
19625 * reload1.c (choose_reload_regs): Use mode sizes to check whether
19626 an old reload register completely defines the required value.
19628 2011-07-07 Richard Guenther <rguenther@suse.de>
19630 * fold-const.c (fold_unary_loc): Do not strip sign-changes
19633 2011-07-07 Richard Guenther <rguenther@suse.de>
19635 * tree-vrp.c (simplify_conversion_using_ranges): New function.
19636 (simplify_stmt_using_ranges): Call it.
19638 2011-07-07 Kai Tietz <ktietz@redhat.com>
19640 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
19641 (lookup_logical_inverted_value): Likewise.
19642 (simplify_bitwise_binary_1): Likewise.
19643 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
19645 2011-07-07 Joseph Myers <joseph@codesourcery.com>
19647 * gcc.c (%[Spec]): Don't document.
19648 (struct spec_list): Update comment.
19649 (do_spec_1): Don't handle %[Spec].
19650 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
19652 2011-07-07 Joseph Myers <joseph@codesourcery.com>
19654 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
19655 default based on TARGET_ASM_NAMED_SECTION.
19656 * common/common-target.def (have_named_sections): Default to true.
19657 * common/config/default-common.c: Don't include tm.h.
19658 * common/config/picochip/picochip-common.c
19659 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
19660 * common/config/m32c/m32c-common.c: Remove.
19661 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
19662 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
19663 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
19664 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
19665 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
19666 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
19667 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
19669 2011-07-07 Jakub Jelinek <jakub@redhat.com>
19671 PR middle-end/49640
19672 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
19673 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
19675 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19677 PR libmudflap/49550
19678 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
19680 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19683 * configure.ac (gcc_cv_as_hidden): Also accept
19684 x86_64-*-solaris2.1[0-9]*.
19685 (gcc_cv_as_cfi_directive): Likewise.
19686 (gcc_cv_as_comdat_group_group): Likewise.
19687 (set_have_as_tls): Likewise.
19688 * configure: Regenerate.
19689 * config.gcc (i[34567]86-*-solaris2*): Also handle
19690 x86_64-*-solaris2.1[0-9]*.
19691 * config.host (i[34567]86-*-solaris2*): Likewise.
19692 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
19693 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
19694 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
19695 (TARGET_LD_EMULATION): Use it.
19696 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
19697 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
19698 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
19699 (ASM_CPU64_DEFAULT_SPEC): Define.
19700 (ASM_CPU_SPEC): Use %(asm_cpu_default).
19701 (ASM_SPEC): Redefine.
19702 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
19703 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
19704 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
19705 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
19707 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
19709 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19711 * config/sol2.h (ASM_SPEC): Split into ...
19712 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
19713 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
19714 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
19715 (ASM_SPEC): Use ASM_SPEC_BASE.
19716 * config/sparc/sol2.h (ASM_SPEC): Redefine.
19718 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
19720 * config/avr/avr.md (*reload_insi): Change predicate #1 to
19721 const_int_operand. Ditto for peep2 producing this insn.
19722 Add argument to output_reload_insisf call.
19723 (*movsi,*movsf): Add argument to output_movsisf call.
19724 (*reload_insf): New insn and new peep2 to produce it.
19725 * config/avr/avr-protos.h (output_movsisf): Change prototype.
19726 (output_reload_insisf): Change prototype.
19727 * config/avr/avr.c (avr_asm_len): New function.
19728 (output_reload_insisf): Rewrite.
19729 (output_movsisf): Change prototype. output_reload_insisf for
19730 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
19731 (adjust_insn_length): Add argument to output_movsisf and
19732 output_reload_insisf call.
19734 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
19736 * emit-rtl.c (paradoxical_subreg_p): New function.
19737 * rtl.h (paradoxical_subreg_p): Declare.
19738 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
19739 apply_distributive_law, simplify_comparison, simplify_set): Use it.
19740 * cse.c (record_jump_cond, cse_insn): Likewise.
19741 * expr.c (force_operand): Likewise.
19742 * rtlanal.c (num_sign_bit_copies1): Likewise.
19743 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
19744 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
19745 (push_reload): Use precision to check for paradoxical subregs.
19746 * expmed.c (extract_bit_field_1): Likewise.
19748 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
19749 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
19750 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
19751 simplify_set, simplify_logical, expand_compound_operation,
19752 make_extraction, force_to_mode, if_then_else_cond, extended_count,
19753 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
19754 record_value_for_reg): Likewise.
19755 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
19756 * simplify-rtx. c (simplify_unary_operation_1,
19757 simplify_binary_operation_1, simplify_const_relational_operation):
19760 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
19761 instead of GET_MODE_BITSIZE where appropriate.
19762 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
19763 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
19764 init_num_sign_bit_copies_in_rep): Likewise.
19765 * cse.c (fold_rtx, cse_insn): Likewise.
19766 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
19767 * simplify-rtx.c (simplify_unary_operation_1,
19768 simplify_const_unary_operation, simplify_binary_operation_1,
19769 simplify_const_binary_operation, simplify_ternary_operation,
19770 simplify_const_relational_operation, simplify_subreg): Likewise.
19771 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
19772 simplify_if_then_else, simplify_set, expand_compound_operation,
19773 expand_field_assignment, make_extraction, if_then_else_cond,
19774 make_compound_operation, force_to_mode, make_field_assignment,
19775 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
19776 extended_count, try_widen_shift_mode, simplify_shift_const_1,
19777 simplify_comparison, record_promoted_value, simplify_compare_const,
19778 record_dead_and_set_regs_1): Likewise.
19781 * simplify-rtx.c (simplify_const_binary_operation): Use the
19782 shift_truncation_mask hook instead of performing modulo by width.
19783 Compare against mode precision, not bitsize.
19784 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
19785 Use shift_truncation_mask instead of constructing the value manually.
19787 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
19789 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
19791 (rs6000_save_toc_in_prologue_p): Ditto.
19793 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
19794 up the static chain (r11) during indirect function calls.
19795 (-msave-toc-indirect): New undocumented debug switch.
19797 * config/rs6000/rs6000.c (struct machine_function): Add
19798 save_toc_in_prologue field to note whether the prologue needs to
19799 save the TOC value in the reserved stack location.
19800 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
19801 to save the TOC in the prologue, do so.
19802 (rs6000_trampoline_init): Don't allow creating AIX style
19803 trampolines if -mno-r11 is in effect.
19804 (rs6000_call_indirect_aix): New function to create AIX style
19805 indirect calls, adding support for -mno-r11 to suppress loading
19806 the static chain, and saving the TOC in the prologue instead of
19808 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
19809 TOC in the prologue.
19811 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
19813 (TOC_REGNUM): Ditto.
19814 (STATIC_CHAIN_REGNUM): Ditto.
19815 (ARG_POINTER_REGNUM): Ditto.
19816 (SFP_REGNO): Delete, unused.
19817 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
19818 function descriptor offsets.
19819 (TOC_SAVE_OFFSET_64BIT): Ditto.
19820 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
19821 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
19822 (AIX_FUNC_DESC_SC_32BIT): Ditto.
19823 (AIX_FUNC_DESC_SC_64BIT): Ditto.
19824 (ptrload): New mode attribute for the appropriate load of a pointer.
19825 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
19826 (call_indirect_aix64): Ditto.
19827 (call_value_indirect_aix32): Ditto.
19828 (call_value_indirect_aix64): Ditto.
19829 (call_indirect_nonlocal_aix32_internal): Ditto.
19830 (call_indirect_nonlocal_aix32): Ditto.
19831 (call_indirect_nonlocal_aix64_internal): Ditto.
19832 (call_indirect_nonlocal_aix64): Ditto.
19833 (call): Rewrite AIX indirect function calls. Add support for
19834 eliminating the static chain, and for moving the save of the TOC
19835 to the function prologue.
19836 (call_value): Ditto.
19837 (call_indirect_aix<ptrsize>): Ditto.
19838 (call_indirect_aix<ptrsize>_internal): Ditto.
19839 (call_indirect_aix<ptrsize>_internal2): Ditto.
19840 (call_indirect_aix<ptrsize>_nor11): Ditto.
19841 (call_value_indirect_aix<ptrsize>): Ditto.
19842 (call_value_indirect_aix<ptrsize>_internal): Ditto.
19843 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
19844 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
19845 (call_nonlocal_aix32): Relocate in the rs6000.md file.
19846 (call_nonlocal_aix64): Ditto.
19848 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
19849 -mno-r11 documentation.
19851 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
19854 * doc/extend.texi (Compound Literals): Fix typo.
19856 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
19858 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
19860 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
19862 * configure.ac (plugin-version.h): Generate
19863 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
19864 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
19867 * configure: Regenerate.
19869 * doc/plugins.texi (Building GCC plugins): Mention
19870 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
19872 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
19874 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
19875 * combine.c (make_extraction, gen_lowpart_or_truncate,
19876 apply_distributive_law, simplify_comparison,
19877 reg_truncated_to_mode, record_truncated_value): Use it.
19878 * cse.c (notreg_cost): Likewise.
19879 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
19880 * expr.c (convert_move, convert_modes): Likewise.
19881 * optabs.c (expand_binop, expand_unop): Likewise.
19882 * postreload.c (move2add_last_label): Likewise.
19883 * regmove.c (optimize_reg_copy_3): Likewise.
19884 * rtlhooks.c (gen_lowpart_general): Likewise.
19885 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
19887 2011-07-06 Joseph Myers <joseph@codesourcery.com>
19889 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
19891 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
19893 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
19894 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
19895 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
19896 (simplify_const_unary_operation, simplify_binary_operation_1,
19897 simplify_const_binary_operation, simplify_const_relational_operation):
19898 Use them. Use GET_MODE_MASK for masking and sign-extensions.
19899 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
19900 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
19901 simplify_shift_const_1, simplify_comparison): Likewise.
19902 * expr.c (convert_modes): Likewise.
19903 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
19904 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
19905 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
19907 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
19909 2011-07-06 Richard Guenther <rguenther@suse.de>
19911 PR tree-optimization/49645
19912 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
19913 register variables.
19914 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
19915 in type qualification here ...
19916 (copy_reference_ops_from_ref): ... not here.
19917 (vn_reference_lookup_3): ... or here.
19918 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
19919 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
19921 2011-07-06 Ian Lance Taylor <iant@google.com>
19923 * doc/install.texi (Configuration): It's
19924 --enable-gnu-indirect-function, not --enable-indirect-function.
19926 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
19928 * simplify-rtx.c (simplify_const_binary_operation): Use the
19929 shift_truncation_mask hook instead of performing modulo by width.
19930 Compare against mode precision, not bitsize.
19931 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
19932 Use shift_truncation_mask instead of constructing the value manually.
19934 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
19936 PR middle-end/47383
19937 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
19938 address computation and convert to address_mode if needed.
19940 2011-07-06 Richard Guenther <rguenther@suse.de>
19942 * tree.c (build_common_tree_nodes_2): Merge with
19943 build_common_tree_nodes.
19944 * tree.h (build_common_tree_nodes): Adjust prototype.
19945 (build_common_tree_nodes_2): Remove.
19946 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
19947 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
19949 2011-07-05 Jakub Jelinek <jakub@redhat.com>
19951 PR tree-optimization/49618
19952 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
19953 t recurse on the decl.
19954 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
19955 return true if expr isn't known to be defined in current
19956 TU or some other LTO partition.
19958 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
19960 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
19961 override CASE_VALUES_THRESHOLD.
19963 * stmt.c (toplevel): Include params.h.
19964 (case_values_threshold): Use the --param case-values-threshold
19965 value if non-zero, otherwise use machine dependent value.
19966 (expand_case): Use case_values_threshold.
19968 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
19970 * doc/invoke.texi (--param case-values-threshold): Document.
19972 2011-07-05 Richard Henderson <rth@redhat.com>
19974 * dwarf2out.c (dwarf2out_cfi_label): Make static.
19975 (dwarf2out_flush_queued_reg_saves): Make static.
19976 (dwarf2out_reg_save): Remove.
19977 (dwarf2out_return_save): Remove.
19978 (dwarf2out_return_reg): Remove.
19979 (dwarf2out_reg_save_reg): Remove.
19980 (dwarf2out_def_cfa): Merge into ...
19981 (dwarf2out_frame_init): ... here.
19982 * dwarf2out.h, tree.h: Remove declarations as necessary.
19984 2011-07-05 Richard Henderson <rth@redhat.com>
19986 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
19987 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
19988 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
19991 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
19992 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
19993 (process_epilogue): Don't call dwarf2out_def_cfa.
19995 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
19996 indicate the return address save.
19997 (process_cfa_register): Likewise.
19999 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
20000 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
20002 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
20003 for ar.pfs save at alloc insn.
20005 2011-07-05 Richard Henderson <rth@redhat.com>
20007 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
20008 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
20009 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
20010 stack pointer save.
20011 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
20012 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
20013 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
20014 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
20016 2011-07-05 Richard Henderson <rth@redhat.com>
20018 * config/vax/vax.md (define_c_enum unspecv): New. Define the
20019 VUNSPEC_* constants here instead of via define_constants.
20020 (VUNSPEC_PEM): New constant.
20021 (procedure_entry_mask): New insn.
20022 (prologue): New expander.
20023 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
20024 (vax_expand_prologue): Rename from vax_output_function_prologue;
20025 emit rtl instead of text.
20026 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
20027 (print_operand): Add 'x' prefix.
20029 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
20031 PR middle-end/47715
20032 * calls.c (precompute_register_parameters): Promote the function
20033 argument before checking non-legitimate constant.
20035 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
20037 PR tree-optimization/47654
20038 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
20039 (lst_do_strip_mine_loop): Return an int.
20040 (lst_do_strip_mine): Same.
20041 (scop_do_strip_mine): Same.
20042 (scop_do_block): Loop blocking should strip-mine at least two loops.
20043 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
20044 (scop_do_interchange): Same.
20045 * graphite-poly.h (scop_do_interchange): Update declaration.
20046 (scop_do_strip_mine): Same.
20048 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
20050 * graphite-clast-to-gimple.c (precision_for_value): Removed.
20051 (precision_for_interval): Removed.
20052 (gcc_type_for_interval): Use mpz_sizeinbase.
20054 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
20056 * graphite-ppl.h (value_max): Correct computation of max.
20058 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
20060 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
20062 2011-07-05 Richard Guenther <rguenther@suse.de>
20064 * c-decl.c (c_init_decl_processing): Defer building common
20065 tree nodes to c_common_nodes_and_builtins.
20067 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
20069 PR tree-optimization/49580
20070 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
20071 the loop's number of iterations.
20072 * tree-parloops.c (transform_to_exit_first_loop): Add the
20073 handling of the loop's number of iterations before the call
20074 to gimple_duplicate_sese_tail.
20075 Insert the stmt caclculating the new rhs of the loop's
20076 condition stmt to the preheader instead of iters_bb.
20078 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
20080 PR rtl-optimization/47449
20081 * fwprop.c (forward_propagate_subreg): Don't propagate hard
20082 register nor zero/sign extended hard register.
20084 2011-07-05 Richard Guenther <rguenther@suse.de>
20086 PR tree-optimization/49518
20087 PR tree-optimization/49628
20088 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
20089 irrelevant and invariant data-references.
20090 (vect_analyze_data_ref_access): For invariant loads clear the
20093 2011-07-04 Jakub Jelinek <jakub@redhat.com>
20095 PR rtl-optimization/49619
20096 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
20097 pass VOIDmode as op0_mode to recursive call, and return temp even
20098 when different from tor, just if it is not IOR of the original
20101 PR rtl-optimization/49472
20102 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
20103 negating MULT, negate the second operand instead of first.
20104 (simplify_binary_operation_1) <case MULT>: If one operand is
20105 a NEG and the other is MULT, don't attempt to optimize by negation
20106 of the MULT operand if it only moves the NEG operation around.
20109 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
20110 get_current_def return value if it can't be trusted to be
20111 the current value of the variable in the current bb.
20113 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
20116 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
20117 general register to memory for !TARGET_INTER_UNIT_MOVES.
20119 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
20122 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
20123 instead of TREE_READONLY.
20125 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
20127 * doc/extend.texi (AVR Built-in Functions): Update documentation
20128 of __builtin_avr_fmul*.
20129 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
20130 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
20131 * config/avr/avr.md (fmul): Rename to fmul_insn.
20132 (fmuls): Rename to fmuls_insn.
20133 (fmulsu): Rename to fmulsu_insn.
20134 (fmul,fmuls,fmulsu): New expander.
20135 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
20136 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
20137 * config/avr/libgcc.S (__fmul): New function.
20138 (__fmuls): New function.
20139 (__fmulsu,__fmulsu_exit): New function.
20141 2011-07-04 Richard Guenther <rguenther@suse.de>
20143 PR tree-optimization/49615
20144 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
20145 basic-block index check.
20147 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
20149 * longlong.h (count_leading_zeros, count_trailing_zeros,
20150 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
20153 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
20155 PR tree-optimization/49610
20156 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
20159 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
20160 Olivier Hainque <hainque@adacore.com>
20161 Nicolas Setton <setton@adacore.com>
20163 * tree.h (TYPE_ARTIFICIAL): New flag.
20164 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
20165 the DIE of the type if it is artificial.
20166 (gen_array_type_die): Likewise.
20167 (gen_enumeration_type_die): Likewise.
20168 (gen_struct_or_union_type_die): Likewise.
20169 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
20170 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
20172 2011-07-01 Jakub Jelinek <jakub@redhat.com>
20174 * tree-object-size.c (pass_through_call): Handle
20175 BUILT_IN_ASSUME_ALIGNED.
20177 2011-07-01 Martin Jambor <mjambor@suse.cz>
20179 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
20181 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
20183 PR middle-end/48016
20184 * explow.c (update_nonlocal_goto_save_area): Use proper mode
20185 for stack save area.
20186 * function.c (expand_function_start): Likewise.
20188 2011-07-01 Richard Guenther <rguenther@suse.de>
20190 PR middle-end/49596
20191 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
20192 may have unknown refs.
20194 2011-07-01 Kai Tietz <ktietz@redhat.com>
20196 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
20198 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20200 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
20201 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
20202 (Specific, mips-sgi-irix6): Likewise.
20204 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20206 PR libmudflap/49549
20207 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
20209 2011-07-01 Jakub Jelinek <jakub@redhat.com>
20211 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
20212 [idx]= and [idx1 ... idx2]= before initializers if needed for
20213 array initializers.
20215 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
20217 * config.gcc (score-*-elf): Remove score7.o.
20218 * config/score/t-score-elf: Likewise.
20219 * config/score/score.c: Merge score7 to score.c and
20220 remove forwarding functions.
20221 * config/score/score7.c: Deleted.
20222 * config/score/score7.h: Deleted.
20224 2011-07-01 Richard Guenther <rguenther@suse.de>
20226 PR tree-optimization/49603
20227 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
20229 2011-06-30 Martin Jambor <mjambor@suse.cz>
20231 * tree-sra.c (struct access): Rename total_scalarization to
20232 grp_total_scalarization
20233 (completely_scalarize_var): New function.
20234 (sort_and_splice_var_accesses): Set total_scalarization in the
20235 representative access.
20236 (analyze_access_subtree): Propagate total scalarization accross the
20237 tree, no holes in totally scalarized trees, simplify coverage
20239 (analyze_all_variable_accesses): Call completely_scalarize_var instead
20240 of completely_scalarize_record.
20242 2011-06-30 Richard Henderson <rth@redhat.com>
20244 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
20245 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
20246 * config/i386/i386.c: Don't include dwarf2out.h.
20247 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
20248 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
20249 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
20250 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
20251 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
20253 2011-06-30 Richard Henderson <rth@redhat.com>
20255 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
20256 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
20257 * final.c (final_scan_insn): Look for it, and invoke
20258 dwarf2out_frame_debug before the insn if found.
20260 2011-06-30 Richard Henderson <rth@redhat.com>
20262 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
20263 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
20265 2011-06-30 Richard Henderson <rth@redhat.com>
20267 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
20268 Define a vector of this type.
20269 (regs_saved_in_regs): Use a VEC.
20270 (num_regs_saved_in_regs): Remove.
20271 (compare_reg_or_pc): New.
20272 (record_reg_saved_in_reg): Split out from...
20273 (dwarf2out_flush_queued_reg_saves): ... here.
20274 (clobbers_queued_reg_save): Update for VEC.
20275 (reg_saved_in): Likewise.
20276 (dwarf2out_frame_debug_init): Likewise.
20277 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
20278 (dwarf2out_frame_debug_cfa_register): Likewise.
20280 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
20282 PR tree-optimization/49572
20283 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
20284 type of the RHS instead of that of the LHS for the expression type.
20286 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
20288 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
20291 2011-06-30 Richard Guenther <rguenther@suse.de>
20293 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
20294 * tree-ssa-structalias.c (create_variable_info_for): Do not
20295 add initial constraints for non-var-decls. Properly handle
20296 globals in other ltrans partitions.
20297 (intra_create_variable_infos): Manually create constraints for
20298 the fake no-alias parameter.
20299 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
20300 and assert there are no clones.
20302 2011-06-30 Richard Guenther <rguenther@suse.de>
20304 PR tree-optimization/46787
20305 * tree-data-ref.c (dr_address_invariant_p): Remove.
20306 (find_data_references_in_stmt): Invariant accesses are ok now.
20307 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
20308 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
20311 2011-06-30 Martin Jambor <mjambor@suse.cz>
20313 PR tree-optimization/49094
20314 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
20315 (build_accesses_from_assign): Use it.
20317 2011-06-30 Jakub Jelinek <jakub@redhat.com>
20319 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
20320 handling of BUILT_IN_ASSUME_ALIGNED.
20323 * dwarf2out.c (output_abbrev_section): Don't return early
20324 if abbrev_die_table_in_use is 1.
20325 (dwarf2out_finish): Instead don't call output_abbrev_section
20326 nor emit abbrev_section_label in that case.
20328 2011-06-30 Nick Clifton <nickc@redhat.com>
20330 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
20333 2011-06-30 Jakub Jelinek <jakub@redhat.com>
20335 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
20336 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
20338 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
20340 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
20341 both pattern and original statements if necessary.
20342 (vect_transform_loop): Likewise.
20343 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
20344 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
20345 Mark the pattern statement only if the original statement doesn't
20347 (process_use): Call vect_mark_relevant with additional parameter.
20348 (vect_mark_stmts_to_be_vectorized): Likewise.
20349 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
20350 (vect_analyze_stmt): Handle both pattern and original statements
20352 (vect_transform_stmt): Don't store vectorized pattern statement
20353 in the original statement.
20354 (vect_is_simple_use_1): Use related pattern statement only if the
20355 original statement is irrelevant.
20356 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
20358 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
20360 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
20362 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
20364 (TARGET_AVX128_OPTIMAL): New definition.
20365 * config/i386/i386.c (initial_ix86_tune_features): Initialize
20366 X86_TUNE_AVX128_OPTIMAL entry.
20367 (ix86_option_override_internal): Enable the generation
20368 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
20369 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
20370 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
20372 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
20374 PR tree-optimization/49539
20375 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
20376 names by means of stmt_references_abnormal_ssa_name.
20377 (associate_plusminus): Call can_propagate_from before propagating
20378 from definition statements.
20379 (ssa_forward_propagate_and_combine): Remove superfluous newline.
20381 2011-06-29 Richard Guenther <rguenther@suse.de>
20383 * doc/invoke.texi: Document -scev dump modifier.
20384 * tree-pass.h (TDF_SCEV): New dump flag.
20385 * tree-dump.c (dump_option_value_in): Add scev.
20386 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
20387 * tree-scalar-evolution.c: Likewise.
20389 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
20391 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
20392 (cxa_type_match): Correct declaration.
20393 (__gnu_unwind_pr_common): Reconstruct additional indirection
20394 when __cxa_type_match returns succeeded_with_ptr_to_base.
20396 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20398 PR rtl-optimization/49114
20399 * reload.c (struct replacement): Remove SUBREG_LOC member.
20400 (push_reload): Do not set it.
20401 (push_replacement): Likewise.
20402 (subst_reload): Remove dead code.
20403 (copy_replacements): Remove assertion.
20404 (copy_replacements_1): Do not handle SUBREG_LOC.
20405 (move_replacements): Likewise.
20406 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
20407 Detect subregs via recursive descent instead of via SUBREG_LOC.
20409 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
20411 * config/avr/avr.c (avr_encode_section_info): Dispatch to
20412 default_encode_section_info.
20414 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
20416 PR tree-optimization/49545
20417 * builtins.c (get_object_alignment_1): Update function comment.
20418 Do not use DECL_ALIGN for functions, but test
20419 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
20420 * fold-const.c (get_pointer_modulus_and_residue): Don't check
20421 for functions here.
20422 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
20424 2011-06-29 Jakub Jelinek <jakub@redhat.com>
20427 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
20428 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
20430 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
20433 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
20434 about uninitialized data attributed 'progmem' from here...
20435 (avr_encode_section_info): ...to this new function.
20436 (TARGET_ENCODE_SECTION_INFO): New define.
20437 (avr_section_type_flags): For data in ".progmem.data", remove
20438 section flag SECTION_WRITE.
20440 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
20442 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
20444 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
20445 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
20446 (__umulhisi3): Ditto.
20447 * config/avr/avr.md (mulhisi3): New insn expender.
20448 (umulhisi3): New insn expender.
20449 (*mulhisi3_call): New insn.
20450 (*umulhisi3_call): New insn.
20452 2011-06-28 Joseph Myers <joseph@codesourcery.com>
20454 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
20456 2011-06-28 Richard Henderson <rth@redhat.com>
20458 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
20459 all code and arguments that handled pushes. Update all callers.
20461 2011-06-28 Richard Henderson <rth@redhat.com>
20463 * config/arm/arm.c (arm_output_function_prologue): Don't call
20464 thumb1_output_function_prologue.
20465 (arm_expand_prologue): Avoid dead store.
20466 (number_of_first_bit_set): Use ctz_hwi.
20467 (thumb1_emit_multi_reg_push): New.
20468 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
20469 to emit the entire prologue as rtl.
20470 (thumb1_output_interwork): Split out from
20471 thumb1_output_function_prologue.
20472 (thumb1_output_function_prologue): Remove.
20473 (arm_attr_length_push_multi): Handle thumb1.
20474 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
20475 (prologue_thumb1_interwork): New.
20476 (*push_multi): Allow thumb1; use push_mult_memory_operand.
20477 * config/arm/predicates.md (push_mult_memory_operand): New.
20479 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
20481 * config/sparc/sync.md (*stbar): Delete.
20482 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
20484 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
20486 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
20488 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20490 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
20491 (TARGET_64BIT_DEFAULT): Define.
20492 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
20494 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
20496 2011-06-28 Joseph Myers <joseph@codesourcery.com>
20498 * common.opt (in_lto_p): New Variable entry.
20499 * flags.h (in_lto_p): Move to common.opt.
20500 * gcc.c: Include params.h.
20501 (set_option_handlers): Also use common_handle_option and
20502 target_handle_option.
20503 (main): Call global_init_params, finish_params and init_options_struct.
20504 * opts.c (debug_type_names): Move from toplev.c.
20505 (print_filtered_help): Access quiet_flag through opts pointer.
20506 (common_handle_option): Return early in the driver for some options.
20507 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
20509 * toplev.c (in_lto_p): Move to common.opt.
20510 (debug_type_names): Move to opts.c.
20511 * Makefile.in (OBJS): Remove opts.o.
20512 (OBJS-libcommon-target): Add opts.o.
20513 (gcc.o): Update dependencies.
20515 2011-06-28 Kai Tietz <ktietz@redhat.com>
20517 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
20519 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20521 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
20522 with '=' constraint modifier.
20523 (*divdf3_vfp): Likewise.
20524 ("*mulsf3_vfp"): Likewise.
20525 ("*muldf3_vfp"): Likewise.
20526 ("*mulsf3negsf_vfp"): Likewise.
20527 ("*muldf3negdf_vfp"): Likewise.
20529 2011-06-28 Nick Clifton <nickc@redhat.com>
20531 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
20532 relaxation when performing an incremental link.
20534 2011-06-28 Kai Tietz <ktietz@redhat.com>
20536 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
20537 within BB from last to first.
20539 2011-06-28 Joseph Myers <joseph@codesourcery.com>
20541 * genattr-common.c: New. Based on genattr.c.
20542 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
20543 (MOSTLYCLEANFILES): Add insn-attr-common.h.
20544 (opts.o): Update dependencies.
20545 (.PRECIOUS): Add insn-attr-common.h.
20546 (simple_rtl_generated_h): Add insn-attr-common.h.
20547 (build/genattr-common.o): New.
20548 (genprogrtl): Add attr-common.
20549 * genattr.c (main): Include insn-attr-common.h. Don't generate
20550 definitions of DELAY_SLOTS or INSN_SCHEDULING.
20551 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
20553 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
20555 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
20556 avr-*-* and avr-*-rtems* targets.
20558 * config/avr/elf.h: New file.
20559 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
20560 (TARGET_ASM_SELECT_SECTION): Define.
20561 (INIT_SECTION_ASM_OP): Undefine.
20562 (FINI_SECTION_ASM_OP): Undefine.
20563 (READONLY_DATA_SECTION_ASM_OP): Undefine.
20564 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
20565 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
20566 * config/avr/avr.h:
20567 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
20568 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
20569 (MAX_OFILE_ALIGNMENT): Move to elf.h.
20570 (STRING_LIMIT): Move to elf.h.
20571 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
20572 (ASM_DECLARE_OBJECT_NAME): Remove.
20574 (ASM_OUTPUT_SKIP): Remove.
20575 (DWARF2_DEBUGGING_INFO): Remove.
20576 (OBJECT_FORMAT_ELF): Remove.
20577 (USER_LABEL_PREFIX): Remove.
20578 (ASM_OUTPUT_EXTERNAL): Remove.
20579 (ASM_OUTPUT_ASCII): Remove.
20580 (TYPE_ASM_OP): Remove.
20581 (SIZE_ASM_OP): Remove.
20582 (WEAK_ASM_OP): Remove.
20583 (STRING_ASM_OP): Remove.
20584 (SET_ASM_OP): Remove.
20585 (ASM_WEAKEN_LABEL): Remove.
20586 (TYPE_OPERAND_FMT): Remove.
20587 (ASM_DECLARE_FUNCTION_SIZE): Remove.
20588 (ASM_FINISH_DECLARE_OBJECT): Remove.
20589 (NO_DOLLAR_IN_LABEL): Remove.
20590 (ASM_GENERATE_INTERNAL_LABEL): Remove.
20591 (ASM_OUTPUT_CASE_LABEL): Remove.
20592 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
20593 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
20594 (gas_output_ascii): Remove.
20595 (gas_output_limited_string): Remove.
20596 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
20597 * config/avr/avr-protos.h
20598 (gas_output_ascii): Remove prototye.
20599 (gas_output_limited_string): Remove prototype.
20601 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
20604 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
20607 2011-06-27 Jan Hubicka <jh@suse.cz>
20609 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
20610 node instead of references in node.
20612 2011-06-27 Richard Henderson <rth@redhat.com>
20614 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
20615 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
20618 2011-06-27 Jakub Jelinek <jakub@redhat.com>
20620 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
20622 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
20623 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
20624 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
20625 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
20626 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
20627 (evaluate_stmt, execute_fold_all_builtins): Handle
20628 BUILT_IN_ASSUME_ALIGNED.
20629 * tree-ssa-dce.c (propagate_necessity): Likewise.
20630 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
20631 call_may_clobber_ref_p_1): Likewise.
20632 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
20633 (expand_builtin_assume_aligned): New function.
20634 * doc/extend.texi (__builtin_assume_aligned): Document.
20637 * cselib.c (promote_debug_loc): If cselib_preserve_constants
20638 and l has two DEBUG_INSN owned locs instead of just one, adjust
20639 the second location's setting_insn too.
20641 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20643 PR libmudflap/38738
20644 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
20646 2011-06-27 Nick Clifton <nickc@redhat.com>
20648 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
20649 bit position of highest bit set into a count of the high zero bits.
20651 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
20653 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
20655 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
20658 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
20661 2011-06-27 Richard Guenther <rguenther@suse.de>
20663 PR tree-optimization/49394
20664 * passes.c (execute_one_pass): Restore current_pass after
20665 applying IPA transforms.
20667 2011-06-27 Kai Tietz <ktietz@redhat.com>
20669 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
20670 out of type precision after operation.
20671 (find_bswap): Take for limit value the integer auto-promotion
20674 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
20676 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
20677 forward scan as well.
20679 2011-06-27 Tristan Gingold <gingold@adacore.com>
20682 * config/vms/vms-protos.h: New file.
20683 * config/vms/vms-crtlmap.map: New file.
20684 * config/vms/vms.c: New file.
20685 * config/vms/make-crtlmap.awk: New file.
20686 * config/vms/vms-crtl.h: File removed.
20687 * config/vms/vms-crtl-64.h: File removed.
20688 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
20689 * config/alpha/vms64.h: Do not include vms-crtl-64.h
20690 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
20691 clear some builtins on VMS. Calls vms_patch_builtins.
20692 (avms_asm_output_external): Remove.
20693 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
20694 (struct crtl_name_spec): Remove
20695 (DO_CTRL_NAMES): Remove.
20696 * config/ia64/vms.h (struct crtl_name_spec): Remove
20697 (DO_CTRL_NAMES): Remove.
20698 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
20699 clear some builtins on VMS. Calls vms_patch_builtins.
20700 (ia64_asm_output_external): Remove DO_CRTL_NAME.
20701 * config/ia64/vms64.h: Do not include vms-crtl-64.h
20702 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
20704 2011-06-27 Tristan Gingold <gingold@adacore.com>
20706 * config/alpha/alpha.c (alpha_end_function): Always generate .end
20709 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
20711 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
20712 the function receives nonlocal gotos.
20714 2011-06-27 Richard Guenther <rguenther@suse.de>
20716 PR tree-optimization/49536
20717 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
20718 For non-scalar inner types use a scalar type according to
20719 the scalar inner mode.
20721 2011-06-27 Richard Guenther <rguenther@suse.de>
20723 PR tree-optimization/49365
20724 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
20726 2011-06-27 Richard Guenther <rguenther@suse.de>
20728 PR tree-optimization/49169
20729 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
20730 the alignment of function decls.
20732 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
20735 * config/darwin.c (darwin_mergeable_string_section): Place string
20736 constants in '.cstring' rather than '.const' when CF/NSStrings are
20739 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
20741 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
20742 (emit_save_register_window): Likewise.
20743 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
20744 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
20745 Swap back %o7/%i7 in register naming.
20747 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
20750 * config/darwin.c (darwin_override_options): Improve warning when
20751 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
20752 is given with fpie/fPIE.
20753 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
20754 * config/darwin9.h (PIE_SPEC): New.
20756 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
20758 * timevar.c (timevar_print): Increase width for display of timevar
20761 2011-06-24 Jakub Jelinek <jakub@redhat.com>
20764 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
20765 instead of TYPE_CHAIN for chain_next for types.
20767 2011-06-24 Richard Henderson <rth@redhat.com>
20769 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
20770 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
20771 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
20772 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
20773 (sparc_flat_expand_prologue): Emit individual instructions
20774 instead of one of the above.
20776 2011-06-24 Easwaran Raman <eraman@google.com>
20778 PR rtl-optimization/49429
20780 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
20781 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
20782 used to copy y into x.
20783 * calls.c (initialize_argument_information): Mark
20784 an argument addressable if it is passed by invisible reference.
20785 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
20786 if it is passed by reference.
20788 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
20790 PR rtl-optimization/49504
20791 * rtlanal.c (nonzero_bits1): Properly handle addition or
20792 subtraction of a pointer in Pmode if pointers extend unsigned.
20793 (num_sign_bit_copies1): Likewise.
20795 2011-06-24 Martin Jambor <mjambor@suse.cz>
20797 PR tree-optimizations/49516
20798 * tree-sra.c (sra_modify_assign): Choose the safe path for
20799 aggregate copies if we also did scalar replacements.
20801 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20804 * config/arm/predicates.md (add_operator): New.
20805 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
20807 2011-06-24 Andi Kleen <ak@linux.intel.com>
20809 * tree-sra.c (type_internals_preclude_sra_p): Add msg
20810 parameter. Split up ifs and report reason in *msg.
20812 (find_var_candiate): Add msg variable.
20813 Split up ifs and report reason to reject.
20814 (find_param_candidates): Add msg variable.
20815 Pass msg to type_internals_preclude_sra_p.
20817 2011-06-23 Jeff Law <law@redhat.com>
20819 PR middle-end/48770
20820 * reload.h (reload): Change to return a bool.
20821 * ira.c (ira): If requested by reload, run a fast DCE pass after
20822 reload has completed. Fix comment typo.
20823 * reload1.c (need_dce): New file scoped static.
20824 (reload): Set reload_completed here. Return whether or not a DCE
20825 pass after reload is needed.
20826 (delete_dead_insn): Set need_dce as needed.
20828 PR middle-end/49465
20829 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
20830 to detect threading through joiner block. If there was already
20831 an edge to the new target, then do not change the PHI nodes.
20833 2011-06-23 Jakub Jelinek <jakub@redhat.com>
20835 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
20836 get_pointer_alignment to see if base isn't sufficiently aligned.
20838 2011-06-23 Jan Hubicka <jh@suse.cz>
20840 PR tree-optimize/49373
20841 * tree-pass.h (all_late_ipa_passes): Declare.
20842 * cgraphunit.c (init_lowered_empty_function): Fix properties.
20843 (cgraph_optimize): Execute late passes; remove unreachable funcions
20844 after materialization.
20845 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
20847 * passes.c (all_late_ipa_passes): Declare.
20848 (dump_passes, register_pass): Handle late ipa passes.
20849 (init_optimization_passes): Move ipa_pta to late passes; schedule
20850 fixup_cfg at beggining of all_passes.
20851 (apply_ipa_transforms): New function.
20852 (execute_one_pass): When doing simple ipa pass, apply all transforms.
20854 2011-06-23 Joseph Myers <joseph@codesourcery.com>
20856 * params.c: Include common/common-target.h. Don't include tm.h.
20857 (lang_independent_params): Move from toplev.c.
20858 (global_init_params): New.
20859 * params.h (global_init_params): Declare.
20860 * target.def (default_params): Move to common-target.def.
20861 * toplev.c (lang_independent_options): Remove.
20862 (lang_independent_params): Move to params.c.
20863 (general_init): Use global_init_params.
20864 * common/common-target.def (option_default_params): Move from
20866 * common/config/ia64/ia64-common.c: Include params.h.
20867 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
20869 * common/config/rs6000/rs6000-common.c: Include params.h.
20870 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
20872 * common/config/sh/sh-common.c: Include params.h.
20873 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
20875 * common/config/spu/spu-common.c: Include params.h.
20876 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
20878 * config/ia64/ia64.c (ia64_option_default_params,
20879 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
20880 * config/rs6000/rs6000.c (rs6000_option_default_params,
20881 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
20882 * config/sh/sh.c (sh_option_default_params,
20883 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
20884 * config/spu/spu.c (spu_option_default_params,
20885 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
20886 * Makefile.in (OBJS): Remove params.o.
20887 (OBJS-libcommon-target): Add params.o.
20888 (params.o, $(common_out_object_file)): Update dependencies.
20889 * doc/tm.texi: Regenerate.
20891 2011-06-23 Alan Modra <amodra@gmail.com>
20894 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
20895 invocation for 2011-06-09 changes.
20897 2011-06-22 Jakub Jelinek <jakub@redhat.com>
20900 * omp-low.c (expand_omp_for_static_nochunk): Only
20901 use n ceil/ nthreads size for the first n % nthreads threads in the
20902 team instead of all threads except for the last few ones which
20903 get less work or none at all.
20906 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
20909 2011-06-22 Richard Guenther <rguenther@suse.de>
20911 PR tree-optimization/49493
20912 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
20913 Refer to the alias target of variables.
20914 (associate_varinfo_to_alias_1): Remove.
20915 (ipa_pta_execute): Do not associate aliases with anything.
20916 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
20917 (cgraph_function_node): Likewise.
20918 (cgraph_function_or_thunk_node): Likewise.
20919 (varpool_variable_node): Likewise.
20921 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
20923 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
20924 * config.gcc (arm*-*-linux*): Default to gnu tls.
20925 (arm*-*-*): Add --with-tls option.
20926 (all_defaults): Add 'tls'.
20928 2011-06-22 Richard Henderson <rth@redhat.com>
20930 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
20931 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
20932 (dwarf2out_frame_debug_cfa_window_save): Rename from
20933 dwarf2out_window_save; make static.
20934 * tree.h (dwarf2out_window_save): Don't declare.
20936 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
20937 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
20938 (emit_save_register_window): Rename from gen_save_register_window;
20939 emit the insn and add REG_CFA_* notes.
20940 (sparc_expand_prologue): Update to match.
20941 * config/sparc/sparc.md (save_register_window_1): Simplify from
20942 save_register_window<P:mode>.
20944 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
20947 * config/i386/i386.md (*lea_general_2): Always allow SImode.
20948 (*lea_general_2_zext): Likewise.
20949 (imul to lea peepholes): Use const359_operand and check
20950 TARGET_PARTIAL_REG_STALL.
20952 * config/i386/predicates.md (const359_operand): New.
20954 2011-06-22 Michael Matz <matz@suse.de>
20956 * cgraphunit.c (assemble_thunk): Use correct return type.
20958 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
20959 Dmitry Melnik <dm@ispras.ru>
20961 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
20962 (neon_output_shift_immediate): Ditto.
20963 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
20965 (neon_output_shift_immediate): Ditto.
20966 * config/arm/neon.md (vashl<mode>3): Modified constraint.
20967 (vashr<mode>3_imm): New insn pattern.
20968 (vlshr<mode>3_imm): Ditto.
20969 (vashr<mode>3): Modified constraint.
20970 (vlshr<mode>3): Ditto.
20971 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
20973 (imm_for_neon_rshift_operand): Ditto.
20974 (imm_lshift_or_reg_neon): Ditto.
20975 (imm_rshift_or_reg_neon): Ditto.
20977 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
20979 2011-06-22 Jakub Jelinek <jakub@redhat.com>
20981 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
20982 builtin calls even if likelyvalue is not CONSTANT.
20983 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
20984 Return get_value_for_expr of first operand
20985 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
20986 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
20987 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
20988 their non-checking counterparts.
20989 (call_may_clobber_ref_p_1): Likewise.
20990 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
20991 like their non-checking counterparts.
20992 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20993 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
20994 like their non-checking counterparts.
20995 (find_func_clobbers): Likewise.
20996 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
20997 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
20999 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
21000 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
21001 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
21002 of base type reference as argument.
21003 (resolve_addr_in_expr): Likewise. Fix keep computation.
21004 (convert_descriptor_to_signed): Renamed to...
21005 (convert_descriptor_to_mode): ... this. For wider types convert to
21006 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
21007 (typed_binop): New function.
21008 (scompare_loc_descriptor, ucompare_loc_descriptor,
21009 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
21010 default to unsigned type instead of signed.
21013 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
21014 (gimple_build_debug_source_bind_stat): New prototype.
21015 (gimple_build_debug_source_bind): Define.
21016 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
21017 gimple_debug_source_bind_get_value,
21018 gimple_debug_source_bind_get_value_ptr,
21019 gimple_debug_source_bind_set_var,
21020 gimple_debug_source_bind_set_value): New inlines.
21021 * gimple.c (gimple_build_debug_source_bind_stat): New function.
21022 * gimple-pretty-print.c (dump_gimple_debug): Handle
21023 GIMPLE_DEBUG_SOURCE_BIND.
21024 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
21025 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
21026 * tree-parloops.c (eliminate_local_variables,
21027 separate_decls_in_region): Likewise.
21028 (separate_decls_in_region_debug): Renamed from
21029 separate_decls_in_region_debug_bind. Handle
21030 gimple_debug_source_bind_p.
21031 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
21033 (DECL_HAS_DEBUG_ARGS_P): Define.
21034 (struct tree_function_decl): Add has_debug_args_flag field.
21035 * tree.c (debug_args_for_decl): New variable.
21036 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
21037 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
21038 (rewrite_debug_stmt_uses): New function.
21039 (rewrite_stmt): Use it to rewrite debug stmt uses.
21040 * rtl.def (DEBUG_PARAMETER_REF): New.
21041 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
21042 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
21043 DEBUG_PARAMETER_REF.
21044 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
21045 * print-rtl.c (print_rtx): Likewise.
21046 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
21047 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
21048 debug stmts in the first bb.
21049 * tree-inline.c (remap_ssa_name): If remapping default def
21050 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
21051 a source bind debug stmt.
21052 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
21053 (maybe_move_debug_stmts_to_successors): Likewise.
21054 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
21055 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
21056 debug args vector from old_decl to new_decl.
21057 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
21058 or modified parameters, add debug bind stmts before call
21059 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
21060 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
21061 on DECL_DEBUG_EXPRs from debug args vector.
21062 (expand_debug_source_expr): New function.
21063 (expand_debug_locations): Use it for source bind insns.
21064 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
21065 * var-tracking.c (prepare_call_arguments): Add debug args
21066 to call_arguments if any.
21067 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
21068 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
21069 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
21070 (get_ref_die_offset, parameter_ref_descriptor): New functions.
21071 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
21072 (gen_subprogram_die): Handle parameters identified by
21073 DEBUG_PARAMETER_REF.
21075 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
21077 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
21078 * doc/install.texi (Configuration): Document --with-tls.
21079 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
21080 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
21081 (arm_tls_descseq_addr): New.
21082 (legitimize_tls_address): Add tlsdesc support.
21083 (arm_cannot_copy_insn_p): Check for tlscall.
21084 (arm_emit_tls_decoration): Likewise.
21085 * config/arm/arm.h (TARGET_GNU2_TLS): New.
21086 (OPTION_DEFAULT_SPECS): Add with-tls support.
21087 * config/arm/arm.md (R1_REGNUM): Define.
21089 * config/arm/arm.opt (tls_type): New enumeration type and values.
21090 (mtls-dialect): New switch.
21091 * config/arm/arm-opts.h (enum tls_type): New.
21093 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
21095 * attribs.c (register_attribute): Added assert to check that all
21096 attribute specs are registered with a name that is not empty and
21097 does not start with '_'.
21098 (decl_attributes): Avoid the lookup of the "naked" attribute spec
21099 if the function has no attributes.
21100 * tree.c (is_attribute_with_length_p): Removed.
21101 (is_attribute_p): Removed.
21102 (private_is_attribute_p): New.
21103 (private_lookup_attribute): New.
21104 (lookup_attribute): Removed.
21105 (lookup_ident_attribute): New.
21106 (remove_attribute): Require the first argument to be in the form
21107 'text', not '__text__'. Updated asserts.
21108 (merge_attributes): Use lookup_ident_attributes instead of
21110 (merge_dllimport_decl_attributes): Use remove_attribute.
21111 (attribute_list_contained): Likewise.
21112 (attribute_list_equal): Immediately return 1 if the arguments are
21113 identical pointers.
21114 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
21115 'int'. Require the first argument to be in the form 'text', not
21116 '__text__'. Require the second argument to be an identifier.
21117 (lookup_attribute): Made inline. Require the first argument to be
21118 in the form 'text', not '__text__'.
21119 (private_is_attribute_p, private_lookup_attribute): New.
21122 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
21124 * builtins.c: Add sync_ or SYNC__ to builtin names.
21125 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
21126 * omp-low.c: Add sync_ or SYNC__ to builtin names.
21128 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
21131 * config/avr/avr.md (extzv): New expander.
21132 (*extzv): New insn.
21133 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
21134 * config/avr/constraints.md (C04): New constraint.
21135 * doc/md.texi (Machine Constraints): Document it.
21137 2011-06-21 Jakub Jelinek <jakub@redhat.com>
21139 PR middle-end/49489
21140 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
21141 unsignedp argument instead of 1 for clrsb_optab.
21142 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
21143 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
21144 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
21145 * optabs.c (widen_leading): Call widen_operand and expand_unop
21146 with 0 as unsignedp argument instead of 1 for clrsb_optab.
21147 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
21149 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
21151 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
21153 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
21155 * gensupport.c (add_define_attr): New static function.
21156 (is_predicable): Allow multi-alternative lists for the "predicable"
21158 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
21159 (process_one_cond_exec): Call alter_attrs_for_insn.
21160 * doc/md.texi (Defining Attributes): Mention some standard names.
21161 (Conditional Execution): Update documentation for "predicable".
21163 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
21164 __builtin_clrsbll): Document.
21165 * doc/rtl.texi (clrsb): New entry.
21166 * optabs.c (widen_leading): Renamed from widen_clz. New argument
21167 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
21168 (expand_unop): Handle clrsb_optab.
21169 (init_optabs): Initialize it.
21170 * optabs.h (enum optab_index): New entry OTI_clrsb.
21171 (clrsb_optab): Define.
21172 * genopinit.c (optabs): Add an entry for it.
21173 * builtins.c (expand_builtin): Handle clrsb builtin functions.
21174 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
21175 BUILT_IN_CLRSBLL): New.
21176 * rtl.def (CLRSB): New code.
21177 * dwarf2out.c (mem_loc_descriptor): Handle it.
21178 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
21179 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
21181 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
21182 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
21183 (__ctzDI2): Move declaration.
21184 * config/bfin/bfin.md (clrsbsi2): New expander.
21185 (signbitssi2): Use the CLRSB rtx.
21186 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
21187 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
21189 2011-06-21 Richard Guenther <rguenther@suse.de>
21191 * ipa-inline-transform.c (inline_transform): Fix previous change.
21193 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
21195 PR tree-optimization/49478
21196 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
21197 with constant operand.
21199 2011-06-21 Richard Guenther <rguenther@suse.de>
21201 * ipa-inline-transform.c (inline_transform): Fix typo.
21203 2011-06-21 Richard Guenther <rguenther@suse.de>
21205 PR tree-optimization/49483
21206 * tree-vect-stmts.c (vectorizable_assignment): Also handle
21207 VIEW_CONVERT_EXPR conversions.
21209 2011-06-21 Joseph Myers <joseph@codesourcery.com>
21211 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
21212 * config/avr/avr-tables.opt: New file (generated).
21213 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
21214 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
21216 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
21217 (avr_option_override): Don't process -mmcu= argument here. Set
21218 avr_current_device using avr_mcu_index.
21219 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
21220 * config/avr/avr.opt (mmcu=): Use Enum.
21221 * config/avr/t-avr (avr-devices.o): Update dependencies.
21222 ($(srcdir)/config/avr/avr-tables.opt): New.
21223 * target.def (help): Remove.
21224 * doc/tm.texi.in (TARGET_HELP): Remove.
21225 * doc/tm.texi: Regenerate.
21226 * opts.c: Don't include target.h.
21227 (common_handle_option): Don't call targetm.help.
21228 * system.h (TARGET_HELP): Poison.
21229 * Makefile.in (opts.o): Update dependencies.
21231 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21233 * config/usegld.h: New file.
21234 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
21235 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
21236 (LIB_SPEC): Likewise. Search /lib.
21237 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
21238 (RDYNAMIC_SPEC): Handle GNU ld.
21239 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
21241 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
21242 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
21243 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
21244 (STACK_CHECK_STATIC_BUILTIN): Define.
21245 * config/sol2.opt (compat-bsd): Remove.
21246 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
21247 * config/sol2-bi.h: New file.
21248 * config/sol2-gld.h: Remove.
21249 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
21250 (NO_DBX_BNSYM_ENSYM): Remove.
21251 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
21252 (STACK_CHECK_STATIC_BUILTIN): Remove.
21253 Test USE_GLD instead of TARGET_GNU_LD.
21254 * config/i386/sol2-10.h: Rename to ...
21255 * config/i386/sol2-bi.h .. this.
21256 (SUBTARGET_EXTRA_SPECS): Redefine.
21257 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
21258 (MULTILIB_DEFAULTS): Remove.
21259 (DEFAULT_ARCH32_P): Define.
21260 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
21261 (ARCH64_SUBDIR): Define.
21262 Test USE_GLD instead of TARGET_GNU_LD.
21263 (I386_EMULATION): Rename to ...
21264 (ARCH32_EMULATION): ... this.
21265 (X86_64_EMULATION): Rename to ...
21266 (ARCH64_EMULATION): ... this.
21267 (TARGET_LD_EMULATION): Remove.
21268 (LINK_ARCH_SPEC): Remove.
21269 * config/i386/sol2-gas.h: Remove.
21270 * config/i386/t-sol2-10: Rename to ...
21271 * config/i386/t-sol2-64: ... this.
21272 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
21273 (AS_SPARC64_FLAG): Define.
21274 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
21275 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
21276 depending on TARGET_CPU_DEFAULT.
21277 (CPP_CPU_SPEC): Redefine.
21278 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
21279 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
21280 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
21281 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
21282 ASM_ARCH_DEFAULT_SPEC): Redefine.
21283 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
21284 LINK_ARCH_DEFAULT_SPEC.
21285 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
21286 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
21287 (ARCH64_SUBDIR): Define.
21288 (LINK_ARCH64_SPEC): Redefine.
21289 (CC1_SPEC): Redefine.
21290 (OPTION_DEFAULT_SPECS): Redefine.
21291 (MULTILIB_DEFAULTS): Define.
21292 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
21293 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
21294 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
21295 (NO_DBX_BNSYM_ENSYM): Remove.
21296 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
21297 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
21298 (TARGET_ASM_NAMED_SECTION): Likewise.
21299 (STACK_CHECK_STATIC_BUILTIN): Remove.
21300 * config/sparc/sol2-bi.h: Remove.
21301 * config/sparc/sol2-gas-bi.h: Remove.
21302 * config/sparc/sol2-gas.h: Remove.
21303 * config/sparc/sol2-gld-bi.h: Remove.
21304 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
21306 (*-*-solaris2*): ... here.
21308 2011-06-21 Christian Bruel <christian.bruel@st.com>
21311 * ipa-inline.c (can_inline_edge_p): Check
21312 !DECL_DISREGARD_INLINE_LIMITS.
21314 2011-06-21 Christian Bruel <christian.bruel@st.com>
21316 PR middle-end/49139
21317 * cgraphunit.c (process_function_and_variable_attributes): warn when
21318 always_inline functions that are not inline.
21319 * ipa-inline-transform.c (inline_transform): Always call
21321 * tree-inline.c (tree_inlinable_function_p): Use error instead
21323 (expand_call_inline): Likewise.
21325 2011-06-21 Jakub Jelinek <jakub@redhat.com>
21327 * Makefile.in (dg_target_exps): Set.
21328 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
21329 instead of 7, try to divide it more evenly.
21331 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
21334 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
21335 (avx256_split_unaligned_store): New definition.
21336 (ix86_option_override_internal): Enable avx256 unaligned load/store
21337 splitting only when avx256_split_unaligned_load/store is set.
21339 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
21341 * regrename.c (scan_rtx_reg): Handle the case where we write to an
21342 open chain in a smaller mode without failing the entire block.
21344 2011-06-21 Alan Modra <amodra@gmail.com>
21346 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
21347 CONST high part large-toc address.
21348 (rs6000_tls_referenced_p): Make static.
21349 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
21351 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21354 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
21355 one of the operands is a register.
21357 2011-06-20 Kai Tietz <ktietz@redhat.com>
21359 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
21360 operations in combination with binary and.
21362 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
21364 * regrename.c (do_replace): Don't update notes.
21366 2011-06-20 Alan Modra <amodra@gmail.com>
21368 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
21369 of toc-relative address in CONST.
21370 (rs6000_delegitimize_address): Recognize changed address.
21371 (rs6000_legitimize_reload_address): Likewise.
21372 (rs6000_emit_move): Don't force these constants to memory.
21373 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
21374 toc-relative address in CONST.
21375 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
21376 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
21378 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
21380 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
21381 (count_trailing_zeros): Likewise.
21383 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
21386 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
21387 .init_array can be used with .ctors on targets.
21388 * configure: Regenerated.
21390 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
21392 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
21393 if the element type is volatile.
21395 2011-06-18 Jan Hubicka <jh@suse.cz>
21397 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
21398 extra name aliases.
21399 (lto_symtab_resolve_can_prevail_p): Likewise.
21400 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
21401 * cgraphbuild.c (record_reference): Remove extra body alias code.
21402 (mark_load): Likewise.
21403 (mark_store): Likewise.
21404 * cgraph.h (varpool_node): Remove extra_name filed;
21405 add alias_of and extraname_alias.
21406 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
21407 (varpool_alias_aliased_node): New inline function.
21408 (varpool_variable_node): New function.
21409 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
21410 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
21411 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
21412 (input_varpool_node): Likewise.
21413 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
21414 (varpool_externally_visible_p): Remove extra body alias code.
21415 (function_and_variable_visibility): Likewise.
21416 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
21417 (ipa_pta_execute): Use it.
21418 * varpool.c (varpool_remove_node): Remove extra name alias code.
21419 (varpool_mark_needed_node): Likewise.
21420 (varpool_analyze_pending_decls): Analyze aliases.
21421 (assemble_aliases): New functoin.
21422 (varpool_assemble_decl): Use it.
21423 (varpool_create_variable_alias): New function.
21424 (varpool_extra_name_alias): Rewrite.
21425 (varpool_for_node_and_aliases): New function.
21427 2011-06-18 Jakub Jelinek <jakub@redhat.com>
21430 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
21431 last_arg_constant and last argument doesn't match its predicate,
21432 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
21433 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
21434 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
21435 spelling of error message.
21436 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
21437 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
21438 const_0_to_255_operand instead of const_int_operand.
21441 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
21443 * config/i386/sse.md (blendbits): Remove mode attribute.
21444 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
21445 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
21446 Check integer value of operand 3 in insn constraint.
21448 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
21450 PR rtl-optimization/48542
21451 * reload.c (find_equiv_reg): Stop looking when finding a
21453 * reload1.c (reload_as_needed): Invalidate all reload
21454 registers when crossing a setjmp-type call.
21456 2011-06-16 Jeff Law <law@redhat.com>
21458 * tree-ssa-threadupdate.c (struct redirection_data): New field
21460 (THREAD_TARGET2): Define.
21461 (redirection_data_eq): Also check that the intermediate edge is equal.
21462 (lookup_redirection_data): Drop useless argument. Extract the
21463 outgoing_edge and intermediate edge from E. Callers updated.
21464 (copy_phi_args, update_destination_phis): New functions.
21465 (fix_duplicate_block_edges): Likewise.
21466 (create_edge_and_update_destination_phis): Duplicate all the edges
21467 hung off e->aux. Use copy_phi_args.
21468 (create_duplicates): Use fix_duplicate_block_edges.
21469 (fixup_template_block): Likewise.
21470 (redirect_edges): If necessary, redirect the joiner block's incoming
21471 edge to the duplicate of the joiner block.
21472 (thread_block): Don't muck up loops when threading through a joiner
21474 (thread_through_loop_header): Handle threading through a joiner block.
21475 (mark_threaded_blocks, register_jump_thread): Likewise.
21476 * tree-flow.h (register_jump_thread): Add new argument. Callers
21478 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
21479 (thread_across_edge): Handle threading through a joiner block.
21481 2011-06-16 Martin Jambor <mjambor@suse.cz>
21483 PR tree-optimization/49343
21484 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
21485 calculate offset, provide 2nd operand for the new COMPONENT_REF.
21487 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
21489 * config/darwin-protos.h (machopic_select_rtx_section): Move to
21490 inside RTX_CODE ifdef.
21492 2011-06-16 Tom de Vries <tom@codesourcery.com>
21495 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
21496 Disallow NULL pointer for pointer arithmetic.
21498 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21502 2011-06-10 Wei Guozhi <carrot@google.com>
21505 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
21506 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
21507 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
21509 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
21511 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
21512 (arm_legitimate_ldrd_p): New prototype.
21513 (arm_output_ldrd): New prototype.
21514 * config/arm/arm.c (arm_check_ldrd_operands): New function.
21515 (arm_legitimate_ldrd_p): New function.
21516 (arm_output_ldrd): New function.
21518 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
21520 PR middle-end/46500
21521 * doc/tm.texi.in: Update Copyright date.
21522 * doc/tm.texi: Regenerate.
21523 * targhooks.c (default_setup_incoming_varargs): Replace
21524 CUMULATIVE_ARGS* argument type with cumulative_args_t.
21525 (default_pretend_outgoing_varargs_named): Likewise.
21526 (hook_pass_by_reference_must_pass_in_stack): Likewise.
21527 (hook_callee_copies_named): Likewise.
21528 (default_function_arg_advance): Likewise.
21529 (default_function_arg): Likewise.
21530 (default_function_incoming_arg): Likewise.
21531 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
21532 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
21533 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
21534 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
21535 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
21536 * targhooks.h (default_setup_incoming_varargs): Likewise.
21537 (default_pretend_outgoing_varargs_named): Likewise.
21538 (hook_pass_by_reference_must_pass_in_stack): Likewise.
21539 (hook_callee_copies_named): Likewise.
21540 (default_function_arg_advance): Likewise.
21541 (default_function_arg): Likewise.
21542 (default_function_incoming_arg): Likewise.
21543 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
21544 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
21545 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
21546 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
21547 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
21548 * target.def (pass_by_reference): Likewise.
21549 (setup_incoming_varargs, strict_argument_naming): Likewise.
21550 (pretend_outgoing_varargs_named, callee_copies): Likewise.
21551 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
21552 (function_incoming_arg): Likewise.
21553 * target.h: Don't include "tm.h" .
21554 (cumulative_args_t): New typedef.
21555 [GCC_TM_H] (get_cumulative_args): New static inline function.
21556 [GCC_TM_H] (pack_cumulative_args): Likewise.
21557 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
21558 argument type with cumulative_args_t.
21559 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
21560 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
21561 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
21562 (frv_arg_partial_bytes, frv_function_arg): Likewise.
21563 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
21564 (frv_function_arg_1): Likewise.
21565 * config/s390/s390.c (s390_pass_by_reference): Likewise.
21566 (s390_function_arg_advance, s390_function_arg): Likewise.
21567 * config/m32c/m32c.c (m32c_function_arg): Likewise.
21568 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
21569 (m32c_strict_argument_naming): Likewise.
21570 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
21571 (spu_function_arg_advance): Likewise.
21572 (spu_setup_incoming_varargs): Likewise. Make static.
21573 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
21575 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
21576 CUMULATIVE_ARGS* argument type with cumulative_args_t.
21577 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
21578 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
21579 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
21580 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
21581 (mep_pass_by_reference, mep_function_arg): Likewise.
21582 (mep_function_arg_advance): Likewise.
21583 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
21584 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
21585 (m32r_function_arg, m32r_function_arg_advance): Likewise.
21586 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
21587 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
21588 (ix86_function_arg, ix86_pass_by_reference): Likewise.
21589 (ix86_setup_incoming_varargs): Likewise.
21590 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
21591 (sh_strict_argument_naming): Likewise.
21592 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
21593 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
21594 (sh_function_arg_advance, sh_function_arg): Likewise.
21595 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
21596 (pdp11_function_arg_advance): Likewise.
21597 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
21599 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
21600 * config/avr/avr.c (avr_function_arg): Likewise.
21601 (avr_function_arg_advance): Likewise.
21602 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
21603 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
21604 (xtensa_function_arg_1): Likewise.
21605 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
21607 (xstormy16_function_arg): Likewise.
21608 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
21609 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
21610 (fr30_function_arg_advance): Likewise.
21611 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
21612 (lm32_function_arg, lm32_function_arg_advance): Likewise.
21613 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
21614 (moxie_function_arg, moxie_function_arg_advance): Likewise.
21615 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
21616 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
21617 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
21618 (cris_function_arg, cris_function_incoming_arg): Likewise.
21619 (cris_function_arg_advance, cris_function_arg_1): Likewise.
21620 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
21621 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
21622 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
21623 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
21624 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
21625 (mn10300_arg_partial_bytes): Likewise.
21626 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
21627 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
21628 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
21629 (ia64_function_arg_1): Likewise.
21630 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
21631 (m68k_function_arg): Likewise.
21632 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
21633 (rs6000_function_arg, setup_incoming_varargs): Likewise.
21634 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
21635 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
21636 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
21637 (picochip_arg_advance): Likewise.
21638 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
21639 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
21640 (mcore_function_arg_advance): Likewise.
21641 * config/score/score.c (score_pass_by_reference): Likewise.
21642 (score_function_arg_advance): Likewise.
21643 (score_arg_partial_bytes): Likewise. Make static.
21644 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
21645 * config/arm/arm.c (arm_arg_partial_bytes): Replace
21646 CUMULATIVE_ARGS* argument type with cumulative_args_t.
21647 (arm_function_arg, arm_function_arg_advance): Likewise.
21648 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
21649 * config/pa/pa.c (pa_pass_by_reference): Likewise.
21650 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
21651 (pa_function_arg): Likewise.
21652 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
21653 (mips_function_arg, mips_function_arg_advance): Likewise.
21654 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
21655 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
21656 * config/vax/vax.c (vax_function_arg): Likewise.
21657 (vax_function_arg_advance): Likewise.
21658 * config/h8300/h8300.c (h8300_function_arg): Likewise.
21659 (h8300_function_arg_advance): Likewise.
21660 * config/v850/v850.c (v850_pass_by_reference): Likewise.
21661 (v850_strict_argument_naming, v850_function_arg): Likewise.
21662 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
21663 (v850_setup_incoming_varargs): Likewise.
21664 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
21665 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
21666 (mmix_function_arg, mmix_pass_by_reference): Likewise.
21667 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
21669 * config/bfin/bfin.c (setup_incoming_varargs): Replace
21670 CUMULATIVE_ARGS* argument type with cumulative_args_t.
21671 (bfin_function_arg_advance, bfin_function_arg): Likewise.
21672 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
21673 * calls.c (emit_call_1): Change type of args_so_far to
21674 cumulative_args_t. Changed all callers.
21675 (initialize_argument_information): Likewise.
21676 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
21677 * dse.c (get_call_args): Likewise.
21678 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
21679 * function.c (pass_by_reference, reference_callee_copied): Likewise.
21680 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
21681 New member args_so_far_v. Changed all users.
21682 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
21683 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
21684 * config/mips/mips.c (mips_output_args_xfer): Likewise.
21685 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
21686 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
21687 * config/microblaze/microblaze.c (microblaze_expand_prologue):
21689 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
21690 m32r_pass_by_reference.
21692 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
21694 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
21695 argument to be a VEC of statements.
21696 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
21697 assert that pattern statements have to have their vector type set.
21698 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
21699 Change the first argument to be a VEC of statements. Update
21701 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
21702 (vect_handle_widen_mult_by_const): New function.
21703 (vect_recog_widen_mult_pattern): Change the first argument to be a
21704 VEC of statements. Update documentation. Check that the constant is
21705 INTEGER_CST. Support multiplication by a constant that fits an
21706 intermediate type - call vect_handle_widen_mult_by_const.
21707 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
21708 call. Handle additional pattern statements if necessary.
21710 2011-06-16 Nick Clifton <nickc@redhat.com>
21713 * config.gcc: Set cpu_type to v850 for any V850 architecture.
21714 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
21715 md_file, extra_modes, out_file and extra_options are these are all
21716 deduced from cpu_type.
21718 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
21720 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
21721 truncation mask to 63.
21723 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
21727 * longlong.h: Add AVR support:
21728 (count_leading_zeros): New macro.
21729 (count_trailing_zeros): New macro.
21730 (COUNT_LEADING_ZEROS_0): New macro.
21731 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
21732 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
21733 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
21734 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
21735 (LIB2FUNCS_EXCLUDE): Add _clz.
21736 * config/avr/libgcc.S (XCALL): Move up in file.
21737 (XJMP): New C Macro.
21738 (DEFUN): New asm macro.
21739 (ENDF): New asm macro.
21740 (__ffssi2): New function.
21741 (__ffshi2): New function.
21742 (__loop_ffsqi2): New function.
21743 (__ctzsi2): New function.
21744 (__ctzhi2): New function.
21745 (__clzdi2): New function.
21746 (__clzsi2): New function.
21747 (__clzhi2): New function.
21748 (__paritydi2): New function.
21749 (__paritysi2): New function.
21750 (__parityhi2): New function.
21751 (__parityqi2): New function.
21752 (__popcounthi2): New function.
21753 (__popcountsi2): New function.
21754 (__popcountdi2): New function.
21755 (__popcountqi2): New function.
21756 (__bswapsi2): New function.
21757 (__bswapdi2): New function.
21758 (__ashldi3): New function.
21759 (__ashrdi3): New function.
21760 (__lshrdi3): New function.
21761 Fix suspicous lines.
21763 2011-06-16 Richard Guenther <rguenther@suse.de>
21765 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
21766 the same as x != 0.
21767 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
21769 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
21770 equality compares against zero for the lower bit.
21772 2011-06-16 Jakub Jelinek <jakub@redhat.com>
21774 PR tree-optimization/49419
21775 * tree-vrp.c (execute_vrp): Call init_range_assertions
21776 before estimate_numbers_of_iterations, call
21777 free_number_of_iterations_estimates before calling
21778 remove_range_assertions.
21780 2011-06-16 Revital Eres <revital.eres@linaro.org>
21782 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
21783 (struct partial_schedule): Add rows_length field.
21784 (verify_partial_schedule): Check rows_length.
21785 (ps_insert_empty_row): Handle rows_length.
21786 (create_partial_schedule): Likewise.
21787 (free_partial_schedule): Likewise.
21788 (reset_partial_schedule): Likewise.
21789 (create_ps_insn): Remove rest_count argument.
21790 (remove_node_from_ps): Update rows_length.
21791 (add_node_to_ps): Update rows_length and call create_ps_insn
21792 without passing row_rest_count.
21793 (rotate_partial_schedule): Update rows_length.
21795 2011-06-16 Revital Eres <revital.eres@linaro.org>
21797 * ddg.c (add_intra_loop_mem_dep): New function.
21798 (build_intra_loop_deps): Call it.
21800 2011-06-13 Jeff Law <law@redhat.com>
21802 * df-problems.c (df_lr_local_compute): Manually CSE
21803 PIC_OFFSET_TABLE_REGNUM.
21804 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
21805 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
21807 2011-06-13 Jan Hubicka <jh@suse.cz>
21809 * cgraphunit.c (handle_alias_pairs): New function.
21810 (cgraph_finalize_compilation_unit): Use it.
21811 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
21812 as externally visible.
21814 2011-06-15 Richard Guenther <rguenther@suse.de>
21816 * expr.c (expand_expr_real_2): Reduce all integral types to
21817 bitfield precision.
21818 (expand_expr_real_1): Likewise.
21820 2011-06-15 Martin Jambor <mjambor@suse.cz>
21822 PR tree-optimization/48613
21823 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
21824 ipa_node_params_vector is NULL.
21826 2011-06-15 Jakub Jelinek <jakub@redhat.com>
21829 * dwarf2out.c (dw_loc_list_node): Add force field.
21830 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
21831 location in the list, even if it is modified before first real insn.
21832 (output_loc_list): Emit empty ranges with force flag set.
21833 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
21835 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
21838 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
21839 (fence_to_rewind). Use it to notice when bookkeeping will be placed
21840 above a fence. Update comments.
21841 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
21842 placed just above it. Do not allow NULL place_to_insert.
21844 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
21846 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
21847 (slpeel_tree_peel_loop_to_edge): Don't call
21848 remove_dead_stmts_from_loop.
21849 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
21850 remove irrelevant pattern statements. For irrelevant statements
21851 check if it is the last statement of a detected pattern, use
21852 corresponding pattern statement instead.
21853 (destroy_loop_vec_info): No need to remove pattern statements,
21854 only free stmt_vec_info.
21855 (vect_transform_loop): For irrelevant statements check if it is
21856 the last statement of a detected pattern, use corresponding
21857 pattern statement instead.
21858 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
21859 pattern statements. Set basic block for the new statement.
21860 (vect_pattern_recog): Update documentation.
21861 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
21862 operands of pattern statements.
21863 (vectorizable_call): Fix printing. In case of a pattern statement
21864 use the lhs of the original statement when creating a dummy
21865 statement to replace the original call.
21866 (vect_analyze_stmt): For irrelevant statements check if it is
21867 the last statement of a detected pattern, use corresponding
21868 pattern statement instead.
21869 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
21870 statements use gsi of the original statement.
21872 2011-06-14 Joseph Myers <joseph@codesourcery.com>
21874 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
21875 common/common-target-def.h.
21876 * target.def (default_target_flags, handle_option,
21877 supports_split_stack, optimization_table, init_struct,
21878 except_unwind_info, unwind_tables_default, have_named_sections):
21879 Move to common/common-target.def.
21880 * target.h (enum opt_levels, struct default_options): Move to
21881 common/common-target.h.
21882 * targhooks.c (default_except_unwind_info,
21883 dwarf2_except_unwind_info, sjlj_except_unwind_info,
21884 default_target_handle_option, empty_optimization_table): Move to
21885 common/common-targhooks.c.
21886 * targhooks.h (default_except_unwind_info,
21887 dwarf2_except_unwind_info, sjlj_except_unwind_info,
21888 default_target_handle_option, empty_optimization_table): Move to
21889 common/common-targhooks.h.
21890 * common/common-target-def.h: Include common/common-targhooks.h.
21891 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
21893 * common/common-target.def (handle_option, option_init_struct,
21894 option_optimization_table, default_target_flags,
21895 except_unwind_info, supports_split_stack, unwind_tables_default,
21896 have_named_sections): Move from target.def.
21897 (HOOK_PREFIX): Undefine at end of file.
21898 * common/common-target.h: Include input.h.
21899 (enum opt_levels, struct default_options): Move from target.h.
21900 * common/common-targhooks.c, common/common-targhooks.h: New.
21901 * config.gcc (target_has_targetm_common): Default to yes.
21902 (moxie*): Set target_has_targetm_common=no.
21903 (hppa*-*-*): Don't set target_has_targetm_common=yes.
21904 * doc/tm.texi: Regenerate.
21905 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
21906 (C_TARGET_DEF_H): Add common/common-targhooks.h.
21907 (GCC_OBJS): Remove vec.o.
21908 (OBJS): Remove hooks.o and vec.o.
21909 (OBJS-libcommon-target): Add vec.o, hooks.o and
21910 common/common-targhooks.o.
21911 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
21912 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
21913 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
21914 cfglayout.o, $(out_object_file), $(common_out_object_file)):
21915 Update dependencies.
21916 (common/common-targhooks.o): New.
21917 * common/config/default-common.c: Include tm.h. Add FIXME comment.
21918 * common/config/pa/pa-common.c: Include more headers. Take
21919 copyright dates from pa.c.
21920 (pa_option_optimization_table, pa_handle_option,
21921 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
21922 TARGET_HANDLE_OPTION): Move from pa.c.
21923 * common/config/alpha/alpha-common.c,
21924 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
21925 common/config/bfin/bfin-common.c,
21926 common/config/cris/cris-common.c,
21927 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
21928 common/config/h8300/h8300-common.c,
21929 common/config/i386/i386-common.c,
21930 common/config/ia64/ia64-common.c,
21931 common/config/iq2000/iq2000-common.c,
21932 common/config/lm32/lm32-common.c,
21933 common/config/m32c/m32c-common.c,
21934 common/config/m32r/m32r-common.c,
21935 common/config/m68k/m68k-common.c,
21936 common/config/mcore/mcore-common.c,
21937 common/config/mep/mep-common.c,
21938 common/config/microblaze/microblaze-common.c,
21939 common/config/mips/mips-common.c,
21940 common/config/mmix/mmix-common.c,
21941 common/config/mn10300/mn10300-common.c,
21942 common/config/pdp11/pdp11-common.c,
21943 common/config/picochip/picochip-common.c,
21944 common/config/rs6000/rs6000-common.c,
21945 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
21946 common/config/score/score-common.c, common/config/sh/sh-common.c,
21947 common/config/sparc/sparc-common.c,
21948 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
21949 common/config/vax/vax-common.c,
21950 common/config/xstormy16/xstormy16-common.c,
21951 common/config/xtensa/xtensa-common.c: New.
21952 * config/alpha/alpha.c: Include common/common-target.h.
21953 (alpha_option_optimization_table, alpha_handle_option,
21954 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
21955 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
21956 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
21957 * config/arm/arm.c (arm_option_optimization_table,
21958 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
21959 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
21961 * config/avr/avr.c (avr_option_optimization_table,
21962 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
21964 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
21965 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
21966 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
21967 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
21968 * config/cris/cris.c (cris_option_optimization_table,
21969 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
21970 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
21972 * config/fr30/fr30.c (fr30_option_optimization_table,
21973 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
21975 * config/frv/frv.c (frv_option_optimization_table,
21976 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
21977 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
21978 * config/h8300/h8300.c (h8300_option_optimization_table,
21979 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
21980 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
21981 * config/i386/i386-protos.h (ix86_handle_option): Declare.
21982 * config/i386/i386.c: Include common/common-target.h.
21983 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
21984 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
21985 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
21986 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
21987 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
21988 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
21989 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
21990 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
21991 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
21992 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
21993 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
21994 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
21995 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
21996 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
21997 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
21998 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
21999 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
22000 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
22001 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
22002 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
22003 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
22004 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
22005 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
22006 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
22007 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
22008 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
22009 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
22010 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
22011 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
22012 ix86_option_optimization_table, ix86_option_init_struct,
22013 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
22014 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
22015 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
22017 * config/i386/t-i386 (i386.o): Update dependencies.
22018 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
22019 * config/ia64/ia64.c (ia64_option_optimization_table,
22020 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
22021 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
22022 ia64_handle_option): Move to ia64-common.c.
22023 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
22024 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
22025 * config/lm32/lm32.c (lm32_option_optimization_table,
22026 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
22028 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
22030 * config/m32r/m32r.c (m32r_option_optimization_table,
22031 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
22032 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
22033 m32r_handle_option): Move to m32r-common.c.
22034 (m32r_memory_move_cost): Remove comment referring to
22035 TARGET_HANDLE_OPTION.
22036 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
22037 Move to m68k-common.c.
22038 * config/mcore/mcore.c (mcore_option_optimization_table,
22039 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
22040 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
22041 * config/mep/mep.c (mep_option_optimization_table,
22042 mep_handle_option, TARGET_HANDLE_OPTION,
22043 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
22044 Move to mep-common.c.
22045 * config/microblaze/microblaze.c
22046 (microblaze_option_optimization_table,
22047 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
22048 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
22049 * config/mips/mips.c (mips_handle_option,
22050 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
22051 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
22053 * config/mmix/mmix.c (mmix_option_optimization_table,
22054 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
22055 Move to mmix-common.c.
22056 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
22057 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
22058 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
22059 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
22060 * config/pa/pa.c: Include common/common-target.h.
22061 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
22062 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
22063 pa_handle_option): Move to pa-common.c.
22064 (pa_option_override): Use targetm_common.except_unwind_info.
22065 (pa_asm_output_mi_thunk, pa_function_section): Use
22066 targetm_common.have_named_sections.
22067 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
22068 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
22069 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
22070 pdp11_handle_option, pdp11_option_init_struct): Move to
22072 * config/picochip/picochip.c (picochip_option_optimization_table,
22073 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
22074 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
22075 * config/rs6000/rs6000.c: Include common/common-target.h.
22076 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
22077 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
22078 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
22079 rs6000_handle_option): Move to rs6000-common.c.
22080 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
22081 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
22082 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
22083 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
22084 * config/s390/s390.c (processor_flags_table,
22085 s390_option_optimization_table, s390_option_init_struct,
22086 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
22087 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
22088 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
22089 * config/s390/s390.h (processor_flags_table): Declare.
22090 * config/score/score.c (score_option_optimization_table,
22091 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
22092 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
22093 score_handle_option): Move to score-common.c.
22094 * config/sh/sh.c (sh_option_optimization_table,
22095 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
22096 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
22097 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
22098 * config/sparc/sparc.c: Include common/common-target.h.
22099 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
22100 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
22101 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
22102 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
22103 spu_option_init_struct): Move to spu-common.c.
22104 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
22105 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
22106 * config/v850/v850.c (small_memory_physical_max,
22107 v850_handle_memory_optionn v850_handle_option,
22108 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
22109 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
22111 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
22112 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
22113 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
22114 Move to xtensa-common.c.
22115 * cfglayout.c: Include common/common-target.h.
22116 (fixup_reorder_chain): Use targetm_common.have_named_sections.
22117 * cfgrtl.c: Include common/common-target.h.
22118 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
22119 targetm_common.have_named_sections.
22120 * dbxout.c: Include common/common-target.h.
22121 (dbxout_function_end): Use targetm_common.have_named_sections.
22122 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
22123 targetm_common.except_unwind_info.
22124 * dwarf2out.c: Include common/common-target.h.
22125 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
22126 dwarf2out_begin_prologue, dwarf2out_frame_init,
22127 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
22128 targetm_common.except_unwind_info.
22129 * except.c: Include common/common-target.h.
22130 (init_eh, finish_eh_generation,
22131 output_one_function_exception_table): Use
22132 targetm_common.except_unwind_info.
22133 (switch_to_exception_section): Use targetm_common.have_named_sections.
22134 * explow.c: Include common/common-target.h.
22135 * expr.c: Include common/common-target.h.
22136 (build_personality_function): Use targetm_common.except_unwind_info.
22137 * function.c: Include common/common-target.h.
22138 (expand_function_end): Use targetm_common.except_unwind_info.
22139 * haifa-sched.c: Include common/common-target.h.
22140 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
22141 * lto-opts.c: Include common/common-target.h instead of target.h.
22142 (lto_reissue_options): Use targetm_common.handle_option.
22143 * opts.c: Include common/common-target.h.
22144 (target_handle_option): Use targetm_common.handle_option.
22145 (init_options_struct): Update comment referring to
22146 targetm.target_option.optimization. Use
22147 targetm_common.default_target_flags,
22148 targetm_common.unwind_tables_default and
22149 targetm_common.option_init_struct.
22150 (default_options_optimization): Use
22151 targetm_common.option_optimization_table.
22152 (finish_options): Use targetm_common.except_unwind_info,
22153 targetm_common.unwind_tables_default,
22154 targetm_common.have_named_sections and
22155 targetm_common.supports_split_stack.
22156 * toplev.c: Include common/common-target.h.
22157 (process_options): Use targetm_common.have_named_sections.
22158 * tree-tailcall.c: Include common/common-target.h.
22159 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
22160 * tree.c: Include common/common-target.h.
22161 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
22162 * varasm.c: Include common/common-target.h.
22163 (resolve_unique_section, hot_function_section,
22164 default_function_section): Use targetm_common.have_named_sections.
22166 2011-06-14 Easwaran Raman <eraman@google.com>
22168 PR rtl-optimization/44194
22169 * dse.c: Include tree-flow.h
22170 (insn_info): Add new field non_frame_wild_read.
22171 (group_info): Add new fields escaped_n and escaped_p.
22172 (kill_on_calls): New variable.
22173 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
22174 (dse_step0): Initialize kill_on_calls.
22175 (can_escape): New function.
22176 (set_usage_bits): Add additional parameter; record information
22177 about escaped locations.
22178 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
22179 (dse_step2_nospill): Set kill_on_calls based on
22180 group->escaped_n and group->escaped_n.
22181 (add_wild_read): Refactor into...
22182 (reset_active_stores): ... New function, and
22183 (free_read_records): ... New function.
22184 (add_non_frame_wild_read): New function.
22185 (scan_insn): Call add_non_frame_wild_read on non-const calls.
22186 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
22187 (dse_step5_nospill): Call scan_reads_nospill for instructions
22188 marked as non_frame_wild_read.
22189 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
22191 2011-06-14 Joseph Myers <joseph@codesourcery.com>
22193 * common/common-target-def.h, common/common-target.def,
22194 common/common-target.h, common/config/default-common.c,
22195 common/config/pa/pa-common.c: New files.
22196 * Makefile.in (common_out_file, common_out_object_file,
22197 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
22198 (OBJS-libcommon-target): Include $(common_out_object_file).
22199 (prefix.o): Update dependencies.
22200 ($(common_out_object_file), common/common-target-hooks-def.h,
22201 s-common-target-hooks-def-h): New.
22202 (s-tm-texi): Also check timestamp on common-target.def.
22203 (build/genhooks.o): Update dependencies.
22204 * config.gcc (common_out_file, target_has_targetm_common): Define.
22205 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
22206 TARGET_ALWAYS_STRIP_DOTDOT.
22207 * configure.ac (common_out_object_file): Define.
22208 (common_out_file, common_out_object_file): Substitute.
22209 (common): Create directory.
22210 * configure: Regenerate.
22211 * doc/tm.texi.in (targetm_common): Document.
22212 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
22213 * doc/tm.texi: Regenerate.
22214 * genhooks.c (hook_array): Also include common/common-target.def.
22215 * prefix.c (tm.h): Don't include.
22216 (common/common-target.h): Include.
22217 (ALWAYS_STRIP_DOTDOT): Don't define.
22218 (update_path): Use targetm_common.always_strip_dotdot instead of
22219 ALWAYS_STRIP_DOTDOT.
22220 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
22222 2011-06-14 David Li <davidxl@google.com>
22224 * passes.c (execute_function_todo): Remove TODO_dump_func.
22225 (execute_one_pass): Remove TODO_dump_func.
22226 (execute_function_dump): New function.
22227 * tree-vrp.c: Remove TODO_dump_func.
22228 * regrename.c: Remove TODO_dump_func.
22229 * fwprop.c: Remove TODO_dump_func.
22230 * tree-into-ssa.c: Remove TODO_dump_func.
22231 * tree-complex.c: Remove TODO_dump_func.
22232 * tracer.c: Remove TODO_dump_func.
22233 * tree-loop-distribution.c: Remove TODO_dump_func.
22234 * postreload-gcse.c: Remove TODO_dump_func.
22235 * postreload.c: Remove TODO_dump_func.
22236 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
22237 * tree-tailcall.c: Remove TODO_dump_func.
22238 * ipa-cp.c: Remove TODO_dump_func.
22239 * final.c: Remove TODO_dump_func.
22240 * tree-emutls.c: Remove TODO_dump_func.
22241 * omp-low.c: Remove TODO_dump_func.
22242 * tree-ssa-dse.c: Remove TODO_dump_func.
22243 * tree-ssa-uncprop.c: Remove TODO_dump_func.
22244 * auto-inc-dec.c: Remove TODO_dump_func.
22245 * reorg.c: Remove TODO_dump_func.
22246 * tree-ssa-copyrename.c: Remove TODO_dump_func.
22247 * tree-ssa-ccp.c: Remove TODO_dump_func.
22248 * compare-elim.c: Remove TODO_dump_func.
22249 * mode-switching.c: Remove TODO_dump_func.
22250 * modulo-sched.c: Remove TODO_dump_func.
22251 * tree-call-cdce.c: Remove TODO_dump_func.
22252 * cse.c: Remove TODO_dump_func.
22253 * web.c: Remove TODO_dump_func.
22254 * tree-stdarg.c: Remove TODO_dump_func.
22255 * lto-streamer-out.c: Remove TODO_dump_func.
22256 * tree-ssa-math-opts.c: Remove TODO_dump_func.
22257 * tree-ssa-dom.c: Remove TODO_dump_func.
22258 * tree-nrv.c: Remove TODO_dump_func.
22259 * loop-init.c: Remove TODO_dump_func.
22260 * gimple-low.c: Remove TODO_dump_func.
22261 * ipa-inline.c: Remove TODO_dump_func.
22262 * tree-ssa-sink.c: Remove TODO_dump_func.
22263 * jump.c: Remove TODO_dump_func.
22264 * ifcvt.c: Remove TODO_dump_func.
22265 * tree-ssa-loop.c: Remove TODO_dump_func.
22266 * recog.c: Remove TODO_dump_func.
22267 * dse.c: Remove TODO_dump_func.
22268 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
22269 * matrix-reorg.c: Remove TODO_dump_func.
22270 * tree-eh.c: Remove TODO_dump_func.
22271 * regmove.c: Remove TODO_dump_func.
22272 * function.c: Remove TODO_dump_func.
22273 * tree-vectorizer.c: Remove TODO_dump_func.
22274 * ipa-split.c: Remove TODO_dump_func.
22275 * gcse.c: Remove TODO_dump_func.
22276 * tree-if-conv.c: Remove TODO_dump_func.
22277 * init-regs.c: Remove TODO_dump_func.
22278 * tree-ssa-phiopt.c: Remove TODO_dump_func.
22279 * implicit-zee.c: Remove TODO_dump_func.
22280 * lower-subreg.c: Remove TODO_dump_func.
22281 * bt-load.c: Remove TODO_dump_func.
22282 * tree-dfa.c: Remove TODO_dump_func.
22283 * except.c: Remove TODO_dump_func.
22284 * emit-rtl.c: Remove TODO_dump_func.
22285 * store-motion.c: Remove TODO_dump_func.
22286 * cfgexpand.c: Remove TODO_dump_func.
22287 * tree-cfgcleanup.c: Remove TODO_dump_func.
22288 * cfgcleanup.c: Remove TODO_dump_func.
22289 * tree-ssa-pre.c: Remove TODO_dump_func.
22290 * tree-sra.c: Remove TODO_dump_func.
22291 * tree-mudflap.c: Remove TODO_dump_func.
22292 * tree-ssa-copy.c: Remove TODO_dump_func.
22293 * cfglayout.c: Remove TODO_dump_func.
22294 * tree-ssa-forwprop.c: Remove TODO_dump_func.
22295 * tree-ssa-dce.c: Remove TODO_dump_func.
22296 * ira.c: Remove TODO_dump_func.
22297 * tree-ssa.c: Remove TODO_dump_func.
22298 * integrate.c: Remove TODO_dump_func.
22299 * tree-optimize.c: Remove TODO_dump_func.
22300 * tree-ssa-phiprop.c: Remove TODO_dump_func.
22301 * tree-object-size.c: Remove TODO_dump_func.
22302 * combine.c: Remove TODO_dump_func.
22303 * bb-reorder.c: Remove TODO_dump_func.
22304 * cprop.c: Remove TODO_dump_func.
22305 * var-tracking.c: Remove TODO_dump_func.
22306 * tree-profile.c: Remove TODO_dump_func.
22307 * tree-vect-generic.c: Remove TODO_dump_func.
22308 * reg-stack.c: Remove TODO_dump_func.
22309 * sched-rgn.c: Remove TODO_dump_func.
22310 * tree-ssa-structalias.c: Remove TODO_dump_func.
22311 * tree-switch-conversion.c: Remove TODO_dump_func.
22312 * tree-cfg.c: Remove TODO_dump_func.
22313 * tree-ssa-reassoc.c: Remove TODO_dump_func.
22314 * combine-stack-adj.c: Remove TODO_dump_func.
22315 * dce.c: Remove TODO_dump_func.
22316 * tree-ssanames.c: Remove TODO_dump_func.
22317 * regcprop.c: Remove TODO_dump_func.
22319 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
22321 PR middle-end/47364
22322 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
22323 and properly handle result not in Pmode.
22325 2011-06-14 Robert Millan <rmh@gnu.org>
22327 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
22328 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
22331 * config/i386/kfreebsd-gnu64.h: New file.
22332 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
22333 with `i386/kfreebsd-gnu64.h'.
22335 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
22336 (GNU_USER_LINK_EMULATION64): New macros.
22337 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
22338 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
22339 of hardcoding `elf_i386' and `elf_x86_64'.
22341 2011-06-14 Nick Clifton <nickc@redhat.com>
22344 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
22347 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
22349 2011-06-14 Jakub Jelinek <jakub@redhat.com>
22352 * tree.h (DECL_NONSHAREABLE): Define.
22353 (struct tree_decl_common): Change decl_common_unused to
22354 decl_nonshareable_flag.
22355 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
22356 Ignore vars with DECL_NONSHAREABLE bit set.
22357 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
22358 on stores to automatic aggregate vars.
22360 PR rtl-optimization/49390
22362 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
22364 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
22367 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
22368 Tom de Vries <tom@codesourcery.com>
22371 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
22372 Document changed semantics.
22373 (max_stmt_executions, max_stmt_executions_int): Declare.
22374 * tree-data-ref.c (estimated_loop_iterations)
22375 (estimated_loop_iterations_int): Move functions...
22376 * tree-ssa-loop-niter.c (estimated_loop_iterations)
22377 (estimated_loop_iterations_int): here.
22378 (record_estimate): Change nb_iterations_upper_bound and
22379 nb_iterations_estimate semantics.
22380 (max_stmt_executions, max_stmt_executions_int): New function.
22381 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
22382 (max_stmt_executions_tree): this.
22383 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
22384 estimated_loop_iterations_tree.
22385 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
22386 max_stmt_executions_int instead of estimated_loop_iterations_int.
22387 * predict.c (predict_loops): Idem.
22388 * tree-parloops.c (parallelize_loops): Idem.
22389 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
22390 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
22391 (init_omega_for_ddr_1): Idem.
22392 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
22393 (loop_prefetch_arrays): Idem
22394 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
22395 max_stmt_executions instead of estimated_loop_iterations.
22396 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
22397 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
22398 instead of nb_iterations_upper_bound.
22400 2011-06-13 Jan Hubicka <jh@suse.cz>
22402 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
22404 2011-06-14 Richard Henderson <rth@redhat.com>
22407 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
22408 (based_loc_descr): Assert it's true.
22409 (compute_frame_pointer_to_fb_displacement): Set it, rather than
22410 aborting immediately.
22412 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
22413 Mingfeng Wu <mingfeng@faraday-tech.com>
22415 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
22417 2011-06-13 Jan Hubicka <jh@suse.cz>
22419 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
22421 2011-06-13 Jan Hubicka <jh@suse.cz>
22423 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
22424 similarly to DECL_COMDAT.
22425 * cgraphunit.c (cgraph_analyze_function): Likewise.
22426 * ipa.c (function_and_variable_visibility): Likewise.
22428 2011-06-13 Jan Hubicka <jh@suse.cz>
22430 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
22431 BINFO_VIRTUALS when streaming for ltrans unit.
22433 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
22435 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
22436 (movdi_internal64): Same.
22438 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
22441 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
22442 a set of similar patterns, where the MATCH_OPERAND for the function
22443 argument is replaced with individual references to hardware registers.
22444 (save_fpregs_<mode>): Ditto
22445 (restore_gpregs_<mode>): Ditto
22446 (return_and_restore_gpregs_<mode>): Ditto
22447 (return_and_restore_fpregs_<mode>): Ditto
22448 (return_and_restore_fpregs_aix_<mode>): Ditto
22450 2011-06-13 Jan Hubicka <jh@suse.cz>
22452 * ipa-utils.c (postorder_stack): New structure.
22453 (ipa_reverse_postorder): Handle aliases.
22455 2011-06-13 Jan Hubicka <jh@suse.cz>
22457 * ipa-inline.c (reset_edge_caches): Walk aliases.
22458 (update_caller_keys): Do not test inlinability of aliases.
22459 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
22460 (do_estimate_growth): Fix typo.
22462 2011-06-13 Jan Hubicka <jh@suse.cz>
22464 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
22465 (can_remove_node_now_p): ... here; handle same comdat groups.
22466 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
22467 (inline_call): Update use of can_remove_node_now_p.
22469 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
22471 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
22472 condition to disallow non-identical memory locations.
22473 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
22474 preference to bit manipulation instructions.
22476 2011-06-13 Jan Hubicka <jh@suse.cz>
22478 * cgraph.c (cgraph_for_node_thunks_and_aliases,
22479 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
22480 (nonremovable_p): New function.
22481 (cgraph_can_remove_if_no_direct_calls_p): New function.
22482 (used_from_object_file_p): New functoin.
22483 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
22484 references from aliases.
22485 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
22486 * ipa-inline.c (check_caller_edge): New function.
22487 (want_inline_function_called_once_p): Use it; accept aliases called
22489 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
22491 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
22494 * config/arm/neon.md (vec_pack_trunc): Set the lengths
22495 correctly for the case with Quad vectors.
22497 2011-06-13 Jakub Jelinek <jakub@redhat.com>
22498 Ira Rosen <ira.rosen@linaro.org>
22500 PR tree-optimization/49352
22501 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
22502 all, make sure loop_use_stmt after the loop is a def stmt of a used
22503 SSA_NAME that is the only one defined inside of the loop. Don't
22504 check for COND_EXPR and GIMPLE_BINARY_RHS.
22505 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
22506 check_reduction is true.
22508 2011-06-11 Jan Hubicka <jh@suse.cz>
22510 PR middle-end/49373
22511 * ipa.c (cgraph_externally_visible_p): Check resolution info.
22513 2011-06-11 Jan Hubicka <jh@suse.cz>
22515 PR middle-end/48836
22516 * ipa-inline-transform.c: Include tree-pass.h
22517 (inline_transform): Set TODO_update_ssa_only_virtuals.
22518 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
22520 2011-06-11 Jan Hubicka <jh@suse.cz>
22522 PR middle-end/49378
22523 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
22524 aliases and thunks.
22526 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
22528 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
22529 Take number of iterations to peel into account for equally frequent
22530 misalignment values.
22532 2011-06-11 Jan Hubicka <jh@suse.cz>
22534 * lto-streamer-out.c (produce_symtab): Stream out the newly
22535 represented aliases.
22537 2011-06-11 Jan Hubicka <jh@suse.cz>
22539 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
22541 (ipa_update_after_lto_read): Likewise.
22542 (ipa_write_node_info): Do not sream call_with_var_arguments.
22543 (ipa_read_node_info): Likewise.
22545 2011-06-11 Jan Hubicka <jh@suse.cz>
22547 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
22549 2011-06-11 Jan Hubicka <jh@suse.cz>
22551 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
22552 (lto_symtab_resolve_can_prevail_p): Likewise.
22553 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
22554 * cgraph.c (same_body_aliases_done): New global var.
22555 (cgraph_same_body_alias_1): Rename to ...
22556 (cgraph_create_function_alias): ... this one; reorg to new
22558 (cgraph_same_body_alias): Use cgraph_create_function_alias;
22559 record references when asked to.
22560 (cgraph_add_thunk): Fix formating.
22561 (cgraph_get_node): Kill same body alias code.
22562 (cgraph_node_for_asm): Likewise.
22563 (cgraph_remove_same_body_alias): Remove.
22564 (cgraph_remove_node): Kill same body alias code.
22565 (cgraph_mark_address_taken_node): Mark also the aliased function
22566 as having address taken.
22567 (dump_cgraph_node): Dump same body aliases.
22568 (cgraph_for_node_thunks_and_aliases): Update for new alias
22570 (cgraph_for_node_and_aliases): Likewise.
22571 * cgraph.h (same_body): Kll pointer.
22572 (same_body_alias): Update comment.
22573 (same_body_aliases_done): Declare.
22574 (cgraph_remove_same_body_alias): Remove declaration.
22575 (cgraph_create_function_alias): Declare.
22576 (cgraph_process_same_body_aliases): Declare.
22577 (cgraph_function_with_gimple_body_p): Check for alias.
22578 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
22579 (cgraph_alias_aliased_node): New function.
22580 (cgraph_function_node): Update for new aliases.
22581 (cgraph_function_or_thunk_node): Likewise.
22582 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
22583 (inline_call): Remove dead aliases.
22584 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
22585 name hack for same body aliases.
22586 (clone_of_p): Look through aliases.
22587 (verify_cgraph_node): Verify aliases.
22588 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
22589 (cgraph_process_same_body_aliases): New function.
22590 (process_function_and_variable_attributes): Disable weakref warning on
22592 (cgraph_analyze_functions): Handle aliases.
22593 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
22594 (assemble_thunks): Rename to ...
22595 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
22596 (cgraph_expand_function): Remove alias output code.
22597 (cgraph_output_in_order): Skip aliases.
22598 (cgraph_preserve_function_body_p): Aliases don't need preserving.
22599 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
22600 (ipa_record_reference): Do not assert on alias references.
22601 (ipa_ref_has_aliases_p): New function.
22602 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
22603 (ipa_ref_has_aliases_p): Declare.
22604 * lto-cgraph.c (lto_output_node): Handle aliases.
22605 (input_node): Likewise.
22606 * lto-streamer-out.c (lto_output): Skip aliases.
22607 (produce_symtab): Kill same_body_alias code.
22608 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
22609 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
22610 * ipa-inline.c (update_caller_keys): Walk aliases.
22611 (inline_small_functions): Fix thinko in previous patch.
22612 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
22613 (function_and_variable_visibility): Do not walk same body aliases.
22614 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
22615 (ipa_pta_execute): Use it.
22617 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
22619 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
22620 (*vec_dupv2df): Rename from vec_dupv2df.
22621 (vec_dupv2df): New expander.
22623 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
22625 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
22627 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
22629 * config/i386/i386.md: Use default value in "isa" attribute.
22630 * config/i386/sse.md: Ditto.
22631 * config/i386/mmx.md: Ditto.
22633 2011-06-10 Wei Guozhi <carrot@google.com>
22636 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
22637 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
22638 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
22640 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
22642 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
22643 (arm_legitimate_ldrd_p): New prototype.
22644 (arm_output_ldrd): New prototype.
22645 * config/arm/arm.c (arm_check_ldrd_operands): New function.
22646 (arm_legitimate_ldrd_p): New function.
22647 (arm_output_ldrd): New function.
22649 2011-06-10 David Li <davidxl@google.com>
22651 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
22652 * passes.c (passr_eq): New function.
22653 (create_pass_tab): New function.
22654 (pass_traverse): New function.
22655 (dump_one_pass): New function.
22656 (dump_pass_list): New function.
22657 (dump_passes): New function.
22659 2011-06-10 Jan Hubicka <jh@suse.cz>
22661 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
22662 setting the nothrow flag.
22663 * ipa-reference.c (propagate): Skip aliases.
22664 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
22665 (propagate_nothrow): Skip aliases; do not update cgraph.
22666 (local_pure_const): Do not update cgraph.
22667 * tree-profile.c (tree_profiling): Do fixup_cfg.
22669 2011-06-10 Jan Hubicka <jh@suse.cz>
22671 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
22672 (cgraph_local_node_p): ... here; handle aliases.
22673 (has_addr_references_p): Break out from ...;
22674 (cgraph_remove_unreachable_nodes) ... here.
22676 2011-06-10 Jan Hubicka <jh@suse.cz>
22678 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
22679 * common.opt (flag_inline_functions_called_once): Do not
22682 2011-06-10 Jan Hubicka <jh@suse.cz>
22684 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
22685 (ipcp_initialize_node_lattices): Do not deal with aliases;
22686 Do not try to propagate through thunks.
22687 (ipcp_change_tops_to_bottom): Do not deal with aliases.
22689 2011-06-10 Jan Hubicka <jh@suse.cz>
22691 * ipa-prop.c (ipa_write_node_info): Stream jump functions
22692 for indirect calls.
22693 (ipa_read_node_info): Likewise.
22695 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22698 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
22699 (build_and_insert_call): Likewise.
22700 (build_and_insert_ref): New.
22701 (gimple_expand_builtin_pow): Minor cleanup.
22702 (gimple_expand_builtin_cabs): New.
22703 (execute_cse_sincos): Add case for BUILT_IN_CABS.
22705 2011-06-10 Jan Hubicka <jh@suse.cz>
22707 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
22708 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
22709 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
22710 (ipcp_propagate_stage): Skip aliases when propagating.
22711 (ipcp_need_redirect_p): Skip aliases.
22712 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
22713 collect_callers_of_node.
22714 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
22716 (ipa_compute_jump_functions): Look through aliases.
22718 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22720 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
22722 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
22724 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
22726 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
22728 2011-06-10 Jan Hubicka <jh@suse.cz>
22730 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
22731 Update call of gimple_get_virt_method_for_binfo.
22732 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
22733 refuse_thunks parameter.
22734 (gimple_fold_call): Update.
22735 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
22737 2011-06-10 Jan Hubicka <jh@suse.cz>
22739 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
22740 (not_all_callers_have_enough_arguments_p): ... this one; turn into
22741 worker for cgraph_for_node_and_aliases.
22742 (convert_callers_for_node): Break out from ...
22743 (convert_callers): ... here.
22744 (modify_function): Use collect_callers_of_node.
22745 (ipa_early_sra): Use cgraph_for_node_and_aliases.
22747 2011-06-10 Richard Guenther <rguenther@suse.de>
22749 PR tree-optimization/49361
22750 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
22751 when not already in gimple form.
22753 2011-06-10 Richard Guenther <rguenther@suse.de>
22756 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
22757 FOR_EACH_PHI_OR_STMT_USE.
22759 2011-06-10 Jan Hubicka <jh@suse.cz>
22761 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
22762 (clone_inlined_nodes): ... here.
22763 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
22764 to real destination prior inlining.
22765 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
22766 can_early_inline_edge_p, want_early_inline_function_p,
22767 want_early_inline_function_p, want_inline_small_function_p,
22768 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
22769 edge_badness, update_all_callee_keys, lookup_recursive_calls,
22770 add_new_edges_to_heap, inline_small_functions, flatten_function,
22771 inline_always_inline_functions, early_inline_small_functions): Use
22772 cgraph_function_or_thunk_node.
22773 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
22774 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
22775 (do_estimate_edge_growth_1): Break out from ...
22776 (do_estimate_growth) ... here; walk aliases.
22777 (inline_generate_summary): Skip aliases.
22779 2011-06-10 Richard Guenther <rguenther@suse.de>
22781 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
22782 forward when combining, visit inserted stmts when a stmt was changed.
22784 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
22786 * tree.h (error_operand_p): Add.
22787 * dbxout.c (dbxout_type_fields): Use the latter.
22788 * c-decl.c (add_stmt): Likewise.
22789 * gimplify.c (omp_add_variable, omp_notice_variable,
22790 gimplify_scan_omp_clauses): Likewise.
22792 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
22794 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
22795 when a value is actually passed in regs.
22797 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
22798 Laurent Rougé <laurent.rouge@menta.fr>
22800 * doc/invoke.texi (SPARC options): Add -mflat.
22801 * config/sparc/sparc.opt: Likewise.
22802 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
22803 (sparc_flat_expand_prologue): Declare.
22804 (sparc_flat_expand_epilogue): Likewise.
22805 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
22806 (CPP_ENDIAN_SPEC): Replace with...
22807 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
22808 (CPP_SPEC): Adjust to above change.
22809 (EXTRA_SPECS): Likewise.
22810 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
22811 (INCOMING_REGNO): Likewise.
22812 (OUTGOING_REGNO): Likewise.
22813 (LOCAL_REGNO): Likewise.
22814 (SETUP_FRAME_ADDRESSES): Likewise.
22815 (FIXED_REGISTERS): Set 0 for %fp.
22816 (CALL_USED_REGISTERS): Likewise.
22817 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
22818 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
22819 (RETURN_ADDR_REGNUM): Define.
22820 (RETURN_ADDR_RTX): Use it.
22821 (INCOMING_RETURN_ADDR_REGNUM): Define.
22822 (INCOMING_RETURN_ADDR_RTX): Use it.
22823 (DWARF_FRAME_RETURN_COLUMN): Likewise.
22824 (EH_RETURN_REGNUM): Define.
22825 (EH_RETURN_STACKADJ_RTX): Use it.
22826 (EH_RETURN_HANDLER_RTX): Delete.
22827 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
22828 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
22830 (struct machine_function): Add frame_size, apparent_frame_size,
22831 frame_base_reg, frame_base_offset, n_global_fp_regs and
22832 save_local_in_regs_p fields.
22833 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
22834 sparc_frame_base_offset, sparc_n_global_fp_regs,
22835 sparc_save_local_in_regs_p): New macros.
22836 (sparc_option_override): Error out if -fcall-saved-REG is specified
22838 (eligible_for_restore_insn): Fix formatting.
22839 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
22840 (eligible_for_sibcall_delay): Likewise.
22841 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
22842 (sparc_legitimate_address_p): Adjust to above change.
22843 (save_global_or_fp_reg_p): New predicate.
22844 (return_addr_reg_needed_p): Likewise.
22845 (save_local_or_in_reg_p): Likewise.
22846 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
22847 (SORR_SAVE, SORR_RESTORE): Delete.
22848 (sorr_pred_t): New typedef.
22849 (sorr_act_t): New enum.
22850 (save_or_restore_regs): Rename to...
22851 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
22852 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
22853 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
22854 mechanism. Add CFI information for double-word saves in 32-bit mode.
22855 (emit_adjust_base_to_offset): New function extracted from...
22856 (emit_save_or_restore_regs): ...this. Rename the rest to...
22857 (emit_save_or_restore_regs_global_fp_regs): ...this.
22858 (emit_save_or_restore_regs_local_in_regs): New function.
22859 (gen_create_flat_frame_[123]): New functions.
22860 (sparc_expand_prologue): Use SIZE local variable. Adjust.
22861 (sparc_flat_expand_prologue): New function.
22862 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
22863 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
22864 (sparc_flat_expand_epilogue): New function.
22865 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
22866 (output_return): Likewise.
22867 (output_sibcall): Likewise.
22868 (sparc_output_mi_thunk): Likewise.
22869 (sparc_frame_pointer_required): Likewise.
22870 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
22871 function optimization.
22872 * config/sparc/sparc.md (flat): New attribute.
22873 (prologue): Add TARGET_FLAT handling.
22874 (save_register_window): Disable if TARGET_FLAT.
22875 (create_flat_frame_[123]): New patterns.
22876 (epilogue): Add TARGET_FLAT handling.
22877 (sibcall_epilogue): Likewise.
22878 (eh_return): New expander.
22879 (eh_return_internal): New insn and splitter.
22880 (return_internal): Add TARGET_FLAT handling.
22881 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
22882 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
22883 (nonlocal_goto): Add TARGET_FLAT handling.
22884 * config/sparc/t-elf: Add -mflat multilib.
22885 * config/sparc/t-leon: Likewise.
22887 2011-06-10 Jan Hubicka <jh@suse.cz>
22889 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
22890 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
22891 (self_recursive_p): Use cgraph_function_node.
22892 (propagate_pure_const): Likewise.
22893 (propagate_nothrow): Likewise.
22894 * ipa-reference.c (ipa_reference_get_not_read_global): Use
22895 cgraph_function_node.
22896 (propagate_bits): Likewise.
22897 (propagate): Likewise.
22899 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
22900 Richard Earnshaw <rearnsha@arm.com>
22902 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
22903 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
22904 (*thumb2_movdi_vfp): Delete.
22905 (*arm_movdi_vfp_cortexa8): Delete.
22906 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
22907 (*movdi_vfp_cortexa8): Likewise.
22909 2011-06-10 Richard Guenther <rguenther@suse.de>
22911 * stor-layout.c (initialize_sizetypes): Give names to all
22914 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
22916 PR tree-optimization/49318
22917 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
22918 irrelevant pattern statements.
22920 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
22922 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
22925 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
22926 to last assignment.
22928 2011-06-09 Jan Hubicka <jh@suse.cz>
22930 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
22931 do not recompute reachable flag.
22932 (cgraph_finalize_function, cgraph_analyze_functions): Set
22933 redefined_extern_inline here.
22935 2011-06-09 Jan Hubicka <jh@suse.cz>
22937 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
22938 (cgraph_only_called_directly_p): ... this one; bring offline.
22939 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
22940 varpool_used_from_object_file_p): Drop names from the declaratoin.
22941 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
22942 collect_callers_of_node): New.
22943 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
22944 (cgraph_edge_recursive_p): Use cgraph_function_node.
22945 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
22946 (cgraph_node_cannot_be_local_p_1): Break out from ...
22947 (cgraph_node_can_be_local_p): ... here; walk aliases.
22948 (cgraph_for_node_thunks_and_aliases): New function.
22949 (cgraph_for_node_and_aliases): New function.
22950 (cgraph_make_node_local_1): Break out from ...
22951 (cgraph_make_node_local) ... here; use
22952 cgraph_for_node_thunks_and_aliases.
22953 (cgraph_set_nothrow_flag_1): Break out from ...
22954 (cgraph_set_nothrow_flag) ... here;
22955 use cgraph_for_node_thunks_and_aliases.
22956 (cgraph_set_const_flag_1): Break out from ...
22957 (cgraph_set_const_flag) ... here;
22958 use cgraph_for_node_thunks_and_aliases.
22959 (cgraph_set_pure_flag_1): Break out from ...
22960 (cgraph_set_pure_flag) ... here;
22961 use cgraph_for_node_thunks_and_aliases.
22962 (cgraph_propagate_frequency_1): Break out from ...
22963 (cgraph_propagate_frequency) ... here; use
22964 cgraph_for_node_thunks_and_aliases.
22965 (cgraph_used_from_object_file_p): Do not care about aliases.
22966 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
22968 (collect_callers_of_node_1, collect_callers_of_node): New functions.
22970 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
22972 PR rtl-optimization/49154
22973 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
22974 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
22975 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
22976 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
22977 * config/cris/cris.h (cris_register_move_cost): Remove
22978 !TARGET_V32 code. Tweak comments.
22980 2011-06-09 Jan Hubicka <jh@suse.cz>
22982 * cgraphbuild.c (record_eh_tables): Mark personality function as having
22985 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
22987 PR rtl-optimization/49154
22988 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
22989 is a matching slot in the hashtable, assign it to classes_ptr.
22991 PR rtl-optimization/49154
22992 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
22994 * doc/tm.texi: Regenerate.
22996 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
22999 * config/sh/sh.md (UNSPEC_CHKADD): New.
23000 (chk_guard_add): New define_insn_and_split.
23001 (symGOT_load): Use chk_guard_add instead of blockage.
23003 2011-06-09 Kai Tietz <ktietz@redhat.com>
23005 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
23007 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
23009 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
23011 2011-06-09 Wei Guozhi <carrot@google.com>
23014 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
23015 (peephole2 for conditional move): Generate 16 bit instructions.
23017 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
23019 * config/i386/i386.md (*movdi_internal_rex64): Merge
23020 alternatives 6 and 8.
23022 2011-06-09 David Li <davidxl@google.com>
23024 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
23025 * passes.c (passr_eq): New function.
23026 (create_pass_tab): New function.
23027 (pass_traverse): New function.
23028 (dump_one_pass): New function.
23029 (dump_pass_list): New function.
23030 (dump_passes): New function.
23032 2011-06-09 David Li <davidxl@google.com>
23034 * tree-complex.c (tree_lower_complex): Gate cleanup.
23035 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
23036 (execute_optimize_stdarg): Ditto.
23037 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
23038 (execute_cleanup_eh_1): Ditto.
23039 (execute_cleanup_eh): Ditto.
23040 * gcse.c (gate_rtl_pre): Ditto.
23041 (execute_rtl_pre): Ditto.
23042 * except.c (finish_eh_generation): Ditto.
23043 (convert_to_eh_region_ranges): Ditto.
23044 * cprop.c (one_cprop_pass): Ditto.
23046 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
23049 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
23050 in all basic blocks.
23052 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23054 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
23055 (HAVE_ENABLE_EXECUTE_STACK): Define.
23056 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
23057 (HAVE_ENABLE_EXECUTE_STACK): Define.
23058 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
23059 (HAVE_ENABLE_EXECUTE_STACK): Define.
23060 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
23061 (ENABLE_EXECUTE_STACK): Remove.
23062 (HAVE_ENABLE_EXECUTE_STACK): Define.
23063 [IN_LIBGCC2]: Don't include <windows.h>.
23064 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
23065 (HAVE_ENABLE_EXECUTE_STACK): Define.
23066 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
23067 (HAVE_ENABLE_EXECUTE_STACK): Define.
23068 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
23069 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
23070 (HAVE_ENABLE_EXECUTE_STACK): Define.
23071 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
23072 (HAVE_ENABLE_EXECUTE_STACK): Define.
23073 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
23074 (HAVE_ENABLE_EXECUTE_STACK): Define.
23075 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
23076 (HAVE_ENABLE_EXECUTE_STACK): Define.
23077 * config/alpha/alpha.c (alpha_trampoline_init): Test
23078 HAVE_ENABLE_EXECUTE_STACK.
23079 * config/i386/i386.c (ix86_trampoline_init): Likewise.
23080 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
23081 (sparc64_initialize_trampoline): Likewise.
23082 * libgcc2.c [L_enable_execute_stack]: Remove.
23083 * system.h (ENABLE_EXECUTE_STACK): Poison.
23084 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
23085 * doc/tm.texi: Regenerate.
23086 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
23088 2011-06-09 Jakub Jelinek <jakub@redhat.com>
23090 PR middle-end/49308
23091 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
23092 variable. After resetting and rescanning insn continue with previous
23095 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23097 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
23098 (gcc_cv_ld_hidden): Likewise.
23099 * configure: Regenerate.
23100 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
23101 (ix86_stack_protect_fail): Mark unused.
23102 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
23103 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
23104 [TARGET_MACHO]: Don't define.
23105 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
23106 (TARGET_STACK_PROTECT_FAIL): Likewise.
23107 (rs6000_stack_protect_fail): Mark unused.
23108 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
23109 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
23111 2011-06-08 Andi Kleen <ak@linux.intel.com>
23113 * varasm.c (get_section): Print location of other conflict
23114 for section conflicts.
23116 2011-06-08 Andi Kleen <ak@linux.intel.com>
23118 * config/i386/driver-i386.c (host_detect_local_cpu):
23119 Add model 0x2d Intel CPU.
23121 2011-06-08 Andi Kleen <ak@linux.intel.com>
23123 * reginfo.c (global_regs_decl): Add.
23124 (globalize_reg): Add decl parameter. Compute location. Pass location
23125 to warnings and add inform. Store decl in global_regs_decl.
23126 * rtl.h (globalize_reg): Update prototype.
23127 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
23129 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
23131 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
23133 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
23136 * config/sh/predicates.md (general_movsrc_operand): Check
23137 mode for memory with indexed address for QI and HImode.
23138 (general_movdst_operand): Likewise.
23140 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
23142 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
23144 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
23146 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
23147 (num_ssa_operands): Likewise.
23148 (op_iter_init_phiuse): Forward-declare.
23149 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
23151 2011-06-08 Nick Clifton <nickc@redhat.com>
23153 * doc/invoke.texi (ARM Options): Update description of
23156 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
23158 * config/i386/driver-i386.c (host_detect_local_cpu): Support
23159 unknown Intel family 0x6 CPUs.
23161 2011-06-08 Martin Jambor <mjambor@suse.cz>
23163 * tree-sra.c (mark_rw_status): Removed.
23164 (analyze_access_subtree): New parameter parent instead of
23165 mark_read and mark_write, propagate from that.
23167 2011-06-08 Julian Brown <julian@codesourcery.com>
23169 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
23170 for double-precision helper functions in hard-float mode if only
23171 single-precision arithmetic is supported in hardware.
23173 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
23175 PR rtl-optimization/49303
23176 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
23177 code_motion_path_driver returned 0 or 1.
23178 (sel_region_finish): Clear h_d_i_d.
23180 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
23182 * config/sh/sh.c (prepare_move_operands): Set pic register
23183 appropriately for global and local dynamic tls models even
23184 if flag_pic is unset.
23186 2011-06-07 Jason Merrill <jason@redhat.com>
23188 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
23190 2011-06-07 Xinliang David Li <davidxl@google.com>
23191 * passes.c (enable_disable_pass): Handle assembler name.
23192 (is_pass_explicitly_enabled_or_disabled): Ditto.
23194 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23196 PR tree-optimization/48497
23197 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
23199 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23201 PR tree-optimization/46728
23202 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
23203 to use gimple_val_nonnegative_real_p.
23204 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
23205 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
23207 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
23209 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
23211 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
23213 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
23216 2011-06-07 Richard Guenther <rguenther@suse.de>
23218 * stor-layout.c (initialize_sizetypes): Initialize all
23219 sizetypes based on target definitions.
23220 (set_sizetype): Remove.
23221 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
23222 * tree.h (set_sizetype): Remove.
23224 2011-06-07 Nick Clifton <nickc@redhat.com>
23226 * config.gcc: Unify V850 architecture options and add support for
23227 newer V850 architectures.
23228 * config/v850/t-v850e: Delete.
23230 2011-06-07 Richard Guenther <rguenther@suse.de>
23232 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
23233 Call set_sizetype from here.
23235 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
23237 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
23238 (*maddhisi4tb, *maddhisi4tt): New define_insns.
23240 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
23241 Andrew Stubbs <ams@codesourcery.com>
23243 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
23245 * doc/md.texi (Canonicalization of Instructions): Document widening
23246 multiply canonicalization.
23248 2011-06-07 Jakub Jelinek <jakub@redhat.com>
23250 PR gcov-profile/49299
23251 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
23253 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
23255 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
23257 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
23258 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
23259 vect_recog_pow_pattern): Likewise.
23260 (vect_pattern_recog_1): Remove declaration.
23261 (widened_name_p): Remove declaration. Add new argument to specify
23262 whether to check that both types are either signed or unsigned.
23263 (vect_recog_widen_mult_pattern): Update documentation. Handle
23264 unsigned patterns and multiplication by constants.
23265 (vect_pattern_recog_1): Update vect_recog_func references. Use
23266 statement information from the statement returned from pattern
23267 detection functions.
23268 (vect_pattern_recog): Update vect_recog_func reference.
23269 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
23270 multiplication by a constant use the type of the other operand.
23272 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
23274 PR rtl-optimization/49145
23275 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
23277 2011-06-06 Jakub Jelinek <jakub@redhat.com>
23280 * dwarf2out.c (native_encode_initializer): Decrement count in each
23284 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
23285 non-MODE_INT modes.
23288 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
23289 if stmt folded into nothing.
23290 * tree-inline.c (fold_marked_statements): If a builtin at the end of
23291 a bb folded into nothing, just update cgraph edges and move to next bb.
23292 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
23293 to be NULL. Don't compute count and frequency if new_call is NULL.
23295 2011-06-04 Diego Novillo <dnovillo@google.com>
23297 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
23298 (cgraph.o): Likewise.
23299 (cgraphunit.o): Likewise.
23300 * cgraphunit.c: Include lto-streamer.h
23301 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
23303 * lto-streamer-in.c (unpack_value_fields): Call
23304 streamer_hooks.unpack_value_fields if set.
23305 (lto_materialize_tree): For unhandled nodes, first try to
23306 call lto_streamer_hooks.alloc_tree, if it exists.
23307 (lto_input_ts_decl_common_tree_pointers): Move reading of
23308 DECL_INITIAL to lto_streamer_read_tree.
23309 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
23310 (lto_streamer_read_tree): New.
23311 (lto_reader_init): Rename from lto_init_reader.
23312 Move initialization code to lto/lto.c.
23313 * lto-streamer-out.c (pack_value_fields): Call
23314 streamer_hooks.pack_value_fields if set.
23315 (lto_output_tree_ref): For tree nodes that are not normally indexable,
23316 call streamer_hooks.indexable_with_decls_p before giving up.
23317 (lto_output_ts_decl_common_tree_pointers): Move handling
23318 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
23319 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
23320 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
23321 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
23322 (lto_streamer_write_tree): New.
23323 (lto_output): Call lto_streamer_init directly.
23324 (lto_writer_init): Remove.
23325 * lto-streamer.c (streamer_hooks): New.
23326 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
23327 instead of lto_preload_common_nodes.
23328 (lto_is_streamable): Move from lto-streamer.h
23329 (lto_streamer_hooks_init): New.
23330 (streamer_hooks): New.
23331 (streamer_hooks_init): New.
23332 * lto-streamer.h (struct output_block): Forward declare.
23333 (struct lto_input_block): Likewise.
23334 (struct data_in): Likewise.
23335 (struct bitpack_d): Likewise.
23336 (struct streamer_hooks): Declare.
23337 (streamer_hooks): Declare.
23338 (lto_streamer_hooks_init): Declare.
23339 (lto_streamer_write_tree): Declare.
23340 (lto_streamer_read_tree): Declare.
23341 (streamer_hooks_init): Declare.
23342 (lto_is_streamable): Move to lto-streamer.c
23344 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23346 * longlong.h (smul_ppmm): The resulting register pair contains the
23347 higher order word first.
23349 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23351 PR tree-optimization/46728
23352 * builtins.c (powi_table): Remove.
23353 (powi_lookup_cost): Remove.
23354 (powi_cost): Remove.
23355 (expand_powi_1): Remove.
23356 (expand_powi): Remove.
23357 (expand_builtin_pow_root): Remove.
23358 (expand_builtin_pow): Remove.
23359 (expand_builtin_powi): Eliminate handling of constant exponent.
23360 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
23362 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
23364 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
23366 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
23368 * dce.c (reset_unmarked_insns_debug_uses): New.
23369 (delete_unmarked_insns): Skip debug insns.
23370 (prescan_insns_for_dce): Likewise.
23371 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
23372 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
23373 active reg can be found.
23374 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
23375 (convert_regs_1): Use it.
23377 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
23379 * tree-pretty-print.c (dump_function_header): Add flags.
23380 Don't dump decl_uid with nouid.
23381 * tree-pretty-print.h (dump_function_header): Adjust.
23382 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
23383 * passes.c (pass_init_dump_file): Pass dump_flags on.
23384 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
23386 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
23389 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
23391 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
23393 PR tree-optimization/49243
23394 * calls.c (setjmp_call_p): Also check if fndecl has the
23395 returns_twice attribute.
23397 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23399 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
23402 2011-06-06 Richard Henderson <rth@redhat.com>
23403 Georg-Johann Lay <avr@gjlay.de>
23406 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
23408 * config/avr/avr.md ("insv"): New insn expander.
23409 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
23410 "*insv.not.io", "*insv.reg"): New insns.
23412 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
23415 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
23416 to nonimmediate_operand from memory_operand for the operand that is to
23417 be forced to memory by the expander. Lose the constraints.
23419 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
23421 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
23422 EH return when delayed branches are disabled.
23424 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
23426 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
23427 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
23429 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
23430 Simplify MODE_V1DF and MODE_V2SF handling.
23431 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
23432 Simplify MODE_SF handling.
23434 2011-06-04 Jan Hubicka <jh@suse.cz>
23436 PR tree-optimization/48893
23437 PR tree-optimization/49091
23438 PR tree-optimization/49179
23439 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
23442 2011-06-04 Jan Hubicka <jh@suse.cz>
23445 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
23448 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
23450 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
23452 2011-06-04 Jakub Jelinek <jakub@redhat.com>
23455 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
23456 to be strictly smaller than 1 << shiftcount.
23458 2011-06-04 Jan Hubicka <jh@suse.cz>
23460 PR tree-optimize/48929
23461 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
23462 of empty predicate.
23464 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
23467 * calls.c (emit_call_1): Prefer the __builtin declaration of
23470 2011-06-03 Diego Novillo <dnovillo@google.com>
23472 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
23473 (lto_input_tree_pointers): Likewise.
23474 * lto-streamer-out.c (pack_value_fields): Likewise.
23475 (lto_output_tree_pointers): Likewise.
23476 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
23477 and OPTIMIZATION_NODE.
23479 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23481 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
23482 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
23483 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
23484 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
23485 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
23486 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
23487 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
23488 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
23489 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
23490 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
23491 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
23492 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
23493 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
23494 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
23495 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
23496 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
23497 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
23498 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
23499 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
23500 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
23501 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
23502 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
23503 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
23504 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
23505 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
23506 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
23507 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
23508 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
23509 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
23510 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
23511 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
23512 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
23513 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
23514 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
23515 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
23516 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
23517 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
23518 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
23519 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
23520 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
23521 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
23522 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
23523 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
23524 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
23525 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
23526 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
23527 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
23528 * system.h (MD_UNWIND_SUPPORT): Poison.
23529 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
23530 * doc/tm.texi: Regenerate.
23531 * unwind-dw2.c: Include md-unwind-support.h instead of
23533 * config/ia64/unwind-ia64.c: Likewise.
23534 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
23536 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
23538 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
23540 2011-06-03 Richard Henderson <rth@redhat.com>
23541 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23543 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
23544 (sigill_hdlr): Correct insn, insn size.
23545 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
23547 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23549 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
23551 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
23552 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
23553 * config/mips/t-iris: Remove.
23554 * config/mips/t-irix6: New file.
23555 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
23557 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23559 * Makefile.in (LIB2ADDEHDEP): Remove.
23560 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
23561 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
23562 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
23563 * config/t-darwin (LIB2ADDEHDEP): Remove.
23564 * config/t-freebsd (LIB2ADDEHDEP): Remove.
23565 * config/t-linux (LIB2ADDEHDEP): Remove.
23567 2011-06-03 Diego Novillo <dnovillo@google.com>
23569 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
23570 (lto_register_var_decl_in_symtab): Likewise.
23571 (lto_register_function_decl_in_symtab): Likewise.
23572 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
23573 logic to uniquify_nodes.
23575 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23577 * config/alpha/t-osf5: Remove.
23578 * config/alpha/t-osf-pthread: Remove.
23579 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
23580 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
23582 2011-06-03 Julian Brown <julian@codesourcery.com>
23584 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
23585 (strongarm1110): Use strongarm tuning.
23586 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
23587 * config/arm/arm.c (arm_strongarm_tune): New.
23588 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
23589 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
23590 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
23591 setting, using previous defaults or 1 for Cortex-A5.
23592 (arm_option_override): Set max_insns_skipped from current tuning.
23594 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
23596 * doc/install.texi (Options specification): Document --with-specs.
23598 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
23600 * config/arm/neon.md (orndi3_neon): Actually split it.
23602 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
23604 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
23605 * var-tracking.c (reverse_op): Limite recurse depth to 5.
23607 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
23610 * target.def (delay_sched2, delay_vartrack): New.
23611 * doc/tm.texi.in: Update.
23612 * doc/tm.texi: Rebuild.
23613 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
23614 * var-tracking.c (gate_handle_var_tracking): Likewise.
23615 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
23616 (bfin_flag_var_tracking): Drop.
23617 (output_file_start): Don't save and override flag_var_tracking.
23618 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
23619 (bfin_reorg): Test original variables.
23620 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
23621 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
23622 (ia64_flag_var_tracking): Drop.
23623 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
23624 (ia64_file_start): Don't save and override flag_var_tracking.
23625 (ia64_override_options_after_change): Ditto
23626 flag_schedule_insns_after_reload.
23627 (ia64_reorg): Test original variables.
23628 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
23629 (picochip_flag_var_tracking): Drop.
23630 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
23631 (picochip_option_override): Don't save and override
23632 flag_schedule_insns_after_reload.
23633 (picochip_asm_file_start): Ditto flag_var_tracking.
23634 (picochip_reorg): Test original variables.
23635 * config/spu/spu.c (spu_flag_var_tracking): Drop.
23636 (TARGET_DELAY_VARTRACK): Define.
23637 (spu_var_tracking): New.
23638 (spu_machine_dependent_reorg): Call it.
23639 (asm_file_start): Don't save and override flag_var_tracking.
23641 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
23644 * config/sh/predicates.md (general_movsrc_operand): Return 0
23645 for memory and memory subreg of which address is an invalid
23646 indexed address for QI and HImode.
23647 (general_movdst_operand): Likewise.
23649 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
23651 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
23652 edges only, when there is a non-local label in the function.
23653 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
23655 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
23657 * config/i386/constraints.md (Y3): New register constraint.
23658 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
23659 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
23660 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
23661 *sse2_interleave_lowv2df.
23663 2011-06-02 Julian Brown <julian@codesourcery.com>
23665 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
23666 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
23667 (arm_cortex_a5_tune): New.
23669 2011-06-02 Julian Brown <julian@codesourcery.com>
23671 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
23672 * config/arm/arm.c (arm_default_branch_cost): New.
23673 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
23674 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
23675 (arm_fa726_tune): Set branch_cost field using
23676 arm_default_branch_cost.
23677 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
23678 current_tune structure.
23679 * dojump.c (tm_p.h): Include file.
23681 2011-06-02 Julian Brown <julian@codesourcery.com>
23683 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
23685 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
23686 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
23687 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
23689 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
23690 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
23691 (arm_fa726te_tune): Add prefer_constant_pool setting.
23692 (arm_v6t2_tune, arm_cortex_tune): New.
23693 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
23694 prefer_constant_pool setting.
23696 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
23698 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
23700 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
23701 (*movdf_internal) <case 6,7,8>: Ditto.
23703 * config/i386/constraints.md (Y4): New register constraint.
23704 * config/i386/sse.md (vec_set<mode>_0): Merge with
23705 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
23706 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
23707 *vec_extractv2di_1_sse.
23708 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
23709 and *vec_concatv2di_rex64_sse.
23711 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
23714 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
23715 of cgraph_local_info for null before attempting to use it.
23717 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
23719 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
23720 (current_function_dynamic_alloc_count): Delete.
23721 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
23722 (expand_builtin_nonlocal_goto): Remove obsolete comment.
23723 (expand_builtin_update_setjmp_buf): Remove dead code.
23724 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
23725 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
23727 * function.c (instantiate_virtual_regs): Likewise.
23728 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
23729 for a block with a single abnormal incoming edge.
23730 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
23731 (SETJMP_VIA_SAVE_AREA): Delete.
23732 * config/sparc/sparc-protos.h (load_got_register): Declare.
23733 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
23734 (load_got_register): Make global.
23735 (sparc_frame_pointer_required): Add 'static'.
23736 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
23737 (sparc_builtin_setjmp_frame_value): New function.
23738 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
23739 (save_stack_nonlocal): New expander.
23740 (restore_stack_nonlocal): Likewise.
23741 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
23742 (nonlocal_goto_internal): New insn.
23743 (goto_handler_and_restore): Delete.
23744 (builtin_setjmp_setup): Likewise.
23745 (do_builtin_setjmp_setup): Likewise.
23746 (setjmp): Likewise.
23747 (builtin_setjmp_receiver): New expander.
23749 2011-06-01 David Li <davidxl@google.com>
23751 PR middle-end/49261
23752 * tree-pretty-print.c (dump_function_header): Format cleanup.
23754 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
23757 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
23758 needed when original operands are used for msw_skip comparison.
23760 2011-06-01 Jakub Jelinek <jakub@redhat.com>
23763 * var-tracking.c (add_uses, add_stores): Don't call
23764 cselib_subst_to_values on ENTRY_VALUE.
23766 2011-06-01 Diego Novillo <dnovillo@google.com>
23768 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
23769 output_record_start with LTO_null instead of output_zero.
23770 (lto_output_ts_binfo_tree_pointers): Likewise.
23771 (lto_output_tree): Likewise.
23772 (output_eh_try_list): Likewise.
23773 (output_eh_region): Likewise.
23774 (output_eh_lp): Likewise.
23775 (output_eh_regions): Likewise.
23776 (output_bb): Likewise.
23777 (output_function): Likewise.
23778 (output_unreferenced_globals): Likewise.
23779 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
23780 instead of NUM_TREE_CODES.
23781 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
23782 (lto_output_int_in_range): Change << to >> when shifting VAL.
23784 2011-06-01 Diego Novillo <dnovillo@google.com>
23786 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
23787 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
23789 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
23792 * optabs.h (valid_multiword_target_p): Declare.
23793 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
23794 doing multi-word operations.
23795 * optabs.c (expand_binop): Likewise.
23796 (expand_doubleword_bswap): Likewise.
23797 (expand_absneg_bit): Likewise.
23798 (expand_unop): Likewise.
23799 (expand_copysign_bit): Likewise.
23800 (multiword_target_p): New function.
23802 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
23804 PR rtl-optimization/48830
23805 PR rtl-optimization/48808
23806 PR rtl-optimization/48792
23807 * reload.c (push_reload): Check contains_reg_of_mode.
23808 * reload1.c (strip_paradoxical_subreg): New function.
23809 (gen_reload_chain_without_interm_reg_p): Use it to handle
23810 paradoxical subregs.
23811 (emit_output_reload_insns, gen_reload): Likewise.
23813 2011-06-01 David Li <davidxl@google.com>
23815 * predict.c : Change pass name
23818 * tree-profile.c: Ditto.
23821 2011-06-01 David Li <davidxl@google.com>
23823 * tree-pretty-print.c (dump_function_header): New function.
23824 * final.c (rest_of_clean_state): Use header dumper.
23825 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
23826 * passes.c (pass_init_dump_file): Use header dumper.
23828 2011-06-01 Jakub Jelinek <jakub@redhat.com>
23830 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
23831 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
23832 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
23834 (mem_loc_descriptor): Use them.
23836 * var-tracking.c (create_entry_value): New function.
23837 (vt_add_function_parameter): Use it.
23839 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23841 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
23842 Include <signal.h>, <ucontext.h>.
23843 (sigill_caught): Define.
23844 (sigill_hdlr): New function.
23845 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
23846 insns can be executed.
23847 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
23848 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
23850 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23852 * config/t-slibgcc-darwin: Move to ...
23853 * config/t-slibgcc-dummy: ... this. Clarify comments.
23854 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
23855 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
23856 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
23857 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
23858 Remove i386/t-crtstuff from tmake_file.
23859 (i[34567]86-*-solaris2*): Remove t-svr4,
23860 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
23862 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
23863 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
23864 sparc/t-crtfm from tmake_file.
23865 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
23866 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
23867 Remove extra_parts.
23868 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
23869 * config/i386/t-nwld (SHLIB_LINK): Remove.
23870 * config/i386/t-rtems-i386: Rename to ...
23871 * config/i386/t-rtems: ... this.
23872 ($(T)crti.o, $(T)crtn.o): Remove.
23873 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
23874 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
23875 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
23876 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
23877 EXTRA_MULTILIB_PARTS): Remove.
23878 * config/sparc/t-sol2-64: Likewise.
23879 * config/sparc/t-sol2: Remove.
23880 * config/sparc/t-crtin: Remove.
23881 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
23882 * config/i386/gmon-sol2.c: Remove.
23883 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
23884 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
23885 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
23886 * config/i386/sol2-gc1.asm: Remove.
23887 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
23888 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
23889 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
23890 * config/t-slibgcc-sld: Remove.
23892 2011-06-01 Jakub Jelinek <jakub@redhat.com>
23894 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
23895 base_type_for_mode with op_mode instead of mode.
23897 2011-06-01 Paul Brook <paul@cpodesourcery.com>
23899 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
23901 * config/arm/arm-tune.md: Regenerate.
23902 * config/arm/arm-tables.opt: Regenerate.
23903 * config/arm/arm.c (FL_DIV): Rename...
23904 (FL_THUMB_DIV): ... to this.
23905 (FL_ARM_DIV): Define.
23906 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
23907 (arm_arch_hwdiv): Remove.
23908 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
23909 (arm_issue_rate): Add cortexr5.
23910 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
23911 __ARM_ARCH_EXT_IDIV__.
23912 (TARGET_IDIV): Define.
23913 (arm_arch_hwdiv): Remove.
23914 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
23915 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
23916 (divsi3, udivsi3): New patterns.
23917 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
23918 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
23920 2011-06-01 Martin Jambor <mjambor@suse.cz>
23922 * ipa-utils.c (ipa_dfs_info): New field scc_no.
23923 * ipa-utils.c (searchc): Set scc_no.
23925 2011-06-01 Martin Jambor <mjambor@suse.cz>
23927 * ipa-utils.c (searchc_env): New field allow_overwritable.
23928 (searchc): do not ignore edges to overwritable nodes if indicated
23929 by env->allow_overwritable.
23930 (ipa_reduced_postorder): Set env.allow_overwritable.
23932 2011-06-01 Richard Guenther <rguenther@suse.de>
23934 * tree.c (free_lang_data): Do not reset boolean_type_node nor
23936 * lto-streamer.c (lto_record_common_node): Take node pointer,
23937 do not register types.
23938 (lto_preload_common_nodes): Explicitly skip preloading nodes
23939 that differ between frontends.
23941 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
23943 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
23946 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
23948 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
23949 parameter value for dump. Dump cost on outermost call only.
23950 (rs6000_memory_move_cost): Dump cost on outermost call only.
23952 2011-05-31 Jakub Jelinek <jakub@redhat.com>
23954 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
23955 DW_OP_GNU_convert ops.
23957 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
23958 cselib_preserve_constants.
23959 (cselib_lookup_1): If cselib_preserve_constants,
23960 a new VALUE is being created for REG and there is a VALUE for the
23961 same register in wider mode, add another loc with lowpart SUBREG of
23963 (cselib_subst_to_values): Handle ENTRY_VALUE.
23964 * var-tracking.c (replace_expr_with_values): Return NULL for
23966 * dwarf2out.c (convert_descriptor_to_signed): New function.
23967 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
23968 instead of two shifts.
23969 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
23970 the right mode if needed.
23971 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
23972 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
23973 convert_descriptor_to_signed.
23974 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
23975 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
23978 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
23980 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
23982 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
23983 of X87MODEI12 and SWI48x instead of SSEMODEI24.
23984 (SWI248x): New mode iterator, rename from X87MODEI.
23985 (X87MODEI): Remove mode iterator.
23986 (X87MODEI12): Ditto.
23987 (SSEMODEI24): Ditto.
23989 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
23991 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
23992 * doc/invoke.texi: Document max-vartrack-expr-depth.
23993 * var-tracking.c (EXPR_DEPTH): New.
23994 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
23996 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
23998 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
23999 * config/i386/sse.md: Add n to negated FMA pattern names.
24001 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
24003 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
24005 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
24007 * gengtype-state.c (read_state_params_structs): Initialize previous.
24009 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
24011 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
24012 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
24014 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
24016 * config/i386/i386.md (*movtf_internal): Avoid allocating general
24017 registers. Penalize F*r->o alternative to prevent partial memory
24018 stalls. Slightly penalize *roF->*r alternative. Generate SSE
24019 CONST_DOUBLE immediates when optimizing function for size. Do not move
24020 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
24021 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
24022 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
24023 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
24025 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
24027 (fp_register_operand splitters): Use fp_register_operand
24028 constraint. Do not use FP_REG_P in insn condition.
24029 (any_fp_register_operand splitters): Use any_fp_register_operand
24030 constraint. Do not use ANY_FP_REG_P in insn condition.
24032 2011-05-31 Jan Hubicka <jh@suse.cz>
24034 * cgraph.h (cgraph_inline_failed_t): Give enum a name
24035 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
24036 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
24037 (lto_output_edge): Use output_enum and var_len_unsigned.
24038 (lto_output_varpool_node): Likewise.
24039 (input_overwrite_node): Do not take resolution parameter;
24040 extract it from a bitpack.
24041 (input_node): Do not read resolution; use input_enum and
24043 (input_varpool_node): Likewise.
24044 (input_edge): Likewise.
24045 (input_cgraph_1): Likewise.
24047 2011-05-31 Richard Guenther <rguenther@suse.de>
24049 * gimple.c (gimple_register_canonical_type): Do not register
24050 any types via gimple_register_type.
24052 2011-05-31 Jan Hubicka <jh@suse.cz>
24054 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
24057 2011-05-31 Jakub Jelinek <jakub@redhat.com>
24059 PR rtl-optimization/49235
24060 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
24061 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
24063 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
24065 PR tree-optimization/49093
24066 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
24069 2011-05-31 Dodji Seketeli <dodji@redhat.com>
24072 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
24073 for concrete functions containing the code of cloned functions.
24075 2011-05-31 Richard Guenther <rguenther@suse.de>
24077 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
24079 (forward_propagate_into_comparison_1): ... this.
24080 (forward_propagate_comparison): Rename to ...
24081 (forward_propagate_into_comparison): ... this. Split out
24082 real forward propagation code to ...
24083 (forward_propagate_comparison): ... this.
24084 (forward_propagate_into_gimple_cond): Remove looping.
24085 (forward_propagate_into_cond): Likewise.
24086 (simplify_not_neg_expr): Return whether we have done something.
24087 (simplify_gimple_switch): Likewise.
24088 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
24089 (ssa_forward_propagate_and_combine): ... this. Re-structure
24090 to do a forward forward-propagation walk on BBs and a backward
24091 stmt combining walk on BBs. Consistently re-scan changed statements.
24092 (pass_forwprop): Adjust.
24094 2011-05-30 Ian Lance Taylor <iant@google.com>
24096 * godump.c (go_format_type): Correct length of name added to
24097 obstack for anonymous field.
24099 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
24102 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
24103 part of the second operand is 0.
24105 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
24107 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
24108 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
24109 to memory for !TARGET_MEMORY_MISMATCH_STALL.
24110 (*movdf_internal_rex64): Do not penalize F->r alternative.
24111 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
24112 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
24113 when optimizing function for size. Do not move CONST_DOUBLEs
24114 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
24115 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
24116 SUBREGs. Do not check for MEM_P operands in the insn condition,
24117 check for ANY_FP_REGNO_P instead.
24118 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
24119 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
24120 function for speed.
24121 * config/i386/i386.c (ix86_option_override_internal): Do not
24122 set TARGET_INTEGER_DFMODE_MOVES here.
24124 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
24127 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
24129 2011-05-30 Jakub Jelinek <jakub@redhat.com>
24131 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
24132 DW_TAG_rvalue_reference_type even for
24133 -gdwarf-4 -fno-debug-types-section.
24135 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24137 PR tree-optimization/46728
24138 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
24139 (build_and_insert_binop): New.
24140 (gimple_expand_builtin_pow): Reorder args for
24141 build_and_insert_call; use build_and_insert_binop; add more
24142 optimizations for fractional exponents.
24144 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
24149 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
24151 * tree.h (struct tree_identifier): Inherit from tree_typed, not
24153 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
24154 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
24155 TS_BASE instead of TS_COMMON.
24156 * varasm.c (assemble_name): Remove assert.
24158 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
24160 * config.gcc: Keep obselete list sorted.
24162 2011-05-30 Jakub Jelinek <jakub@redhat.com>
24163 Eric Botcazou <ebotcazou@adacore.com>
24165 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
24166 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
24167 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
24168 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
24169 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
24171 2011-05-30 Richard Guenther <rguenther@suse.de>
24173 * gimple.c (gimple_types_compatible_p_1): Compare record
24174 and union type members properly.
24176 2011-05-30 Richard Guenther <rguenther@suse.de>
24178 PR tree-optimization/49210
24179 * ipa-split.c (split_function): Care for the case where the call
24180 result is not trivially convertible to the result holding variable.
24182 2011-05-30 Richard Guenther <rguenther@suse.de>
24184 PR tree-optimization/49218
24185 * tree-vrp.c (adjust_range_with_scev): Properly check whether
24188 2011-05-30 Richard Guenther <rguenther@suse.de>
24190 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
24191 New function split out from ...
24192 (forward_propagate_into_gimple_cond): ... here. Adjust.
24193 (forward_propagate_into_cond): Likewise.
24194 (forward_propagate_comparison): Also propagate into
24195 comparisons on assignment RHS. Change return value to
24196 behave similar to forward_propagate_into_cond.
24197 (tree_ssa_forward_propagate_single_use_vars): Handle
24198 strict-overflow warnings properly for forward_propagate_comparison.
24200 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24202 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
24203 from plugin linker.
24204 * configure: Regenerate.
24206 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
24208 PR tree-optimization/49199
24209 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
24210 non-reduction operands are either defined in the loop or by induction.
24212 2011-05-29 Xinliang David Li <davidxl@google.com>
24214 * opts-global.c (handle_common_deferred_options): Handle new options.
24215 * passes.c (register_one_dump_file): Call register_pass_name.
24216 (execute_one_pass): Check explicit enable/disable flag.
24217 (passr_hash): New function.
24219 (register_pass_name): Ditto.
24220 (get_pass_by_name): Ditto.
24221 (pass_hash): Ditto.
24223 (enable_pass): Ditto.
24224 (disable_pass): Ditto.
24225 (is_pass_explicitly_enabled_or_disabled): Ditto.
24227 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
24229 * config/i386/i386.md (*movoi_internal_avx): Use
24230 standard_sse_constant_opcode for alternative 0.
24231 (*movti_internal_sse): Ditto.
24232 (*movti_internal_rex64): Use standard_sse_constant_opcode for
24234 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
24235 sselog1 type moves.
24236 (*movsi_internal): Ditto.
24237 (*movdi_internal): Ditto. Add ssecvt type moves.
24239 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
24242 * rtlanal.c (simplify_subreg_regno): Adjust comment.
24244 2011-05-29 Jakub Jelinek <jakub@redhat.com>
24246 PR rtl-optimization/49095
24247 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
24248 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
24250 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
24253 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
24254 recurse_p argument. Only follow register copies if it is set,
24255 and prevent mips_find_pic_call_symbol from recursing.
24256 (mips_find_pic_call_symbol): Add a recurse_p argument.
24257 Pass it to mips_pic_call_symbol_from_set.
24258 (mips_annotate_pic_calls): Update accordingly.
24260 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
24262 * emit-rtl.c (try_split): Use a loop to search for
24263 NOTE_INSN_CALL_ARG_LOCATIONs.
24265 2011-05-29 Richard Guenther <rguenther@suse.de>
24267 PR tree-optimization/49217
24268 * ipa-pure-const.c (propagate_pure_const): Fix typos.
24270 2011-05-28 Jan Hubicka <jh@suse.cz>
24272 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
24274 (string_slot_free): Remove
24275 (create_output_block): Initialize obstack.
24276 (destroy_output_block): Free obstack.
24277 (lto_string_index): Add PERSISTENT parameter; do not duplicate
24278 the string unless it needs to be added into the hash.
24279 (lto_output_string_with_length): Add persistent attribute;
24280 handle NULL strings.
24281 (lto_output_string): Add PERSISTENT parameter.
24282 (output_string_cst, output_identifier): Simplify.
24283 (lto_output_location_bitpack): Update.
24284 (lto_output_builtin_tree): Update.
24285 * lto-streamer.h (struct output_block): Add obstack.
24286 (lto_output_string, lto_output_string_with_length): Remove
24287 declarations; functions are static now.
24289 2011-05-28 Jan Hubicka <jh@suse.cz>
24291 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
24292 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
24293 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
24294 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
24295 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
24296 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
24297 unpack_ts_decl_with_vis_value_fields,
24298 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
24299 lto_get_builtin_tree): Use enum and variable length i/o.
24300 * basic-block.h (profile_status_d): Add PROFILE_LAST.
24301 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
24303 (bp_pack_enum, bp_unpack_enum): New macros.
24305 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
24307 * genrecog.c: Remove redundant forward declarations.
24309 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
24311 * config.gcc: Deprecate mips*-*-openbsd*.
24313 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
24316 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
24319 2011-05-27 Andrew Pinski <pinskia@gmail.com>
24321 PR middle-end/48981
24322 * gengtype.c (vec_prefix_type): New function.
24323 (note_def_vec): Use vec_prefix_type and change the length
24324 attribute to be based on the prefix.
24325 * vec.c: Include coretypes.h before vec.h.
24326 (struct vec_prefix): Remove.
24327 (vec_gc_p_reserve): Change the offsetof to sizeof.
24328 (vec_gc_p_reserve_exact): Likewise.
24329 (vec_heap_p_reserve): Likewise.
24330 (vec_heap_p_reserve_exact): Likewise.
24331 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
24332 (vec_stack_p_reserve): Change the offsetof to sizeof.
24333 (vec_stack_p_reserve_exact): Likewise.
24334 * vec.h (struct vec_prefix): New struct definition.
24335 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
24336 (VEC_T_GTY(T,B)): Likewise.
24337 (DEF_VEC_FUNC_P(T)): Use prefix field.
24338 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
24339 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
24341 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24343 PR tree-optimization/46728
24344 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
24345 (powi_as_mults): Add gimple_set_location.
24346 (build_and_insert_call): New.
24347 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
24348 0.5, 0.25, 0.75, 1./3., or 1./6.
24350 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
24352 * doc/contrib.texi: Update copyright years.
24353 (Contributors): Add Zdenek Sojka.
24355 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
24357 * c-decl.c (c_push_function_context): Copy the current statement
24359 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
24360 (finish_struct): Call building_stmt_list_p instead of checking
24362 * c-parser.c (c_parser_postfix_expression): Likewise.
24363 * c-typeck.c (c_end_compound_stmt): Likewise.
24364 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
24365 * tree-iterator.c (stmt_list_cache): Change to a VEC.
24366 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
24367 (free_stmt_list): Likewise.
24368 * tree.h (struct tree_statement_list): Include typed_tree instead
24370 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
24371 as TS_TYPED instead of TS_COMMON.
24373 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24374 Uros Bizjak <ubizjak@gmail.com>
24376 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
24377 (HAVE_AS_IX86_TLSGDPTL): Define.
24378 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
24379 (HAVE_AS_IX86_TLSLDMPLT): Define.
24380 * configure: Regenerate.
24381 * config.in: Regenerate.
24382 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
24383 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
24384 TARGET_SUN_TLS, use @tlsgdplt or @plt.
24385 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
24386 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
24387 @tlsldmplt or @plt.
24388 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
24390 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
24392 * sched-int.h (struct _haifa_deps_insn_data): New members cond
24394 (INSN_COND, INSN_REVERSE_COND): New macros.
24395 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
24397 (sched_get_condition_with_rev): Cache the results, and look them up
24399 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
24400 are clobbered by the current insn.
24401 * target.def (exposed_pipline): New sched data hook.
24402 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
24403 * doc/tm.texi: Regenerate.
24405 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24407 PR tree-optimization/49170
24408 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
24411 2011-05-27 Richard Guenther <rguenther@suse.de>
24413 PR middle-end/49189
24414 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
24417 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
24419 * haifa-sched.c (sched_scan_info): Remove.
24420 (schedule_block): Call sched_extend_luids rather than sched_init_luids
24422 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
24424 (sched_scan): Remove.
24425 (sched_extend_luids): Renamed from luids_extend_insn and no longer
24426 static. All callers changed.
24427 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
24428 static. All callers changed.
24429 (sched_init_luids): Remove all arguments except the first. All
24430 callers changed. Don't use sched_scan.
24431 (haifa_init_h_i_d): Likewise.
24432 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
24433 manually rather than using sched_init_luids. Likewise with
24434 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
24435 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
24436 rather than sched_init_luids with NULL args.
24437 * sel-sched-ir.c (new_insns): Remove variable.
24438 (sched_scan): New static function, previously in haifa-sched.c. Remove
24439 all arguments but the first two; all callers changed.
24440 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
24441 rather than sched_init_luids.
24442 (sel_init_bbs): Remove second argument. All callers changed.
24443 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
24444 with NULL arguments.
24445 (create_insn_rtx_from_pattern): Likewise.
24446 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
24447 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
24448 (sched_init_insn_luid, sched_extend_luids): Declare.
24449 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
24452 2011-05-27 Richard Guenther <rguenther@suse.de>
24454 PR middle-end/49177
24455 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
24456 A CMP B ? (T) true : (T) false for non-integral types T again.
24458 2011-05-27 Jan Hubicka <jh@suse.cz>
24460 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
24461 so 0 means NULL string.
24462 (lto_output_string_with_length): ... here.
24463 (lto_output_string, output_string_cst, output_identifier): Update
24464 handling of NULL strings.
24465 (lto_output_location_bitpack): New function.
24466 (lto_output_location): Use it.
24467 (lto_output_tree_ref): Use output_record_start.
24468 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
24470 * lto-streamer-in.c (string_for_index): Break out from ...; offset
24472 (input_string_internal): ... here;
24473 (input_string_cst, input_identifier, lto_input_string): Update handling
24475 (lto_input_location_bitpack): New function
24476 (lto_input_location): Use it.
24477 (unpack_ts_type_common_value_fields): Pack align & alias in var len
24479 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
24480 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
24481 (bp_pack_value): Sanity check the value range.
24482 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
24484 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
24487 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
24489 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
24490 call_arg_location instructions down the floor.
24492 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
24494 PR rtl-optimization/49154
24495 * ira.c (setup_pressure_classes): Process class without sublcasses
24496 as a candidate for pressure classes.
24498 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
24500 PR rtl-optimization/48575
24501 * genrecog.c (position_type): New enum.
24502 (position): New structure.
24503 (decision): Use position structure instead of a string.
24504 (root_pos, peep2_insn_pos_list): New variables.
24505 (next_position, compare_positions): New functions.
24506 (new_decision): Use position structures instead of strings.
24507 (maybe_both_true): Likewise.
24508 (change_state): Likewise.
24509 (write_tree): Likewise.
24510 (make_insn_sequence): Likewise.
24512 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
24514 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
24515 TS_BASE instead of TS_COMMON.
24516 (find_decls_types_r): Check for TS_TYPED structure before looking at
24518 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
24520 (BLOCK_CHAIN): Use new chain field.
24522 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
24524 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
24525 moves expensive on Power7 also.
24527 2011-05-26 Richard Guenther <rguenther@suse.de>
24529 * fold-const.c (fold_unary_loc): Remove bogus code.
24531 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
24533 * tree.h (struct tree_identifier): Inherit from tree_typed, not
24535 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
24536 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
24537 TS_BASE instead of TS_COMMON.
24538 * varasm.c (assemble_name): Remove assert.
24540 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
24542 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
24544 * libgcc-std.ver: Delete file.
24546 2011-05-26 Richard Guenther <rguenther@suse.de>
24548 PR tree-optimization/48702
24549 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
24550 only when we know the base address is within bounds.
24551 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
24552 assume the base address of TARGET_MEM_REFs is in bounds.
24554 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24557 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
24558 declaration in TARGET_SOLARIS.
24560 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
24562 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
24563 The instruction is then expanded explicitly.
24564 (supported_compare): Callable instruction.
24565 (compare): Likewise.
24567 2011-05-26 Jakub Jelinek <jakub@redhat.com>
24570 * gimplify.c (shortcut_cond_r): Don't special case
24571 COND_EXPRs if they have void type on one of their arms.
24573 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
24575 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
24576 to reduce duplication, and to achieve a slightly more logical order
24579 2011-05-26 Jakub Jelinek <jakub@redhat.com>
24581 PR tree-optimization/49161
24582 * tree-vrp.c (struct case_info): New type.
24583 (compare_case_labels): Sort case_info structs instead of
24584 trees, and not primarily by CASE_LABEL uids but by
24585 label_for_block indexes.
24586 (find_switch_asserts): Put case labels into struct case_info
24587 array instead of TREE_VEC, adjust sorting, compare label_for_block
24588 values instead of CASE_LABELs.
24590 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
24592 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
24593 ("orndi3_neon"): Likewise.
24594 ("bic<mode>3_neon"): Likewise.
24596 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
24598 PR tree-optimization/49038
24599 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
24600 Ensure at least one epilogue iteration if required by data
24601 accesses with gaps.
24602 * tree-vectorizer.h (struct _loop_vec_info): Add new field
24603 to mark loops that require peeling for gaps.
24604 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
24605 (vect_get_known_peeling_cost): Take peeling for gaps into
24607 (vect_transform_loop): Generate epilogue if required by data
24609 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
24610 loop as requiring an epilogue if there are gaps in the end of
24613 2011-05-25 Ian Lance Taylor <iant@google.com>
24615 * godump.c (go_format_type): Output the first field with a usable
24618 2011-05-25 Ian Lance Taylor <iant@google.com>
24620 * godump.c (go_format_type): Check for invalid type names, pointer
24621 target types, and struct field types.
24623 2011-05-25 Jason Merrill <jason@redhat.com>
24625 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
24627 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
24629 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
24631 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
24633 * config/i386/i386.md (*movqi_extv_1)): Put back
24634 "register_operand" check in "type" calculation.
24635 (*movqi_extzv_2): Likewise.
24637 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
24639 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
24641 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
24644 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
24645 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
24646 __divxc3, __divtc3): Wrap definitions in #ifndef.
24648 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
24651 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
24652 "register_operand" check and replace q_regs_operand with
24653 QIreg_operand in "type" calculation.
24654 (*movqi_extv_1): Likewise.
24655 (*movqi_extzv_2_rex64): Likewise.
24656 (*movqi_extzv_2): Likewise.
24658 * config/i386/predicates.md (QIreg_operand): New.
24660 2011-05-25 Richard Guenther <rguenther@suse.de>
24662 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
24663 type-based offset disambiguation, streamline MEM_REF and
24664 TARGET_MEM_REF handling.
24666 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
24668 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
24669 (bdesc_special_args): Add pause intrinsic.
24671 * config/i386/i386.md (UNSPEC_PAUSE): New.
24673 (*pause): Likewise.
24674 * config/i386/ia32intrin.h (__pause): Likewise.
24676 * doc/extend.texi (X86 Built-in Functions): Add documentation for
24679 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24681 PR tree-optimization/46728
24682 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
24683 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
24685 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
24687 * tree.h (struct tree_exp): Inherit from struct tree_typed.
24688 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
24689 instead of TS_COMMON.
24691 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
24693 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
24694 LIBGCC2_GNU_PREFIX is defined.
24696 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
24697 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
24698 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
24699 __clz_tab): Define using __N.
24700 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
24701 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
24702 * target.def (libfunc_gnu_prefix): New hook.
24703 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
24704 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
24705 * doc/tm.texi: Regenerate.
24706 * system.h (LIBGCC2_GNU_PREFIX): Poison.
24707 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
24709 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
24710 (init_optabs): Likewise for the bswap libfuncs.
24711 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
24713 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
24714 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
24715 * libgcc-std.ver: Remove.
24716 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
24717 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
24719 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
24720 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
24721 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
24722 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
24723 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
24724 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
24725 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
24726 * config/fixed-bit.h (FIXED_OP): Define differently depending on
24727 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
24728 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
24730 2011-05-25 Jan Hubicka <jh@suse.cz>
24732 * lto-streamer-out.c (output_record_start): Use lto_output_enum
24733 (lto_output_tree): Use output_record_start.
24734 * lto-streamer-in.c (input_record_start): Use lto_input_enum
24735 (lto_get_pickled_tree): Use input_record_start.
24736 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
24737 (lto_value_range_error): New function.
24738 * lto-streamer.h (lto_value_range_error): Declare.
24739 (lto_output_int_in_range, lto_input_int_in_range): New functions.
24740 (lto_output_enum, lto_input_enum): New macros.
24742 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
24744 * common.opt (flag_stack_usage_info): New variable.
24745 (-Wstack-usage): New option.
24746 * doc/invoke.texi (Warning options): Document -Wstack-usage.
24747 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
24748 <OPT_fstack_usage>: Likewise.
24749 * toplev.c (output_stack_usage): Handle -Wstack-usage.
24750 * calls.c (expand_call): Test flag_stack_usage_info variable instead
24751 of flag_stack_usage.
24752 (emit_library_call_value_1): Likewise.
24753 * explow.c (allocate_dynamic_stack_space): Likewise.
24754 * function.c (instantiate_virtual_regs ): Likewise.
24755 (prepare_function_start): Likewise.
24756 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
24757 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
24758 * config/arm/arm.c (arm_expand_prologue): Likewise.
24759 (thumb1_expand_prologue): Likewise.
24760 * config/avr/avr.c (expand_prologue): Likewise.
24761 * config/i386/i386.c (ix86_expand_prologue): Likewise.
24762 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
24763 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
24764 * config/mips/mips.c (mips_expand_prologue): Likewise.
24765 * config/pa/pa.c (hppa_expand_prologue): Likewise.
24766 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
24767 * config/s390/s390.c (s390_emit_prologue): Likewise.
24768 * config/sh/sh.c (sh_expand_prologue): Likewise.
24769 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
24770 * config/spu/spu.c (spu_expand_prologue): Likewise.
24772 2011-05-25 Richard Guenther <rguenther@suse.de>
24774 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
24775 (gimple_canonical_types_compatible_p): Likewise.
24777 2011-05-25 Jan Hubicka <jh@suse.cz>
24779 PR middle-end/49062
24780 * ipa.c (function_and_variable_visibility): Only add to same
24781 comdat group list if DECL_ONE_ONLY.
24783 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
24785 PR rtl-optimization/49014
24786 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
24788 2011-05-25 Jakub Jelinek <jakub@redhat.com>
24791 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
24793 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
24795 PR rtl-optimization/48757
24796 * ira-build.c (loop_with_eh_edge_p): Rename to
24797 loop_with_complex_edge_p, check edges on complexity, make function
24799 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
24802 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
24804 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
24805 force flag_ira_share_save_slots to 0.
24807 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
24809 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
24810 (vt_initialize): Set PROLOGUE_BB unconditionally.
24811 Add block comment about CFA_BASE_RTX machinery.
24812 Reset FP_CFA_OFFSET to -1 on all invalid paths.
24813 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
24815 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
24818 * c-parser.c (c_parser_objc_class_instance_variables): More robust
24819 parsing of syntax error in ObjC instance variable lists. In
24820 particular, avoid an infinite loop if there is a stray ']'.
24821 Updated error message.
24823 2011-05-24 Ian Lance Taylor <iant@google.com>
24825 * godump.c (go_define): Don't accept a string immediately after
24828 2011-05-24 Ian Lance Taylor <iant@google.com>
24830 * godump.c (struct godump_container): Add invalid_hash field.
24831 (go_format_type): Return false if type is found in invalid_hash.
24832 (go_output_typedef): Add invalid type to invalid_hash.
24833 (go_finish): Create and delete invalid_hash.
24835 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24837 PR tree-optimization/46728
24838 * tree-ssa-math-opts.c (powi_table): New.
24839 (powi_lookup_cost): New.
24841 (powi_as_mults_1): New.
24842 (powi_as_mults): New.
24843 (gimple_expand_builtin_powi): New.
24844 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
24845 (gate_cse_sincos): Remove sincos/cexp restriction.
24847 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24850 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
24852 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
24853 * mips-tdump.c: Likewise.
24855 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
24858 * config/i386/driver-i386.c (host_detect_local_cpu): Always
24859 add -mno-XXX. Handle FMA.
24861 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
24863 PR rtl-optimization/48633
24864 * ira-build.c (loop_with_eh_edge_p): New function.
24865 (mark_loops_for_removal): Use it.
24867 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
24869 PR rtl-optimization/48971
24870 * ira.c (setup_pressure_classes): Don't check register move cost
24871 for classes with one registers. Don't add pressure class if there
24872 is a pressure class with the same available hard registers.
24873 Check contains_reg_of_mode. Fix a typo in collecting
24874 temp_hard_regset. Ignore hard registers not belonging to a class.
24876 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
24879 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
24881 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
24882 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24884 PR gcov-profile/48845
24885 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
24887 2011-05-24 Richard Guenther <rguenther@suse.de>
24889 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
24890 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
24891 (gimple_types_compatible_p_1): Adjust.
24892 (iterative_hash_canonical_type): Do not bother about complete vs.
24894 (gimple_canonical_types_compatible_p): Likewise.
24896 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24898 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
24900 2011-05-24 Richard Guenther <rguenther@suse.de>
24903 * gimple.c (gimple_register_canonical_type): Revert
24905 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
24906 does not for a tree for the case where it matters. Cache
24907 pointer-type alias-sets.
24909 2011-05-24 Joseph Myers <joseph@codesourcery.com>
24911 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
24912 (OBJS): Remove options.o, opts-common.o and prefix.o.
24913 (OBJS-libcommon-target): New.
24914 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
24915 (BACKEND): Include libcommon-target.a.
24916 (MOSTLYCLEANFILES): Include libcommon-target.a.
24917 (libcommon-target.a): New.
24918 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
24921 2011-05-23 Joseph Myers <joseph@codesourcery.com>
24923 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
24924 parts of output shared with the driver.
24925 * optc-gen.awk: Don't generate parts of output not shared with the
24927 * opth-gen.awk: Remove GCC_DRIVER conditionals.
24928 * doc/options.texi (SourcerInclude): Mention options-save.c.
24929 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
24930 (OBJS): Add options-save.o.
24931 (options-save.c, options-save.o): New.
24932 (options.o): Update dependencies.
24933 (gcc-options.o): Remove.
24934 (mostlyclean): Remove options-save.c.
24936 2011-05-23 Jakub Jelinek <jakub@redhat.com>
24939 * dbxout.c: Include cgraph.h.
24940 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
24941 and without value expr, return NULL if no varpool node exists for
24942 it or if it is not needed.
24943 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
24946 * c-decl.c (start_decl): Convert expr to void_type_node.
24948 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
24950 PR rtl-optimization/48826
24951 * emit-rtl.c (try_split): When splitting a call that is followed
24952 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
24954 2011-05-23 Jakub Jelinek <jakub@redhat.com>
24956 * cfgexpand.c (expand_debug_expr): For unused non-addressable
24957 parameters passed in memory prefer using DECL_INCOMING_RTL over
24958 the pseudos it will be copied into.
24960 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
24963 * config/i386/i386.c (ix86_option_override_internal): Save the
24964 initial options after checking vzeroupper.
24966 2011-05-23 David Li <davidxl@google.com>
24968 PR tree-optimization/48988
24969 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
24970 Initialize has_valid_pred for each pred chain.
24972 2011-05-23 Richard Guenther <rguenther@suse.de>
24974 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
24975 (iterative_hash_gimple_type): Always hash type names.
24977 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
24979 * c-typeck.c (build_function_call_vec): Tweak call to
24980 check_function_arguments.
24982 2011-05-23 Richard Guenther <rguenther@suse.de>
24984 PR tree-optimization/49115
24985 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
24986 is not necessarily carried out, do not claim it kills the ref.
24987 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
24989 2011-05-23 Richard Guenther <rguenther@suse.de>
24991 PR middle-end/15419
24992 * builtins.c (fold_builtin_memory_op): Be less restrictive about
24993 what pointer types we accept for folding.
24995 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24997 * gthr-gnat.c: Remove.
24998 * gthr-gnat.h: Remove.
24999 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
25000 * config/t-freebsd (LIB2ADDEH): Likewise.
25001 * config/t-linux (LIB2ADDEH): Likewise.
25002 * config/t-sol2 (LIB2ADDEH): Likewise.
25003 * config/ia64/t-vms (LIB2ADDEH): Likewise.
25004 * configure.ac (target_thread_file): Remove gnat handling.
25005 * configure: Regenerate.
25006 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
25008 2011-05-23 Tristan Gingold <gingold@adacore.com>
25009 Eric Botcazou <ebotcazou@adacore.com>
25011 * gcov.c (create_file_names): If no object directory is specified,
25012 keep the directory of the file.
25014 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25016 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
25017 * configure: Regenerate.
25019 2011-05-23 Jakub Jelinek <jakub@redhat.com>
25021 PR middle-end/48973
25022 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
25023 failed and the comparison has a single bit signed type, use
25024 constm1_rtx instead of const1_rtx for true value.
25025 (do_store_flag): If ops->type is single bit signed type, disable
25026 signel bit test optimization and pass -1 instead of 1 as last
25027 parameter to emit_store_flag_force.
25029 2011-05-23 Tom de Vries <tom@codesourcery.com>
25032 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
25034 (infer_loop_bounds_from_undefined): Use new function.
25036 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
25038 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
25039 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
25040 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
25042 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
25044 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
25046 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
25047 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
25050 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
25052 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
25054 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
25056 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
25057 UNSPEC_MOVE_PIC pattern.
25059 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
25061 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
25062 (sparc-*-rtems*): Likewise.
25063 (sparc64-*-elf*): Likewise.
25064 (sparc64-*-rtems*): Likewise.
25065 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
25066 * config/sparc/t-crtin: New file.
25067 * config/sparc/t-sol2 (crti.o): Delete rule.
25068 (crtn.o): Likewise.
25069 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
25070 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
25071 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
25072 (ENDFILE_SPEC): Add crtn.o.
25074 2011-05-22 Tom de Vries <tom@codesourcery.com>
25076 PR middle-end/48689
25077 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
25078 CODE_CONTAINS_STRUCT (TS_COMMON).
25080 2011-05-22 Jakub Jelinek <jakub@redhat.com>
25082 PR middle-end/49029
25083 * expmed.c (extract_fixed_bit_field): Test whether target can be used
25084 only after deciding which mode to use.
25086 2011-05-22 Tom de Vries <tom@codesourcery.com>
25089 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
25090 for call to get_shiftadd_cost.
25092 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
25095 * config/i386/cpuid.h (bit_MMXEXT): New define.
25097 2011-05-22 Nick Clifton <nickc@redhat.com>
25099 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
25100 initialisation of non-existant args[2] element. Use args[] array
25101 not arg[] array to pass arguments to build_function_type_list.
25103 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
25105 PR tree-optimization/49087
25106 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
25108 2011-05-21 Jason Merrill <jason@redhat.com>
25111 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
25112 static storage duration.
25114 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
25116 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
25119 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
25121 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
25122 false if there are call-saved registers here...
25123 (sparc_can_use_return_insn_p): ...but here instead.
25124 (save_or_restore_regs): Fix thinko.
25125 (sparc_expand_prologue): Use current_function_is_leaf.
25126 (sparc_frame_pointer_required): Likewise.
25128 2011-05-21 Nick Clifton <nickc@redhat.com>
25131 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
25133 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
25135 * gengtype.c (walk_type): Implemented "atomic" GTY option.
25136 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
25138 2011-05-21 Joseph Myers <joseph@codesourcery.com>
25140 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
25141 * optc-gen.awk: Move common code to opt-read.awk.
25142 * opth-gen.awk: Likewise.
25143 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
25145 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
25147 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
25149 2011-05-20 Tom de Vries <tom@codesourcery.com>
25152 * tree-ssa-loop-ivopts.c: Include expmed.h.
25153 (get_shiftadd_cost): New function.
25154 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
25156 2011-05-20 Jakub Jelinek <jakub@redhat.com>
25159 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
25160 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
25162 2011-05-20 Joseph Myers <joseph@codesourcery.com>
25164 * Makefile.in: Update comment referring to $(OBJS-common).
25166 2011-05-20 Ian Lance Taylor <iant@google.com>
25168 * godump.c (go_output_typedef): Put enum constants in the macro
25169 hash table to avoid duplicate Go const definitions.
25171 2011-05-20 Joseph Myers <joseph@codesourcery.com>
25173 * Makefile.in (LIBDEPS): Add libcommon.a.
25175 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
25176 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
25177 pretty-print.o and version.o.
25178 (OBJS-libcommon): New.
25179 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
25180 (BACKEND): Add libcommon.a.
25181 (MOSTLYCLEANFILES): Likewise.
25182 (libcommon.a): New.
25183 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
25184 (cpp$(exeext)): Likewise.
25185 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
25186 pretty-print.o and input.o.
25187 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
25188 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
25189 (errors.o): Remove.
25190 (mips-tfile): Don't explicitly use version.o.
25191 (mips-tdump): Likewise.
25192 (gcov.o): Depend on $(DIAGNOSTIC_H).
25193 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
25194 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
25195 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
25196 * gcov-dump.c: Include intl.h and diagnostic.h.
25197 (main): Initialize diagnostics.
25198 * gcov.c: Include diagnostic.h.
25200 (main): Initialize diagnostics.
25201 * lto-wrapper.c: Include diagnostic.h.
25202 (main): Initialize diagnostics.
25204 2011-05-20 Michael Matz <matz@suse.de>
25206 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
25208 2011-05-20 Michael Matz <matz@suse.de>
25209 Richard Guenther <rguenther@suse.de>
25211 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
25212 use lto_streamer_cache_append directly instead of returning a VEC.
25213 (preload_common_node): Remove.
25214 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
25216 (lto_streamer_cache_create): Call lto_preload_common_nodes.
25218 2011-05-20 Richard Guenther <rguenther@suse.de>
25220 PR tree-optimization/49079
25221 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
25222 MEM_REFs correctly for the trailing array access detection.
25223 Special case constants the same way as decls for overall size
25226 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
25228 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
25229 argument expansion.
25231 2011-05-20 Jakub Jelinek <jakub@redhat.com>
25233 PR tree-optimization/49073
25234 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
25235 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
25236 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
25238 2011-05-20 Richard Guenther <rguenther@suse.de>
25240 PR middle-end/48849
25241 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
25242 of pointer types the same way the middle-end does.
25244 2011-05-20 Richard Guenther <rguenther@suse.de>
25246 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
25247 or pointer-to chains. Delay all fixup to uniquify_nodes.
25249 2011-05-19 Quentin Neill <quentin.neill@amd.com>
25251 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
25252 (fma4_fmaddsub): Likewise
25254 2011-05-19 Jan Hubicka <jh@suse.cz>
25256 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
25257 (GIMPLE_TYPE_PAIR_SIZE): New macro.
25258 (type_pair_cache): New static var.
25259 (lookup_type_pair): Use fixed sized custom hash; make inline.
25260 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
25261 calls of lookup_type_pair.
25262 (print_gimple_types_stats): Remove cache stats.
25263 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
25266 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
25268 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
25269 when TARGET_RDRND is active.
25270 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
25271 Generate dummy SImode target register when target is NULL.
25273 2011-05-19 Joseph Myers <joseph@codesourcery.com>
25275 * config/arm/arm-fpus.def: New.
25276 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
25278 * config/arm/arm-tables.opt: Regenerate.
25279 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
25280 (arm_option_override): Don't decode FPU name to string here.
25281 * config/arm/arm.opt (mfpu=): Use Enum.
25282 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
25283 Update dependencies.
25285 2011-05-19 Joseph Myers <joseph@codesourcery.com>
25287 * collect2.c: Include diagnostic.h.
25288 (fatal_perror, fatal, error, fancy_abort): Remove.
25289 (main): Set progname. Call xmalloc_set_program_name and
25290 diagnostic_initialize.
25291 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
25292 scan_libraries, resolve_lib_name): Call fatal_error instead of
25293 fatal and fatal_perror.
25294 * collect2.h (error, fatal, fatal_perror): Don't declare.
25295 * tlink.c: Include diagnostic-core.h.
25296 (recompile_files): Call fatal_error instead of fatal_perror.
25297 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
25298 pretty-print.o and input.o.
25299 (collect2.o, tlink.o): Update dependencies.
25301 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25303 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
25305 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25308 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
25309 COMDAT group syntax, both SPARC and x86 variants.
25310 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
25311 * configure: Regenerate.
25312 * config/sol2.h (TARGET_SOLARIS): Define.
25313 (PUSHSECTION_FORMAT): Remove.
25314 (SECTION_NAME_FORMAT): Define.
25315 * config/sol2.c: Include hashtab.h.
25316 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
25317 expansion, using SECTION_NAME_FORMAT.
25318 (solaris_comdat_htab): New variable.
25319 (struct comdat_entry): Define.
25320 (comdat_hash): New function.
25321 (comdat_eq): New function.
25322 (solaris_elf_asm_comdat_section): New function.
25323 (solaris_define_comdat_signature): New function.
25324 (solaris_code_end): New function.
25325 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
25326 (solaris_code_end): Declare.
25327 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
25328 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
25330 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
25331 Remove ATTRIBUTE_UNUSED.
25332 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
25333 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
25334 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
25335 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
25336 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
25337 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
25338 (PUSHSECTION_FORMAT): Remove.
25339 (SECTION_NAME_FORMAT): Redefine.
25341 2011-05-19 Kai Tietz <ktietz@redhat.com>
25343 * tree-cfg.c (verify_gimple_assign_binary): Barf on
25344 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
25345 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
25347 2011-05-19 Anatoly Sokolov <aesok@post.ru>
25348 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25350 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
25352 2011-05-19 Richard Guenther <rguenther@suse.de>
25354 PR middle-end/48985
25355 * tree-object-size.c (addr_object_size): If the pointed-to
25356 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
25358 2011-05-19 Richard Guenther <rguenther@suse.de>
25360 * gimple.c (gimple_types_compatible_p_1): Compare names of
25361 the types themselves.
25362 (iterative_hash_gimple_type): And hash them that way.
25363 (gimple_register_type_1): If we register a main variant properly
25364 initialize the leader to ourselves.
25366 2011-05-19 Tom de Vries <tom@codesourcery.com>
25369 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
25370 get_loop_invariant_expr_id.
25371 (get_loop_invariant_expr_id): Use get_expr_id.
25372 (parm_decl_cost): New function.
25373 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
25374 Improve bound cost estimation. Use different inv_expr_id for elim and
25377 2011-05-19 Tom de Vries <tom@codesourcery.com>
25380 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
25381 cost_base.cost == 0.
25383 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
25386 * config/i386/sse.md
25387 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
25390 2011-05-18 Jakub Jelinek <jakub@redhat.com>
25392 PR tree-optimization/49039
25393 * tree-vrp.c (extract_range_from_binary_expr): For
25394 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
25395 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
25397 2011-05-18 Tom de Vries <tom@codesourcery.com>
25400 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
25402 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
25404 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
25405 (*tls_global_dynamic_64): Ditto.
25406 (*tls_local_dynamic_base_32_gnu): Ditto.
25407 (*tls_local_dynamic_base_64): Ditto.
25408 (tls_initial_exec_64_sun): Ditto.
25410 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
25412 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
25413 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
25415 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
25416 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
25417 * config/bfin/bfin.c (bfin_cpus): Add bf592.
25418 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
25419 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
25420 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
25421 * config/bfin/elf.h (LIB_SPEC): Add bf592.
25423 2011-05-18 Joseph Myers <joseph@codesourcery.com>
25425 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
25426 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
25427 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
25428 target_thread_pointer, arm_structure_size_boundary, struct
25429 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
25430 struct abi_name, arm_all_abis): Remove.
25431 (arm_option_override) Don't process most enumerated option values here.
25432 Don't process target_fpe_name here. Work with integer not string for
25433 structure size boundary; use separate diagnostics for each case.
25434 * config/arm/arm.h (enum float_abi_type, enum
25435 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
25437 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
25438 arm_structure_size_boundary): Remove.
25439 * config/arm/arm.opt (mabi=): Use Enum and Init.
25440 (arm_abi_type): New Enum and EnumValue entries.
25441 (mfloat-abi=): Use Enum and Init.
25442 (float_abi_type): New Enum and EnumValue entries.
25443 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
25444 (mfp16-format=): Use Enum and Init.
25445 (arm_fp16_format_type): New Enum and EnumValue entries.
25446 (mstructure-size-boundary=): Use UInteger and Init.
25447 (mtp=): Use Enum and Init.
25448 (arm_tp_type): New Enum and EnumValue entries.
25450 2011-05-18 Richard Guenther <rguenther@suse.de>
25452 PR tree-optimization/49018
25453 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
25454 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
25455 gimple_has_side_effects.
25457 2011-05-18 Richard Guenther <rguenther@suse.de>
25459 * gimple.c (gimple_register_type_1): New function, split out from ...
25460 (gimple_register_type): ... here. Avoid infinite recursion.
25462 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
25464 PR tree-optimization/41881
25465 * tree-vectorizer.h (struct _loop_vec_info): Add new field
25466 reduction_chains along with a macro for its access.
25467 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
25468 (destroy_loop_vec_info): Free reduction chains.
25469 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
25470 (vect_is_slp_reduction): New function.
25471 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
25472 (vect_create_epilog_for_reduction): Support SLP reduction chains.
25473 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
25474 definition types for reduction chains.
25475 (vect_supported_load_permutation_p): Don't allow permutations for
25477 (vect_analyze_slp_instance): Support reduction chains.
25478 (vect_analyze_slp): Try to build SLP instance from reduction chains.
25479 (vect_get_constant_vectors): Handle reduction chains.
25480 (vect_schedule_slp_instance): Mark the first statement of the
25481 reduction chain as reduction.
25483 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
25485 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
25486 names for group elements access.
25487 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
25488 reduction chains as well. Remove data reference and interleaving
25489 related words from the fields names.
25490 * tree-vect-loop.c (vect_transform_loop): Use new names for group
25492 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
25493 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
25494 vect_update_interleaving_chain, vect_same_range_drs,
25495 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
25496 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
25497 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
25498 vect_analyze_group_access, vect_analyze_data_ref_access,
25499 vect_create_data_ref_ptr, vect_transform_strided_load,
25500 vect_record_strided_load_vectors): Likewise.
25501 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
25502 vect_model_load_cost, vectorizable_store, vectorizable_load,
25503 vect_remove_stores, new_stmt_vec_info): Likewise.
25504 * tree-vect-slp.c (vect_build_slp_tree,
25505 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
25507 2011-05-18 Richard Guenther <rguenther@suse.de>
25509 PR middle-end/48989
25510 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
25511 operand verification.
25512 (verify_gimple_assign_binary): Likewise.
25513 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
25514 to non-1-precision BOOLEAN_TYPEs.
25516 2011-05-18 Tom de Vries <tom@codesourcery.com>
25519 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
25521 2011-05-18 Jakub Jelinek <jakub@redhat.com>
25523 PR tree-optimization/49000
25524 * tree-ssa.c (execute_update_addresses_taken): Call
25525 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
25526 be rewritten and decl has been marked for renaming, reset
25529 2011-05-17 Joseph Myers <joseph@codesourcery.com>
25531 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
25532 enum_opts_set when testing if attributes have set -mfpmath=.
25534 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
25536 * config/mips/mips.c (mips_handle_option): Remove unused variable.
25538 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
25540 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
25542 * tree-inline.c (maybe_inline_call_in_expr): Initialize
25543 id.transform_lang_insert_block with NULL.
25545 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
25547 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
25548 (output_fp_compare): Change args 3 and 4 to bool.
25549 (ix86_expand_call): Change arg 6 to bool.
25550 (ix86_attr_length_immediate_default): Change arg 2 to bool.
25551 (ix86_attr_length_vex_default): Change arg 3 to bool.
25552 * config/i386/i386.md: Update all uses.
25553 * config/i386/i386.c: Ditto.
25554 (ix86_flags_dependent): Change return type to bool.
25556 2011-05-17 Richard Guenther <rguenther@suse.de>
25558 * gimple.c (type_hash_pair_compare): Fix comparison.
25560 2011-05-17 Richard Guenther <rguenther@suse.de>
25562 * gimple.c (iterative_hash_gimple_type): Simplify singleton
25563 case some more, fix final hash value of the non-singleton case.
25565 2011-05-17 Richard Guenther <rguenther@suse.de>
25569 2011-05-16 Richard Guenther <rguenther@suse.de>
25571 * gimple.c (gimple_types_compatible_p_1): Use names of the
25572 type itself, not its main variant.
25573 (iterative_hash_gimple_type): Likewise.
25575 2011-05-17 Richard Guenther <rguenther@suse.de>
25577 * gimple.c (gimple_register_canonical_type): Use the main-variant
25578 leader for computing the canonical type.
25580 2011-05-17 Nick Clifton <nickc@redhat.com>
25582 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
25585 * config/rx/rx.md: Add peephole to remove redundant extensions
25587 (bitset_in_memory): Use rx_restricted_mem_operand.
25588 (bitinvert_in_memory): Likewise.
25589 (bitclr_in_memory): Likewise.
25591 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
25592 Nick Clifton <nickc@redhat.com>
25594 * config/rx/rx.md: Add peepholes to match a register move followed
25595 by a comparison of the moved register. Replace these with an
25596 addition of zero that does both actions in one instruction.
25598 2011-05-17 Jakub Jelinek <jakub@redhat.com>
25601 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
25602 predicate to allow CONST_INT.
25603 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
25605 2011-05-16 Joseph Myers <joseph@codesourcery.com>
25607 * opts-common.c (opt_enum_arg_to_value): New.
25608 * opts.h (opt_enum_arg_to_value): Declare.
25609 * config/i386/i386.opt (fpmath): Remove.
25610 (mfpmath=): Use Enum, Init and Save.
25611 (fpmath_unit): New Enum and EnumValue entries.
25612 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
25613 name for function fpmath state.
25614 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
25615 * config/i386/i386.c: Include diagnostic.h.
25616 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
25617 (ix86_target_string): Take enum fpmath_unit value instead of string.
25618 (ix86_debug_options): Update call to ix86_target_string.
25619 (ix86_option_override_internal): Don't process fpmath strings here.
25620 (x86_function_specific_save, ix86_function_specific_restore):
25621 Don't handle fpmath state specially.
25622 (ix86_function_specific_print): Pass fpmath state to
25623 ix86_target_string instead of printing in this function.
25624 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
25625 Handle enum attributes.
25626 (IX86_ATTR_ENUM, ix86_opt_enum): New.
25627 (ix86_valid_target_attribute_tree): Update option_strings
25628 handling. Handle fpmath as enum option.
25629 (ix86_can_inline_p): Update field names for function fpmath state.
25630 (ix86_expand_builtin): Update call to ix86_target_string.
25631 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
25632 (ix86_fpmath): Remove.
25633 * config/i386/t-i386 (i386.o): Update dependencies.
25635 2011-05-16 Joseph Myers <joseph@codesourcery.com>
25637 PR preprocessor/48677
25638 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
25639 from decoded_options[0], not from itself.
25641 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
25643 * config/i386/constraints.md (z): New constraint.
25644 * config/i386/i386.c (c): New mode attribute.
25645 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
25646 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
25647 constraint for operand 0.
25648 (*call_vzeroupper): Ditto.
25649 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
25650 (*call_rex64_ms_sysv_vzeroupper): Ditto.
25651 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
25652 Use "lzm" constraint for operand 0.
25653 (*call_pop_vzeroupper): Ditto.
25654 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
25655 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
25656 constraint for operand 0.
25657 (*sibcall_vzeroupper): Ditto.
25658 (*sibcall_rex64_ms_sysv): Ditto.
25659 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
25660 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
25661 *sibcall_pop_1. Use "Uz" constraint for operand 0.
25662 (*sibcall_pop_vzeroupper): Ditto.
25663 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
25664 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
25665 mode iterator. Use "<c>zm" constraint for operand 1.
25666 (*call_value_vzeroupper): Ditto.
25667 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
25669 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
25670 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
25671 *call_value_pop_1. Use "lzm" constraint for operand 1.
25672 (*call_value_pop_vzeroupper): Ditto.
25673 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
25674 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
25675 mode iterator. Use "Uz" constraint for operand 1.
25676 (*sibcall_value_vzeroupper): Ditto.
25677 (*sibcall_value_rex64_ms_sysv): Ditto.
25678 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
25679 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
25680 constraint for operand 1.
25681 (*sibcall_value_pop_vzeroupper): Ditto.
25682 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
25683 and "z" constraint for operand 2.
25684 (*tls_global_dynamic_32_gnu): Ditto.
25685 (*tls_local_dynamic_base_32_gnu): Ditto.
25686 (*tls_local_dynamic_base_64): Ditto.
25687 (*tls_local_dynamic_32_once): Ditto.
25688 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
25689 Update all callers.
25690 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
25692 2011-05-16 Richard Guenther <rguenther@suse.de>
25694 * gimple.c (gimple_types_compatible_p_1): Use names of the
25695 type itself, not its main variant.
25696 (iterative_hash_gimple_type): Likewise.
25698 2011-05-16 Richard Guenther <rguenther@suse.de>
25700 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
25701 always visit pointer target and function result and argument types.
25703 2011-05-16 Jason Merrill <jason@redhat.com>
25706 * tree-inline.c (copy_statement_list): Put back recursion.
25708 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
25712 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
25713 * config/avr/avr.md ("*ior<mode>qi.byte0",
25714 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
25716 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
25719 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
25720 register is needed for a function argument.
25722 2011-05-16 Richard Guenther <rguenther@suse.de>
25724 * gimple.c (struct type_hash_pair): New type.
25725 (type_hash_pair_compare): New function.
25726 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
25728 2011-05-16 Revital Eres <revital.eres@linaro.org>
25730 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
25732 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
25734 * config/i386/i386.md (floating point move splitters): Fix
25735 usage of standard_80387_constant_p.
25736 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
25738 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
25740 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
25742 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
25744 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
25745 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
25746 (tree_ssa_lim_finalize): Likewise.
25748 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
25750 * config/i386/constraint.md (Yd, Yx): New register constraints.
25751 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
25752 Yd conditional register constraint.
25753 (*movtf_internal): Use standard_sse_constant_opcode.
25754 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
25755 Yx conditional register constraint.
25756 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
25757 Yd conditional register constraint. Use standard_sse_constant_p to
25758 check for valid SSE constants and call standard_sse_constant_opcode to
25760 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
25761 constants and call standard_sse_constant_opcode to output SSE insn.
25762 * config/i386/i386.c (ix86_option_ovverride_internal): Set
25763 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
25764 optimize_size is set.
25765 (standard_sse_constant_opcode): Output conditional AVX insn templates.
25767 2011-05-14 Tobias Burnus <burnus@net-b.de>
25769 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
25771 2011-05-13 Martin Jambor <mjambor@suse.cz>
25773 * ipa-prop.c (ipa_cst_from_jfunc): New function.
25774 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
25775 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
25776 (evaluate_conditions_for_ipcp_clone): Removed.
25777 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
25778 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
25779 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
25781 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
25783 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
25784 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
25785 lieu of MAY_HAVE_DEBUG_STMTS.
25786 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
25787 debug statements if !MAY_HAVE_DEBUG_STMTS.
25789 2011-05-13 Martin Thuresson <martint@google.com>
25791 PR gcov-profile/47793
25792 * libgcov.c (gcov_exit): Support relative profile paths.
25793 * doc/invoke.texi (-fprofile-dir): Update for above change.
25795 2011-05-13 Richard Guenther <rguenther@suse.de>
25797 * gimple.c (gimple_canonical_types_compatible_p): Do not use
25798 type-pair caching, do not compare hashes.
25800 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
25802 PR middle-end/48965
25803 * tree-cfg.c (edge_to_cases_cleanup): Return true.
25804 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
25806 2011-05-13 Kai Tietz <ktietz@redhat.com>
25808 * gimplify.c (gimplify_expr): Make sure operand is boolified.
25809 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
25810 compatible type for TRUTH_NOT_EXPR.
25812 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
25814 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
25815 (ix86_hard_regno_mode_ok): Change return value to bool. Use
25816 can_create_pseudo_p ().
25818 2011-05-13 Richard Guenther <rguenther@suse.de>
25821 * gimple.c (iterative_hash_gimple_type): Revert change in
25822 pointer target and function result and argument hashing.
25824 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
25826 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
25827 (*movxf_internal_nointeger): Ditto.
25828 (*movdf_internal_rex64): Ditto.
25829 (*movdf_internal): Ditto.
25830 (*movdf_internal_nointeger): Ditto.
25831 (*movsf_internal): Ditto.
25832 (sincos splitters): Use can_create_pseudo ().
25834 2011-05-13 Joseph Myers <joseph@codesourcery.com>
25836 * config/i386/i386-opts.h: New.
25837 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
25838 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
25839 ix86_section_threshold): Remove.
25840 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
25841 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
25843 (ix86_option_override_internal): Don't decode strings for options
25844 other than -march=, -mtune= and -mfpmath=. Don't allow for
25845 __attribute__ uses in remaining diagnostics for options with
25846 string arguments. Don't check for integer arguments being negative.
25847 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
25848 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
25849 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
25850 ix86_branch_cost, ix86_section_threshold): Remove.
25851 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
25853 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
25855 (masm=): Use Enum and Init.
25856 (asm_dialect): New Enum and EnumValue entries.
25857 (mbranch-cost=): Use UInteger.
25858 (mlarge-data-threshold=): Use UInteger and Init.
25859 (mcmodel=): Use Enum and Init.
25860 (cmodel): New Enum and EnumValue entries.
25861 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
25862 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
25863 mregparm=): Use UInteger.
25864 (mstringop-strategy=): Use Enum and Init.
25865 (stringop_alg): New Enum and EnumValue entries.
25866 (mtls-dialect=): Use Enum and Init.
25867 (tls_dialect): New Enum and EnumValue entries.
25868 (mabi=): Use Enum and Init.
25869 (calling_abi): New Enum and EnumValue entries.
25870 (mveclibabi=): Use Enum and Init.
25871 (ix86_veclibabi): New Enum and EnumValue entries.
25873 2011-05-13 Nick Clifton <nickc@redhat.com>
25875 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
25876 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
25878 2011-05-13 Kai Tietz <ktietz@redhat.com>
25880 PR middle-end/48984
25881 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
25882 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
25883 (gimple_boolify): Check for cast for boolean_type_node instead for
25886 2011-05-13 Richard Guenther <rguenther@suse.de>
25888 PR tree-optimization/48172
25889 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
25890 multiplying by number of iterations for equal step.
25891 (vect_create_cond_for_alias_checks): Likewise.
25893 2011-05-13 Andreas Schwab <schwab@redhat.com>
25895 * configure.ac: Use AS_HELP_STRING throughout.
25896 * configure: Regenerate.
25898 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
25900 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
25901 (ix86_emit_restore_regs_using_mov): Likewise.
25902 (ix86_emit_restore_sse_regs_using_mov): Likewise.
25904 2011-05-12 Anatoly Sokolov <aesok@post.ru>
25906 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
25907 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
25908 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
25909 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
25910 RTX_OK_FOR_OLO10_P): ...here.
25911 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
25914 2011-05-12 Kai Tietz <ktietz@redhat.com>
25916 * gimplify.c (gimple_boolify): Re-boolify expression
25917 arguments even if expression type is of kind BOOLEAN_TYPE.
25918 (gimplify_boolean_expr): Removed.
25919 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
25920 and XOR. Additional take care that we keep expression's type.
25921 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
25922 of TRUTH_AND|OR|XOR_EXPR.
25924 2011-05-12 Jakub Jelinek <jakub@redhat.com>
25926 PR tree-optimization/48975
25927 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
25928 on all bbs here and free and clear ifc_bbs at the end.
25930 2011-05-12 Richard Guenther <rguenther@suse.de>
25932 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
25933 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
25934 until after simple checks.
25935 (gimple_types_compatible_p): Likewise.
25936 (iterative_hash_gimple_type): Always hash pointer targets
25937 and function return and argument types.
25938 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
25939 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
25940 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
25941 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
25942 completely in the simple compare section.
25943 (gimple_register_canonical_type): Query the cache again after
25946 2011-05-12 Richard Guenther <rguenther@suse.de>
25948 PR tree-optimization/48172
25949 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
25950 the number of iterations from the segment size calculation.
25951 (vect_create_cond_for_alias_checks): Adjust.
25953 2011-05-12 Jakub Jelinek <jakub@redhat.com>
25956 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
25957 if validate_subreg fails.
25959 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
25961 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
25962 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
25965 2011-05-12 DJ Delorie <dj@redhat.com>
25967 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
25968 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
25969 created builtin into rx_builtins array.
25970 (rx_builtin_decl): New function.
25971 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
25973 2011-05-12 DJ Delorie <dj@redhat.com>
25974 Nick Clifton <nickc@redhat.com>
25976 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
25977 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
25978 (rx_is_legitimate_address): Add pre-decrement and post-increment
25979 addressing in HImode and QImode. Fix test for out of range
25980 REG+INT addressing.
25981 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
25982 (rx_align_for_label): Test label before extracting its usage count.
25983 (rx_adjust_insn_lengths): Fix selection of insn codes.
25984 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
25986 2011-05-11 Jason Merrill <jason@redhat.com>
25988 * tree.c (type_hash_canon): Use struct tree_type_non_common.
25990 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
25992 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
25993 reindent the subsequent block.
25995 2011-05-11 Satoru Takabayashi <satorux@google.com>
25996 Paul Pluzhnikov <ppluzhnikov@google.com>
25998 * doc/install.texi (Configuration): Document --with-linker-hash-style.
25999 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
26000 * config.in: Add LINKER_HASH_STYLE.
26001 * configure.ac: Add --with-linker-hash-style.
26002 * configure: Regenerate.
26004 2011-05-11 Richard Guenther <rguenther@suse.de>
26006 PR middle-end/48964
26007 * gimple.c (iterative_hash_canonical_type): Fix typo.
26009 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
26011 * config/i386/i386.c (legitimize_tls_address)
26012 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
26013 expanders directly for TARGET_GNU2_TLS. Determine pic and
26014 __tls_get_addr symbol reference here. Update call to
26015 gen_tls_global_dynamic_{32,64} for added arguments.
26016 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
26017 expanders directly for TARGET_GNU2_TLS. Determine
26018 __tls_get_addr symbol reference here. Update call to
26019 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
26020 unique UNSPEC REG_EQUIV to libcall block.
26021 (ix86_tls_get_addr): Declare static.
26022 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
26023 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
26024 Do not determine pic and __tls_get_addr symbol reference here. Do not
26025 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
26026 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
26027 (tls_global_dynamic_64): Add operand 2. Do not determine
26028 __tls_get_addr symbol reference here. Do not call
26029 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
26030 (tls_local_dynamic_base64): Ditto for operand 1.
26032 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
26034 * function.c (expand_function_start): Initialize stack_check_probe_note
26035 only if the generic stack checking mechanism is used.
26037 2011-05-11 Richard Guenther <rguenther@suse.de>
26039 PR tree-optimization/15256
26040 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
26041 (A & B) | C, combine (A op CST1) op CST2.
26042 (tree_ssa_forward_propagate_single_use_vars): Only bother to
26043 visit assigns that have uses.
26045 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
26047 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
26048 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
26049 (unpack_ts_type_common_value_fields): ...this. Update comment.
26050 (unpack_value_fields): Adjust for renaming.
26051 (lto_input_ts_type_tree_pointers): Split into...
26052 (lto_input_ts_type_common_tree_pointer): ...this and...
26053 (lto_input_ts_type_non_common_tree_pointers): ...this.
26054 (lto_input_tree_pointers): Adjust for above split.
26055 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
26056 (pack_ts_type_common_value_fields): ...this. Update comment.
26057 (lto_output_ts_type_tree_pointers): Split into...
26058 (lto_output_ts_type_common_tree_pointers): ...this and...
26059 (lto_output_ts_type_non_common_tree_pointers): ...this.
26060 (lto_output_tree_pointers): Adjust for above split.
26061 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
26062 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
26063 * stor-layout.c (vector_type_mode): Adjust location of mode field.
26064 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
26066 (struct tree_type): Split into...
26067 (struct tree_type_common: ...this and...
26068 (struct tree_type_with_lang_specific): ...this and...
26069 (struct tree_type_non_common): ...this. Adjust accessor macros
26071 (TYPE_VALUES_RAW): Define.
26072 (union tree_node): Update for above changes.
26073 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
26074 TS_TYPE_NON_COMMON.
26075 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
26076 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
26077 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
26078 * treestructu.def (TS_TYPE): Remove.
26079 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
26082 2011-05-11 Jakub Jelinek <jakub@redhat.com>
26085 * tree-ssa.c (reset_debug_uses): New function.
26086 * tree-flow.h (reset_debug_uses): New prototype.
26087 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
26088 * tree-loop-distribution.c (generate_loops_for_partition): Call
26089 reset_debug_uses on the stmts that will be removed. Keep around
26090 all debug stmts, don't count them as bits in partition bitmap.
26091 (generate_builtin): Don't count debug stmts or labels as bits in
26094 2011-05-11 Richard Guenther <rguenther@suse.de>
26096 * gimple.c (gimple_type_hash_1): Merge with ...
26097 (gimple_type_hash): ... this.
26098 (gtc_visit): Remove mode parameter and simplify accordingly.
26099 (gimple_types_compatible_p_1): Likewise.
26100 (gimple_types_compatible_p): Likewise.
26101 (iterative_hash_gimple_type): Likewise.
26103 (gimple_type_eq): Adjust.
26105 2011-05-11 Revital Eres <revital.eres@linaro.org>
26107 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
26108 enters the branch create an anti edge in the opposite direction
26109 to prevent the creation of reg-moves.
26110 * modulo-sched.c: Adjust comment to reflect the fact we are
26111 scheduling closing branch.
26112 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
26113 (stage_count): New field in struct partial_schedule.
26114 (calculate_stage_count): New function.
26115 (normalize_sched_times): Rename to reset_sched_times and handle
26116 incrementing the sched time of the nodes by a constant value
26117 passed as parameter.
26118 (duplicate_insns_of_cycles): Skip closing branch.
26119 (sms_schedule_by_order): Schedule closing branch.
26120 (ps_insn_find_column): Handle closing branch.
26121 (sms_schedule): Call reset_sched_times and adjust the code to
26122 support scheduling of the closing branch.
26123 (ps_insert_empty_row): Update calls to normalize_sched_times
26124 and rotate_partial_schedule functions.
26126 2011-05-11 Richard Guenther <rguenther@suse.de>
26128 PR middle-end/48953
26129 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
26131 2011-05-11 Joseph Myers <joseph@codesourcery.com>
26133 * opts.c (finish_options): Move warning settings from process_options.
26134 * toplev.c (process_options): Move warning settings to finish_options.
26136 2011-05-11 Richard Guenther <rguenther@suse.de>
26138 PR tree-optimization/18041
26139 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
26140 (simplify_bitwise_binary): ... this. Handle operand conversions
26141 by applying them to the result instead.
26142 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
26144 2011-05-11 Richard Guenther <rguenther@suse.de>
26146 * gimple.c (gimple_canonical_types_compatible_p): Split out
26147 from gimple_types_compatible_p and friends. Do not recurse
26148 to pointed-to types.
26149 (gimple_canonical_type_eq): Use it.
26150 (iterative_hash_canonical_type): Split out from
26151 iterative_hash_gimple_type and friends. Do not recurse
26152 to pointed-to types.
26153 (gimple_canonical_type_hash): Use it, allocate the hash here.
26155 2011-05-11 Revital Eres <revital.eres@linaro.org>
26157 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
26158 recognizing doloop.
26160 2011-05-11 Revital Eres <revital.eres@linaro.org>
26162 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
26163 instead of PREV_INSN.
26165 2011-05-11 Revital Eres <revital.eres@linaro.org>
26167 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
26168 * loop-doloop.c (doloop_condition_get): Likewise.
26169 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
26171 * config/arm/arm.md (*addsi3_compare0): Remove "*".
26173 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
26175 * tree.def (CASE_LABEL_EXPR): Add an operand.
26176 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
26178 2011-05-10 Joseph Myers <joseph@codesourcery.com>
26180 * c-decl.c (c_override_global_bindings_to_false): Remove.
26181 (global_bindings_p): Don't check
26182 c_override_global_bindings_to_false.
26183 * c-tree.h (c_override_global_bindings_to_false): Remove.
26184 * c-typeck.c (composite_type): Don't set
26185 c_override_global_bindings_to_false.
26187 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
26189 PR target/48857, 48495
26190 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
26192 (VSX_MOVE_MODE): Ditto.
26193 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
26194 VSX vector types. Add V2DImode.
26195 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
26196 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
26197 (MODES_TIEABLE_P): Ditto.
26199 * config/rs6000/rs6000.c (rs6000_emit_move): Use
26200 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
26202 (init_cumulative_args): Ditto.
26203 (rs6000_function_arg_boundary): Ditto.
26204 (rs6000_function_arg_advance_1): Ditto.
26205 (rs6000_function_arg): Ditto.
26206 (rs6000_function_ok_for_sibcall): Ditto.
26207 (emit_frame_save): Ditto.
26208 (rs6000_function_value): Ditto.
26209 (rs6000_libcall_value): Ditto.
26211 2011-05-10 Joseph Myers <joseph@codesourcery.com>
26213 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
26214 i386/darwin-lib.h to $libgcc_tm_file.
26215 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
26217 2011-05-10 Joseph Myers <joseph@codesourcery.com>
26219 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
26221 2011-05-10 Joseph Myers <joseph@codesourcery.com>
26223 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
26224 * config/rs6000/rs6000-tables.opt: New file (generated).
26225 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
26226 rs6000/rs6000-tables.opt to extra_options.
26227 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
26228 * config/rs6000/rs6000.c (rs6000_select): Remove.
26229 (processor_target_table): Move contents to rs6000-cpus.def.
26230 (darwin_rs6000_override_options): Check
26231 global_options_set.x_rs6000_cpu_index instead of
26232 rs6000_select[1].string.
26233 (rs6000_option_override_internal): Likewise.
26234 (rs6000_handle_option): Don't assert that global structures are in
26235 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
26236 (rs6000_default_cpu): New variable.
26237 (rs6000_file_start): Set it instead of local default_cpu. Check
26238 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
26239 global_options_set.x_rs6000_tune_index instead of rs6000_select.
26240 (rs6000_darwin_file_start): Check rs6000_default_cpu and
26241 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
26242 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
26243 rs6000_select): Remove.
26244 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
26246 (mcpu=, mtune=): Use Var, Init, Enum and Save.
26247 * config/rs6000/t-rs6000
26248 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
26249 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
26250 global_options_set.x_rs6000_cpu_index instead of
26251 rs6000_select[1].string.
26252 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
26253 global_options_set.x_rs6000_cpu_index instead of
26254 rs6000_select[1].string.
26256 2011-05-10 Joseph Myers <joseph@codesourcery.com>
26258 * config.gcc (libgcc_tm_file): Define instead of including files
26259 from ../../libgcc/config/ in tm_file.
26260 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
26261 * configure: Regenerate.
26262 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
26263 libgcc_tm.h, cs-libgcc_tm.h): New.
26264 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
26265 (clean): Remove libgcc_tm.h.
26266 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
26267 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
26268 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
26270 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
26273 * config/avr/avr.c (avr_ret_register): Return unsigned int
26275 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
26276 it to avr_libcall_value.
26277 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
26279 (avr_expand_binop_builtin): Ditto.
26280 (avr_expand_unop_builtin): Ditto.
26282 2011-05-10 DJ Delorie <dj@redhat.com>
26284 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
26285 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
26286 * config/rx/rx.c (rx_align_for_label): Add label and
26287 uses_threshold parameters. Do not align when the label is not
26289 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
26291 2011-05-10 Richard Guenther <rguenther@suse.de>
26293 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
26294 a series of conversions and apply foldings similar to what
26296 (tree_ssa_forward_propagate_single_use_vars): Call it.
26298 2011-05-10 Jakub Jelinek <jakub@redhat.com>
26300 PR tree-optimization/48611
26301 PR tree-optimization/48794
26302 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
26303 referenced from RESX or EH_DISPATCH arguments.
26306 * dfp.c (decimal_to_decnumber): Handle conversion from
26307 dconst{1,2,m1,half}.
26309 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
26311 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
26312 for !flag_prefer_avx128.
26313 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
26315 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
26317 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
26318 (fold_ternary_loc): Use expr_location_or.
26320 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
26323 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
26324 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
26325 Pmode and mem_mode is not VOIDmode.
26327 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
26329 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
26330 TYPE_QUAL_RESTRICT): Convert to enum.
26332 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
26334 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
26335 (const_pow2_1_to_8_operand): Ditto.
26336 (const_pow2_1_to_128_operand): Ditto.
26337 (const_pow2_1_to_32768_operand): Ditto.
26338 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
26339 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
26340 in insn constraint to check integer value of operand 3.
26341 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
26343 (PINSR_MODE): New mode iterator.
26344 (sse2p4_1): New mode attribute.
26345 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
26346 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
26347 iterator. Use const_int_operand instead of
26348 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
26349 exact_log2 in insn constraint to check integer value of operand 3.
26351 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
26353 * config/i386/sse.md (blendbits): Remove mode attribute.
26354 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
26355 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
26356 Check integer value of operand 3 in insn constraint.
26358 2011-05-09 Richard Guenther <rguenther@suse.de>
26360 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
26362 (lto_symtab_merge): Likewise. Do not register types here.
26363 (lto_symtab_merge_decls_2): Likewise.
26364 (lto_symtab_merge_decls_1): Likewise.
26365 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
26366 * gimple.c (enum gtc_mode): Declare.
26367 (gimple_types_compatible_p): Make static.
26369 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26371 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
26372 temporary register to match Pmode.
26374 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
26376 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
26377 and *vec_concatv4si_1_avx.
26379 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
26381 PR rtl-optimization/48927
26382 * ira-conflicts.c (commutative_constraint_p): Use
26383 recog_data.alternative_enabled_p to disable alternatives where
26384 "enabled" attribute is false.
26385 (get_dup_num): Ditto.
26386 * ira-lives.c (single_reg_class): Ditto.
26387 (ira_implicitly_set_insn_hard_regs): Ditto.
26389 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
26391 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
26392 (dataflow_set_preserve_mem_locs): Likewise.
26394 2011-05-09 Philipp Thomas <pth@suse.de>
26396 * config/mep/mep.c (mep_validate_vliw): Syntax description
26397 should not be translated.
26399 2011-05-09 Joseph Myers <joseph@codesourcery.com>
26401 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
26402 * config/mips/mips-tables.opt: New file (generated).
26403 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
26404 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
26405 MIPS_ARCH_OPTION_NATIVE): Define.
26406 * config/mips/mips.c (mips_cpu_info_table): Move contents to
26408 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
26409 mips_parse_cpu): Remove.
26410 (mips_cpu_info_from_opt, mips_default_arch): New.
26411 (mips_handle_option): Don't assert that global structures are in
26412 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
26413 (mips_option_override): Use new variables and functions to set
26414 state of these options. Use strcmp to check for individual CPU names.
26415 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
26417 * config/mips/mips.opt (march=): Use ToLower and Enum.
26418 (mips): Use ToLower, Enum and Var.
26419 (mtune=): Use ToLower and Enum.
26420 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
26422 2011-05-08 Jan Hubicka <jh@suse.cz>
26424 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
26425 Arrange type pairs to be UID ordered.
26426 (gimple_lookup_type_leader): Make inline.
26428 2011-05-09 Nick Clifton <nickc@redhat.com>
26431 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
26435 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
26438 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
26440 * combine.c (simplify_comparison): Abstract out parts into...
26441 (simplify_compare_const): ... new function.
26442 (try_combine): Generalize parallel arithmetic/compare combining
26443 to call simplify_compare_const() and CANONICALIZE_COMPARE().
26445 2011-05-08 Jan Hubicka <jh@suse.cz>
26447 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
26448 (cgraph_create_virtual_clone): Call hooks once virtual clone
26450 * cgraph.h (cgraph_clone_node): Update prototype.
26451 * ipa-cp.c (ipcp_estimate_growth): Use
26452 estimate_ipcp_clone_size_and_time.
26453 * ipa-inline-transform.c (clone_inlined_nodes): Update.
26454 * lto-cgraph.c (input_node): Update.
26455 * ipa-inline.c (recursive_inlining): Update.
26456 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
26457 (evaluate_conditions_for_known_args): Break out from ...
26458 (evaluate_conditions_for_edge): ... here.
26459 (evaluate_conditions_for_ipcp_clone): New function.
26460 (inline_node_duplication_hook): Update clone summary based
26462 (estimate_callee_size_and_time): Rename to ...
26463 (estimate_node_size_and_time): take NODE instead of EDGE;
26464 take POSSIBLE_TRUTHS as argument.
26465 (estimate_callee_size_and_time): Update.
26466 (estimate_ipcp_clone_size_and_time): New function.
26467 (do_estimate_edge_time): Update.
26469 2011-05-08 Richard Guenther <rguenther@suse.de>
26471 PR middle-end/48908
26472 PR middle-end/48905
26473 * expmed.c (expand_shift_1): Compute adjusted constant shift
26476 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
26478 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
26480 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
26482 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
26484 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
26486 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
26488 2011-05-07 Jan Hubicka <jh@suse.cz>
26490 * ipa-inline-transform.c (inline_call): Account when program size
26492 * ipa-inline.c (relative_time_benefit): New function.
26493 (edge_badness): Reorganize to be power 2 based; fix thinko when
26494 computing badness for negative growth; update comments to match
26495 reality; better dumps.
26497 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
26499 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
26500 type to bool and adjust comment.
26501 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
26502 (fold_mathfn_compare): Remove calls to global_bindings_p.
26503 (fold_inf_compare): Likewise.
26504 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
26505 * c-tree.h (global_bindings_p): Adjust prototype.
26506 * c-decl.c (global_bindings_p): Return bool and simplify.
26508 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
26510 PR tree-optimization/48837
26511 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
26512 when accumulator transformation is performed.
26514 2011-05-06 Jan Hubicka <jh@suse.cz>
26516 * i386.h (ix86_tune_indices): Add
26517 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
26518 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
26519 * i386.c (initial_ix86_tune_features): Add
26520 X86_SOFTARE_PREFETCHING_BENEFICIAL.
26521 (software_prefetching_beneficial_p): Remove predicate.
26522 (ix86_option_override_internal): Use new macro.
26524 2011-05-06 Jan Hubicka <jh@suse.cz>
26526 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
26528 2011-05-06 Jan Hubicka <jh@suse.cz>
26530 * cgraph.c (cgraph_add_thunk): Create real function node instead
26531 of alias node; finalize it and mark needed/reachale; arrange visibility
26532 to be right and add it into the corresponding same comdat group list.
26533 (dump_cgraph_node): Dump thunks.
26534 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
26535 cgraph_function_with_gimple_body_p,
26536 cgraph_first_function_with_gimple_body,
26537 cgraph_next_function_with_gimple_body): New functions.
26538 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
26540 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
26541 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
26542 * cgraphunit.c (cgraph_finalize_function): Only look into possible
26543 devirtualization when optimizing.
26544 (verify_cgraph_node): Verify thunks.
26545 (cgraph_analyze_function): Analyze thunks.
26546 (cgraph_mark_functions_to_output): Output thunks only in combination
26547 with function they are assigned to.
26548 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
26549 alias into normal node.
26550 (assemble_thunks): New functoin.
26551 (cgraph_expand_function): Use it.
26552 * lto-cgraph.c (lto_output_node): Stream thunks.
26553 (input_overwrite_node): Stream in thunks.
26554 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
26555 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
26556 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
26557 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
26558 (inline_analyze_function): Do not care about thunk jump functions.
26559 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
26560 * ipa-prop.c (ipa_prop_write_jump_functions): Use
26561 cgraph_function_with_gimple_body_p.
26562 * passes.c (do_per_function_toporder): Use
26563 cgraph_function_with_gimple_body_p.
26564 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
26565 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
26566 (function_called_by_processed_nodes_p): Likewise.
26568 2011-05-06 Joseph Myers <joseph@codesourcery.com>
26570 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
26571 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
26573 (mabi=): Replace with separate entries for mabi=altivec,
26574 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
26575 mabi=ieeelongdouble and mabi=ibmlongdouble.
26576 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
26577 check for -mabi=spe without SPE ABI support here.
26578 (rs6000_handle_option): Replace OPT_mabi_ handling with
26579 OPT_mabi_altivec and OPT_mabi_spe handling.
26581 2011-05-06 Cary Coutant <ccoutant@google.com>
26583 * dwarf2out.c (contains_subprogram_definition): New function.
26584 (should_move_die_to_comdat): Call it.
26586 2011-05-06 Jeff Law <law@redhat.com>
26588 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
26589 remove_ctrl_stmt_and_useless_edges.
26590 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
26591 (fixup_template_block, thread_single_edge): Likewise.
26592 (mark_threaded_blocks): Use THREAD_TARGET.
26594 2011-05-06 Alan Modra <amodra@gmail.com>
26597 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
26598 const0_rtx as the arg to the dummy __tls_get_addr libcall.
26600 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
26602 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
26603 constraint modifier to "r".
26605 2011-05-06 Joseph Myers <joseph@codesourcery.com>
26607 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
26608 fall through for OPT_mcmodel_.
26610 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26612 * config/s390/s390.c (s390_asm_trampoline_template): Comment
26614 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
26616 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
26619 * config/arm/arm.opt (marm): Document it.
26620 (mthumb): Reject negative variant.
26622 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
26625 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
26626 Fix typo in "ccvt" variable name.
26628 2011-05-06 Tristan Gingold <gingold@adacore.com>
26631 * config/vms/vms-ar.c (main): Remove cwd variable.
26633 2011-05-06 Jakub Jelinek <jakub@redhat.com>
26636 * var-tracking.c (prepare_call_arguments): Move else before #endif.
26638 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
26640 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
26641 * gimplify.c (gimplify_switch_expr): Likewise.
26642 * omp-low.c (expand_omp_sections): Likewise.
26643 * tree-eh.c (lower_try_finally_switch): Likewise.
26644 (lower_eh_dispatch): Likewise.
26645 * tree.h (build_case_label): Declare.
26646 * tree.c (build_case_label): Define.
26648 2011-05-05 Jason Merrill <jason@redhat.com>
26651 * tree-inline.c (copy_tree_r): Use copy_statement_list.
26652 (copy_statement_list): Don't recurse.
26653 * stor-layout.c (copy_self_referential_tree_r): Don't allow
26656 2011-05-05 Joseph Myers <joseph@codesourcery.com>
26658 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
26659 through from -mfpu= handling.
26660 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
26662 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
26664 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
26667 2011-05-05 Steve Ellcey <sje@cup.hp.com>
26669 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
26671 (hppa[12]*-*-hpux11*): Ditto.
26672 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
26673 * config/ia64/hpux-unix2003.h: New.
26674 * config/pa/pa-hpux1131.opt: New.
26675 * config/pa/pa-hpux1131.h: New.
26676 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
26677 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
26678 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
26680 2011-05-05 Jakub Jelinek <jakub@redhat.com>
26683 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
26684 instead of mode as 3rd argument to recursive call.
26685 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
26686 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
26688 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
26689 don't give up if mode is Pmode and mem_mode is not VOIDmode.
26690 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
26691 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
26693 2011-05-05 Julian Brown <julian@codesourcery.com>
26695 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
26696 parenthesis in D-register case.
26698 2011-05-05 Joseph Myers <joseph@codesourcery.com>
26700 * opt-functions.awk (var_type_struct): Handle Enum options.
26701 * optc-gen.awk: Don't check range of variables of character type.
26702 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
26703 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
26704 rs6000_sdata_name, rs6000_explicit_options): Remove.
26705 (rs6000_option_override_internal): Check for -malign-power here.
26706 Use global_options_set instead of rs6000_explicit_options.
26707 (rs6000_parse_fpu_option): Remove.
26708 (rs6000_handle_option): Access variables via opts and opts_set
26709 pointers. Use error_at and warning_at. Add fall-through
26710 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
26711 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
26712 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
26713 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
26714 here. Don't use rs6000_parse_fpu_option.
26715 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
26716 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
26717 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
26718 (mrecip=): Use Var.
26719 (mspe): Use Var and Save.
26720 (mtraceback=): Use Enum and Var.
26721 (rs6000_traceback_type): New Enum and EnumValue entries.
26722 (mfloat-gprs=): Use Enum, Var and Save.
26723 (rs6000_float_gprs): New Enum and EnumValue entries.
26724 (mlong-double-): use Var and Save.
26725 (msched-costly-dep=, minsert-sched-nops=): Use Var.
26726 (malign-): Use Enum and Var.
26727 (rs6000_alignment_flags): New Enum and EnumValue entries.
26729 (fpu_type_t): New Enum and EnumValue entries.
26730 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
26731 global_options_set instead of rs6000_explicit_options.
26732 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
26733 global_options_set instead of rs6000_explicit_options.
26734 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
26735 global_options_set instead of rs6000_explicit_options.
26736 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
26737 global_options_set instead of rs6000_explicit_options.
26738 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
26739 global_options_set instead of rs6000_explicit_options.
26740 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
26741 global_options_set instead of rs6000_explicit_options.
26742 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
26744 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
26745 global_options_set instead of rs6000_explicit_options.
26746 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
26747 (rs6000_cmodel): New Enum and EnumValue entries.
26748 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
26749 global_options_set instead of rs6000_explicit_options.
26750 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
26751 (mtls-size=): Use Enum and Var.
26752 (rs6000_tls_size): New Enum and EnumValue entries.
26754 2011-05-05 Michael Matz <matz@suse.de>
26756 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
26757 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
26758 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
26759 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
26760 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
26761 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
26762 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
26763 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
26764 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
26765 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
26766 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
26767 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
26768 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
26769 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
26770 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
26771 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
26773 2011-05-05 Richard Guenther <rguenther@suse.de>
26775 * expmed.c (expand_variable_shift): Rename to ...
26776 (expand_shift_1): ... this. Take an expanded shift amount.
26777 For rotates recurse directly not building trees for the shift amount.
26778 (expand_variable_shift): Wrap around expand_shift_1.
26779 (expand_shift): Adjust.
26781 2011-05-05 Jakub Jelinek <jakub@redhat.com>
26783 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
26785 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
26787 * tree.h (get_pending_sizes): Remove prototype.
26788 (put_pending_size): Likewise.
26789 (put_pending_sizes): Likewise.
26790 * stor-layout.c (pending_sizes): Delete.
26791 (get_pending_sizes): Likewise.
26792 (put_pending_size): Likewise.
26793 (put_pending_sizes): Likewise.
26794 (variable_size): Do not call put_pending_size and tidy up.
26795 * function.h (struct function): Remove dont_save_pending_sizes_p.
26796 * lto-streamer-in.c (input_function): Do not stream it.
26797 * lto-streamer-out.c (output_function): Likewise.
26798 * tree-inline.c (initialize_cfun): Do not copy it.
26799 * c-decl.c (store_parm_decls): Do not set it.
26800 * omp-low.c (create_task_copyfn): Likewise.
26801 * tree-optimize.c (tree_rest_of_compilation): Likewise.
26803 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
26805 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
26807 (*movdf_internal): Ditto.
26808 (*movdf_internal_nointeger): Ditto.
26809 (*movsf_internal): Ditto.
26811 2011-05-05 Joseph Myers <joseph@codesourcery.com>
26813 * c-decl.c (finish_decl): Don't call get_pending_sizes.
26814 (grokparm): Add parameter expr. Pass it to grokdeclarator.
26815 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
26816 (c_variable_size): Remove.
26817 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
26818 call put_pending_sizes.
26819 (get_parm_info): Add parameter expr. Use it to set
26820 arg_info->pending_sizes.
26821 (store_parm_decls): Use arg_info->pending_sizes instead or calling
26823 * c-parser.c (c_parser_parms_declarator): Update call to
26824 c_parser_parms_list_declarator.
26825 (c_parser_parms_list_declarator): Take parameter expr. Update
26826 call to push_parm_decl. Update recursive call. Don't call
26827 get_pending_sizes. Update calls to get_parm_info.
26828 (c_parser_objc_method_definition): Update calls to
26829 c_parser_objc_method_decl and objc_start_method_definition.
26830 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
26831 (c_parser_objc_method_decl): Add parameter expr. Update call to
26833 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
26834 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
26835 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
26837 2011-05-05 Michael Hope <michael.hope@linaro.org>
26840 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
26841 __ARM_EABI__ hosts.
26843 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26845 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
26846 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
26847 (spu_output_mi_thunk): New function.
26849 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26851 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
26852 targetm.asm_out.print_operand.
26853 * config/sol2.c: Include target.h.
26855 2011-05-04 Jan Hubicka <jh@suse.cz>
26857 * ipa-inline.c (reset_edge_caches): New function.
26858 (update_caller_keys): Add check_inlinablity_for; do not
26859 reset edge caches; remove now unnecesary loop.
26860 (update_callee_keys): Add comments; reset node_growth_cache of callee.
26861 (update_all_callee_keys): Likewise.
26862 (inline_small_functions): Sanity check cache; update code
26865 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
26867 PR rtl-optimization/47612
26868 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
26869 as the last insn of the sequence to be moved.
26871 2011-05-04 Tobias Burnus <burnus@net-b.de>
26874 * doc/invoke.texi (Ofast): Document that it
26875 enables Fortran's -fno-protect-parens.
26877 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
26879 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
26881 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
26883 * stor-layout.c (variable_size): Do not issue errors.
26885 2011-05-04 Richard Guenther <rguenther@suse.de>
26887 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
26888 for array-ref indices.
26889 (tree_coverage_counter_addr): Likewise.
26890 (build_fn_info_type): Use size_int for index types.
26891 (build_gcov_info): Likewise.
26893 2011-05-04 Richard Guenther <rguenther@suse.de>
26895 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
26897 * c-typeck.c (really_start_incremental_init): Use bitsize_int
26898 for constructor indices.
26899 (push_init_level): Likewise.
26901 2011-05-04 Richard Guenther <rguenther@suse.de>
26903 * explow.c (promote_mode): Move variable declarations before code.
26905 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
26907 * tree.h (build_function_type_array): Declare.
26908 (build_varargs_function_type_array): Declare.
26909 (build_function_type_vec, build_varargs_function_type_vec): Define.
26910 * tree.c (build_function_type_array_1): New function.
26911 (build_function_type_array): New function.
26912 (build_varargs_function_type_array): New function.
26914 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
26916 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
26917 before setting STMT_VINFO_TYPE.
26919 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26921 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
26922 instead of spu_pass_by_reference.
26924 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26926 * calls.c (emit_library_call_value_1): Invoke
26927 promote_function_mode hook on libcall arguments.
26928 * explow.c (promote_function_mode, promote_mode): Handle TYPE
26929 argument being NULL.
26930 * targhooks.c (default_promote_function_mode): Lisewise.
26931 * config/s390/s390.c (s390_promote_function_mode): Likewise.
26932 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
26934 * doc/tm.texi: Document that TYPE argument might be NULL.
26936 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
26938 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
26940 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
26943 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
26945 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26947 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
26948 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
26950 * mips-tfile.c: ... here.
26951 Don't include coretypes.h, tm.h, filenames.h.
26952 (saber_stop): Remove definition and all calls.
26953 [__SABER__]: Remove.
26954 (__LINE__): Remove default.
26955 (Size_t, Ptrdiff_t): Remove definitions.
26956 Replace by size_t, ptrdiff_t.
26957 [!MIPS_DEBUGGING_INFO]: Remove.
26958 (SHASH_SIZE, THASH_SIZE): Remove defaults.
26959 (progname): Add const.
26961 Replace all uses by static.
26962 (ALIGN_SYMTABLE_OFFSET): Remove default.
26963 * mips-tdump.c: Don't include coretypes.h, tm.h.
26964 Remove !MIPS_IS_STAB guard.
26965 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
26966 $(TM_H), filenames.h dependencies.
26967 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
26969 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
26972 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
26973 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
26975 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
26978 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
26979 account and save/restore RETS.
26980 (PROFILE_BEFORE_PROLOGUE): Define.
26981 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
26982 the push insn to use predecrement.
26984 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
26987 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
26989 2011-05-04 Nick Clifton <nickc@redhat.com>
26991 * config/mn10300/mn10300.c: Include cfgloop.h.
26993 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
26994 Lcc or a FLcc insn into the instruction stream.
26995 (mn10300_block_contains_call): New function. Returns true if the
26996 given basic block contains a CALL insn.
26997 (mn10300_loop_contains_call_insn): New function. Returns true if
26998 the given loop contains a CALL insn.
26999 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
27000 to use the SETLB and Lcc or FLcc insns.
27001 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
27002 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
27003 * config/mn10300/mn10300.opt (msetlb): New option. Used to
27004 disable the SETLB optimization.
27005 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
27006 __SETLB__ or __NO_SETLB__.
27007 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
27008 (movsf_internal): Handle MDR register.
27009 (cmpsi): Make visible.
27010 (setlb): New pattern.
27011 (Lcc): New pattern.
27012 (FLcc): New pattern.
27014 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
27017 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
27018 for reg<->xmm moves.
27019 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
27020 (vec_concatv2di_rex64_sse): Ditto.
27021 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
27022 (*vec_extractv2di_1_rex64): Ditto.
27025 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
27027 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
27029 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
27031 2011-05-04 Richard Guenther <rguenther@suse.de>
27033 * tree.h (int_const_binop): Remove notrunc argument.
27034 * fold-const.c (int_const_binop): Remove notrunc argument. Always
27035 create integer constants that are properly truncated.
27036 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
27037 (const_binop): Remove zero notrunc argument to int_const_binop.
27038 (size_binop_loc): Likewise.
27039 (fold_div_compare): Likewise.
27040 (maybe_canonicalize_comparison_1): Likewise.
27041 (fold_comparison): Likewise.
27042 (fold_binary_loc): Likewise.
27043 (multiple_of_p): Likewise.
27044 * expr.c (store_constructor): Likewise.
27045 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
27046 (maybe_fold_stmt_addition): Likewise.
27047 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
27048 * stor-layout.c (layout_type): Likewise.
27049 * tree-data-ref.c (tree_fold_divides_p): Likewise.
27050 * tree-sra.c (build_ref_for_offset): Likewise.
27051 (build_user_friendly_ref_for_offset): Likewise.
27052 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
27053 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
27054 * tree-ssa-loop-niter.c (inverse): Likewise.
27055 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
27056 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
27057 * tree-switch-conversion.c (check_range): Likewise.
27058 (build_constructors): Likewise.
27059 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
27060 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
27061 (extract_range_from_assert): Likewise.
27062 (vrp_int_const_binop): Likewise.
27063 (extract_range_from_binary_expr): Likewise.
27064 (extract_range_from_unary_expr): Likewise.
27065 (check_array_ref): Likewise.
27066 (find_case_label_range): Likewise.
27067 (simplify_div_or_mod_using_ranges): Likewise.
27068 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
27069 comparing case labels for merging.
27071 2011-05-03 Mark Wielaard <mjw@redhat.com>
27073 * dwarf2out.c (debug_str_hash_forced): Removed.
27074 (gen_label_for_indirect_string): Removed.
27075 (get_debug_string_label): Removed.
27076 (AT_string_form): Generate label directly.
27077 (output_indirect_string): Test indirect_string_node for
27078 DW_FORM_strp instead of checking label and refcount.
27079 (prune_indirect_string): Removed.
27080 (prune_unused_types): Don't check debug_str_hash_forced or
27081 call prune_indirect_string.
27083 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
27086 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
27088 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
27092 * combine.c (try_combine): Skip debug insns at m_split tests.
27094 2011-04-26 Mark Wielaard <mjw@redhat.com>
27097 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
27098 when info_section_emitted.
27100 2011-05-03 Joseph Myers <joseph@codesourcery.com>
27102 * config/mips/mips-opts.h: New.
27103 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
27105 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
27106 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
27107 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
27109 * config/mips/mips.h (enum mips_code_readable_setting): Move to
27111 (mips_abi, mips_code_readable): Don't declare.
27112 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
27113 (mabi=): Use Enum and Var.
27114 (mips_abi): New Enum and EnumValue entries.
27115 (mcode-readable=): Use Enum and Var.
27116 (mips_code_readable_setting): New Enum and EnumValue entries.
27117 (mr10k-cache-barrier=): Use Enum and Var.
27118 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
27120 2011-05-03 Jan Hubicka <jh@suse.cz>
27122 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
27123 replace hash by pointer map.
27124 (cgraph_node_set_element_def, cgraph_node_set_element,
27125 const_cgraph_node_set_element, varpool_node_set_element_def,
27126 varpool_node_set_element, const_varpool_node_set_element): Remove.
27127 (free_cgraph_node_set, free_varpool_node_set): New function.
27128 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
27129 * tree-emutls.c: Free varpool node set.
27130 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
27131 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
27132 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
27133 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
27134 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
27135 Move here from ipa.c; implement using pointer_map
27136 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
27137 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
27138 debug_cgraph_node_set, varpool_node_set_new,
27139 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
27140 dump_varpool_node_set, debug_varpool_node_set):
27141 Move to ipa-uitls.c.
27142 * passes.c (ipa_write_summaries): Update.
27144 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
27146 From Mike Frysinger:
27147 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
27148 bf542/bf544/bf547/bf548/bf549.
27150 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
27152 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
27154 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
27156 From Bernd Schmidt:
27157 * config/bfin/bfin.md (MOVCC): New mode_macro.
27158 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
27159 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
27160 comments from generated assembly.
27162 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
27165 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
27166 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
27167 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
27168 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
27169 * config/bfin/lib1funcs.asm (___muldi3): New function.
27171 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27173 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
27174 build_function_type_list instead of build_function_type.
27175 Rearrange initialization of `args' to do so.
27177 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27179 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
27180 instead of build_function_type.
27182 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27184 * config/rs6000/rs6000.c (spe_init_builtins): Call
27185 build_function_type_list instead of build_function_type.
27186 (paired_init_builtins, altivec_init_builtins): Likewise.
27187 (builtin_function_type): Likewise.
27189 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27191 * config/sh/sh.c (sh_media_init_builtins): Call
27192 build_function_type_list instead of build_function_type.
27194 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27196 * config/sparc/sparc.c (sparc_file_end): Call
27197 build_function_type_list instead of build_function_type.
27199 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27201 * config/alpha/alpha.c (alpha_init_builtins): Call
27202 build_function_type_list instead of build_function_type.
27204 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27206 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
27207 build_function_type_list instead of build_function_type.
27209 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27211 * config/iq2000/i2000.c (iq2000_init_builtins): Call
27212 build_function_type_list instead of build_function_type.
27213 Delete `endlink' variable.
27215 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27217 * config/avr/avr.c (avr_init_builtins): Call
27218 build_function_type_list instead of build_function_type.
27220 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27222 * config/picochip/picochip.c (picochip_init_builtins): Call
27223 build_function_type_list instead of build_function_type.
27224 Delete `endlink' variable.
27226 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27228 * config/bfin/bfin.c (bfin_init_builtins): Call
27229 build_function_type_list instead of build_function_type.
27231 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
27234 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
27235 that's not CONST_INT. Seemingly redundant check is due to PR39768.
27237 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
27240 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
27241 libbffastfp overrides libgcc when -mfast-fp.
27243 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
27245 Originally from Bernd Schmidt
27246 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
27247 * config/bfin/bfin.c (override_options): Test it and error if
27250 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
27252 Originally From Bernd Schmidt
27253 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
27256 2011-05-03 Jeff Law <law@redhat.com>
27258 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
27259 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
27260 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
27261 than accessing AUX field directly. Free the AUX field before
27263 (thread_block, thread_through_loop_header): Likewise.
27264 (thread_single_edge, mark_threaded_blocks): Likewise.
27265 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
27266 (register_jump_thread): Do not attempt to thread to a NULL edge.
27268 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
27270 * function.c (init_function_start): Call decide_function_section.
27271 * varasm.c (decide_function_section): New function.
27272 (assemble_start_function): When not using
27273 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
27274 or first_function_block_is_cold.
27275 * rtl.h (decide_function_section): Declare.
27277 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
27278 Jakub Jelinek <jakub@redhat.com>
27281 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
27282 only succeed if req_mode is the same as set_mode.
27284 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
27286 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
27287 * genemit.c (gen_exp): Handle RETURN.
27288 * emit-rtl.c (verify_rtx_sharing): Likewise.
27289 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
27290 * rtl.c (copy_rtx): RETURN is shared.
27291 * rtl.h (enum global_rtl_index): Add GR_RETURN.
27293 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
27294 * config/s390/s390.c (s390_emit_epilogue): Likewise.
27295 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
27296 * config/cris/cris.c (cris_expand_return): Likewise.
27297 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
27298 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
27299 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
27300 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
27301 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
27303 * config/v850/v850.c (expand_epilogue): Likewise.
27304 * config/bfin/bfin.c (bfin_expand_call): Likewise.
27305 * config/arm/arm.md (epilogue): Likewise.
27306 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
27307 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
27308 variable to ret_reg.
27310 2011-05-03 Richard Guenther <rguenther@suse.de>
27313 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
27314 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
27315 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
27317 2011-05-03 Richard Guenther <rguenther@suse.de>
27319 * c-decl.c (grokdeclarator): Instead of looking at
27320 TREE_OVERFLOW check if the constant fits in the index type.
27322 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
27324 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
27325 (vec_store_lanes<mode><mode>): Likewise.
27327 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
27329 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
27330 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
27331 convert_optab_index values.
27332 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
27333 * genopinit.c (optabs): Initialize the new optabs.
27334 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
27335 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
27336 (expand_STORE_LANES): New functions.
27337 * tree.h (build_array_type_nelts): Declare.
27338 * tree.c (build_array_type_nelts): New function.
27339 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
27340 (vect_model_load_cost): Likewise.
27341 (vect_store_lanes_supported, vect_load_lanes_supported)
27342 (vect_record_strided_load_vectors): Declare.
27343 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
27344 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
27345 (vect_transform_strided_load): Split out statement recording into...
27346 (vect_record_strided_load_vectors): ...this new function.
27347 * tree-vect-stmts.c (create_vector_array, read_vector_array)
27348 (write_vector_array, create_array_ref): New functions.
27349 (vect_model_store_cost): Add store_lanes_p argument.
27350 (vect_model_load_cost): Add load_lanes_p argument.
27351 (vectorizable_store): Try to use store-lanes functions for
27352 interleaved stores.
27353 (vectorizable_load): Likewise load-lanes and loads.
27354 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
27355 to vect_model_store_cost.
27356 (vect_build_slp_tree): Likewise vect_model_load_cost.
27358 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
27360 * hooks.h (hook_bool_mode_uhwi_false): Declare.
27361 * hooks.c (hook_bool_mode_uhwi_false): New function.
27362 * target.def (array_mode_supported_p): New hook.
27363 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
27364 * doc/tm.texi: Regenerate.
27365 * stor-layout.c (mode_for_array): New function.
27366 (layout_type): Use it.
27367 * config/arm/arm.c (arm_array_mode_supported_p): New function.
27368 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
27370 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
27373 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
27374 for -fstack-check if the size to allocate is negative.
27376 2011-05-02 Lawrence Crowl <crowl@google.com>
27378 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
27379 (timevar_cond_start): New for starting a timer only when it is not
27381 (timevar_cond_stop): New for stopping a timer when it was not already
27384 * timevar.c (timevar_stop): Enable start/stop timers to start again.
27385 (timevar_cond_start): New as above.
27386 (timevar_cond_stop): New as above.
27388 * timevar.def: Add start/stop timers for compiler phases,
27389 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
27390 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
27391 and TV_PHASE_FINALIZE.
27392 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
27393 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
27394 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
27395 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
27396 Make unused TV_OVERLOAD into a start/stop timer.
27398 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
27399 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
27400 to indicate that they are start/stop timers.
27402 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
27403 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
27404 Move initialization to do_compile.
27405 (do_compile): Add initialization from above.
27406 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
27408 * c-decl.c (c_write_global_declarations): Add start/stop of
27409 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
27411 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
27412 or TV_PARSE_INLINE, as appropriate.
27413 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
27414 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
27416 2011-05-02 Jason Merrill <jason@redhat.com>
27419 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
27421 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
27424 * c-decl.c (finish_decl): Only create a composite if the types are
27427 2011-05-02 Joseph Myers <joseph@codesourcery.com>
27429 * config/fr30/fr30-protos.h (Mmode): Don't define.
27430 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
27431 definition where used.
27432 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
27433 define. Expand definitions where used.
27434 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
27435 Expand definitions where used.
27436 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
27437 rx_function_arg, rx_function_arg_advance,
27438 rx_function_arg_boundary): Expand definitions of those macros.
27439 * config/v850/v850-protos.h (Mmode): Don't define. Expand
27440 definition where used.
27442 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
27444 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
27446 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
27447 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
27448 with *movv2sf_internal_rex64_avx.
27449 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
27450 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
27451 Use %v prefix in insn mnemonic to handle TARGET_AVX.
27452 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
27453 "vex" in "prefix" attribute calculation.
27454 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
27456 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
27459 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
27460 inputs match the output.
27462 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
27465 * config/m68k/m68k.c (m68k_expand_prologue): Set
27466 current_function_static_stack_size.
27468 2011-05-02 Jan Hubicka <jh@suse.cz>
27470 * lto-streamer.c (lto_streamer_cache_insert_1,
27471 lto_streamer_cache_lookup, lto_streamer_cache_create,
27472 lto_streamer_cache_delete): Use pointer map instead of hashtable.
27473 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
27475 2011-05-02 Joseph Myers <joseph@codesourcery.com>
27477 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
27478 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
27479 config/m68k/t-opts: New files.
27480 * config/m68k/m68k-tables.opt: New file (generated).
27481 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
27482 extra_options and m68k/t-opts to tmake_file.
27483 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
27484 (all_isas): Initialize using m68k-isas.def.
27485 (all_microarchs): Initialize using m68k-microarchs.def.
27486 (m68k_find_selection): Remove.
27487 (m68k_handle_option): Don't assert that global structures are in
27488 use. Use error_at. Access variables via opts pointer. Don't
27489 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
27490 directly for -m68020-40 and -m68020-60.
27491 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
27492 m68k_tune_entry here.
27493 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
27495 (m68k_library_id_string): Remove declaration.
27496 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
27497 (m68k_library_id_string): New Variable.
27498 (march=, mcpu=, mtune=): Use Enum and Var.
27500 2011-05-02 Richard Guenther <rguenther@suse.de>
27502 * varasm.c (output_constructor_regular_field): Compute zero-based
27503 index with double-ints. Make sure to ICE instead of producing
27505 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
27506 in asserts. Properly use a signed type.
27508 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
27510 * config/i386/sse.md (V): New mode iterator.
27511 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
27513 (V_256): Rename from AVX256MODE.
27514 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
27515 condition to all users.
27517 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
27518 condition to all users.
27519 (VF_128): Make V4SF mode unconditional.
27520 (VF_256): Rename from AVX256MODEF2P.
27521 (VI4F_128): Rename from SSEMODE4S.
27522 (VI8F_128): Rename from SSEMODE2D.
27523 (VI4F_256): Rename from AVX256MODE8P.
27524 (VI8F_256): Rename from AVX256MODE4P.
27525 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
27526 (ssescalarmodesuffix): Remove SF and DF modes.
27527 (SSEMODE124): Remove.
27528 (SSEMODE1248): Ditto.
27529 (SSEMODEF2P): Ditto.
27530 (AVXMODEF2P): Ditto.
27531 (AVXMODEFDP): Ditto.
27532 (AVXMODEFSP): Ditto.
27533 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
27535 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
27537 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
27538 xop_pcmov_<mode>256. Use V mode iterator.
27540 Adjust RTX patterns globally for renamed mode attributes.
27542 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27544 * haifa-sched.c (sched_emit_insn): Emit insn before first
27545 non-scheduled insn. Inform back-end about new insn. Add
27546 new insn to scheduled_insns list.
27548 2011-05-02 Richard Guenther <rguenther@suse.de>
27550 PR tree-optimization/48822
27551 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
27552 (process_scc): Indicate which iteration we start.
27554 2011-05-02 Jan Hubicka <jh@suse.cz>
27556 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
27557 (lto_section_overrun): New.
27558 * lto-section-out.c (append_block): Rename to ...
27559 (lto_append_block): ... this one; export.
27560 (lto_output_1_stream): Move lto lto-streamer.h
27561 (lto_output_data_stream): Update.
27562 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
27563 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
27566 2011-05-02 Richard Guenther <rguenther@suse.de>
27568 * tree.c (tree_code_counts): New global array.
27569 (record_node_allocation_statistics): Count individual tree codes.
27570 (dump_tree_statistics): Dump individual code stats.
27572 2011-05-01 Jan Hubicka <jh@suse.cz>
27574 * ipa-inline.c (caller_growth_limits): Fix thinko when
27575 looking for largest stack frame.
27576 * ipa-inline.h (dump_inline_summary): Declare.
27577 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
27579 (dump_inline_summary): Export.
27580 (debug_inline_summary): Declare as DEBUG_FUNCTION.
27582 2011-05-01 Anatoly Sokolov <aesok@post.ru>
27584 * reginfo.c (memory_move_cost): Change rclass argument type form
27585 'enum reg_class' to reg_class_t.
27586 * reload.h (memory_move_cost): Update prototype.
27587 * postreload.c reload_cse_simplify_set): Change type dclass var to
27589 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
27591 (ira_allocate_and_set_costs): Change aclass argument type form
27592 'enum reg_class' to reg_class_t.
27593 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
27594 Change aclass argument type to reg_class_t.
27595 (update_conflict_hard_reg_costs): Change type aclass and pref vars
27597 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
27598 memory_move_cost call.
27600 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
27601 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
27602 Change type tmp var to reg_class_t.
27604 2011-04-30 Jan Hubicka <jh@suse.cz>
27606 * ipa-inline.c (can_inline_edge_p): Disregard limits when
27607 inlining into function with flatten attribute.
27608 (want_inline_small_function_p): Be more realistic about inlining
27609 cold calls where callee size grows.
27611 2011-04-30 Jan Hubicka <jh@suse.cz>
27613 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
27616 2011-04-30 Anatoly Sokolov <aesok@post.ru>
27618 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
27619 PRINT_OPERAND_PUNCT_VALID_P): Remove.
27620 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
27621 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
27622 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
27623 (print_operand): Rename to...
27624 (sparc_print_operand): ...this. Make static. Adjust
27625 sparc_print_operand function call.
27626 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
27629 2011-04-30 Jan Hubicka <jh@suse.cz>
27631 PR middle-end/48752
27632 * ipa-inline.c (early_inliner): Disable when doing late
27633 addition of function.
27635 2011-04-30 Jakub Jelinek <jakub@redhat.com>
27637 * dwarf2out.c (get_address_mode): New inline.
27638 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
27639 if not dwarf_strict emit
27640 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
27641 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
27642 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
27643 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
27644 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
27645 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
27646 mem_loc_descriptor callers.
27647 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
27648 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
27649 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
27650 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
27651 (base_types): New variable.
27652 (get_base_type_offset, calc_base_type_die_sizes,
27653 base_type_for_mode, mark_base_types, base_type_cmp,
27654 move_marked_base_types): New functions.
27655 (calc_die_sizes): Assert that die_offset is 0 or equal to
27657 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
27658 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
27659 callers. If not dwarf_strict, call mem_loc_descriptor even for
27660 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
27661 (gen_subprogram_die): Don't give up on call site parameters
27662 with non-integral or large integral modes. Adjust
27663 mem_loc_descriptor callers.
27664 (prune_unused_types): Call prune_unused_types_mark on base_types
27666 (resolve_addr): Call mark_base_types.
27667 (dwarf2out_finish): Call move_marked_base_types.
27669 PR tree-optimization/48809
27670 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
27672 (gen_inbound_check): Don't compute index_expr - range_min in utype
27673 again, instead reuse SSA_NAME initialized in build_arrays.
27674 Remove two useless gsi_for_stmt calls.
27676 2011-04-29 Jeff Law <law@redhat.com>
27678 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
27680 2011-04-29 Martin Jambor <mjambor@suse.cz>
27682 * cgraph.h (cgraph_postorder): Remove declaration.
27683 * ipa-utils.h (ipa_free_postorder_info): Declare.
27684 (ipa_reverse_postorder): Likewise.
27685 * cgraphunit.c: Include ipa-utils.h.
27686 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
27687 * ipa-inline.c: Include ipa-utils.h.
27688 (ipa_inline): Update call to ipa_reverse_postorder.
27689 * ipa-pure-const.c (propagate_pure_const): Update call to
27690 ipa_reduced_postorder and ipa_print_order. Call
27691 ipa_free_postorder_info to clean up.
27692 (propagate_nothrow): Likewise.
27693 * ipa-reference.c (propagate): Removed a useless call to
27694 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
27695 and ipa_print_order. Call ipa_free_postorder_info to clean up.
27696 * ipa.c: Include ipa-utils.h.
27697 (ipa_profile): Update call to ipa_reverse_postorder.
27698 (cgraph_postorder): Moved to...
27699 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
27700 (ipa_utils_print_order): Renamed to ipa_print_order.
27701 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
27703 (ipa_free_postorder_info): New function.
27704 * passes.c: Include ipa-utils.h.
27705 (do_per_function_toporder): Update call to ipa_reverse_postorder.
27706 (ipa_write_summaries): Likewise.
27707 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
27708 (cgraphunit.o): Likewise.
27710 (ipa-inline.o): Likewise.
27712 2011-04-29 Jan Hubicka <jh@suse.cz>
27714 * ipa-inline.h (clause_t): Turn into unsigned int.
27715 * ipa-inline-analysis.c (add_clause): Do more simplification.
27716 (and_predicates): Shortcut more cases.
27717 (predicates_equal_p): Move forward; check that clauses are properly
27719 (or_predicates): Shortcut more cases.
27720 (edge_execution_predicate): Rewrite as...
27721 (set_cond_stmt_execution_predicate): ... this function; handle
27722 __builtin_constant_p.
27723 (set_switch_stmt_execution_predicate): New .
27724 (compute_bb_predicates): New.
27725 (will_be_nonconstant_predicate): Update TODO.
27726 (estimate_function_body_sizes): Use compute_bb_predicates
27727 and free them later, always try to estimate if stmt is constant.
27728 (estimate_time_after_inlining, estimate_size_after_inlining):
27729 Gracefully handle optimized out edges.
27730 (read_predicate): Fix off by one error.
27732 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
27734 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
27736 2011-04-27 Xinliang David Li <davidxl@google.com>
27738 * tree-profile.c (init_ic_make_global_vars): Set
27739 tls attribute on ic vars.
27740 * coverage.c (coverage_end_function): Initialize
27741 function_list with zero.
27743 2011-04-29 Richard Guenther <rguenther@suse.de>
27745 * builtins.c (fold_builtin_classify_type): Use integer_type_node
27746 for the type of the result.
27747 (fold_builtin_isascii): Likewise.
27748 (fold_builtin_toascii): Use integer_type_node where appropriate.
27749 (fold_builtin_logb): Likewise.
27750 (fold_builtin_frexp): Likewise.
27751 (fold_builtin_strstr): Likewise.
27752 (fold_builtin_strpbrk): Likewise.
27753 (fold_builtin_fputs): Likewise.
27754 (fold_builtin_sprintf): Likewise.
27755 (fold_builtin_snprintf): Likewise.
27756 (fold_builtin_printf): Likewise.
27757 (do_mpfr_remquo): Use a proper type for the assigned constant.
27758 (do_mpfr_lgamma_r): Likewise.
27759 * dwarf2out.c (resolve_one_addr): Use size_int.
27760 * except.c (init_eh): Likewise.
27761 (assign_filter_values): Use integer_type_node for filter values.
27762 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
27764 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
27765 for EH region numbers.
27766 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
27767 for the shift amount.
27769 2011-04-29 Richard Guenther <rguenther@suse.de>
27771 * expr.h (expand_shift): Rename to ...
27772 (expand_variable_shift): ... this.
27773 (expand_shift): Take a constant shift amount.
27774 * expmed.c (expand_shift): Rename to ...
27775 (expand_variable_shift): ... this.
27776 (expand_shift): New wrapper around expand_variable_shift.
27777 * expr.c (convert_move, emit_group_load_1, emit_group_store,
27778 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
27779 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
27780 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
27781 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
27782 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
27783 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
27784 emit_store_flag_1, emit_store_flag): Likewise.
27785 * builtins.c (expand_builtin_signbit): Likewise.
27786 * calls.c (load_register_parameters): Likewise.
27787 * function.c (assign_parm_setup_block): Likewise.
27788 * lower-subreg.c (resolve_shift_zext): Likewise.
27789 * optabs.c (widen_bswap, expand_abs_nojump,
27790 expand_one_cmpl_abs_nojump, expand_float): Likewise.
27791 * spu/spu.c (spu_expand_extv): Likewise.
27792 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
27794 2011-04-29 Richard Guenther <rguenther@suse.de>
27796 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
27797 for the remapped region number.
27798 * predict.c (build_predict_expr): Use integer_type_node for the
27800 * fold-const.c (fold_binary_loc): Use integer_type_node for
27801 the shift amount. Use a proper type for the PLUS_EXPR operand.
27803 2011-04-29 Michael Matz <matz@suse.de>
27805 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
27806 other trees that just builtins.
27807 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
27809 2011-04-29 Richard Guenther <rguenther@suse.de>
27811 * tree-nested.c (get_trampoline_type): Use size_int.
27812 (get_nl_goto_field): Likewise.
27813 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
27815 (lower_eh_constructs_2): Likewise.
27816 (lower_resx): Likewise.
27817 (lower_eh_dispatch): Likewise.
27818 * tree-mudflap.c (mf_build_string): Use size_int.
27819 (mudflap_register_call): Use integer_type_node for the flag.
27820 (mudflap_enqueue_constant): Use size_int.
27821 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
27822 instead of rebuilding it.
27824 2011-04-29 Richard Guenther <rguenther@suse.de>
27826 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
27827 Handle OBJ_TYPE_REF.
27828 (find_func_aliases_for_call): Use it more consistently.
27830 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
27832 * haifa-sched.c (last_nondebug_scheduled_insn): New.
27833 (rank_for_schedule): Use it.
27834 (schedule_block): Set it.
27836 2011-04-28 David Li <davidxl@google.com>
27838 * tree.c (crc32_string): Use crc32_byte.
27839 (crc32_byte): New function.
27840 * tree.h (crc32_byte): New function.
27841 * gcov.c (read_graph_file): Handle new cfg_cksum.
27842 (read_count_file): Ditto.
27843 * profile.c (instrument_values): Ditto.
27844 (get_exec_counts): Ditto.
27845 (read_profile_edge_counts): Ditto.
27846 (compute_branch_probabilities): Ditto.
27847 (compute_value_histograms): Ditto.
27848 (branch_prob): Ditto.
27849 (end_branch_prob): Ditto.
27850 * coverage.c (read_counts_file): Ditto.
27851 (get_coverage_counts): Ditto.
27852 (tree_coverage_counter_addr): Ditto.
27853 (coverage_checksum_string): Ditto.
27854 (coverage_begin_output): Ditto.
27855 (coverage_end_function): Ditto.
27856 (build_fn_info_type): Ditto.
27857 (build_fn_info_value): Ditto.
27858 * libgcov.c (gcov_exit): Ditto.
27859 * gcov-dump.c (tag_function): Ditto.
27860 (compute_checksum): Remove.
27862 2011-04-29 Alan Modra <amodra@gmail.com>
27864 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
27865 unspec plus offset. Tidy macho code.
27867 2011-04-29 Martin Jambor <mjambor@suse.cz>
27869 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
27870 node instead of a decl. Update all callers.
27871 * cgraph.h: Update declaration.
27873 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
27875 PR tree-optimization/48765
27876 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
27877 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
27878 to indicate if loop aware SLP is being used. Scan the statements
27879 and update the vectorization factor according to the type of
27880 vectorization before statement analysis.
27881 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
27882 pass it to vect_analyze_loop_operations.
27883 (vectorizable_reduction): Set number of copies to 1 in case of pure
27885 * tree-vect-stmts.c (vectorizable_conversion,
27886 vectorizable_assignment, vectorizable_shift,
27887 vectorizable_operation, vectorizable_type_demotion,
27888 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
27890 (vectorizable_condition): Move the check that it is not SLP
27891 vectorization before the number of copies check.
27892 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
27893 to vectorize the loop using SLP.
27895 2011-04-28 Jakub Jelinek <jakub@redhat.com>
27897 PR middle-end/48597
27898 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
27901 2011-04-28 Joseph Myers <joseph@codesourcery.com>
27903 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
27904 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
27905 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
27906 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
27907 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
27909 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
27910 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
27911 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
27912 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
27913 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
27914 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
27916 * config/i386/linux.h (REG_NAME): Don't define.
27917 * config/i386/linux64.h (REG_NAME): Don't define.
27918 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
27919 Undefine before defining.
27921 2011-04-28 Jan Hubicka <jh@suse.cz>
27923 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
27924 nonconstant_names array.
27925 (estimate_function_body_sizes): Build nonconstant_names array; handle
27926 BUILT_IN_CONSTANT_P.
27928 2011-04-28 Richard Guenther <rguenther@suse.de>
27932 2011-04-28 Richard Guenther <rguenther@suse.de>
27934 * tree-ssa-structalias.c (solve_constraints): Build succ graph
27935 as late as possible.
27937 2011-04-28 Richard Guenther <rguenther@suse.de>
27939 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
27940 (debug_constraint): Do it here.
27941 (dump_constraints): And here.
27942 (rewrite_constraints): And here.
27943 (dump_constraint_edge): Remove.
27944 (dump_constraint_graph): Rewrite to produce DOT output.
27945 (solve_constraints): Build succ graph as late as possible.
27946 Dump constraint graphs before and after solving.
27948 2011-04-28 Richard Guenther <rguenther@suse.de>
27950 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
27951 New function split out from ...
27952 (find_func_aliases): ... here. Call it.
27953 (find_func_aliases_for_call): Likewise.
27955 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
27957 * internal-fn.h (internal_fn_name_array): Declare.
27958 (internal_fn_flags_array): Likewise.
27960 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
27962 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
27963 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
27965 (ssemodefsuffix): Remove.
27966 (ssevecmodesuffix): New mode attribute.
27967 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
27968 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
27969 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
27970 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
27971 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
27972 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
27973 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
27974 ssemodesuffix mode attribute.
27975 (float splitters): Use ssevecmodesuffix mode attribute.
27976 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
27977 (sseinsmode): Rename from avxvecmode.
27978 (avxsizesuffix): Rename from avxmodesuffix.
27979 (sseintvecmode): Rename from avxpermvecmode.
27980 (ssedoublevecmode): Rename from ssedoublesizemode.
27981 (ssehalfvecmode): Rename from avxhalfvecmode.
27982 (ssescalarmode): Rename from avxscalarmode.
27983 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
27984 templates for ssemodesuffix mode attribute.
27985 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
27988 Adjust RTX patterns globally for renamed mode attributes.
27990 2011-04-27 Jan Hubcika <jh@suse.cz>
27992 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
27993 * ipa-inline-analysis.c: Include alloc-pool.h.
27994 (edge_predicate_pool): New.
27995 (trye_predicate_p): New function
27996 (false_predicate_p): New function.
27997 (add_clause): Sanity check that false clauses are "optimized";
27998 never add clauses to predicate that is already known to be false.
27999 (and_predicate): Use flase_predicate_p.
28000 (evaulate_predicate): Rename to ...
28001 (evaluate_predicate): ... this one; update all callers; assert
28002 that false is not listed among possible truths.
28003 (dump_predicate): Use true_predicate_p.
28004 (account_size_time): Use false_predicate_p.
28005 (evaulate_conditions_for_edge): Rename to ...
28006 (evaluate_conditions_for_edge) ... this one.
28007 (edge_set_predicate): New function.
28008 (inline_edge_duplication_hook): Duplicate edge predicates.
28009 (inline_edge_removal_hook): Free edge predicates.
28010 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
28011 (dump_inline_summary): Update.
28012 (estimate_function_body_sizes): Set edge predicates.
28013 (estimate_calls_size_and_time): Handle predicates.
28014 (estimate_callee_size_and_time): Update.
28015 (remap_predicate): Add toplev_predicate; update comment.
28016 (remap_edge_predicates): New function.
28017 (inline_merge_summary): Compute toplev predicate; update.
28018 (read_predicate): New function.
28019 (read_inline_edge_summary): Use it.
28020 (inline_read_section): Likewise.
28021 (write_predicate): New function.
28022 (write_inline_edge_summary): Use it.
28023 (inline_write_summary): Likewise.
28024 (inline_free_summary): Free alloc pool and edge summary vec.
28026 2011-04-27 Richard Guenther <rguenther@suse.de>
28028 * tree-ssa-structalias.c (changed_count): Remove.
28029 (changed): Use a bitmap.
28030 (unify_nodes): Adjust.
28031 (do_sd_constraint): Likewise.
28032 (do_ds_constraint): Likewise.
28033 (do_complex_constraint): Likewise.
28034 (solve_graph): Likewise.
28036 2011-04-27 Jan Hubicka <jh@suse.cz>
28038 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
28040 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
28042 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
28043 (avx_vperm2f128_*_operand): Ditto.
28044 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
28045 Use avx_vpermilp_parallel in insn condition.
28046 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
28047 Use avx_vperm2f128_parallel in insn condition.
28049 2011-04-27 Richard Guenther <rguenther@suse.de>
28051 * Makefile.in (tree-ssa-structalias.o): Remove
28052 gt-tree-ssa-structalias.h dependency.
28053 (GTFILES): Remove tree-ssa-structalias.c.
28054 * tree.c (allocate_decl_uid): New function.
28055 (make_node_stat): Use it.
28056 (copy_node_stat): Likewise.
28057 * tree.h (allocate_decl_uid): Declare.
28058 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
28059 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
28060 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
28061 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
28062 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
28063 (struct heapvar_map): Likewise.
28064 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
28065 heapvar_insert): Likewise.
28066 (make_heapvar_for): Rename to ...
28067 (make_heapvar): ... this. Simplify.
28068 (fake_var_decl_obstack): New global var.
28069 (build_fake_var_decl): New function.
28070 (make_constraint_from_heapvar): Adjust.
28071 (handle_lhs_call): Likewise.
28072 (create_function_info_for): Likewise.
28073 (intra_create_variable_infos): Likewise.
28074 (init_alias_vars): Allocate fake_var_decl_obstack.
28075 (init_alias_heapvars, delete_alias_heapvars): Remove.
28076 (compute_points_to_sets): Do not call init_alias_heapvars.
28077 (ipa_pta_execute): Likewise.
28078 (delete_points_to_sets): Free fake_var_decl_obstack.
28080 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28082 * config/spu/divmovti4.c (union qword_UTItype): New data type.
28083 (si_from_UTItype, si_to_UTItype): New functions.
28084 (__udivmodti4): Use them to implement type-punning.
28085 * config/spu/multi3.c (union qword_TItype): New data type.
28086 (si_from_TItype, si_to_TItype): New functions.
28087 (__multi3): Use them to implement type-punning.
28089 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28091 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
28093 2011-04-27 Jan Hubicka <jh@suse.cz>
28095 * ipa-prop.c (function_insertion_hook_holder): New holder.
28096 (ipa_add_new_function): New function.
28097 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
28098 Register/deregister holder.
28100 2011-04-27 Richard Guenther <rguenther@suse.de>
28102 PR tree-optimization/48772
28103 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
28105 2011-04-27 Richard Guenther <rguenther@suse.de>
28107 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
28108 TARGET_MEM_REF handling.
28110 2011-04-27 Nick Clifton <nickc@redhat.com>
28112 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
28113 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
28114 (REG_CLASS_NAMES): Likewise.
28115 (REG_CLASS_CONTENTS): Likewise.
28116 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
28117 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
28118 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
28119 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
28120 (EVEN_REGS): New macro. Alias for QUAD_REGS.
28121 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
28122 duplicate register classes.
28123 (frv_class_likely_spilled_p): Likewise.
28124 (frv_register_move_cost): Likewise.
28126 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
28127 end of the regno_reg_class array.
28129 2011-04-27 Jakub Jelinek <jakub@redhat.com>
28132 * c-typeck.c (build_binary_op): Don't wrap arguments if
28133 int_operands is true.
28135 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
28138 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
28139 targetm.calls.must_pass_in_stack for void type.
28141 2011-04-26 Jan Hubicka <jh@suse.cz>
28143 * cgraphbuild.c (build_cgraph_edges): Update call
28144 of cgraph_create_edge and cgraph_create_indirect_edge.
28145 * cgraph.c (cgraph_create_edge_including_clones,
28146 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
28147 cgraph_update_edges_for_call_stmt_node): Do not take nest
28148 argument; do not initialize call_stmt_size/time.
28149 (dump_cgraph_node): Do not dump nest.
28150 (cgraph_clone_edge): Do not take loop_nest argument;
28151 do not propagate it; do not clone call_stmt_size/time.
28152 (cgraph_clone_node): Likewise.
28153 (cgraph_create_virtual_clone): Update.
28154 * cgraph.h (struct cgraph_edge): Remove
28155 call_stmt_size/call_stmt_time/loop_nest.
28156 (cgraph_create_edge, cgraph_create_indirect_edge,
28157 cgraph_create_edge_including_clones, cgraph_clone_node): Update
28159 * tree-emutls.c (gen_emutls_addr): Update.
28160 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
28161 loop_nest; handle indirect calls, too.
28162 (clone_inlined_nodes): Do not care about updating inline summaries.
28163 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
28164 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
28165 stream call_stmt_size/call_stmt_time/loop_nest.
28166 * ipa-inline.c (edge_badness): Update.
28167 (ipa_inline): dump summaries after inlining.
28168 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
28170 (inline_edge_summary): New function.
28171 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
28172 (inline_edge_removal_hook): Handle edge summaries.
28173 (inline_edge_duplication_hook): New hook.
28174 (inline_summary_alloc): Alloc hooks.
28175 (initialize_growth_caches): Do not register removal hooks.
28176 (free_growth_caches); Do not free removal hook.
28177 (dump_inline_edge_summary): New function.
28178 (dump_inline_summary): Use it.
28179 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
28180 (inline_update_callee_summaries): New function.
28181 (inline_merge_summary): Use it.
28182 (do_estimate_edge_time, do_estimate_edge_growth): Update.
28183 (read_inline_edge_summary): New function.
28184 (inline_read_section): Use it.
28185 (write_inline_edge_summary): New function.
28186 (inline_write_summary): Use it.
28187 (inline_free_summary): Free edge new holders.
28188 * tree-inline.c (copy_bb): Update.
28190 2011-04-26 Jason Merrill <jason@redhat.com>
28192 * tree-eh.c (lower_try_finally_switch): Create the label along with
28193 the CASE_LABEL_EXPR.
28195 2011-04-26 David S. Miller <davem@davemloft.net>
28196 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28198 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
28199 * configure: Regenerate.
28201 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
28204 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
28206 (VEC_reduc): New code iterator and splitters for vector reduction.
28207 (VEC_reduc_name): Ditto.
28208 (VEC_reduc_rtx): Ditto.
28209 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
28210 (reduc_<VEC_reduc_name>_v4sf): Ditto.
28212 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
28213 support for extracting SF on VSX.
28215 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
28216 generating xscvspdp.
28217 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
28218 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
28219 double add, minimum, maximum vector reduction.
28220 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
28221 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
28222 optimize double vector reduction.
28223 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
28225 2011-04-26 Joseph Myers <joseph@codesourcery.com>
28227 * config/fr30/fr30.h (inhibit_libc): Don't define.
28228 * config/m32r/m32r-protos.h: Correct comment.
28229 * config/v850/v850.h (GHS_default_section_names,
28230 GHS_current_section_names): Use tree, not union tree_node *.
28232 2011-04-26 Xinliang David Li <davidxl@google.com>
28234 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
28235 * c-family/c-opts.c (c_common_handle_option): Set
28236 warn_maybe_uninitialized.
28237 * opts.c (common_handle_option): Ditto.
28238 * common.opt: New option.
28239 * tree-ssa.c (warn_uninit): Add one more parameter.
28240 (warn_uninitialized_var): Pass warning code.
28241 * tree-flow.h: Interface change.
28243 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28245 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
28246 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
28247 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
28249 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28251 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
28252 * config/mips/mips.opt (mmips-tfile): Remove.
28254 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
28255 mips-tdump reference to ...
28256 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
28257 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
28258 reference by Tru64 UNIX.
28260 2011-04-26 Jakub Jelinek <jakub@redhat.com>
28263 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
28264 is error_mark_node, set value to NULL.
28266 PR tree-optimization/48734
28267 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
28268 if return value from maybe_fold_*_comparsions isn't something
28269 the code is prepared to handle.
28271 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
28273 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
28275 (ext_QIreg_nomode_operands): Remove.
28276 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
28280 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
28282 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
28284 2011-04-26 Richard Guenther <rguenther@suse.de>
28286 * c-typeck.c (build_unary_op): Do not expand array-refs via
28287 pointer arithmetic. Only adjust qualifiers for function types.
28289 2011-04-26 Richard Guenther <rguenther@suse.de>
28291 PR middle-end/48694
28292 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
28293 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
28294 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
28295 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
28297 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
28299 * doc/extend.texi: Document __underlying_type.
28301 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
28303 * config/rs6000/titan.md (automata_option "progress"): Remove.
28305 2011-04-25 Jeff Law <law@redhat.com>
28307 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
28309 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
28311 * system.h (ENUM_BITFIELD): Remove.
28313 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
28314 Eric Botcazou <ebotcazou@adacore.com>
28316 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
28317 for STORE_FLAG_VALUE==-1 case.
28319 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
28322 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
28323 LEGITIMATE_PIC_OPERAND_P.
28325 2011-04-24 Jan Hubicka <jh@suse.cz>
28327 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
28329 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
28330 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
28331 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
28332 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
28333 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
28334 Sanity check predicate length.
28335 (remap_predicate): Likewise; sanity check jump functions.
28336 (inline_read_section, inline_write_summary): Sanity check
28339 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
28342 * doc/extend.texi (Type Traits): Document __is_standard_layout,
28343 __is_literal_type, and __is_trivial; update throughout about
28344 possibly cv-qualified void types.
28346 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
28348 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
28349 testsuite and make it version agnostic.
28351 2011-04-22 Jan Hubicka <jh@suse.cz>
28353 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
28355 2011-04-23 Jakub Jelinek <jakub@redhat.com>
28358 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
28359 to VOID_TYPE even around MODIFY_EXPR.
28361 2011-04-22 Mike Stump <mikestump@comcast.net>
28363 * gensupport.c (read_md_rtx): Fix typo in comment.
28364 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
28367 2011-04-22 Jan Hubicka <jh@suse.cz>
28369 * gengtype.c (open_base_files): Add ipa-inline.h include.
28370 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
28371 ipa-prop.c; update all uses.
28372 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
28373 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
28374 merge summary of inlined function into former caller.
28375 * ipa-inline.c (max_benefit): Remove.
28376 (edge_badness): Compensate for removal of benefits.
28377 (update_caller_keys): Use
28378 reset_node_growth_cache/reset_edge_growth_cache.
28379 (update_callee_keys): Likewise.
28380 (update_all_callee_keys): Likewise.
28381 (inline_small_functions): Do not collect max_benefit; do not reset
28382 estimated_growth; call free_growth_caches and initialize_growth_caches.
28383 * ipa-inline.h (struct condition, type clause_t, struct predicate,
28384 struct size_time_entry): New structures.
28385 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
28386 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
28387 and estimated_growth.
28388 (edge_growth_cache_entry): New structure.
28389 (node_growth_cache, edge_growth_cache): New global vars.
28390 (estimate_growth): Turn into inline.
28391 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
28392 initialize_growth_caches, free_growth_caches): Declare.
28393 (estimate_edge_growth): Rewrite.
28394 (estimate_edge_time): Implement as inline cache lookup.
28395 (reset_node_growth_cache, reset_edge_growth_cache): New inline
28397 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
28398 (NUM_CONDITIONS): New constant.
28399 (predicate_conditions): New enum.
28400 (IS_NOT_CONSTANT): New constant.
28401 (edge_removal_hook_holder): New var.
28402 (node_growth_cache, edge_growth_cache): New global vars.
28403 (true_predicate, single_cond_predicate, false_predicate,
28404 not_inlined_predicate, add_condition, add_clause, and_predicates,
28405 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
28406 dump_clause, dump_predicate, account_size_time,
28407 evaulate_conditions_for_edge): New functions.
28408 (inline_summary_alloc): Move to heap.
28409 (inline_node_removal_hook): Clear condition and entry vectors.
28410 (inline_edge_removal_hook): New function.
28411 (initialize_growth_caches, free_growth_caches): New function.
28412 (dump_inline_summary): Update.
28413 (edge_execution_predicate): New function.
28414 (will_be_nonconstant_predicate): New function.
28415 (estimate_function_body_sizes): Compute BB and constantness predicates.
28416 (compute_inline_parameters): Do not clear estimated_growth.
28417 (estimate_edge_size_and_time): New function.
28418 (estimate_calls_size_and_time): New function.
28419 (estimate_callee_size_and_time): New function.
28420 (remap_predicate): New function.
28421 (inline_merge_summary): New function.
28422 (do_estimate_edge_time): New function based on...
28423 (estimate_edge_time): ... this one.
28424 (do_estimate_edge_growth): New function.
28425 (do_estimate_growth): New function based on....
28426 (estimate_growth): ... this one.
28427 (inline_analyze_function): Analyze after deciding on jump functions.
28428 (inline_read_section): New function.
28429 (inline_read_summary): Use it.
28430 (inline_write_summary): Write all the new data.
28431 * ipa-prop.c (ipa_get_param_decl_index): Export.
28432 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
28433 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
28435 (ipa_get_lattice): Move here from ipa-cp.c
28436 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
28437 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
28438 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
28439 cgraph_edge_inlinable_p): Remove.
28440 * cgraphunit.c: Include ipainline.h
28441 (cgraph_process_new_functions): Update call of
28442 compute_inline_parameters.
28444 2011-04-22 Richard Guenther <rguenther@suse.de>
28446 * tree.c (build_int_cst): Properly create canonicalized integer
28448 (build_int_cst_type): Remove scary comments.
28450 2011-04-22 Xinliang David Li <davidxl@google.com>
28452 * toplev.c (process_options): Enable -Werror=coverage-mismatch
28453 by default when -Wno-error is not specified.
28454 * opts-global.c (decode_options): Remove call to
28455 control_warning_options.
28457 2011-04-22 Jakub Jelinek <jakub@redhat.com>
28459 PR tree-optimization/48717
28460 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
28461 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
28463 2011-04-22 Joseph Myers <joseph@codesourcery.com>
28465 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
28466 definition where used.
28468 2011-04-22 Jakub Jelinek <jakub@redhat.com>
28471 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
28472 TREE_STATIC variables declared inside of some OpenMP construct.
28474 2011-04-22 Martin Jambor <mjambor@suse.cz>
28476 PR middle-end/48585
28477 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
28479 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
28482 * c-typeck.c (pop_init_level): Do not warn about initializing
28485 2011-04-22 Alan Modra <amodra@gmail.com>
28487 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
28488 when returning call_cookie.
28489 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
28490 pointers, to functions with no more vector args than the current
28491 function, and some non-local calls for ABI_V4.
28492 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
28493 sibcall_nonlocal_aix64): Combine to ..
28494 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
28495 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
28496 (sibcall_value_nonlocal_aix<mode>): ..likewise.
28497 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
28498 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
28500 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
28501 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
28502 sibcall_value_symbolic_64): Delete.
28504 2011-04-21 Xinliang David Li <davidxl@google.com>
28506 * cgraph.h: Remove pid.
28507 * cgraph.c: Remove pid.
28508 * value-prof.c (init_node_map): New function.
28509 (del_node_map): New function.
28510 (find_func_by_funcdef_no): New function.
28511 (gimple_ic_transform): Call new function.
28512 * cgraphunit.c (cgraph_finalize_function): Remove pid.
28513 * function.c (get_last_funcdef_no): New function.
28514 * function.h (get_last_funcdef_no): New function.
28515 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
28516 to libgcov function.
28517 (tree-profiling): Call node map init and delete function.
28519 2011-04-21 Ian Lance Taylor <iant@google.com>
28521 * godump.c (go_format_type): Use exported Go name for anonymous
28524 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
28526 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
28527 Call builtin_function_type_list instead of builtin_function_type.
28528 (UNARY, BINARY, TRINARY, QUAD): Likewise.
28530 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
28532 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
28533 build_function_type_list instead of build_function_type.
28534 Delete variable `endlink'.
28536 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
28538 * config/s390/s390.c (s390_init_builtins): Call
28539 build_function_type_list instead of build_function_type.
28541 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
28543 * config/ia64/ia64.c (ia64_init_builtins): Call
28544 build_function_type_list instead of builtin_function_type.
28546 2011-04-21 Easwaran Raman <eraman@google.com>
28548 * cfgexpand.c (stack_var): Remove OFFSET...
28549 (add_stack_var): ...and its reference here...
28550 (expand_stack_vars): ...and here.
28551 (stack_var_cmp): Sort by descending order of size.
28552 (partition_stack_vars): Change heuristic.
28553 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
28554 (dump_stack_var_partition): Add newline after each partition.
28556 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
28557 Jeff Law <law@redhat.com>
28559 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
28560 * gengtype.c (matching_file_name_substitute): Likewise.
28562 2011-04-21 Richard Guenther <rguenther@suse.de>
28565 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
28567 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
28569 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
28571 2011-04-21 Richard Guenther <rguenther@suse.de>
28573 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
28576 2011-04-21 Richard Guenther <rguenther@suse.de>
28578 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
28579 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
28580 Use DECL_P, not SSA_VAR_P.
28581 (ptr_derefs_may_alias_p): Likewise.
28582 (ptr_deref_may_alias_ref_p_1): Likewise.
28583 (decl_refs_may_alias_p): Likewise.
28584 (refs_may_alias_p_1): Likewise.
28585 (ref_maybe_used_by_call_p_1): Likewise.
28586 (call_may_clobber_ref_p_1): Likewise.
28587 (indirect_ref_may_alias_decl_p): Assume indirect refrences
28588 are either MEM_REF or TARGET_MEM_REF.
28589 (indirect_refs_may_alias_p): Likewise.
28590 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
28591 for MEM_EXPR of indirect calls.
28593 2011-04-21 Tristan Gingold <gingold@adacore.com>
28595 * vmsdbgout.c (write_srccorr): Compute file length from the string.
28596 (dst_file_info_struct): Remove flen field.
28597 (lookup_filename): Remove code that set flen field.
28599 2011-04-21 Tristan Gingold <gingold@adacore.com>
28601 * config/ia64/ia64.c (ia64_start_function): Add a guard.
28603 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
28606 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
28607 vec_extract and vec_concat for non-SSE4_1 targets.
28609 2011-04-21 Richard Guenther <rguenther@suse.de>
28611 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
28614 2011-04-21 Joseph Myers <joseph@codesourcery.com>
28616 * config/i386/cygming.h (union tree_node, TREE): Don't define or
28618 (FILE): Don't undefine.
28620 2011-04-21 Joseph Myers <joseph@codesourcery.com>
28622 * config/alpha/alpha.c (struct machine_function): Use rtx, not
28624 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
28626 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
28627 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
28628 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
28630 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
28631 definitions where used.
28632 * config/microblaze/microblaze.h (struct microblaze_args): Use
28633 rtx, not struct rtx_def *.
28634 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
28636 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
28637 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
28638 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
28639 not struct rtx_def *.
28640 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
28642 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
28644 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
28646 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
28648 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
28649 operand_equal_p to compare DR_BASE_ADDRESSes.
28650 (vect_check_interleaving): Likewise.
28652 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
28655 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
28656 for all Neon struct constants.
28658 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
28660 * target.def (legitimate_constant_p): New hook.
28661 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
28662 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
28663 * doc/tm.texi: Regenerate.
28664 * hooks.h (hook_bool_mode_rtx_true): Declare.
28665 * hooks.c (hook_bool_mode_rtx_true): Define.
28666 * system.h (LEGITIMATE_CONSTANT_P): Poison.
28667 * calls.c (precompute_register_parameters): Replace uses of
28668 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
28669 (emit_library_call_value_1): Likewise.
28670 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
28671 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
28672 * ira-costs.c (scan_one_insn): Likewise.
28673 * recog.c (general_operand, immediate_operand): Likewise.
28674 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
28675 * reload1.c (init_eliminable_invariants): Likewise.
28677 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
28679 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
28680 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
28682 (TARGET_LEGITIMATE_CONSTANT_P): Define.
28683 * config/alpha/predicates.md (input_operand): Update call to
28684 alpha_legitimate_constant_p.
28686 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
28687 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
28688 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
28689 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28690 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
28691 (arm_legitimate_constant_p): New functions.
28692 (arm_cannot_force_const_mem): Make static.
28694 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
28696 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
28697 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
28698 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
28699 instead of bfin_legitimate_constant_p.
28700 (bfin_legitimate_constant_p): Make static. Add a mode argument.
28701 (TARGET_LEGITIMATE_CONSTANT_P): Define.
28703 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
28705 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
28707 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
28708 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
28709 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28710 (frv_legitimate_constant_p): Make static. Add a mode argument.
28712 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
28713 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
28714 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
28716 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
28717 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
28718 * config/i386/i386.c (legitimate_constant_p): Rename to...
28719 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
28721 (ix86_cannot_force_const_mem): Update accordingly.
28722 (ix86_legitimate_address_p): Likewise.
28723 (TARGET_LEGITIMATE_CONSTANT_P): Define.
28724 * config/i386/i386.md: Update commentary.
28726 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
28727 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
28728 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28729 (ia64_legitimate_constant_p): Make static. Add a mode argument.
28731 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
28733 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
28734 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
28735 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28736 (lm32_legitimate_constant_p): Make static. Add a mode argument.
28738 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
28739 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
28740 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
28742 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
28743 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28744 (m32r_legitimate_constant_p): New function.
28746 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
28747 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
28748 LEGITIMATE_CONSTANT_P.
28749 (LEGITIMATE_CONSTANT_P): Delete.
28750 * config/m68k/m68k.c (m68k_expand_prologue): Call
28751 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
28752 (m68k_legitimate_constant_p): New function.
28753 * config/m68k/m68k.md: Update comments.
28755 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
28756 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28757 (mcore_legitimate_constant_p): New function.
28759 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
28760 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
28761 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
28762 Add a mode argument.
28763 (mep_legitimate_address): Update accordingly.
28764 (TARGET_LEGITIMATE_CONSTANT_P): Define.
28766 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
28768 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
28769 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
28770 static. Check OP's mode for VOIDmode.
28771 (microblaze_legitimate_constant_p): New function.
28772 (TARGET_LEGITIMATE_CONSTANT_P): Define.
28774 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
28775 * config/mips/mips.c (mips_legitimate_constant_p): New function.
28776 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
28777 (TARGET_LEGITIMATE_CONSTANT_P): Define.
28778 * config/mips/predicates.md: Update comments.
28780 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
28781 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
28782 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28783 (mmix_legitimate_constant_p): Make static, return a bool, and take
28785 (mmix_print_operand_address): Update accordingly.
28787 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
28789 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
28790 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
28791 static. Add a mode argument.
28792 (TARGET_LEGITIMATE_CONSTANT_P): Define.
28794 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
28796 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
28797 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28798 (pa_legitimate_constant_p): New function.
28800 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
28802 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
28803 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28804 (pdp11_legitimate_constant_p): New function.
28806 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
28807 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28808 (rs6000_legitimate_constant_p): New function.
28810 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
28811 (rx_legitimate_constant_p): ...this.
28812 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
28813 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
28814 (rx_legitimate_constant_p): ...this.
28815 (TARGET_LEGITIMATE_CONSTANT_P): Define.
28816 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
28818 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
28819 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
28820 * config/s390/s390.c (legitimate_constant_p): Rename to...
28821 (s390_legitimate_constant_p): ...this. Make static, return a bool,
28822 and add a mode argument.
28823 (TARGET_LEGITIMATE_CONSTANT_P): Define.
28825 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
28827 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
28828 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28829 (sh_legitimate_constant_p): New function.
28831 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
28832 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
28833 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28834 (legitimate_constant_p): Rename to...
28835 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
28837 (constant_address_p): Update accordingly.
28839 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
28840 argument and return a bool.
28841 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
28842 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28843 (spu_legitimate_constant_p): Add a mode argument and return a bool.
28844 (spu_rtx_costs): Update accordingly.
28845 * config/spu/predicates.md (vec_imm_operand): Likewise.
28847 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
28849 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
28850 * config/v850/v850.c (v850_legitimate_constant_p): New function.
28851 (TARGET_LEGITIMATE_CONSTANT_P): Define.
28853 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
28854 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
28855 * config/vax/vax.c (legitimate_constant_p): Likewise.
28857 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
28858 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28859 (xtensa_legitimate_constant_p): New function.
28861 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
28863 * target.def (cannot_force_const_mem): Add a mode argument.
28864 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
28865 * doc/tm.texi: Regenerate.
28866 * hooks.h (hook_bool_mode_rtx_false): Declare.
28867 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
28868 (hook_bool_mode_const_rtx_true): Likewise.
28869 (hook_bool_mode_rtx_false): New function.
28870 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
28871 to be non-VOID. Update call to cannot_force_const_mem.
28872 (find_reloads): Update accordingly.
28873 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
28874 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
28876 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
28877 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
28878 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
28879 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
28880 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
28881 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
28882 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
28883 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
28884 (m68k_cannot_force_const_mem): ...this new function.
28885 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
28887 (mips_const_insns, mips_legitimize_const_move): Update calls.
28888 (mips_secondary_reload_class): Likewise.
28889 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
28890 (pa_cannot_force_const_mem): ...this new function.
28891 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
28892 (rs6000_cannot_force_const_mem): ...this new function.
28893 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
28895 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
28896 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
28898 (xtensa_cannot_force_const_mem): ...this new function.
28900 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
28902 * config/mips/mips.c (mips16_build_function_stub): Call
28903 build_function_type_list instead of build_function_type.
28904 (mips16_build_call_stub): Likewise.
28906 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
28908 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
28909 instead of build_function_type.
28911 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
28913 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
28914 instead of build_function_type.
28916 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
28919 * config/i386/i386.md (insv): Change operand 0 constraint to
28920 "register_operand". Change operand 1 and 2 constraint to
28921 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
28922 * config/i386/sse.md (sse4_1_pinsrb): Export.
28923 (sse2_pinsrw): Ditto.
28924 (sse4_1_pinsrd): Ditto.
28925 (sse4_1_pinsrq): Ditto.
28926 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
28927 * config/i386/i386.c (ix86_expand_pinsr): New.
28929 2011-04-20 Easwaran Raman <eraman@google.com>
28931 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
28932 containing union type only with -fstrict-aliasing.
28934 2011-04-20 Jim Meyering <meyering@redhat.com>
28936 Remove useless if-before-free tests.
28937 * calls.c (expand_call, save_area): Likewise.
28938 * cfgcleanup.c (try_forward_edges): Likewise.
28939 * collect2.c (collect_execute): Likewise.
28940 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
28941 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
28942 * coverage.c (coverage_checksum_string): Likewise.
28943 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
28944 * cselib.c (cselib_init): Likewise.
28945 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
28946 (df_set_clean_cfg): Likewise.
28947 * function.c (free_after_compilation): Likewise.
28948 * gcc.c (do_spec_1, main): Likewise.
28949 * gcov.c (create_file_names): Likewise.
28950 * gensupport.c (identify_predicable_attribute): Likewise.
28951 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
28952 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
28953 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
28954 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
28955 * ipa-pure-const.c (local_pure_const): Likewise.
28956 * ipa-reference.c (propagate): Likewise.
28957 * ira-costs.c (free_ira_costs): Likewise.
28958 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
28959 * matrix-reorg.c (mat_free): Likewise.
28960 * prefix.c (get_key_value): Likewise.
28961 * profile.c (compute_value_histograms): Likewise.
28962 * reload1.c (free_reg_equiv): Likewise.
28963 * sched-deps.c (free_deps): Likewise.
28964 * sel-sched-ir.c (fence_clear): Likewise.
28965 * sese.c (set_rename, if_region_set_false_region): Likewise.
28966 * tree-data-ref.c (free_rdg): Likewise.
28967 * tree-eh.c (lower_try_finally): Likewise.
28968 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
28969 * tree-ssa-live.c (delete_var_map): Likewise.
28970 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
28971 * tree-ssa-pre.c (phi_trans_add): Likewise.
28973 2011-04-20 Jakub Jelinek <jakub@redhat.com>
28975 PR tree-optimization/48611
28976 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
28977 beyond ERT_MUST_NOT_THROW region.
28979 2011-04-20 Catherine Moore <clm@codesourcery.com>
28981 * config/mips/mips.opt (mfix-24k): New.
28982 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
28983 * config/mips/mips.md (length): Increase by 4 for stores if
28985 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
28986 all noreorder if fixing 24K errata.
28987 * doc/invoke.texi: Document mfix-24k.
28989 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
28991 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
28992 quad-word modes, reduce to 9-bit index range when above 1016 limit.
28994 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
28996 * config/arm/arm.c (arm_gen_constant): Move movw support ....
28997 (const_ok_for_op): ... to here.
28999 2011-04-20 Kai Tietz <ktietz@redhat.com>
29001 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
29002 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
29004 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
29006 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
29008 2011-04-20 Richard Guenther <rguenther@suse.de>
29010 PR tree-optimization/47892
29011 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
29012 are if-convertible.
29014 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
29016 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
29018 2011-04-20 Tristan Gingold <gingold@adacore.com>
29020 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
29022 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
29026 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
29027 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
29028 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
29029 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
29030 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
29032 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
29035 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
29036 (avr_asm_named_section, avr_asm_output_aligned_common,
29037 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
29038 New functions to update...
29039 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
29040 (avr_asm_init_sections): Overwrite section callbacks for
29041 data_section, bss_section.
29042 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
29044 (avr_file_end): ...here.
29046 2011-04-20 Richard Guenther <rguenther@suse.de>
29048 PR middle-end/48695
29049 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
29050 objects and types here. Adjust for their offset before comparing.
29052 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
29054 * tree-vect-stmts.c (vectorizable_store): Only chain one related
29055 statement per copy.
29057 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
29059 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
29060 (GIMPLE_H): Include $(INTERNAL_FN_H).
29061 (OBJS-common): Add internal-fn.o.
29062 (internal-fn.o): New rule.
29063 * internal-fn.def: New file.
29064 * internal-fn.h: Likewise.
29065 * internal-fn.c: Likewise.
29066 * gimple.h: Include internal-fn.h.
29067 (GF_CALL_INTERNAL): New gf_mask.
29068 (gimple_statement_call): Put fntype into a union with a new
29070 (gimple_build_call_internal): Declare.
29071 (gimple_build_call_internal_vec): Likewise.
29072 (gimple_call_same_target_p): Likewise.
29073 (gimple_call_internal_p): New function.
29074 (gimple_call_internal_fn): Likewise.
29075 (gimple_call_fntype): Return null for internal calls.
29076 (gimple_call_set_fntype): Assert that the function is not internal.
29077 (gimple_call_set_fn): Likewise.
29078 (gimple_call_set_fndecl): Likewise.
29079 (gimple_call_set_internal_fn): New function.
29080 (gimple_call_addr_fndecl): Handle null functions.
29081 (gimple_call_return_type): Likewise null types.
29082 * gimple.c (gimple_build_call_internal_1): New function.
29083 (gimple_build_call_internal): Likewise.
29084 (gimple_build_call_internal_vec): Likewise.
29085 (gimple_call_same_target_p): Likewise.
29086 (gimple_call_flags): Handle calls to internal functions.
29087 (gimple_call_fnspec): New function.
29088 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
29089 (gimple_has_side_effects): Handle null functions.
29090 (gimple_rhs_has_side_effects): Likewise.
29091 (gimple_call_copy_skip_args): Handle calls to internal functions.
29092 * cfgexpand.c (expand_call_stmt): Likewise.
29093 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
29094 * gimple-fold.c (gimple_fold_call): Handle null functions.
29095 (gimple_fold_stmt_to_constant_1): Don't fold
29096 calls to internal functions.
29097 * gimple-low.c (gimple_check_call_args): Handle calls to internal
29099 * gimple-pretty-print.c (dump_gimple_call): Likewise.
29100 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
29101 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
29102 (do_warn_unused_result): Likewise.
29103 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
29104 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
29105 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
29106 the target of a call.
29107 (initialize_hash_element): Update accordingly.
29108 (hashable_expr_equal_p): Use gimple_call_same_target_p.
29109 (iterative_hash_hashable_expr): Handle calls to internal functions.
29110 (print_expr_hash_elt): Likewise.
29111 * tree-ssa-pre.c (can_value_number_call): Likewise.
29112 (eliminate): Handle null functions.
29113 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
29114 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
29115 (find_func_aliases): Likewise.
29116 * value-prof.c (gimple_ic_transform): Likewise.
29117 (gimple_indirect_call_to_profile): Likewise.
29118 * lto-streamer-in.c (input_gimple_stmt): Likewise.
29119 * lto-streamer-out.c (output_gimple_stmt): Likewise.
29121 2011-04-19 Jan Hubicka <jh@suse.cz>
29123 * ipa-inline-transform.c (save_inline_function_body): Add comments.
29124 * ipa-inline.c (inline_small_functions): Compute summaries first,
29125 populate heap later.
29127 2011-04-19 Jan Hubicka <jh@suse.cz>
29129 * cgraph.h (save_inline_function_body): Remove.
29130 * ipa-inline-transform.c: New file, broke out of...
29131 * ipa-inline.c: ... this one; Update toplevel comment.
29132 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
29134 (update_noncloned_frequencies): Move to ipa-inline-transform.c
29135 (cgraph_mark_inline_edge): Rename to inline_call; move to
29136 ipa-inline-transform.c.
29137 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
29138 move to ipa-inline-transform.c
29139 (recursive_inlining, inline_small_functions, flatten_function,
29140 ipa_inline, inline_always_inline_functions,
29141 early_inline_small_functions): Update.
29142 (inline_transform): Move to ipa-inline-transform.c.
29143 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
29145 * Makefile.in (ipa-inline-transform.o): New file.
29146 * cgraphunit.c (save_inline_function_body): Move to
29147 ipa-inline-transform.c
29149 2011-04-19 DJ Delorie <dj@redhat.com>
29151 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
29152 registers if we already know there aren't any.
29153 (m32c_emit_epilogue): Don't emit a barrier here.
29154 (m32c_emit_eh_epilogue): Likewise.
29155 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
29156 operands at expand time.
29157 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
29159 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
29160 duplicates. Provide aliases instead.
29161 * config/m32c/prologue.md (eh_return): Emit a barrier here.
29162 (eh_epilogue): Add a "(return)" here as a hint to other parts of
29165 2011-04-19 Anatoly Sokolov <aesok@post.ru>
29167 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
29168 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
29169 (general_or_i64_p, sparc_register_move_cost): New function.
29171 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29173 * doc/install.texi (Configuration, --enable-threads): Remove mach.
29174 Add lynx, mipssde. Sort table.
29176 2011-04-19 Xinliang David Li <davidxl@google.com>
29178 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
29181 2011-04-19 Jakub Jelinek <jakub@redhat.com>
29184 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
29185 is a SUBREG with non-MODE_INT mode inside of it.
29187 2011-04-19 Martin Jambor <mjambor@suse.cz>
29189 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
29190 also according to actual contants.
29191 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
29192 (gimple_fold_call): Use it.
29193 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
29195 2011-04-19 Martin Jambor <mjambor@suse.cz>
29197 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
29198 non-pointer assignments.
29200 2011-04-19 Martin Jambor <mjambor@suse.cz>
29202 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
29203 account anc_offset and otr_type from the indirect edge info.
29204 * ipa-prop.c (get_ancestor_addr_info): New function.
29205 (compute_complex_ancestor_jump_func): Assignment analysis moved to
29206 get_ancestor_addr_info, call it.
29207 (ipa_note_param_call): Do not initialize information about polymorphic
29208 calls, return the indirect call graph edge. Remove the last
29209 parameter, adjust all callers.
29210 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
29211 parameters. Initialize polymorphic information in the indirect edge.
29213 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
29216 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
29217 the types if they have different enumeration identifiers.
29219 2011-04-19 Jan Hubicka <jh@suse.cz>
29221 * cgraph.h (cgraph_optimize_for_size_p): Declare.
29222 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
29223 * predict.c (cgraph_optimize_for_size_p): Break out from ...
29224 (optimize_function_for_size_p) ... here.
29226 2011-04-19 Richard Guenther <rguenther@suse.de>
29229 * tree.c (free_lang_data): Do not reset the decl-assembler-name
29232 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
29234 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
29235 if DECL_NO_INLINE_WARNING_P is set on the function.
29237 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
29240 * reload1.c (inc_for_reload): Return void. All callers changed.
29241 (emit_input_reload_insns): Don't try to delete previous output
29242 reloads to a register, or record spill_reg_store for autoincs.
29244 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
29246 * gengtype.h: Updated copyright year.
29247 (struct input_file_st): Add inpisplugin field.
29248 (type_fileloc): New function.
29250 (write_typed_struct_alloc_def): Add gcc_assert.
29251 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
29252 (write_typed_alloc_defns): Don't output for plugin files.
29253 (input_file_by_name): Clear inpisplugin field.
29254 (main): Set inpisplugin field for plugin files.
29256 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
29258 * gengtype-state.c (string_eq): New.
29259 (read_state): Use string_eq instead of strcmp when creating the
29262 2011-04-19 Wei Guozhi <carrot@google.com>
29265 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
29266 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
29268 * config/arm/constraints.md (Uu): New constraint.
29269 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
29271 2011-04-19 Tristan Gingold <gingold@adacore.com>
29273 * config.gcc (-*-*-*vms): Added.
29274 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
29276 * config/vms/vms-ld.c: New file.
29277 * config/vms/vms-ar.c: New file.
29278 * config/vms/t-vmsnative: New file.
29280 2011-04-18 Xinliang David Li <davidxl@google.com>
29282 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
29284 2011-04-18 Jakub Jelinek <jakub@redhat.com>
29286 PR middle-end/48661
29287 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
29288 if TREE_TYPE (v) is non-NULL.
29290 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
29291 gimple_get_virt_mehtod_for_binfo.
29292 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
29293 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
29295 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
29297 2011-04-18 Michael Matz <matz@suse.de>
29298 Steve Ellcey <sje@cup.hp.com>
29300 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
29301 use its mode as source mode if it isn't VOIDmode.
29303 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
29305 * doc/passes.texi: Fill crossref nodes.
29307 2011-04-18 Jim Meyering <meyering@redhat.com>
29309 Fix doubled-word typos in comments and strings
29310 * config/alpha/vms-unwind.h: s/for for/for/
29311 * config/arm/unwind-arm.h: Likewise.
29312 * config/microblaze/microblaze.c: Likewise.
29313 * config/sh/constraints.md: s/in in/in/
29314 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
29316 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
29318 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
29319 (AVX_FLOAT_MODE_P): Ditto.
29320 (AVX128_VEC_FLOAT_MODE_P): Ditto.
29321 (AVX256_VEC_FLOAT_MODE_P): Ditto.
29322 (AVX_VEC_FLOAT_MODE_P): Ditto.
29323 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
29324 (UNSPEC_MASKSTORE): Ditto.
29325 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
29326 Merge from <sse>_movmsk<ssemodesuffix> and
29327 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
29328 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
29330 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
29331 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
29332 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
29334 2011-04-18 Jan Hubicka <jh@suse.cz>
29336 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
29338 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
29339 (want_inline_function_called_once_p): Break out the logic from
29341 (edge_badness): Ensure that profile is not misupdated.
29342 (lookup_recursive_calls): Prioritize by call frequencies.
29343 (inline_small_functions): Move program size estimates here;
29344 actually process whole queue even when unit growth has been
29345 met. (to properly compute inline_failed reasons and for the
29346 case unit size decrease.) Revisit comments on recursive inlining.
29347 (ipa_inline): Remove unit summary code; first inline hot calls
29348 of functions called once, cold calls next.
29349 (order, nnodes): Remove unused variables.
29350 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
29351 (GTFILES): Remove ipa-inline.c
29352 * sel-sched.c (fill_insns): Silence uninitialized var warning.
29354 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
29356 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
29358 2011-04-18 Jie Zhang <jie@codesourcery.com>
29359 Richard Earnshaw <rearnsha@arm.com>
29361 * arm.c (neon_builtin_type_bits): Remove.
29362 (typedef enum neon_builtin_mode): New.
29363 (T_MAX): Don't define.
29364 (typedef enum neon_builtin_datum): Remove bits, codes[],
29365 num_vars and base_fcode. Add mode, code and fcode.
29366 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
29367 VAR10): Change accordingly.
29368 (neon_builtin_data[]): Change accordingly
29369 (arm_init_neon_builtins): Change accordingly.
29370 (neon_builtin_compare): Remove.
29371 (locate_neon_builtin_icode): Remove.
29372 (arm_expand_neon_builtin): Change accordingly.
29374 * arm.h (enum arm_builtins): Move to ...
29375 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
29377 * arm.c (arm_builtin_decl): Declare.
29378 (TARGET_BUILTIN_DECL): Define.
29379 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
29380 (arm_builtin_decls[]): New.
29381 (arm_init_neon_builtins): Store builtin declarations in
29382 arm_builtin_decls[].
29383 (arm_init_tls_builtins): Likewise.
29384 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
29385 (arm_builtin_decl): New.
29387 2011-04-18 Richard Guenther <rguenther@suse.de>
29389 * tree.c (upper_bound_in_type): Build properly canonicalized
29391 (lower_bound_in_type): Likewise.
29393 2011-04-18 Richard Guenther <rguenther@suse.de>
29395 * gimple.h (gimple_call_addr_fndecl): New function.
29396 (gimple_call_fndecl): Use it.
29397 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
29399 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
29400 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
29402 2011-04-18 Richard Guenther <rguenther@suse.de>
29404 PR middle-end/48650
29405 * tree.c (build_string): STRING_CST is now derived from tree_typed.
29407 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
29410 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
29411 DECL_IN_CONSTANT_POOL without RTL.
29413 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
29414 Ira Rosen <ira.rosen@linaro.org>
29417 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
29418 to match neon_vzip/vuzp/vtrn_internal.
29419 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
29420 outputs explicitly dependent on both inputs.
29421 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
29423 2011-04-18 Jakub Jelinek <jakub@redhat.com>
29425 PR tree-optimization/48616
29426 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
29427 whether the shift is by scalar or vector based on whether all SLP
29428 scalar stmts have the same rhs.
29430 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
29432 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
29435 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
29438 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
29441 2011-04-17 Jan Hubicka <jh@suse.cz>
29443 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
29444 * cgrpahunit.c (cgraph_finalize_function): Do not set
29445 finalized_by_frontend.
29446 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
29447 finalized_by_frontend.
29449 2011-04-17 Jan Hubicka <jh@suse.cz>
29451 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
29452 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
29453 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
29454 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
29456 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
29458 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
29460 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
29463 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
29464 is non-null before accessing it.
29465 (input_cgraph): Remove trailing spaces.
29467 2011-04-17 Revital Eres <revital.eres@linaro.org>
29469 * params.def (sms-min-sc): New param flag.
29470 * modulo-sched.c (sms_schedule): Use it.
29471 * doc/invoke.texi (sms-min-sc): Document it.
29473 2011-04-17 Jan Hubicka <jh@suse.cz>
29475 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
29476 present, also set gimple_call_set_cannot_inline.
29477 * ipa-inline.c: Update toplevel comment.
29478 (MAX_TIME): Remove.
29479 (cgraph_clone_inlined_nodes): Fix linebreaks.
29480 (cgraph_check_inline_limits): Restructure to ...
29481 (caller_growth_limits): ... this one; be more tolerant
29482 on growth in nested inline chains; add explanatory comment;
29483 fix stack accounting thinko introduced by previous patch.
29484 (cgraph_default_inline_p): Remove.
29485 (report_inline_failed_reason): New function.
29486 (can_inline_edge_p): New function.
29487 (can_early_inline_edge_p): New function.
29488 (leaf_node_p): Move upwards in file.
29489 (want_early_inline_function_p): New function.
29490 (want_inline_small_function_p): New function.
29491 (want_inline_self_recursive_call_p): New function.
29492 (cgraph_edge_badness): Rename to ...
29493 (edge_badness) ... this one; fix linebreaks.
29494 (update_edge_key): Update call of edge_baddness; add
29495 detailed dump about queue updates.
29496 (update_caller_keys): Use can_inline_edge_p and
29497 want_inline_small_function_p.
29498 (cgraph_decide_recursive_inlining): Rename to...
29499 (recursive_inlining): Use can_inline_edge_p and
29500 want_inline_self_recursive_call_p; simplify and remove no longer
29502 (cgraph_set_inline_failed): Remove.
29503 (add_new_edges_to_heap): Use can_inline_edge_p and
29504 want_inline_small_function_p.
29505 (cgraph_decide_inlining_of_small_functions): Rename to ...
29506 (inline_small_functions): ... this one; cleanup; use
29507 can/want predicates; cleanup debug ouput; work edges till fibheap
29508 is exhausted and do not stop once unit growth is reached; remove
29509 later loop processing remaining edges.
29510 (cgraph_flatten): Rename to ...
29511 (flatten_function): ... this one; use can_inline_edge_p
29512 and can_early_inline_edge_p predicates.
29513 (cgraph_decide_inlining): Rename to ...
29514 (ipa_inline): ... this one; remove unreachable nodes before
29515 inlining functions called once; simplify the pass.
29516 (cgraph_perform_always_inlining): Rename to ...
29517 (inline_always_inline_functions): ... this one; use
29518 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
29519 (cgraph_decide_inlining_incrementally): Rename to ...
29520 (early_inline_small_functions): ... this one; simplify
29521 using new predicates; cleanup; make dumps prettier.
29522 (cgraph_early_inlining): Rename to ...
29523 (early_inliner): newer inline regular functions into always-inlines;
29524 fix updating of call stmt summaries.
29525 (pass_early_inline): Update for new names.
29526 (inline_transform): Fix formating.
29527 (gate_cgraph_decide_inlining): Rename to ...
29528 (pass_ipa_inline): ... this one.
29529 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
29530 * ipa-inline-analysis.c (dump_inline_summary): Update.
29531 (compute_inline_parameters): Do not compute disregard_inline_limits;
29532 look for mismatching arguments.
29533 (estimate_growth): Fix handlig of non-trivial self recursion.
29534 (inline_read_summary): Do not read info->disregard_inline_limits.
29535 (inline_write_summary): Do not write info->disregard_inline_limits.
29536 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
29537 and move all checks into can_inline_edge_p predicate; re-enable code
29538 comparing optimization levels.
29539 (expand_call_inline): Do not test inline_forbidden_into_p.
29540 * Makefile.in (ipa-inline.o): Update arguments.
29542 2011-04-17 Revital Eres <revital.eres@linaro.org>
29544 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
29546 2011-04-17 Revital Eres <revital.eres@linaro.org>
29548 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
29550 2011-04-17 Michael Matz <matz@suse.de>
29552 PR tree-optimization/48622
29554 * ipa-inline-analysis.c (inline_read_summary): Read size/time
29555 in same order as they're written.
29557 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29559 * config/pa/predicates.md: Reorganize and simplify predicates.
29560 Eliminate duplicate code checks.
29561 (arith_operand): Rename to arith14_operand
29562 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
29563 * config/pa/pa.md: Use renamed operands.
29564 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
29565 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
29566 arith11_operand, adddi3_operand, indexed_memory_operand,
29567 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
29568 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
29569 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
29570 move_dest_operand, move_src_operand, prefetch_cc_operand,
29571 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
29572 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
29573 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
29574 div_operand, int5_operand, movb_comparison_operator,
29575 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
29576 arith_double_operand, ireg_operand, lhs_lshift_operand,
29577 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
29578 integer_store_memory_operand): Likewise.
29579 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
29580 (integer_store_memory_operand, read_only_operand,
29581 function_label_operand, borx_reg_operand,
29582 non_hard_reg_operand): Likewise.
29583 (eq_neq_comparison_operator): Delete unused operator.
29584 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
29585 function_label_operand.
29586 (emit_move_sequence): Likewise.
29588 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
29590 * config/i386/sse.md (sseunpackmode): New mode attribute.
29591 (ssepackmode): Ditto.
29592 (vec_pack_trunc_<mode>): Macroize expander from
29593 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
29594 (vec_unpacks_lo_<mode>): Macroize expander from
29595 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
29596 (vec_unpacks_hi_<mode>): Macroize expander from
29597 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
29598 (vec_unpacku_lo_<mode>): Macroize expander from
29599 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
29600 (vec_unpacku_hi_<mode>): Macroize expander from
29601 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
29602 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
29603 ix86_expand_sse4_unpack.
29604 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
29606 2011-04-16 Jan Hubicka <jh@suse.cz>
29608 * cgraphbuild.c: Include ipa-inline.h.
29609 (reset_inline_failed): Use initialize_inline_failed.
29610 * cgraph.c: Include ipa-inline.h.
29611 (cgraph_create_node_1): Do not initialize estimated_growth.
29612 (initialize_inline_failed): More to ipa-inline-analysis.c
29613 (dump_cgraph_node): Do not dump inline flags.
29614 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
29615 and disregard_inline_limits flags.
29616 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
29617 time, size, estimated_growth.
29618 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
29620 * cgraphunit.c (cgraph_decide_is_function_needed): Use
29621 DECL_DISREGARD_INLINE_LIMITS.
29622 (cgraph_analyze_function): Do not initialize
29623 node->local.disregard_inline_limits.
29624 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
29625 inlinable, versionable and disregard_inline_limits.
29626 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
29627 cgraph_check_inline_limits, cgraph_default_inline_p,
29628 cgraph_edge_badness, update_caller_keys, update_callee_keys,
29629 add_new_edges_to_heap): Update.
29630 (cgraph_decide_inlining_of_small_function): Update; set
29631 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
29632 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
29633 cgraph_decide_inlining_incrementally): Update.
29634 * ipa-inline.h (inline_summary): Add inlinable, versionable,
29635 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
29636 time, size and estimated_growth parameters.
29637 (estimate_edge_growth): Update.
29638 (initialize_inline_failed): Declare.
29639 * ipa-split.c: Include ipa-inline.h
29640 (execute_split_functions): Update.
29641 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
29642 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
29643 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
29644 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
29645 estimated_growth to INT_MIN.
29646 (inline_node_duplication_hook): Likewise.
29647 (dump_inline_summary): Dump new fields.
29648 (compute_inline_parameters): Update.
29649 (estimate_edge_time, estimate_time_after_inlining,
29650 estimate_size_after_inlining, estimate_growth, inline_read_summary,
29651 inline_write_summary):
29652 (initialize_inline_failed): Move here from cgraph.c.
29653 * tree-sra.c: Include ipa-inline.h.
29654 (ipa_sra_preliminary_function_checks): Update.
29655 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
29658 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
29660 * config/i386/sse.md (V16): New mode iterator.
29662 (AVXMODEQI, AVXMODEDI): Remove.
29663 (sse2, sse3): New mode attribute.
29664 (mov<mode>): Use V16 mode iterator.
29665 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
29666 (push<mode>1): Use V16 mode iterator.
29667 (movmisalign<mode>): Ditto.
29668 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
29669 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
29670 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
29671 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
29672 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
29673 avx_movdqu<avxmodesuffix>.
29674 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
29675 *avx_movdqu<avxmodesuffix>.
29676 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
29677 avx_lddqu<avxmodesuffix>.
29678 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
29679 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
29680 avx_movnt<AVXMODEDI:mode>.
29681 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
29682 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
29684 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
29687 * haifa-sched.c (prune_ready_list, schedule_block): Use
29688 sched_pressure_p rather than flag_sched_pressure.
29690 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
29692 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
29693 cgraph_get_node instead of cgraph_get_create_node.
29695 2011-04-15 Jakub Jelinek <jakub@redhat.com>
29697 * cfgexpand.c (expand_debug_expr): Use
29698 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
29700 2011-04-15 Michael Matz <matz@suse.de>
29702 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
29703 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
29704 * function.c (gimplify_parameters): Ditto.
29705 * gimplify.c (gimplify_vla_decl): Ditto.
29707 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
29708 (gimple_call_set_alloca_for_var): New inline function.
29709 (gimple_call_alloca_for_var_p): Ditto.
29710 * gimple.c (gimple_build_call_from_tree): Remember
29711 CALL_ALLOCA_FOR_VAR_P state.
29712 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
29714 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
29715 calls if they were for VLA objects.
29717 2011-04-15 Martin Jambor <mjambor@suse.cz>
29719 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
29722 2011-04-15 Martin Jambor <mjambor@suse.cz>
29724 PR middle-end/48601
29725 * tree-emutls.c (lower_emutls_function_body): Call
29726 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
29727 result is non-NULL.
29729 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
29731 * c-decl.c (detect_field_duplicates): Call
29732 objc_detect_field_duplicates instead of objc_get_interface_ivars.
29734 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
29736 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
29737 * gimple.c (gimple_asm_clobbers_memory_p): Define.
29738 * ipa-pure-const.c (check_stmt): Call it.
29739 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
29741 2011-04-15 Richard Guenther <rguenther@suse.de>
29743 PR tree-optimization/48290
29744 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
29745 Properly decide inhibiting propagation based on the valueized
29746 operand. Do loop-closed SSA form preserving here ...
29747 (init_copy_prop): ... not here.
29749 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
29752 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
29753 (*ieee_smax<mode>3): Likewise.
29755 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29757 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
29758 Replace match_operand with match_dup for the third operand in
29761 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
29763 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
29764 to track processing of conditionals. Update all callers.
29765 (try_combine, simplify_if_then_else): Update.
29767 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
29769 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
29772 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
29774 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
29775 instead of match_operand for operand 3.
29777 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
29779 * recog.h (insn_operand_data): Add an "allows_mem" field.
29780 * genoutput.c (output_operand_data): Initialize it.
29781 * optabs.c (maybe_legitimize_operand_same_code): New function.
29782 (maybe_legitimize_operand): Use it when matching the original
29785 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
29787 * gimplify.c: Fix issues in comments throughout.
29788 (voidify_wrapper_expr): Fix long line.
29789 (build_stack_save_restore): Likewise.
29790 (gimplify_loop_expr): Likewise.
29791 (gimplify_compound_lval): Likewise.
29792 (gimplify_init_ctor_eval): Likewise.
29793 (gimplify_modify_expr_rhs): Likewise.
29794 (omp_notice_threadprivate_variable): Likewise.
29796 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
29798 * cfgexpand.c (expand_call_stmt): Convert the function type to the
29799 original one if this is not a builtin function.
29801 2011-04-14 Jakub Jelinek <jakub@redhat.com>
29804 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
29805 offset it as needed based on top 2 bits in operands[3], change
29806 MEM mode to SFmode and mask those 2 bits away from operands[3].
29808 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
29810 * c-parser.c (c_parser_objc_protocol_definition): Updated for
29811 change from objc_declare_protocols() to objc_declare_protocol().
29813 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
29815 * config/i386/sse.md (sse4_1): New mode attribute.
29816 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
29817 avx_blend<ssemodesuffix><avxmodesuffix> and
29818 sse4_1_blend<ssemodesuffix> using VF mode iterator.
29819 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
29820 avx_blendv<ssemodesuffix><avxmodesuffix> and
29821 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
29822 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
29823 avx_dp<ssemodesuffix><avxmodesuffix> and
29824 sse4_1_dp<ssemodesuffix> using VF mode iterator.
29825 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
29826 (sse4_1_packusdw): Merge with *avx_packusdw.
29827 (sse4_1_pblendvb): Merge with *avx_pblendvb.
29828 (sse4_1_pblendw): Merge with *avx_pblendw.
29829 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
29830 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
29831 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
29833 (sse4_1_round<ssescalarmodesuffix>): Merge with
29834 *avx_round<ssescalarmodesuffix>.
29835 (aesenc): Merge with *avx_aesenc.
29836 (aesenclast): Merge with *avx_aesenclast.
29837 (aesdec): Merge with *avx_aesdec.
29838 (aesdeclast): Merge with *avx_aesdeclast.
29839 (pclmulqdq): Merge with *pclmulqdq.
29840 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
29842 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
29844 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
29846 PR middle-end/48608
29847 * cfgexpand.c (get_decl_align_unit): Renamed to ...
29848 (align_local_variable): This. Update DECL_ALIGN.
29849 (add_stack_var): Updated.
29850 (expand_one_stack_var): Likewise.
29852 2011-04-14 Richard Guenther <rguenther@suse.de>
29854 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
29856 (dse_initialize_block_local_data, dse_leave_block,
29857 record_voperand_set, get_stmt_uid): Likewise.
29858 (dse_possible_dead_store_p): Allow any kind of killing stmt.
29859 (dse_optimize_stmt): Remove voperand set handling code.
29860 Simplify and improve to handle any kind of killing stmt.
29861 (dse_record_phi): Remove.
29862 (dse_enter_block): Simplify.
29863 (tree_ssa_dse): Likewise.
29864 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
29866 2011-04-14 Jan Hubicka <jh@suse.cz>
29868 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
29869 * cgraph.h (struct inline_summary): Move to ipa-inline.h
29870 (cgraph_local_info): Remove inline_summary.
29871 * ipa-cp.c: Include ipa-inline.h.
29872 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
29873 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
29875 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
29876 (input_overwrite_node): Do not set inline summary.
29877 (input_node): Do not stream inline summary.
29878 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
29879 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
29880 growth; we do not have inline parameters computed for that anyway.
29881 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
29882 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
29883 (inline_summary_t): New type and VECtor.
29884 (debug_inline_summary, dump_inline_summaries): Declare.
29885 (inline_summary): Use VOCtor.
29886 (estimate_edge_growth): Kill hack computing call stmt size directly.
29887 * lto-section-in.c (lto_section_name): Add inline section.
29888 * ipa-inline-analysis.c: Include lto-streamer.h
29889 (node_removal_hook_holder, node_duplication_hook_holder): New holders
29890 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
29891 (inline_summary_vec): Define.
29892 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
29893 dump_inline_summaries): New functions.
29894 (estimate_function_body_sizes): Properly compute size/time of outgoing
29896 (compute_inline_parameters): Alloc inline_summary; do not compute
29897 size/time of incomming calls.
29898 (estimate_edge_time): Avoid missing time summary hack.
29899 (inline_read_summary): Read inline summary info.
29900 (inline_write_summary): Write inline summary info.
29901 (inline_free_summary): Free all hooks and inline summary vector.
29902 * lto-streamer.h: Add LTO_section_inline_summary section.
29903 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
29904 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
29906 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
29908 * tree-vectorizer.h (vect_strided_store_supported): Add a
29909 HOST_WIDE_INT argument.
29910 (vect_strided_load_supported): Likewise.
29911 (vect_permute_store_chain): Return void.
29912 (vect_transform_strided_load): Likewise.
29913 (vect_permute_load_chain): Delete.
29914 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
29915 count argument. Check that the count is a power of two.
29916 (vect_strided_load_supported): Likewise.
29917 (vect_permute_store_chain): Return void. Update after above changes.
29918 Assert that the access is supported.
29919 (vect_permute_load_chain): Likewise.
29920 (vect_transform_strided_load): Return void.
29921 * tree-vect-stmts.c (vectorizable_store): Update calls after
29922 above interface changes.
29923 (vectorizable_load): Likewise.
29924 (vect_analyze_stmt): Don't check for strided powers of two here.
29926 2011-04-14 Richard Guenther <rguenther@suse.de>
29928 PR tree-optimization/48590
29929 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
29930 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
29931 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
29932 BUILT_IN_STACK_SAVE.
29933 * tree-ssa-dce.c (propagate_necessity): Handle
29934 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
29936 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
29938 * c-parser.c (c_parser_objc_class_declaration): Updated call to
29939 objc_declare_class.
29941 2011-04-14 Richard Guenther <rguenther@suse.de>
29943 * tree.h (get_object_alignment_1): Declare.
29944 * builtins.c (get_object_alignment_1): Split out worker from ...
29945 (get_object_alignment): ... here.
29946 * fold-const.c (get_pointer_modulus_and_residue): Use
29947 get_object_alignment_1.
29949 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
29951 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
29953 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
29954 parameter. Generalise code to handle arrays as well as vectors.
29955 (vect_setup_realignment): Update accordingly.
29956 * tree-vect-stmts.c (vectorizable_store): Likewise.
29957 (vectorizable_load): Likewise.
29959 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
29961 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
29962 within the per-copy loop.
29964 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
29966 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
29969 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
29971 * doc/options.texi (Negative): Explicitly mention that the
29972 Negative chain must be circular.
29974 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
29976 * function.h (block_chainon): Declare.
29977 * function.c (block_chainon): Define.
29979 2011-04-14 Anatoly Sokolov <aesok@post.ru>
29980 Eric Weddington <eric.weddington@atmel.com>
29981 Georg-Johann Lay <avr@gjlay.de>
29983 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
29985 (avr_init_builtins, avr_expand_builtin,
29986 avr_expand_delay_cycles, avr_expand_unop_builtin,
29987 avr_expand_binop_builtin ): New functions.
29988 (avr_builtin_id): New enum
29989 (struct avr_builtin_description): New struct
29990 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
29991 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
29993 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
29994 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
29995 UNSPECV_DELAY_CYCLES): new enumeration values
29996 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
29997 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
29998 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
29999 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
30000 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
30001 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
30002 "fmulsu"): New insns
30004 * config/avr/avr-c.c: fix line endings
30005 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
30006 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
30007 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
30008 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
30009 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
30011 * doc/extend.texi (AVR Built-in Functions): New node
30012 (Target Builtins): Add documentation of AVR
30013 built-in functions.
30015 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
30018 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
30019 alone. Error if non-const data has attribute progmem.
30021 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
30023 * tree.h (struct tree_constructor): Include tree_typed instead of
30025 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
30026 TS_TYPED instead of TS_COMMON.
30028 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
30030 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
30031 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
30032 (sse2_psadbw): Merge with *avx_psadbw.
30033 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
30034 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
30035 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
30036 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
30037 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
30038 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
30039 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
30040 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
30041 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
30042 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
30043 (ssse3_palignrti): Merge with *avx_palignrti.
30045 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
30047 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
30048 * tree-ssanames.c (fini_ssanames): VEC_free it.
30049 (make_ssa_name_fn): Update for VECness of free_ssanames.
30050 (release_ssa_name, release_dead_ssa_names): Likewise.
30051 * tree.h (struct tree_ssa_name): Include tree_typed instead of
30053 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
30054 TS_TYPED instead of TS_COMMON.
30056 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
30058 * postreload-gcse.c (gcse_after_reload_main): Add calls to
30059 statistics_counter_event.
30060 * tree-ssa-copyrename.c (stats): Define.
30061 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
30062 statistics_counter_event.
30063 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
30064 (bswap_stats, widen_mul_stats): Define.
30065 (insert_reciprocals): Increment rdivs_inserted.
30066 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
30067 rfuncs_inserted. Add calls to statistics_counter_event.
30068 (execute_cse_sincos_1): Increment inserted.
30069 (execute_cse_sincos): Zeroize sincos_stats. Add call to
30070 statistics_counter_event.
30071 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
30072 of bswap_stats. Add calls to statistics_counter_event.
30073 (convert_mult_to_widen): Increment widen_mults_inserted.
30074 (convert_plusminus_to_widen): Increment maccs_inserted.
30075 (convert_mult_to_fma): Increment fmas_inserted.
30076 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
30077 calls to statistics_counter_event.
30079 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
30081 PR rtl-optimization/48455
30082 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
30083 `temp_costs->mem_cost'.
30085 2011-04-13 Jan Hubicka <jh@suse.cz>
30087 * ipa-inline.h: New file.
30088 * ipa-inline-analysis.c: New file. Broken out of ...
30089 * ipa-inline.c: ... this file; update toplevel comment;
30090 include ipa-inline.h
30091 (inline_summary): Move to ipa-inline.h
30092 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
30093 ipa-inline-analysis.c.
30094 (cgraph_estimate_time_after_inlining): Rename to
30095 estiamte_time_after_inlining; move to ipa-inline-analysis.c
30096 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
30097 to estimate_edge_growth.
30098 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
30099 rename to estimate_size_after_inlining.
30100 (cgraph_mark_inline_edge): Update for new naming convention.
30101 (cgraph_check_inline_limits): Likewise.
30102 (cgraph_edge_badness): Likewise.
30103 (cgraph_decide_recursive_inlining): Likewise.
30104 (cgraph_decide_inlining_of_small_functions): Likewise.
30105 (cgraph_decide_inlining_incrementally): Likewise.
30106 (cgraph_estimate_growth): Rename to estimate_growth; move to
30107 ipa-inline-analysis.c.
30108 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
30109 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
30110 (compute_inline_parameters): Likewise.
30111 (compute_inline_parameters_for_current): Likewise.
30112 (pass_inline_parameters): Likewise.
30113 (inline_indirect_intraprocedural_analysis): Likewise.
30114 (analyze_function): Rename to inline_analyze_function; likewise.
30115 (add_new_function): Move to ipa-inline-analysis.c.
30116 (inline_generate_summary): Likewise.
30117 (inline_read_summary): Likewise.
30118 (inline_write_summary): Likewise.
30119 * Makefile.in (ipa-inline-analysis.c): New file.
30121 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30123 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
30124 * configure: Regenerate.
30126 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
30128 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
30129 instead of tree_common.
30130 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
30132 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
30133 TS_TYPED rather than TS_COMMON.
30134 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
30136 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
30139 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
30140 r20 around calls of __tablejump_elpm__
30142 2011-04-13 Jakub Jelinek <jakub@redhat.com>
30144 PR middle-end/48591
30145 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
30147 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
30149 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
30151 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
30152 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
30153 (cfi_vec): New typedef.
30154 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
30155 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
30156 (cie_cfi_vec): New static variable.
30157 (cie_cfi_head): Delete.
30158 (add_cfi): Accept a cfi_vec * as first argument. All callers and
30159 declaration changed. Use vector rather than list operations.
30160 (new_cfi): Don't initialize the dw_cfi_next field.
30161 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
30162 rather than list operations.
30163 (lookup_cfa): Use vector rather than list operations.
30164 (output_cfis): New argument upto. Accept a cfi_vec rather than
30165 a dw_cfi_ref list head as argument. All callers changed.
30166 Iterate over the vector using upto as a maximum index.
30167 (output_all_cfis): New static function.
30168 (output_fde): Use vector rather than list operations. Use the
30169 new upto argument for output_cfis rather than manipulating a
30171 (dwarf2out_begin_prologue): Change initializations to match
30172 new struct members.
30173 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
30174 from the vector length rather than searching for the end of a list.
30175 Use output_all_cfis.
30176 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
30178 2011-04-13 Nick Clifton <nickc@redhat.com>
30180 * config/rx/rx.md (movmemsi): Do not use this pattern when
30181 volatile pointers are involved.
30183 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
30185 * config/i386/sse.md (pinsrbits): Remove.
30186 (sse2_packsswb): Merge with *avx_packsswb.
30187 (sse2_packssdw): Merge with *avx_packssdw.
30188 (sse2_packuswb): Merge with *avx_packuswb.
30189 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
30190 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
30191 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
30192 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
30193 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
30194 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
30195 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
30196 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
30197 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
30198 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
30199 (sse2_loadld): Merge with *avx_loadld.
30200 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
30201 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
30202 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
30203 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
30204 (vec_concatv2di): Merge with *vec_concatv2di_avx.
30206 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
30208 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
30209 calling TREE_CHAIN.
30210 * print-tree.c (print_node): Likewise.
30211 * tree-inline.c (copy_tree_r): Likewise.
30212 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
30213 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
30214 instead of TS_COMMON.
30215 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
30216 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
30217 (copy_node_stat): Zero TREE_CHAIN only if necessary.
30218 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
30219 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
30221 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
30223 (TREE_CHAIN): Check for a TS_COMMON structure.
30224 (TREE_TYPE): Check for a TS_TYPED structure.
30226 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
30228 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
30229 cgraph_get_create_node instead of cgraph_node.
30231 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
30233 * c-parser.c (c_parser_initelt): Updated call to
30234 objc_build_message_expr.
30235 (c_parser_postfix_expression): Likewise.
30237 2011-04-12 Kai Tietz <ktietz@redhat.com>
30239 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
30240 MASK_MS_BITFIELD_LAYOUT bit.
30242 2011-04-12 Jakub Jelinek <jakub@redhat.com>
30244 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
30245 assert it is always true.
30246 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
30249 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
30251 * c-parser.c (c_lex_one_token): Rewritten conditional used when
30252 compiling Objective-C to be more efficient.
30254 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
30256 * opts-common.c (decode_cmdline_options_to_array): Remove variable
30259 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
30261 * recog.h, genoutput.c, optabs.c: Revert last patch.
30263 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
30266 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
30268 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
30270 * recog.h (insn_operand_data): Add an "allows_mem" field.
30271 * genoutput.c (output_operand_data): Initialize it.
30272 * optabs.c (maybe_legitimize_operand_same_code): New function.
30273 (maybe_legitimize_operand): Use it when matching the original
30276 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
30278 * genpreds.c (process_define_predicate): Move most processing
30279 to gensupport.c. Continue to validate the expression.
30280 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
30281 (process_define_predicate): Move processing to gensupport.c.
30282 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
30283 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
30284 (compute_predicate_codes): Moved from genrecog.c. Add lineno
30286 (valid_predicate_name_p): New function, split out from old
30287 genpreds.c:process_define_predicate.
30288 (process_define_predicate): New function, combining code from
30289 old genpreds.c and genrecog.c functions.
30290 (process_rtx): Call it for DEFINE_PREDICATE and
30291 DEFINE_SPECIAL_PREDICATE.
30293 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
30295 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
30296 size of a '%A' memory reference.
30297 (T_DREG, T_QREG): New neon_builtin_type_bits.
30298 (arm_init_neon_builtins): Assert that the load and store operands
30299 are neon_struct_operands.
30300 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
30301 (NEON_ARG_MEMORY): New builtin_arg.
30302 (neon_dereference_pointer): New function.
30303 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
30304 Handle NEON_ARG_MEMORY.
30305 (arm_expand_neon_builtin): Update after above interface changes.
30306 Use NEON_ARG_MEMORY for loads and stores.
30307 * config/arm/predicates.md (neon_struct_operand): New predicate.
30308 * config/arm/iterators.md (V_two_elem): Tweak formatting.
30309 (V_three_elem): Use BLKmode for accesses that have no associated mode.
30310 (V_four_elem): Tweak formatting.
30311 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
30312 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
30313 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
30314 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
30315 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
30316 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
30317 (neon_vst4<mode>): Replace pointer operand with a memory operand.
30318 Use %A in the output template.
30319 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
30320 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
30321 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
30322 the width of the memory access. Remove post-increment.
30323 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
30325 2011-04-12 Nick Clifton <nickc@redhat.com>
30327 * config/v850/v850.c (expand_prologue): Do not use the CALLT
30328 instruction for interrupt handlers if the target is the basic V850
30330 (expand_epilogue): Likewise.
30332 2011-04-12 Jakub Jelinek <jakub@redhat.com>
30334 PR rtl-optimization/48549
30335 * combine.c (propagate_for_debug): Also stop after BB_END of
30336 this_basic_block. Process LAST and just stop processing after it.
30337 (combine_instructions): If last_combined_insn has been deleted,
30338 set last_combined_insn to its PREV_INSN.
30340 2011-04-12 Richard Guenther <rguenther@suse.de>
30342 PR tree-optimization/46076
30343 * gimple.h (struct gimple_statement_call): Add fntype field.
30344 (gimple_call_fntype): Adjust.
30345 (gimple_call_set_fntype): New function.
30346 * gimple.c (gimple_build_call_1): Set the call function type.
30347 * gimplify.c (gimplify_call_expr): Preserve the function
30348 type the frontend used for the call.
30349 (gimplify_modify_expr): Likewise.
30350 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
30352 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
30354 * tree-ssa.c (useless_type_conversion_p): Function pointer
30355 conversions are useless.
30357 2011-04-12 Martin Jambor <mjambor@suse.cz>
30359 * cgraph.h (cgraph_node): Remove function declaration.
30360 (cgraph_create_node): Declare.
30361 (cgraph_get_create_node): Likewise.
30362 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
30363 Updated all callers.
30364 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
30365 the decl does not already exist. Call cgraph_get_create_node instead
30367 (cgraph_get_create_node): New function.
30368 (cgraph_same_body_alias): Update comment.
30369 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
30370 assert it does not return NULL.
30371 (cgraph_update_edges_for_call_stmt): Likewise.
30372 (cgraph_clone_edge): Likewise.
30373 (cgraph_create_virtual_clone): Likewise.
30374 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
30375 instead of cgraph_node.
30376 (cgraph_add_new_function): Call cgraph_create_node or
30377 cgraph_get_create_node instead of cgraph_node.
30378 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
30379 instead of cgraph_node.
30380 (record_eh_tables): Likewise.
30381 (mark_address): Likewise.
30382 (mark_load): Likewise.
30383 (build_cgraph_edges): Call cgraph_get_create_node instead
30385 (rebuild_cgraph_edges): Likewise.
30386 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
30387 instead of cgraph_node.
30388 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
30390 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
30391 cgraph_create_node instead of cgraph_node.
30392 * c-decl.c (finish_function): Call cgraph_get_create_node instead
30394 * lto-cgraph.c (input_node): Likewise.
30395 * lto-streamer-in.c (input_function): Likewise.
30396 * varasm.c (mark_decl_referenced): Likewise.
30397 (assemble_alias): Likewise.
30399 2011-04-12 Martin Jambor <mjambor@suse.cz>
30401 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
30402 instead of cgraph_node and assert it does not return NULL.
30403 * lto-streamer-in.c (lto_read_body): Likewise.
30404 * omp-low.c (new_omp_context): Likewise.
30405 (create_task_copyfn): Likewise.
30406 * tree-emutls.c (lower_emutls_function_body): Likewise.
30407 * matrix-reorg.c (transform_allocation_sites): Likewise.
30409 2011-04-12 Jakub Jelinek <jakub@redhat.com>
30412 * c-typeck.c (build_asm_expr): Error out on attempts to use
30413 void type outputs or inputs for constraints that allow reg or
30414 don't allow memory.
30416 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
30417 Richard Earnshaw <rearnsha@arm.com>
30420 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
30421 to use sign-magnitude offsets. Reject unsupported unaligned
30422 cases. Add detailed description in comments.
30423 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
30424 condition from TARGET_32BIT to TARGET_ARM.
30426 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
30428 * tree.h (struct typed_tree): New.
30429 (struct tree_common): Include it instead of tree_base.
30430 (TREE_TYPE): Update for new location of type field.
30431 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
30432 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
30433 (union tree_node): Add typed field.
30434 * treestruct.def (TS_TYPED): New.
30435 * lto-streamer.c (check_handled_ts_structures): Handle it.
30436 * tree.c (MARK_TS_TYPED): New macro.
30437 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
30439 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
30441 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
30442 (force_nonfallthru): Do not alter the loop nest if no basic block
30445 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
30447 * config/i386/sse.md (VI): New mode iterator.
30448 (SSEMODEI): Remove.
30449 (AVX256MODEI): Ditto.
30450 (AVXMODEF4P): Ditto.
30451 (avxvecpsmode): Ditto.
30452 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
30453 (sse2_andnot<mode>3): New expander.
30454 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
30455 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
30456 (<any_logic:code><mode>3): Use VI mode iterator.
30457 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
30458 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
30459 (*andnottf3): Handle AVX three-operand constraints.
30460 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
30462 2011-04-11 Joseph Myers <joseph@codesourcery.com>
30463 Robert Millan <rmh@gnu.org>
30465 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
30466 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
30467 GNU_USER_DYNAMIC_LINKER64): Define.
30468 (REG_NAME): Don't undefine.
30469 (MD_UNWIND_SUPPORT): Undefine.
30470 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
30471 (REG_NAME): Don't undefine.
30472 (MD_UNWIND_SUPPORT): Undefine.
30473 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
30475 2011-04-11 Joseph Myers <joseph@codesourcery.com>
30477 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
30478 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
30480 2011-04-11 Xinliang David Li <davidxl@google.com>
30482 * value-profile.c (check_ic_target): New function.
30483 (gimple_ic_transform): Sanity check indirect call target.
30484 * gimple-low.c (gimple_check_call_args): Interface change.
30485 (gimple_check_call_matching_types): New function.
30486 * tree-inline.c (tree_can_inline_p): Call new function.
30488 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
30490 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
30491 tree-pretty-print.h & realmpfr.h.
30493 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
30495 PR middle-end/48464
30496 * ira.c (setup_pressure_classes): Fix typo in loop condition.
30497 (setup_allocno_and_important_classes): Ditto.
30499 2011-04-11 Joseph Myers <joseph@codesourcery.com>
30501 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
30502 GNU_USER_DYNAMIC_LINKER.
30503 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
30504 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30505 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
30506 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
30507 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
30508 GNU_USER_TARGET_OS_CPP_BUILTINS.
30509 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
30510 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30511 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
30512 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30513 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
30514 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
30515 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
30516 GNU_USER_TARGET_OS_CPP_BUILTINS.
30517 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
30518 GNU_USER_DYNAMIC_LINKER.
30519 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
30520 GNU_USER_TARGET_OS_CPP_BUILTINS.
30521 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
30522 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30523 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
30524 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30525 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
30526 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
30527 GNU_USER_DYNAMIC_LINKER64): Remove.
30528 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
30529 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30530 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
30531 GNU_USER_DYNAMIC_LINKER.
30532 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
30533 GNU_USER_TARGET_OS_CPP_BUILTINS.
30534 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
30535 GNU_USER_TARGET_OS_CPP_BUILTINS.
30536 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
30537 to GNU_USER_TARGET_OS_CPP_BUILTINS.
30538 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
30539 GNU_USER_TARGET_OS_CPP_BUILTINS.
30540 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
30541 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
30542 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
30543 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
30544 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30545 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
30546 GNU_USER_DYNAMIC_LINKER.
30547 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
30548 GNU_USER_TARGET_OS_CPP_BUILTINS.
30549 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
30550 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30551 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
30552 GNU_USER_DYNAMIC_LINKER.
30553 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
30554 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30555 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
30556 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30557 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
30558 GNU_USER_DYNAMIC_LINKER.
30559 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
30560 GNU_USER_DYNAMIC_LINKERN32.
30561 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
30562 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
30563 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
30564 GNU_USER_DYNAMIC_LINKER32.
30565 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
30566 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30567 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
30568 GNU_USER_DYNAMIC_LINKER.
30569 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
30570 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30571 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
30572 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30573 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
30574 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
30575 GNU_USER_DYNAMIC_LINKER32.
30576 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
30577 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
30578 GNU_USER_DYNAMIC_LINKER.
30579 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
30580 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30581 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
30582 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
30583 GNU_USER_DYNAMIC_LINKER64.
30584 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
30585 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30586 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
30587 GNU_USER_DYNAMIC_LINKER.
30588 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
30589 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30590 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
30591 GNU_USER_DYNAMIC_LINKER.
30592 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
30593 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30594 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
30595 GNU_USER_DYNAMIC_LINKER32.
30596 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
30597 GNU_USER_DYNAMIC_LINKER64.
30598 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
30599 GNU_USER_DYNAMIC_LINKER64.
30600 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
30601 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30602 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
30603 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30604 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
30606 2011-04-11 Joseph Myers <joseph@codesourcery.com>
30608 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
30609 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
30610 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
30611 GNU_USER_DYNAMIC_LINKER.
30612 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
30613 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
30614 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
30615 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
30616 GNU_USER_DYNAMIC_LINKER64.
30617 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
30618 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
30619 GNU_USER_LINK_EMULATION.
30620 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
30621 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
30622 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
30623 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
30624 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
30625 CPP_SPEC, CC1_SPEC): Remove.
30626 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
30627 (GNU_USER_DYNAMIC_LINKER): Define.
30628 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
30629 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
30630 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
30631 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
30632 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
30633 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
30634 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
30635 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
30636 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
30637 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
30638 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
30639 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
30640 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
30641 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
30642 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
30643 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
30644 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
30645 GNU_USER_DYNAMIC_LINKER.
30646 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
30647 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
30648 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
30649 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
30650 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
30651 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
30652 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
30653 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
30654 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
30655 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
30657 2011-04-11 Kai Tietz <ktietz@redhat.com>
30661 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
30662 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
30664 (ix86_is_msabi_thiscall): Removed.
30665 (ix86_is_type_thiscall): Likewise.
30666 (ix86_get_callcvt): New function.
30667 (ix86_comp_type_attributes): Simplify check.
30668 (ix86_function_regparm): Use ix86_get_callcvt for calling
30669 convention attribute checks.
30670 (ix86_return_pops_args): Likewise.
30671 (ix86_static_chain): Likewise.
30672 (x86_this_parameter): Likewise.
30673 (x86_output_mi_thunk): Likewise.
30674 (ix86_function_type_abi): Optimize check for types without attributes.
30675 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
30676 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
30677 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
30679 (IX86_BASE_CALLCVT): Helper macro.
30680 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
30681 Use ix86_get_callcvt for calling convention attribute checks and avoid
30682 symbol-decoration for stdcall in TARGET_RTD case.
30683 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
30685 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
30688 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
30690 * config/i386/sse.md (VI_128): New mode iterator.
30691 (VI12_128): Rename from SSEMODE12.
30692 (VI14_128): Rename from SSEMODE14.
30693 (VI124_128): New mode iterator.
30694 (VI24_128): Rename from SSEMODE248.
30695 (VI248_128): Rename from SSEMODE248.
30696 (SSEMODE124C8): Remove.
30697 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
30698 (*sse2_<plusminus_insn><mode>3): Merge with
30699 *avx_<plusminus_insn><mode>3.
30700 (*mulv8hi3): Merge with *avx_mulv8hi3.
30701 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
30702 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
30703 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
30704 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
30705 (ashr<mode>3): Merge with *avx_ashr<mode>3.
30706 (lshr<mode>3): Merge with *avx_lshr<mode>3.
30707 (ashl<mode>3): Merge with *avx_ashl<mode>3.
30708 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
30709 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
30710 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
30711 (*<smaxmin:code>v8hi3): Ditto.
30712 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
30713 (*<smaxmin:code>v16qi3): Ditto.
30714 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
30715 (*sse2_eq<mode>3): Ditto.
30716 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
30717 (*sse2_gt<mode>3): Ditto.
30718 (vcondv2di): Split out of vcond<mode>.
30719 (vconduv2di): Split out of vcondu<mode>.
30721 2011-04-11 Richard Guenther <rguenther@suse.de>
30723 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
30724 before calling tree_low_cst.
30726 2011-04-11 Richard Guenther <rguenther@suse.de>
30728 * stor-layout.c (layout_type): Compute all array index size operations
30729 in the original type.
30730 (initialize_sizetypes): Add comment.
30731 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
30733 2011-04-11 Joseph Myers <joseph@codesourcery.com>
30735 * common.opt (Tbss=, Tdata=, Ttext=): New options.
30737 2011-04-11 Martin Jambor <mjambor@suse.cz>
30739 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
30740 of cgraph_node, handle NULL return value.
30741 (cgraph_global_info): Likewise.
30742 (cgraph_rtl_info): Likewise.
30743 * tree-inline.c (estimate_num_insns): Likewise.
30744 * gimplify.c (unshare_body): Likewise.
30745 (unvisit_body): Likewise.
30746 (gimplify_body): Likewise.
30747 * predict.c (optimize_function_for_size_p): Likewise.
30748 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
30749 (call_may_clobber_ref_p_1): Likewise.
30750 * varasm.c (function_section_1): Likewise.
30751 (assemble_start_function): Likewise.
30753 2011-04-11 Martin Jambor <mjambor@suse.cz>
30755 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
30757 * final.c (rest_of_clean_state): Likewise.
30758 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
30759 * passes.c (pass_init_dump_file): Likewise.
30760 (execute_all_ipa_transforms): Likewise.
30761 (function_called_by_processed_nodes_p): Likewise.
30762 * predict.c (maybe_hot_frequency_p): Likewise.
30763 (probably_never_executed_bb_p): Likewise.
30764 (compute_function_frequency): Likewise.
30765 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
30766 (unnest_nesting_tree_1): Likewise.
30767 (lower_nested_functions): Likewise.
30768 * tree-optimize.c (execute_fixup_cfg): Likewise.
30769 (tree_rest_of_compilation): Likewise.
30770 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
30771 * tree-sra.c (ipa_early_sra): Likewise.
30772 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
30773 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
30774 * ipa.c (record_cdtor_fn): Likewise.
30775 * ipa-inline.c (cgraph_early_inlining): Likewise.
30776 (compute_inline_parameters_for_current): Likewise.
30777 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
30778 * ipa-pure-const.c (local_pure_const): Likewise.
30779 * ipa-split.c (split_function): Likewise.
30780 (execute_split_functions): Likewise.
30781 * cgraphbuild.c (build_cgraph_edges): Likewise.
30782 (rebuild_cgraph_edges): Likewise.
30783 (cgraph_rebuild_references): Likewise.
30784 (remove_cgraph_callee_edges): Likewise.
30785 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
30786 (verify_cgraph_node): Likewise.
30787 (cgraph_analyze_functions): Likewise.
30788 (cgraph_preserve_function_body_p): Likewise.
30789 (save_inline_function_body): Likewise.
30790 (save_inline_function_body): Likewise.
30791 * tree-inline.c (copy_bb): Likewise.
30792 (optimize_inline_calls): Likewise.
30794 2011-04-11 Martin Jambor <mjambor@suse.cz>
30796 PR tree-optimization/48195
30797 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
30798 ipa_check_create_edge_args.
30799 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
30800 ipa_check_create_edge_args.
30801 * ipa-inline.c (inline_generate_summary): Do not call
30802 ipa_check_create_node_params and ipa_check_create_edge_args.
30803 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
30804 ipa_check_create_edge_args.
30806 2011-04-09 Anatoly Sokolov <aesok@post.ru>
30808 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
30810 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
30811 * function.c (record_hard_reg_sets): Likewise.
30812 * ira.c (compute_regs_asm_clobbered): Likewise.
30813 * sched-deps.c (sched_analyze_1): Likewise.
30814 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
30816 2011-04-09 Xinliang David Li <davidxl@google.com>
30818 PR tree-optimization/PR48484
30819 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
30820 has_valid_pred lazily
30822 2011-04-09 Duncan Sands <baldrick@free.fr>
30824 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
30826 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
30828 * combine.c (combine_validate_cost): Adjust comments. Set registered
30829 cost of I0 to zero at the end, if any.
30831 2011-04-08 Xinliang David Li <davidxl@google.com>
30833 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
30834 to insane profile data.
30836 2011-04-08 Xinliang David Li <davidxl@google.com>
30838 * ipa-cp.c (ipcp_update_profiling): Correct
30839 negative scale factor due to insane profile data.
30841 2011-04-08 Xinliang David Li <davidxl@google.com>
30843 * final.c (dump_basic_block_info): New function.
30844 (final): Dump basic block.
30845 (final_scan_insn): Remove old dump.
30847 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
30850 * config.gcc (i386-*-freebsd): Disable unwind table generation for
30853 2011-04-08 Michael Matz <matz@suse.de>
30855 PR middle-end/48389
30856 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
30858 (rebuild_jump_labels): Call rebuild_jump_labels_1.
30859 * rtl.h (rebuild_jump_labels_chain): Declare.
30860 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
30861 insns inserted on edges.
30863 2011-04-08 Joseph Myers <joseph@codesourcery.com>
30865 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
30866 * config/arm/arm-arches.def: New.
30867 * config/arm/arm-opts.h: New.
30868 * config/arm/genopt.sh: New.
30869 * config/arm/arm-tables.opt: New (generated).
30870 * config/arm/arm.c (arm_handle_option, arm_target_help,
30871 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
30872 (all_architectures): Get most table contents from arm-arches.def.
30873 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
30874 arm_selected_tune here.
30875 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
30876 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
30877 (march=, mcpu=, mtune=): Use Enum and Var.
30878 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
30879 (arm.o): Update dependencies.
30881 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
30883 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
30885 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
30886 (write_typed_alloc_defns): Likewise.
30887 (main): Calls write_typed_alloc_defns with output_header.
30889 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
30891 PR inline-asm/48435
30892 * ira-color.c (setup_profitable_hard_regs): Add comments.
30893 Don't take prohibited hard regs into account.
30894 (setup_conflict_profitable_regs): Rename to
30895 get_conflict_profitable_regs.
30896 (check_hard_reg_p): Check prohibited hard regs.
30898 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
30900 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
30901 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
30902 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
30904 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30907 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
30908 move from floating point to shift amount register.
30909 (emit_move_sequence): Remove secondary reload support for floating
30910 point to shift amount amount register copies.
30911 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
30912 amount register copies.
30913 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
30914 register, return false if mode isn't a scalar integer mode.
30915 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
30917 2011-04-08 Richard Guenther <rguenther@suse.de>
30919 * gimple.c (gimple_call_flags): Remove kludge.
30921 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
30923 * sel-sched.c (sel_region_init): Move call to
30924 sel_setup_region_sched_flags after setup_current_loop_nest.
30926 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
30928 PR rtl-optimization/48272
30929 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
30930 init_insn_reg_pressure_info. Adjust a caller.
30931 * sched-int.h (init_insn_reg_pressure_info): Declare.
30932 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
30933 when sched-pressure is enabled.
30935 2011-04-08 Richard Guenther <rguenther@suse.de>
30937 * gimple.c (gimple_set_modified): Do not queue calls to
30938 MODIFIED_NORETURN_CALLS here ...
30939 * tree-ssa-operands.c (update_stmt_operands): ... but here.
30941 2011-04-08 Richard Guenther <rguenther@suse.de>
30944 * toplev.c (lang_dependent_init): Do not open asm_out_file
30945 in WPA mode, nor perform debug machinery initialization.
30946 (finalize): Do not unlink asm_out_file in WPA mode.
30948 2011-04-08 Richard Guenther <rguenther@suse.de>
30950 * gimple.h (gimple_call_fntype): New function.
30951 (gimple_call_return_type): Use it.
30952 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
30953 * gimple-low.c (gimple_check_call_args): Likewise.
30954 * gimple.c (gimple_call_flags): Likewise.
30955 (gimple_call_arg_flags): Likewise.
30956 (gimple_call_return_flags): Likewise.
30957 * tree-cfg.c (verify_gimple_call): Likewise.
30958 (do_warn_unused_result): Likewise.
30959 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
30960 * value-prof.c (gimple_ic_transform): Fix fndecl check.
30962 2011-04-08 Dmitry Melnik <dm@ispras.ru>
30964 PR rtl-optimization/48235
30965 * sel-sched.c (code_motion_process_successors): Recompute the last
30966 insn in basic block if control flow changed.
30967 (code_motion_path_driver): Ditto. Recompute the first insn as well.
30968 Update condition for ilist_remove.
30970 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
30972 PR rtl-optimization/48302
30973 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
30974 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
30975 it to record added preheader blocks.
30976 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
30977 on to sel_add_loop_preheaders.
30978 (sel_region_init): Move call to setup_current_loop_nest after
30981 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
30984 * cfgloop.h (loop_has_exit_edges): New helper.
30985 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
30987 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
30988 that have no exit edges.
30990 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
30992 PR rtl-optimization/48442
30993 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
30994 all callers. Adjust assert.
30996 2011-04-08 Jakub Jelinek <jakub@redhat.com>
30998 PR tree-optimization/48377
30999 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
31000 is_packed to true even for types with smaller TYPE_ALIGN than
31003 2011-04-08 Richard Guenther <rguenther@suse.de>
31006 * doc/tm.texi: Re-generate.
31008 2011-04-08 Wei Guozhi <carrot@google.com>
31011 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
31012 * config/arm/arm.c (arm_attr_length_push_multi): New function.
31013 * config/arm/arm.md (*push_multi): Change the length computation to
31016 2011-04-08 Anatoly Sokolov <aesok@post.ru>
31018 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
31019 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
31020 * doc/tm.texi: Regenerate.
31021 * system.h (ASM_OUTPUT_BSS): Poison.
31022 * varasm.c (asm_output_bss): Remove function.
31023 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
31025 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
31026 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
31027 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
31028 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
31030 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
31032 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
31034 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
31036 2011-04-07 Joseph Myers <joseph@codesourcery.com>
31038 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
31041 2011-04-07 Joseph Myers <joseph@codesourcery.com>
31043 * config/m68k/m68k.c (m68k_handle_option): Don't handle
31044 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
31045 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
31047 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
31048 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
31049 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
31050 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
31051 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
31052 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
31053 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
31054 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
31055 options. Don't map other m68k options manually. Don't handle
31056 old-style options as canonical.
31057 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
31058 * doc/install.texi (m68k-*-*): Document binutils version requirement.
31060 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
31062 * basic-block.h (force_nonfallthru): Move to...
31063 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
31064 (force_nonfallthru): ...here.
31065 * cfghooks.c (force_nonfallthru): New function.
31066 * cfgrtl.c (force_nonfallthru): Rename into...
31067 (rtl_force_nonfallthru): ...this.
31068 (commit_one_edge_insertion): Do not set AUX field.
31069 (commit_edge_insertions): Do not discover new basic blocks.
31070 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
31071 (cfg_layout_rtl_cfg_hooks): Likewise.
31072 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
31073 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
31074 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
31076 2011-04-07 Anatoly Sokolov <aesok@post.ru>
31078 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
31081 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
31083 * config/i386/sse.md: Update copyright year.
31084 (avxcvtvecmode): Remove.
31085 (sse_movhlps): Merge with *avx_movhlps.
31086 (sse_movlhps): Merge with *avx_movlhps.
31087 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
31088 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
31089 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
31090 (sse_loadhps): Merge with *avx_loadhps.
31091 (sse_storelps): Merge with *avx_storelps.
31092 (sse_loadlps): Merge with *avx_loadlps.
31093 (sse_movss): Merge with *avx_movss.
31094 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
31095 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
31096 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
31097 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
31098 (vec_set<mode>_0): Ditto.
31099 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
31100 (sse4_1_insertps): Merge with *avx_insertps.
31101 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
31102 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
31103 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
31104 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
31105 (sse2_storehpd): Merge with *avx_storehpd.
31106 (sse2_loadhpd): Merge with *avx_loadhpd.
31107 (sse2_loadlpd): Merge with *avx_loadlpd.
31108 (sse2_movsd): Merge with *avx_movsd.
31109 (*vec_concatv2df): Merge with *vec_concatv2df.
31111 2011-04-07 Jakub Jelinek <jakub@redhat.com>
31114 * combine.c (combine_instructions): Add last_combined_insn,
31115 update it if insn is after it, pass it to all try_combine calls.
31116 (try_combine): Add last_combined_insn parameter, pass it instead of
31117 i3 to propagate_for_debug.
31119 2011-04-07 Nick Clifton <nickc@redhat.com>
31121 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
31122 to handle MDR <-> data register transfers.
31123 (movhi_internal): Likewise.
31125 2011-04-07 Alan Modra <amodra@gmail.com>
31127 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
31128 previous stack info.
31130 2011-04-07 Tom de Vries <tom@codesourcery.com>
31133 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
31134 flow_find_cross_jump. Swap variables to implement backward replacement.
31135 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
31137 2011-04-07 Tom de Vries <tom@codesourcery.com>
31140 * cfgcleanup.c (walk_to_nondebug_insn): New function.
31141 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
31143 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
31144 src1 or src2. Redirect edges to the last basic block. Update
31145 frequency and count on multiple basic blocks in case of fallthru.
31147 2011-04-07 Tom de Vries <tom@codesourcery.com>
31150 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
31152 (old_insns_match_p): Change return type. Replace return false/true
31153 with return dir_none/dir_both. Use can_replace_by.
31154 (flow_find_cross_jump): Add dir_p parameter. Init replacement
31155 direction from dir_p. Register replacement direction in dir, last_dir
31156 and afterlast_dir. Handle new return type of old_insns_match_p using
31157 merge_dir. Return replacement direction in dir_p.
31158 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
31159 return type of old_insns_match_p.
31160 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
31161 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
31162 flow_find_cross_jump.
31163 * basic-block.h (enum replace_direction): New type.
31164 (flow_find_cross_jump): Add parameter to declaration.
31166 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
31168 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
31169 (AVXMODEDCVTPS2DQ): Ditto.
31170 (VEC_FLOAT_MODE): Ditto.
31171 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
31172 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
31173 (<any_logic:code><mode>3): Use VF mode iterator.
31174 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
31175 Use VF mode iterator.
31176 (copysign<mode>3): Use VF mode iterator.
31177 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
31178 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
31179 (*<any_logic:code><MODEF:mode>3): Merge with
31180 *avx_<any_logic:code><MODEF:mode>3.
31181 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
31182 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
31183 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
31184 (avx_cvtdq2ps<avxmodesuffix>): Remove.
31185 (sse2_cvtdq2ps): Use %v modifier.
31186 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
31187 (avx_cvtps2dq<avxmodesuffix>): Remove.
31188 (sse2_cvtps2dq): Use %v modifier.
31189 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
31190 (avx_cvttps2dq<avxmodesuffix>): Remove.
31191 (sse2_cvttps2dq): Use %v modifier.
31192 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
31193 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
31194 (sse2_cvtsd2siq): Fix insn template.
31195 (sse2_cvtsd2siq_2): Ditto.
31196 (sse2_cvttsd2siq): Ditto.
31197 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
31198 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
31200 2011-04-06 Joseph Myers <joseph@codesourcery.com>
31202 * gcov-io.c: Use GCC Runtime Library Exception.
31204 2011-04-06 Jakub Jelinek <jakub@redhat.com>
31207 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
31208 as base_reg whatever register reg has been eliminated to, instead
31209 of hardcoding STACK_POINTER_REGNUM.
31211 2011-04-06 Joseph Myers <joseph@codesourcery.com>
31213 * doc/tm.texi.in: Document C target hooks as separate from general
31215 * doc/tm.texi: Regenerate.
31216 * genhooks.c (struct hook_desc): Add docname field.
31217 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
31219 (hook_array): Include c-target.def.
31220 (emit_documentation): Use docname field in output.
31221 (emit_init_macros): Take docname argument. Only emit definitions
31222 for hooks matching docname.
31223 (main): Expect additional arguments in all cases. Pass argument
31224 to emit_init_macros.
31225 * target.def: Move initial macro definitions and comments to
31226 target-hooks-macros.h.
31227 (gcc_targetcm): Move to c-family/c-target.def.
31228 * target.h (targetcm): Move declaration to c-family/c-target.h.
31229 * targhooks.c (default_handle_c_option): Move to
31231 * targhooks.h (default_handle_c_option): Move declaration to
31232 c-family/c-common.h.
31233 * target-hooks-macros.h: New file.
31234 * config.gcc (target_has_targetcm): Define and use to add to
31235 c_target_objs and cxx_target_objs.
31236 * config/default-c.c: New file.
31237 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
31238 of target.h and target-def.h.
31239 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
31240 (darwin_objc_construct_string, darwin_cfstring_ref_p,
31241 darwin_check_cfstring_format_arg): Make static.
31242 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
31243 TARGET_STRING_OBJECT_REF_TYPE_P,
31244 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
31245 * config/darwin-protos.h (darwin_objc_construct_string,
31246 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
31248 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
31249 TARGET_STRING_OBJECT_REF_TYPE_P,
31250 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
31251 * config/t-darwin (darwin-c.o): Update dependencies.
31252 * system.h (TARGET_HAS_TARGETCM): Poison.
31253 * Makefile.in (TARGET_H): Update.
31254 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
31255 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
31256 (default-c.o): New target.
31257 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
31258 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
31259 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
31261 (build/genhooks.o): Update dependencies.
31263 2011-04-06 Richard Guenther <rguenther@suse.de>
31265 * ipa-inline.c (enum inlining_mode): Remove.
31266 (cgraph_flatten): Use some other token.
31267 (cgraph_edge_early_inlinable_p): New function, split out from ...
31268 (cgraph_perform_always_inlining): New function, split out from ...
31269 (cgraph_decide_inlining_incrementally): ... here.
31270 (cgraph_mark_inline_edge): Adjust.
31271 (cgraph_early_inlining): Re-structure.
31272 (pass_early_inline): Require SSA form.
31274 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
31275 Julian Brown <julian@codesourcery.com>
31276 Mark Shinwell <shinwell@codesourcery.com>
31278 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
31279 LO_REGS only for Thumb-1.
31280 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
31281 be used in short instructions when optimising for size on Thumb-2.
31283 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
31285 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
31286 associated with user returns to be preserved.
31288 2011-04-06 Tristan Gingold <gingold@adacore.com>
31290 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
31291 symbol_queue_size, DBXOUT_DECR_NESTING,
31292 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
31293 if XCOFF_DEBUGGING_INFO.
31295 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
31297 * config/i386/i386.md (attribute isa): New.
31298 (attribute enabled): New.
31299 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
31300 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
31301 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
31302 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
31303 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
31304 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
31305 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
31306 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
31308 * config/i386/sse.md (VF): New mode iterator.
31312 (SSEMODEF4): Remove.
31313 (attribute sse): Handle V8SF and V4DF modes.
31314 (<absneg:code><mode>2): Use VF mode iterator.
31315 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
31317 (<plusminus_insn><mode>3): Use VF mode iterator.
31318 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
31319 Use VF mode iterator.
31320 (<sse>_vm<plusminus_insn><mode>3): Merge with
31321 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
31322 (mul<mode>3): Use VF mode iterator.
31323 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
31324 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
31326 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
31327 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
31328 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
31329 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
31331 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
31332 Use VF1 mode iterator.
31333 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
31334 (sqrt<VF2:mode>2): New expander.
31335 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
31336 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
31337 and sqrtv2df2. Use VF mode iterator.
31338 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
31340 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
31341 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
31342 Use VF1 mode iterator.
31343 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
31344 (<smaxmin:code><mode>3): Use VF mode iterator.
31345 (*<smaxmin:code><mode>3_finite): Merge with
31346 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
31347 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
31348 (<sse>_vm<smaxmin:code><mode>2): Merge with
31349 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
31350 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
31352 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
31354 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
31355 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
31356 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
31357 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
31358 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
31360 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
31361 Use VF_128 mode iterator.
31362 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
31364 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
31365 VF_128 mode iterator.
31366 (vcond<mode>): Use VF mode iterator.
31367 * config/i386/predicates.md (sse_comparison_operator): Merge with
31368 avx_comparison_float_operator. Do not declare as special_predicate.
31369 * config/i386/i386.c (struct builtin_description): Update for renamed
31371 (ix86_expand_args_builtin): Ditto.
31372 (ix86_expand_sse_compare_mask): Ditto.
31374 2011-04-06 Richard Guenther <rguenther@suse.de>
31376 * tree-inline.c (estimate_num_insns): For calls simply account
31377 for all passed arguments and a used return value.
31379 2011-04-06 Richard Guenther <rguenther@suse.de>
31381 PR tree-optimization/47663
31382 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
31383 call_stmt_time fields.
31384 (cgraph_edge_inlinable_p): Declare.
31385 (cgraph_edge_recursive_p): New inline function.
31386 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
31387 (cgraph_clone_edge): Copy it.
31388 * ipa-inline.c (cgraph_estimate_edge_time): New function.
31389 Account for call stmt time.
31390 (cgraph_estimate_time_after_inlining): Take edge argument.
31391 (cgraph_estimate_edge_growth): Account call stmt size.
31392 (cgraph_estimate_size_after_inlining): Take edge argument.
31393 (cgraph_mark_inline_edge): Adjust.
31394 (cgraph_check_inline_limits): Likewise.
31395 (cgraph_recursive_inlining_p): Remove.
31396 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
31397 (cgraph_decide_recursive_inlining): Take edge argument and
31399 (cgraph_decide_inlining_of_small_functions): Do not avoid
31400 diags for recursive inlining here.
31401 (cgraph_flatten): Adjust.
31402 (cgraph_decide_inlining_incrementally): Likewise.
31403 (estimate_function_body_sizes): Remove call cost handling.
31404 (compute_inline_parameters): Initialize caller edge call costs.
31405 (cgraph_estimate_edge_growth): New function.
31406 (cgraph_estimate_growth): Use it.
31407 (cgraph_edge_badness): Likewise.
31408 (cgraph_check_inline_limits): Take an edge argument.
31409 (cgraph_decide_inlining_of_small_functions): Adjust.
31410 (cgraph_decide_inlining): Likewise.
31411 * tree-inline.c (estimate_num_insns): Only account for call
31412 return value if it is used.
31413 (expand_call_inline): Avoid diagnostics on recursive inline
31415 * lto-cgraph.c (lto_output_edge): Output edge call costs.
31416 (input_edge): Input edge call costs.
31418 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31420 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
31422 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
31424 * doc/invoke.texi (Spec Files): Fix typo.
31426 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
31428 * profile.c (branch_prob): Move declaration of local variable. Remove
31429 obsolete ??? comment. Expand the location explicitly instead of using
31430 the LOCATION_FILE and LOCATION_LINE macros.
31432 2011-04-06 Wei Guozhi <carrot@google.com>
31435 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
31436 (arm_cond_branch): Likewise.
31437 (arm_cond_branch_reversed): Likewise.
31438 (arm_jump): Likewise.
31439 (push_multi): Likewise.
31440 * config/arm/constraints.md (Py): New constraint.
31442 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
31445 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
31447 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
31448 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
31449 #ifdef DBX_DEBUGGING_INFO.
31451 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
31454 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
31455 if old and new states differ.
31457 2011-04-05 Joseph Myers <joseph@codesourcery.com>
31459 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
31460 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
31461 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
31462 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
31463 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
31464 mcfv4e): Use Alias.
31465 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
31466 ColdFire options to -mcpu= options.
31468 2011-04-05 Jeff Law <law@redhat.com>
31470 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
31471 check if BB is a successor of LOOP->header and return
31472 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
31474 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
31476 * cprop.c (struct reg_use): Remove.
31477 (reg_use_table): Make an array of RTX.
31478 (find_used_regs, constprop_register, local_cprop_pass,
31479 bypass_block): Simplify users of reg_use_table.
31480 (cprop_insn): Likewise. Iterate if copy propagation succeeded
31481 on one of the uses found by find_used_regs.
31483 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
31486 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
31489 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
31491 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
31493 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
31495 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
31497 PR middle-end/48441
31498 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
31500 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
31502 * combine.c: Include obstack.h.
31503 (struct insn_link): Define.
31504 (uid_log_links): Adjust type.
31505 (FOR_EACH_LOG_LINK): New macro.
31506 (insn_link_obstack): Declare.
31507 (alloc_insn_link): Define.
31508 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
31509 type of link variables.
31510 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
31511 (try_combine, record_promoted_values, distribute_notes): Likewise.
31512 (distribute_links): Likewise. Tweak prototype.
31513 (clear_log_links): Delete.
31514 (adjust_for_new_dest): Call alloc_insn_link.
31515 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
31517 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
31519 * gcse.c (modify_mem_list): Convert to an array of VECs.
31520 (canon_modify_mem_list, compute_transp): Tweak formatting.
31521 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
31522 (load_killed_in_block_p): Likewise.
31523 (record_last_mem_set_info): Likewise.
31524 (clear_modify_mem_tables): Likewise.
31526 2011-04-05 Tom de Vries <tom@codesourcery.com>
31528 PR middle-end/48461
31529 * function.c (emit_use_return_register_into_block): Only define if
31532 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
31534 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
31536 2011-04-05 Joseph Myers <joseph@codesourcery.com>
31538 * config/rx/rx-opts.h: New.
31539 * config/rx/rx.c (rx_cpu_type): Remove.
31540 (rx_handle_option): Don't assert that global structures are in
31541 use. Access variables via opts pointer. Defer most handling of
31542 OPT_mint_register_. Use error_at.
31543 (rx_option_override): Handle deferred OPT_mint_register_ here.
31544 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
31545 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
31546 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
31547 (rx_cpu_types): New Enum and EnumValue entries.
31548 (mint-register=): Use Defer and use Var accordingly.
31550 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
31552 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
31553 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
31554 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
31556 (debug_free_queue, debug_nesting, symbol_queue_index):
31558 * dbxout.c: ...to here. Make static.
31560 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
31562 * gcse.c (modify_pair): Define. Define a VEC of it.
31563 (canon_modify_mem_list): Convert to an array of VECs.
31564 (free_insn_expr_list_list): Delete.
31565 (clear_modify_mem_tables): Call VEC_free instead.
31566 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
31567 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
31568 (canon_list_insert, compute_transp): Likewise.
31570 2011-04-05 Tom de Vries <tom@codesourcery.com>
31573 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
31576 2011-04-05 Tom de Vries <tom@codesourcery.com>
31579 * function.c (emit_use_return_register_into_block): New function.
31580 (thread_prologue_and_epilogue_insns): Use
31581 emit_use_return_register_into_block.
31583 2011-04-05 Tom de Vries <tom@codesourcery.com>
31586 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
31589 2011-04-05 Tom de Vries <tom@codesourcery.com>
31591 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
31593 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
31595 * config/arm/arm.md (define_constants for unspec): Replace with
31597 (define_constants for unspecv): Replace with define_c_enum.
31598 * config/arm/neon.md (define_constants for unspec): Replace with
31601 2011-04-04 Richard Henderson <rth@redhat.com>
31604 * dwarf2out.c (output_line_info): Always emit line info from
31605 at least one section.
31606 (dwarf2out_init): Create text_section_line_info here ...
31607 (set_cur_line_info_table): ... not here.
31609 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
31612 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
31615 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
31617 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
31619 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
31620 (expr_equiv_p): Remove.
31621 (insert_set_in_table): Look at <dest, src> pair instead of expr.
31622 (hash_scan_set): Update call to insert_set_in_table.
31623 (dump_hash_table): Dump <dest, src> pair.
31624 (lookup_set): Simplify. Lookup <dest, src> pair.
31625 (compute_transp): Remove, fold heavily simplified code into...
31626 (compute_local_properties): ...here. Expect COMP and TRANSP
31628 (find_avail_set): Take set directly from struct expr.
31629 (find_bypass-set): Likewise.
31630 (bypass_block): Likewise.
31631 (cprop_insn): Likewise. Remove redundant INSN_P test.
31633 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
31634 checks on form of COND from find_implicit_sets to here.
31635 (find_implicit_sets): Cleanup control flow. Split critical edges
31636 if it exposes implicit sets. Allocate/resize implicit_sets as
31638 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
31639 changed something. Run df_analyze after find_implicit_sets if any
31640 edges were split. Do not allocate implicit_sets here.
31642 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
31643 (gcse_obstack): Renamed to cprop_obstack.
31644 (GNEW, GNEWVEC, GNEWVAR): Remove.
31646 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
31647 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
31648 (gcse_alloc): Likewise, and rename to cprop_alloc.
31649 (alloc_gcse_men, free_gcse_mem): Remove.
31650 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
31651 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
31652 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
31654 * cprop.c (oprs_not_set_p): Remove.
31655 (mark_set, mark_clobber): Remove.
31656 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
31657 (reg_not_set_p): New function.
31658 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
31659 (cprop_insn): Likewise.
31660 (cprop_jump): Use FOR_EACH_EDGE.
31662 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
31665 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
31666 (rank_for_schedule): Use scheduled_insns vector instead of
31667 last_scheduled_insn.
31668 (ok_for_early_queue_removal): Likewise.
31669 (queue_to_ready): Search forward in nonscheduled_insns_begin if
31671 (choose_ready): Likewise.
31672 (commit_schedule): Use VEC_iterate.
31673 (schedule_block): Initialize nonscheduled_insns_begin. If we have
31674 a dbg_cnt, use it and ensure the first insn is in the ready list.
31675 (haifa_sched_init): Allocate scheduled_insns.
31676 (sched_extend_ready_list): Don't allocate it; reserve space.
31677 (haifa_sched_finish): Free it.
31679 2011-04-04 Joseph Myers <joseph@codesourcery.com>
31681 * optc-gen.awk: Always remove type from Variable entry before
31682 recording in var_seen.
31684 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
31686 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
31687 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
31688 call to tidy_fallthru_edges.
31690 2011-04-04 Joseph Myers <joseph@codesourcery.com>
31692 * doc/options.texi (ToLower): Document.
31693 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
31694 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
31695 * opts.h (cl_option): Add cl_tolower field.
31696 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
31697 arguments with lowercase strings.
31698 * config/rx/rx.opt (mcpu=): Add ToLower.
31699 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
31702 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
31704 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
31706 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
31708 * config/vax/vax.c: Include reload.h.
31710 2011-04-04 Anatoly Sokolov <aesok@post.ru>
31712 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
31713 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
31714 (sparc_preferred_reload_class): New function.
31716 2011-04-04 Jakub Jelinek <jakub@redhat.com>
31719 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
31720 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
31722 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
31724 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
31725 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
31727 2011-04-03 Anatoly Sokolov <aesok@post.ru>
31729 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
31730 (ASM_OUTPUT_ALIGNED_BSS): Define.
31732 2011-04-03 Michael Matz <matz@suse.de>
31734 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
31735 and next_slot members.
31736 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
31737 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
31738 (lto_streamer_cache_append): Declare.
31739 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
31740 unsigned index, remove offset parameter, ensure that we append
31741 or update existing entries.
31742 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
31743 parameter, update next_slot for append.
31744 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
31746 (lto_streamer_cache_insert_at): Likewise.
31747 (lto_streamer_cache_append): New function.
31748 (lto_streamer_cache_lookup): Use unsigned index.
31749 (lto_streamer_cache_get): Likewise.
31750 (lto_record_common_node): Don't test tree_node_can_be_shared.
31751 (preload_common_node): Adjust call to lto_streamer_cache_insert.
31752 (lto_streamer_cache_delete): Don't free offsets member.
31753 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
31754 (lto_output_string_with_length): Use lto_output_data_stream.
31755 (lto_output_tree_header): Remove ix parameter, don't write it.
31756 (lto_output_builtin_tree): Likewise.
31757 (lto_write_tree): Adjust callers to above, don't track and write
31758 offset, write unsigned index.
31759 (output_unreferenced_globals): Don't emit all global vars.
31760 (write_global_references): Use unsigned indices.
31761 (lto_output_decl_state_refs): Likewise.
31762 (write_symbol): Likewise.
31763 * lto-streamer-in.c (lto_input_chain): Move earlier.
31764 (input_function): Use unsigned index.
31765 (input_alias_pairs): Don't read and then ignore all global vars.
31766 (lto_materialize_tree): Remove ix_p parameter, don't read index,
31767 don't pass it back, use lto_streamer_cache_append.
31768 (lto_register_var_decl_in_symtab): Use unsigned index.
31769 (lto_register_function_decl_in_symtab): Likewise.
31770 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
31772 (lto_get_builtin_tree): Don't read index, use
31773 lto_streamer_cache_append.
31774 (lto_read_tree): Adjust call to lto_materialize_tree.
31776 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
31777 don't use function calls in arguments to MIN.
31779 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
31782 * gimple.c (gimple_type_leader_entry): Mark deletable.
31784 2011-04-03 Alan Modra <amodra@gmail.com>
31786 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
31788 2011-04-03 Michael Matz <matz@suse.de>
31790 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
31792 * tree.h (tree_decl_non_common.vindex): Adjust comment.
31794 2011-04-03 Michael Matz <matz@suse.de>
31796 * cgraphbuild.c (record_reference): Canonicalize constructor values.
31797 * gimple-fold.c (canonicalize_constructor_val): Accept being called
31798 without function context.
31799 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
31800 current_function_decl and cfun.
31802 2011-04-03 Michael Matz <matz@suse.de>
31804 * tree.c (decl_init_priority_insert): Don't create entry for
31806 (decl_fini_priority_insert): Ditto.
31807 (fields_compatible_p, find_compatible_field): Remove.
31808 * tree.h (fields_compatible_p, find_compatible_field): Remove.
31809 * gimple.c (gimple_compare_field_offset): Adjust block comment.
31811 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
31813 * combine.c (try_combine): Remove useless local variable.
31815 2011-04-03 Richard Guenther <rguenther@suse.de>
31816 Ira Rosen <ira.rosen@linaro.org>
31818 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
31819 non-variable offsets and compare the remaining bases of the two
31820 accesses instead of looking for exact same data-ref.
31822 2011-04-02 Kai Tietz <ktietz@redhat.com>
31825 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
31827 * i386.c (ix86_is_msabi_thiscall): New helper function.
31828 (ix86_is_type_thiscall): New helper function.
31829 (ix86_comp_type_attributes): Handle thiscall for method-functions
31831 (init_cumulative_args): Likewise.
31832 (find_drap_reg): Likewise.
31833 (ix86_static_chain): Likewise.
31834 (x86_this_parameter): Likewise.
31835 (x86_output_mi_thunk): Likewise.
31837 2011-04-01 Olivier Hainque <hainque@adacore.com>
31838 Nicolas Setton <setton@adacore.com>
31839 Eric Botcazou <ebotcazou@adacore.com>
31841 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
31842 (add_gnat_descriptive_type_attribute): New function.
31843 (gen_array_type_die): Call it.
31844 (gen_enumeration_type_die): Likewise.
31845 (gen_struct_or_union_type_die): Likewise.
31846 (modified_type_die): Likewise.
31847 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
31848 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
31849 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
31851 2011-04-01 Jakub Jelinek <jakub@redhat.com>
31854 * dwarf2out.c (resolve_addr): Don't call force_decl_die
31855 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
31858 2011-03-17 Richard Guenther <rguenther@suse.de>
31861 * lto-cgraph.c (input_overwrite_node): Clear the abstract
31862 origin for decls in other ltrans units.
31863 (input_varpool_node): Likewise.
31865 2011-04-01 Jakub Jelinek <jakub@redhat.com>
31867 PR middle-end/48335
31868 * expr.c (expand_assignment): Handle all possibilities
31869 if TO_RTX is CONCAT.
31870 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
31871 (store_split_bit_field): If SUBREG_REG (op0) or
31872 op0 itself has smaller mode than word, return it
31873 for offset 0 and const0_rtx for out-of-bounds stores.
31874 If word is const0_rtx, skip it.
31876 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
31878 * config/h8300/h8300.c (print_operand_address): Rename to...
31879 (h8300_print_operand_address): ...this. Make static. Adjust comments.
31880 Call h8300_print_operand and h8300_print_operand_address instead of
31881 print_operand and print_operand_address. Declare.
31882 (print_operand): Renake to...
31883 (h8300_print_operand): ...this. Make static. Adjust comments.
31884 Call h8300_print_operand instead of print_operand. Declare.
31885 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
31886 (h8300_register_move_cost): Likewise.
31887 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
31888 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
31889 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
31890 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
31891 * config/h8300/h8300-protos.h (print_operand): Delete.
31892 (print_operand_address): Delete.
31894 2011-04-01 Richard Henderson <rth@redhat.com>
31897 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
31898 in strict mode before dwarf4. Re-order tests to early out
31899 before switching sections.
31901 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
31903 * config/h8300/constraints.md: New file.
31904 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
31905 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
31906 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
31907 * config/h8300/predicates.md (bit_operand): Likewise.
31908 (incdec_operand): Use satisfies_constraint_M and
31909 satisfies_constraint_O. Don't use C code block.
31910 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
31911 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
31912 (compute_mov_length): Use satisfies_constraint_G.
31913 (fix_bit_operand): Use satisfies_constraint_U.
31914 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
31915 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
31916 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
31917 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
31918 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
31919 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
31920 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
31921 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
31922 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
31923 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
31924 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
31925 (EXTRA_MEMORY_CONSTRAINT): Delete.
31927 2011-04-01 Andrew Pinski <pinskia@gmail.com>
31928 Michael Meissner <meissner@linux.vnet.ibm.com>
31931 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
31932 operands, as per the specifications.
31934 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
31935 (vec_extract_evenv4sf): Ditto.
31936 (vec_extract_evenv8hi): Ditto.
31937 (vec_extract_evenv16qi): Ditto.
31938 (vec_extract_oddv4si): Ditto.
31940 2011-03-31 Mark Wielaard <mjw@redhat.com>
31942 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
31943 high_pc attribute if the CU has no associated code. Only output
31944 DW_AT_entry_pc for CU if not generating strict dwarf and
31947 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
31949 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
31950 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
31952 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
31953 * final.c (final_start_function): Call the new function rather
31954 than using a NULL argument for dwarf2out_frame_debug.
31956 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
31957 that contains the prologue.
31959 * haifa-sched.c (queue_insn): New arg REASON. All callers
31960 changed. Print it in debugging output.
31962 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
31964 * sched-ebb.c (begin_schedule_ready): Remove second argument.
31965 Split most of the code into...
31966 (begin_move_insn): ... here. New function.
31967 (ebb_sched_info): Add a pointer to it.
31968 * haifa-sched.c (scheduled_insns): New static variable.
31969 (sched_extend_ready_list): Allocate it.
31970 (schedule_block): Use it to record the order of scheduled insns.
31971 Perform RTL changes to move insns only after all scheduling
31972 decisions have been made.
31973 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
31974 begin_move_insn field.
31975 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
31976 * sched-int.h (struct haifa_sched_info): Remove second argument
31977 from begin_schedule_ready hook. Add new member begin_move_insn.
31978 * sched-rgn.c (begin_schedule_ready): Remove second argument.
31979 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
31981 * haifa-sched.c (prune_ready_list): New function, broken out of
31983 (schedule_block): Use it.
31985 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31987 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
31989 2011-04-01 Kai Tietz <ktietz@redhat.com>
31991 * config.gcc (*-*-mingw*): Allow as option the
31992 posix threading model.
31993 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
31994 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
31996 (CPP_SPEC): Add pthread/no-pthread handling.
31997 (LIB_SPEC): Likewise.
31998 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
31999 (LIB_SPEC): Likewise.
32000 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
32001 flag to pass -pthread option for shared libgcc build.
32002 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
32003 for shared libgcc build.
32004 * config/i386/t-mingw-pthread: New file.
32005 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
32006 New define to enable use of library pthread by default.
32007 * config/i386/mingw.opt (pthread): New driver option.
32008 (no-pthread): New driver option.
32009 * config/i386/cygming.opt: Make sure trailing empty line is retained.
32010 * config/i386/mingw-w64.opt: Likewise.
32012 2011-04-01 Gary Funck <gary@intrepid.com>
32014 * c-decl.c (grokdeclarator): Fix formatting.
32016 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
32018 * expr.c (emit_block_move_via_movmem): Use n_generator_args
32019 instead of n_operands.
32020 (set_storage_via_setmem): Likewise.
32021 * optabs.c (maybe_gen_insn): Likewise.
32022 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
32023 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
32024 (mips_expand_builtin_direct): Likewise.
32025 * config/spu/spu.c (expand_builtin_args): Likewise.
32027 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
32029 * recog.h (insn_data_d): Add n_generator_args.
32030 * genoutput.c (data): Likewise.
32031 (output_insn_data): Print it.
32032 (max_opno, num_dups): Delete.
32033 (scan_operands): Just fill in "d->operand[...]".
32034 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
32036 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
32038 * gensupport.h (pattern_stats): New structure.
32039 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
32040 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
32041 (max_operand_1, max_operand_vec): Delete.
32042 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
32044 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
32046 * emit-rtl.c (emit_pattern_after_setloc): New function.
32047 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
32048 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
32049 (emit_pattern_after): New function.
32050 (emit_insn_after, emit_jump_insn_after): Call it.
32051 (emit_call_insn_after, emit_debug_insn_after): Likewise.
32052 (emit_pattern_before_setloc): New function.
32053 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
32054 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
32056 (emit_pattern_before): New function.
32057 (emit_insn_before, emit_jump_insn_before): Call it.
32058 (emit_call_insn_before, emit_debug_insn_before): Likewise.
32060 2011-03-31 Richard Henderson <rth@redhat.com>
32062 * dwarf2out.c (dw_separate_line_info_ref): Remove.
32063 (dw_separate_line_info_entry): Remove.
32064 (enum dw_line_info_opcode): New.
32065 (dw_line_info_entry): Use it.
32066 (dw_line_info_table, dw_line_info_table_p): New.
32067 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
32068 (line_info_table, line_info_label_num): Remove.
32069 (line_info_table_in_use): Remove.
32070 (separate_line_info_table): Remove.
32071 (separate_line_info_table_allocated): Remove.
32072 (separate_line_info_table_in_use): Remove.
32073 (LINE_INFO_TABLE_INCREMENT): Remove.
32074 (line_info_label_num): New.
32075 (cur_line_info_table): New.
32076 (text_section_line_info, cold_text_section_line_info): New.
32077 (separate_line_info): New.
32078 (SEPARATE_LINE_CODE_LABEL): Remove.
32079 (print_dwarf_line_table): Remove.
32080 (debug_dwarf): Don't dump it.
32081 (output_one_line_info_table): New.
32082 (output_line_info): Use it.
32083 (new_line_info_table): New.
32084 (set_cur_line_info_table): New.
32085 (dwarf2out_switch_text_section): Use it.
32086 (dwarf2out_begin_function): Likewise.
32087 (push_dw_line_info_entry): New.
32088 (dwarf2out_source_line): Rewrite for new line info tables.
32089 (dwarf2out_init): Remove dead initailizations.
32091 2011-03-31 Joseph Myers <joseph@codesourcery.com>
32093 * opts.h (cl_option): Add comments to fields. Add bit-fields for
32095 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
32096 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
32097 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
32098 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
32099 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
32100 * opt-functions.awk (flag_init, switch_bit_fields): New.
32101 (switch_flags): Don't handle flags moved to bit-fields. Don't
32102 generate CL_MISSING_OK or CL_SAVE.
32103 * optc-gen.awk: Update to generate bit-field output as well as
32105 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
32106 bit-field instead of CL_REJECT_DRIVER flag.
32107 * opts-common.c (generate_canonical_option,
32108 decode_cmdline_option): Use bit-fields instead of CL_* flags.
32109 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
32110 instead of CL_REJECT_NEGATIVE flag.
32111 * toplev.c (print_switch_values): Use cl_report bit-field instead
32114 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
32116 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
32117 a zero minimum index only if it is redundant.
32119 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
32121 PR rtl-optimization/48381
32122 * ira-color.c (assign_hard_reg): Use hard reg set intersection
32123 instead of ira_class_hard_reg_index for calculating conflicting
32126 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
32128 * cprop.c: Clean up hash table building.
32129 (reg_avail_info): Remove.
32130 (oprs_available_p): Remove.
32131 (record_last_reg_set_info): Remove.
32132 (record_last_set_info): Remove.
32133 (reg_available_p): New function.
32134 (gcse_constant_p): Do not treat unfolded conditions as constants.
32135 (make_set_regs_unavailable): New function.
32136 (hash_scan_set): Simplify with new reg_available_p.
32137 (compute_hash_table_work): Traverse insns stream only once.
32138 Do not compute reg_avail_info. Traverse insns in reverse order.
32139 Record implicit sets after recording explicit sets from the block.
32141 2011-03-31 Michael Matz <matz@suse.de>
32143 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
32145 2011-03-31 Anatoly Sokolov <aesok@post.ru>
32147 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
32148 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
32149 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
32150 (h8300_mode_dependent_address_p): New function.
32151 (h8300_get_index): Make static.
32153 2011-03-31 Jeff Law <law@redhat.com>
32155 * reload1.c (elimination_effects): Fix typo in recent change.
32157 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
32158 typo potentially leading to null pointer dereference.
32160 * caller-save.c (new_saved_hard_reg): Eliminate return value.
32161 (setup_save_areas): Corresponding changes to avoid useless
32164 * jump.c (reversed_comparison_code_parts): Avoid successive return
32165 statements when REVERSE_CONDITION is defined.
32167 * expr.c (expand_assignment): Avoid useless assignments.
32168 (expand_expr_real_1): Likewise.
32169 (expand_expr_real_2): Avoid useless statements.
32171 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
32173 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
32175 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
32178 * stmt.c (expand_expr_stmt): Avoid useless assignment.
32180 2011-03-31 Joseph Myers <joseph@codesourcery.com>
32183 * doc/tm.texi.in (TARGET_VERSION): Remove.
32184 * doc/tm.texi: Regenerate.
32185 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
32186 * collect2.c (main): Don't use TARGET_VERSION.
32187 * mips-tdump.c (main): Don't use TARGET_VERSION.
32188 * mips-tfile.c (main): Don't use TARGET_VERSION.
32189 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
32190 * config/rs6000/vxworksae.h: Remove.
32191 * config/alpha/alpha.h (TARGET_VERSION): Remove.
32192 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
32193 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
32194 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
32195 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
32196 * config/arm/arm.h (TARGET_VERSION): Remove.
32197 * config/arm/coff.h (TARGET_VERSION): Remove.
32198 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
32199 * config/arm/elf.h (TARGET_VERSION): Remove.
32200 * config/arm/freebsd.h (TARGET_VERSION): Remove.
32201 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
32202 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
32203 * config/arm/pe.h (TARGET_VERSION): Remove.
32204 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
32205 * config/arm/semi.h (TARGET_VERSION): Remove.
32206 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
32207 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
32208 * config/arm/vxworks.h (TARGET_VERSION): Remove.
32209 * config/avr/avr.h (TARGET_VERSION): Remove.
32210 * config/bfin/bfin.h (TARGET_VERSION): Remove.
32211 * config/fr30/fr30.h (TARGET_VERSION): Remove.
32212 * config/frv/frv.h (TARGET_VERSION): Remove.
32213 * config/h8300/h8300.h (TARGET_VERSION): Remove.
32214 * config/i386/cygwin.h (TARGET_VERSION): Remove.
32215 * config/i386/darwin.h (TARGET_VERSION): Remove.
32216 * config/i386/darwin64.h (TARGET_VERSION): Remove.
32217 * config/i386/djgpp.h (TARGET_VERSION): Remove.
32218 * config/i386/freebsd.h (TARGET_VERSION): Remove.
32219 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
32220 * config/i386/gnu.h (TARGET_VERSION): Remove.
32221 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
32222 * config/i386/i386elf.h (TARGET_VERSION): Remove.
32223 * config/i386/linux.h (TARGET_VERSION): Remove.
32224 * config/i386/linux64.h (TARGET_VERSION): Remove.
32225 * config/i386/lynx.h (TARGET_VERSION): Remove.
32226 * config/i386/mingw32.h (TARGET_VERSION): Remove.
32227 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
32228 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
32229 * config/i386/netware.h (TARGET_VERSION): Remove.
32230 * config/i386/nto.h (TARGET_VERSION): Remove.
32231 * config/i386/openbsd.h (TARGET_VERSION): Remove.
32232 * config/i386/vxworks.h (TARGET_VERSION): Remove.
32233 * config/ia64/elf.h (TARGET_VERSION): Remove.
32234 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
32235 * config/ia64/hpux.h (TARGET_VERSION): Remove.
32236 * config/ia64/linux.h (TARGET_VERSION): Remove.
32237 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
32238 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
32239 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
32240 * config/lm32/lm32.h (TARGET_VERSION): Remove.
32241 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
32242 * config/m32c/m32c.h (TARGET_VERSION): Remove.
32243 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
32244 * config/m32r/m32r.h (TARGET_VERSION): Remove.
32245 * config/m68k/linux.h (TARGET_VERSION): Remove.
32246 * config/m68k/m68k.h (TARGET_VERSION): Remove.
32247 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
32248 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
32249 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
32250 * config/mep/mep.h (TARGET_VERSION): Remove.
32251 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
32252 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
32253 * config/mips/iris6.h (MACHINE_TYPE): Remove.
32254 * config/mips/linux.h (TARGET_VERSION): Remove.
32255 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
32256 * config/mips/vxworks.h (TARGET_VERSION): Remove.
32257 * config/mmix/mmix.h (TARGET_VERSION): Remove.
32258 * config/mn10300/linux.h (TARGET_VERSION): Remove.
32259 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
32260 * config/pa/pa.h (TARGET_VERSION): Remove.
32261 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
32262 * config/picochip/picochip.h (TARGET_VERSION): Remove.
32263 * config/rs6000/aix.h (TARGET_VERSION): Remove.
32264 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
32265 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
32266 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
32267 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
32268 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
32269 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
32270 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
32271 * config/rs6000/linux.h (TARGET_VERSION): Remove.
32272 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
32273 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
32274 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
32275 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
32276 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
32277 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
32278 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
32279 * config/s390/linux.h (TARGET_VERSION): Remove.
32280 * config/s390/s390.h (TARGET_VERSION): Remove.
32281 * config/s390/tpf.h (TARGET_VERSION): Remove.
32282 * config/score/score.h (TARGET_VERSION): Remove.
32283 * config/sh/linux.h (TARGET_VERSION): Remove.
32284 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
32285 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
32286 * config/sh/sh.h (TARGET_VERSION): Remove.
32287 * config/sh/sh64.h (TARGET_VERSION): Remove.
32288 * config/sh/superh.h (TARGET_VERSION): Remove.
32289 * config/sh/vxworks.h (TARGET_VERSION): Remove.
32290 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
32291 * config/sparc/linux.h (TARGET_VERSION): Remove.
32292 * config/sparc/linux64.h (TARGET_VERSION): Remove.
32293 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
32294 TARGET_NAME32, TARGET_NAME): Remove.
32295 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
32296 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
32297 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
32298 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
32299 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
32300 * config/spu/spu.h (TARGET_VERSION): Remove.
32301 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
32302 * config/v850/v850.h (TARGET_VERSION): Remove.
32303 * config/vax/linux.h (TARGET_VERSION): Remove.
32304 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
32305 * config/xtensa/elf.h (TARGET_VERSION): Remove.
32306 * config/xtensa/linux.h (TARGET_VERSION): Remove.
32308 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
32311 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
32312 frame-related from frame-unrelated adjustments to the stack pointer.
32314 2011-03-31 Jakub Jelinek <jakub@redhat.com>
32316 * common.opt (fdebug-types-section): Move earlier.
32317 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
32319 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
32321 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
32324 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
32326 * tree.h (CASE_CHAIN): Define.
32327 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
32328 (gimple_redirect_edge_and_branch): Likewise.
32330 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
32332 PR middle-end/48367
32333 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
32336 2011-03-30 Jeff Law <law@redhat.com>
32338 * PR bootstrap/48371
32339 * reload1.c (reload): Fix botch in last change.
32341 * reload.h (struct reload): Fix typo introduced in last change.
32343 2011-03-30 Joseph Myers <joseph@codesourcery.com>
32345 * config/arm/arm.opt (mhard-float, msoft-float): Mark
32346 Undocumented. Remove help text.
32347 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
32350 2011-03-30 Joseph Myers <joseph@codesourcery.com>
32352 * doc/options.texi (NegativeAlias): Document.
32353 (Alias): Mention NegativeAlias.
32354 * opt-functions.awk: Handle NegativeAlias.
32355 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
32356 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
32357 * opts.h (CL_NEGATIVE_ALIAS): Define.
32358 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
32359 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
32361 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
32363 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
32364 mno-spe and mno-isel instead of mspe=no and -misel=no.
32366 2011-03-29 Mark Wielaard <mjw@redhat.com>
32368 * common.opt (fdebug-types-section): New flag.
32369 * doc/invoke.texi: Document new -fno-debug-types-section flag.
32370 * dwarf2out.c (use_debug_types): New define.
32371 (struct die_struct): Mark die_id with GTY desc use_debug_types.
32372 (print_die): Guard output of type unit signatures using
32374 (build_abbrev_table): Replace assert of dwarf_version >= 4
32375 with assert on use_debug_types.
32376 (size_of_die): Likewise.
32377 (unmark_dies): Likewise.
32378 (value_format): Decide AT_ref_external form on use_debug_types.
32379 (output_die): Replace dwarf_version version check guard with
32380 use_debug_types where appropriate.
32381 (modified_type_die): Likewise.
32382 (gen_reference_type_die): Likewise.
32383 (dwarf2out_start_source_file): Likewise.
32384 (dwarf2out_end_source_file): Likewise.
32385 (prune_unused_types_walk_attribs): Likewise.
32386 (dwarf2out_finish): Likewise.
32388 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
32390 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
32392 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
32394 PR rtl-optimization/48332
32395 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
32396 mode of input operand N and modeN to its actual mode.
32398 2011-03-30 Jeff Law <law@redhat.com>
32400 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
32401 define accessor macro.
32402 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
32403 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
32404 (reg_equiv_init): Likewise.
32405 (reg_equivs_size): New variable.
32406 (reg_equiv_init_size): Remove.
32407 (allocate_initial_values): Move prototype to here from....
32408 * integrate.h (allocate_initial_values): Remove prototype.
32409 * integrate.c: Include reload.h.
32410 (allocate_initial_values): Corresponding changes.
32411 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
32412 (fix_reg_equiv_init, no_equiv): Corresponding changes.
32413 (update_equiv_regs): Corresponding changes.
32414 (ira): Corresponding changes.
32415 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
32416 (push_secondary_reload): Corresponding changes.
32417 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
32418 (make_memloc, find_reloads_address): Corresponding changes.
32419 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
32420 (find_reloads_address_1): Corresponding changes.
32421 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
32422 (refers_to_regno_for_reload_p): Corresponding changes.
32423 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
32424 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
32425 * reload1.c: Include ggc.h.
32426 (grow_reg_equivs): New function.
32427 (replace_pseudos_in, reload): Corresponding changes.
32428 (calculate_needs_all_insns, alter_regs): Corresponding changes.
32429 (eliminate_regs_1, elimination_effects): Corresponding changes.
32430 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
32431 (delete_output_reload): Likewise.
32432 * caller-save.c (mark_referenced_regs): Corresponding changes.
32433 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
32434 * frv/predicates.md (frv_load_operand): Corresponding changes.
32435 * microblaze/microblaze.c (double_memory_operand): Corresponding
32437 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
32438 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
32439 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
32440 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
32441 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
32443 * pa/pa.c (emit_move_sequence): Corresponding changes.
32444 * vax/vax.c (nonindexed_address_p): Corresponding changes.
32446 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
32449 * config/arm/arm.c (coproc_secondary_reload_class): Handle
32450 structure modes. Don't check neon_vector_mem_operand for
32451 vector or structure modes.
32453 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
32454 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
32457 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
32458 operand 1 and reshuffle the operands to match.
32459 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
32461 2011-03-30 Christian Schüler <cschueler@gmx.de>
32464 * config/c.opt (F): Added 'Driver' to -F option.
32467 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
32469 * config/darwin.opt: Added '-arch' option.
32471 2011-03-30 Nick Clifton <nickc@redhat.com>
32473 * config/rx/rx.md: Add peepholes and patterns to combine
32474 extending loads and simple arithmetic instructions.
32475 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
32476 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
32477 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
32478 modes to use pre-decrement and post-increment addressing.
32479 (rx_is_restricted_memory_address): Add range checking of REG+INT
32481 (rx_print_operand): Add support for %Q. Fix handling of %Q.
32482 (rx_memory_move_cost): Adjust cost of stores.
32483 (rx_adjust_insn_length): New function.
32485 2011-03-30 Jakub Jelinek <jakub@redhat.com>
32488 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
32489 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
32490 matching arg00/arg01 types.
32492 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
32494 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
32495 last_location to UNKNOWN_LOCATION.
32497 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
32500 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
32503 2011-03-30 Joseph Myers <joseph@codesourcery.com>
32504 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32507 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
32508 Init(PROCESSOR_V7).
32509 (sparc_cpu): Likewise.
32510 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
32513 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
32516 PR middle-end/48342
32517 PR rtl-optimization/48345
32518 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
32519 hard regs for given mode from profitable regs when doing secondary
32522 2011-03-29 Jeff Law <law@redhat.com>
32525 * tree-ssa-threadupdate.c (struct redirection_data): Remove
32526 do_not_duplicate field.
32527 (lookup_redirection_data): Corresponding changes.
32528 (create_duplicates): Always create a template block.
32529 (redirect_edges): Remove code which reused the original block
32530 when it was going to become unreachable code.
32531 (thread_block): Don't set do_not_duplicate field.
32533 2011-03-29 Joseph Myers <joseph@codesourcery.com>
32535 * lto-opts.c (register_user_option_p, lto_register_user_option):
32536 Make type argument unsigned.
32537 * lto-streamer.h (lto_register_user_option): Make type argument
32539 * opth-gen.awk: Make CL_* macros unsigned.
32540 * opts-common.c (find_opt): Make lang_mask argument unsigned.
32541 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
32542 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
32543 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
32544 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
32545 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
32546 (find_opt): Make lang_mask argument unsigned.
32548 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
32550 PR rtl-optimization/48331
32551 PR rtl-optimization/48334
32552 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
32553 for any used algorithm.
32555 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
32557 * ira-conflicts.c (build_object_conflicts): Add unused attribute
32560 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
32562 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
32563 (alpha_option_override): Don't set alpha_sr_alias_set.
32564 (emit_frame_store_1): Use gen_frame_mem rather than calling
32566 (alpha_expand_epilogue): Ditto.
32568 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
32570 PR tree-optimization/48290
32571 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
32572 vectorization, check that relevant phis in the basic block after
32573 the inner loop are really inner loop's exit phis.
32575 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
32578 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
32579 (cached_dw_loc_list_def): New structure.
32580 (cached_dw_loc_list): New typedef.
32581 (cached_dw_loc_list_table): New variable.
32582 (cached_dw_loc_list_table_hash): New function.
32583 (cached_dw_loc_list_table_eq): Likewise.
32584 (add_location_or_const_value_attribute): Take a bool cache_p.
32585 Cache the list when the parameter is true.
32586 (gen_formal_parameter_die): Update caller.
32587 (gen_variable_die): Likewise.
32588 (dwarf2out_finish): Likewise.
32589 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
32590 while generating debug info for the decl.
32591 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
32592 (dwarf2out_init): Initialize cached_dw_loc_list_table.
32593 (resolve_addr): Cache the result of resolving a chain of
32596 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
32598 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
32599 conflict object hard regset nodes have intersecting hard reg sets.
32601 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
32602 after regstat_init_n_sets_and_refs.
32604 * ira.c: Add more comments at the top.
32605 (setup_stack_reg_pressure_class, setup_pressure_classes):
32606 Add comments how we compute the register pressure classes.
32607 (setup_allocno_and_important_classes): Add more comments.
32608 (setup_class_translate_array, reorder_important_classes)
32609 (setup_reg_class_relations): Add comments.
32611 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
32614 * ira-color.c: Add 2011 to the Copyright line.
32615 (assign_hard_reg): Add more comments.
32616 (improve_allocation): Ditto.
32618 * ira-costs.c: Add 2011 to the Copyright line.
32619 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
32621 (setup_regno_cost_classes_by_mode): Ditto.
32623 Initial patches from ira-improv branch:
32625 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
32627 * ira-build.c (ira_create_object): Remove initialization of
32628 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
32629 (ira_create_allocno): Remove initialization of
32630 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
32631 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
32632 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
32633 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
32634 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
32635 Initialize ALLOCNO_ADD_DATA.
32636 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
32637 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
32639 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
32640 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
32642 * ira.c (ira_reallocate): Remove.
32643 (setup_pressure_classes): Call
32644 ira_init_register_move_cost_if_necessary. Use
32645 ira_register_move_cost instead of ira_get_register_move_cost.
32646 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
32647 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
32649 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
32650 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
32651 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
32652 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
32653 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
32654 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
32656 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
32657 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
32658 (struct allocno_color_data): New.
32659 (allocno_color_data_t): New typedef.
32660 (allocno_color_data): New definition.
32661 (ALLOCNO_COLOR_DATA): New macro.
32662 (struct object_color_data): New.
32663 (object_color_data_t): New typedef.
32664 (object_color_data): New definition.
32665 (OBJECT_COLOR_DATA): New macro.
32666 (update_copy_costs, calculate_allocno_spill_cost): Call
32667 ira_init_register_move_cost_if_necessary. Use
32668 ira_register_move_cost instead of ira_get_register_move_cost.
32669 (move_spill_restore, update_curr_costs): Ditto.
32670 (allocno_spill_priority): Make it inline.
32671 (color_pass): Allocate and free allocno_color_dat and object_color_data.
32672 (struct coalesce_data, coalesce_data_t): New.
32673 (allocno_coalesce_data): New definition.
32674 (ALLOCNO_COALESCE_DATA): New macro.
32675 (merge_allocnos, coalesced_allocno_conflict_p): Use
32676 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
32677 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
32678 (coalesce_allocnos): Ditto.
32679 (setup_coalesced_allocno_costs_and_nums): Ditto.
32680 (collect_spilled_coalesced_allocnos): Ditto.
32681 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
32682 (setup_slot_coalesced_allocno_live_ranges): Ditto.
32683 (coalesce_spill_slots): Ditto.
32684 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
32685 free allocno_coalesce_data.
32687 * ira-conflicts.c: Fix formatting.
32688 (process_regs_for_copy): Call
32689 ira_init_register_move_cost_if_necessary. Use
32690 ira_register_move_cost instead of ira_get_register_move_cost.
32691 (build_object_conflicts): Optimize.
32693 * ira-costs.c (record_reg_classes): Optimize. Call
32694 ira_init_register_move_cost_if_necessary. Use
32695 ira_register_move_cost, ira_may_move_in_cost, and
32696 ira_may_move_out_cost instead of ira_get_register_move_cost and
32697 ira_get_may_move_cost.
32698 (record_address_regs): Ditto.
32699 (scan_one_insn): Optimize.
32700 (find_costs_and_classes): Optimize.
32701 (process_bb_node_for_hard_reg_moves): Call
32702 ira_init_register_move_cost_if_necessary. Use
32703 ira_register_move_cost instead of ira_get_register_move_cost.
32705 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
32706 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
32707 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
32708 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
32710 (ira_initiate_emit_data, ira_finish_emit_data)
32711 (create_new_allocno): New functions.
32712 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
32713 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
32714 Use ira_register_move_cost instead of ira_get_register_move_cost.
32716 * ira-int.h: Fix some comments.
32717 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
32718 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
32719 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
32720 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
32722 (struct ira_allocno): Make mode and aclass a bitfield. Move other
32723 bitfield after mode. Make hard_regno a short int. Make
32724 hard_regno short. Remove first_coalesced_allocno and
32725 next_coalesced_allocno. Move mem_optimized_dest_p,
32726 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
32727 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
32728 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
32729 temp, colorable_p. Add new member add_data.
32730 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
32731 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
32732 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
32733 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
32734 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
32735 (ALLOCNO_ADD_DATA): New macro.
32736 (ira_emit_data_t): New typedef.
32737 (struct ira_emit_data): New. Move mem_optimized_dest_p,
32738 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
32739 from struct ira_allocno.
32740 (ALLOCNO_EMIT_DATA): New macro.
32741 (ira_allocno_emit_data, allocno_emit_reg): New.
32742 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
32743 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
32744 (OBJECT_ADD_DATA): New macro.
32745 (ira_reallocate): Remove.
32746 (ira_initiate_emit_data, ira_finish_emit_data): New.
32747 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
32748 (ira_init_register_move_cost_if_necessary): New.
32749 (ira_object_conflict_iter_next): Merge into
32750 ira_object_conflict_iter_cond.
32751 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
32753 * ira-live.c (process_single_reg_class_operands): Call
32754 ira_init_register_move_cost_if_necessary. Use
32755 ira_register_move_cost instead of ira_get_register_move_cost.
32757 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
32759 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
32761 * ira-costs.c: Fix formatting.
32762 (cost_classes, cost_classes_num): Remove.
32763 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
32764 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
32765 (cost_classes_del, cost_classes_htab): New.
32766 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
32767 (initiate_regno_cost_classes, setup_cost_classes): New.
32768 (setup_regno_cost_classes_by_aclass): New.
32769 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
32770 (record_reg_classes): Use regno_cost_classes instead of
32771 cost_classes. Move checking opposite operand up.
32772 (record_address_regs): Use regno_cost_classes
32773 instead of cost_classes.
32774 (scan_one_insn): Ditto. Use always general register.
32775 (print_allocno_costs): Use regno_cost_classes instead of
32777 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
32778 (find_costs_and_classes): Set up cost classes for each registers.
32779 Use also their mode for this. Use regno_cost_classes instead of
32781 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
32783 (free_ira_costs, ira_init_costs): Don't use cost_classes.
32784 (ira_costs, ira_set_pseudo_classes): Call
32785 initiate_regno_cost_classes and finish_regno_cost_classes.
32787 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
32789 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
32791 * target.def (ira_cover_classes): Remove.
32793 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
32795 * doc/tm.texi.in: Ditto.
32797 * ira-conflicts.c: Remove mentioning cover classes from the file.
32798 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
32799 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
32801 * targhooks.c (default_ira_cover_classes): Remove.
32803 * targhooks.h (default_ira_cover_classes): Ditto.
32805 * haifa-sched.c: Remove mentioning cover classes from the file.
32806 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
32807 ira_pressure_classes and ira_pressure_classes_num instead of
32808 ira_reg_class_cover_size and ira_reg_class_cover. Use
32809 sched_regno_pressure_class instead of sched_regno_cover_class.
32810 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
32811 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
32813 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
32814 classes from the file.
32815 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
32816 (struct object_hard_regs, struct object_hard_regs_node): New.
32817 (struct ira_object): New members profitable_hard_regs,
32818 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
32819 (struct ira_allocno): Rename cover_class to aclass. Rename
32820 cover_class_cost and updated_cover_class_cost to class_cost and
32821 updated_class_cost. Remove splay_removed_p and
32822 left_conflict_size. Add new members colorable_p.
32823 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
32824 (ALLOCNO_COLORABLE_P): New macro.
32825 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
32826 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
32827 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
32828 (OBJECT_...): Rename parameter C to O.
32829 (OBJECT_PROFITABLE_HARD_REGS): New macro.
32830 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
32831 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
32832 (struct target_ira_int): New members x_ira_max_memory_move_cost,
32833 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
32834 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
32835 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
32836 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
32837 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
32838 x_ira_reg_class_subunion.
32839 (ira_max_memory_move_cost, ira_max_register_move_cost)
32840 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
32841 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
32842 (ira_important_class_nums, ira_reg_class_superunion): New macros.
32843 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
32844 (ira_reg_class_union): Rename to ira_reg_class_subunion.
32845 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
32846 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
32847 (ira_tune_allocno_costs_and_cover_classes): Rename to
32848 ira_tune_allocno_costs.
32849 (ira_debug_hard_regs_forest): New.
32850 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
32851 (ira_object_conflict_iter_next): Fix comments.
32852 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
32853 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
32854 cover_class to aclass.
32855 (ira_allocate_and_accumulate_costs): Ditto.
32856 (ira_allocate_and_set_or_copy_costs): Ditto.
32858 * opts.c (decode_options): Remove ira_cover_class check.
32860 * ira-color.c: Remove mentioning cover classes from the file. Use
32861 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
32862 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
32863 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
32864 (splay-tree.h): Remove include.
32865 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
32866 before copy_freq_compare_func.
32867 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
32868 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
32870 (hard_regs_roots, hard_regs_node_vec): Ditto.
32871 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
32872 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
32873 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
32874 (create_new_object_hard_regs_node): Ditto.
32875 (add_new_object_hard_regs_node_to_forest): Ditto.
32876 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
32877 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
32879 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
32880 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
32881 (remove_unused_object_hard_regs_nodes): Ditto.
32882 (enumerate_object_hard_regs_nodes): Ditto.
32883 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
32884 (object_hard_regs_subnode_t): Ditto.
32885 (struct object_hard_regs_subnode): Ditto.
32886 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
32887 (setup_object_hard_regs_subnode_index): Ditto.
32888 (get_object_hard_regs_subnodes_num): Ditto.
32889 (form_object_hard_regs_nodes_forest): Ditto.
32890 (finish_object_hard_regs_nodes_tree): Ditto.
32891 (finish_object_hard_regs_nodes_forest): Ditto.
32892 (allocnos_have_intersected_live_ranges_p): Rename to
32893 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
32894 (pseudos_have_intersected_live_ranges_p): Rename to
32895 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
32896 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
32897 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
32898 (update_copy_costs): Remove assert. Skip cost update if the hard
32899 reg does not belong the class.
32900 (assign_hard_reg): Process only profitable hard regs.
32901 (uncolorable_allocnos_num): Make it scalar.
32902 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
32903 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
32904 and ira_reg_class_max_nregs.
32905 (bucket_allocno_compare_func): Check frequency first.
32906 (sort_bucket): Add compare function as a parameter.
32907 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
32908 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
32909 (push_allocno_to_stack): Rewrite for checking new allocno
32911 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
32912 (push_only_colorable): Pass new parameter to sort_bucket.
32913 (push_allocno_to_spill): Remove.
32914 (allocno_spill_priority_compare): Make it inline and rewrite.
32915 (splay_tree_allocate, splay_tree_free): Remove.
32916 (allocno_spill_sort_compare): New function.
32917 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
32918 build and use splay tree. Choose first allocno in uncolorable
32919 allocno bucket to spill. Remove setting spill cost.
32920 (all_conflicting_hard_regs): Remove.
32921 (setup_allocno_available_regs_num): Check only profitable hard
32922 regs. Print info about hard regs nodes.
32923 (setup_allocno_left_conflicts_size): Remove.
32924 (put_allocno_into_bucket): Don't call
32925 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
32926 (improve_allocation): New.
32927 (color_allocnos): Call setup_profitable_hard_regs,
32928 form_object_hard_regs_nodes_forest, improve_allocation,
32929 finish_object_hard_regs_nodes_forest. Setup spill cost.
32930 (print_loop_title): Use pressure classes.
32931 (color_allocnso): Ditto.
32932 (do_coloring): Remove allocation and freeing splay_tree_node_pool
32933 and allocnos_for_spilling.
32934 (ira_sort_regnos_for_alter_reg): Don't setup members
32935 {first,next}_coalesced_allocno.
32936 (color): Remove allocating and freeing removed_splay_allocno_vec.
32937 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
32938 prohibited_class_mode_regs.
32940 * ira-lives.c: Remove mentioning cover classes from the file. Fix
32942 (update_allocno_pressure_excess_length): Use pressure classes.
32943 (inc_register_pressure, dec_register_pressure): Check for pressure
32945 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
32946 pressure class. Use ira_reg_class_nregs instead of
32947 ira_reg_class_max_nregs.
32948 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
32949 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
32950 (single_reg_class): Use ira_reg_class_nregs instead of
32951 ira_reg_class_max_nregs.
32952 (process_bb_node_lives): Use pressure classes.
32954 * ira-emit.c: Remove mentioning cover classes from the file. Use
32955 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
32956 (change_loop): Use pressure classes.
32957 (modify_move_list): Call ira_set_allocno_class instead of
32958 ira_set_allocno_cover_class.
32960 * ira-build.c: Remove mentioning cover classes from the file. Use
32961 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
32962 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
32963 ALLOCNO_UPDATED_CLASS_COST instead of
32964 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
32965 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
32966 (ira_create_allocno): Remove initialization of
32967 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
32968 ALLOCNO_COLORABLE_P.
32969 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
32970 Update conflict regs for the objects.
32971 (create_cap_allocno): Remove assert. Don't propagate
32972 ALLOCNO_AVAILABLE_REGS_NUM.
32973 (ira_free_allocno_costs): New function.
32974 (finish_allocno): Change a part of code into call of
32975 ira_free_allocno_costs.
32976 (low_pressure_loop_node_p): Use pressure classes.
32977 (object_range_compare_func): Don't compare classes.
32978 (setup_min_max_conflict_allocno_ids): Ditto.
32980 * loop-invariant.c: Remove mentioning cover classes from the file.
32981 Use ira_pressure_classes and ira_pressure_classes_num instead of
32982 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
32983 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
32984 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
32985 Use reg_allocno_class instead of reg_cover_class.
32986 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
32987 STACK_REG_COVER_CLASS.
32988 (get_regno_cover_class): Rename to get_regno_pressure_class.
32989 (move_loop_invariants): Initialize and finalize regstat.
32991 * ira.c: Remove mentioning cover classes from the file. Add
32992 comments about coloring without cover classes. Use ALLOCNO_CLASS
32993 instead of ALLOCNO_COVER_CLASS. Fix formatting.
32994 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
32995 setup_class_subset_and_memory_move_costs.
32996 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
32997 (setup_cover_and_important_classes): Rename to
32998 setup_allocno_and_important_classes.
32999 (setup_class_translate_array): New.
33000 (setup_class_translate): Call it for allocno and pressure classes.
33001 (cover_class_order): Rename to allocno_class_order.
33002 (comp_reg_classes_func): Use ira_allocno_class_translate instead
33003 of ira_class_translate.
33004 (reorder_important_classes): Set up ira_important_class_nums.
33005 (setup_reg_class_relations): Set up ira_reg_class_superunion.
33006 (print_class_cover): Rename to print_classes. Add parameter.
33007 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
33008 Print pressure classes too.
33009 (find_reg_class_closure): Rename to find_reg_classes. Don't call
33010 setup_reg_subclasses.
33011 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
33012 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
33013 (setup_prohibited_class_mode_regs): Use
33014 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
33015 (clarify_prohibited_class_mode_regs): New function.
33016 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
33017 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
33018 (ira_init_once): Initialize them.
33019 (free_register_move_costs): Process them.
33020 (ira_init): Move calls of find_reg_classes and
33021 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
33022 Call clarify_prohibited_class_mode_regs.
33023 (ira_no_alloc_reg): Remove.
33024 (too_high_register_pressure_p): Use pressure classes.
33026 * sched-deps.c: Remove mentioning cover classes from the file.
33027 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
33028 ira_pressure_classes and ira_pressure_classes_num instead of
33029 ira_reg_class_cover_size and ira_reg_class_cover.
33030 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
33031 sched_regno_pressure_class instead of sched_regno_cover_class.
33032 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
33033 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
33035 * ira.h: Add 2010 to Copyright.
33036 (ira_no_alloc_reg): Remove external.
33037 (struct target_ira): Rename x_ira_hard_regno_cover_class,
33038 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
33039 x_ira_class_translate to x_ira_hard_regno_allocno_class,
33040 x_ira_allocno_classes_num, x_ira_allocno_classes, and
33041 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
33042 x_ira_pressure_classes, x_ira_pressure_class_translate, and
33043 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
33044 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
33045 x_ira_no_alloc_regs.
33046 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
33047 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
33048 ira_allocno_classes_num and ira_allocno_classes.
33049 (ira_class_translate): Rename to ira_allocno_class_translate.
33050 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
33051 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
33052 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
33053 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
33054 (ira_no_alloc_regs): New.
33056 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
33057 classes from the file. Use ALLOCNO_CLASS instead of
33058 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
33059 ALLOCNO_COVER_CLASS_COST.
33060 (regno_cover_class): Rename to regno_aclass.
33061 (record_reg_classes): Use ira_reg_class_subunion instead of
33062 ira_reg_class_union.
33063 (record_address_regs): Check overflow.
33064 (scan_one_insn): Ditto.
33065 (print_allocno_costs): Print total mem cost fore regional allocation.
33066 (print_pseudo_costs): Use REG_N_REFS.
33067 (find_costs_and_classes): Use classes intersected with them on the
33068 1st pass. Check overflow. Use ira_reg_class_subunion instead of
33069 ira_reg_class_union. Use ira_allocno_class_translate and
33070 regno_aclass instead of ira_class_translate and regno_cover_class.
33071 Modify code for finding regno_aclass. Setup preferred classes for
33073 (setup_allocno_cover_class_and_costs): Rename to
33074 setup_allocno_class_and_costs. Use regno_aclass instead of
33075 regno_cover_class. Use ira_set_allocno_class instead of
33076 ira_set_allocno_cover_class.
33077 (init_costs, finish_costs): Use regno_aclass instead of
33079 (ira_costs): Use setup_allocno_class_and_costs instead of
33080 setup_allocno_cover_class_and_costs.
33081 (ira_tune_allocno_costs_and_cover_classes): Rename to
33082 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
33083 by processing objects. Use ira_reg_class_max_nregs instead of
33084 ira_reg_class_nregs.
33086 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
33088 * sched-int.h: Remove mentioning cover classes from the file.
33089 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
33091 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
33092 classes from the file.
33093 (struct reg_pref): Rename coverclass into allocnoclass.
33094 (reg_cover_class): Rename to reg_allocno_class.
33096 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
33098 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
33100 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
33102 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
33104 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
33106 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
33108 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
33110 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
33112 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
33114 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
33116 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
33117 (i386_ira_cover_classes): Ditto.
33119 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
33121 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
33123 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
33125 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
33127 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
33129 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
33131 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
33132 (mips_ira_cover_classes): Ditto.
33134 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
33136 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
33138 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
33140 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
33142 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
33144 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
33145 (IRA_COVER_CLASSES_VSX): Ditto.
33147 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
33148 (rs6000_ira_cover_classes): Ditto.
33150 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
33152 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
33154 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
33156 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
33158 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
33160 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
33162 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
33164 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
33166 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
33168 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
33170 2011-03-29 Jakub Jelinek <jakub@redhat.com>
33173 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
33174 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
33175 dw_fde_unlikely_section_end_label, cold_in_std_section,
33176 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
33177 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
33179 (output_fde): Use dw_fde_second_{begin,end} if second is
33180 true, otherwise dw_fde_{begin,end}.
33181 (output_call_frame_info): Test dw_fde_second_begin != NULL
33182 instead of dw_fde_switched_sections.
33183 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
33184 fields, initialize new fields. Initialize in_std_section
33185 unconditionally from the first partition.
33186 (dwarf2out_end_epilogue): Don't override dw_fde_end when
33187 dw_fde_second_begin is non-NULL.
33188 (dwarf2out_switch_text_section): Stop initializing removed
33189 dw_fde_struct fields, initialize new fields, initialize
33190 also dw_fde_end here. Set dw_fde_switch_cfi even when
33191 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
33192 (struct var_loc_list_def): Add last_before_switch field.
33193 (arange_table, arange_table_allocated, arange_table_in_use,
33194 ARANGE_TABLE_INCREMENT, add_arange): Removed.
33195 (size_of_aranges): Count !in_std_section and !second_in_std_section
33196 hunks in fdes, instead of looking at arange_table_in_use.
33197 (output_aranges): Add aranges_length argument, don't call
33198 size_of_aranges here. Instead of using aranges_table*
33199 emit ranges for fdes when !in_std_section resp.
33200 !second_in_std_section.
33201 (dw_loc_list): Break ranges crossing section switch.
33202 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
33203 use dw_fde_second_end instead of dw_fde_end as end of last range.
33204 (gen_subprogram_die): Don't call add_arange. Use
33205 dw_fde_{begin,end} for first partition and if switched
33206 section dw_fde_second_{begin,end} for the second.
33207 (var_location_switch_text_section_1,
33208 var_location_switch_text_section): New functions.
33209 (dwarf2out_begin_function): Initialize cold_text_section even
33210 when function_section () isn't text_section.
33211 (prune_unused_types): Don't walk arange_table.
33212 (dwarf2out_finish): Don't needlessly test
33213 flag_reorder_blocks_and_partition when testing cold_text_section_used.
33214 If info_section_emitted, call size_of_aranges and if it indicates
33215 non-empty .debug_aranges, call output_aranges with the computed
33216 size. Stop using removed dw_fde_struct fields, use
33217 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
33221 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
33222 create ENTRY_VALUE if incoming or address of incoming's MEM
33224 * dwarf2out.c (mem_loc_descriptor): Don't emit
33225 DW_OP_GNU_entry_value of DW_OP_fbreg.
33226 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
33227 on ENTRY_VALUE is able to find the canonical parameter VALUE.
33228 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
33229 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
33231 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
33232 is a REG_P or MEM_P with REG_P address, compute hash directly
33233 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
33234 (preserve_only_constants): Don't clear VALUES forwaring
33235 ENTRY_VALUE to some other VALUE.
33237 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
33239 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
33240 instead of GEN_INT.
33242 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
33244 * cfgexpand.c (expand_gimple_cond): Always set the source location and
33245 block before expanding the statement.
33246 (expand_gimple_stmt_1): Likewise. Set them here...
33247 (expand_gimple_stmt): ...and not here. Tidy.
33248 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
33251 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
33253 * Makefile.in: New rule for cprop.o.
33254 * gcse.c: Move constant/copy propagation to cprop.c.
33255 (compute_local_properties): Only handle expression tables.
33256 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
33257 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
33258 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
33259 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
33260 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
33261 compute_cprop_data, find_used_regs, try_replace_reg,
33262 find_avail_set, cprop_jump, constprop_register, cprop_insn,
33263 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
33264 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
33265 find_bypass_set, reg_killed_on_edge, bypass_block,
33266 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
33267 execute_rtl_cprop, pass_rtl_cprop): Move to...
33268 * cprop.c: ...here. New file, constant/copy propagation for RTL
33269 moved from gcse.c to here with minor cleanups in duplicated code.
33271 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
33273 * config/i386/i386.c (flag_opts): Fix a typo in
33274 -mavx256-split-unaligned-store.
33276 2011-03-28 Anatoly Sokolov <aesok@post.ru>
33278 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
33279 LIBCALL_VALUE): Remove macros.
33280 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
33281 TARGET_FUNCTION_VALUE_REGNO_P): Define.
33282 (h8300_function_value, h8300_libcall_value,
33283 h8300_function_value_regno_p): New functions.
33285 2011-03-28 Anatoly Sokolov <aesok@post.ru>
33287 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
33289 2011-03-28 Jeff Law <law@redhat.com>
33291 * tree-ssa-threadupdate.c (redirect_edges): Call
33292 create_edge_and_update_destination_phis as needed.
33293 (create_edge_and_update_destination_phis): Accept new BB argument.
33294 All callers updated.
33295 (thread_block): Do not update the profile when threading around
33296 intermediate blocks.
33297 (thread_single_edge): Likewise.
33298 (determine_bb_domination_status): If BB is not a successor of the
33299 loop header, return NONDOMINATING.
33300 (register_jump_thread): Note when we register a jump thread around
33301 an intermediate block.
33302 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
33303 (thread_across_edge): Use it.
33305 2011-03-28 Tristan Gingold <gingold@adacore.com>
33307 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
33308 when for_return is 2.
33310 2011-03-28 Jeff Law <law@redhat.com>
33312 * var-tracking.c (canonicalize_values_mark): Delete unused
33314 (canonicalize_values_star, set_variable_part): Likewise.
33315 (clobber_variable_part, delete_variable_part): Likewise.
33317 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
33319 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
33321 2011-03-28 Martin Jambor <mjambor@suse.cz>
33323 * tree-inline.c (expand_call_inline): Do not check that destination
33325 (optimize_inline_calls): Assert that destination node is analyzed.
33326 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
33327 not call tree_lowering_passes.
33328 * cgraph.h (cgraph_analyze_function): Declare.
33329 * cgraphunit.c (cgraph_analyze_function): Make public.
33331 2011-03-28 Joseph Myers <joseph@codesourcery.com>
33333 * config/sparc/sparc-opts.h: New.
33334 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
33335 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
33336 (sparc_option_override): Store processor_type enumeration rather
33337 than string in cpu_default. Remove name and enumeration from
33338 cpu_table. Directly default -mcpu then default -mtune from -mcpu
33339 without using sparc_select. Use target_flags_explicit instead of
33341 * config/sparc/sparc.h (enum processor_type): Move to
33343 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
33344 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
33345 HeaderInclude entry.
33346 (mcpu=, mtune=): Use Var and Enum.
33347 (sparc_processor_type): New Enum and EnumValue entries.
33349 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33350 Iain Sandoe <iains@gcc.gnu.org>
33353 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
33355 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
33357 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
33358 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
33359 Insert new statements at it in lieu of STMT.
33360 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
33361 * tree-vect-stmts.c (vectorizable_store): Likewise.
33362 (vectorizable_load): Likewise.
33364 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
33366 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
33371 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
33373 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
33374 unaligned 256bit load/store.
33375 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
33376 (*avx_movdqu<avxmodesuffix>): Likewise.
33378 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33381 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
33382 * config/pa/pa.md (iordi3): Use new predicate in expander.
33383 (iorsi3): Likewise.
33385 2011-03-27 Anatoly Sokolov <aesok@post.ru>
33387 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
33388 FUNCTION_VALUE_REGNO_P): Remove macros.
33389 * config/mips/mips-protos.h (mips_function_value): Remove.
33390 * config/mips/mips.c (mips_function_value): Rename to...
33391 (mips_function_value_1): ... this. Make static. Handle receiving
33392 the function type in 'fn_decl_or_type' argument.
33393 (mips_function_value, mips_libcall_value,
33394 mips_function_value_regno_p): New function.
33395 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
33396 TARGET_FUNCTION_VALUE_REGNO_P): Define.
33398 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
33400 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
33401 and -mavx256-split-unaligned-store.
33402 (ix86_option_override_internal): Split 32-byte AVX unaligned
33403 load/store by default.
33404 (ix86_avx256_split_vector_move_misalign): New.
33405 (ix86_expand_vector_move_misalign): Use it.
33407 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
33408 -mavx256-split-unaligned-store.
33410 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
33411 256bit load/store. Generate unaligned store on misaligned memory
33413 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
33415 (*avx_movdqu<avxmodesuffix>): Likewise.
33417 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
33418 -mavx256-split-unaligned-store.
33420 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
33423 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
33426 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
33428 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
33429 opno arguments with an expand_operand. Use create_input_operand.
33430 (mips_prepare_builtin_target): Delete.
33431 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
33433 (mips_expand_builtin_direct): Use create_output_operand and
33434 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
33435 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
33436 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
33438 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
33440 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
33442 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
33444 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
33446 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
33447 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
33448 basic blocks and call commit_edge_insertions directly.
33449 (fixup_abnormal_edges): Move from here to...
33450 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
33451 on the edges and return whether some have actually been inserted.
33452 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
33455 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
33457 PR rtl-optimization/48144
33458 * sel-sched-ir.c (merge_history_vect): Factor out from ...
33459 (merge_expr_data): ... here.
33460 (av_set_intersect): Rename to av_set_code_motion_filter.
33461 Update all callers. Call merge_history_vect when an expression
33462 is found in both sets.
33463 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
33465 2011-03-26 Alan Modra <amodra@gmail.com>
33467 * config/rs6000/predicates.md (word_offset_memref_op): Handle
33468 cmodel medium addresses.
33469 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
33470 64-bit gpr loads and stores.
33471 (rs6000_secondary_reload_ppc64): New function.
33472 * config/rs6000/rs6000-protos.h: Declare it.
33473 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
33475 2011-03-26 Alan Modra <amodra@gmail.com>
33478 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
33479 GNU Go in traceback table.
33481 2011-03-25 Richard Henderson <rth@redhat.com>
33483 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
33484 if there are exactly 6 operands.
33485 (set_storage_via_setmem): Similarly.
33487 2011-03-25 Kai Tietz <ktietz@redhat.com>
33489 * collect2.c (write_c_file_stat): Handle backslash
33490 as right-hand directory separator.
33491 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
33492 checking just for slash.
33493 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
33494 instead of checking for trailing slash.
33495 * gcc.c (record_temp_file): Use filename_cmp instead
33497 (do_spec_1): Likewise.
33498 (replace_outfile_spec_function): Likewise.
33499 (is_directory): Use filename_ncmp instead of strncmp.
33500 (print_multilib_info): Likewise.
33501 * gcov.c (find_source): Use filename_cmp instead
33503 (make_gcov_file_name): Fix order of slash/backslash
33505 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
33506 (add_standard_paths): Likewise.
33507 * mips-tfile.c (saber_stop): Handle backslash.
33508 * prefix.c (update_path): Use filename_ncmp instead of
33510 * profile.c (output_location): Use filename_cmp instead
33512 * read-md.c (handle_toplevel_file): Handle backslash.
33513 * tlink.c (frob_extension): Likewise.
33514 * tree-cfg.c (same_line_p): Use filename_cmp instead of
33516 * tree-dump.c (dequeue_and_dump): Handle backslash.
33517 * tree.c (get_file_function_name): Likewise.
33518 * gengtype.c (read_input_list): Likewise.
33519 (get_file_realbasename): Likewise.
33520 (get_output_file_with_visibility): Use filename_cmp
33523 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
33525 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
33528 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
33530 * fold-const.c (expr_location_or): New function.
33531 (fold_truth_not_expr): Call it.
33533 2011-03-25 Jeff Law <law@redhat.com>
33535 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
33537 * c-family/c-common.c (def_fn_type): Likewise.
33538 * emit-rtl.c (gen_rtvec): Likewise.
33539 * lto/lto-lang.c (def_fn_type): Likewise.
33541 2011-03-25 Richard Guenther <rguenther@suse.de>
33543 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
33544 also generate copies.
33545 (fini_copy_prop): Handle constant values properly.
33547 2011-03-25 Jakub Jelinek <jakub@redhat.com>
33549 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
33550 mode size instead of bitsize with DWARF2_ADDR_SIZE.
33551 (hash_loc_operands, compare_loc_operands): Handle
33552 DW_OP_GNU_entry_value.
33554 2011-03-25 Kai Tietz <ktietz@redhat.com>
33556 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
33557 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
33558 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
33559 comment and use macro TARGET_64BIT_MS_ABI instead.
33560 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
33561 and change default behavior for 32-bit MS_ABI.
33562 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
33563 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
33565 (ix86_cfun_abi): Likewise.
33566 (ix86_maybe_switch_abi): Adjust comment.
33567 (init_cumulative_args): Check for bit-ness in MS_ABI case.
33568 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
33569 instead of checking for SYSV_ABI.
33570 (ix86_nsaved_sseregs): Likewise.
33571 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
33573 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
33574 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
33575 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
33576 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
33577 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
33579 2011-03-25 Richard Guenther <rguenther@suse.de>
33581 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
33582 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
33583 (verify_gimple): Remove.
33584 * tree-cfg.c (verify_gimple_call): Merge verification
33586 (verify_gimple_phi): Merge verification from verify_stmts.
33587 (verify_gimple_label): New function.
33588 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
33589 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
33590 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
33591 (verify_stmts): Rename to verify_gimple_in_cfg.
33592 (verify_gimple_in_cfg): New function.
33593 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
33594 * tree-ssa.c (verify_ssa): Likewise.
33595 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
33597 2011-03-25 Richard Guenther <rguenther@suse.de>
33599 * passes.c (init_optimization_passes): Add FRE pass after
33602 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
33603 Andrew Stubbs <ams@codesourcery.com>
33605 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
33607 (arm_movdi_vfp_cortexa8): New pattern.
33608 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
33609 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
33610 instructions when tuning for Cortex-A8. Set attribute "arch".
33611 * config/arm/arm.md: Move include arm-tune.md up a bit.
33612 (define_attr "arch"): Add "onlya8" and "nota8" values.
33613 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
33615 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
33619 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
33621 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
33622 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
33623 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
33624 * passes.c (init_optimization_passes): Move
33625 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
33627 2011-03-25 Kai Tietz <ktietz@redhat.com>
33629 * c-typeck.c (comptypes_internal): Replace target
33630 hook call of comp_type_attributes by version in tree.c file.
33631 * gimple.c (gimple_types_compatible_p_1): Likewise.
33632 * tree-ssa.c (useless_type_conversion_p): Likewise.
33633 * tree.c (build_type_attribute_qual_variant): Likewise.
33634 (attribute_value_equal): New static helper function.
33635 (comp_type_attributes): New function.
33636 (merge_attributes): Use attribute_value_equal for comparison.
33637 (attribute_list_contained): Likewise.
33638 * tree.h (comp_type_attributes): New prototype.
33640 2011-03-25 Richard Guenther <rguenther@suse.de>
33642 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
33643 of complex types at -O0.
33644 (verify_gimple_assign_binary): Likewise.
33645 (verify_gimple_assign_ternary): Likewise.
33647 2011-03-24 Mark Wielaard <mjw@redhat.com>
33649 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
33650 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
33652 2011-03-24 Mark Wielaard <mjw@redhat.com>
33655 * dwarf2out.c (output_abbrev_section): Only write table when
33656 abbrev_die_table_in_use > 1.
33658 2011-02-24 Richard Henderson <rth@redhat.com>
33660 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
33661 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
33662 (alpha_expand_unaligned_load_words): Use extql.
33663 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
33664 (emit_insxl): Handle all modes for consistency.
33666 2011-02-24 Richard Henderson <rth@redhat.com>
33668 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
33669 (alpha_expand_unaligned_load): Likewise.
33670 (alpha_expand_unaligned_store): Likewise.
33671 (alpha_expand_unaligned_load_words): Likewise.
33672 (alpha_expand_unaligned_store_words): Likewise.
33673 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
33674 (alpha_split_lock_test_and_set_12): Likewise.
33675 (print_operand, alpha_fold_builtin_extxx): Likewise.
33676 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
33677 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
33678 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
33679 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
33680 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
33681 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
33682 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
33683 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
33684 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
33685 (extwl, extll, extql): Similarly.
33686 (inswh, inslh, insqh): Similarly.
33687 (mskbl, mskwl, mskll, mskql): Similarly.
33688 (mskwh, msklh, mskqh): Similarly.
33690 2011-02-24 Richard Henderson <rth@redhat.com>
33692 * config/alpha/alpha.md (attribute isa): Add er, ner.
33693 (attribute enabled): Handle them.
33694 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
33696 2011-02-24 Richard Henderson <rth@redhat.com>
33698 * config/alpha/alpha.md (attribute isa): Add vms.
33699 (attribute enabled): Handle it.
33700 (*movsf): Merge *movsf_{nofix,fix,nofp}.
33701 (*movdf): Merge *movdf_{nofix,fix,nofp}.
33702 (*movtf): Rename from *movtf_internal for consistency.
33703 (*movsi): Merge with *movsi_nt_vms.
33704 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
33705 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
33706 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
33707 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
33709 2011-02-24 Richard Henderson <rth@redhat.com>
33711 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
33712 (extendqisi2, extendhisi2): Likewise.
33713 (extendqidi2): Simplify BWX/non-BWX expansions.
33714 (extendhidi2): Similarly.
33716 2011-02-24 Richard Henderson <rth@redhat.com>
33718 * config/alpha/alpha.md (attribute isa): New.
33719 (attribute enabled): New.
33720 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
33721 (zero_extendqisi2, zero_extendqidi2): Similarly.
33722 (zero_extendhisi2, zero_extendhidi2): Similarly.
33723 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
33725 2011-02-24 Richard Henderson <rth@redhat.com>
33727 * config/alpha/predicates.md (input_operand): Revert last change;
33728 update comment to mention 32-bit VMS rather than Windows.
33730 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
33732 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
33733 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
33734 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
33735 * passes.c (init_optimization_passes): Move
33736 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
33738 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
33740 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
33742 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
33744 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
33747 2011-03-24 Jakub Jelinek <jakub@redhat.com>
33750 * simplify-rtx.c (simplify_const_unary_operation): Call
33751 real_convert when changing mode class with FLOAT_EXTEND.
33753 2011-03-24 Nick Clifton <nickc@redhat.com>
33755 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
33756 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
33757 * config/rx/rx.c (rx_option_override): Set align_jumps,
33758 align_loops and align_labels if not set by the user.
33759 (rx_align_for_label): New function.
33760 (rx_max_skip_for_label): New function.
33761 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
33762 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
33763 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
33764 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
33765 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
33767 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
33769 PR rtl-optimization/48263
33770 * optabs.c (expand_binop_directly): Reinstate convert_modes code
33771 and original commutative_p handling. Use maybe_gen_insn.
33773 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33775 * reload.c (find_reloads_subreg_address): Add address_reloaded
33776 parameter and return true there if the full address has been
33778 (find_reloads_toplev): Pass address_reloaded flag.
33779 (find_reloads_address_1): Don't use address_reloaded parameter.
33781 2011-03-24 Jeff Law <law@redhat.com>
33783 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
33784 unused variable "ann".
33785 (remove_unused_locals): Likewise.
33787 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
33790 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
33793 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33795 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
33796 for invalid symbolic addresses.
33797 (s390_secondary_reload): Don't use s390_check_symref_alignment for
33800 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
33802 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
33803 the argument in calls to fold_truth_not_expr.
33805 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
33807 * tree.c (record_node_allocation_statistics): New function.
33808 (make_node_stat, copy_node_stat, build_string): Call it.
33809 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
33810 (build1_stat, build_omp_clause): Likewise.
33812 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
33814 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
33817 2011-03-24 Richard Guenther <rguenther@suse.de>
33819 PR tree-optimization/48271
33820 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
33821 blocks that still exist.
33823 2011-03-24 Richard Guenther <rguenther@suse.de>
33825 PR tree-optimization/48270
33826 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
33827 not free datarefs before ddrs.
33829 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
33831 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
33832 from the address built for a reference with variable offset.
33834 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
33837 * config/i386/i386.md (*movdf_internal_rex64): Do not split
33838 alternatives that can be handled with movq or movabsq insn.
33839 (*movdf_internal): Disable for !TARGET_64BIT.
33840 (*movdf_internal_nointeger): Ditto.
33841 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
33843 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
33845 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
33846 (FUNCTION_ARG_ADVANCE): Likewise.
33847 * tm.texi.in: Change references to them to hook references.
33848 * tm.texi: Regenerate.
33849 * targhooks.c (default_function_arg): Eliminate check for target macro.
33850 (default_function_incoming_arg): Likewise.
33851 (default_function_arg_advance): Likewise.
33852 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
33853 (function_arg_advance): Likewise.
33854 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
33856 2011-03-24 Richard Guenther <rguenther@suse.de>
33858 PR middle-end/48269
33859 * tree-object-size.c (addr_object_size): Do not double-account
33860 for MEM_REF offsets.
33862 2011-03-24 Diego Novillo <dnovillo@google.com>
33864 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
33865 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
33866 (lto_input_data_block): Move from lto-opts.c. Make extern.
33868 (lto_input_string): Rename from input_string. Make extern.
33870 * lto-streamer-out.c (lto_output_string_with_length): Rename from
33871 output_string_with_length.
33872 Output 0 to indicate a non-NULL string. Update all callers to
33874 (lto_output_string): Rename from output_string. Make extern.
33876 (lto_output_decl_state_streams): Make extern.
33877 (lto_output_decl_state_refs): Make extern.
33878 * lto-streamer.h (lto_input_string): Declare.
33879 (lto_input_data_block): Declare.
33880 (lto_output_string): Declare.
33881 (lto_output_string_with_length): Declare.
33882 (lto_output_decl_state_streams): Declare.
33883 (lto_output_decl_state_refs): Declare.
33885 2011-03-24 Richard Guenther <rguenther@suse.de>
33887 PR tree-optimization/46562
33888 * tree.c (build_invariant_address): New function.
33889 * tree.h (build_invariant_address): Declare.
33890 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
33891 a renamed function moved ...
33892 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
33893 Take valueization callback parameter.
33894 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
33895 * gimple-fold.h: New file.
33896 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
33897 (ccp_fold, fold_const_aggregate_ref,
33898 fold_ctor_reference, fold_nonarray_ctor_reference,
33899 fold_array_ctor_reference, fold_string_cst_ctor_reference,
33900 get_base_constructor): Move ...
33901 * gimple-fold.c: ... here.
33902 (gimple_fold_stmt_to_constant_1): New function
33903 split out from ccp_fold. Take a valueization callback parameter.
33904 Valueize all operands.
33905 (gimple_fold_stmt_to_constant): New wrapper function.
33906 (fold_const_aggregate_ref_1): New function split out from
33907 fold_const_aggregate_ref. Take a valueization callback parameter.
33908 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
33909 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
33910 invariant POINTER_PLUS_EXPRs to invariant form.
33911 (vn_valueize): New function.
33912 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
33913 * tree-vrp.c (vrp_valueize): New function.
33914 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
33915 to fold statements to constants.
33916 * tree-ssa-pre.c (eliminate): Properly guard propagation of
33917 function declarations.
33918 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
33919 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
33921 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
33923 * config/h8300/predicates.md (jump_address_operand): Fix register
33926 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
33928 * doc/invoke.texi (max-stores-to-sink): Document.
33929 * params.h (MAX_STORES_TO_SINK): Define.
33930 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
33931 if either vectorization or if-conversion is disabled.
33932 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
33933 tree-vect-data-refs.c vect_equal_offsets.
33934 (dr_equal_offsets_p): New function.
33935 (find_data_references_in_bb): Remove static.
33936 * tree-data-ref.h (find_data_references_in_bb): Declare.
33937 (dr_equal_offsets_p): Likewise.
33938 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
33939 (vect_drs_dependent_in_basic_block): Update calls to
33940 vect_equal_offsets.
33941 (vect_check_interleaving): Likewise.
33942 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
33943 (cond_if_else_store_replacement): Rename to...
33944 (cond_if_else_store_replacement_1): ... this. Change arguments and
33946 (cond_if_else_store_replacement): New function.
33947 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
33948 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
33950 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
33953 * config/arm/arm.md (casesi): Use the gen_int_mode() function
33954 to subtract lower bound instead of GEN_INT().
33956 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
33961 * doc/extend.texi (Alignment): Move section to match order in TOC.
33962 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
33963 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
33965 2011-03-23 Jeff Law <law@redhat.com>
33967 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
33968 before removing the edge.
33970 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
33971 it may have been freed by redirect_branch_edge or
33972 redirect_edge_succ_nodup.
33974 2011-03-23 Richard Guenther <rguenther@suse.de>
33976 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
33977 (check_va_list_escapes): Likewise.
33978 (check_all_va_list_escapes): Likewise.
33980 2011-03-23 Richard Guenther <rguenther@suse.de>
33982 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
33983 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
33984 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
33985 (alias.o): Likewise.
33986 (ipa-type-escape.o): Remove.
33987 (ipa-struct-reorg.o): Likewise.
33988 (GTFILES): Remove ipa-struct-reorg.c.
33989 * alias.c: Do not include ipa-type-escape.h.
33990 * tree-ssa-alias.c: Likewise.
33991 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
33992 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
33993 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
33994 and ipa-type-escape passes.
33995 * tree-pass.h (pass_ipa_type_escape): Remove.
33996 (pass_ipa_struct_reorg): Likewise.
33997 * ipa-struct-reorg.h: Remove.
33998 * ipa-struct-reorg.c: Likewise.
33999 * ipa-type-escape.h: Likewise.
34000 * ipa-type-escape.c: Likewise.
34001 * doc/invoke.texi (-fipa-struct-reorg): Remove.
34002 (--param struct-reorg-cold-struct-ratio): Likewise.
34003 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
34004 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
34005 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
34007 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34009 * config/s390/2084.md: Enable all insn reservations also for z9_ec
34010 cpu attribute value.
34011 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
34012 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
34013 * config/s390/s390.c (processor_flags_table): New constant array.
34014 (s390_handle_arch_option): Remove.
34015 (s390_handle_option): Remove s390_handle_arch_option invocations
34016 and OPT_mwarn_framesize_ handling.
34017 (s390_option_override): Remove s390_handle_arch_option invocation.
34018 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
34020 * config/s390/s390.md (cpu attribute): Add z9_ec value.
34021 * config/s390/s390.opt (s390_tune, s390_arch)
34022 (march=): Replace s390_arch_option enum and values with
34023 processor_type. Set variable name to s390_arch. Set
34024 initialization value.
34025 (mtune=): Replace s390_arch_option with processor_type. Set
34026 variable name to s390_tune. Set initialization value.
34028 2011-03-23 Julian Brown <julian@codesourcery.com>
34030 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
34031 accesses which are not naturally aligned.
34033 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
34036 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
34038 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
34040 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
34041 parameter from "int" to "enum insn_code".
34042 (expand_operand_type): New enum.
34043 (expand_operand): New structure.
34044 (create_expand_operand): New function.
34045 (create_fixed_operand, create_output_operand): Likewise
34046 (create_input_operand, create_convert_operand_to): Likewise.
34047 (create_convert_operand_from, create_address_operand): Likewise.
34048 (create_integer_operand): Likewise.
34049 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
34050 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
34051 (expand_insn, expand_jump_insn): Likewise.
34052 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
34053 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
34054 (expand_movstr, expand_builtin___clear_cache): Likewise.
34055 (expand_builtin_lock_release): Likewise.
34056 * explow.c (allocate_dynamic_stack_space): Likewise.
34057 (probe_stack_range): Likewise. Allow check_stack to FAIL,
34058 and use the default handling in that case.
34059 * expmed.c (check_predicate_volatile_ok): Delete.
34060 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
34061 (emit_cstore): Likewise.
34062 * expr.c (emit_block_move_via_movmem): Likewise.
34063 (set_storage_via_setmem, expand_assignment): Likewise.
34064 (emit_storent_insn, try_casesi): Likewise.
34065 (emit_single_push_insn): Likewise. Allow the expansion to fail.
34066 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
34067 (expand_vec_shift_expr, expand_binop_directly): Likewise.
34068 (expand_twoval_unop, expand_twoval_binop): Likewise.
34069 (expand_unop_direct, emit_indirect_jump): Likewise.
34070 (emit_conditional_move, vector_compare_rtx): Likewise.
34071 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
34072 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
34073 (expand_sync_lock_test_and_set): Likewise.
34074 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
34075 (emit_unop_insn): Likewise.
34076 (expand_copysign_absneg): Change icode to an insn_code.
34077 (create_convert_operand_from_type): New function.
34078 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
34079 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
34080 (expand_insn, expand_jump_insn): Likewise.
34081 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
34082 than const_int_operand for operand 2.
34084 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34086 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
34089 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
34091 * emit-rtl.c (emit_pattern_before_noloc): New function.
34092 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
34093 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
34094 (emit_pattern_after_noloc): New function.
34095 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
34096 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
34098 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
34100 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
34101 (__ffsDI2): Likewise.
34103 2011-03-22 Richard Henderson <rth@redhat.com>
34105 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
34106 of !TARGET_ABI_OPEN_VMS.
34107 (alpha_trampoline_init, alpha_start_function): Likewise.
34108 (alpha_expand_epilogue, alpha_file_start): Likewise.
34109 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
34110 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
34111 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
34112 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
34113 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
34115 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34117 * config/s390/s390-opts.h: New.
34118 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
34119 s390_arch_flags, s390_warn_framesize, s390_stack_size,
34120 s390_stack_guard): Remove.
34121 (s390_handle_arch_option): Return void. Take enum
34122 s390_arch_option value instead of string and searching array.
34123 (s390_handle_option): Don't assert that global structures are in
34124 use. Access variables via opts pointer. Use error_at. Don't use
34125 sscanf for -mstack-guard= or -mstack-size=. Update call to
34126 s390_handle_arch_option.
34127 (s390_option_override): Update call to s390_handle_arch_option.
34128 (s390_emit_prologue): Use %d format for s390_stack_size in
34129 diagnostic. Use %wd for HOST_WIDE_INT.
34130 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
34131 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
34132 * config/s390/s390.opt (config/s390/s390-opts.h): New
34133 HeaderInclude entry.
34134 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
34135 s390_arch_flags, s390_warn_framesize): New Variable entries.
34136 (s390_arch_option): New Enum and EnumValue entries.
34137 (march=): Use Enum instead of Var.
34138 (mstack-guard=, mstack-size=): Use UInteger and Var.
34139 (mtune=): Use Enum.
34141 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34143 * config/score/score.c (score_handle_option): Don't assert that
34144 global structures are in use. Access target_flags via opts
34145 pointer. Use value of -march= option to determine target_flags
34147 * config/score/score.opt (march=): Use Enum.
34148 (score_arch): New Enum and EnumValue entries.
34150 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34152 * config/mep/mep.c (option_mtiny_specified): Remove.
34153 (mep_option_override): Move register handling for -mivc2 from
34154 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
34155 instead of option_mtiny_specified.
34156 (mep_handle_option): Access target_flags via opts pointer. Don't
34157 assert that global structures are in use. Defer part of -mivc2
34158 handling and move it to mep_option_override.
34159 * config/mep/mep.opt (IVC2): New Mask entry.
34160 (mivc2): Use Var and Defer instead of Mask.
34162 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34164 * config/v850/v850-opts.h: New.
34165 * config/v850/v850.c (small_memory): Replace with
34166 small_memory_physical_max array. Make that array static const.
34167 (v850_handle_memory_option): Take integer value of argument. Take
34168 gcc_options pointer, option text and location. Return void.
34169 Update for changes to small memory structures.
34170 (v850_handle_option): Access target_flags via opts pointer. Don't
34171 assert that global structures are in use. Update calls to
34172 v850_handle_memory_option.
34173 (v850_encode_data_area): Update references to small memory settings.
34174 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
34175 (enum small_memory_type): Move to v850-opts.h.
34176 * config/v850/v850.opt (config/v850/v850-opts.h): New
34177 HeaderInclude entry.
34178 (small_memory_max): New Variable entry.
34179 (msda): Replace by pair of options msda= and msda-. Use UInteger.
34180 (mtda, mzda): Likewise.
34182 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34184 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
34185 pointer. Don't assert that global structures are in use.
34187 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34189 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
34190 via opts pointer. Don't assert that global structures are in use.
34192 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34194 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
34195 (munix=93): Use Var.
34196 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
34197 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
34198 * config/pa/pa-opts.h: New.
34199 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
34200 (pa_handle_option): Don't assert that global structures are in
34201 use. Access target_flags via opts pointer. Don't handle
34202 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
34204 (pa_option_override): Handle deferred OPT_mfixed_range_.
34206 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34208 * config/mn10300/mn10300-opts.h: New.
34209 * config/mn10300/mn10300.c (mn10300_processor,
34210 mn10300_tune_string): Remove.
34211 (mn10300_handle_option): Don't assert that global structures are
34212 in use. Access mn10300_processor via opts pointer. Don't handle
34214 * config/mn10300/mn10300.h (enum processor_type): Move to
34216 (mn10300_processor): Remove.
34217 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
34218 HeaderInclude entry.
34219 (mn10300_processor): New Variable entry.
34222 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34224 * config/microblaze/microblaze.c: Don't include opts.h.
34225 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
34226 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
34227 (mno-clearbss): Use Var and Warn.
34229 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34231 * config/m32r/m32r-opts.h: New.
34232 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
34233 (m32r_handle_option): Don't assert that global structures are in
34234 use. Access target_flags and m32r_cache_flush_func via opts
34235 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
34236 OPT_mno_flush_trap here.
34237 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
34238 include of m32r-opts.h.
34239 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
34240 HeaderInclude entry.
34241 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
34242 (mmodel=): Use Enum and Var.
34243 (m32r_model): New Enum and EnumValue entries.
34244 (mno-flush-trap): Use Var.
34245 (msdata=): Use Enum and Var.
34246 (m32r_sdata): New Enum and EnumValue entries.
34248 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34250 * config/m32c/m32c.c: Don't include opts.h.
34251 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
34252 m32c_handle_option): Remove.
34253 (m32c_option_override): Check global_options_set.x_target_memregs
34254 instead of target_memregs_set.
34255 * config/m32c/m32c.h (target_memregs): Remove.
34256 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
34259 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34261 * config/iq2000/iq2000-opts.h: New.
34262 * config/iq2000/iq2000.c: Don't include opts.h.
34263 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
34264 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
34265 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
34266 HeaderInclude entry.
34267 (iq2000_tune): New Variable entry.
34268 (march=): Add comment. Use Enum.
34269 (iq2000_arch): New Enum and EnumValue entries.
34270 (mcpu=): Use Enum and Var.
34271 (iq2000_tune): New Enum and EnumValue entries.
34273 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34275 * config/ia64/ia64-opts.h: New.
34276 * config/ia64/ia64.c (ia64_tune): Remove.
34277 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
34278 here. Use error_at.
34279 (ia64_option_override): Handle deferred OPT_mfixed_range_.
34280 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
34281 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
34282 HeaderInclude entry.
34283 (ia64_tune): New Variable entry.
34284 (mfixed-range=): Use Defer and Var.
34285 (mtune=): Use Enum and Var.
34286 (ia64_tune): New Enum and EnumValue entries.
34288 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34290 * config/frv/frv-opts.h: New.
34291 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
34293 (frv_cpu_type): Remove.
34294 * config/frv/frv.c: Don't include opts.h.
34295 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
34296 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
34297 (frv_cpu_type): New Variable entry.
34298 (frv_cpu): New Enum and EnumValue entries.
34300 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34302 * config/cris/cris.c (cris_handle_option): Access target_flags via
34303 opts pointer. Don't assert that global structures are in use.
34304 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
34305 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
34307 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34309 * config/bfin/bfin-opts.h: New.
34310 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
34311 bfin_si_revision, bfin_workarounds): Remove.
34312 (bfin_cpus): Make static const.
34313 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
34314 not bfin_lib_id_given.
34315 (bfin_handle_option): Don't set bfin_lib_id_given. Access
34316 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
34317 pointer. Use error_at. Don't assert that global structures are in use.
34318 * config/bfin/bfin.h: Include bfin-opts.h.
34319 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
34320 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
34321 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
34322 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
34325 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34327 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
34328 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
34329 or -msoft-float here.
34330 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
34331 -msoft-float and -mhard-float.
34332 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
34333 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
34335 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
34337 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
34338 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
34340 (LIBGCC_SPEC): Don't handle -msoft-float.
34341 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
34343 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
34345 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
34346 -mfloat-abi=*, not -msoft-float and -mhard-float.
34347 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
34349 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
34350 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
34351 mhard-float and msoft-float.
34352 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
34353 mfloat-abi=soft in comments, not mhard-float and msoft-float.
34354 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
34355 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
34357 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
34358 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
34360 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
34362 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
34365 2011-03-22 Richard Henderson <rth@redhat.com>
34367 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
34368 TARGET_ABI_WINDOWS_NT.
34369 (alpha_output_function_end_prologue): Likewise.
34370 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
34371 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
34372 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
34373 (trap, *movsi_nt_vms): Likewise.
34374 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
34375 (*tablejump_osf_nt_internal): Remove.
34376 * config/alpha/predicates.md (input_operand): Only test Pmode.
34378 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34380 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
34381 via opts pointer. Use error_at. Don't assert that global
34382 structures are in use.
34384 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34386 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
34387 (ix86_handle_option): Access ix86_isa_flags and
34388 ix86_isa_flags_explicit via opts pointer. Don't assert that
34389 global structures are in use.
34390 (ix86_function_specific_save, ix86_function_specific_restore):
34391 Update ix86_isa_flags_explicit field name.
34392 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
34393 (ix86_isa_flags_explicit): Rename TargetSave entry to
34394 x_ix86_isa_flags_explicit.
34396 2011-03-22 Richard Henderson <rth@redhat.com>
34398 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
34399 (alpha_option_override, direct_return): Likewise.
34400 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
34401 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
34402 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
34403 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
34404 (alpha_expand_epilogue, alpha_end_function): Likewise.
34405 (alpha_init_libfuncs): Likewise.
34406 (struct machine_function): Remove unicosmk members.
34407 (print_operand) ['t']: Remove.
34408 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
34409 unicosmk_output_module_name, unicosmk_output_common,
34410 current_section_align, unicosmk_output_text_section_asm_op,
34411 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
34412 unicosmk_section_type_flags, unicosmk_unique_section,
34413 unicosmk_asm_named_section, unicosmk_insert_attributes,
34414 unicosmk_output_align, unicosmk_defer_case_vector,
34415 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
34416 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
34417 unicosmk_output_ssib, unicosmk_add_call_info_word,
34418 unicosmk_extern_head, unicosmk_output_default_externs,
34419 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
34420 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
34421 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
34422 * config/alpha/alpha-protos.h: Update.
34423 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
34424 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
34425 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
34426 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
34427 (*mulsi_se, mulvsi3): Likewise.
34428 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
34429 (*divmodsi_internal, call, call_value, realign): Likewise.
34430 (moddi3, umoddi3): Likewise; remove duplicate expander.
34431 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
34432 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
34433 (*movdi_nofix): Remove r/U alternative.
34434 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
34435 * config/alpha/constraints.md ("U"): Remove.
34436 * config/alpha/predicates.md (call_operand"): Don't test
34437 TARGET_ABI_UNICOSMK.
34439 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34441 * target.def (handle_option): Take gcc_options and
34442 cl_decoded_option pointers and location_t.
34443 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
34444 * doc/tm.texi: Regenerate.
34445 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
34446 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
34447 * lto-opts.c (lto_reissue_options): Generate option structure for
34448 targetm.handle_option call.
34449 * opts.c (target_handle_option): Update call to
34450 targetm.handle_option. Remove assertions about values now passed
34452 * targhooks.c (default_target_handle_option): New.
34453 * targhooks.h (default_target_handle_option): Declare.
34454 * config/alpha/alpha.c: Include opts.h.
34455 (alpha_handle_option): Update to new hook interface.
34456 * config/arm/arm.c: Include opts.h.
34457 (arm_handle_option): Update to new hook interface.
34458 * config/arm/t-arm (arm.o): Update dependencies.
34459 * config/bfin/bfin.c: Include opts.h.
34460 (bfin_handle_option): Update to new hook interface.
34461 * config/cris/cris.c: Include opts.h.
34462 (cris_handle_option): Update to new hook interface.
34463 * config/frv/frv.c: Include opts.h.
34464 (frv_handle_option): Update to new hook interface.
34465 * config/i386/i386.c: Include opts.h.
34466 (ix86_handle_option): Update to new hook interface.
34467 (ix86_valid_target_attribute_inner_p): Generate option structure
34468 for call to ix86_handle_option.
34469 * config/i386/t-i386 (i386.o): Update dependencies.
34470 * config/ia64/ia64.c: Include opts.h.
34471 (ia64_handle_option): Update to new hook interface.
34472 * config/ia64/t-ia64 (ia64.o): Update dependencies.
34473 * config/iq2000/iq2000.c: Include opts.h.
34474 (iq2000_handle_option): Update to new hook interface.
34475 * config/m32c/m32c.c: Include opts.h.
34476 (m32c_handle_option): Update to new hook interface.
34477 * config/m32r/m32r.c: Include opts.h.
34478 (m32r_handle_option): Update to new hook interface.
34479 * config/m68k/m68k.c: Include opts.h.
34480 (m68k_handle_option): Update to new hook interface.
34481 * config/mep/mep.c: Include opts.h.
34482 (mep_handle_option): Update to new hook interface.
34483 * config/microblaze/microblaze.c: Include opts.h.
34484 (microblaze_handle_option): Update to new hook interface.
34485 * config/mips/mips.c: Include opts.h.
34486 (mips_handle_option): Update to new hook interface.
34487 * config/mn10300/mn10300.c: Include opts.h.
34488 (mn10300_handle_option): Update to new hook interface.
34489 * config/pa/pa.c: Include opts.h.
34490 (pa_handle_option): Update to new hook interface.
34491 * config/pdp11/pdp11.c: Include opts.h.
34492 (pdp11_handle_option): Update to new hook interface.
34493 * config/rs6000/rs6000.c: Include opts.h.
34494 (rs6000_handle_option): Update to new hook interface.
34495 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
34496 * config/rx/rx.c: Include opts.h.
34497 (rx_handle_option): Update to new hook interface.
34498 * config/s390/s390.c: Include opts.h.
34499 (s390_handle_option): Update to new hook interface.
34500 * config/score/score.c: Include opts.h.
34501 (score_handle_option): Update to new hook interface.
34502 * config/sh/sh.c: Include opts.h.
34503 (sh_handle_option): Update to new hook interface.
34504 * config/sparc/sparc.c: Include opts.h.
34505 (sparc_handle_option): Update to new hook interface.
34506 * config/v850/v850.c: Include opts.h.
34507 (v850_handle_option): Update to new hook interface.
34509 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34511 * gcc.c (driver_unknown_option_callback): Only permit and save
34512 unknown -Wno- options.
34513 (driver_wrong_lang_callback): Save options directly instead of via
34514 driver_unknown_option_callback.
34516 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
34518 * combine.c (simplify_set): Try harder to find the best CC mode when
34519 simplifying a nested COMPARE on the RHS.
34521 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34523 * config/alpha/gnu.h: Remove.
34524 * config/arc: Remove directory.
34525 * config/arm/netbsd.h: Remove.
34526 * config/arm/t-pe: Remove.
34527 * config/crx: Remove directory.
34528 * config/i386/netbsd.h: Remove.
34529 * config/m68hc11: Remove directory.
34530 * config/m68k/uclinux-oldabi.h: Remove.
34531 * config/mcore/mcore-pe.h: Remove.
34532 * config/mcore/t-mcore-pe: Remove.
34533 * config/netbsd-aout.h: Remove.
34534 * config/rs6000/gnu.h: Remove.
34535 * config/sh/sh-symbian.h: Remove.
34536 * config/sh/symbian-base.c: Remove.
34537 * config/sh/symbian-c.c: Remove.
34538 * config/sh/symbian-cxx.c: Remove.
34539 * config/sh/symbian-post.h: Remove.
34540 * config/sh/symbian-pre.h: Remove.
34541 * config/sh/t-symbian: Remove.
34542 * config/svr3.h: Remove.
34543 * config/vax/netbsd.h: Remove.
34544 * config.build: Don't handle i[34567]86-*-pe.
34545 * config.gcc: Remove handling of deprecations for most deprecated
34547 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
34548 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
34549 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
34550 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
34551 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
34552 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
34554 * config.host: Don't handle i[34567]86-*-pe.
34555 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
34556 (ASM_SPEC32): Don't handle -mcall-gnu.
34557 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
34559 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
34560 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
34561 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
34562 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
34563 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
34564 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
34565 conditional on SYMBIAN.
34566 * configure.ac: Don't handle powerpc*-*-gnu*.
34567 * configure: Regenerate.
34568 * doc/extend.texi (interrupt attribute): Don't mention CRX.
34569 * doc/install-old.texi (m6811, m6812): Don't mention.
34570 * doc/install.texi (arc-*-elf*): Don't document multilib option.
34571 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
34572 (m68k-uclinuxoldabi): Don't mention.
34573 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
34575 (-mcall-gnu): Remove.
34576 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
34577 families): Remove constraint documentation.
34579 2011-03-22 Marius Strobl <marius@FreeBSD.org>
34581 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
34582 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
34583 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
34585 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
34588 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
34589 vector when peeking at the next token for vector, don't expand the
34592 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
34594 * config/avr/avr-protos.h (expand_epilogue): Change prototype
34595 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
34596 * config/avr/avr.c (init_cumulative_args)
34597 (avr_function_arg_advance): Use it.
34598 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
34600 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
34601 (avr_function_ok_for_sibcall): ...this new function.
34602 (avr_lookup_function_attribute1): New static Function.
34603 (avr_naked_function_p, interrupt_function_p)
34604 (signal_function_p, avr_OS_task_function_p)
34605 (avr_OS_main_function_p): Use it.
34606 * config/avr/avr.md ("sibcall", "sibcall_value")
34607 ("sibcall_epilogue"): New expander.
34608 ("*call_insn", "*call_value_insn"): New insn.
34609 ("call_insn", "call_value_insn"): Remove
34610 ("call", "call_value", "epilogue"): Change expander to handle
34613 2011-03-21 Nick Clifton <nickc@redhat.com>
34615 * doc/invoke.texi (Overall Options): Move closing brace to end of
34617 (Optimization Options): Add missing @gol.
34618 (Directory Options): Likewise.
34619 (i386 and x86-64 Options): Likewise.
34620 (RS6000 and PowerPC Options): Likewise.
34621 (i386 and x86-64 Windows Options): Likewise.
34622 (V850 Options): Add text missing from descriptions.
34624 2011-03-22 Richard Henderson <rth@redhat.com>
34626 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
34627 (avr_incoming_return_addr_rtx): New.
34628 (emit_push_byte): New.
34629 (expand_prologue): Use it. Remove incorrect dwarf annotation for
34630 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
34631 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
34632 (emit_pop_byte): New.
34633 (expand_epilogue): Use it. Pop frame pointer by bytes.
34634 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
34635 (INCOMING_RETURN_ADDR_RTX): New.
34636 (INCOMING_FRAME_SP_OFFSET): New.
34637 (ARG_POINTER_CFA_OFFSET): New.
34638 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
34639 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
34642 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
34644 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
34646 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
34647 (FUNCTION_ARG_ADVANCE): Likewise.
34648 * tm.texi.in: Change references to them to hook references.
34649 * tm.texi: Regenerate.
34650 * targhooks.c (default_function_arg): Eliminate check for target
34652 (default_function_incoming_arg): Likewise.
34653 (default_function_arg_advance): Likewise.
34654 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
34655 (function_arg_advance): Likewise.
34656 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
34658 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
34660 * tree.c (build_call_1): New function.
34661 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
34663 2011-03-22 Richard Guenther <rguenther@suse.de>
34665 PR tree-optimization/48228
34666 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
34667 for single-arg PHIs.
34669 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
34671 PR rtl-optimization/48143
34672 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
34673 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
34674 sse2_cvtps2pd): Likewise.
34676 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34678 * recog.c (canonicalize_change_group): Use validate_unshare_change.
34680 2011-03-22 Richard Guenther <rguenther@suse.de>
34682 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
34683 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
34684 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
34685 and REALIGN_LOAD_EXPR.
34686 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
34687 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
34688 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
34689 DOT_PROD_EXPR case ...
34690 (expand_expr_real_2): ... here.
34691 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
34692 and REALIGN_LOAD_EXPR.
34693 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
34694 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
34695 (vect_create_epilog_for_reduction): Likewise.
34696 (vectorizable_reduction): Likewise.
34697 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
34698 * tree-vect-stmts.c (vectorizable_load): Likewise.
34700 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
34702 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
34704 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34706 * config/s390/s390.c (s390_delegitimize_address): Fix offset
34707 handling for PLTOFF/GOTOFF.
34709 2011-03-22 Nick Clifton <nickc@redhat.com>
34711 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
34712 trailing backslash from the end of the macro definition.
34714 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34716 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
34719 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
34721 * expr.h (prepare_operand): Move to...
34722 * optabs.h (prepare_operand): ...here and change the insn code
34723 parameter from "int" to "enum insn_code".
34724 (insn_operand_matches): Declare.
34725 * expr.c (init_expr_target): Use insn_operand_matches.
34726 (compress_float_constant): Likewise.
34727 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
34728 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
34729 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
34730 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
34732 (gen_cond_trap): Likewise.
34733 (prepare_operand): Likewise. Change icode to an insn_code.
34734 (insn_operand_matches): New function.
34735 * reload.c (find_reloads_address_1): Use insn_operand_matches.
34736 * reload1.c (gen_reload): Likewise.
34737 * targhooks.c (default_secondary_reload): Likewise.
34739 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
34741 * config/alpha/alpha.md (unspec): New define_c_enum.
34744 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
34747 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
34748 between a call and its CALL_ARG_LOCATION note.
34750 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
34752 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
34754 2011-03-21 Jakub Jelinek <jakub@redhat.com>
34758 * c-common.c (shorten_compare): If primopN is first sign-extended
34759 to opN and then zero-extended to result type, set primopN to opN.
34761 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
34763 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
34764 for barrier handlers.
34766 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
34768 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
34769 UNSPEC constants to be in the unspec enumeration, and redefine
34770 all UNSPECV constants to be in the unspecv enumeration, so that
34771 dumps print which unspec/unspec_volatile this is.
34772 * config/rs6000/vector.md (UNSPEC_*): Ditto.
34773 * config/rs6000/paired.md (UNSPEC_*): Ditto.
34774 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
34775 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
34776 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
34778 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
34779 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
34780 UNSPECV_LWSYNC, since these are used as unspec_volatile.
34781 * config/rs6000/sync.md (isync, lwsync): Ditto.
34783 2011-03-21 Richard Guenther <rguenther@suse.de>
34785 * params.def (lto-min-partition): Fix typo.
34787 2011-03-21 Richard Guenther <rguenther@suse.de>
34790 * c-decl.c (grokdeclarator): Drop to the main variant only
34791 for array types. Drop flag_gen_aux_info check.
34793 2011-03-21 Richard Guenther <rguenther@suse.de>
34795 PR translation/47911
34796 * params.def (lto-partitions): Fix typo.
34797 (lto-min-partition): Fix wording.
34799 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
34801 * config/rs6000/t-freebsd: Remove duplication from file.
34803 2011-03-21 Richard Guenther <rguenther@suse.de>
34805 PR middle-end/47661
34806 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
34808 2011-03-21 Richard Guenther <rguenther@suse.de>
34811 * params.def (lto-partitions): Require at least 1 partition.
34813 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34815 * gthr-solaris.h: Remove.
34816 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
34817 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
34818 (LIB_SPEC): Likewise.
34819 * config/sol2.opt (threads): Remove.
34820 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
34821 (sparc*-*-solaris2*): Likewise.
34822 * configure.ac (enable_threads): Enable solaris support.
34823 * configure: Regenerate.
34824 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
34825 * doc/install.texi (Configuration, --enable-threads=lib): Remove
34828 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34830 * config.gcc: Obsolete *-*-solaris2.8*.
34831 * doc/install.texi (Specific, *-*-solaris2*): Document it.
34833 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34836 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
34837 reference. Solaris 8 perl works.
34839 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34842 * doc/install.texi (Prerequisites): Move jar etc. up.
34843 Explain support library version requirements.
34845 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34848 * doc/install.texi (Prerequisites): Move Perl to build
34849 requirements. Always necessary on Solaris 2 with Sun ld.
34851 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34853 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
34855 (Specific, i?86-*-solaris2.[89]): Likewise.
34856 (Specific, i?86-*-solaris2.10): Likewise.
34857 (Specific, mips-sgi-irix6): Likewise.
34858 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
34859 Update for binutils 2.21.
34861 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34863 * configure.ac (gcc_cv_lto_plugin): Fix typo.
34864 Allow -fuse-linker-plugin for non-default plugin linker.
34865 * configure: Regenerate.
34867 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
34870 * gengtype.c (files_rules): Added rule for cp/parser.h.
34872 2011-03-21 Jakub Jelinek <jakub@redhat.com>
34875 * config/s390/s390.c (s390_delegitimize_address): Don't call
34876 lowpart_subreg if orig_x has BLKmode.
34878 2011-03-21 Kai Tietz <ktietz@redhat.com>
34881 * doc/plugins.texi: Adjust documentation for plugin register_callback.
34882 * tree.h (attribute_spec): Add new member affects_type_identity.
34883 * attribs.c (empty_attribute_table): Adjust attribute_spec
34885 * config/alpha/alpha.c: Likewise.
34886 * config/arc/arc.c: Likewise.
34887 * config/arm/arm.c: Likewise.
34888 * config/avr/avr.c: Likewise.
34889 * config/bfin/bfin.c: Likewise.
34890 * config/crx/crx.c: Likewise.
34891 * config/darwin.h: Likewise.
34892 * config/h8300/h8300.c: Likewise.
34893 * config/i386/cygming.h: Likewise.
34894 * config/i386/i386.c: Likewise.
34895 * config/ia64/ia64.c: Likewise.
34896 * config/m32c/m32c.c: Likewise.
34897 * config/m32r/m32r.c: Likewise.
34898 * config/m68hc11/m68hc11.c: Likewise.
34899 * config/m68k/m68k.c: Likewise.
34900 * config/mcore/mcore.c: Likewise.
34901 * config/mep/mep.c: Likewise.
34902 * config/microblaze/microblaze.c: Likewise.
34903 * config/mips/mips.c: Likewise.
34904 * config/rs6000/rs6000.c: Likewise.
34905 * config/rx/rx.c: Likewise.
34906 * config/sh/sh.c: Likewise.
34907 * config/sol2.h: Likewise.
34908 * config/sparc/sparc.c: Likewise.
34909 * config/spu/spu.c: Likewise.
34910 * config/stormy16/stormy16.c: Likewise.
34911 * config/v850/v850.c: Likewise.
34913 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
34915 * simplify-rtx.c (simplify_binary_operation_1): Handle
34916 (xor (and A B) C) case when B and C are both constants.
34918 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
34920 * tree-dfa.c (add_referenced_var): Fix typo in comment.
34922 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
34925 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
34927 2011-03-20 Jakub Jelinek <jakub@redhat.com>
34929 PR rtl-optimization/48156
34930 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
34931 assume df and df_lr are not NULL.
34933 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
34936 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
34937 between a call and its CALL_ARG_LOCATION note.
34939 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
34942 * config/sh/sh.c (find_barrier): Don't emit a constant pool
34943 between a call and its corresponding CALL_ARG_LOCATION note.
34945 2011-03-19 Anatoly Sokolov <aesok@post.ru>
34947 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
34948 instead of loop. Use HARD_REGISTER_NUM_P predicate.
34949 * haifa-sched.c (setup_ref_regs): Ditto.
34950 * caller-save.c (add_used_regs_1): Ditto.
34951 * dse.c (look_for_hardregs): Ditto.
34952 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
34953 * sched-rgn.c (check_live_1): Ditto.
34955 2011-03-18 Joseph Myers <joseph@codesourcery.com>
34957 * c-decl.c (diagnose_mismatched_decls): Give an error for
34958 redefining a typedef with variably modified type.
34960 2011-03-18 Joseph Myers <joseph@codesourcery.com>
34962 * c-decl.c (grokfield): Don't allow typedefs for structures or
34963 unions with no tag by default.
34964 * doc/extend.texi (Unnamed Fields): Update.
34966 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
34968 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
34969 Rewrite using indirect functions.
34970 (lwp_slwpcb): Ditto.
34971 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
34972 (avx_vinsertf128<mode>): Ditto.
34974 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34976 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
34979 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34981 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
34982 splitting between a call and its corresponding CALL_ARG_LOCATION note.
34984 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
34986 PR rtl-optimization/48170
34987 * gcse.c (hoist_code): Remove bogus asserts.
34989 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
34991 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
34992 computation for prologue/epilogue.
34994 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34996 * Makefile.in (check-consistency): Remove.
34998 2011-03-18 Jakub Jelinek <jakub@redhat.com>
35001 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
35002 arange_table_in_use is 0, but either text_section_used or
35003 cold_text_section_used is true. Don't call it if
35004 !info_section_emitted.
35006 2011-03-18 Anatoly Sokolov <aesok@post.ru>
35008 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
35009 FUNCTION_VALUE_REGNO_P): Remove.
35010 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
35012 * config/avr/avr.c (avr_ret_register): Make static inline.
35013 (avr_function_value_regno_p): New function.
35014 (avr_libcall_value): Make static. Add 'func' argument.
35015 (avr_function_value): Make static. Rename 'func' argument to
35016 'fn_decl_or_type', forward it to avr_libcall_value. Call
35017 avr_ret_register function instead of RET_REGISTER macro.
35018 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
35020 2011-03-18 Jason Merrill <jason@redhat.com>
35023 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
35025 2011-03-18 Richard Guenther <rguenther@suse.de>
35027 * doc/install.texi (--enable-gold): Remove.
35028 (--with-plugin-ld): Document.
35029 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
35031 2011-03-18 Andrew Pinski <pinskia@gmail.com>
35033 PR middle-end/47790
35034 * expr.c (optimize_bitfield_assignment_op): Revamp to work
35035 again after expansion changes.
35037 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
35039 * combine.c (try_combine): Do simplification only call of
35040 subst() on i2 even when i1 is present. Update comments.
35042 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
35044 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
35045 and UNSPEC_PCREL_SYMOFF.
35047 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35049 * config/s390/s390.md: Use define_c_enum for the unspec constant
35052 2011-03-18 Richard Henderson <rth@redhat.com>
35053 Jakub Jelinek <jakub@redhat.com>
35056 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
35057 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
35059 2011-03-17 Anatoly Sokolov <aesok@post.ru>
35061 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
35062 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
35063 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
35064 Change return type to bool.
35065 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
35067 2011-03-17 Jakub Jelinek <jakub@redhat.com>
35070 * var-tracking.c (prepare_call_arguments): If CALL target
35071 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
35072 pc instead of looking it up using cselib_lookup and use
35073 Pmode for it if x has VOIDmode.
35074 * dwarf2out.c (gen_subprogram_die): If also both first and
35075 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
35078 * function.c (assign_parms): For data.passed_pointer parms
35079 use MEM of data.entry_parm instead of data.entry_parm itself
35080 as DECL_INCOMING_RTL.
35081 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
35082 also when passed and declared mode is the same, DECL_RTL
35083 is a MEM with pseudo as address and DECL_INCOMING_RTL is
35086 2011-03-16 Jeff Law <law@redhat.com>
35088 PR rtl-optimization/37273
35089 * ira-costs.c (scan_one_insn): Detect constants living in memory and
35090 handle them like argument loads from stack slots. Do not double
35091 count memory for memory constants and argument loads from stack slots.
35093 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
35096 * var-tracking.c (prepare_call_arguments): Check SUBREG.
35098 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
35101 * config/i386/i386.opt: Add Save to -mavx and -mfma.
35103 2011-03-17 Jakub Jelinek <jakub@redhat.com>
35106 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
35108 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
35109 Clear call_arg_locations and call_arg_loc_last always.
35111 PR middle-end/48152
35112 * var-tracking.c (prepare_call_arguments): If argument needs to be
35113 passed by reference, adjust argtype and mode.
35115 2011-03-17 Richard Guenther <rguenther@suse.de>
35117 PR middle-end/48134
35118 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
35119 a value make sure to fold the statement.
35121 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
35124 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
35125 return condition with !cfun->calls_alloca.
35127 2011-03-17 Richard Guenther <rguenther@suse.de>
35130 * lto-cgraph.c (input_overwrite_node): Clear the abstract
35131 origin for decls in other ltrans units.
35132 (input_varpool_node): Likewise.
35134 2011-03-17 Richard Guenther <rguenther@suse.de>
35136 PR middle-end/48165
35137 * tree-object-size.c (compute_object_offset): Properly return
35138 the offset operand of MEM_REFs as sizetype.
35140 2011-03-17 Jakub Jelinek <jakub@redhat.com>
35142 PR rtl-optimization/48141
35143 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
35144 * dse.c: Include params.h.
35145 (active_local_stores_len): New variable.
35146 (add_wild_read, dse_step1): Clear it when setting active_local_stores
35148 (record_store, check_mem_read_rtx): Decrease it when removing
35150 (scan_insn): Likewise. Increase it when adding to chain, if it
35151 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
35152 set active_local_stores to NULL before the addition.
35153 * Makefile.in (dse.o): Depend on $(PARAMS_H).
35155 PR rtl-optimization/48141
35156 * dse.c (record_store): If no positions are needed in an insn
35157 that cannot be deleted, at least unchain it from active_local_stores.
35159 2011-03-16 Dodji Seketeli <dodji@redhat.com>
35162 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
35163 (lookup_type_die_strip_naming_typedef): ... here.
35164 (get_context_die): Use it.
35165 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
35166 the anonymous struct named by the naming typedef.
35168 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
35171 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
35172 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
35174 2011-03-16 Jeff Law <law@redhat.com>
35176 * tree-vrp.c (identify_jump_threads): Slightly simplify type
35177 check for operands of conditional. Allow type to be a pointer.
35179 2011-03-16 Richard Guenther <rguenther@suse.de>
35181 PR tree-optimization/48149
35182 * fold-const.c (fold_binary_loc): Fold
35183 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
35185 2011-03-16 Richard Guenther <rguenther@suse.de>
35187 PR tree-optimization/26134
35188 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
35189 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
35190 (non_rewritable_mem_ref_base): Handle complex type component
35191 accesses, constrain offsets for vector and complex extracts
35194 2011-03-16 Richard Guenther <rguenther@suse.de>
35196 PR tree-optimization/48146
35197 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
35198 operands avoiding the need for renaming.
35200 2011-03-16 Richard Guenther <rguenther@suse.de>
35202 * gimple-fold.c (maybe_fold_reference): Open-code relevant
35203 constant folding. Move MEM_REF canonicalization first.
35204 Rely on fold_const_aggregate_ref for initializer folding.
35205 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
35207 2011-03-16 Jakub Jelinek <jakub@redhat.com>
35209 PR middle-end/48136
35210 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
35211 arg0/arg1 or their arguments are always fold converted to matching
35214 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
35217 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35220 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
35221 Handle in-tree gold.
35222 (ld_vers): Extract binutils version for gold.
35223 (gcc_cv_ld_hidden): Handle gold here.
35224 (gcc_cv_lto_plugin): Determine level of linker plugin support.
35225 * configure: Regenerate.
35226 * config.in: Regenerate.
35227 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
35228 -fuse-linker-plugin otherwise.
35229 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
35230 (LINK_COMMAND_SPEC): Use it.
35231 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
35233 2011-03-16 Jakub Jelinek <jakub@redhat.com>
35235 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
35236 * calls.c: Remove debug.h include.
35237 (emit_call_1): Don't call virtual_call_token debug hook.
35238 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
35239 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
35240 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
35241 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
35242 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
35243 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
35244 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
35245 dwarf2out_virtual_call): Remove.
35246 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
35247 copy_call_info and virtual_call hooks.
35248 (dwarf2out_init): Don't initialize vcall_insn_table,
35249 debug_dcall_section and debug_vcall_section.
35250 (prune_unused_types): Don't mark nodes from dcall_table.
35251 (dwarf2out_finish): Don't output dcall or vcall tables.
35252 * final.c (final_scan_insn): Don't call direct_call or
35253 virtual_call debug hooks.
35254 * debug.h (struct gcc_debug_hooks): Remove direct_call,
35255 virtual_call_token, copy_call_info and virtual_call hooks.
35256 (debug_nothing_uid): Remove prototype.
35257 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
35258 copy_call_info and virtual_call hooks.
35259 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
35260 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
35261 * debug.c (do_nothing_debug_hooks): Likewise.
35262 (debug_nothing_uid): Remove.
35263 * doc/invoke.texi (-fenable-icf-debug): Remove.
35264 * common.opt (-fenable-icf-debug): Likewise.
35266 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
35267 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
35268 call's MEM. Handle functions returning aggregate through a hidden
35269 first pointer. For virtual calls add clobbered pc to call arguments
35271 * dwarf2out.c (gen_subprogram_die): Emit
35272 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
35276 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
35277 * rtl.h (ENTRY_VALUE_EXP): Define.
35278 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
35279 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
35280 * print-rtl.c (print_rtx): Likewise.
35281 * gengtype.c (adjust_field_rtx_def): Likewise.
35282 * var-tracking.c (vt_add_function_parameter): Adjust
35283 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
35284 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
35285 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
35286 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
35287 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
35289 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
35290 Call var_location debug hook even on CALL_INSNs.
35291 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
35292 * rtl.def (ENTRY_VALUE): New.
35293 * dwarf2out.c: Include cfglayout.h.
35294 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
35295 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
35296 (struct call_arg_loc_node): New type.
35297 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
35298 tail_call_site_count): New variables.
35299 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
35300 DW_TAG_GNU_call_site_parameter.
35301 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
35302 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
35303 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
35304 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
35305 and DW_AT_GNU_all_source_call_sites.
35306 (mem_loc_descriptor): Handle ENTRY_VALUE.
35307 (add_src_coords_attributes): Don't add enything if
35308 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
35309 (dwarf2out_abstract_function): Save and clear call_arg_location,
35310 call_site_count and tail_call_site_count around dwarf2out_decl call.
35311 (gen_call_site_die): New function.
35312 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
35313 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
35314 (dwarf2out_function_decl): Clear call_arg_locations,
35315 call_arg_loc_last, set call_site_count and tail_call_site_count
35316 to -1 and free block_map.
35317 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
35318 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
35319 followed by any real instructions.
35320 (dwarf2out_begin_function): Set call_site_count and
35321 tail_call_site_count to 0.
35322 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
35323 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
35324 attempt to force a DIE for it and worst case remove the attribute.
35325 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
35326 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
35328 * var-tracking.c: Include tm_p.h.
35329 (vt_stack_adjustments): For calls call note_register_arguments.
35330 (argument_reg_set): New variable.
35331 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
35332 ensure the VALUE is resolved.
35333 (call_arguments): New variable.
35334 (prepare_call_arguments): New function.
35335 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
35336 (struct expand_loc_callback_data): Add ignore_cur_loc field.
35337 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
35338 always use the best expression.
35339 (vt_expand_loc): Add ignore_cur_loc argument.
35340 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
35341 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
35342 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
35343 note for all calls.
35344 (vt_add_function_parameter): Use cselib_lookup_from_insn.
35345 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
35346 argument. Don't call cselib_preserve_only_values and
35347 cselib_reset_table.
35348 (note_register_arguments): New function.
35349 (vt_initialize): Compute argument_reg_set. Call
35350 vt_add_function_parameters before processing basic blocks instead of
35351 afterwards. For calls call prepare_call_arguments before calling
35352 cselib_process_insn.
35353 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
35354 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
35355 (var-tracking.o): Depend on $(TM_P_H).
35356 * cfglayout.h (insn_scope): New prototype.
35357 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
35358 * cfglayout.c (insn_scope): No longer static.
35359 * insn-notes.def (CALL_ARG_LOCATION): New.
35360 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
35361 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
35362 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
35363 nothing for DECL_EXTERNAL BLOCK_VARS.
35365 2011-03-16 Alan Modra <amodra@gmail.com>
35368 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
35369 create invalid offset address for vsx splat insn.
35370 * config/rs6000/predicates.md (splat_input_operand): New.
35371 * config/rs6000/vsx.md (vsx_splat_*): Use it.
35373 2011-03-15 Xinliang David Li <davidxl@google.com>
35376 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
35377 (normalize_preds): New function.
35378 (is_use_properly_guarded): Normalize def predicates.
35380 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
35383 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
35384 in the output template.
35386 2011-03-15 Richard Guenther <rguenther@suse.de>
35388 PR middle-end/47650
35389 * tree-pretty-print.c (dump_function_declaration): Properly
35390 dump unprototyped and varargs function types.
35392 2011-03-15 Richard Guenther <rguenther@suse.de>
35394 PR tree-optimization/13954
35395 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
35398 2011-03-15 Richard Guenther <rguenther@suse.de>
35400 PR tree-optimization/48037
35401 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
35402 selects into BIT_FIELD_REFs.
35403 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
35406 2011-03-15 Jakub Jelinek <jakub@redhat.com>
35408 PR tree-optimization/48129
35409 * builtins.c (fold_builtin_snprintf): Convert to type of
35410 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
35411 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
35413 2011-03-15 Richard Guenther <rguenther@suse.de>
35415 PR tree-optimization/41490
35416 * tree-ssa-dce.c (propagate_necessity): Handle returns without
35417 value but with VUSE.
35418 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
35420 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
35421 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
35422 * tree-tailcall.c (find_tail_calls): Ignore returns.
35424 2011-03-15 Richard Guenther <rguenther@suse.de>
35426 PR middle-end/48031
35427 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
35428 or variable-indexed array accesses when in gimple form.
35430 2011-03-15 Richard Guenther <rguenther@suse.de>
35432 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
35434 2011-03-15 Alan Modra <amodra@gmail.com>
35437 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
35438 presume symbol_refs without a symbol_ref_decl are suitably
35439 aligned, nor other trees we may see here. Handle anchor symbols.
35440 (legitimate_constant_pool_address_p): Comment. Add mode param.
35441 Check cmodel=medium addresses. Adjust all calls.
35442 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
35443 creating cmodel=medium optimized access to locals.
35444 * config/rs6000/constraints.md (R): Pass QImode to
35445 legitimate_constant_pool_address_p.
35446 * config/rs6000/predicates.md (input_operand): Pass mode to
35447 legitimate_constant_pool_address_p.
35448 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
35451 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
35454 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
35455 64-bit constants being loaded into registers other than GPRs such
35456 as loading 0 into a VSX register.
35458 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35460 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
35462 2011-03-14 Jakub Jelinek <jakub@redhat.com>
35464 PR middle-end/47917
35465 * builtins.c (fold_builtin_snprintf): New function.
35466 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
35467 (fold_builtin_4): Likewise.
35469 PR middle-end/38878
35470 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
35471 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
35472 and C - X == X also strip nops from +/-/p+ operand.
35473 When optimizing -X == C, fold C to arg0's type.
35476 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
35477 emit it as add_AT_int instead of add_AT_unsigned.
35479 2011-03-14 Tom Tromey <tromey@redhat.com>
35481 * unwind-dw2.c: Include sys/sdt.h if it exists.
35482 (_Unwind_DebugHook): Use STAP_PROBE2.
35483 * config.in, configure: Rebuild.
35484 * configure.ac: Check for sys/sdt.h.
35486 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
35488 * config/i386/i386.md (ROUND_FLOOR): New constant.
35489 (ROUND_CEIL): Ditto.
35490 (ROUND_TRUNC): Ditto.
35491 (ROUND_MXCSR): Ditto.
35492 (ROUND_NO_EXC): Ditto.
35493 (rint<mode>2): Use new defines instead of numerical constants.
35494 (floor<mode>2): Ditto.
35495 (ceil<mode>2): Ditto.
35496 (btrunc<mode>2): Ditto.
35497 * config/i386/i386-builtin-types.def: Define ROUND function type
35499 * config/i386/i386.c (enum ix86_builtins): Add
35500 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
35501 (struct builtin_description): Add
35502 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
35503 (ix86_expand_sse_round): New static function.
35504 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
35506 (ix86_builtin_vectorized_function): Handle
35507 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
35509 2011-03-14 Tom Tromey <tromey@redhat.com>
35511 * c-parser.c (c_parser_asm_string_literal): Clear
35512 warn_overlength_strings.
35514 2011-03-14 Tom Tromey <tromey@redhat.com>
35516 * c-parser.c (disable_extension_diagnostics): Save
35517 warn_overlength_strings.
35518 (restore_extension_diagnostics): Restore warn_overlength_strings.
35520 2011-03-14 Jakub Jelinek <jakub@redhat.com>
35522 * BASE-VER: Change to 4.7.0.
35524 2011-03-14 Richard Guenther <rguenther@suse.de>
35526 PR middle-end/48098
35527 * tree.c (build_vector_from_val): Adjust assert to requirements
35530 2011-03-14 Jakub Jelinek <jakub@redhat.com>
35533 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
35535 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
35537 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
35538 terms of target_flags_explicit. Adjust copyright year.
35540 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
35541 * config/rs6000/t-freebsd: New file. Add override for
35544 2011-03-13 Chris Demetriou <cgd@google.com>
35546 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
35547 (-fno-diagnostics-show-option): this, to reflect current default.
35548 (-Werror=): Update text about -fno-diagnostics-show-option.
35550 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
35553 * config/rs6000/predicates.md (easy_vector_constant_add_self,
35554 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
35555 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
35556 mode is not V2DImode or V2DFmode.
35557 (vspltis_constant): Do not handle V2DImode and V2DFmode.
35558 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
35559 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
35561 (movdi_internal64): Likewise.
35563 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
35565 PR tree-optimization/47127
35566 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
35568 (set_cloog_options): Same.
35569 (scop_to_clast): Same.
35570 (print_clast_stmt): Do not call cloog_state_malloc and
35572 (print_generated_program): Same.
35574 * graphite-clast-to-gimple.h (cloog_state): Declared.
35575 (scop_to_clast): Adjust declaration.
35576 * graphite.c (cloog_state): Defined here.
35577 (graphite_initialize): Call cloog_state_malloc.
35578 (graphite_finalize): Call cloog_state_free.
35580 2011-03-11 Jason Merrill <jason@redhat.com>
35582 * attribs.c (lookup_attribute_spec): Take const_tree.
35585 2011-03-11 Joseph Myers <joseph@codesourcery.com>
35587 * config/sparc/sparc.c (sparc_option_override): Use
35588 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
35590 2011-03-11 Richard Guenther <rguenther@suse.de>
35592 PR tree-optimization/48067
35593 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
35594 multiplication result will be only used once on the target
35597 2011-03-11 Richard Guenther <rguenther@suse.de>
35599 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
35601 2011-03-11 Richard Guenther <rguenther@suse.de>
35604 * tree.c (find_decls_types_r): Do not walk types only reachable
35605 from IDENTIFIER_NODEs.
35607 2011-03-11 Jakub Jelinek <jakub@redhat.com>
35609 PR middle-end/48044
35610 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
35611 all vnode->force_output nodes as needed.
35613 2011-03-11 Jason Merrill <jason@redhat.com>
35616 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
35617 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
35619 2011-03-11 Martin Jambor <mjambor@suse.cz>
35621 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
35624 2011-03-11 Jakub Jelinek <jakub@redhat.com>
35626 PR tree-optimization/48063
35627 * ipa-inline.c (cgraph_decide_inlining): Don't try to
35628 inline functions called once if !tree_can_inline_p (node->callers).
35630 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
35632 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
35634 * config/score/score3.c: Delete.
35635 * config/score/score3.h: Delete.
35636 * config/score/mul-div.S: Delete.
35637 * config/score/sfp-machine.h: Add new file.
35638 * config/score/constraints.md: Add new file.
35639 * config/score/t-score-softfp: Add new file.
35640 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
35641 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
35642 (score7_extra_constraint): Delete.
35643 (score7_option_override): Remove unused code.
35644 * config/score/score.c: Remove score3 and score5 define and code.
35645 * config/score/score.h: Remove score3 and score5 define and code.
35646 * config/score/score.md: Remove score3 template and unusual insn.
35647 * config/score/score.opt: Remove score3 and score5 options.
35649 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35651 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
35652 when _HPUX_SOURCE is defined.
35653 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
35655 2011-03-10 Jason Merrill <jason@redhat.com>
35658 * stor-layout.c (layout_type): Don't set structural equality
35659 on arrays of incomplete type.
35660 * tree.c (type_hash_eq): Handle comparing them properly.
35662 2011-03-10 Jakub Jelinek <jakub@redhat.com>
35665 * config/s390/s390.c (s390_delegitimize_address): Make sure the
35666 result mode matches original rtl mode.
35668 2011-03-10 Nick Clifton <nickc@redhat.com>
35670 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
35671 (andsi3, andsi3_flags): Fix timings for three operand alternative.
35673 2011-03-09 Jakub Jelinek <jakub@redhat.com>
35675 PR rtl-optimization/47866
35676 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
35677 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
35678 if target wasn't scalar.
35679 * function.c (assign_stack_temp_for_type): Assert that neither
35680 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
35681 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
35683 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
35685 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35687 * config/s390/s390-protos.h (s390_label_align): New prototype.
35688 * config/s390/s390.c (s390_label_align): New function.
35689 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
35691 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
35694 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
35695 V2DI/V2DF constants. Only all 0's or all 1's are easy.
35696 (output_vec_const_move): Ditto.
35698 2011-03-08 Anatoly Sokolov <aesok@post.ru>
35700 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
35701 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
35702 * config/mips/mips.c (mips_preferred_reload_class): Make static.
35703 Change 'rclass' argument and result type to reg_class_t.
35704 (TARGET_PREFERRED_RELOAD_CLASS): Define.
35706 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
35708 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
35709 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
35710 (TARGET_MEMORY_MOVE_COST): Define.
35711 (avr_register_move_cost, avr_memory_move_cost): New Functions.
35713 2011-03-08 Jakub Jelinek <jakub@redhat.com>
35716 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
35719 PR tree-optimization/48022
35720 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
35723 2011-03-07 Jakub Jelinek <jakub@redhat.com>
35726 * var-tracking.c (find_use_val): Return NULL for
35727 cui->sets && cui->store_p BLKmode MEMs.
35729 2011-03-07 Anatoly Sokolov <aesok@post.ru>
35731 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
35733 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
35734 xstormy16_print_operand_address): Remove.
35735 * config/stormy16/stormy16.c (xstormy16_print_operand,
35736 xstormy16_print_operand_address): Make static.
35737 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
35739 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
35742 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
35743 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
35746 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
35749 * cfgloopmanip.c (fix_bb_placements): Return immediately
35750 if FROM is BASE_LOOP's header.
35752 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
35754 * gimplify.c (gimplify_function_tree): Fix building calls
35755 to __builtin_return_address.
35757 2011-03-07 Alan Modra <amodra@gmail.com>
35759 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
35760 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
35761 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
35762 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
35764 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
35765 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
35766 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
35767 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
35768 * config/rs6000/rs6000.c
35769 (rs6000_elf_end_indicate_exec_stack): Rename to..
35770 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
35771 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
35772 (rs6000_file_start): ..here.
35773 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
35774 file scope variables.
35775 (call_ABI_of_interest): New function.
35776 (init_cumulative_args): Set above vars when function return value
35777 is a float, vector, or small struct.
35778 (rs6000_function_arg_advance_1): Likewise for function args.
35779 (rs6000_va_start): Set rs6000_passes_float if variable arg function
35780 references float args.
35782 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
35784 * doc/cfg.texi: Remove "See" before @ref.
35785 * doc/invoke.texi: Likewise.
35787 2011-03-05 Jason Merrill <jason@redhat.com>
35789 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
35791 2011-03-05 Anthony Green <green@moxielogic.com>
35793 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
35795 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
35797 PR rtl-optimization/47899
35798 * cfgloopmanip.c (fix_bb_placements): Fix first argument
35799 to flow_loop_nested_p when moving the loop upward.
35801 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
35804 * arm.md (movhi_insn_arch4): Accept any immediate constant.
35806 2011-03-05 Jakub Jelinek <jakub@redhat.com>
35808 PR tree-optimization/47967
35809 * ipa-cp.c (build_const_val): Return NULL instead of creating
35810 VIEW_CONVERT_EXPR for mismatching sizes.
35811 (ipcp_create_replace_map): Return NULL if build_const_val failed.
35812 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
35813 give up on versioning.
35815 2011-03-05 Alan Modra <amodra@gmail.com>
35818 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
35819 full cmodel medium/large lo_sum + high addresses.
35821 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35823 * config/s390/s390.c (s390_decompose_address): Reject non-literal
35824 pool references in UNSPEC_LTREL_OFFSET.
35826 2011-03-04 Jan Hubicka <jh@suse.cz>
35829 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
35830 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
35831 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
35833 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
35834 cgraph_add_thunk): Add node pointers.
35835 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
35836 associated to right node.
35837 (input_node): Update use of cgraph_same_body_alias
35838 and cgraph_add_thunk.
35840 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
35842 * config/i386/i386.opt (mprefer-avx128): New flag.
35843 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
35844 modes when the flag -mprefer-avx128 is on.
35846 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
35848 * dwarf2out.c (compare_loc_operands): Fix address handling.
35850 2011-03-04 Alan Modra <amodra@gmail.com>
35852 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
35854 2011-03-04 Richard Guenther <rguenther@suse.de>
35856 PR middle-end/47968
35857 * expmed.c (extract_bit_field_1): Prefer vector modes that
35858 vec_extract patterns can handle.
35860 2011-03-04 Richard Guenther <rguenther@suse.de>
35862 PR middle-end/47975
35863 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
35865 2011-03-04 Richard Henderson <rth@redhat.com>
35867 * explow.c (emit_stack_save): Remove 'after' parameter.
35868 (emit_stack_restore): Likewise.
35869 * expr.h: Update to match.
35870 * builtins.c, calls.c, stmt.c: Likewise.
35871 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
35872 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
35873 * function.c (expand_function_end): Insert the emit_stack_save
35874 sequence before parm_birth_insn instead of after.
35876 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
35878 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
35879 (ssse3_pmaddubsw128): Ditto.
35880 (ssse3_pmaddubsw): Ditto.
35882 2011-03-03 Steve Ellcey <sje@cup.hp.com>
35884 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
35886 2011-03-03 Jakub Jelinek <jakub@redhat.com>
35889 * gimplify.c (omp_add_variable): Only call omp_notice_variable
35890 on TYPE_SIZE_UNIT if it is a DECL.
35893 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
35894 first operand is not is_gimple_mem_ref_addr, try to fold it.
35895 If the operand still isn't is_gimple_mem_ref_addr, clear
35898 2011-03-03 Richard Guenther <rguenther@suse.de>
35900 PR middle-end/47283
35901 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
35903 (refs_may_alias_p_1): For release branches return true if
35904 we are confused by our input.
35906 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35908 * config/s390/s390.c (s390_function_value): Rename to ...
35909 (s390_function_and_libcall_value): ... this.
35910 (s390_function_value): New function.
35911 (s390_libcall_value): New function.
35912 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
35913 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
35914 target macro definitions.
35915 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
35917 2011-03-02 Joseph Myers <joseph@codesourcery.com>
35919 * config/i386/freebsd64.h (CC1_SPEC): Define.
35920 * config/i386/linux64.h (CC1_SPEC): Define.
35921 * config/i386/x86-64.h (CC1_SPEC): Don't define.
35923 2011-03-02 Anatoly Sokolov <aesok@post.ru>
35925 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
35927 * config/stormy16/stormy16.c: Include reload.h.
35928 (xstormy16_memory_move_cost): New function.
35929 (TARGET_MEMORY_MOVE_COST): Define.
35931 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
35933 PR rtl-optimization/47925
35934 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
35935 with side effects. Remove the more-specific check for volatile asms.
35937 2011-03-02 Alan Modra <amodra@gmail.com>
35940 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
35941 toc relative addresses for valid offsets.
35943 2011-03-01 Richard Guenther <rguenther@suse.de>
35945 PR tree-optimization/47890
35946 * tree-vect-loop.c (get_initial_def_for_induction): Set
35947 related stmt properly.
35949 2011-03-01 Richard Guenther <rguenther@suse.de>
35952 * lto-streamer.c (lto_record_common_node): Also register
35953 the canonical type.
35955 2011-03-01 Richard Guenther <rguenther@suse.de>
35958 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
35959 Do not stream DECL_ABSTRACT_ORIGIN.
35960 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
35961 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
35962 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
35963 Do not stream DECL_ABSTRACT_ORIGIN.
35964 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
35965 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
35967 2011-02-28 Anatoly Sokolov <aesok@post.ru>
35969 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
35970 FUNCTION_VALUE_REGNO_P): Remove.
35971 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
35972 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
35973 Add 'outgoing' argument.
35974 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
35976 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
35977 TARGET_FUNCTION_VALUE_REGNO_P): Define.
35979 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
35982 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
35983 (lookup_filename): Likewise.
35984 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
35986 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
35987 Jakub Jelinek <jakub@redhat.com>
35989 PR middle-end/47893
35990 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
35991 (assign_stack_local_1): Change last argument type to int.
35992 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
35993 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
35994 don't record padding space into frame_space_list nor use those areas.
35995 (assign_stack_local): Adjust caller.
35996 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
35997 of assign_stack_local, pass 0 as last argument.
35998 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
36001 2011-02-28 Jakub Jelinek <jakub@redhat.com>
36004 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
36005 Use target address_mode and pointer_mode hooks instead of hardcoded
36006 Pmode and ptr_mode. Handle some simple cases of extending if
36007 POINTERS_EXTEND_UNSIGNED < 0.
36008 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
36009 Call convert_debug_memory_address.
36010 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
36011 convert_debug_memory_address.
36013 PR middle-end/46790
36014 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
36015 * configure: Regenerated.
36016 * config.in: Regenerated.
36017 * varasm.c (default_function_section): Return NULL
36018 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
36020 2011-02-28 Martin Jambor <mjambor@suse.cz>
36022 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
36023 the description to match the printed values.
36025 2011-02-28 Richard Guenther <rguenther@suse.de>
36027 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
36028 of the copied scope tree.
36030 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36032 * doc/extend.texi (Function Attributes): Avoid deeply (and
36033 wrongly) nested tables.
36035 2011-02-27 Jakub Jelinek <jakub@redhat.com>
36037 PR middle-end/47903
36038 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
36039 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
36040 r isn't op0 nor op1.
36042 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
36044 * config/avr/avr.md: Remove magic comment for emacs.
36046 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
36049 * config/avr/avr.c (avr_option_override): Use error on bad options.
36050 (avr_help): New function.
36051 (TARGET_HELP): Define.
36053 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
36056 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
36057 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
36059 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
36061 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
36062 (ARM Options): Ditto.
36063 (i386 and x86-64 Options): Ditto.
36064 (RX Options): Ditto.
36065 (SPARC Options): Ditto.
36067 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
36069 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
36070 FreeBSD 6 and later. Generally use cpu generic.
36072 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
36074 * doc/cpp.texi: Update copyright years.
36076 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
36079 * config/lm32/lm32.md (ashrsi3): Added needed variable.
36081 2011-02-25 Jon Beniston <jon@beniston.com>
36084 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
36085 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
36086 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
36087 (lm32_block_move_inline): Add type cast to remove warning.
36088 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
36089 (gen_int_relational): Move declarations to start of function.
36091 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
36093 PR tree-optimization/45470
36094 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
36095 can throw internally only.
36096 * tree-vect-stmts.c (vectorizable_call): Likewise.
36098 2011-02-24 Anatoly Sokolov <aesok@post.ru>
36100 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
36101 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
36102 * config/stormy16/stormy16-protos.h
36103 (xstormy16_preferred_reload_class): Remove.
36104 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
36105 static. Change 'rclass' argument and return type to reg_class_t.
36106 (TARGET_PREFERRED_RELOAD_CLASS,
36107 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
36109 2011-02-24 Richard Guenther <rguenther@suse.de>
36111 * lto-streamer-in.c (input_bb): Do not find referenced vars
36112 in debug statements.
36114 2011-02-23 Jason Merrill <jason@redhat.com>
36116 * common.opt (fabi-version): Document v5 and v6.
36118 2011-02-23 Richard Guenther <rguenther@suse.de>
36120 PR tree-optimization/47849
36121 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
36123 2011-02-23 Jie Zhang <jie@codesourcery.com>
36125 * opts-common.c (decode_cmdline_option): Print empty string
36126 argument as "" in decoded->orig_option_with_args_text.
36127 * gcc.c (execute): Print empty string argument as ""
36128 in the verbose output.
36129 (do_spec_1): Keep empty string argument.
36131 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
36133 * config.gcc: Declare score-* and crx-* obsolete.
36135 2011-02-23 Jie Zhang <jie@codesourcery.com>
36137 PR rtl-optimization/47763
36138 * web.c (web_main): Ignore naked clobber when replacing register.
36140 2011-02-22 Anatoly Sokolov <aesok@post.ru>
36142 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
36145 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
36148 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
36150 2011-02-22 Mike Stump <mikestump@comcast.net>
36152 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
36154 * configure: Regenerate.
36156 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
36158 PR rtl-optimization/46002
36159 * ira-color.c (update_copy_costs): Change class intersection
36160 test to reg_class_contents[] test of 'hard_regno'.
36162 2011-02-21 Joseph Myers <joseph@codesourcery.com>
36164 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
36165 than Driver option.
36166 * config/hpux11.opt (mt): Likewise.
36167 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
36168 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
36169 * config/vax/elf.opt (mno-asm-pic): Likewise.
36170 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
36172 2011-02-21 Mike Stump <mikestump@comcast.net>
36175 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
36176 tree so we can get save the type.
36177 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
36178 for CFString instead of trying to use past the end of the builtins.
36179 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
36180 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
36181 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
36182 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
36183 Rename to darwin_builtin_cfstring.
36184 (darwin_init_cfstring_builtins): Return the built type.
36186 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
36189 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
36190 (_mm256_insert_epi64): Use _mm_insert_epi64.
36192 2011-02-21 Anatoly Sokolov <aesok@post.ru>
36194 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
36195 * config/stormy16/stormy16-protos.h
36196 (xstormy16_mode_dependent_address_p): Remove.
36197 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
36198 Make static. Change return type to bool. Change argument type to
36199 const_rtx. Remove dead code.
36200 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
36202 2011-02-21 Richard Guenther <rguenther@suse.de>
36205 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
36206 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
36207 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
36209 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
36210 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
36212 2011-02-20 Richard Guenther <rguenther@suse.de>
36215 * tree.c (free_lang_data_in_decl): Clean builtins from
36216 the TU decl BLOCK_VARS.
36218 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
36222 * haifa-sched.c (fix_tick_ready): Skip tick computation
36225 2011-02-19 Richard Guenther <rguenther@suse.de>
36228 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
36229 Remove lazy BLOCK_VARS streaming.
36230 (lto_input_ts_block_tree_pointers): Likewise.
36231 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
36233 2011-02-19 Joseph Myers <joseph@codesourcery.com>
36235 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
36237 2011-02-19 Joseph Myers <joseph@codesourcery.com>
36239 * config/i386/biarch32.h, config/i386/mach.h,
36240 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
36242 2011-02-19 Jakub Jelinek <jakub@redhat.com>
36245 * config/i386/i386.md (peephole2 for shift and plus): Use
36246 operands[1] original mode in the first insn.
36248 2011-02-18 Mike Stump <mikestump@comcast.net>
36250 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
36252 2011-02-18 Jan Hubicka <jh@suse.cz>
36254 PR middle-end/47788
36255 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
36256 to zero when the function is not inlinable at all.
36258 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36260 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
36261 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
36262 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
36263 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
36264 * config/pa/t-pa64: Likewise.
36265 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
36267 2011-02-18 Jakub Jelinek <jakub@redhat.com>
36270 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
36272 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36275 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
36277 2011-02-18 Anatoly Sokolov <aesok@post.ru>
36279 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
36280 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
36281 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
36282 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
36283 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
36284 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
36285 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
36286 m32r_load_postinc_p, m32r_store_preinc_predec_p,
36287 m32r_legitimate_address_p): New functions.
36288 * config/m32r/constraints.md (constraint "S"): Don't use
36289 STORE_PREINC_PREDEC_P.
36290 (constraint "U"): Don't use LOAD_POSTINC_P.
36292 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
36294 PR rtl-optimization/46178
36295 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
36296 compute ira_hard_regno_cover_class[].
36298 2011-02-18 Richard Guenther <rguenther@suse.de>
36301 * lto-streamer.h (lto_global_var_decls): Declare.
36302 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
36303 statics for global var processing.
36305 2011-02-18 Richard Guenther <rguenther@suse.de>
36307 PR tree-optimization/47737
36308 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
36309 edge dominance check.
36311 2011-02-18 Jakub Jelinek <jakub@redhat.com>
36314 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
36315 avoid invalid rtx sharing.
36317 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
36319 * doc/cpp.texi (Obsolete Features): Add background on the
36320 origin of assertions.
36322 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
36324 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
36326 * config/darwin.c (output_objc_section_asm_op): Added support for
36328 (is_objc_metadata): New.
36329 (darwin_objc2_section): New.
36330 (darwin_objc1_section): New.
36331 (machopic_select_section): Added support for ABI v1 and v2.
36332 (darwin_emit_objc_zeroed): New.
36333 (darwin_output_aligned_bss): Detect objc metadata and treat it
36335 (darwin_asm_output_aligned_decl_common): Same.
36336 (darwin_asm_output_aligned_decl_local): Same.
36337 * config/darwin-sections.def: Updated for ABI v1 and v2.
36338 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
36339 compiling Objective-C code for the NeXT runtime, default to using
36340 ABI version 0 for 32-bit, and version 2 for 64-bit.
36342 2011-02-17 Joseph Myers <joseph@codesourcery.com>
36344 * common.opt (optimize_fast): New Variable.
36345 * opts.c (default_options_optimization): Use opts->x_optimize_fast
36346 instead of local variable ofast.
36348 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
36350 * doc/invoke.texi (fobjc-abi-version): Documented.
36351 (fobjc-nilcheck): Documented.
36352 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
36355 2011-02-17 Joseph Myers <joseph@codesourcery.com>
36358 * common.opt (export-dynamic): New Driver option.
36359 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
36361 2011-02-17 Joseph Myers <joseph@codesourcery.com>
36363 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
36365 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
36366 Jan Hubicka <jh@suse.cz>
36370 * cfgexpand.c (account_used_vars_for_block): Remove.
36371 (estimated_stack_frame_size): Use referenced vars.
36372 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
36373 that were referenced in the original function. Test src_fn
36374 rather than cfun. Drop redundant get_var_ann.
36375 (setup_one_parameter): Drop redundant get_var_ann.
36376 (declare_return_variable): Likewise.
36377 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
36378 (copy_arguments_for_versioning): Drop redundant get_var_ann.
36379 * ipa-inline.c (compute_inline_parameters): Do not compute
36380 disregard_inline_limits here.
36381 (compute_inlinable_for_current, pass_inlinable): New.
36382 (pass_inline_parameters): Require PROP_referenced_vars.
36383 * cgraphunit.c (cgraph_process_new_functions): Don't run
36384 compute_inline_parameters explicitly unless function is in SSA form.
36385 (cgraph_analyze_function): Set .disregard_inline_limits.
36386 * tree-sra.c (convert_callers): Compute inliner parameters
36387 only for functions already in SSA form.
36389 2011-02-17 Joseph Myers <joseph@codesourcery.com>
36391 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
36392 -mlittle-endian-data.
36394 2011-02-17 Joseph Myers <joseph@codesourcery.com>
36396 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
36397 -mno-fpu, not -fpu and -no-fpu.
36398 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
36399 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
36401 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
36404 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
36405 input reload with PLUS RTX.
36407 2011-02-16 Joseph Myers <joseph@codesourcery.com>
36409 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
36410 of InverseVar(MDMX).
36412 2011-02-16 Joseph Myers <joseph@codesourcery.com>
36414 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
36417 2011-02-16 Joseph Myers <joseph@codesourcery.com>
36419 * config/mn10300/mn10300.opt (mno-crt0): New.
36421 2011-02-16 Joseph Myers <joseph@codesourcery.com>
36423 * config/m68k/uclinux.opt (static-libc): New Driver option.
36425 2011-02-16 Joseph Myers <joseph@codesourcery.com>
36427 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
36429 2011-02-16 Joseph Myers <joseph@codesourcery.com>
36431 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
36432 %{muser-extend-enabled}.
36434 2011-02-16 Richard Guenther <rguenther@suse.de>
36436 PR tree-optimization/47738
36437 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
36438 the TODO from tree_predictive_commoning.
36440 2011-02-15 Jeff Law <law@redhat.com>
36443 2011-01-25 Jeff Law <law@redhat.com>
36445 PR rtl-optimization/37273
36446 * ira-costs.c (scan_one_insn): Detect constants living in memory and
36447 handle them like argument loads from stack slots. Do not double
36448 count memory for memory constants and argument loads from stack slots.
36450 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
36453 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
36454 mode for vector constants. Remove code that checks for TImode.
36456 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
36460 * cgraph.h (compute_inline_parameters): Return void.
36461 * ipa-inline.c (compute_inline_parameters): Adjust.
36463 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
36467 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
36469 * cfgexpand.c (estimated_stack_frame_size): Likewise.
36470 * ipa-inline.c (compute_inline_parameters): Adjust.
36472 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
36476 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
36477 Adjust all users. Pass FN to...
36478 * tree-flow-inline.h (first_referenced_var): ... this. Add
36480 * ipa-struct-reorg.c: Adjust.
36481 * tree-dfa.c: Adjust.
36482 * tree-into-ssa.c: Adjust.
36483 * tree-sra.c: Adjust.
36484 * tree-ssa-alias.c: Adjust.
36485 * tree-ssa-live.c: Adjust.
36486 * tree-ssa.c: Adjust.
36487 * tree-ssanames.c: Adjust.
36488 * tree-tailcall.c: Adjust.
36490 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
36494 * tree-flow.h (referenced_var_lookup): Add fn parameter.
36495 Adjust all callers.
36496 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
36497 * tree-flow-inline.h: Adjust.
36498 * gimple-pretty-print.c: Adjust.
36499 * tree-into-ssa.c: Adjust.
36500 * tree-ssa.c: Adjust.
36501 * cfgexpand.c: Adjust.
36503 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
36505 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
36506 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
36507 (EXTRA_CONSTRAINT): Delete.
36508 * config/iq2000/constraints.md: New file.
36509 * config/iq2000/iq2000.md: Include it.
36510 (define_insn ""): Delete.
36511 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
36512 unsupported constraint letters from patterns.
36513 (call_value, call_value_internal1): Likewise.
36514 (call_value_multiple_internal1): Likewise.
36516 2011-02-15 Nick Clifton <nickc@redhat.com>
36518 * config/mn10300/mn10300.c: Include tm-constrs.h.
36519 (struct liw_data): New data structure describing an LIW candidate
36521 (extract_bundle): Use struct liw_data. Allow small integer
36522 operands for some instructions.
36523 (check_liw_constraints): Use struct liw_data. Remove swapped
36524 parameter. Add comments describing the checks. Fix bug when
36525 assigning the source of liw1 to the source of liw2.
36526 (liw_candidate): Delete. Code moved into extract_bundle.
36527 (mn10300_bundle_liw): Use struct liw_data. Check constraints
36529 * config/mn10300/predicates.md (liw_operand): New predicate.
36530 Allows registers and small integer constants.
36531 * config/mn10300/constraints.md (O): New constraint. Accetps
36532 integers in the range -8 to +7 inclusive.
36533 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
36534 for moving a small integer into a register. Give this alternative
36536 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
36537 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
36538 using the J,K,L and M constraints,
36539 (liw): Remove SI mode on second operands to allow for HI and QI
36541 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
36544 2011-02-15 Richard Guenther <rguenther@suse.de>
36546 PR tree-optimization/47743
36547 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
36548 for a non-type-compatible VN lookup bail out.
36550 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
36552 * config/fr30/constraints.md: New file.
36553 * config/fr30/fr30.md: Include it.
36554 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
36555 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
36556 (EXTRA_CONSTRAINT): Delete.
36558 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
36560 * config/frv/constraints.md: New file.
36561 * config/frv/predicates.md: Include it.
36562 * config/frv/frv.c (reg_class_from_letter): Delete.
36563 (frv_option_override): Don't initialize it.
36564 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
36565 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
36566 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
36567 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
36568 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
36569 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
36570 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
36571 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
36572 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
36573 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
36574 (REG_CLASS_FROM_CONSTRAINT): Delete.
36576 2011-02-15 Jakub Jelinek <jakub@redhat.com>
36578 PR middle-end/47581
36579 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
36580 if frame size is 0 in a leaf function.
36582 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36585 * config/alpha/host-osf.c: New file.
36586 * config/alpha/x-osf: New file.
36587 * config.host (alpha*-dec-osf*): Use it.
36589 2011-02-14 Anatoly Sokolov <aesok@post.ru>
36591 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
36592 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
36593 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
36594 (rx_mode_dependent_address_p): ...this. Make static. Change argument
36596 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
36598 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
36600 * config/stormy16/constraints.md: New file.
36601 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
36602 Use satisfies_constraint_Q and satisfies_constraint_R.
36603 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
36605 (xstormy16_legitiamte_address_p): Declare.
36606 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
36607 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
36608 (EXTRA_CONSTRAINT): Delete.
36609 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
36611 (xstormy16_extra_constraint_p): Delete.
36613 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
36615 PR tree-optimization/46494
36616 * loop-unroll.c (split_edge_and_insert): Adjust comment.
36617 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
36618 (pass_rtl_loop_done): Add TODO_verify_flow.
36619 * fwprop.c (pass_rtl_fwprop): Likewise.
36620 * modulo-sched.c (pass_sms): Likewise.
36621 * tree-ssa-dom.c (pass_dominator): Likewise.
36622 * tree-ssa-loop-ch.c (pass_ch): Likewise.
36623 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
36624 (pass_tree_loop_done): Likewise.
36625 * tree-ssa-pre.c (execute_pre): Likewise.
36626 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
36627 * tree-ssa-sink.c (pass_sink_code): Likewise.
36628 * tree-vrp.c (pass_vrp): Likewise.
36630 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
36632 * config/v850/constraints.md: New file.
36633 * config/v850/v850.md: Include it.
36634 * config/v850/predicates.md (reg_or_0_operand): Use
36635 satisfies_constraint_G.
36636 (special_symbolref_operand): Use satisfies_constraint_K.
36637 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
36638 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
36639 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
36640 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
36641 (EXTRA_CONSTRAINT): Delete.
36642 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
36643 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
36644 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
36646 2011-02-14 Anatoly Sokolov <aesok@post.ru>
36649 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
36652 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
36654 * config/mcore/constraints.md: New file.
36655 * config/mcore/mcore.md: Include it.
36656 * config/mcore/mcore.c (reg_class_from_letter): Delete.
36657 * config/mcore/mcore.h (reg_class_from_letter): Delete.
36658 (REG_CLASS_FROM_LETTER): Delete.
36659 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
36660 insn_const_int_ok_for_constraint.
36661 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
36662 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
36663 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
36664 (EXTRA_CONSTRAINT): Delete.
36666 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36669 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
36670 (IS_SIGHANDLER): Define.
36671 (sparc64_is_sighandler): New function, split off from
36672 sparc64_fallback_frame_state.
36673 (sparc_is_sighandler): New function, split off from
36674 sparc_fallback_frame_state.
36675 (sparc64_fallback_frame_state): Merge with ...
36676 (sparc_fallback_frame_state): ... this into ...
36677 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
36678 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
36679 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
36680 stack instead of hardcoded offsets.
36682 2011-02-14 Andriy Gapon <avg@freebsd.org>
36685 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
36687 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36689 * configure: Regenerate.
36691 2011-02-12 Joseph Myers <joseph@codesourcery.com>
36694 * gcc.c (asm_options): Correct spec matching --target-help.
36696 2011-02-12 Martin Jambor <mjambor@suse.cz>
36698 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
36699 to gimple call error.
36701 2011-02-12 Mike Stump <mikestump@comcast.net>
36703 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
36704 comments in backslash regions.
36706 2011-02-12 Mike Stump <mikestump@comcast.net>
36707 Jakub Jelinek <jakub@redhat.com>
36708 Iain Sandoe <iains@gcc.gnu.org>
36711 * dwarf2out.c (output_cfa_loc): When required, apply the
36712 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
36713 (output_loc_sequence): Likewise.
36714 (output_loc_operands_raw): Likewise.
36715 (output_loc_sequence_raw): Likewise.
36716 (output_cfa_loc): Likewise.
36717 (output_loc_list): Suppress register number adjustment when
36718 calling output_loc_sequence()
36719 (output_die): Likewise.
36721 2011-02-12 Anatoly Sokolov <aesok@post.ru>
36723 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
36725 * config/xtensa/xtensa.c (xtensa_register_move_cost,
36726 xtensa_memory_move_cost): New functions.
36727 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
36729 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
36732 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
36733 in the current directory.
36734 * configure: Rebuilt.
36736 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
36738 * config/darwin.c (darwin_override_options): Add a hunk missed
36739 from the commit of r168571. Trim comment line lengths and
36740 correct indents of the preceding block.
36742 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
36744 * gcc.c (driver_handle_option): Concatenate the argument to -F with
36747 2011-02-11 Joseph Myers <joseph@codesourcery.com>
36749 * common.opt (nostartfiles): New Driver option.
36751 2011-02-11 Xinliang David Li <davidxl@google.com>
36753 PR tree-optimization/47707
36754 * tree-chrec.c (convert_affine_scev): Keep type precision.
36756 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
36758 PR tree-optimization/47420
36759 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
36761 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
36763 PR rtl-optimization/47614
36764 * rtl.h (check_for_inc_dec): Declare.
36765 * dse.c (check_for_inc_dec): Externalize...
36766 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
36767 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
36769 2011-02-11 Joseph Myers <joseph@codesourcery.com>
36772 * gcc.c (main): Do not compile inputs if there were errors in
36774 * opts-common.c (read_cmdline_option): Check for wrong language
36775 after other error checks.
36777 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
36779 * cgraph.c: Fix comment typos.
36780 * cgraph.h: Likewise.
36781 * cgraphunit.c: Likewise.
36782 * ipa-cp.c: Likewise.
36783 * ipa-inline.c: Likewise.
36784 * ipa-prop.c: Likewise.
36785 * ipa-pure-const.c: Likewise.
36786 * ipa-ref.c: Likewise.
36787 * ipa-reference.c: Likewise.
36789 2011-02-11 Jakub Jelinek <jakub@redhat.com>
36792 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
36794 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36797 * doc/sourcebuild.texi (Require Support): Document
36798 dg-require-ascii-locale.
36800 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
36802 * doc/lto.texi (Write summary): Fix missing parentheses.
36804 2011-02-10 DJ Delorie <dj@redhat.com>
36806 * config/m32c/m32c.c (m32c_option_override): Disable
36807 -fcombine-stack-adjustments until flag value tracking and compare
36808 optimization can be rewritten.
36810 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
36812 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
36814 (PROCESSOR_DEFAULT64): Likewise.
36816 2011-02-10 Richard Henderson <rth@redhat.com>
36818 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
36819 change from 2011-02-03.
36820 * config/rx/rx.c (flags_from_code): Likewise.
36821 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
36822 is valid, n/pz otherwise.
36823 (rx_select_cc_mode): Return CCmode if Y is not zero.
36825 2011-02-10 Richard Guenther <rguenther@suse.de>
36827 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
36829 2011-02-10 Richard Guenther <rguenther@suse.de>
36831 PR tree-optimization/47677
36832 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
36834 2011-02-10 Jakub Jelinek <jakub@redhat.com>
36837 * combine.c (make_compound_operation): Only change shifts into
36838 multiplication for SCALAR_INT_MODE_P.
36840 2011-02-10 Jie Zhang <jie@codesourcery.com>
36844 2011-02-05 Jie Zhang <jie@codesourcery.com>
36846 * web.c (entry_register): Don't clobber the number of the
36847 first uninitialized reference in used[].
36849 2011-02-09 Richard Guenther <rguenther@suse.de>
36851 PR tree-optimization/47664
36852 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
36855 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
36859 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
36861 (PROCESSOR_DEFAULT64): Same.
36862 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
36864 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36866 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
36868 2011-02-09 Martin Jambor <mjambor@suse.cz>
36870 PR middle-end/45505
36871 * tree-sra.c (struct access): New flags grp_scalar_read and
36872 grp_scalar_write. Changed description of assignment read and write
36874 (dump_access): Dump new flags, reorder all of them.
36875 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
36876 to detect multiple scalar reads.
36877 (analyze_access_subtree): Use the new scalar read write flags instead
36878 of the old flags. Adjusted comments.
36880 2011-02-08 DJ Delorie <dj@redhat.com>
36883 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
36886 2011-02-08 Joseph Myers <joseph@codesourcery.com>
36888 * config/m68k/uclinux.opt: New.
36889 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
36891 2011-02-08 Joseph Myers <joseph@codesourcery.com>
36893 * config/cris/elf.opt (sim): New Driver option.
36895 2011-02-08 Joseph Myers <joseph@codesourcery.com>
36897 * config/xtensa/elf.opt: New.
36898 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
36900 2011-02-08 Joseph Myers <joseph@codesourcery.com>
36902 * config/vax/elf.opt: New.
36903 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
36905 2011-02-08 Joseph Myers <joseph@codesourcery.com>
36907 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
36909 2011-02-08 Joseph Myers <joseph@codesourcery.com>
36911 * config/gnu-user.opt: New.
36912 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
36913 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
36914 *-*-uclinux*): Use gnu-user.opt.
36916 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
36918 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
36919 * config/i386/gnu.h (CPP_SPEC): Likewise.
36921 2011-02-08 Ian Lance Taylor <iant@google.com>
36923 * common.opt (fcx-limited-range): Add SetByCombined flag.
36924 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
36925 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
36926 (fassociative-math, freciprocal-math): Likewise.
36927 (funsafe-math-optimizations): Likewise.
36928 * opth-gen.awk: Handle SetByCombined.
36929 * optc-gen.awk: Likewise.
36930 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
36931 (set_unsafe_math_optimizations_flags): Likewise.
36932 * doc/options.texi (Option properties): Document SetByCombined.
36934 2011-02-08 Joseph Myers <joseph@codesourcery.com>
36936 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
36937 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
36938 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
36939 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
36940 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
36942 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
36944 PR tree-optimization/46834
36945 PR tree-optimization/46994
36946 PR tree-optimization/46995
36947 * graphite-sese-to-poly.c (used_outside_reduction): New.
36948 (detect_commutative_reduction): Call used_outside_reduction.
36949 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
36950 translate_scalar_reduction_to_array only when at least one
36951 loop-phi/close-phi tuple has been detected.
36953 2011-02-08 Richard Guenther <rguenther@suse.de>
36955 PR middle-end/47639
36956 * tree-vect-generic.c (expand_vector_operations_1): Update
36958 (expand_vector_operations): ... not here. Cleanup EH info
36959 and the CFG if required.
36961 2011-02-08 Richard Guenther <rguenther@suse.de>
36963 PR tree-optimization/47641
36964 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
36965 require type compatibility.
36967 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36969 * gimple-low.c (lower_function_body): Don't remove the location of
36970 the return statement here.
36971 (lower_gimple_return): Do it here instead but only if the return
36972 statement is actually used twice.
36974 2011-02-08 Richard Guenther <rguenther@suse.de>
36976 PR tree-optimization/47632
36977 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
36978 unused up_to_stmt parameter, return whether cfg-cleanup is
36979 necessary, remove EH info properly.
36980 (forward_propagate_into_gimple_cond): Adjust caller.
36981 (forward_propagate_into_cond): Likewise.
36982 (forward_propagate_comparison): Likewise.
36983 (tree_ssa_forward_propagate_single_use_vars): Make
36984 forward_propagate_comparison case similar to the two others.
36986 2011-02-08 Nick Clifton <nickc@redhat.com>
36988 * config/mn10300/mn10300.opt (mliw): New command line option.
36989 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
36990 (liw_bundling): New automaton.
36991 (liw): New attribute.
36992 (liw_op): New attribute.
36993 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
36994 (movsi_internal): Add LIW attributes.
36995 (andsi3): Likewise.
36996 (iorsi3): Likewise.
36997 (xorsi3): Likewise.
36998 (addsi3): Separate register and immediate alternatives.
36999 Add LIW attributes.
37000 (subsi3): Likewise.
37002 (aslsi3): Likewise.
37003 (lshrsi3): Likewise.
37004 (ashrsi3): Likewise.
37005 (liw): New pattern.
37006 * config/mn10300/mn10300.c (liw_op_names): New
37007 (mn10300_print_operand): Handle 'W' operand descriptor.
37008 (extract_bundle): New function.
37009 (check_liw_constraints): New function.
37010 (liw_candidate): New function.
37011 (mn10300_bundle_liw): New function.
37012 (mn10300_reorg): New function.
37013 (TARGET_MACHINE_DEPENDENT_REORG): Define.
37014 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
37015 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
37016 __LIW__ or __NO_LIW__.
37017 * doc/invoke.texi: Describe the -mliw command line option.
37019 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37021 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
37022 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
37023 pthread_mutex_unlock): Remove.
37024 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
37025 * config/pa/t-pa64: Likewise.
37026 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
37027 shared libc if not linking against libpthread.
37028 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
37030 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
37033 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
37034 on 10.6 and later to ensure that we always use the unwinder from
37035 the system. Only add -no_compact_unwind when tarteting darwin
37038 2011-02-07 Steve Ellcey <sje@cup.hp.com>
37041 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
37042 (vec_interleave_lowv2sf): Ditto.
37043 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
37044 (vec_extract_oddv2sf): Ditto.
37046 2011-02-07 Mike Stump <mikestump@comcast.net>
37049 Add __ieee_divdc3 entry point.
37050 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
37052 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
37053 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
37054 * config/darwin.c (darwin_rename_builtins): Add.
37055 * config/darwin-protos.h (darwin_rename_builtins): Add.
37057 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
37060 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
37063 2011-02-07 Mike Stump <mikestump@comcast.net>
37065 * config/darwin.opt (mmacosx-version-min): Update default OS version.
37067 2011-02-07 Denis Chertykov <chertykov@gmail.com>
37070 * config/avr/libgcc.S (exit): Move .endfunc
37072 2011-02-07 Richard Guenther <rguenther@suse.de>
37074 PR tree-optimization/47615
37075 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
37076 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
37077 (run_scc_vn): Initialize it.
37078 (visit_reference_op_load): Use it.
37079 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
37081 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
37083 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
37084 DImode trapping arithmetic libfuncs.
37086 2011-02-07 Richard Guenther <rguenther@suse.de>
37088 PR tree-optimization/47621
37089 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
37091 (execute_update_addresses_taken): ... here. Make it more
37092 conservative in what we accept.
37094 2011-02-06 Joseph Myers <joseph@codesourcery.com>
37096 * config/sparc/freebsd.h (ASM_SPEC): Define.
37097 * config/sparc/vxworks.h (ASM_SPEC): Define.
37099 2011-02-06 Joseph Myers <joseph@codesourcery.com>
37101 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
37103 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
37105 * doc/invoke.texi: Remove reference to compiler internals from
37106 user documentation.
37108 * reg-notes.def: Remove REG_VALUE_PROFILE.
37109 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
37111 2011-02-05 Jakub Jelinek <jakub@redhat.com>
37113 PR middle-end/47610
37114 * varasm.c (default_section_type_flags): If decl is NULL,
37115 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
37117 2011-02-05 Jie Zhang <jie@codesourcery.com>
37120 * web.c (entry_register): Don't clobber the number of the
37121 first uninitialized reference in used[].
37123 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
37125 PR tree-optimization/46194
37126 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
37127 (build_classic_dist_vector_1): Do not represent classic distance
37128 vectors when the access functions are variating in different loops.
37130 2011-02-04 Joseph Myers <joseph@codesourcery.com>
37132 * config/mips/iris6.opt: New.
37133 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
37135 2011-02-04 Richard Henderson <rth@redhat.com>
37136 Steve Ellcey <sje@cup.hp.com>
37139 * config/ia64/predicates.md (mux1_brcst_element): New.
37140 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
37141 * config/ia64/ia64.c (ia64_unpack_assemble): New.
37142 (ia64_unpack_sign): New.
37143 (ia64_expand_unpack): Rewrite using new routines.
37144 (ia64_expand_widen_sum): Ditto.
37145 (ia64_expand_dot_prod_v8qi): Ditto.
37146 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
37147 routines, add endian check.
37148 (pmpy2_even): Rename from pmpy2_r, add endian check.
37149 (pmpy2_odd): Rename from pmpy2_l, add endian check.
37150 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
37151 (vec_widen_smult_hi_v4hi): Ditto.
37152 (vec_widen_umult_lo_v4hi): Ditto.
37153 (vec_widen_umult_hi_v4hi): Ditto.
37154 (mulv2si3): Change endian checks.
37155 (sdot_prodv4hi): Rewrite with new calls.
37156 (udot_prodv4hi): New.
37157 (vec_pack_ssat_v4hi): Add endian check.
37158 (vec_pack_usat_v4hi): Ditto.
37159 (vec_pack_ssat_v2si): Ditto.
37160 (max1_even): Rename from max1_r, add endian check.
37161 (max1_odd): Rename from max1_l, add endian check.
37162 (*mux1_rev): Format change.
37163 (*mux1_mix): Ditto.
37164 (*mux1_shuf): Ditto.
37165 (*mux1_alt): Ditto.
37166 (*mux1_brcst_v8qi): Use new predicate.
37167 (vec_extract_evenv8qi): Remove endian check.
37168 (vec_extract_oddv8qi): Ditto.
37169 (vec_interleave_lowv4hi): Format change.
37170 (vec_interleave_highv4hi): Ditto.
37171 (mix2_even): Rename from mix2_r, add endian check.
37172 (mix2_odd): Rename from mux2_l, add endian check.
37173 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
37174 (vec_extract_evenodd_helper): Format change.
37175 (vec_extract_evenv4hi): Remove endian check.
37176 (vec_extract_oddv4hi): Remove endian check.
37177 (vec_interleave_lowv2si): Format change.
37178 (vec_interleave_highv2si): Format change.
37179 (vec_initv2si): Remove endian check.
37180 (vecinit_v2si): Add endian check.
37181 (reduc_splus_v2sf): Add endian check.
37182 (reduc_smax_v2sf): Ditto.
37183 (reduc_smin_v2sf): Ditto.
37184 (vec_initv2sf): Remove endian check.
37185 (fpack): Add endian check.
37186 (fswap): Add endian check.
37187 (vec_interleave_highv2sf): Add endian check.
37188 (vec_interleave_lowv2sf): Add endian check.
37189 (fmix_lr): Add endian check.
37190 (vec_setv2sf): Format change.
37191 (*vec_extractv2sf_0_be): Use shift to extract operand.
37192 (*vec_extractv2sf_1_be): New.
37193 (vec_pack_trunc_v4hi): Add endian check.
37194 (vec_pack_trunc_v2si): Format change.
37196 2011-02-04 Jakub Jelinek <jakub@redhat.com>
37198 PR inline-asm/23200
37199 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
37200 do bb, locus and block comparison and disallow loads if it is not set.
37201 (stmt_is_replaceable_p): New function.
37202 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
37204 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
37205 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
37207 * tree-flow.h (stmt_is_replaceable_p): New prototype.
37209 2011-02-04 Joseph Myers <joseph@codesourcery.com>
37211 * config/rs6000/xilinx.opt: New.
37212 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
37214 2011-02-04 Joseph Myers <joseph@codesourcery.com>
37216 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
37218 2011-02-03 Anatoly Sokolov <aesok@post.ru>
37220 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
37221 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
37222 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
37223 secondary_reload_info, xtensa_secondary_reload): Remove.
37224 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
37225 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
37226 (xtensa_preferred_reload_class): Make static. Change return and
37227 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
37228 Use CONST_DOUBLE_P predicate.
37229 (xtensa_preferred_output_reload_class): New function.
37230 (xtensa_secondary_reload): Make static.
37232 2011-02-03 Joseph Myers <joseph@codesourcery.com>
37234 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
37235 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
37236 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
37238 2011-02-03 Jakub Jelinek <jakub@redhat.com>
37240 PR middle-end/31490
37241 * output.h (SECTION_RELRO): Define.
37242 (SECTION_MACH_DEP): Adjust.
37243 (get_variable_section): New prototype.
37244 * varpool.c (varpool_finalize_named_section_flags): New function.
37245 (varpool_assemble_pending_decls): Call it.
37246 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
37247 * cgraphunit.c (cgraph_output_in_order): Call
37248 varpool_finalize_named_section_flags.
37249 * varasm.c (get_section): Allow section flags conflicts between
37250 relro and read-only sections if the section hasn't been declared yet.
37251 Set SECTION_OVERRIDE after diagnosing section type conflict.
37252 (get_variable_section): No longer static.
37253 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
37254 readonly sections that need relocations.
37255 (decl_readonly_section_1): New function.
37256 (decl_readonly_section): Use it.
37259 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
37260 Steve Ellcey <sje@cup.hp.com>
37262 PR middle-end/31490
37263 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
37264 if section attribute used.
37266 2011-02-03 Jakub Jelinek <jakub@redhat.com>
37268 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
37269 * config/darwin.c (SECTION_NO_ANCHOR): Define.
37270 (darwin_init_sections): Remove assertion.
37272 2011-02-03 Nick Clifton <nickc@redhat.com>
37274 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
37276 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
37277 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
37278 instead of "n" and "pz".
37279 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
37282 2011-02-03 Jakub Jelinek <jakub@redhat.com>
37285 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
37286 fma, expand FMA_EXPR as fma{,f,l} call.
37289 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
37290 copy them into a unsigned char variable and pass address of it to
37291 lto_output_data_stream.
37294 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
37295 around backend_init_target and lang_dependent_init_target calls.
37296 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
37297 (verify_cgraph_node): Don't call set_cfun here. Use
37298 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
37299 Set error_found for incorrectly represented calls to thunks.
37301 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
37304 PR rtl-optimization/43494
37305 * rtl.h (for_each_inc_dec_fn): New type.
37306 (for_each_inc_dec): Declare.
37307 * rtlanal.c (struct for_each_inc_dec_ops): New type.
37308 (for_each_inc_dec_find_inc_dec): New fn.
37309 (for_each_inc_dec_find_mem): New fn.
37310 (for_each_inc_dec): New fn.
37311 * dse.c (struct insn_size): Remove.
37312 (replace_inc_dec, replace_inc_dec_mem): Remove.
37313 (emit_inc_dec_insn_before): New fn.
37314 (check_for_inc_dec): Use it, along with for_each_inc_dec.
37315 (canon_address): Pass mem modes to cselib_lookup.
37316 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
37317 (cselib_lookup_from_insn): Likewise.
37318 (cselib_subst_to_values): Likewise.
37319 * cselib.c (find_slot_memmode): New var.
37320 (cselib_find_slot): New fn. Use it instead of
37321 htab_find_slot_with_hash everywhere.
37322 (entry_and_rtx_equal_p): Use find_slot_memmode.
37323 (autoinc_split): New fn.
37324 (rtx_equal_for_cselib_p): Rename and implement in terms of...
37325 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
37326 Deal with autoinc. Special-case recursion into MEMs.
37327 (cselib_hash_rtx): Likewise.
37328 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
37329 address and MEM modes.
37330 (cselib_subst_to_values): Add memmode, pass it on.
37332 (cselib_lookup): Add memmode argument, pass it on.
37333 (cselib_lookup_from_insn): Add memmode.
37334 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
37335 (struct cselib_record_autoinc_data): New.
37336 (cselib_record_autoinc_cb): New fn.
37337 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
37338 mode to cselib_lookup. Reset autoinced REGs here instead of...
37339 (cselib_process_insn): ... here.
37340 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
37342 (add_uses): Likewise, also to cselib_subst_to_values.
37343 (add_stores): Likewise.
37344 * sched-deps.c (add_insn_mem_dependence): Pass mode to
37345 cselib_subst_to_values.
37346 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
37347 * gcse.c (do_local_cprop): Adjusted.
37348 * postreload.c (reload_cse_simplify_set): Adjusted.
37349 (reload_cse_simplify_operands): Adjusted.
37350 * sel-sched-dump (debug_mem_addr_value): Pass mode.
37352 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
37354 PR tree-optimization/45122
37355 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
37356 unsafe assumptions when there's more than one loop exit.
37358 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
37361 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
37362 Document using vector double with the load/store builtins, and
37363 that the load/store builtins always use Altivec instructions.
37365 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
37366 to use altivec memory instructions, even on VSX.
37367 (vector_altivec_store_<mode>): Ditto.
37369 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
37372 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
37373 V2DF, V2DI support to load/store overloaded builtins.
37375 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
37376 altivec load/store builtins for V2DF/V2DI types.
37378 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
37379 set avoid indexed addresses on power6 if -maltivec.
37380 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
37381 vector_altivec_load/vector_altivec_store builtins.
37382 (altivec_expand_st_builtin): Ditto.
37383 (altivec_expand_builtin): Add VSX memory builtins.
37384 (rs6000_init_builtins): Add V2DI types to internal types.
37385 (altivec_init_builtins): Add support for V2DF/V2DI altivec
37386 load/store builtins.
37387 (rs6000_address_for_altivec): Insure memory address is appropriate
37390 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
37391 vec_vsx_ld and vec_vsx_st.
37392 (vsx_store_<mode>): Ditto.
37394 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
37395 variables to hold long long types for VSX vector memory builtins.
37396 (RS6000_BTI_unsigned_long_long): Ditto.
37397 (long_long_integer_type_internal_node): Ditti.
37398 (long_long_unsigned_type_internal_node): Ditti.
37400 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
37401 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
37402 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
37404 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
37406 (vec_vsx_st): Ditto.
37408 2011-02-02 Joseph Myers <joseph@codesourcery.com>
37410 * config/pa/pa-hpux10.opt: New.
37411 * config/hpux11.opt (pthread): New Driver option.
37412 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
37413 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
37415 2011-02-02 Joseph Myers <joseph@codesourcery.com>
37417 * config/ia64/vms.opt: New.
37418 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
37420 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
37423 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
37424 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
37425 generator functions.
37426 (vsx_floatuns<VSi><mode>2): Ditto.
37427 (vsx_fix_trunc<mode><VSi>2): Ditto.
37428 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
37430 2011-02-02 Joseph Myers <joseph@codesourcery.com>
37432 * config/i386/djgpp.opt (posix): New Driver option.
37434 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
37436 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
37437 Move to the unsupported targets list.
37439 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
37441 PR rtl-optimization/47525
37442 * df-scan.c: Update copyright years.
37443 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
37444 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
37446 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37448 * config/i386/sysv4.h (TARGET_VERSION): Remove.
37449 (SUBTARGET_RETURN_IN_MEMORY): Remove.
37450 (ASM_OUTPUT_ASCII): Remove.
37451 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
37453 2011-02-02 Jeff Law <law@redhat.com>
37455 PR middle-end/47543
37456 * reload.c (find_reloads_address): Handle reg+d address where both
37457 components are invalid by reloading the entire address.
37459 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
37460 Richard Guenther <rguenther@suse.de>
37462 PR tree-optimization/40979
37464 * passes.c (init_optimization_passes): After LIM call copy_prop
37465 and DCE to clean up.
37466 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
37468 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
37470 PR tree-optimization/47576
37471 PR tree-optimization/47555
37472 * doc/invoke.texi (scev-max-expr-complexity): Documented.
37473 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
37474 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
37475 * tree-scalar-evolution.c (follow_ssa_edge): Use
37476 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
37478 2011-02-02 Richard Guenther <rguenther@suse.de>
37480 PR tree-optimization/47566
37481 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
37483 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
37487 * tree-inline.c (declare_return_variable): Remove unused caller
37492 * tree-flow-inline.h (clear_is_used, is_used_p): New.
37493 * cfgexpand.c (account_used_vars_for_block): Use them.
37494 * tree-nrv.c (tree_nrv): Likewise.
37495 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
37496 (dump_scope_block): Likewise.
37497 (remove_unused_locals): Likewise.
37501 * tree-inline.c (declare_return_variable): Add result decl to
37502 local decls only once.
37503 * gimple-low.c (record_vars_into): Mark newly-created variables
37506 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
37512 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
37514 (no_real_insns_p, schedule_block, set_priorities): Drop special
37515 treatment of boundary debug insns.
37516 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
37517 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
37518 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
37519 (BOUNDARY_DEBUG_INSN_P): Likewise.
37520 (SCHEDULE_DEBUG_INSN_P): Likewise.
37521 * sched-rgn.c (init_ready_list): Drop special treatment of
37522 boundary debug insns.
37523 * final.c (rest_of_clean_state): Clear notes' BB.
37525 2011-02-01 Joseph Myers <joseph@codesourcery.com>
37527 * config/openbsd.opt (assert=): New Driver option.
37529 2011-02-01 Joseph Myers <joseph@codesourcery.com>
37531 * config/i386/nto.opt: New.
37532 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
37534 2011-02-01 Joseph Myers <joseph@codesourcery.com>
37536 * config/i386/netware.opt: New.
37537 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
37539 2011-02-01 Joseph Myers <joseph@codesourcery.com>
37541 * config/interix.opt (posix): New Driver option.
37543 2011-02-01 DJ Delorie <dj@redhat.com>
37545 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
37547 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
37550 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
37552 PR tree-optimization/47561
37553 * toplev.c (process_options): Print the Graphite flags. Add
37554 flag_loop_flatten to the list of options requiring Graphite.
37556 2011-02-01 Joseph Myers <joseph@codesourcery.com>
37558 * config/i386/cygming.opt (posix): New Driver option.
37560 2011-02-01 Joseph Myers <joseph@codesourcery.com>
37562 * config/arm/vxworks.opt: New.
37563 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
37565 2011-02-01 Joseph Myers <joseph@codesourcery.com>
37567 * config/alpha/elf.opt: New.
37568 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
37569 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
37571 2011-02-01 Richard Guenther <rguenther@suse.de>
37573 PR tree-optimization/47559
37574 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
37575 store-motion on references that can throw.
37577 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
37579 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
37580 * tree-pass.h (TDF_CSELIB): New macro.
37581 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
37582 cselib_lookup): Check for it rather than for TDF_DETAILS.
37584 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
37587 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
37588 is HOST_BIT_BUCKET.
37590 * opts.c (finish_options): Don't add x_aux_base_name if it is
37593 2011-02-01 Richard Guenther <rguenther@suse.de>
37595 PR tree-optimization/47555
37597 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
37599 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
37601 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
37604 * config/lm32/t-lm32: Add multilib for all CPU options.
37606 2011-02-01 Richard Guenther <rguenther@suse.de>
37608 PR tree-optimization/47541
37609 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
37610 sure to have a field at offset zero.
37612 2011-01-31 Joseph Myers <joseph@codesourcery.com>
37614 * config/arc/arc.opt (EB, EL): New Driver options.
37616 2011-01-31 Joseph Myers <joseph@codesourcery.com>
37618 * config/alpha/osf5.opt: New.
37619 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
37621 2011-01-31 Joseph Myers <joseph@codesourcery.com>
37623 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
37625 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
37627 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
37628 -floop-interchange.
37629 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
37630 is an alias of -floop-interchange and that it requires the
37631 Graphite infrastructure.
37632 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
37633 flag_loop_interchange based on the value of flag_tree_loop_linear.
37635 2011-01-31 Jakub Jelinek <jakub@redhat.com>
37636 Richard Guenther <rguenther@suse.de>
37638 PR tree-optimization/47538
37639 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
37640 type instead of r1type, except for comparisons. For right
37641 shifts and comparisons punt if there are mismatches in
37642 sizetype vs. non-sizetype types.
37644 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37646 * doc/sourcebuild.texi (Effective-Target Keywords): Document
37649 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37651 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
37653 * configure: Regenerate.
37655 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37657 * configure.ac (gcc_cv_ld_static_option): Define.
37658 (gcc_cv_ld_dynamic_option): Define.
37659 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
37661 (HAVE_LD_STATIC_DYNAMIC): Update message.
37662 (LD_STATIC_OPTION): Define.
37663 (LD_DYNAMIC_OPTION): Define.
37664 * configure: Regenerate.
37665 * config.in: Regenerate.
37666 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
37667 HAVE_LD_STATIC_DYNAMIC]: Use them.
37669 2011-01-31 Nick Clifton <nickc@redhat.com>
37671 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
37672 registers inside interrupt handlers if the handler is not a leaf
37675 2011-01-31 Nick Clifton <nickc@redhat.com>
37677 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
37678 reg_renumber returning an INVALID_REGNUM.
37680 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
37683 * doc/install.texi: Document host options discarded when cross
37684 configuring target libraries.
37686 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
37689 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
37692 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
37694 (no_real_insns_p, schedule_block, set_priorities): Drop special
37695 treatment of boundary debug insns.
37696 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
37697 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
37698 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
37699 (BOUNDARY_DEBUG_INSN_P): Likewise.
37700 (SCHEDULE_DEBUG_INSN_P): Likewise.
37701 * sched-rgn.c (init_ready_list): Drop special treatment of
37702 boundary debug insns.
37703 * final.c (rest_of_clean-state): Clear notes' BB.
37705 2011-01-31 Alan Modra <amodra@gmail.com>
37707 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
37708 toc relative expressions as we do in print_operand_address.
37710 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
37712 * doc/extend.texi: Follow spelling conventions.
37713 * doc/invoke.texi: Fix a typo.
37715 2011-01-30 Joseph Myers <joseph@codesourcery.com>
37717 * config/hpux11.opt: New.
37718 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
37719 ia64*-*-hpux*): Use hpux11.opt.
37721 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
37723 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
37726 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
37728 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
37731 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
37733 * doc/install.texi (Binaries): Remove outdated reference for
37734 Motorola 68HC11/68HC12 downloads.
37736 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
37738 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
37741 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
37744 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
37747 2011-01-28 Ahmad Sharif <asharif@google.com>
37749 * value-prof.c (check_counter): Corrected error message.
37751 2011-01-29 Jie Zhang <jie@codesourcery.com>
37753 * config/arm/arm.c (arm_legitimize_reload_address): New.
37754 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
37755 arm_legitimize_reload_address.
37756 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
37758 2011-01-28 Ian Lance Taylor <iant@google.com>
37760 * godump.c (go_define): Ignore macros whose definitions include
37761 two adjacent operands.
37763 2011-01-28 Jakub Jelinek <jakub@redhat.com>
37766 * varasm.c (force_const_mem): Store copy of x in desc->constant
37767 instead of x itself.
37768 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
37769 itself into REG_EQUAL note.
37771 2011-01-28 Joseph Myers <joseph@codesourcery.com>
37773 * config/freebsd.opt (posix, rdynamic): New Driver options.
37775 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37777 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
37778 -Bstatic/-Bdynamic.
37779 * configure: Regenerate.
37781 2011-01-27 Joseph Myers <joseph@codesourcery.com>
37783 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
37784 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
37786 2011-01-27 Anatoly Sokolov <aesok@post.ru>
37788 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
37789 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
37790 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
37791 (s390_preferred_reload_class): Make static. Change return and
37792 'rclass' argument type to reg_class_t.
37794 2011-01-27 Jan Hubicka <jh@suse.cz>
37796 PR middle-end/46949
37797 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
37798 (process_function_and_variable_attributes): Check defined weakrefs.
37800 2011-01-27 Martin Jambor <mjambor@suse.cz>
37802 PR tree-optimization/47228
37803 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
37804 build_ref_for_offset.
37806 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
37808 * config/spu/spu-elf.h (ASM_SPEC): Remove.
37810 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
37812 PR rtl-optimization/46856
37813 * postreload.c (reload_combine_recognize_const_pattern): Do not
37814 separate cc0 setter and user on cc0 targets.
37816 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
37819 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
37820 passed a VOID_TYPE expression, immediately emit an error and
37821 return error_mark_node.
37823 2011-01-26 Jeff Law <law@redhat.com>
37825 PR rtl-optimization/47464
37826 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
37827 rather than may_trap_p as needed.
37829 2011-01-26 DJ Delorie <dj@redhat.com>
37831 PR rtl-optimization/46878
37832 * combine.c (insn_a_feeds_b): Check for the implicit cc0
37833 setter/user dependency as well.
37835 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
37837 PR rtl-optimization/44469
37838 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
37839 after removing trivially dead basic blocks.
37841 2011-01-26 Joseph Myers <joseph@codesourcery.com>
37843 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
37844 * config/frv/frv.h (LINK_SPEC): Likewise.
37845 * config/i386/netware.h (LINK_SPEC): Likewise.
37846 * config/m68k/linux.h (ASM_SPEC): Likewise.
37847 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
37848 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
37849 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
37850 * config/sparc/linux.h (ASM_SPEC): Likewise.
37851 * config/sparc/linux64.h (ASM_SPEC): Likewise.
37852 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
37854 2011-01-26 Joseph Myers <joseph@codesourcery.com>
37856 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
37857 * config/frv/frv.h (ASM_SPEC): Likewise.
37858 * config/m68k/linux.h (ASM_SPEC): Likewise.
37859 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
37860 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
37861 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
37862 * config/sparc/linux.h (ASM_SPEC): Likewise.
37863 * config/sparc/linux64.h (ASM_SPEC): Likewise.
37864 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
37866 2011-01-26 Joseph Myers <joseph@codesourcery.com>
37868 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
37869 * config/frv/frv.h (LINK_SPEC): Likewise.
37870 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
37872 2011-01-26 Joseph Myers <joseph@codesourcery.com>
37874 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
37875 * config/frv/frv.h (ASM_SPEC): Likewise.
37876 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
37877 * config/m68k/linux.h (ASM_SPEC): Likewise.
37878 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
37879 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
37880 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
37881 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
37882 * config/sparc/linux.h (ASM_SPEC): Likewise.
37883 * config/sparc/linux64.h (ASM_SPEC): Likewise.
37884 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
37885 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
37887 2011-01-26 Steve Ellcey <sje@cup.hp.com>
37890 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
37892 (vec_extract_evenodd_help): Ditto.
37893 (vec_extract_evenv4hi): Ditto.
37894 (vec_extract_oddv4hi): Ditto.
37895 (vec_interleave_lowv2si): Ditto.
37896 (vec_interleave_highv2si): Ditto.
37897 (vec_extract_evenv2si): Ditto.
37898 (vec_extract_oddv2si: Ditto.
37899 (vec_pack_trunc_v2si): Ditto.
37901 2011-01-22 Jan Hubicka <jh@suse.cz>
37904 * cgraph.h (cgraph_local_info): New field can_change_signature.
37905 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
37906 signature can change.
37907 (ipcp_estimate_growth): Call sequence simplify only if calle signature
37909 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
37910 (cgraph_function_versioning): We can not change signature of functions
37911 that don't allow that.
37912 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
37913 (lto_input_node): Likewise.
37914 * ipa-inline.c (compute_inline_parameters): Compute
37915 local.can_change_signature.
37916 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
37917 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
37918 functions that can not change signature.
37919 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
37920 init_cumulative_args): Do not use local calling conventions
37921 for functions that can not change signature.
37923 2011-01-22 Jan Hubicka <jh@suse.cz>
37925 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
37927 2011-01-26 Richard Guenther <rguenther@suse.de>
37929 PR tree-optimization/47190
37930 * cgraphunit.c (process_common_attributes): New function.
37931 (process_function_and_variable_attributes): Use it.
37933 2011-01-26 Richard Guenther <rguenther@suse.de>
37936 * cgraphbuild.c (record_eh_tables): Record reference to personality
37939 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
37942 * sel-sched.c (moveup_expr): Don't let debug insns prevent
37943 non-debug insns from moving up.
37945 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
37948 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
37949 t-dlldir{,-x} fragment for build and add it to tmake_file.
37950 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
37951 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
37952 * config/i386/t-dlldir: New file.
37953 (SHLIB_DLLDIR): Define.
37954 * config/i386/t-dlldir-x: New file.
37955 (SHLIB_DLLDIR): Define.
37956 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
37957 (SHLIB_INSTALL): Use it.
37959 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
37962 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
37963 lower bound of the allowed Thumb-2 coprocessor load/store
37964 index range to -256. Add explaining comment.
37966 2011-01-25 Ian Lance Taylor <iant@google.com>
37968 * godump.c (go_define): Improve lexing of macro expansion to only
37969 accept expressions which match Go spec.
37971 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
37974 * tree.c (handle_dll_attribute): Handle it.
37975 * doc/extend.texi (@item dllexport): Mention it.
37976 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
37978 2011-01-25 Ian Lance Taylor <iant@google.com>
37980 PR tree-optimization/26854
37981 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
37982 (decl_jump_unsafe): Move higher in file, with no other change.
37983 (bind): Set has_jump_unsafe_decl if appropriate.
37984 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
37985 (check_earlier_gotos): Likewise.
37986 (c_check_switch_jump_warnings): Likewise.
37988 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
37990 * doc/invoke.texi (Warning Options): Add missing hyphen.
37991 (-fprofile-dir): Minor grammatical fixes.
37992 (-fbranch-probabilities): Likewise.
37994 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
37998 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
38000 (no_real_insns_p, schedule_block, set_priorities): Drop special
38001 treatment of boundary debug insns.
38002 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
38003 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
38004 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
38005 (BOUNDARY_DEBUG_INSN_P): Likewise.
38006 (SCHEDULE_DEBUG_INSN_P): Likewise.
38007 * sched-rgn.c (init_ready_list): Drop special treatment of
38008 boundary debug insns.
38009 * final.c (rest_of_clean-state): Clear notes' BB.
38011 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38013 * Makefile.in (LAMBDA_H): Removed.
38014 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
38015 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
38016 lambda-trans.o, and tree-loop-linear.o.
38017 (lto-symtab.o): Remove dependence on LAMBDA_H.
38018 (tree-loop-linear.o): Remove rule.
38019 (lambda-mat.o): Same.
38020 (lambda-trans.o): Same.
38021 (lambda-code.o): Same.
38022 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
38023 (tree-vect-slp.o): Same.
38024 * hwint.h (gcd): Moved here.
38025 (least_common_multiple): Same.
38026 * lambda-code.c: Removed.
38027 * lambda-mat.c: Removed.
38028 * lambda-trans.c: Removed.
38029 * lambda.h: Removed.
38030 * tree-loop-linear.c: Removed.
38031 * lto-symtab.c: Do not include lambda.h.
38032 * omega.c (gcd): Removed.
38033 * passes.c (init_optimization_passes): Remove pass_linear_transform.
38034 * tree-data-ref.c (print_lambda_vector): Moved here.
38035 (lambda_vector_copy): Same.
38036 (lambda_matrix_copy): Same.
38037 (lambda_matrix_id): Same.
38038 (lambda_vector_first_nz): Same.
38039 (lambda_matrix_row_add): Same.
38040 (lambda_matrix_row_exchange): Same.
38041 (lambda_vector_mult_const): Same.
38042 (lambda_vector_negate): Same.
38043 (lambda_matrix_row_negate): Same.
38044 (lambda_vector_equal): Same.
38045 (lambda_matrix_right_hermite): Same.
38046 * tree-data-ref.h: Do not include lambda.h.
38047 (lambda_vector): Moved here.
38048 (lambda_matrix): Same.
38049 (dependence_level): Same.
38050 (lambda_transform_legal_p): Removed declaration.
38051 (lambda_collect_parameters): Same.
38052 (lambda_compute_access_matrices): Same.
38053 (lambda_vector_gcd): Same.
38054 (lambda_vector_new): Same.
38055 (lambda_vector_clear): Same.
38056 (lambda_vector_lexico_pos): Same.
38057 (lambda_vector_zerop): Same.
38058 (lambda_matrix_new): Same.
38059 * tree-flow.h (least_common_multiple): Removed declaration.
38060 * tree-parloops.c (lambda_trans_matrix): Moved here.
38061 (LTM_MATRIX): Same.
38062 (LTM_ROWSIZE): Same.
38063 (LTM_COLSIZE): Same.
38064 (LTM_DENOMINATOR): Same.
38065 (lambda_trans_matrix_new): Same.
38066 (lambda_matrix_vector_mult): Same.
38067 (lambda_transform_legal_p): Same.
38068 * tree-pass.h (pass_linear_transform): Removed declaration.
38069 * tree-ssa-loop.c (tree_linear_transform): Removed.
38070 (gate_tree_linear_transform): Removed.
38071 (pass_linear_transform): Removed.
38072 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
38073 flag_loop_interchange.
38075 2011-01-25 Jakub Jelinek <jakub@redhat.com>
38077 PR tree-optimization/47265
38078 PR tree-optimization/47443
38079 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
38080 if name still has some uses.
38082 2011-01-25 Martin Jambor <mjambor@suse.cz>
38084 PR tree-optimization/47382
38085 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
38086 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
38088 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
38090 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
38091 sjlj_except_unwind_info.
38093 2011-01-25 Richard Guenther <rguenther@suse.de>
38095 PR tree-optimization/47426
38096 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
38097 visible functions results escape.
38099 2011-01-25 Jakub Jelinek <jakub@redhat.com>
38102 * config/arm/arm.c (any_sibcall_uses_r3): New function.
38103 (arm_get_frame_offsets): Use it.
38105 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38106 Jakub Jelinek <jakub@redhat.com>
38108 PR tree-optimization/47271
38109 * tree-if-conv.c (bb_postdominates_preds): New.
38110 (if_convertible_bb_p): Call bb_postdominates_preds.
38111 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
38112 (predicate_scalar_phi): Call bb_postdominates_preds.
38114 2011-01-25 Nick Clifton <nickc@redhat.com>
38116 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
38117 * config/rx/rx.c (rx_function_value): Likewise.
38118 (rx_promote_function_mode): Likewise.
38119 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
38120 in order to make it legitimate.
38121 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
38122 make sure that the first operand is the same as the result register.
38123 (addsi3_unspec): Delete.
38124 (subdi3): Do not accept immediate operands.
38125 (subdi3_internal): Likewise.
38127 2011-01-25 Jeff Law <law@redhat.com>
38129 PR rtl-optimization/37273
38130 * ira-costs.c (scan_one_insn): Detect constants living in memory and
38131 handle them like argument loads from stack slots. Do not double
38132 count memory for memory constants and argument loads from stack slots.
38134 2011-01-25 Jakub Jelinek <jakub@redhat.com>
38136 PR tree-optimization/47427
38137 PR tree-optimization/47428
38138 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
38139 coalesce if the new root var would be TREE_READONLY.
38141 2011-01-25 Richard Guenther <rguenther@suse.de>
38143 PR middle-end/47414
38144 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
38145 correct type for TBAA.
38147 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38149 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
38150 (close_phi_written_to_memory): Call for_each_index with
38151 dr_indices_valid_in_loop.
38153 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38155 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
38156 when it is initialized.
38158 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38160 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
38161 call to graphite_find_data_references_in_stmt.
38162 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
38163 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
38164 call to graphite_find_data_references_in_stmt.
38165 (analyze_drs_in_stmts): Same.
38166 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
38167 in which the scalar analysis of indices is performed.
38168 (create_data_ref): Same. Update call to dr_analyze_indices.
38169 (find_data_references_in_stmt): Update call to create_data_ref.
38170 (graphite_find_data_references_in_stmt): Same.
38171 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
38173 (create_data_ref): Same.
38174 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
38175 call to create_data_ref.
38177 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38179 * graphite-sese-to-poly.c (build_poly_scop): Move
38180 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
38182 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38184 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
38185 VAR_DECL, PARM_DECL, and RESULT_DECL.
38187 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38189 * graphite-dependences.c (reduction_dr_1): Allow several reductions
38190 in a reduction PBB.
38191 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
38192 that have already been marked as PBB_IS_REDUCTION.
38194 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38196 * graphite-scop-detection.c (same_close_phi_node): New.
38197 (remove_duplicate_close_phi): New.
38198 (make_close_phi_nodes_unique): New.
38199 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
38201 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38203 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
38204 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
38205 of both data references to be the same.
38207 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38209 * graphite-dependences.c (build_lexicographical_constraint): Remove
38210 the gdim parameter.
38211 (build_lexicographical_constraint): Adjust call to
38212 ppl_powerset_is_empty.
38213 (dependence_polyhedron): Same.
38214 (graphite_legal_transform_dr): Same.
38215 (graphite_carried_dependence_level_k): Same.
38216 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
38218 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
38220 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38222 * graphite-sese-to-poly.c
38223 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
38224 (close_phi_written_to_memory): New.
38225 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
38228 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38230 * doc/install.texi: Update the expected version number of PPL to 0.11.
38231 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
38232 #if PPL_VERSION_MINOR < 11.
38234 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38236 * graphite-dependences.c: Include graphite-cloog-util.h.
38237 (new_poly_ddr): Inlined into dependence_polyhedron.
38238 (free_poly_ddr): Moved close by new_poly_ddr.
38239 (dependence_polyhedron_1): Renamed dependence_polyhedron.
38240 Early return NULL when ppl_powerset_is_empty returns true.
38241 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
38242 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
38243 (graphite_legal_transform_dr): Call new_poly_ddr.
38244 (graphite_carried_dependence_level_k): Same.
38245 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
38246 (dot_transformed_deps_stmt_1): Removed.
38247 (dot_deps_stmt_1): Call dot_deps_stmt_2.
38248 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
38249 (dot_deps_1): Call dot_deps_2.
38250 * Makefile.in (graphite-dependences.o): Add missing dependence on
38251 graphite-cloog-util.h.
38253 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38255 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
38256 (build_lexicographical_constraint): Same.
38257 (dependence_polyhedron_1): Same.
38258 (graphite_legal_transform_dr): Same.
38259 (graphite_carried_dependence_level_k): Same.
38260 * graphite-ppl.c (ppl_powerset_is_empty): New.
38261 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
38262 * tree-data-ref.c (dump_data_reference): Print the basic block index.
38264 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38266 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
38267 the "a followed by b" relation and document it.
38269 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38271 * graphite-dependences.c (build_lexicographical_constraint): Stop the
38272 iteration when the bag of constraints is empty.
38274 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38276 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
38278 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38280 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
38281 nest and two loop depths as parameters.
38282 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
38283 lst_perfect_nestify.
38285 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38287 * graphite-dependences.c (print_pddr): Call
38288 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
38290 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38292 * graphite-ppl.c (debug_gmp_value): New.
38293 * graphite-ppl.h (debug_gmp_value): Declared.
38295 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
38297 * doc/install.texi: Document availability of cloog-0.16.
38299 2011-01-25 Vladimir Kargov <kargov@gmail.com>
38301 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
38302 invalid postdominance info.
38304 2011-01-24 Jan Hubicka <jh@suse.cz>
38307 * doc/extend.texi (weak pragma): Drop claim that it must
38308 appear before definition.
38309 * varasm.c (merge_weak, declare_weak): Only sanity check
38310 that DECL is not output at a time it is declared weak.
38312 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
38314 * machmode.def: Fixed comments.
38316 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
38318 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
38320 2011-01-24 Paul Koning <ni1d@arrl.net>
38322 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
38325 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
38328 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
38329 (block_info): Add scanned and prev.
38330 (move_or_delete_vzeroupper_2): Return if the basic block
38331 has been scanned and the upper 128bit state is unchanged
38332 from the last scan.
38333 (move_or_delete_vzeroupper_1): Return true if the exit
38335 (move_or_delete_vzeroupper): Visit basic blocks using the
38336 work-list based algorithm based on vt_find_locations in
38339 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
38341 2011-01-24 Nick Clifton <nickc@redhat.com>
38343 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
38344 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
38345 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
38346 then define __v850e1__.
38347 * doc/invoke.texi: Document -mv850es.
38349 2011-01-24 Richard Henderson <rth@redhat.com>
38351 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
38352 compound unordered comparisons.
38353 * config/rx/rx.c (rx_split_fp_compare): Remove.
38354 * config/rx/rx-protos.h: Update.
38355 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
38356 (cbranchsf4): Don't call rx_split_fp_compare.
38357 (*cbranchsf4): Use rx_split_cbranch.
38358 (*cmpsf): Don't accept "i" constraint.
38359 (*conditional_branch): Only valid after reload.
38360 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
38362 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
38365 * config/rs6000/altivec.md (vector constant splitters): Add
38366 support for creating vector single precision constants if -mvsx is
38367 used and we would create the constant using Altivec primitives.
38369 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
38370 Richard Sandiford <rdsandiford@googlemail.com>
38372 PR rtl-optimization/47166
38373 * reload1.c (emit_reload_insns): Disable the spill_reg_store
38374 mechanism for PRE_MODIFY and POST_MODIFY.
38375 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
38378 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
38380 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
38382 2011-01-22 Jan Hubicka <jh@suse.cz>
38385 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
38387 2011-01-22 Jan Hubicka <jh@suse.cz>
38389 PR tree-optimization/43884
38391 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
38392 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
38394 2011-01-22 Anatoly Sokolov <aesok@post.ru>
38396 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
38397 * config/s390/s390.c (s390_register_move_cost,
38398 s390_memory_move_cost): New.
38399 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
38401 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
38403 PR middle-end/47401
38404 * except.c (sjlj_assign_call_site_values): Move setting the
38405 crtl->uses_eh_lsda flag to ...
38406 (sjlj_mark_call_sites): ... here.
38407 (sjlj_emit_function_enter): Support NULL dispatch label.
38408 (sjlj_build_landing_pads): In a function with no landing pads
38409 that still has must-not-throw regions, generate code to register
38410 a personality function with empty LSDA.
38412 2011-01-21 Richard Henderson <rth@redhat.com>
38414 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
38416 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
38418 * compare-elim.c: New file.
38419 * Makefile.in (OBJS-common): Add it.
38420 (compare-elim.o): New.
38421 * common.opt (fcompare-elim): New.
38422 * opts.c (default_options_table): Add OPT_fcompare_elim.
38423 * tree-pass.h (pass_compare_elim_after_reload): New.
38424 * passes.c (init_optimization_passes): Add it.
38425 * recog.h: Protect against re-inclusion.
38426 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
38427 * doc/invoke.texi (-fcompare-elim): Document it.
38428 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
38429 * doc/tm.texi: Rebuild.
38431 2011-01-22 Nick Clifton <nickc@redhat.com>
38433 * config/rx/rx.md (cstoresf4): Pass comparison operator to
38434 rx_split_fp_compare.
38436 2011-01-22 Nick Clifton <nickc@redhat.com>
38438 * config/rx/rx.md (UNSPEC_CONST): New.
38439 (deallocate_and_return): Wrap the amount popped off the stack in
38440 an UNSPEC_CONST in order to stop it being rejected by
38441 -mmax-constant-size.
38442 (pop_and_return): Add a "(return)" rtx.
38443 (call): Drop the immediate operand.
38444 (call_internal): Likewise.
38445 (call_value): Likewise.
38446 (call_value_internal): Likewise.
38447 (sibcall_internal): Likewise.
38448 (sibcall_value_internal): Likewise.
38449 (sibcall): Likewise. Generate an explicit call using
38451 (sibcall_value): Likewise.
38452 (mov<>): FAIL if a constant operand is not legitimate.
38453 (addsi3_unpsec): New pattern.
38455 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
38456 (ok_for_max_constant): New function.
38457 (gen_safe_add): New function.
38458 (rx_expand_prologue): Use gen_safe_add.
38459 (rx_expand_epilogue): Likewise.
38460 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
38463 2011-01-21 Jeff Law <law@redhat.com>
38465 PR tree-optimization/47053
38466 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
38467 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
38468 statements are deleted.
38469 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
38470 is nonempty, then purge dead edges and cleanup the CFG.
38472 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
38475 Temporarily revert:
38476 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
38478 * tree-dfa.c (create_var_ann): Mark variable as used.
38480 2011-01-21 Jakub Jelinek <jakub@redhat.com>
38482 PR middle-end/45566
38483 * except.c (convert_to_eh_region_ranges): Emit queued no-region
38484 notes from other section in hot/cold partitioning even if
38485 last_action is -3. Increment call_site_base.
38487 PR rtl-optimization/47366
38488 * fwprop.c (forward_propagate_into): Return bool. If
38489 any changes are made, -fnon-call-exceptions is used and
38490 REG_EH_REGION note is present, call purge_dead_edges
38491 and return true if it purged anything.
38492 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
38493 any EH edges were purged.
38495 2011-01-21 Jeff Law <law@redhat.com>
38497 PR rtl-optimization/41619
38498 * caller-save.c (setup_save_areas): Break out code to determine
38499 which hard regs are live across calls by examining the reload chains
38500 so that it is always used.
38501 Eliminate code which checked REG_N_CALLS_CROSSED.
38503 2011-01-21 Jakub Jelinek <jakub@redhat.com>
38505 PR tree-optimization/47355
38506 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
38507 NOP has non-debug uses beyond PHIs in new_bb.
38509 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
38512 * cfgexpand.c (account_used_vars_for_block): Only account vars
38513 that are annotated as used.
38514 (estimated_stack_frame_size): Don't set TREE_USED.
38515 * tree-dfa.c (create_var_ann): Mark variable as used.
38517 2011-01-21 Richard Guenther <rguenther@suse.de>
38519 PR middle-end/47395
38520 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
38522 2011-01-21 Richard Guenther <rguenther@suse.de>
38524 PR tree-optimization/47365
38525 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
38526 (vn_reference_lookup_pieces): Adjust.
38527 (vn_reference_lookup): Likewise.
38528 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
38529 (vn_reference_lookup_3): Only look through kills if in
38530 VN_WALKREWRITE mode.
38531 (vn_reference_lookup_pieces): Adjust.
38532 (vn_reference_lookup): Likewise.
38533 (visit_reference_op_load): Likewise.
38534 (visit_reference_op_store): Likewise.
38535 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
38536 (compute_avail): Likewise.
38537 (eliminate): Likewise.
38539 2011-01-21 Jakub Jelinek <jakub@redhat.com>
38541 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
38542 DECL_IGNORED_P non-reg vars if they are used.
38544 PR tree-optimization/47391
38545 * varpool.c (const_value_known_p): Return false if
38548 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
38551 * config/i386/i386.c (ix86_local_alignment): Handle
38552 case for va_list_type_node is nil.
38553 (ix86_canonical_va_list_type): Likewise.
38555 2011-01-21 Alan Modra <amodra@gmail.com>
38557 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
38558 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
38560 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38562 * config/arm/arm.md (define_attr type): Rename f_load
38563 and f_store to f_fpa_load and f_fpa_store. Update.
38564 (write_conflict): Deal with rename fallout.
38565 (*push_fp_multi): Likewise.
38566 * config/arm/fpa.md (f_load): Use f_fpa_load.
38567 (f_store): Use f_fpa_store.
38568 (*movsf_fpa): Likewise.
38569 (*movdf_fpa): Likewise.
38570 (*movxf_fpa): Likewise.
38571 (*thumb2_movsf_fpa): Likewise.
38572 (*thumb2_movdf_fpa): Likewise.
38573 (*thumb2_movxf_fpa): Likewise.
38574 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
38575 f_loadd and f_stored.
38576 (*thumb2_movdi_vfp): Likewise.
38577 (*thumb2_movsf_vfp): Fix attribute to f_loads.
38578 (*thumb2_movsi_vfp): Likewise.
38579 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
38580 Use f_loads instead of f_load.
38581 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
38583 2011-01-20 Anatoly Sokolov <aesok@post.ru>
38585 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
38586 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
38587 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
38588 (xtensa_mode_dependent_address_p): New function.
38589 (constantpool_address_p): Make static. Change return type to bool.
38590 Change argument type to const_rtx. Use CONST_INT_P predicate.
38592 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
38595 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
38597 2011-01-20 Jakub Jelinek <jakub@redhat.com>
38600 * cfgexpand.c (expand_debug_expr): Instead of generating
38601 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
38604 2011-01-20 Richard Guenther <rguenther@suse.de>
38606 PR middle-end/47370
38607 * tree-inline.c (remap_gimple_op_r): Recurse manually for
38608 the pointer operand of MEM_REFs.
38610 2011-01-20 Jakub Jelinek <jakub@redhat.com>
38612 PR tree-optimization/46130
38613 * ipa-split.c (consider_split): If return_bb contains non-virtual
38614 PHIs other than for retval or if split_function would not adjust it,
38617 2011-01-20 Richard Guenther <rguenther@suse.de>
38619 PR tree-optimization/47167
38620 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
38621 Revert previous change, only avoid enumeral type changes.
38623 2011-01-19 Mike Stump <mikestump@comcast.net>
38625 * doc/tm.texi.in (BRANCH_COST): Englishify.
38626 * doc/tm.texi (BRANCH_COST): Likewise.
38628 2011-01-19 Dodji Seketeli <dodji@redhat.com>
38631 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
38632 (gen_scheduled_generic_parms_dies): New functions.
38633 (gen_struct_or_union_type_die): Schedule template parameters DIEs
38634 generation for the end of CU compilation.
38635 (dwarf2out_finish): Generate template parameters DIEs here.
38637 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
38640 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
38641 debug bind stmt on merge edges.
38643 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
38647 * function.c (instantiate_expr): Instantiate incoming rtl of
38648 implicit arguments, and recurse on VALUE_EXPRs.
38649 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
38650 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
38652 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
38654 * c-parser.c (c_parser_for_statement): Initialize
38655 collection_expression.
38657 2011-01-19 Joseph Myers <joseph@codesourcery.com>
38659 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
38661 2011-01-19 Joseph Myers <joseph@codesourcery.com>
38663 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
38664 (LINK_SHLIB_SPEC): Don't use %(link_path).
38665 (SUBTARGET_EXTRA_SPECS): Remove link_path.
38667 2011-01-19 Joseph Myers <joseph@codesourcery.com>
38669 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
38670 (NO_SHARED_LIB_SUPPORT): Remove.
38671 (LINK_SHLIB_SPEC): Remove one conditional definition.
38673 2011-01-19 Joseph Myers <joseph@codesourcery.com>
38675 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
38677 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
38678 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
38679 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
38680 %{call_shared} and conditionals on these options not being passed.
38681 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
38684 2011-01-19 Jakub Jelinek <jakub@redhat.com>
38686 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
38689 * ipa-split.c: Spelling fixes.
38691 2011-01-19 Richard Henderson <rth@redhat.com>
38693 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
38694 (*mulsi3): Likewise.
38696 * longlong.h [__mn10300__] (count_leading_zeros): New.
38697 [__mn10300__] (umul_ppmm, smul_ppmm): New.
38698 [__mn10300__] (add_ssaaaa, subddmmss): New.
38699 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
38700 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
38702 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
38704 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
38706 2011-01-19 Richard Henderson <rth@redhat.com>
38708 * config/mn10300/mn10300.md (addsi3_flags): New.
38709 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
38710 (subsi3_flags, subc_internal, subdi3): New.
38711 (subdi3_internal, *subdi3_degenerate): New.
38712 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
38714 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
38715 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
38716 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
38717 * config/mn10300/mn10300-protos.h: Update.
38718 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
38719 (return_ret): Likewise. Rename from return_internal_regs.
38720 (return_internal): Remove.
38722 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
38723 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
38724 (mn10300_legitimate_constant_p): Likewise.
38725 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
38726 (mn10300_frame_size): New.
38727 (mn10300_expand_prologue): Use it.
38728 (mn10300_expand_epilogue): Likewise.
38729 (mn10300_initial_offset): Likewise.
38730 * config/mn10300/mn10300-protos.h: Update.
38731 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
38732 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
38733 (prologue, epilogue, return_internal): Tidy output code.
38734 (mn10300_store_multiple_operation, return): Likewise.
38735 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
38736 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
38737 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
38738 (load_pic, am33_load_pic): New.
38739 (mn10300_load_pic0, mn10300_load_pic1): New.
38741 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
38742 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
38743 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
38744 (cc_flags_for_mode, cc_flags_for_code): New.
38745 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
38746 overflow flag is not valid. Validate that the flags we need
38747 for the comparison are valid.
38748 (mn10300_output_cmp): Remove.
38749 (mn10300_output_add): New.
38750 (mn10300_select_cc_mode): Use cc_flags_for_code.
38751 (mn10300_split_cbranch): New.
38752 (mn10300_match_ccmode): New.
38753 (mn10300_split_and_operand_count): New.
38754 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
38756 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
38757 (addsi3): ... here. Use mn10300_output_add.
38758 (*addsi3_flags): New.
38759 (*am33_subsi3, *mn10300_subsi3): Merge...
38760 (subsi3): ... here. Use attribute isa.
38761 (*subsi3_flags): New.
38762 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
38764 (*am33_andsi3, *mn10300_andsi3): Merge...
38765 (andsi3): ... here.
38766 (*andsi3_flags): New.
38767 (andsi3 splitters): New.
38768 (*am33_iorsi3, *mn10300_iorsi3): Merge...
38769 (iorsi3): ... here.
38770 (*iorsi3_flags): New.
38771 (*am33_xorsi3, *mn10300_xorsi3): Merge...
38772 (xorsi3): ... here.
38773 (*xorsi3_flags): New.
38774 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
38775 (one_cmplsi2): ... here.
38776 (*one_cmplsi2_flags): New.
38777 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
38778 instead of "dax" in constraints. Use mn10300_split_cbranch.
38779 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
38780 use matching constraints to eliminate a self-comparison.
38781 (*integer_conditional_branch): Rename from integer_conditional_branch.
38782 Use int_mode_flags to match CC_REG.
38783 (*cbranchsi4_btst, *btstsi): New.
38784 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
38785 mn10300_split_cbranch.
38786 (*am33_cmpsf): Rename from am33_cmpsf.
38787 (*float_conditional_branch): Rename from float_conditional_branch.
38788 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
38789 (zero_extendqisi2): ... here.
38790 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
38791 (zero_extendhisi2): ... here.
38792 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
38793 (extendqisi2): ... here.
38794 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
38795 (extendhisi2): ... here.
38796 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
38797 (ashlsi3): ... here.
38798 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
38799 (lshrsi3): ... here.
38800 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
38801 (ashrsi3): ... here.
38802 (consecutive add peephole): Remove.
38803 * config/mn10300/predicates.md (label_ref_operand): New.
38804 (int_mode_flags): New.
38805 (CCZN_comparison_operator): New.
38807 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
38808 (throughput_42_latency_43): New reservation.
38809 (mulsidi3, umulsidi3): New expanders.
38810 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
38811 the MDR register to allocation; separately allocate the low and
38812 high parts of the DImode result.
38813 (umulsidi3_internal): Similarly.
38814 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
38815 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
38816 (udivsi3, umodsi3): Remove.
38817 (udivmodsi4, divmodsi4): New expanders.
38818 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
38819 (*divmodsi4): Simiarly.
38820 (ext_internal): New.
38822 * config/mn10300/constraints.md ("z"): New constraint.
38823 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
38824 (FIXED_REGISTERS): Don't fix MDR.
38825 (CALL_USED_REGSITERS): Reformat nicely.
38826 (REG_ALLOC_ORDER): Add MDR.
38827 (enum regclass): Add MDR_REGS.
38828 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
38829 (IRA_COVER_CLASSES): Add MDR_REGS.
38830 (REGNO_REG_CLASS): Handle MDR_REG.
38831 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
38832 (mn10300_register_move_cost): Likewise.
38833 * config/mn10300/mn10300.md (MDR_REG): New.
38834 (*movsi_internal): Handle moves to/from MDR_REGS.
38836 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
38838 (mn10300_secondary_reload): Tidy combination reload classes.
38839 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
38840 addresses for AM33. Allow symbolic offsets for reg+imm.
38841 (mn10300_regno_in_class_p): New.
38842 (mn10300_legitimize_reload_address): New.
38843 * config/mn10300/mn10300.h (enum reg_class): Remove
38844 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
38845 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
38846 SP_OR_GENERAL_REGS.
38847 (REG_CLASS_NAMES): Update to match.
38848 (REG_CLASS_CONTENTS): Likewise.
38849 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
38850 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
38851 (REGNO_IN_RANGE_P): Remove.
38852 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
38853 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
38854 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
38855 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
38856 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
38857 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
38858 (REGNO_GENERAL_P): New.
38859 (HAVE_POST_MODIFY_DISP): New.
38860 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
38861 (LEGITIMIZE_RELOAD_ADDRESS): New.
38862 * config/mn10300/mn10300-protos.h: Update.
38864 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
38865 DATA_REGS for AM33 stack-pointer destination.
38866 (mn10300_preferred_output_reload_class): Likewise.
38867 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
38868 into a form appropriate for ...
38869 (TARGET_SECONDARY_RELOAD): New.
38870 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
38871 * config/mn10300/mn10300-protos.h: Update.
38872 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
38873 reload_insi; use the "A" constraint for the scratch; handle AM33
38874 moves of sp to non-address registers.
38876 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
38877 (*movqi_internal): ... here.
38878 (*am33_movhi, *mn10300_movhi): Merge into...
38879 (*movhi_internal): ... here.
38880 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
38881 as the source/destination of moves from/to SP.
38882 (movsf): Only allow for AM33-2.
38883 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
38884 any integer constant constraint. Only allow for AM33-2. Tidy
38885 all of the alternative outputs.
38886 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
38887 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
38889 (udivsi3, umodsi3): New patterns for MN103 only.
38891 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
38893 * doc/tm.texi.in: Spell out that a lack of register class unions
38895 * doc/tm.texi: Regenerate.
38897 2011-01-19 Jakub Jelinek <jakub@redhat.com>
38899 PR rtl-optimization/47337
38900 * dce.c (check_argument_store): New function.
38901 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
38903 PR tree-optimization/47290
38904 * tree-eh.c (infinite_empty_loop_p): New function.
38905 (cleanup_empty_eh): Use it.
38907 2011-01-18 Steve Ellcey <sje@cup.hp.com>
38910 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
38911 (a64_expand_widen_sum): Ditto.
38912 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
38913 (vec_extract_evenodd_help): Ditto.
38914 (vec_extract_evenv4hi): Ditto.
38915 (vec_extract_oddv4hi): Ditto.
38916 (vec_extract_evenv2si): Ditto.
38917 (vec_extract_oddv2si): Ditto.
38918 (vec_extract_evenv2sf): Ditto.
38919 (vec_extract_oddv2sf): Ditto.
38920 (vec_pack_trunc_v4hi: Ditto.
38921 (vec_pack_trunc_v2si): Ditto.
38922 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
38923 (vec_interleave_highv8qi): Ditto.
38925 (vec_extract_oddv8qi): Ditto.
38926 (vec_interleave_lowv4hi): Ditto.
38927 (vec_interleave_highv4hi): Ditto.
38928 (vec_interleave_lowv2si): Ditto.
38929 (vec_interleave_highv2si): Ditto.
38931 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38933 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
38934 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
38935 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
38936 (pa_c_mode_for_suffix): New.
38937 (TARGET_EXPAND_BUILTIN): Define.
38938 (TARGET_C_MODE_FOR_SUFFIX): Define.
38939 (pa_builtins): Define.
38940 (pa_init_builtins): Register __float128 type and init new support
38942 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
38943 * config/pa/quadlib.c (_U_Qfcopysign): New.
38945 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
38947 PR middle-end/46894
38948 * explow.c (allocate_dynamic_stack_space): Do not assume more than
38949 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
38952 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
38954 PR tree-optimization/47179
38955 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
38956 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
38958 2011-01-18 Richard Guenther <rguenther@suse.de>
38960 PR rtl-optimization/47216
38961 * emit-rtl.c: Include tree-flow.h.
38962 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
38963 of replicating it with different semantics.
38964 * Makefile.in (emit-rtl.o): Adjust.
38966 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38968 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
38969 (cortex_a9_dp): Handle neon types correctly.
38971 2011-01-18 Jakub Jelinek <jakub@redhat.com>
38973 PR rtl-optimization/47299
38974 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
38975 subtarget. Use normal multiplication if both operands are constants.
38976 * expmed.c (expand_widening_mult): Don't try to optimize constant
38977 multiplication if op0 has VOIDmode. Convert op1 constant to mode
38980 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38982 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
38983 spacing after 'e.g.', typos, comma, hyphenation.
38985 2011-01-17 Richard Henderson <rth@redhat.com>
38987 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
38988 (rx_restricted_mem_operand): New.
38989 (rx_shift_operand): Use register_operand.
38990 (rx_source_operand, rx_compare_operand): Likewise.
38991 * config/rx/rx.md (addsi3_flags): New expander.
38992 (adddi3): Rewrite as expander.
38993 (adc_internal, *adc_flags, adddi3_internal): New patterns.
38994 (subsi3_flags): New expander.
38995 (subdi3): Rewrite as expander.
38996 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
38998 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
38999 (rx_init_builtins): Remove sat builtin.
39000 (rx_expand_builtin): Likewise.
39001 * config/rx/rx.md (ssaddsi3): New.
39002 (*sat): Rename from sat. Represent the CC_REG input.
39004 * config/rx/predicates.md (rshift_operator): New.
39005 * config/rx/rx.c (rx_expand_insv): Remove.
39006 * config/rx/rx-protos.h: Update.
39007 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
39008 operand to the canonical position.
39009 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
39010 (*bitclr, *bitclr_in_memory): Similarly.
39011 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
39012 (insv): Retain the zero_extract in the expansion.
39014 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
39015 (bswaphi2, bitinvert, revw): Likewise.
39017 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
39018 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
39019 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
39020 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
39021 (bitset, bitset_in_memory): Likewise.
39022 (bitinvert, bitinvert_in_memory): Likewise.
39023 (bitclr, bitclr_in_memory): Likewise.
39024 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
39025 (rx_strend, rx_cmpstrn): Likewise.
39026 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
39027 (bitop peep2 patterns): Remove.
39029 * config/rx/rx.c (rx_match_ccmode): New.
39030 * config/rx/rx-protos.h: Update.
39031 * config/rx/rx.md (abssi2): Clobber, don't set flags.
39032 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
39033 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
39034 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
39035 (fix_truncsfsi2, floatsisf2): Likewise.
39036 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
39037 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
39038 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
39039 (*subsi3_flags, *xorsi3_flags): New.
39041 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
39043 * config/rx/rx.c (rx_print_operand): Remove workaround for
39044 unsplit comparison operations.
39046 * config/rx/rx.md (movsicc): Split after reload.
39047 (*movsicc): Merge *movsieq and *movsine via match_operator.
39048 (*stcc): New pattern.
39050 * config/rx/rx.c (rx_float_compare_mode): Remove.
39051 * config/rx/rx.h (rx_float_compare_mode): Remove.
39052 * config/rx/rx.md (cstoresi4): Split after reload.
39053 (*sccc): New pattern.
39055 * config/rx/predicates.md (label_ref_operand): New.
39056 (rx_z_comparison_operator): New.
39057 (rx_zs_comparison_operator): New.
39058 (rx_fp_comparison_operator): New.
39059 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
39060 Validate that the flags are set properly for the comparison.
39061 (rx_gen_cond_branch_template): Remove.
39062 (rx_cc_modes_compatible): Remove.
39063 (mode_from_flags): New.
39064 (flags_from_code): Rename from flags_needed_for_conditional.
39065 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
39066 (rx_select_cc_mode): Likewise.
39067 (rx_split_fp_compare): New.
39068 (rx_split_cbranch): New.
39069 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
39070 (*cbranchsi4): Use match_operator and rx_split_cbranch.
39071 (*cbranchsf4): Similarly.
39072 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
39073 match_operator and rx_split_cbranch.
39074 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
39075 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
39076 (*cmpsi): Rename from cmpsi.
39077 (*tstsi): Rename from tstsi.
39078 (*cmpsf): Rename from cmpsf; use CC_Fmode.
39079 (*conditional_branch): Rename from conditional_branch.
39080 (*reveresed_conditional_branch): Remove.
39081 (b<code>): Remove expander.
39082 * config/rx/rx-protos.h: Update.
39084 * config/rx/rx.c (rx_compare_redundant): Remove.
39085 * config/rx/rx.md (cmpsi): Don't use it.
39086 * config/rx/rx-protos.h: Update.
39088 * config/rx/rx-modes.def (CC_F): New mode.
39089 * config/rx/rx.c (rx_select_cc_mode): New.
39090 * config/rx/rx.h (SELECT_CC_MODE): Use it.
39091 * config/rx/rx-protos.h: Update.
39093 2011-01-17 Richard Henderson <rth@redhat.com>
39095 * except.c (dump_eh_tree): Fix stray ; after for statement.
39097 2011-01-17 Richard Guenther <rguenther@suse.de>
39099 PR tree-optimization/47313
39100 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
39101 handling before copying the body. Properly deal with
39102 by-reference result in SSA form.
39104 2011-01-17 Ian Lance Taylor <iant@google.com>
39107 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
39108 (struct_value_alias_set): Don't define.
39109 (sparc_option_override): Don't set sparc_sr_alias_set and
39110 struct_value_alias_set.
39111 (save_or_restore_regs): Use gen_frame_mem rather than calling
39113 (sparc_struct_value_rtx): Likewise.
39115 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
39118 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
39119 (_mm_maskstore_pd): Likewise.
39120 (_mm_maskload_ps): Likewise.
39121 (_mm_maskstore_ps): Likewise.
39122 (_mm256_maskload_pd): Change mask to __m256i.
39123 (_mm256_maskstore_pd): Likewise.
39124 (_mm256_maskload_ps): Likewise.
39125 (_mm256_maskstore_ps): Likewise.
39127 * config/i386/i386-builtin-types.def: Updated.
39128 (ix86_expand_special_args_builtin): Likewise.
39130 * config/i386/i386.c (bdesc_special_args): Update
39131 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
39132 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
39133 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
39134 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
39136 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
39137 Use <avxpermvecmode> on mask register.
39138 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
39140 2011-01-17 Olivier Hainque <hainque@adacore.com>
39141 Michael Haubenwallner <michael.haubenwallner@salomon.at>
39142 Eric Botcazou <ebotcazou@adacore.com>
39145 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
39146 if <= USHRT_MAX in 32-bit mode.
39148 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39150 * doc/install.texi (Configuration, Specific): Wrap long
39151 lines in examples. Allow line wrapping in long options
39152 and URLs where beneficial for PDF output.
39154 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
39156 * config/mips/mips.c (mips_classify_symbol): Don't return
39157 SYMBOL_PC_RELATIVE for nonlocal labels.
39159 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
39161 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
39163 2011-01-15 Jan Hubicka <jh@suse.cz>
39165 PR tree-optimization/47276
39166 * ipa.c (function_and_variable_visibility): Do not try to mark alias
39167 declarations as needed.
39169 2011-01-15 Martin Jambor <mjambor@suse.cz>
39171 * common.opt (fdevirtualize): New flag.
39172 * doc/invoke.texi (Option Summary): Document it.
39173 * opts.c (default_options_table): Add devirtualize flag.
39174 * ipa-prop.c (detect_type_change): Return immediately if
39175 devirtualize flag is not set.
39176 (detect_type_change_ssa): Likewise.
39177 (compute_known_type_jump_func): Likewise.
39178 (ipa_analyze_virtual_call_uses): Likewise.
39180 2011-01-14 Martin Jambor <mjambor@suse.cz>
39182 PR tree-optimization/45934
39183 PR tree-optimization/46302
39184 * ipa-prop.c (type_change_info): New type.
39185 (stmt_may_be_vtbl_ptr_store): New function.
39186 (check_stmt_for_type_change): Likewise.
39187 (detect_type_change): Likewise.
39188 (detect_type_change_ssa): Likewise.
39189 (compute_complex_assign_jump_func): Check for dynamic type change.
39190 (compute_complex_ancestor_jump_func): Likewise.
39191 (compute_known_type_jump_func): Likewise.
39192 (compute_scalar_jump_functions): Likewise.
39193 (ipa_analyze_virtual_call_uses): Likewise.
39194 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
39196 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39198 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
39199 * config/i386/i386.opt (msse5): New Alias.
39201 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39203 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
39204 * config/sparc/linux64.h (CC1_SPEC): Likewise.
39205 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
39206 * config/sparc/sparc.h (CC1_SPEC): Likewise.
39208 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39210 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
39212 * config/sparc/linux64.h (CC1_SPEC): Likewise.
39213 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
39214 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
39215 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
39217 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
39219 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39221 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
39223 2011-01-14 Mike Stump <mikestump@comcast.net>
39225 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
39226 * config/fr30/fr30.md: Likweise
39227 (movsi_push): Likewise.
39228 (movsi_pop): Likewise.
39229 (enter_func): Likewise.
39230 * config/moxie/moxie.md (movsi_push): Likewise.
39231 (movsi_pop): Likewise.
39233 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39235 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
39236 %{no_archive} %{exact_version}.
39237 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
39238 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
39239 %{no_archive} %{exact_version}.
39240 * config/mips/openbsd.h (LINK_SPEC): Likewise.
39241 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
39242 * config/mips/vxworks.h: Likewise.
39244 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39246 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
39248 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39250 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
39251 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
39253 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39255 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
39258 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39260 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
39262 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
39263 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
39265 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
39266 Don't handle -shlib.
39268 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39270 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
39271 (CC1_SPEC): Don't handle -profile.
39273 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39275 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
39276 * config/mips/mips.h (CC1_SPEC): Likewise.
39278 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39280 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
39281 * config/mips/mips.h (CC1_SPEC): Likewise.
39283 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39285 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
39286 * config/m32r/linux.h (LINK_SPEC): Likewise.
39287 * config/mips/linux.h (LINK_SPEC): Likewise.
39288 * config/mips/linux64.h (LINK_SPEC): Likewise.
39289 * config/sparc/linux.h (LINK_SPEC): Likewise.
39290 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
39291 LINK_SPEC): Likewise.
39292 * config/xtensa/linux.h (LINK_SPEC): Likewise.
39294 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39296 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
39298 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
39300 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39302 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
39303 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
39305 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39307 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
39309 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39311 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
39312 supports -Bstatic/-Bdynamic.
39313 * configure: Regenerate.
39315 2011-01-14 Jan Hubicka <jh@suse.cz>
39316 Jack Howarth <howarth@bromo.med.uc.edu>
39319 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
39320 when checking debug_info_level. Test write_symbols instead of
39321 debug_hooks->var_location when setting flag_var_tracking_uninit.
39323 2011-01-14 Richard Guenther <rguenther@suse.de>
39325 PR tree-optimization/47179
39326 * target.def (ref_may_alias_errno): New target hook.
39327 * targhooks.h (default_ref_may_alias_errno): Declare.
39328 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
39329 (default_ref_may_alias_errno): New function.
39330 * target.h (struct ao_ref_s): Declare.
39331 * tree-ssa-alias.c: Include target.h.
39332 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
39333 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
39334 (targhooks.o): Likewise.
39335 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
39336 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
39338 2011-01-14 Richard Guenther <rguenther@suse.de>
39340 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
39342 2011-01-14 Richard Guenther <rguenther@suse.de>
39344 PR tree-optimization/47280
39345 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
39346 return CFG changes.
39347 (tree_ssa_forward_propagate_single_use_vars): Deal with
39348 CFG changes from associate_plusminus.
39350 2011-01-14 Richard Guenther <rguenther@suse.de>
39352 PR middle-end/47281
39354 2011-01-11 Richard Guenther <rguenther@suse.de>
39356 PR tree-optimization/46076
39357 * tree-ssa.c (useless_type_conversion_p): Conversions from
39358 unprototyped to empty argument list function types are useless.
39360 2011-01-14 Richard Guenther <rguenther@suse.de>
39362 PR tree-optimization/47286
39363 * tree-ssa-structalias.c (new_var_info): Register variables are global.
39365 2011-01-14 Martin Jambor <mjambor@suse.cz>
39367 PR middle-end/46823
39368 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
39370 2011-01-13 Anatoly Sokolov <aesok@post.ru>
39372 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
39373 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
39374 * config/xtensa/xtensa.c (xtensa_libcall_value,
39375 xtensa_function_value_regno_p): New functions.
39376 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
39378 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
39381 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
39383 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
39384 New function prototype.
39385 * config/i386/winnt.c (i386_pe_assemble_visibility):
39386 Warn only if attribute was specified by user.
39388 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
39391 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
39393 (floatunsdidf2_fcfidu): Ditto.
39395 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39397 * config/s390/s390.c (print_operand_address): Replace 'error' with
39398 'output_operand_lossage'.
39399 (print_operand): Likewise.
39401 2011-01-13 Jeff Law <law@redhat.com>
39403 PR rtl-optimization/39077
39404 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
39405 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
39406 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
39407 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
39408 * gcse.c (prune_insertions_deletions): New function.
39409 (compute_pre_data): Use it.
39411 2011-01-13 Dodji Seketeli <dodji@redhat.com>
39414 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
39416 (prune_unused_types_mark): Use it.
39418 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
39420 PR rtl-optimization/45352
39421 * sel-sched.c: Update copyright years.
39422 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
39423 in the advancing loop when we have issued issue_rate insns.
39425 2011-01-12 Richard Henderson <rth@redhat.com>
39427 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
39428 (TARGET_MD_ASM_CLOBBERS): New.
39430 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
39431 (TARGET_DELEGITIMIZE_ADDRESS): New.
39433 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
39434 (clzsi2, *bsch): New patterns.
39436 * config/mn10300/mn10300.md (INT): New mode iterator.
39437 (*mov<INT>_clr): New pattern, and peep2 to generate it.
39439 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
39440 flag_split_wide_types.
39442 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
39443 (mn10300_trampoline_init): Rewrite without a template, an immediate
39444 load and a direct branch.
39445 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
39447 2011-01-12 Anatoly Sokolov <aesok@post.ru>
39449 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
39450 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
39451 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
39452 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
39454 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
39457 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
39460 2011-01-12 Jan Hubicka <jh@suse.cz>
39463 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
39464 (PLUGIN_COND_CLOSE): New macro.
39465 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
39467 2011-01-12 Richard Guenther <rguenther@suse.de>
39470 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
39471 register variables in a MEM_REF.
39473 2011-01-12 Joseph Myers <joseph@codesourcery.com>
39475 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
39476 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
39477 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
39478 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
39479 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
39480 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
39481 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
39482 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
39483 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
39484 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
39485 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
39486 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
39487 * config/gnu-user.h: New. Copied from linux.h.
39488 (LINUX_TARGET_STARTFILE_SPEC): Rename to
39489 GNU_USER_TARGET_STARTFILE_SPEC.
39490 (LINUX_TARGET_ENDFILE_SPEC): Rename to
39491 GNU_USER_TARGET_ENDFILE_SPEC.
39492 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
39493 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
39494 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
39495 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
39496 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
39497 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
39498 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
39499 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
39500 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
39501 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
39502 * config/arm/linux-eabi.h (CC1_SPEC): Use
39503 GNU_USER_TARGET_CC1_SPEC.
39504 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
39505 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
39506 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
39507 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
39508 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
39509 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
39510 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
39511 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
39513 2011-01-12 Richard Guenther <rguenther@suse.de>
39516 * doc/invoke.texi (ffast-math): Document it is turned on
39519 2011-01-12 Jan Hubicka <jh@suse.cz>
39521 PR tree-optimization/47233
39522 * opts.c (common_handle_option): Disable ipa-reference with profile
39525 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
39527 * c-parser.c (c_parser_objc_at_property_declaration): Improved
39530 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
39532 * c-parser.c (c_lex_one_token): Updated and reindented some
39533 comments. No changes in code.
39535 2011-01-11 Ian Lance Taylor <iant@google.com>
39537 * godump.c (go_output_var): Don't output the variable if there is
39538 already a type with the same name.
39540 2011-01-11 Ian Lance Taylor <iant@google.com>
39542 * godump.c (go_format_type): Don't generate float80.
39544 2011-01-11 Richard Henderson <rth@redhat.com>
39546 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
39547 declaration. Rewrite for both speed and size.
39548 (mn10300_address_cost_1): Remove.
39549 (mn10300_register_move_cost): New.
39550 (mn10300_memory_move_cost): New.
39551 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
39552 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
39553 extensions, shifts, BSWAP, CLZ.
39554 (mn10300_wide_const_load_uses_clr): Remove.
39555 (TARGET_REGISTER_MOVE_COST): New.
39556 (TARGET_MEMORY_MOVE_COST): New.
39557 * config/mn10300/mn10300-protos.h: Update.
39558 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
39560 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
39561 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
39562 * config/mn10300/mn10300-protos.h: Update.
39563 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
39564 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
39565 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
39566 (*test_int_bitfield, *test_byte_bitfield): Remove.
39567 (*bit_test, *subreg_bit_test): Remove.
39568 * config/mn10300/predicates.md (const_8bit_operand): Remove.
39570 * config/mn10300/constraints.md ("c"): Rename from "A".
39571 ("A", "D"): New constraint letters.
39572 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
39573 (fmssf4, fnmasf4, fnmssf4): Likewise.
39575 * config/mn10300/mn10300.md (isa): New attribute.
39576 (enabled): New attribute.
39578 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
39579 (abssf2, negsf2): Define only for hardware fp.
39580 (sqrtsf2): Reformat.
39581 (addsf3, subsf3, mulsf3): Merge expander and insn.
39583 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
39584 (DEBUGGER_AUTO_OFFSET): Remove.
39585 (DEBUGGER_ARG_OFFSET): Remove.
39587 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
39588 Emit register stores with the same offsets as the hardware.
39589 (mn10300_store_multiple_operation): Don't check that the register
39590 save offsets are monotonic.
39591 * config/mn10300/mn10300-protos.h: Update.
39593 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
39595 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
39596 in terms of the value on the stack, not the MDR register.
39598 2011-01-11 Jan Hubicka <jh@suse.cz>
39602 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
39603 (symbol_alias_set_destroy, symbol_alias_set_contains,
39604 propagate_aliases_backward): Declare.
39605 * lto-streamer-out.c (struct sets): New sturcture.
39606 (trivally_defined_alias): New function.
39607 (output_alias_pair_p): Rewrite.
39608 (output_unreferenced_globals): Fix output of alias pairs.
39609 (produce_symtab): Likewise.
39610 * ipa.c (function_and_variable_visibility): Set weak alias destination
39612 * varasm.c (symbol_alias_set_t): Remove.
39613 (symbol_alias_set_destroy): Export.
39614 (propagate_aliases_forward, propagate_aliases_backward): New functions
39616 (compute_visible_aliases): ... this one; remove.
39617 (trivially_visible_alias): New
39618 (trivially_defined_alias): New.
39619 (remove_unreachable_alias_pairs): Rewrite.
39620 (finish_aliases_1): Reorganize code checking if alias is defined.
39621 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
39624 2011-01-11 Richard Guenther <rguenther@suse.de>
39626 PR tree-optimization/46076
39627 * tree-ssa.c (useless_type_conversion_p): Conversions from
39628 unprototyped to empty argument list function types are useless.
39630 2011-01-11 Richard Guenther <rguenther@suse.de>
39632 PR middle-end/45235
39633 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
39634 volatile MEMs as MEM_READONLY_P.
39636 2011-01-11 Richard Guenther <rguenther@suse.de>
39638 PR tree-optimization/47239
39639 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
39641 2011-01-11 Jeff Law <law@redhat.com>
39643 PR tree-optimization/47086
39644 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
39645 IVs from statements that might throw.
39647 2011-01-10 Jan Hubicka <jh@suse.cz>
39650 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
39652 2011-01-10 Jan Hubicka <jh@suse.cz>
39655 * profile.c (read_profile_edge_counts): Ignore profile inconistency
39656 when correcting profile.
39658 2011-01-10 Jan Hubicka <jh@suse.cz>
39661 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
39662 DECL_FINI_PRIORITY.
39663 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
39664 Restore DECL_FINI_PRIORITY.
39666 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39668 * doc/gimple.texi: Fix quoting of multi-word return values in
39669 @deftypefn statements. Ensure presence of return value. Wrap
39670 overlong @deftypefn lines.
39671 (is_gimple_operand, is_gimple_min_invariant_address): Remove
39672 descriptions of removed functions.
39673 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
39674 of multi-word return value in @deftypefn statement.
39676 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39678 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
39679 (Conditional Expressions, Logical Operators)
39680 (Statement and operand traversals): Do not indent smallexample
39681 code. Fix duplicate function argument in example.
39683 2011-01-10 Jeff Law <law@redhat.com>
39685 PR tree-optimization/47141
39686 * ipa-split.c (split_function): Handle case where we are
39687 returning a value and the return block has a virtual operand phi.
39689 2011-01-10 Jan Hubicka <jh@suse.cz>
39691 PR tree-optimization/47234
39692 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
39693 (pass_feedback_split_functions): Declare.
39694 * passes.c (init_optimization_passes): Add ipa-split as subpass of
39696 * ipa-split.c (gate_split_functions): Update comments; disable
39697 split-functions for profile_arc_flag and branch_probabilities.
39698 (gate_feedback_split_functions): New function.
39699 (execute_feedback_split_functions): New function.
39700 (pass_feedback_split_functions): New global var.
39702 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
39705 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
39706 calling gimple_call_set_cannot_inline.
39708 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
39710 * config/darwin-sections.def: Remove unused section.
39712 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
39715 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
39717 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
39720 * c-parser.c (c_parser_declaration_or_fndef): Improved
39723 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
39725 * config/i386/winnt.c (i386_pe_start_function): Make sure
39726 to switch back to function's section.
39728 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
39732 * plugin.c: Move include of dlfcn.h from here...
39733 * system.h: ... to here.
39735 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39737 * doc/cpp.texi (C++ Named Operators): Fix markup for header
39739 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
39740 two extra empty pages in PDF output.
39742 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
39745 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
39746 for error recovery purposes behave as if it was not specified so
39747 that the default type is usd.
39749 2011-01-07 Jan Hubicka <jh@suse.cz>
39751 PR tree-optmization/46469
39752 * ipa.c (function_and_variable_visibility): Clear needed flags on
39753 nodes with external decls; handle weakrefs merging correctly.
39755 2011-01-07 Joseph Myers <joseph@codesourcery.com>
39757 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
39760 2011-01-07 Jan Hubicka <jh@suse.cz>
39762 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
39763 and no longer claim that gold is required for linker plugin.
39764 * configure: Regenerate.
39765 * gcc.c (PLUGIN_COND): New macro.
39766 (LINK_COMMAND_SPEC): Use it.
39767 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
39768 * config.in (HAVE_LTO_PLUGIN): New.
39769 * configure.ac (--with-lto-plugin): New parameter; autodetect
39772 2011-01-07 Jan Hubicka <jh@suse.cz>
39774 PR tree-optimization/46367
39775 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
39776 when we can update original.
39777 (cgraph_mark_inline_edge): Sanity check.
39778 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
39780 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
39782 * config/spu/spu.h (ASM_COMMENT_START): Define.
39784 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
39787 * gcc.c (%>S): New.
39788 (SWITCH_KEEP_FOR_GCC): Likewise.
39789 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
39790 (do_spec_1): Handle "%>".
39792 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
39794 2011-01-07 Jakub Jelinek <jakub@redhat.com>
39797 * config/i386/i386.c (ix86_delegitimize_address): If
39798 simplify_gen_subreg fails, return orig_x.
39801 * value-prof.c (gimple_stringop_fixed_value): Handle
39802 lhs of the call properly.
39804 2011-01-07 Jan Hubicka <jh@suse.cz>
39807 * lto-opt.c (lto_reissue_options): Set flag_shlib.
39809 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
39811 * target.def (function_switched_text_sections): New hook.
39812 * doc/tm.texi: Regenerated.
39813 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
39814 * final.c (default_function_switched_text_sections): New.
39815 (final_scan_insn): Call function_switched_text_sections when a
39816 mid-function section change occurs.
39817 * output.h (default_function_switched_text_sections): Declare.
39818 * config/darwin-protos.h (darwin_function_switched_text_sections):
39820 * config/darwin.c (darwin_function_switched_text_sections): New.
39821 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
39823 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
39825 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
39826 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
39827 the secondary code fragment when outputting for DWARF == 2.
39829 2011-01-07 Anatoly Sokolov <aesok@post.ru>
39831 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
39832 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
39834 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
39835 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
39837 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
39840 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
39841 when it is not empty.
39843 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
39846 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
39847 (case ${target}): Add btver1.
39848 * config/i386/driver-i386.c (host_detect_local_cpu): Let
39849 -march=native recognize btver1 processors.
39850 * config/i386/i386-c.c (ix86_target_macros_internal): Add
39851 btver1 def_and_undef
39852 * config/i386/i386.c (struct processor_costs btver1_cost): New
39854 (m_BTVER1): New definition.
39855 (m_AMD_MULTIPLE): Includes m_BTVER1.
39856 (initial_ix86_tune_features): Add btver1 tune.
39857 (processor_target_table): Add btver1 entry.
39858 (static const char *const cpu_names): Add btver1 entry.
39859 (software_prefetching_beneficial_p): Add btver1.
39860 (ix86_option_override_internal): Add btver1 instruction sets.
39861 (ix86_issue_rate): Add btver1.
39862 (ix86_adjust_cost): Add btver1.
39863 * config/i386/i386.h (TARGET_BTVER1): New definition.
39864 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
39865 (enum processor_type): Add PROCESSOR_BTVER1.
39866 * config/i386/i386.md (define_attr "cpu"): Add btver1.
39868 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39871 * config/i386/i386.c (legitimize_tls_address)
39872 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
39873 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
39874 (tls_initial_exec_64_sun): New pattern.
39876 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
39878 * doc/invoke.texi (Overall Options): Improve wording and markup
39879 of the description of -wrapper.
39881 2011-01-06 Joseph Myers <joseph@codesourcery.com>
39883 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
39884 rdynamic, threads): New Driver options.
39886 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39889 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
39890 if coming from .tdata.
39891 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
39893 2011-01-06 Jan Hubicka <jh@suse.cz>
39896 * collect2.c (main): Do not enable LTOmode when plugin is active.
39898 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39901 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
39902 --version output if supported.
39903 * configure: Regenerate.
39905 2011-01-06 Joseph Myers <joseph@codesourcery.com>
39907 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
39910 2011-01-06 Jakub Jelinek <jakub@redhat.com>
39913 * c-convert.c (convert): When converting a complex expression
39914 other than COMPLEX_EXPR to a different complex type, ensure
39915 c_save_expr is called instead of save_expr, unless in_late_binary_op.
39916 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
39917 when converting COMPLEX_TYPE.
39919 2011-01-06 Ira Rosen <irar@il.ibm.com>
39921 PR tree-optimization/47139
39922 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
39923 only the last reduction value is used outside the loop. Update
39926 2011-01-05 Joseph Myers <joseph@codesourcery.com>
39928 * config/rtems.opt: New.
39929 * config.gcc (*-*-rtems*): Use rtems.opt.
39931 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
39933 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
39934 processors do not support 3DNow instructions.
39936 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
39938 * config/spu/spu.c (spu_option_override): Set parameter
39939 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
39941 2011-01-05 Jan Hubicka <jh@suse.cz>
39943 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
39944 at the command line.
39946 2011-01-05 Martin Jambor <mjambor@suse.cz>
39949 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
39950 deltas on streamed outgoing edges.
39951 (output_node_opt_summary): Output info for outgoing edges only when
39952 the node is in new parameter set.
39953 (output_cgraph_opt_summary): New parameter set, passed to the two
39954 aforementioned functions. Update its forward declaration and its
39957 2011-01-05 Tom Tromey <tromey@redhat.com>
39959 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
39960 operator to c_finish_omp_atomic.
39961 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
39962 (build_unary_op): Update.
39963 (build_modify_expr): Update.
39964 (build_asm_expr): Update.
39966 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
39968 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
39969 newly inserted insns.
39970 (pad_bb): Likewise.
39971 (spu_emit_branch_hint): Likewise.
39972 (insert_hbrp_for_ilb_runout): Likewise.
39973 (spu_machine_dependent_reorg): Call df_finish_pass after
39974 schedule_insns returns.
39976 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
39978 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
39980 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
39982 PR tree-optimization/47005
39983 * tree-sra.c (struct access): Add 'non_addressable' bit.
39984 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
39985 (decide_one_param_reduction): Return 0 if the parameter is passed by
39986 reference and one of the accesses in the group is non_addressable.
39988 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
39990 PR tree-optimization/47056
39991 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
39992 (mark_load): Likewise. Handle FUNCTION_DECL specially.
39993 (mark_store): Likewise. Pass STMT to ipa_record_reference.
39995 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
39997 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
39998 initializer. Skip view conversions from aggregate types.
40000 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
40003 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
40005 2011-01-04 Philipp Thomas <pth@suse.de>
40007 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
40010 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
40012 * function.c (thread_prologue_and_epilogue_insns): Do not crash
40013 on empty epilogue sequences.
40015 2011-01-04 Joseph Myers <joseph@codesourcery.com>
40017 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
40018 non-static): New Driver options.
40020 2011-01-04 Jie Zhang <jie@codesourcery.com>
40023 * gcc.c (default_compilers[]): Set combinable field to 0
40024 for all assembly languages.
40026 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
40028 * config/mips/loongson3a.md: New file.
40029 * config/mips/mips.md: Include loongson3a.md.
40030 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
40033 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
40035 PR middle-end/47017
40036 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
40037 instead of convert_memory_address_addr_space on the base expression.
40039 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
40041 * config/spu/spu.c (spu_option_override): Update error text
40042 for bad -march= / -mtune= values.
40044 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
40046 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
40047 if branch-hint optimization will be performed.
40049 2011-01-03 Jakub Jelinek <jakub@redhat.com>
40051 PR tree-optimization/47148
40052 * ipa-split.c (split_function): Convert arguments to
40053 DECL_ARG_TYPE if possible.
40055 PR tree-optimization/47155
40056 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
40057 when computing uns.
40059 PR rtl-optimization/47157
40060 * combine.c (try_combine): If undobuf.other_insn becomes
40061 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
40062 and set *new_direct_jump_p too.
40064 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
40066 PR tree-optimization/47021
40067 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
40069 2011-01-03 Jakub Jelinek <jakub@redhat.com>
40071 * gcc.c (process_command): Update copyright notice dates.
40072 * gcov.c (print_version): Likewise.
40073 * gcov-dump.c (print_version): Likewise.
40074 * mips-tfile.c (main): Likewise.
40075 * mips-tdump.c (main): Likewise.
40077 2011-01-03 Martin Jambor <mjambor@suse.cz>
40079 PR tree-optimization/46801
40080 * tree-sra.c (type_internals_preclude_sra_p): Check whether
40081 aggregate fields start at byte boundary instead of the bit-field flag.
40083 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
40086 * gcc.c (main): Revert revision 168407.
40088 2011-01-03 Martin Jambor <mjambor@suse.cz>
40090 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
40092 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
40094 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
40095 vector optab to expand vector/scalar shift, update gimple to vector.
40097 2011-01-03 Martin Jambor <mjambor@suse.cz>
40099 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
40102 2011-01-03 Martin Jambor <mjambor@suse.cz>
40104 PR tree-optimization/46984
40105 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
40107 (cgraph_create_indirect_edge): Fixed line length.
40108 (cgraph_indirect_call_info): Declare.
40109 (cgraph_make_edge_direct) Update declaration.
40110 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
40111 (cgraph_create_indirect_edge): Use it.
40112 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
40114 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
40115 the new thunk_delta representation.
40116 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
40118 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
40119 (ipa_read_indirect_edge_info): Likewise.
40120 * lto-cgraph.c (output_edge_opt_summary): New function.
40121 (output_node_opt_summary): Call it on all outgoing edges.
40122 (input_edge_opt_summary): New function.
40123 (input_node_opt_summary): Call it on all outgoing edges.
40125 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
40128 * gcc.c (main): Don't check have_o when settting combine_inputs.
40130 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
40132 * regrename.c: Add general comment describing the pass.
40133 (struct du_head): Remove 'length' field.
40134 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
40135 (regrename_optimize): Do not sort chains. Rework comments, add others.
40136 Force renaming to the preferred class (if any) in the first pass and do
40137 not consider registers that belong to it in the second pass.
40138 (create_new_chain): Do not set 'length' field.
40139 (scan_rtx_reg): Likewise.
40141 2011-01-02 Jakub Jelinek <jakub@redhat.com>
40143 PR tree-optimization/47140
40144 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
40145 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
40146 to bit_value_binop.
40148 PR rtl-optimization/47028
40149 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
40150 parm_birth_insn instead of at the beginning of first bb.
40152 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
40154 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
40155 Remove the word "see" before "@pxref".
40156 * doc/rtl.texi: Remove the word "see" before "@pxref".
40158 2011-01-01 Jan Hubicka <jh@suse.cz>
40160 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
40163 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
40166 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
40169 Copyright (C) 2011 Free Software Foundation, Inc.
40171 Copying and distribution of this file, with or without modification,
40172 are permitted in any medium without royalty provided the copyright
40173 notice and this notice are preserved.