1 2012-11-19 Michael Meissner <meissner@linux.vnet.ibm.com>
3 * config/rs6000/rs6000.md (movdf_hardfloat32): Reorder move
4 constraints so that the traditional floating point loads, stores,
5 and moves are done first, then the VSX loads, stores, and moves,
6 and finally the GPR loads, stores, and moves so that reload
7 chooses FPRs over GPRs, and uses the traditional load/store
8 instructions which provide an offset.
9 (movdf_hardfloat64): Likewise.
11 2012-11-19 Richard Sandiford <rdsandiford@googlemail.com>
14 * simplify-rtx.c (simplify_subreg): Return null for invalid offsets.
16 2012-11-19 Aldy Hernandez <aldyh@redhat.com>
18 * trans-mem.c (execute_tm_mark): Release bb_regions.
20 2012-11-19 Aldy Hernandez <aldyh@redhat.com>
22 * trans-mem (collect_bb2reg): Stop scanning at irrevocable blocks.
23 (get_bb_regions_instrumented): Add new traverse_clone argument and
25 (expand_regions_1): Same.
26 (expand_region): Same.
27 (execute_tm_mark): Pass new argument to expand_regions.
28 (expand_block_edges): Pass new argument to
29 get_bb_regions_instrumented.
31 2012-11-19 Sofiane Naci <sofiane.naci@arm.com>
33 * config/aarch64/aarch64.c
34 (aarch64_output_mi_thunk): Refactor to generate RTL patterns.
36 2012-11-19 Mans Rullgard <mans@mansr.com>
39 * config/rs6000/rs6000.c (rs6000_stack_info): Always set vrsave_mask
40 for TARGET_ALTIVEC_ABI. Zero vrsave_save_offset if
41 !TARGET_ALTIVEC_VRSAVE.
42 (rs6000_emit_prologue): For SAVE_INLINE_VLRs, check vrsave_size
45 2012-11-19 David Edelsohn <dje.gcc@gmail.com>
48 * system.h (vec_free): Undef.
50 2012-11-19 Jakub Jelinek <jakub@redhat.com>
53 * tree-ssa-coalesce.c (coalesce_ssa_name): Remove static
54 keyword from ssa_name_hash var.
56 2012-11-19 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
57 Kirill Yukhin <kirill.yukhin@intel.com>
58 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
60 * doc/md.texi: Document define_subst.
61 * gensupport.c (MAX_OPERANDS): New define.
63 (match_operand_entries_in_pattern): New.
64 (used_operands_numbers): New.
67 (define_subst_queue): New.
68 (define_subst_tail): New.
69 (define_subst_attr_queue): New.
70 (define_subst_attr_tail): New.
71 (has_subst_attribute): New.
72 (subst_pattern_match): New.
73 (get_alternatives_number): New.
74 (alter_output_for_subst_insn): New.
75 (alter_attrs_for_subst_insn): New.
76 (process_substs_on_one_elem): New.
78 (process_define_subst): New.
79 (duplicate_alternatives): New.
80 (duplicate_each_alternative): New.
81 (constraints_handler_t): New typedef.
82 (alter_constraints): New.
83 (adjust_operands_numbers): New.
84 (replace_duplicating_operands_in_pattern): New.
85 (remove_from_queue): New.
86 (process_rtx): Handle define_subst and define_subst_attr.
87 (change_subst_attribute): New.
88 (alter_predicate_for_insn): Fix formatting.
89 (alter_attrs_for_insn): Likewise.
90 (alter_output_for_insn): Likewise.
91 (mark_operands_from_match_dup): New.
92 (mark_operands_used_in_match_dup): New.
93 (find_first_unused_number_of_operand): New.
94 (renumerate_operands_in_pattern): New.
95 (generate_match_dup): New.
96 (check_define_attr_duplicates): New.
97 (init_rtx_reader_args_cb): Add checking for duplicated attrs and
98 processing of define_subst.
99 (read_md_rtx): Handle define_subst.
100 * read-rtl.c (struct subst_attr_to_iter_mapping): New.
101 (substs): New global.
102 (apply_subst_iterator): New.
103 (bind_subst_iter_and_attr): New.
104 (find_subst_iter_by_attr): New.
105 (map_attr_string): Handle subst-iterators.
106 (add_condition_to_rtx): Handle define_subst.
107 (apply_iterators): Likewise.
108 (initialize_iterators): Likewise.
109 (add_define_attr_for_define_subst): New.
110 (add_define_subst_attr): New.
111 (read_subst_mapping): New.
112 (read_rtx): Handle define_subst_attr.
113 (read_rtx_code): Add subst-attributes recognition during reading of
115 * rtl.def (DEFINE_EXPAND): Add vector of attributes.
117 (DEFINE_SUBST_ATTR): New.
119 2012-11-19 Tom de Vries <tom@codesourcery.com>
121 PR rtl-optimization/55315
123 * rtlanal.c (nonzero_address_p): Don't assume a nonzero address plus a
124 const is a nonzero address.
126 2012-11-18 Sandra Loosemore <sandra@codesourcery.com>
128 * doc/extend.texi: Use @smallexample consistently. Add @noindent
129 when continuing a sentence or paragraph past an example. Change
130 tabs to spaces in examples.
132 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
134 * doc/md.texi (extv@var{m}, extvmisalign@var{m}, extzv@var{m})
135 (extzvmisalign@var{m}, insv@var{m}, insvmisalign@var{m}): Document.
136 (insv, extv, extzv): Deprecate.
137 * optabs.def (insv_optab, extv_optab, extzv_optab)
138 (insvmisalign_optab, extvmisalign_optab, extzvmisalign_optab):
140 * optabs.c (get_optab_extraction_insn): New function.
141 (get_extraction_insn): Use it.
142 * config/mips/mips.md (extv): Split into...
143 (extvmisalign<mode>, extv<mode>): ...these new patterns. Rename
144 existing extv<mode> pattern to...
145 (*extv<mode>): ...this.
146 (extzv): Split into...
147 (extzvmisalign<mode>, extzv<mode>): ...these new patterns. Rename
148 existing extzv<mode> pattern to...
149 (*extzv<mode>): ...this.
150 (insv): Split into...
151 (insvmisalign<mode>, insv<mode>): ...these new patterns. Rename
152 existing insv<mode> pattern to...
153 (*insv<mode>): ...this. Use const_int_operand rather than
155 * config/mips/mips.c (mips_block_move_straight): Use set_mem_size
156 to set the size of BLKmode accesses.
157 (mips_get_unaligned_mem): Require OP0 to be a BLKmode memory,
158 turning it from an "rtx *" to an rtx.
159 (mips_expand_ext_as_unaligned_load): Simplify for new optab
160 interface. Update call to mips_get_unaligned_mem.
161 (mips_expand_ins_as_unaligned_store): Update call to
162 mips_get_unaligned_mem.
164 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
166 * Makefile.in (recog.o): Add insn-codes.h.
167 * expr.h (extraction_pattern): Move to optabs.h.
168 (mode_for_extraction): Delete.
169 * optabs.h (extraction_insn): New structure.
170 (extraction_pattern): Moved from expr.h.
171 (get_best_reg_extraction_insn, get_best_mem_extraction_insn): Declare.
172 * optabs.c (HAVE_insv, CODE_FOR_insv, HAVE_extv, CODE_FOR_extv)
173 (HAVE_extzv, CODE_FOR_extzv): Provide defaults.
174 (extraction_type): New enum.
175 (get_traditional_extraction_insn, get_extraction_insn)
176 (get_best_reg_extraction_insn, get_best_mem_extraction_insn):
178 * combine.c (make_extraction): Use get_best_reg_extraction_insn
179 instead of mode_for_extraction.
180 * expmed.c (HAVE_insv, CODE_FOR_insv, gen_insv, HAVE_extv)
181 (CODE_FOR_extv, gen_extv, HAVE_extzv, CODE_FOR_extzv, gen_extzv):
182 Remove fallback definitions.
183 (mode_for_extraction): Delete.
184 (adjust_bit_field_mem_for_reg): New function.
185 (store_bit_field_using_insv): Replace OP_MODE parameter with
186 an extraction_insn. Pass struct_mode to narrow_bit_field_mem.
187 (extract_bit_field_using_extv): Likewise EXT_MODE.
188 (store_bit_field_1): Use get_best_reg_extraction_insn and
189 get_best_mem_extraction_insn instead of mode_for_extraction.
190 Use adjust_bit_field_mem_for_reg when forcing memory to a
191 register and doing a register insertion. Update calls to
192 store_bit_field_using_insv.
193 (extract_bit_field_1): Likewise extractions and calls to
194 extract_bit_field_using_extv.
195 (store_Bit_field): When narrowing to a bitregion, don't use the
196 insv mode as a limit.
197 * recog.c: (HAVE_extv, CODE_FOR_extv, HAVE_extzv, CODE_FOR_extzv):
199 (simplify_while_replacing): Use insn_data instead of
202 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
204 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
205 Set up a default value of bitregion_end_.
206 (bit_field_mode_iterator::next_mode): Always apply bitregion_end_
207 check. Include SLOW_UNALIGNED_ACCESS in the alignment check.
208 (get_best_mode): Ignore modes that are wider than the alignment.
210 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
212 * machmode.h (bit_field_mode_iterator): New class.
213 (get_best_mode): Change final parameter to bool.
214 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator)
215 (bit_field_mode_iterator::next_mode): New functions, split out from...
216 (get_best_mode): ...here. Change final parameter to bool.
217 Use bit_field_mode_iterator.
219 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
221 * expmed.c (narrow_bit_field_mem): New function.
222 (store_bit_field_using_insv, store_bit_field_1, store_fixed_bit_field)
223 (extract_bit_field_1): Use it.
225 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
227 * expr.h (adjust_address_1): Add a size parameter.
228 (adjust_address, adjust_address_nv, adjust_bitfield_address)
229 (adjust_bitfield_address_nv): Adjust accordingly.
230 (adjust_bitfield_address_size): Define.
231 * emit-rtl.c (adjust_address_1): Add a size parameter.
232 Use it to set the size if MODE has no size. Check whether
233 the size matches before returning the original memref.
234 Require the size to be known for adjust_object.
235 (adjust_automodify_address_1, widen_memory_access): Update calls
238 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
240 * combine.c (make_extraction): Handle TRUNCATEd INNERs.
242 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
244 * expr.c (expand_assignment): Don't set MEM_KEEP_ALIAS_SET_P here.
245 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle DECL_BIT_FIELDs,
246 using their size instead of the COMPONENT_REF's.
248 2012-11-17 Matthias Klose <doko@ubuntu.com>
250 * config/mips/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.
252 2012-11-17 Diego Novillo <dnovillo@google.com>
254 VEC API overhaul (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
256 * vec.c (register_overhead): Convert it into
257 member function of vec_prefix.
258 (release_overhead): Likewise.
259 (calculate_allocation): Likewise.
260 (vec_heap_free): Remove.
261 (vec_gc_o_reserve_1): Remove.
262 (vec_heap_o_reserve_1): Remove.
263 (vec_stack_o_reserve_1): Remove.
264 (vec_stack_o_reserve_exact): Remove.
265 (register_stack_vec): New.
266 (stack_vec_register_index): New.
267 (unregister_stack_vec): New.
268 (vec_assert_fail): Remove.
269 * vec.h: Conditionally include ggc.h. Document conditional
271 Update top-level documentation.
272 (ALONE_VEC_CHECK_INFO): Remove.
273 (VEC_CHECK_INFO): Remove.
274 (ALONE_VEC_CHECK_DECL): Remove.
275 (VEC_CHECK_DECL): Remove.
276 (ALONE_VEC_CHECK_PASS): Remove.
277 (VEC_CHECK_PASS): Remove.
278 (VEC_ASSERT): Remove.
279 (vec_prefix): Add friends va_gc, va_gc_atomic, va_heap and
281 Mark fields alloc_ and num_ as protected.
282 (struct vec_t): Remove. Remove all function members.
283 (struct vl_embed): Declare.
284 (struct vl_ptr): Declare.
286 (reserve_exact): Remove.
288 (safe_splice): Remove.
291 (safe_grow_cleared): Remove.
292 (safe_insert): Remove.
294 (DEF_VEC_ALLOC_I): Remove.
296 (DEF_VEC_ALLOC_P): Remove.
298 (DEF_VEC_ALLOC_O): Remove.
299 (DEF_VEC_ALLOC_P_STACK): Remove.
300 (DEF_VEC_ALLOC_O_STACK): Remove.
301 (DEF_VEC_ALLOC_I_STACK): Remove.
303 (DEF_VEC_ALLOC_A): Remove.
304 (vec_stack_p_reserve_exact_1): Remove.
305 (vec_stack_o_reserve): Remove.
306 (vec_stack_o_reserve_exact): Remove.
307 (VEC_length): Remove.
309 (VEC_address): Remove.
310 (vec_address): Remove.
313 (VEC_iterate): Remove.
314 (VEC_embedded_size): Remove.
315 (VEC_embedded_init): Remove.
319 (VEC_reserve): Remove.
320 (VEC_reserve_exact): Remove.
321 (VEC_splice): Remove.
322 (VEC_safe_splice): Remove.
323 (VEC_quick_push): Remove.
324 (VEC_safe_push): Remove.
326 (VEC_truncate): Remove.
327 (VEC_safe_grow): Remove.
328 (VEC_replace): Remove.
329 (VEC_quick_insert): Remove.
330 (VEC_safe_insert): Remove.
331 (VEC_ordered_remove): Remove.
332 (VEC_unordered_remove): Remove.
333 (VEC_block_remove): Remove.
334 (VEC_lower_bound): Remove.
339 (va_heap::default_layout): New typedef to vl_ptr.
340 (va_heap::reserve): New.
341 (va_heap::release): New.
343 (va_gc::default_layout): New typedef to vl_embed.
344 (va_gc::reserve): New.
345 (va_gc::release): New.
346 (va_gc_atomic): Declare. Inherit from va_gc.
348 (va_stack::default_layout): New typedef to vl_ptr.
349 (va_stack::alloc): New.
350 (va_stack::reserve): New.
351 (va_stack::release): New.
352 (register_stack_vec): Declare.
353 (stack_vec_register_index): Declare.
354 (unregister_stack_vec): Declare.
356 (vec<T, A = va_heap, L = typename A::default_layout>): Declare
358 (vec<T, A, vl_embed>): Partial specialization for embedded
360 (vec<T, A, vl_embed>::allocated): New.
361 (vec<T, A, vl_embed>::length): New.
362 (vec<T, A, vl_embed>::is_empty): New.
363 (vec<T, A, vl_embed>::address): New.
364 (vec<T, A, vl_embed>::operator[]): New.
365 (vec<T, A, vl_embed>::last New.
366 (vec<T, A, vl_embed>::space): New.
367 (vec<T, A, vl_embed>::iterate): New.
368 (vec<T, A, vl_embed>::iterate): New.
369 (vec<T, A, vl_embed>::copy): New.
370 (vec<T, A, vl_embed>::splice): New.
371 (vec<T, A, vl_embed>::quick_push New.
372 (vec<T, A, vl_embed>::pop New.
373 (vec<T, A, vl_embed>::truncate): New.
374 (vec<T, A, vl_embed>::quick_insert): New.
375 (vec<T, A, vl_embed>::ordered_remove): New.
376 (vec<T, A, vl_embed>::unordered_remove): New.
377 (vec<T, A, vl_embed>::block_remove): New.
378 (vec<T, A, vl_embed>::qsort): New.
379 (vec<T, A, vl_embed>::lower_bound): New.
380 (vec<T, A, vl_embed>::embedded_size): New.
381 (vec<T, A, vl_embed>::embedded_init): New.
382 (vec<T, A, vl_embed>::quick_grow): New.
383 (vec<T, A, vl_embed>::quick_grow_cleared): New.
384 (vec_safe_space): New.
385 (vec_safe_length): New.
386 (vec_safe_address): New.
387 (vec_safe_is_empty): New.
388 (vec_safe_reserve): New.
389 (vec_safe_reserve_exact): New.
392 (vec_safe_grow): New.
393 (vec_safe_grow_cleared): New.
394 (vec_safe_iterate): New.
395 (vec_safe_push): New.
396 (vec_safe_insert): New.
397 (vec_safe_truncate): New.
398 (vec_safe_copy): New.
399 (vec_safe_splice): New.
401 (vec<T, A, vl_ptr>): New partial specialization for the space
403 (vec<T, A, vl_ptr>::exists): New.
404 (vec<T, A, vl_ptr>::is_empty): New.
405 (vec<T, A, vl_ptr>::length): New.
406 (vec<T, A, vl_ptr>::address): New.
407 (vec<T, A, vl_ptr>::operator[]): New.
408 (vec<T, A, vl_ptr>::operator!=): New.
409 (vec<T, A, vl_ptr>::operator==): New.
410 (vec<T, A, vl_ptr>::last): New.
411 (vec<T, A, vl_ptr>::space): New.
412 (vec<T, A, vl_ptr>::iterate): New.
413 (vec<T, A, vl_ptr>::copy): New.
414 (vec<T, A, vl_ptr>::reserve): New.
415 (vec<T, A, vl_ptr>::reserve_exact): New.
416 (vec<T, A, vl_ptr>::splice): New.
417 (vec<T, A, vl_ptr>::safe_splice): New.
418 (vec<T, A, vl_ptr>::quick_push): New.
419 (vec<T, A, vl_ptr>::safe_push): New.
420 (vec<T, A, vl_ptr>::pop): New.
421 (vec<T, A, vl_ptr>::truncate): New.
422 (vec<T, A, vl_ptr>::safe_grow): New.
423 (vec<T, A, vl_ptr>::safe_grow_cleared): New.
424 (vec<T, A, vl_ptr>::quick_grow): New.
425 (vec<T, A, vl_ptr>::quick_grow_cleared): New.
426 (vec<T, A, vl_ptr>::quick_insert): New.
427 (vec<T, A, vl_ptr>::safe_insert): New.
428 (vec<T, A, vl_ptr>::ordered_remove): New.
429 (vec<T, A, vl_ptr>::unordered_remove): New.
430 (vec<T, A, vl_ptr>::block_remove): New.
431 (vec<T, A, vl_ptr>::qsort): New.
432 (vec<T, A, vl_ptr>::lower_bound): New.
433 (vec_stack_alloc): Define.
434 (FOR_EACH_VEC_SAFE_ELT): Define.
435 * vecir.h: Remove. Update all users.
436 * vecprim.h: Remove. Update all users.
437 Move uchar to coretypes.h.
439 * Makefile.in (VEC_H): Add $(GGC_H).
440 Remove vecir.h and vecprim.h dependencies everywhere.
442 2012-11-16 Diego Novillo <dnovillo@google.com>
444 * gengtype-lex.l (VEC): Remove.
445 Add characters in the set [\!\>\.-].
446 * gengtype-parse.c (token_names): Remove "VEC".
447 (require_template_declaration): Remove handling of VEC_TOKEN.
449 Call create_user_defined_type when parsing GTY((user)).
450 * gengtype-state.c (type_lineloc): handle TYPE_UNDEFINED.
451 (write_state_undefined_type): New.
452 (write_state_type): Call write_state_undefined_type for
454 (read_state_type): Call read_state_undefined_type for
456 * gengtype.c (dbgprint_count_type_at): Handle TYPE_UNDEFINED.
457 (create_user_defined_type): Make extern.
458 (type_for_name): Factor out of resolve_typedef.
459 (create_undefined_type): New
460 (resolve_typedef): Call it when we cannot find a previous
461 typedef and the type is not a template.
462 (find_structure): Accept TYPE_UNDEFINED.
463 (set_gc_used_type): Add argument ALLOWED_UNDEFINED_TYPES,
465 Emit an error for TYPE_UNDEFINED unless LEVEL is GC_UNUSED or
466 ALLOWED_UNDEFINED_TYPES is set.
467 Set ALLOWED_UNDEFINED_TYPES to true for TYPE_USER_STRUCT.
468 (filter_type_name): Accept templates with more than one
470 (output_mangled_typename): Handle TYPE_UNDEFINED
471 (walk_type): Likewise.
472 (write_types_process_field): Likewise.
473 (write_func_for_structure): If CHAIN_NEXT is set, ORIG_S
474 should not be a user-defined type.
475 (write_types_local_user_process_field): Handle TYPE_ARRAY,
476 TYPE_NONE and TYPE_UNDEFINED.
477 (write_types_local_process_field): Likewise.
478 (contains_scalar_p): Return 0 for TYPE_USER_STRUCT.
479 (write_root): Reject user-defined types that are not pointers.
480 Handle TYPE_NONE, TYPE_UNDEFINED, TYPE_UNION, TYPE_LANG_STRUCT
481 and TYPE_PARAM_STRUCT.
482 (output_typename): Handle TYPE_NONE, TYPE_UNDEFINED, and
484 (dump_typekind): Handle TYPE_UNDEFINED.
485 * gengtype.h (enum typekind): Add TYPE_UNDEFINED.
486 (create_user_defined_type): Declare.
487 (enum gty_token): Remove VEC_TOKEN.
489 2012-11-16 Diego Novillo <dnovillo@google.com>
491 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
493 * coretypes.h (uchar): Define.
494 * alias.c: Use new vec API in vec.h.
496 * attribs.c: Likewise.
497 * basic-block.h: Likewise.
498 * bb-reorder.c: Likewise.
499 * builtins.c: Likewise.
502 * cfganal.c: Likewise.
503 * cfgcleanup.c: Likewise.
504 * cfgexpand.c: Likewise.
505 * cfghooks.c: Likewise.
506 * cfghooks.h: Likewise.
507 * cfgloop.c: Likewise.
508 * cfgloop.h: Likewise.
509 * cfgloopanal.c: Likewise.
510 * cfgloopmanip.c: Likewise.
511 * cfgrtl.c: Likewise.
512 * cgraph.c: Likewise.
513 * cgraph.h: Likewise.
514 * cgraphclones.c: Likewise.
515 * cgraphunit.c: Likewise.
516 * combine.c: Likewise.
517 * compare-elim.c: Likewise.
518 * coverage.c: Likewise.
520 * data-streamer.h: Likewise.
521 * dbxout.c: Likewise.
523 * df-core.c: Likewise.
524 * df-problems.c: Likewise.
525 * df-scan.c: Likewise.
526 * dominance.c: Likewise.
527 * domwalk.c: Likewise.
528 * domwalk.h: Likewise.
530 * dwarf2cfi.c: Likewise.
531 * dwarf2out.c: Likewise.
532 * dwarf2out.h: Likewise.
533 * emit-rtl.c: Likewise.
534 * except.c: Likewise.
535 * except.h: Likewise.
539 * fold-const.c: Likewise.
540 * function.c: Likewise.
541 * function.h: Likewise.
542 * fwprop.c: Likewise.
545 * genattr.c: Likewise.
546 * genattrtab.c: Likewise.
547 * genautomata.c: Likewise.
548 * genextract.c: Likewise.
549 * genopinit.c: Likewise
550 * ggc-common.c: Likewise.
552 * gimple-low.c: Likewise.
553 * gimple-ssa-strength-reduction.c: Likewise.
554 * gimple-streamer-in.c: Likewise.
555 * gimple.c: Likewise.
556 * gimple.h: Likewise.
557 * gimplify.c: Likewise.
559 * graphds.c: Likewise.
560 * graphds.h: Likewise.
561 * graphite-blocking.c: Likewise.
562 * graphite-clast-to-gimple.c: Likewise.
563 * graphite-dependences.c: Likewise.
564 * graphite-interchange.c: Likewise.
565 * graphite-optimize-isl.c: Likewise.
566 * graphite-poly.c: Likewise.
567 * graphite-poly.h: Likewise.
568 * graphite-scop-detection.c: Likewise.
569 * graphite-scop-detection.h: Likewise.
570 * graphite-sese-to-poly.c: Likewise.
571 * graphite.c: Likewise.
572 * godump.c: Likewise.
573 * haifa-sched.c: Likewise.
574 * hw-doloop.c: Likewise.
575 * hw-doloop.h: Likewise.
577 * insn-addr.h: Likewise.
578 * ipa-cp.c: Likewise.
579 * ipa-inline-analysis.c: Likewise.
580 * ipa-inline-transform.c: Likewise.
581 * ipa-inline.c: Likewise.
582 * ipa-inline.h: Likewise.
583 * ipa-prop.c: Likewise.
584 * ipa-prop.h: Likewise.
585 * ipa-pure-const.c: Likewise.
586 * ipa-ref-inline.h: Likewise.
587 * ipa-ref.c: Likewise.
588 * ipa-ref.h: Likewise.
589 * ipa-reference.c: Likewise.
590 * ipa-split.c: Likewise.
591 * ipa-utils.c: Likewise.
592 * ipa-utils.h: Likewise.
594 * ira-build.c: Likewise.
595 * ira-color.c: Likewise.
596 * ira-emit.c: Likewise.
597 * ira-int.h: Likewise.
599 * loop-invariant.c: Likewise.
600 * loop-unroll.c: Likewise.
601 * lower-subreg.c: Likewise.
602 * lra-lives.c: Likewise.
604 * lto-cgraph.c: Likewise.
605 * lto-section-out.c: Likewise.
606 * lto-streamer-in.c: Likewise.
607 * lto-streamer-out.c: Likewise.
608 * lto-streamer.h: Likewise.
609 * lto-symtab.c: Likewise.
611 * modulo-sched.c: Likewise.
612 * omp-low.c: Likewise.
613 * opts-common.c: Likewise.
614 * opts-global.c: Likewise.
617 * passes.c: Likewise.
618 * predict.c: Likewise.
619 * print-tree.c: Likewise.
620 * profile.c: Likewise.
621 * profile.h: Likewise.
622 * read-rtl.c: Likewise.
624 * reg-stack.c: Likewise.
625 * regrename.c: Likewise.
626 * regrename.h: Likewise.
627 * reload.c: Likewise.
628 * reload.h: Likewise.
629 * reload1.c: Likewise.
631 * sched-deps.c: Likewise.
632 * sched-int.h: Likewise.
633 * sdbout.c: Likewise.
634 * sel-sched-dump.c: Likewise.
635 * sel-sched-ir.c: Likewise.
636 * sel-sched-ir.h: Likewise.
637 * sel-sched.c: Likewise.
640 * statistics.h: Likewise.
642 * stor-layout.c: Likewise.
643 * store-motion.c: Likewise.
645 * toplev.c: Likewise.
646 * trans-mem.c: Likewise.
647 * tree-browser.c: Likewise.
648 * tree-call-cdce.c: Likewise.
649 * tree-cfg.c: Likewise.
650 * tree-cfgcleanup.c: Likewise.
651 * tree-chrec.c: Likewise.
652 * tree-chrec.h: Likewise.
653 * tree-complex.c: Likewise.
654 * tree-data-ref.c: Likewise.
655 * tree-data-ref.h: Likewise.
656 * tree-dfa.c: Likewise.
657 * tree-diagnostic.c: Likewise.
658 * tree-dump.c: Likewise.
659 * tree-eh.c: Likewise.
660 * tree-emutls.c: Likewise.
661 * tree-flow.h: Likewise.
662 * tree-if-conv.c: Likewise.
663 * tree-inline.c: Likewise.
664 * tree-inline.h: Likewise.
665 * tree-into-ssa.c: Likewise.
666 * tree-iterator.c: Likewise.
667 * tree-loop-distribution.c: Likewise.
668 * tree-mudflap.c: Likewise.
669 * tree-optimize.c: Likewise.
670 * tree-outof-ssa.c: Likewise.
671 * tree-parloops.c: Likewise.
672 * tree-phinodes.c: Likewise.
673 * tree-predcom.c: Likewise.
674 * tree-pretty-print.c: Likewise.
675 * tree-scalar-evolution.c: Likewise.
676 * tree-sra.c: Likewise.
677 * tree-ssa-address.c: Likewise.
678 * tree-ssa-alias.c: Likewise.
679 * tree-ssa-ccp.c: Likewise.
680 * tree-ssa-coalesce.c: Likewise.
681 * tree-ssa-dce.c: Likewise.
682 * tree-ssa-dom.c: Likewise.
683 * tree-ssa-forwprop.c: Likewise.
684 * tree-ssa-live.c: Likewise.
685 * tree-ssa-live.h: Likewise.
686 * tree-ssa-loop-im.c: Likewise.
687 * tree-ssa-loop-ivcanon.c: Likewise.
688 * tree-ssa-loop-ivopts.c: Likewise.
689 * tree-ssa-loop-manip.c: Likewise.
690 * tree-ssa-loop-niter.c: Likewise.
691 * tree-ssa-loop-prefetch.c: Likewise.
692 * tree-ssa-math-opts.c: Likewise.
693 * tree-ssa-operands.c: Likewise.
694 * tree-ssa-phiopt.c: Likewise.
695 * tree-ssa-phiprop.c: Likewise.
696 * tree-ssa-pre.c: Likewise.
697 * tree-ssa-propagate.c: Likewise.
698 * tree-ssa-reassoc.c: Likewise.
699 * tree-ssa-sccvn.c: Likewise.
700 * tree-ssa-sccvn.h: Likewise.
701 * tree-ssa-strlen.c: Likewise.
702 * tree-ssa-structalias.c: Likewise.
703 * tree-ssa-tail-merge.c: Likewise.
704 * tree-ssa-threadedge.c: Likewise.
705 * tree-ssa-threadupdate.c: Likewise.
706 * tree-ssa-uncprop.c: Likewise.
707 * tree-ssa-uninit.c: Likewise.
708 * tree-ssa.c: Likewise.
709 * tree-ssanames.c: Likewise.
710 * tree-stdarg.c: Likewise.
711 * tree-streamer-in.c: Likewise.
712 * tree-streamer-out.c: Likewise.
713 * tree-streamer.c: Likewise.
714 * tree-streamer.h: Likewise.
715 * tree-switch-conversion.c: Likewise.
716 * tree-vect-data-refs.c: Likewise.
717 * tree-vect-generic.c: Likewise.
718 * tree-vect-loop-manip.c: Likewise.
719 * tree-vect-loop.c: Likewise.
720 * tree-vect-patterns.c: Likewise.
721 * tree-vect-slp.c: Likewise.
722 * tree-vect-stmts.c: Likewise.
723 * tree-vectorizer.c: Likewise.
724 * tree-vectorizer.h: Likewise.
725 * tree-vrp.c: Likewise.
728 * value-prof.c: Likewise.
729 * value-prof.h: Likewise.
730 * var-tracking.c: Likewise.
731 * varasm.c: Likewise.
732 * varpool.c: Likewise.
733 * vmsdbgout.c: Likewise.
734 * config/bfin/bfin.c: Likewise.
735 * config/c6x/c6x.c: Likewise.
736 * config/darwin.c: Likewise.
737 * config/i386/i386.c: Likewise.
738 * config/ia64/ia64.c: Likewise.
739 * config/mep/mep.c: Likewise.
740 * config/mips/mips.c: Likewise.
741 * config/pa/pa.c: Likewise.
742 * config/rs6000/rs6000-c.c: Likewise.
743 * config/rs6000/rs6000.c: Likewise.
744 * config/rx/rx.c: Likewise.
745 * config/spu/spu-c.c: Likewise.
746 * config/vms/vms.c: Likewise.
747 * config/vxworks.c: Likewise.
748 * config/epiphany/resolve-sw-modes.c: Likewise.
750 2012-11-17 Jakub Jelinek <jakub@redhat.com>
752 PR tree-optimization/55236
753 * fold-const.c (make_range_step) <case NEGATE_EXPR>: For -fwrapv
754 and signed ARG0_TYPE, force low and high to be non-NULL.
756 2012-11-17 H.J. Lu <hongjiu.lu@intel.com>
758 * common.opt (static-libasan): New option.
759 * gcc.c (LIBASAN_SPEC): New macro.
760 (LINK_COMMAND_SPEC): Replace -lasan with LIBASAN_SPEC.
761 * doc/invoke.texi: Document -static-libasan.
763 2012-11-17 Vladimir Makarov <vmakarov@redhat.com>
765 PR rtl-optimization/55342
766 * lra-assigns.c (spill_for): Try to allocate other reload pseudos
767 before and after spilling.
769 2012-11-16 Sandra Loosemore <sandra@codesourcery.com>
771 * doc/extend.texi: Various copy-edits to comply with GCC coding
772 standards for spelling, terminology, and markup, including use of
773 American spelling, correct use of terms like "back end" and
774 "run time", use correct name for GCC, use "@:" markup.
776 2012-11-16 Jakub Jelinek <jakub@redhat.com>
778 PR tree-optimization/55329
779 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Never clear
780 bits in needed_eh_cleanup while iterating over the bitmap.
781 Look through all forwarder blocks at once.
783 2012-11-16 Jan Hubicka <jh@suse.cz>
785 * params.def (max-peeled-insns, max-completely-peeled-insns): Reduce to 100.
787 2012-11-16 Simon Baldwin <simonb@google.com>
789 * doc/cppopts.texi: Document -f[no-]canonical-system-headers.
790 * doc/install.texi: Document --enable-canonical-system-headers.
792 2012-11-16 Vladimir Makarov <vmakarov@redhat.com>
794 PR rtl-optimization/55330
795 * lra-constraints.c (MAX_INHERITANCE_PASSES): New macro.
796 (lra_inheritance, lra_undo_inheritance): Use it to limit number of
799 2012-11-16 Matthias Klose <doko@ubuntu.com>
801 * config/pa/t-linux: New file; define MULTIARCH_DIRNAME.
802 * config.gcc <hppa*64*-*-linux*, hppa*-*-linux*> (tmake_file):
805 2012-11-16 Jakub Jelinek <jakub@redhat.com>
808 * config/i386/i386.md (mov<mode>cc): Use comparison_operator
809 instead of ordered_comparison_operator resp.
810 ix86_fp_comparison_operator predicates.
811 * config/i386/i386.c (ix86_expand_fp_movcc): Reject TImode
812 or for -m32 DImode comparisons.
814 2012-11-16 Jan Hubicka <jh@suse.cz>
816 PR tree-optimization/54717
817 * tree-ssa-pre.c (do_partial_partial_insertion): Consider also edges
820 2012-11-16 Uros Bizjak <ubizjak@gmail.com>
822 * config/i386/i386-protos.h (ix86_emit_mode_set): Add third argument.
823 * config/i386/i386.h (EMIT_MODE_SET): Update.
824 * config/i386/i386.c (ix86_avx_emit_vzeroupper): New function.
825 (ix86_emit_mode_set) <AVX_U128>: Call ix86_avx_emit_vzeroupper.
827 2012-11-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
830 * doc/extend.texi: Add details about bdver3.
831 * doc/invoke.texi: Add details about bdver3.
832 * config.gcc (i[34567]86-*-linux* | ...): Add bdver3.
833 (case ${target}): Add bdver3.
834 * config/i386/i386.h (TARGET_BDVER3): New definition.
835 * config/i386/i386.md (define_attr "cpu"): Add bdver3.
836 * config/i386/sse.md (sseshuf, sseshuf1): New type attributes.
837 * config/i386/athlon.md: Handle sseshuf attribute.
838 * config/i386/atom.md: Likewise.
839 * config/i386/ppro.md: Likewise.
840 * config/i386/bdver1.md: Likewise.
841 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver3.
842 * config/i386/i386-c.c (ix86_target_macros_internal): Add
844 * config/i386/driver-i386.c (host_detect_local_cpu): Let
845 -march=native recognize bdver3 processors.
846 * config/i386/i386.c (struct processor_costs bdver3_cost): New.
847 (m_BDVER3): New definition.
848 (m_AMD_MULTIPLE): Includes m_BDVER3.
849 (initial_ix86_tune_features): Add bdver3 tune.
850 (processor_target_table): Add bdver3 entry.
851 (static const char *const cpu_names): Add bdver3 entry.
852 (software_prefetching_beneficial_p): Add bdver3.
853 (ix86_option_override_internal): Add bdver3 instruction sets.
854 (ix86_option_override_internal): Remove XSAVEOPT for bdver1 and bdver2.
855 (ix86_issue_rate): Add bdver3.
856 (ix86_adjust_cost): Add bdver3.
857 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver3.
858 (enum processor_type): Add PROCESSOR_BDVER3.
859 * config/i386/bdver3.md: New file describing bdver3 pipelines.
861 2012-11-15 David S. Miller <davem@davemloft.net>
863 * expmed.c (expand_shift_1): Don't strip non-integral SUBREGs.
865 * configure.ac: Add check for assembler SPARC4 instruction support.
866 * configure: Rebuild.
867 * config.in: Add HAVE_AS_SPARC4 section.
868 * config/sparc/sparc.opt (mcbcond): New option.
869 * doc/invoke.texi: Document it.
870 * config/sparc/constraints.md: New constraint 'A' for 5-bit signed
872 * doc/md.texi: Document it.
873 * config/sparc/sparc.c (dump_target_flag_bits): Handle MASK_CBCOND.
874 (sparc_option_override): Likewise.
875 (emit_cbcond_insn): New function.
876 (emit_conditional_branch_insn): Call it.
877 (emit_cbcond_nop): New function.
878 (output_ubranch): Use cbcond, remove label arg.
879 (output_cbcond): New function.
880 * config/sparc/sparc-protos.h (output_ubranch): Update.
881 (output_cbcond): Declare it.
882 (emit_cbcond_nop): Likewise.
883 * config/sparc/sparc.md (type attribute): New types 'cbcond'
885 (emit_cbcond_nop): New attribute.
886 (length attribute): Handle cbcond and uncond_cbcond.
887 (in_call_delay attribute): Reject cbcond and uncond_cbcond.
888 (in_branch_delay attribute): Likewise.
889 (in_uncond_branch_delay attribute): Likewise.
890 (in_annul_branch_delay attribute): Likewise.
891 (*cbcond_sp32, *cbcond_sp64): New insn patterns.
892 (jump): Rewrite into an expander.
893 (*jump_ubranch, *jump_cbcond): New patterns.
894 * config/sparc/niagara4.md: Match 'cbcond' in 'n4_cti'.
895 * config/sparc/sparc.h (AS_NIAGARA4_FLAG): New macro, use it
896 when target default is niagara4.
897 (SPARC_SIMM5_P): Define.
898 * config/sparc/sol2.h (AS_SPARC64_FLAG): Adjust.
899 (AS_SPARC32_FLAG): Define.
900 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Use
901 AS_NIAGARA4_FLAG as needed.
903 2012-11-15 Steve Ellcey <sellcey@mips.com>
905 * expr.c (expand_cond_expr_using_cmove): Use promoted mode for temp.
907 2012-11-15 Tom de Vries <tom@codesourcery.com>
909 PR tree-optimization/54619
910 * tree-ssa-loop-ivopts.c (get_use_type): New function.
911 (get_computation_at): Use get_use_type.
912 (get_computation_cost_at): Declare and set mem_mode. Use mem_mode.
914 2012-11-15 Jakub Jelinek <jakub@redhat.com>
916 * asan.c (report_error_func): Set DECL_IGNORED_P, don't touch
918 (asan_init_func): Likewise.
919 (asan_finish_file): Use void * instead of __asan_global * as type of
920 __asan_{,un}register_globals. Set DECL_IGNORED_P on the decls.
922 2012-11-15 Matthias Klose <doko@ubuntu.com>
924 * Makefile.in (if_multiarch): Don't use a GNU make 3.81 feature.
926 2012-11-14 Jan Hubicka <jh@suse.cz>
929 * gcov-io.c (gcov_read_summary): Fix array bound check.
931 2012-11-14 Sterling Augustine <saugustine@google.com>
934 * dwarf2out.c (index_address_table_entry): Check a node's refcount.
936 2012-11-14 Jan Hubicka <jh@suse.cz>
939 * ipa-inline.c (edge_badness): Improve dumping; fix overflow.
941 2012-11-14 Matthias Klose <doko@ubuntu.com>
943 * config/sparc/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.
944 * config/sparc/t-linux: New file; define MULTIARCH_DIRNAME.
945 * config.gcc <sparc-*-linux*> (tmake_file): Include sparc/t-linux
946 for 32bit non-biarch configurations.
948 2012-11-14 Matthias Klose <doko@ubuntu.com>
950 * doc/invoke.texi: Document -print-multiarch.
951 * doc/install.texi: Document --enable-multiarch.
952 * doc/fragments.texi: Document MULTILIB_OSDIRNAMES, MULTIARCH_DIRNAME.
953 * configure.ac: Add --enable-multiarch option.
954 * configure: Regenerate.
955 * Makefile.in (s-mlib): Pass MULTIARCH_DIRNAME to genmultilib.
956 enable_multiarch, with_float: New macros.
957 if_multiarch: New macro, define in terms of enable_multiarch.
958 * genmultilib: Add new argument for the multiarch name.
959 * gcc.c (multiarch_dir): Define.
960 (for_each_path): Search for multiarch suffixes.
961 (driver_handle_option): Handle multiarch option.
962 (do_spec_1): Pass -imultiarch if defined.
963 (main): Print multiarch.
964 (set_multilib_dir): Separate multilib and multiarch names
965 from multilib_select.
966 (print_multilib_info): Ignore multiarch names in multilib_select.
967 * incpath.c (add_standard_paths): Search the multiarch include dirs.
968 * cppdefault.h (default_include): Document multiarch in multilib
970 * cppdefault.c: [LOCAL_INCLUDE_DIR, STANDARD_INCLUDE_DIR] Add an
971 include directory for multiarch directories.
972 * common.opt: New options --print-multiarch and -imultilib.
973 * config.gcc <i[34567]86-*-linux* | x86_64-*-linux*> (tmake_file):
974 Include i386/t-linux.
975 <i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu> (tmake_file):
976 Include i386/t-kfreebsd.
977 <i[34567]86-*-gnu*> (tmake_file): Include i386/t-gnu.
978 * config/i386/t-linux64: Add multiarch names in
979 MULTILIB_OSDIRNAMES, define MULTIARCH_DIRNAME.
980 * config/i386/t-gnu: New file.
981 * config/i386/t-kfreebsd: Likewise.
982 * config/i386/t-linux: Likewise.
984 2012-11-14 Jan Hubicka <jh@suse.cz>
986 * tree.c (set_call_expr_flags): New function.
987 (local_define_builtin): Use it.
988 * tree.h (set_call_expr_flags): Declare.
990 2012-11-14 Uros Bizjak <ubizjak@gmail.com>
991 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
994 * config/i386/i386.c (gate_insert_vzeroupper): New function.
995 (rest_of_handle_insert_vzeroupper): Ditto.
996 (struct rtl_opt_pass pass_insert_vzeroupper): New.
997 (ix86_option_override): Register vzeroupper insertion pass here.
998 (ix86_check_avx256_register): Handle SUBREGs properly.
999 (ix86_init_machine_status): Remove optimize_mode_switching[AVX_U128]
1002 2012-11-14 David Edelsohn <dje.gcc@gmail.com>
1004 * configure.ac (HAVE_LD_LARGE_TOC): Add AIX test.
1005 * configure: Regenerated.
1006 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Warn if
1007 other toc options used with cmodel. Disable TARGET_NO_FP_IN_TOC
1008 and TARGET_NO_SUM_IN_TOC if not CMODEL_SMALL. CMODEL_MEDIUM means
1009 CMODEL_LARGE on AIX.
1010 (ASM_SPEC): -mvsx implies -mpwr6. Add -many.
1011 (ASM_DEFAULT_SPEC): Use -mpwr4.
1012 (TARGET_CMODEL): Define.
1013 (SET_CMODEL): Define.
1014 * config/rs6000/rs6000.md (largetoc_high_aix<mode>): New.
1015 (largetoc_high_plus_aix<mode>): New.
1016 (largetoc_low<mode>): Change to mode iterator. Test TARGET_TOC
1017 instead of TARGET_ELF.
1018 (tocref): Remove TARGET_ELF test.
1019 * config/rs6000/rs6000.c (output_toc): Use [TE] for large TOC
1021 * config/rs6000/aix64.opt (mcmodel): New.
1023 2012-11-14 Andreas Tobler <andreast@fgznet.ch>
1025 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Guard
1026 variables with ASM_OUTPUT_TYPE_DIRECTIVE and
1027 HAVE_GNU_INDIRECT_FUNCTION where needed.
1029 2012-11-13 Ian Lance Taylor <iant@google.com>
1031 * common.opt (fPIC, fPIE, fpic, fpie): Create a Negative loop such
1032 that any of these options disables the others.
1034 2012-11-13 Sriraman Tallam <tmsriram@google.com>
1036 * cgraph.c (insert_new_cgraph_node_version): Use cgraph_get_node
1037 instead of cgraph_get_create_node.
1038 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Move
1039 ifunc not supported code to the end.
1041 2012-11-13 Martin Jambor <mjambor@suse.cz>
1043 PR tree-optimization/55253
1044 * ipa-cp.c (merge_aggregate_lattices): Propagate aggs_contain_variable
1047 2012-11-13 Eric Botcazou <ebotcazou@adacore.com>
1048 H.J. Lu <hongjiu.lu@intel.com>
1051 * config/i386/i386.c (legitimize_pic_address): Properly handle
1053 (ix86_print_operand_address): Set code to 'k' when forcing
1054 addr32 prefix. For x32, zero-extend negative displacement if
1057 2012-11-13 Uros Bizjak <ubizjak@gmail.com>
1060 * mode-switching.c (create_pre_exit): Set return_copy to last_insn if
1061 copy_start is not a function return regno. Skip debug instructions
1062 in instruction scan loop.
1064 2012-11-13 Andrew Stubbs <ams@codesourcery.com>
1065 Ulrich Weigand <ulrich.weigand@linaro.org>
1067 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Fix comment.
1068 * config/arm/arm.md (opt, opt_enabled): New attributes.
1069 (enabled): Use opt_enabled.
1070 (ashldi3, ashrdi3, lshrdi3): Add TARGET_NEON case.
1071 (ashldi3): Allow general operands for TARGET_NEON case.
1072 * config/arm/iterators.md (rshifts): New code iterator.
1073 (shift, shifttype): New code attributes.
1074 * config/arm/neon.md (UNSPEC_LOAD_COUNT): New unspec type.
1075 (neon_load_count, ashldi3_neon_noclobber, ashldi3_neon,
1076 signed_shift_di3_neon, unsigned_shift_di3_neon,
1077 ashrdi3_neon_imm_noclobber, lshrdi3_neon_imm_noclobber,
1078 <shift>di3_neon): New patterns.
1080 2012-11-13 Jakub Jelinek <jakub@redhat.com>
1082 * Makefile.in (asan.o): Depend on $(TM_P_H).
1084 PR tree-optimization/55281
1085 * tree-vect-generic.c (expand_vector_condition): Accept any
1086 is_gimple_val rather than just SSA_NAME if not COMPARISON_CLASS_P.
1087 * fold-const.c (fold_ternary_loc): Fold VEC_COND_EXPR if arg0 is
1088 either integer_all_onesp or integer_zerop.
1089 * tree-vect-stmts.c (vectorizable_condition): Build the condition
1090 using corresponding vector integer type instead of vectype.
1092 PR rtl-optimization/54127
1093 * cfgrtl.c (force_nonfallthru_and_redirect): When redirecting
1094 asm goto labels from BB_HEAD (e->dest) to target bb, decrement
1095 LABEL_NUSES of BB_HEAD (e->dest) and increment LABEL_NUSES of
1096 BB_HEAD (target) appropriately and adjust JUMP_LABEL and/or
1097 REG_LABEL_TARGET and REG_LABEL_OPERAND.
1099 2012-11-12 Jakub Jelinek <jakub@redhat.com>
1101 * asan.c (instrument_builtin_call) <case BUILT_IN_BCOPY>: Fix up
1104 2012-11-13 Hans-Peter Nilsson <hp@axis.com>
1107 * config/cris/cris.c (cris_asm_output_mi_thunk): Call
1108 final_start_function and final_end_function.
1110 2012-11-12 David Edelsohn <dje.gcc@gmail.com>
1112 * asan.c: Include tm_p.h.
1114 2012-11-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1117 * config/pa/pa.md (attr type): Add sibcall and sh_func_adrs insn types.
1118 (in_branch_delay): Don't allow sibcall or sh_func_adrs insns.
1119 (in_nullified_branch_delay): Likewise.
1120 (in_call_delay): Likewise.
1121 Define delay for sibcall insns. Adjust Z3 and Z4 insn reservations for
1122 new types. Add opaque cond to mark all calls, sibcalls, dyncalls and
1123 the $$sh_func_adrs call as variable. Update type of sibcalls and
1124 $$sh_func_adrs call.
1125 * config/pa/pa.c (pa_adjust_insn_length): Revise to return updated
1126 length instead of adjustment. Handle negative and undefined call
1127 adjustments for insn_default_length. Remove adjustment for millicode
1128 insn with unfilled delay slot.
1129 (pa_output_millicode_call): Update for revised millicode length.
1130 * config/pa/pa.h (ADJUST_INSN_LENGTH): Revise to set LENGTH.
1132 2012-11-12 Eric Botcazou <ebotcazou@adacore.com>
1134 * tree-ssa-ccp.c (dump_lattice_value) <CONSTANT>: Fix duplication.
1136 2012-11-12 Eric Botcazou <ebotcazou@adacore.com>
1138 * common.opt (fvar-tracking-uninit): Document.
1139 * toplev.c (process_options): Fix handling of flag_var_tracking_uninit.
1140 * config/darwin.c (darwin_override_options): Likewise.
1142 2012-11-12 Steven Bosscher <steven@gcc.gnu.org>
1144 * sched-vis.c (print_pattern): Handle NULL patterns.
1146 2012-11-12 Steven Bosscher <steven@gcc.gnu.org>
1147 Jakub Jelinek <jakub@redhat.com>
1149 PR rtl-optimization/51447
1150 * df-scan.c (df_get_entry_block_def_set): Add global regs to the set.
1151 * df-problems.c (df_lr_local_compute): Make global regs always live.
1152 * dce.c (deletable_insn_p): Make insns setting a global reg
1153 inherently necessary.
1155 2012-11-12 Ian Bolton <ian.bolton@arm.com>
1157 * config/aarch64/aarch64.md (cmov<mode>_insn): Emit CSINC when
1158 one of the alternatives is constant 1.
1159 * config/aarch64/constraints.md: New constraint.
1160 * config/aarch64/predicates.md: Rename predicate
1161 aarch64_reg_zero_or_m1 to aarch64_reg_zero_or_m1_or_1.
1163 2012-11-12 Ian Bolton <ian.bolton@arm.com>
1165 * config/aarch64/aarch64.md (*compare_neg<mode>): New pattern.
1167 2012-11-12 Tobias Burnus <burnus@net-b.de>
1169 * doc/invoke.texi: Move -faddress-sanitizer from Optimization
1170 Options to Debugging Options.
1172 2012-11-12 Jakub Jelinek <jakub@redhat.com>
1174 * asan.c: Formatting cleanups.
1176 2012-11-12 Wei Mi <wmi@google.com>
1178 * gcc.c (LINK_COMMAND_SPEC): Add -lasan to link command if
1179 -faddress-sanitizer is on.
1181 2012-11-12 Dodji Seketeli <dodji@redhat.com>
1183 * gimple.h (is_gimple_builtin_call): Declare ...
1184 * gimple.c (is_gimple_builtin_call): ... new public function.
1185 * asan.c (insert_if_then_before_iter, instrument_mem_region_access,
1186 instrument_strlen_call, maybe_instrument_builtin_call,
1187 instrument_call): New static functions.
1188 (create_cond_insert_point): Renamed
1189 create_cond_insert_point_before_iter into this. Add a new
1190 parameter to decide whether to insert the condition before or
1191 after the statement iterator.
1192 (build_check_stmt): Adjust for the new create_cond_insert_point.
1193 Add a new parameter to decide whether to add the instrumentation
1194 code before or after the statement iterator.
1195 (instrument_assignment): Factorize from ...
1196 (transform_statements): ... here. Use maybe_instrument_call to
1197 instrument builtin function calls as well.
1198 (instrument_derefs): Adjust for the new parameter of
1199 build_check_stmt. Fix detection of bit-field access.
1201 2012-11-12 Dodji Seketeli <dodji@redhat.com>
1203 * asan.c (create_cond_insert_point_before_iter): Factorize out of ...
1204 (build_check_stmt): ... here.
1206 2012-11-12 Dodji Seketeli <dodji@redhat.com>
1208 * asan.c (create_cond_insert_point_before_iter): Factorize out of ...
1209 (build_check_stmt): ... here.
1211 2012-11-12 Dodji Seketeli <dodji@redhat.com>
1213 * asan.c (build_check_stmt): Accept the memory access to be
1214 represented by an SSA_NAME.
1216 2012-11-12 Jakub Jelinek <jakub@redhat.com>
1217 Wei Mi <wmi@google.com>
1219 * varasm.c: Include asan.h.
1220 (assemble_noswitch_variable): Grow size by asan_red_zone_size
1221 if decl is asan protected.
1222 (place_block_symbol): Likewise.
1223 (assemble_variable): If decl is asan protected, increase
1224 DECL_ALIGN if needed, and for decls emitted using
1225 assemble_variable_contents append padding zeros after it.
1226 * Makefile.in (varasm.o): Depend on asan.h.
1227 * asan.c: Include output.h.
1228 (asan_pp, asan_pp_initialized, asan_ctor_statements): New variables.
1229 (asan_pp_initialize, asan_pp_string): New functions.
1230 (asan_emit_stack_protection): Use asan_pp{,_initialized}
1231 instead of local pp{,_initialized} vars, use asan_pp_initialize
1232 and asan_pp_string helpers.
1233 (asan_needs_local_alias, asan_protect_global,
1234 asan_global_struct, asan_add_global): New functions.
1235 (asan_finish_file): Protect global vars that can be protected. Use
1236 asan_ctor_statements instead of ctor_statements
1237 * asan.h (asan_protect_global): New prototype.
1238 (asan_red_zone_size): New inline function.
1240 2012-11-12 Jakub Jelinek <jakub@redhat.com>
1242 * Makefile.in (asan.o): Depend on $(EXPR_H) $(OPTABS_H).
1243 (cfgexpand.o): Depend on asan.h.
1244 * asan.c: Include expr.h and optabs.h.
1245 (asan_shadow_set): New variable.
1246 (asan_shadow_cst, asan_emit_stack_protection): New functions.
1247 (asan_init_shadow_ptr_types): Initialize also asan_shadow_set.
1248 * cfgexpand.c: Include asan.h. Define HOST_WIDE_INT heap vector.
1249 (partition_stack_vars): If i is large alignment and j small
1250 alignment or vice versa, break out of the loop instead of continue,
1251 and put the test earlier. If flag_asan, break out of the loop
1252 if for small alignment size is different.
1253 (struct stack_vars_data): New type.
1254 (expand_stack_vars): Add DATA argument. Change PRED type to
1255 function taking size_t argument instead of tree. Adjust pred
1256 calls. Fill DATA in and add needed padding in between variables
1257 if -faddress-sanitizer.
1258 (defer_stack_allocation): Defer everything for flag_asan.
1259 (stack_protect_decl_phase_1, stack_protect_decl_phase_2): Take
1260 size_t index into stack_vars array instead of the decl directly.
1261 (asan_decl_phase_3): New function.
1262 (expand_used_vars): Return var destruction sequence. Adjust
1263 expand_stack_vars calls, add another one for flag_asan. Call
1264 asan_emit_stack_protection if expand_stack_vars added anything
1266 (expand_gimple_basic_block): Add disable_tail_calls argument.
1267 (gimple_expand_cfg): Pass true to it if expand_used_vars returned
1268 non-NULL. Emit the sequence returned by expand_used_vars after
1270 * asan.h (asan_emit_stack_protection): New prototype.
1271 (asan_shadow_set): New decl.
1272 (ASAN_RED_ZONE_SIZE, ASAN_STACK_MAGIC_LEFT, ASAN_STACK_MAGIC_MIDDLE,
1273 ASAN_STACK_MAGIC_RIGHT, ASAN_STACK_FRAME_MAGIC): Define.
1274 (asan_protect_stack_decl): New inline.
1275 * toplev.c (process_options): Also disable -faddress-sanitizer on
1276 !FRAME_GROWS_DOWNWARDS targets.
1278 2012-11-12 Jakub Jelinek <jakub@redhat.com>
1280 * asan.c (build_check_stmt): Rename join_bb variable to else_bb.
1281 (gate_asan_O0): New function.
1282 (pass_asan_O0): New variable.
1283 * passes.c (init_optimization_passes): Add pass_asan_O0.
1284 * tree-pass.h (pass_asan_O0): New declaration.
1286 2012-11-12 Jakub Jelinek <jakub@redhat.com>
1287 Xinliang David Li <davidxl@google.com>
1288 Dodji Seketeli <dodji@redhat.com>
1290 * Makefile.in (GTFILES): Add $(srcdir)/asan.c.
1291 (asan.o): Update the dependencies of asan.o.
1292 * asan.c (tm.h, tree.h, tm_p.h, basic-block.h, flags.h
1293 function.h, tree-inline.h, tree-dump.h, diagnostic.h, demangle.h,
1294 langhooks.h, ggc.h, cgraph.h, gimple.h): Remove these unused but
1296 (shadow_ptr_types): New variable.
1297 (report_error_func): Change is_store argument to bool, don't append
1298 newline to function name.
1299 (PROB_VERY_UNLIKELY, PROB_ALWAYS): Define.
1300 (build_check_stmt): Change is_store argument to bool. Emit GIMPLE
1301 directly instead of creating trees and gimplifying them. Mark
1302 the error reporting function as very unlikely.
1303 (instrument_derefs): Change is_store argument to bool. Use
1304 int_size_in_bytes to compute size_in_bytes, simplify size check.
1305 Use build_fold_addr_expr instead of build_addr.
1306 (transform_statements): Adjust instrument_derefs caller.
1307 Use gimple_assign_single_p as stmt test. Don't look at MEM refs
1309 (asan_init_shadow_ptr_types): New function.
1310 (asan_instrument): Don't push/pop gimplify context.
1311 Call asan_init_shadow_ptr_types if not yet initialized.
1312 * asan.h (ASAN_SHADOW_SHIFT): Adjust comment.
1314 2012-11-12 Jakub Jelinek <jakub@redhat.com>
1316 * toplev.c (process_options): Warn and turn off
1317 -faddress-sanitizer if not supported by target.
1318 * asan.c: Include target.h.
1319 (asan_scale, asan_offset_log_32, asan_offset_log_64,
1320 asan_offset_log): Removed.
1321 (build_check_stmt): Use ASAN_SHADOW_SHIFT and
1322 targetm.asan_shadow_offset ().
1323 (asan_instrument): Don't initialize asan_offset_log.
1324 * asan.h (ASAN_SHADOW_SHIFT): Define.
1325 * target.def (TARGET_ASAN_SHADOW_OFFSET): New hook.
1326 * doc/tm.texi.in (TARGET_ASAN_SHADOW_OFFSET): Add it.
1327 * doc/tm.texi: Regenerated.
1328 * Makefile.in (asan.o): Depend on $(TARGET_H).
1329 * config/i386/i386.c (ix86_asan_shadow_offset): New function.
1330 (TARGET_ASAN_SHADOW_OFFSET): Define.
1332 2012-11-12 Wei Mi <wmi@google.com>
1333 Diego Novillo <dnovillo@google.com>
1334 Dodji Seketeli <dodji@redhat.com>
1336 * Makefile.in: Add asan.c and its dependencies.
1337 * common.opt: Add -faddress-sanitizer option.
1338 * doc/invoke.texi: Document the new flag.
1339 * passes.c: Add the asan pass.
1340 * toplev.c (compile_file): Call asan_finish_file.
1343 * tree-pass.h: Declare pass_asan.
1345 2012-11-12 Tobias Burnus <burnus@net-b.de>
1347 * diagnostic.c (diagnostic_append_note): Also call va_end when
1348 inhibit_notes_p is true.
1350 2012-11-12 Bin Cheng <bin.cheng@arm.com>
1352 * gcse.c (struct bb_data): Add new fields, old_pressure, live_in
1354 (get_regno_pressure_class): Add prototype.
1355 (update_bb_reg_pressure): New.
1356 (should_hoist_expr_to_dom): Add new parameter from.
1357 Monitor the change of reg pressure and use it to drive hoisting.
1358 (hoist_code): Update LIVE and reg pressure information.
1359 (calculate_bb_reg_pressure): Initialize live_in and backup.
1361 2012-11-12 Oleg Endo <olegendo@gcc.gnu.org>
1363 * doc/md.texi (Standard Pattern Names For Generation): Fix swapped
1364 sine and cosine operands in the sincos description.
1366 2012-11-12 Oleg Endo <olegendo@gcc.gnu.org>
1369 * config/sh/sh.md (sincossf3): Fix swapped sin and cos operands.
1371 2012-11-11 H.J. Lu <hongjiu.lu@intel.com>
1373 * config/i386/i386.md (*movti_internal_rex64): Remove "!" from
1376 2012-11-11 Eric Botcazou <ebotcazou@adacore.com>
1378 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): Tweak.
1379 * config/sparc/sol2.h (TARGET_CPU_niagara4 support): Fix pasto.
1381 2012-11-11 Eric Botcazou <ebotcazou@adacore.com>
1382 H.J. Lu <hongjiu.lu@intel.com>
1384 PR rtl-optimization/55247
1386 * emit-rtl.c (adjust_address_1): If POINTERS_EXTEND_UNSIGNED > 0,
1388 * recog.c (offsettable_address_addr_space_p): Likewise.
1390 2012-11-11 Steven Bosscher <steven@gcc.gnu.org>
1393 * postreload.c (rest_of_handle_postreload): With non-call exceptions,
1394 if edges are purged call cleanup_cfg to remove unreachable blocks.
1396 2012-11-11 Sandra Loosemore <sandra@codesourcery.com>
1398 * doc/extend.texi: Copy-edit to use "built-in function" instead
1399 of "builtin", per GCC coding standards. Also use consistent
1400 capitalization in titles of sections describing built-in functions.
1402 2012-11-11 Martin Jambor <mjambor@suse.cz>
1404 PR tree-optimization/55238
1405 * ipa-cp.c (agg_pass_through_permissible_p): New function.
1406 (propagate_aggs_accross_jump_function): Use it.
1407 (find_aggregate_values_for_callers_subset): Likewise and relax an
1410 2012-11-10 Uros Bizjak <ubizjak@gmail.com>
1413 * config/i386/i386.c (check_avx256_stores): Remove.
1414 (ix86_check_avx256_register): New.
1415 (ix86_avx_u128_mode_needed): Use ix86_check_avx256_register.
1416 Check the whole RTX for 256bit registers using for_each_rtx.
1417 (ix86_check_avx_stores): New.
1418 (ix86_avx_u128_mode_after): Change mode of CALL RTX to AVX_U128_CLEAN
1419 if there are no 256bit registers used in the function return register.
1420 (ix86_avx_u128_mode_entry): Use ix86_check_avx256_register.
1421 (ix86_avx_u128_mode_exit): Ditto.
1423 2012-11-10 Jan Hubicka <jh@suse.cz>
1426 * ipa-inline.c (want_inline_small_function_p): Take aray index hint.
1427 (edge_badness): Likewise.
1428 * ipa-inline.h (inline_hints_vals): Add array_index and comments.
1429 (inline_summary): Add ARRAY_INDEX.
1430 * ipa-inline-analysis.c (dump_inline_hints): Dump array_index hint.
1431 (reset_inline_summary): Handle array_index hint.
1432 (inline_node_duplication_hook): Likewise.
1433 (dump_inline_summary): Likewise.
1434 (array_index_predicate): New function.
1435 (estimate_function_body_sizes): Use it.
1436 (estimate_node_size_and_time): Use array_index hint.
1437 (inline_merge_summary, inline_read_section): Likewise.
1439 2012-11-10 Sandra Loosemore <sandra@codesourcery.com>
1441 * doc/extend.texi: Copy-edit to use "bit-field" consistently
1442 instead of "bitfield" or "bit field".
1444 2012-11-10 Sandra Loosemore <sandra@codesourcery.com>
1446 * doc/extend.texi: Copy-edit to fix incorrect hyphenation phrases
1447 involving "bit", "byte", "word", "precision", and "floating"
1450 2012-11-10 Sandra Loosemore <sandra@codesourcery.com>
1452 * doc/extend.texi: Copy-edit to fix incorrect uses of "which"
1453 and "that" throughout the file.
1455 2012-11-10 Andrew Pinski <apinski@cavium.com>
1458 * configure.ac: Set PLUGIN_LD_SUFFIX to just "ld" if it was "ld-new"
1460 * configure: Regenerate.
1462 2012-11-10 Eric Botcazou <ebotcazou@adacore.com>
1464 * expr.c (store_field): Remove TYPE parameter. Remove block of code
1465 dealing with BLKmode in registers. Reimplement this support using
1466 pseudo-registers and bit-field techniques.
1467 (store_constructor_field): Remove TYPE parameter and adjust calls to
1469 (expand_assignment): Adjust calls to store_field. Add comment.
1470 (store_expr): Add comment.
1471 (store_constructor): Adjust calls to store_constructor_field.
1472 (expand_expr_real_2): Adjust call to store_field.
1474 2012-11-10 Vladimir Makarov <vmakarov@redhat.com>
1475 Uros Bizjak <ubizjak@gmail.com>
1478 * config/i386/i386.md (*movti_internal_rex64): Add "!" to riF->o
1481 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
1484 * doc/invoke.texi: Document f[no-]ext-numeric-literals flag.
1486 2012-11-09 Eric Botcazou <ebotcazou@adacore.com>
1488 * doc/install.texi (sparc64-x-solaris2): Mention MPC as well.
1490 2012-11-09 Richard Henderson <rth@redhat.com>
1492 * config/i386/i386.c (ix86_lra_p): Remove.
1493 (TARGET_LRA_P): Use hook_bool_void_true.
1495 2012-11-09 Jason Merrill <jason@redhat.com>
1497 * attribs.c (lookup_attribute_spec): Handle getting a TREE_LIST.
1499 2012-11-09 Vladimir Makarov <vmakarov@redhat.com>
1501 PR tree-optimization/55154
1502 * lra-int.h (LRA_LOSER_COST_FACTOR, LRA_MAX_REJECT): New macros.
1503 * lra.c (setup_operand_alternative): Use them.
1504 * lra-constraints.c (LOSER_COST_FACTOR, MAX_OVERALL_COST_BOUND):
1506 (process_alt_operands): Use LRA_LOSER_COST_FACTOR and LRA_MAX_REJECT.
1507 Accumulate reject instead of setting for non-const.
1508 (curr_insn_transform): Initialize best_losers and best_overall by
1511 2012-11-09 Christian Bruel <christian.bruel@st.com>
1513 * config/sh/sh.c (sh_can_use_simple_return_p): Enable with
1514 -freorder-blocks-and-partition.
1516 2012-11-09 Kenneth Zadeck <zadeck@naturalbridge.com>
1518 * rtl.h (CONST_SCALAR_INT_P): New macro.
1519 * cfgexpand.c (expand_debug_locations): Changed to use
1520 CONST_SCALAR_INT_P macro.
1521 * combine.c (try_combine, subst, make_extraction,
1522 gen_lowpart_for_combine): Ditto.
1523 * cselib.c (entry_and_rtx_equal_p, rtx_equal_for_cselib_1): Ditto.
1524 * dwarf2out.c (loc_descriptor): Ditto.
1525 * emit-rtl.c (gen_lowpart_common): Ditto.
1526 * ira-costs.c (record_reg_classes, record_address_regs): Ditto.
1527 * ira-lives.c (single_reg_class): Ditto.
1528 * recog.c (simplify_while_replacing, asm_operand_ok,
1529 constrain_operands): Ditto.
1530 * reload.c (find_reloads): Ditto.
1531 * simplify-rtx.c (simplify_unary_operation_1,
1532 simplify_const_unary_operation, simplify_binary_operation_1,
1533 simplify_const_binary_operation, simplify_relational_operation_1,
1534 simplify_subreg): Ditto.
1536 2012-11-09 Steven Bosscher <steven@gcc.gnu.org>
1539 * postreload.c (reload_cse_simplify): Return a bool indicating
1540 whether the CFG was changed.
1541 (reload_cse_regs_1): Traverse the CFG instead of the insns chain.
1542 Cleanup the CFG if edges may have been removed.
1543 (reload_cse_regs): Update.
1545 2012-11-09 Andrey Belevantsev <abel@ispras.ru>
1547 PR rtl-optimization/54472
1548 * sel-sched-ir.c (has_dependence_note_reg_set): Handle implicit sets.
1549 (has_dependence_note_reg_clobber, has_dependence_note_reg_use):
1552 2012-11-09 Eric Botcazou <ebotcazou@adacore.com>
1554 * config/i386/i386.c (release_scratch_register_on_entry): Also adjust
1557 2012-11-08 Christian Bruel <christian.bruel@st.com>
1559 * tree-ssa-tail-merge.c (replace_block_by): Update bb2 profile count.
1560 Do not reset dead bb1->frequency.
1562 2012-11-08 Steven Bosscher <steven@gcc.gnu.org>
1564 PR tree-optimization/55191
1565 * cfganal.c (connect_infinite_loops_to_exit): Call dfs_deadend here.
1566 (flow_dfs_compute_reverse_execute): Don't call it here.
1568 2012-11-08 Jakub Jelinek <jakub@redhat.com>
1571 * dwarf2out.c (gen_compile_unit_die): Don't call gen_producer_string
1572 here, instead add "" if producer_string is NULL.
1573 (dwarf2out_finish): Call gen_producer_string here, unconditionally
1574 decrease refcount of the old indirect string and set val_str to
1575 find_AT_string result.
1578 * cgraphunit.c (assemble_thunk): Don't call source_line debug hook
1579 here, instead call insn_locations_{init,finalize} and initialize
1582 2012-11-08 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
1585 * gcc.c (process_command): Use save_switch for synthesized
1586 -fcompare-debug=* option; mark the switch as known.
1588 2012-11-08 Jakub Jelinek <jakub@redhat.com>
1591 * config/rs6000/rs6000.c (legitimate_indirect_address_p): Remove
1594 2012-11-08 Bernd Schmidt <bernds@codesourcery.com>
1596 PR rtl-optimization/54850
1597 * sched-deps.c (find_inc): Add all dependencies from the inc_insn
1600 2012-11-08 Jan Hubicka <jh@suse.cz>
1603 * ipa-inline.c (big_speedup_p): New function.
1604 (want_inline_small_function_p): Use it.
1605 (edge_badness): Dump it.
1606 * params.def (inline-min-speedup): New parameter.
1607 * doc/invoke.texi (inline-min-speedup): Document.
1609 2012-11-08 Martin Jambor <mjambor@suse.cz>
1611 * ipa-prop.c (determine_known_aggregate_parts): Skip writes to
1612 different declarations when tracking writes to a declaration.
1614 2012-11-07 David S. Miller <davem@davemloft.net>
1616 * config/sparc/constraints.md ("U"): Document, in detail,
1617 which this constraint is necessary.
1619 2012-11-07 Uros Bizjak <ubizjak@gmail.com>
1622 * expr.c (store_expr): Do not call emit_block_move for
1625 2012-11-07 Eric Botcazou <ebotcazou@adacore.com>
1628 * fold-const.c (fold_binary_op_with_conditional_arg): Do not fold if
1629 the argument is itself a conditional expression.
1631 2012-11-07 Vladimir Makarov <vmakarov@redhat.com>
1633 PR rtl-optimization/55122
1634 * lra-constraints.c (match_reload): Sync values for dead input pseudos.
1636 2012-11-07 Richard Henderson <rth@redhat.com>
1638 * trans-mem.c (pass_ipa_tm): Don't use TODO_update_ssa.
1640 2012-11-07 Peter Bergner <bergner@vnet.ibm.com>
1642 * doc/invoke.texi (-mcpu=power8): Document.
1643 * config.in (HAVE_AS_POWER8): New.
1644 * config.gcc: Add cpu_type power8.
1645 * configure.ac: (HAVE_AS_POWER8): Check for assembler support for
1646 the POWER8 instructions.
1647 * configure: Regenerate.
1648 * config/rs6000/rs6000.h: (ASM_CPU_POWER8_SPEC): Define.
1649 (ASM_CPU_SPEC): Pass %(asm_cpu_power8) for -mcpu=power8.
1650 (EXTRA_SPECS): Add asm_cpu_power8 spec string.
1651 * config/rs6000/rs6000-cpus.def (processor_target_table): Alias
1653 * config/rs6000/rs6000-tables.opt: Regenerate.
1654 * config/rs6000/driver-rs6000.c (ASM_CPU_SPEC): For -mcpu=power8,
1655 pass %(asm_cpu_power8)/-mpwr8.
1656 * config/rs6000/aix53.h: Likewise.
1657 * config/rs6000/aix61.h: Likewise.
1659 2012-11-07 Uros Bizjak <ubizjak@gmail.com>
1662 * config/i386/i386.c (ix86_function_ok_for_sibcall): Put back exception
1663 to make a sibcall if one of the functions has void return type.
1665 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1668 * doc/invoke.texi (Wformat): Update.
1670 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1672 * optc-gen.awk: Factor code out to...
1673 * opt-functions.awk (lang_enabled_by): ... this new function.
1675 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1678 * common.opt (Wswitch,Wswitch-default,Wswitch-enum): Move to c.opt.
1680 2012-11-07 Yufeng Zhang <yufeng.zhang@arm.com>
1682 * config/aarch64/aarch64.c (aarch64_expand_prologue): Add the missing
1683 argument 'Pmode' to the 'plus_constant' call.
1685 2012-11-07 Martin Jambor <mjambor@suse.cz>
1687 PR tree-optimization/53787
1688 * ipa-cp.c (ipcp_value_source): New field offset.
1689 (ipcp_agg_lattice): New type.
1690 (ipcp_param_lattices): Likewise, move virt_call from ipcp_lattice here.
1691 (ipcp_agg_lattice_pool): New variable.
1692 (ipa_get_parm_lattices): New function.
1693 (ipa_get_lattice): Turned into ipa_get_scalar_lat, use the above.
1694 Adjusted all callers.
1695 (print_lattice): New function.
1696 (print_all_lattices): Use the above, also print aggregate lattices.
1697 (set_agg_lats_to_bottom): New function.
1698 (set_agg_lats_contain_variable): Likewise.
1699 (set_all_contains_variable): Likewise.
1700 (initialize_node_lattices): Also handle aggregate lattices, set
1701 virt_call in ipcp_param_lattices.
1702 (add_value_source): Handle offsets.
1703 (add_value_to_lattice): Likewise.
1704 (add_scalar_value_to_lattice): New function.
1705 (propagate_vals_accross_pass_through): Use add_scalar_value_to_lattice.
1706 (propagate_vals_accross_ancestor): Likewise.
1707 (propagate_accross_jump_function): Renamed to
1708 propagate_scalar_accross_jump_function, use
1709 add_scalar_value_to_lattice.
1710 (set_check_aggs_by_ref): New function.
1711 (merge_agg_lats_step): Likewise.
1712 (set_chain_of_aglats_contains_variable): Likewise.
1713 (merge_aggregate_lattices): Likewise.
1714 (propagate_constants_accross_call): Also handle aggregate lattices.
1715 (hint_time_bonus): New function.
1716 (context_independent_aggregate_values): Likewise.
1717 (gather_context_independent_values): Also handle agggregate values.
1718 (agg_jmp_p_vec_for_t_vec): New function.
1719 (estimate_local_effects): Also handle agggregate values.
1720 (add_all_node_vals_to_toposort): Likewise.
1721 (ipcp_propagate_stage): Use struct ipcp_param_lattices.
1722 (get_clone_agg_value): New function.
1723 (cgraph_edge_brings_value_p): Also handle agggregate values.
1724 (create_specialized_node): Likewise.
1725 (find_more_values_for_callers_subset): Rename to
1726 find_more_scalar_values_for_callers_subset. Modify dump.
1727 (copy_plats_to_inter): New function.
1728 (intersect_with_plats): Likewise.
1729 (agg_replacements_to_vector): Likewise.
1730 (intersect_with_agg_replacements): Likewise.
1731 (find_aggregate_values_for_callers_subset): Likewise.
1732 (known_aggs_to_agg_replacement_list): Likewise.
1733 (cgraph_edge_brings_all_scalars_for_node): Likewise.
1734 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
1735 (perhaps_add_new_callers): Old functionality moved to
1736 cgraph_edge_brings_all_scalars_for_node, call it and
1737 cgraph_edge_brings_all_agg_vals_for_node.
1738 (ipcp_val_in_agg_replacements_p): New function.
1739 (decide_about_value): New function.
1740 (decide_whether_version_node): A lot of functionality moved to
1741 decide_about_value. Also handle agggregate values.
1742 (ipcp_driver): Also allocate ipcp_agg_lattice_pool.
1743 (pass_ipa_cp): Fill in new entries.
1744 * ipa-prop.c (ipa_node_agg_replacements): New variable.
1745 (free_parms_ainfo): New function.
1746 (ipa_analyze_node): Use free_parms_ainfo to free stuff.
1747 (ipa_find_agg_cst_for_param): Do not rely on offset ordering.
1748 (ipa_set_node_agg_value_chain): New function.
1749 (ipa_node_removal_hook): Also handle ipa_node_agg_replacements.
1750 (ipa_node_duplication_hook): Likewise.
1751 (ipa_free_all_structures_after_ipa_cp): Also free ipcp_agg_lattice_pool.
1752 (ipa_free_all_structures_after_iinln): Likewise.
1753 (ipa_dump_agg_replacement_values): New function.
1754 (write_agg_replacement_chain): Likewise.
1755 (read_agg_replacement_chain): Likewise.
1756 (ipa_prop_write_all_agg_replacement): Likewise.
1757 (read_replacements_section): Likewise.
1758 (ipa_prop_read_all_agg_replacement): Likewise.
1759 (adjust_agg_replacement_values): Likewise.
1760 (ipcp_transform_function): Likewise.
1761 * ipa-prop.h: Also define heap vector of ipa_agg_jf_item_t and of
1762 ipa_agg_jump_function_t.
1763 (ipa_node_params): Make lattices an array of ipcp_param_lattices.
1764 (ipa_agg_replacement_value): New type and its vector.
1765 (ipa_set_node_agg_value_chain) Declare.
1766 (ipa_node_agg_replacements): Likewise.
1767 (ipa_get_agg_replacements_for_node): New function.
1768 (ipcp_agg_lattice_pool): Declare.
1769 (ipa_dump_agg_replacement_values): Likewise.
1770 (ipa_prop_write_all_agg_replacement): Likewise.
1771 (ipa_prop_read_all_agg_replacement): Likewise.
1772 (ipcp_transform_function): Likewise.
1773 * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time): Pass around
1774 known aggregates and hints.
1775 * ipa-inline.h: include ipa-prop.h.
1776 (estimate_ipcp_clone_size_and_time): Adjust declaration.
1777 * lto-streamer.h (lto_section_type): New item
1778 LTO_section_ipcp_transform.
1779 * lto-section-in.c (lto_section_name): New element ipcp_trans.
1780 * params.def (PARAM_IPA_CP_LOOP_HINT_BONUS): New parameter.
1781 * Makefile.in (IPA_INLINE_H): New. Use everywhee instead of
1784 2012-11-07 Uros Bizjak <ubizjak@gmail.com>
1786 * config/i386/i386.c (enum upper_128bits_state): Remove.
1787 (check_avx256_store): Use bool pointer argument.
1788 (ix86_avx_u128_mode_needed): Use note_stores also for CALL insns.
1789 * config/i386/predicates.md (vzeroupper_operation): Use match_test.
1791 2012-11-07 Yufeng Zhang <yufeng.zhang@arm.com>
1793 * config/aarch64/aarch64.c (aarch64_expand_prologue): For the
1794 load-pair with writeback instruction, replace
1795 aarch64_set_frame_expr with add_reg_note (REG_CFA_ADJUST_CFA);
1796 add new local variable 'cfa_reg' and use it.
1798 2012-11-07 Kaz Kojima <kkojima@gcc.gnu.org>
1801 * mode-switching.c (create_pre_exit): Set short_block if there
1804 2012-11-07 Martin Jambor <mjambor@suse.cz>
1806 * lto-cgraph.c: Include tree-pass.h.
1807 (lto_output_node): Stream node->ipa_transforms_to_apply.
1808 (input_node): Likewise.
1809 * tree-pass.h (passes_by_id): Declare.
1810 (passes_by_id_size): Likewise.
1811 * Makefile.in (lto-cgraph.o): Add TREE_PASS_H to dependencies.
1813 2012-11-07 Jan Hubicka <jh@suse.cz>
1815 * ipa-inline-analysis.c (true_predicate, single_cond_predicate,
1816 reset_inline_edge_summary): Fix formatting.
1817 (account_size_time): Bump up the limit on number of size/time
1819 (estimate_function_body_sizes): Work in reverse postorder.
1821 2012-11-07 David S. Miller <davem@davemloft.net>
1825 * config/sparc/constraints.md ("U"): Delete.
1826 * config/sparc/sparc.md: Use 'r' constraint instead of 'U'.
1827 * config/sparc/sync.md: Likewise.
1828 And revert parts of:
1829 * doc/md.texi: Sync sparc constraint documentation with reality.
1831 2012-11-07 Jakub Jelinek <jakub@redhat.com>
1833 * config/i386/i386.c (ix86_avx_u128_mode_after): Don't
1834 look for reg in CALL operand.
1837 * tree-flow.h (propagate_threaded_block_debug_into): New prototype.
1838 * tree-ssa-threadedge.c (propagate_threaded_block_debug_into): No
1840 * tree-ssa-loop-ch.c (copy_loop_headers): Use it.
1842 2012-11-06 Sterling Augustine <saugustine@google.com>
1844 * dwarf2out.c (output_comdat_type_unit): Check for OBJECT_FORMAT_ELF.
1846 2012-11-06 Aldy Hernandez <aldyh@redhat.com>
1847 Richard Henderson <rth@redhat.com>
1849 * cfg-flags.def (TM_UNINSTRUMENTED, TM_ABORT): New.
1850 * trans-mem.c (PROB_VERY_LIKELY, PROB_UNLIKELY, PROB_LIKELY): New.
1851 (struct tm_region): Add tm_state, restart_block,
1852 original_transaction_was_outer.
1853 (tm_region_init_0): Initialize them.
1854 (collect_bb2reg, get_bb_regions_instrumented): New.
1855 (tm_log_emit_save_or_restores): Merge into ...
1856 (expand_transaction): ... here.
1857 (generate_tm_state, propagate_tm_flags_out): New.
1858 (execute_tm_mark): Avoid processing blocks more than once.
1859 (split_bb_make_tm_edge): Split out from ...
1860 (make_tm_edge): ... here. And merge the rest into ...
1861 (expand_block_edges): ... here.
1862 (execute_tm_edges): Avoid processing blocks more than once.
1863 (ipa_uninstrument_transaction): New.
1864 (ipa_tm_scan_calls_transaction): Use it. Rebuild cgraph and ssa.
1865 (ipa_tm_execute): Init and free original_copy_tables.
1866 * trans-mem.h (PR_MULTIWAYCODE): New.
1867 * tree-cfg.c (make_edges): Use EDGE_TM_ABORT.
1869 2012-11-06 Aldy Hernandez <aldyh@redhat.com>
1871 * cfghooks.c (copy_bbs): Handle a null loop_father.
1873 * cgraph.c (cgraph_debug_gimple_stmt): Handle a null
1874 current_function_decl.
1876 2012-11-06 Richard Henderson <rth@redhat.com>
1878 * tree-ssa-tail-merge.c (find_duplicate): Do not consider
1879 is_tm_ending_fndecl calls as mergable.
1881 2012-11-06 Sterling Augustine <saugustine@google.com>
1882 Cary Coutant <ccoutant@google.com>
1884 * common.opt (gno-split-dwarf, gsplit-dwarf): New switches.
1885 * doc/invoke.texi (Debugging Options): Document them.
1886 * gcc.c (replace_extension_spec_func): New function.
1887 (ASM_FINAL_SPEC): Adjust.
1888 (static_spec_functions): Add new field for replace-extension.
1889 (check_live_switch): Adjust comment. Add case for 'g'.
1890 * opts.c (finish_options): Set x_debug_generate_pub_sections based on
1891 x_dwarf_split_debug_info.
1892 (common_handle_option): Add case for OPT_gsplit_dwarf.
1893 * dwarf2out.h (addr_table_entry_struct): Add forward declaration.
1894 (dw_val_struct): Add val_entry pointer.
1895 * dwarf2out.c (debug_skeleton_info_section,
1896 debug_skeleton_abbrev_section, debug_addr_section,
1897 debug_skeleton_line_section, debug_str_offsets_section): New globals.
1898 (NOT_INDEXED, NO_INDEX_ASSIGNED): New defines.
1899 (indirect_string_node): New field index.
1900 (ate_kind): New enum with fields ate_kind_rtc, ate_kind_rtx_dtprel,
1902 (addr_table_entry): New structure and type.
1903 (dw_loc_list_struct): Add field begin_entry.
1904 (new_loc_desc): Initialize val_entry.
1905 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
1906 Add cases for DW_OP_GNU_addr_index and DW_OP_const_index.
1907 (build_cfa_loc): Initialize val_entry.
1908 (AT_index, add_addr_table_entry, remove_addr_table_entry,
1909 add_AT_lbl_id): New functions.
1910 (add_AT_addr, add_AT_range_list): New parameter force_direct.
1911 (output_die_abbrevs): New function.
1912 (add_ranges_by_labels): New parameter force_direct.
1913 (output_line_info): New parameter prologue_only.
1914 (dtprel_bool): New enum with dtprel_false and dtprel_true.
1915 (dw_addr_op, new_addr_loc_descr): New functions.
1916 (DEBUG_DWO_INFO_SECTION, DEBUG_DWO_ABBREV_SECTION,
1917 DEBUG_ADDR_SECTION, DEBUG_NORM_MACINFO_SECTION,
1918 DEBUG_DWO_MACINFO_SECTION, DEBUG_MACINFO_SECTION,
1919 DEBUG_NORM_MACRO_SECTION, DEBUG_DWO_MACRO_SECTION,
1920 DEBUG_MACRO_SECTION, DEBUG_DWO_LINE_SECTION,
1921 DEBUG_DWO_LOC_SECTION, DEBUG_NORM_STR_OFFSETS_SECTION,
1922 DEBUG_DWO_STR_OFFSETS_SECTION, DEBUG_STR_OFFSETS_SECTION,
1923 DEBUG_DWO_STR_SECTION, DEBUG_NORM_STR_SECTION, DEBUG_STR_SECTION,
1924 DEBUG_MACRO_SECTION_FLAGS, DEBUG_SKELETON_LINE_SECTION_LABEL,
1925 DEBUG_SKELETON_INFO_SECTION_LABEL, DEBUG_ADDR_SECTION_LABEL
1926 DEBUG_SKELETON_ABBREV_SECTION_LABEL): New macros.
1927 (DEBUG_STR_SECTION_FLAGS): Adjust.
1928 (TEXT_SECTION_LABEL, COLD_TEXT_SECTION_LABEL,
1929 DEBUG_LINE_SECTION_LABEL, DEBUG_INFO_SECTION_LABEL,
1930 DEBUG_ABBREV_SECTION_LABEL, DEBUG_ADDR_SECTION_LABEL,
1931 DEBUG_LOC_SECTION_LABEL, DEBUG_RANGES_SECTION_LABEL,
1932 DEBUG_MACINFO_SECTION_LABEL, DEBUG_MACRO_SECTION_LABEL): Adjust
1934 (debug_skeleton_abbrev_section_label, debug_addr_section_label,
1935 debug_skeleton_line_section_label, debug_skeleton_info_section_label):
1936 New global variables.
1937 (add_AT_flag, add_AT_int, add_AT_unsigned, add_AT_double, add_AT_vec,
1938 add_AT_data8): Initialize val_entry.
1939 (add_AT_low_high_pc): New parameter force_direct. Handle
1940 dwarf_split_debug_info.
1941 (set_indirect_string, find_AT_string_form): New functions.
1942 (AT_string_form): Adjust to call find_AT_string_from.
1943 (add_AT_die_ref, add_AT_fde_ref, add_AT_loc, add_AT_list):
1944 Initialize val_entry.
1945 (addr_index_table): New global variable.
1946 (addr_table_entry_do_hash, addr_table_entry_eq, add_addr_table_entry,
1947 init_addr_table_entry, remove_addr_table_entry, index_addr_table_entry,
1948 remove_loc_list_addr_table_entries): New functions.
1949 (add_AT_addr, add_AT_lbl_id, add_AT_range_list): New parameter
1950 force_direct. Handle dwarf_split_debug_info.
1951 (add_AT_file, add_AT_vms_delta, add_AT_lineptr, add_AT_macptr,
1952 add_AT_offset): Initialize val_entry.
1953 (UNRELOCATED_OFFSET, RELOCATED_OFFSET): New defines.
1954 (size_of_die): Handle dwarf_split_debug_info.
1955 (size_of_aranges, value_format): Call AT_class. Check AT_index.
1956 (output_die_abbrevs): New function.
1957 (output_abbrev_section): Call output_die_abbrevs.
1958 (new_loc_list): Initialize begin_entry.
1959 (output_loc_list): Handle dwarf_split_debug_info.
1960 (output_range_list_offset, output_loc_list_offset,
1961 output_attr_index_or_value, ): New functions.
1962 (output_die): Fix call to dw2_asm_output_data. Call
1963 output_attr_index_or_value and output_range_list_offset.
1964 Adjust logic around dw_val_class_str.
1965 (add_top_lebel_skeleton_die_attrs, get_skeleton_type_unit,
1966 output_skeleton_debug_sections): New functions.
1967 (output_comdat_type_unit, output_pubname, output_aranges): Handle
1968 dwarf_split_debug_info.
1969 (add_ranges_by_labels): New parameter force_direct.
1970 (mem_loc_descriptor, loc_descr): Call new_addr_loc_descr.
1971 (loc_list_from_tree, add_const_value_attribtue): Use dtprel_bools in
1972 place of generic integer.
1973 (dwarf2out_vms_debug_main_pointer, gen_entry_point_die, gen_label_die,
1974 gen_call_site_die, gen_subprogram_die, gen_variable_die,
1975 add_high_low_attributes): Adjust calls to add_AT_lbl_id.
1976 (output_macinfo_op): Adjust indirect_string_logic.
1977 (save_macinfo_strings): New function.
1978 (output_macinfo): Adjust.
1979 (dwarf2out_init): Handle dwarf_split_debug_info.
1980 (index_string, output_index_string_offset, output_index_string): New
1982 (output_indirect_string): Adjust.
1983 (output_indirect_strings, output_addr_table_entry, output_addr_table):
1985 (resolve_addr_in_expr, hash_loc_operands): Handle DW_OP_GNU_addr_index
1986 and DW_OP_GNU_const_index. Handle dwarf_split_debug_info. Call
1987 remove_loc_list_addr_table_entries and remove_addr_table_entry.
1988 (index_location_lists): New function.
1989 (dwarf2out_finish): Handle dwarf_split_debug_info. New variable
1990 main_comp_unit_die. Adjust calls to add_AT_low_high_pc,
1991 add_ranges_by_labels, add_AT_addr, and add_AT_lineptr. Call
1992 save_macinfo_strings and output_indirect_strings.
1994 2012-11-06 Gerald Pfeifer <gerald@pfeifer.com>
1996 * config/i386/i386.c (make_dispatcher_decl): Guard with
1997 ASM_OUTPUT_TYPE_DIRECTIVE and HAVE_GNU_INDIRECT_FUNCTION.
1999 2012-11-06 Jan Hubicka <jh@suse.cz>
2001 * ipa-inline-analysis.c (estimate_function_body_sizes,
2002 inline_update_overall_summary): Cap time calculations.
2004 2012-11-06 Uros Bizjak <ubizjak@gmail.com>
2006 * config/i386/i386.c (ix86_init_machine_status): Do not
2007 explicitly clear tls_descriptor_call_expanded_p again.
2009 2012-11-06 Uros Bizjak <ubizjak@gmail.com>
2011 * config/i386/sse.md
2012 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Mark operand 0
2013 as read and written by the instruction.
2015 2012-11-06 Alexandre Oliva <aoliva@redhat.com>
2018 * tree-ssa-threadedge.c (propagate_threaded_block_debug_into):
2019 Use a stack vector before allocating a pointer set.
2021 2012-11-06 Martin Jambor <mjambor@suse.cz>
2023 * ipa-prop.c (ipa_get_param_decl_index_1): New function.
2024 (ipa_get_param_decl_index): Just call ipa_get_param_decl_index_1.
2025 (ipa_populate_param_decls): Accept descriptors parameter rather
2026 than the whole info.
2027 (load_from_unmodified_param): Likewise.
2028 (ipa_load_from_parm_agg_1): Likewise.
2029 (ipa_load_from_parm_agg): Extract descriptors from info.
2030 (compute_complex_assign_jump_func): Likewise.
2031 (ipa_analyze_indirect_call_uses): Likewise.
2033 2012-11-06 Jan Hubicka <jh@suse.cz>
2035 * ipa-inline.c (compute_uninlined_call_time): Return gcov_type.
2036 (compute_inlined_call_time): Watch overflows.
2037 (relative_time_benefit): Compute in gcov_type.
2039 2012-11-06 Jan Hubicka <jh@suse.cz>
2041 * cfgloopanal.c (get_loop_hot_path): New function.
2042 * tree-ssa-lop-ivcanon.c (struct loop_size): Add CONSTANT_IV,
2043 NUM_NON_PURE_CALLS_ON_HOT_PATH, NUM_PURE_CALLS_ON_HOT_PATH,
2044 NUM_BRANCHES_ON_HOT_PATH.
2045 (tree_estimate_loop_size): Compute the new values.
2046 (try_unroll_loop_completely): Disable unrolling of loops with only
2047 calls or too many branches.
2048 (tree_unroll_loops_completely): Deal also with outer loops of hot loops.
2049 * cfgloop.h (get_loop_hot_path): Declare.
2050 * params.def (PARAM_MAX_PEEL_BRANCHES): New parameters.
2051 * invoke.texi (max-peel-branches): Document.
2053 2012-11-06 Jan Hubicka <jh@suse.cz>
2055 * ipa-pure-const.c (check_stmt): Fix debug info formatting.
2057 2012-11-06 Uros Bizjak <ubizjak@gmail.com>
2059 * config/i386/i386.c (TARGET_INSTANTIATE_DECLS): New define.
2060 (ix86_instantiate_decls): New function.
2061 (ix86_expand_builtin) <case IX86_BUILTIN_LDMXCSR>: Use SLOT_TEMP
2062 stack slot instead of SLOT_VIRTUAL.
2063 <case IX86_BUILTIN_STMXCSR>: Ditto.
2064 (assign_386_stack_local): Do not assert when virtual slot is valid.
2065 * config/i386/i386.h (enum ix86_stack_slot): Remove SLOT_VIRTUAL.
2066 * config/i386/i386.md (truncdfsf2): Do not use SLOT_VIRTUAL stack slot.
2067 (truncxf<mode>2): Ditto.
2068 (floatunssi<mode>2): Ditto.
2069 (isinf<mode>2): Ditto.
2070 * config/i386/sync.md (atomic_load<mode>): Ditto.
2071 (atomic_store<mode>): Ditto.
2073 2012-11-06 Jan Hubicka <jh@suse.cz>
2075 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound,
2076 vect_do_peeling_for_alignment): Fix loop bound computation.
2077 * tree-vect-loop.c (vect_transform_loop): Maintain loop bounds.
2079 2012-11-06 Oleg Endo <olegendo@gcc.gnu.org>
2082 * config/sh/sh.c (and_xor_ior_costs, addsubcosts): Double the costs for
2083 ops larger than SImode.
2084 * config/sh/sh.md (rotcl, *rotcl): New insns and splits.
2085 (ashldi3_k): Convert to insn_and_split and use new rotcl insn.
2087 2012-11-06 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
2090 * config/i386/i386-protos.h (emit_i387_cw_initialization): Delete.
2091 (emit_vzero): Add prototype.
2092 (ix86_mode_entry): Likewise.
2093 (ix86_mode_exit): Likewise.
2094 (ix86_emit_mode_set): Likewise.
2096 * config/i386/i386.c (typedef struct block_info_def): Delete.
2097 (define BLOCK_INFO): Delete.
2098 (check_avx256_stores): Add checking for MEM_P.
2099 (move_or_delete_vzeroupper_2): Delete.
2100 (move_or_delete_vzeroupper_1): Delete.
2101 (move_or_delete_vzeroupper): Delete.
2102 (ix86_maybe_emit_epilogue_vzeroupper): Delete.
2103 (function_pass_avx256_p): Delete.
2104 (ix86_function_ok_for_sibcall): Remove sibcall disabling.
2105 (nit_cumulative_args): Remove initialization of of avx256 fields of
2107 (ix86_emit_restore_sse_regs_using_mov): Remove vzeroupper generation.
2108 (ix86_expand_epilogue): Likewise.
2109 (ix86_avx_u128_mode_needed): New.
2110 (ix86_i387_mode_needed): Rename from ix86_mode_needed.
2111 (ix86_mode_needed): New.
2112 (ix86_avx_u128_mode_after): New.
2113 (ix86_mode_after): New.
2114 (ix86_avx_u128_mode_entry): New.
2115 (ix86_mode_entry): New.
2116 (ix86_avx_u128_mode_exit): New.
2117 (ix86_mode_exit): New.
2118 (ix86_emit_mode_set): New.
2119 (ix86_expand_call): Delete vzeroupper generation.
2120 (ix86_split_call_vzeroupper): Delete.
2121 (ix86_init_machine_status): Initialize optimize_mode_switching.
2122 (ix86_expand_special_args_builtin): Change.
2123 (ix86_reorg): Delete a call of move_or_delete_vzeroupper.
2125 * config/i386/i386.h (VALID_AVX256_REG_OR_OI_MODE): New.
2127 (avx_u128_state): New.
2128 (NUM_MODES_FOR_MODE_SWITCHING): Added AVX_U128_ANY.
2132 (EMIT_MODE_SET): Change.
2133 (machine_function): Delete avx256 fields.
2135 * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): Delete.
2136 (define_insn_and_split "*call_vzeroupper"): Delete.
2137 (define_insn_and_split "*call_rex64_ms_sysv_vzeroupper"): Delete.
2138 (define_insn_and_split "*sibcall_vzeroupper"): Delete.
2139 (define_insn_and_split "*call_pop_vzeroupper"): Delete.
2140 (define_insn_and_split "*sibcall_pop_vzeroupper"): Delete.
2141 (define_insn_and_split "*call_value_vzeroupper"): Delete.
2142 (define_insn_and_split "*sibcall_value_vzeroupper"): Delete.
2143 (define_insn_and_split "*call_value_rex64_ms_sysv_vzeroupper"): Delete.
2144 (define_insn_and_split "*call_value_pop_vzeroupper"): Delete.
2145 (define_insn_and_split "*sibcall_value_pop_vzeroupper"): Delete.
2146 (define_expand "return"): Remove vzeroupper emitting.
2147 (define_expand "simple_return"): Delete.
2149 * config/i386/predicates.md (vzeroupper_operation): New.
2151 * config/i386/sse.md (avx_vzeroupper): Change.
2153 2012-11-06 Uros Bizjak <ubizjak@gmail.com>
2154 Kaz Kojima <kkojima@gcc.gnu.org>
2157 * mode-switching.c (create_pre_exit): Set return_copy to
2158 last_insn when copy_start is a pseudo reg.
2160 2012-11-06 Andrey Turetskiy <andrey.turetskiy@gmail.com>
2162 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_avx2_umulhrswv16hi3
2163 to CODE_FOR_avx2_pmulhrswv16hi3.
2164 * config/i386/predicates.md (const1_operand): Extend for vectors.
2165 * config/i386/sse.md (ssse3_avx2): Extend.
2166 (ssedoublemode): Ditto.
2167 (<sse2_avx2>_uavg<mode>3): Merge avx2_uavgv32qi3, sse2_uavgv16qi3,
2168 avx2_uavgv16hi3 and sse2_uavgv8hi3 into one.
2169 (*<sse2_avx2>_uavg<mode>3): Merge *avx2_uavgv32qi3, *sse2_uavgv16qi3,
2170 *avx2_uavgv16hi3 and *sse2_uavgv8hi3 into one.
2172 (<ssse3_avx2>_pmulhrsw<mode>3): Merge avx2_umulhrswv16hi3,
2173 ssse3_pmulhrswv8hi3 and ssse3_pmulhrswv4hi3 into one.
2174 (*avx2_pmulhrswv16hi3): Replace const_vector with const1_operand
2176 (*ssse3_pmulhrswv8hi3): Ditto.
2177 (*ssse3_pmulhrswv4hi3): Ditto.
2179 2012-11-06 Joern Rennecke <joern.rennecke@embecosm.com>
2181 * config/epiphany/epiphany.c (epiphany_address_cost):
2184 2012-11-05 Sriraman Tallam <tmsriram@google.com>
2186 * doc/tm.texi.in (TARGET_OPTION_FUNCTION_VERSIONS): New hook
2188 * (TARGET_COMPARE_VERSION_PRIORITY): New hook description.
2189 * (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): New hook description.
2190 * (TARGET_GENERATE_VERSION_DISPATCHER_BODY): New hook description.
2191 * doc/tm.texi: Regenerate.
2192 * target.def (compare_version_priority): New target hook.
2193 * (generate_version_dispatcher_body): New target hook.
2194 * (get_function_versions_dispatcher): New target hook.
2195 * (function_versions): New target hook.
2196 * cgraph.c (cgraph_fnver_htab): New htab.
2197 (cgraph_fn_ver_htab_hash): New function.
2198 (cgraph_fn_ver_htab_eq): New function.
2199 (version_info_node): New pointer.
2200 (insert_new_cgraph_node_version): New function.
2201 (get_cgraph_node_version): New function.
2202 (delete_function_version): New function.
2203 (record_function_versions): New function.
2204 * cgraph.h (cgraph_node): New bitfield dispatcher_function.
2205 (cgraph_function_version_info): New struct.
2206 (get_cgraph_node_version): New function.
2207 (insert_new_cgraph_node_version): New function.
2208 (record_function_versions): New function.
2209 (delete_function_version): New function.
2210 (init_lowered_empty_function): Expose function.
2211 * tree.h (DECL_FUNCTION_VERSIONED): New macro.
2212 (tree_function_decl): New bit-field versioned_function.
2213 * cgraphunit.c (cgraph_analyze_function): Generate body of multiversion
2214 function dispatcher.
2215 (cgraph_analyze_functions): Analyze dispatcher function.
2216 (init_lowered_empty_function): Make non-static. New parameter in_ssa.
2217 (assemble_thunk): Add parameter to call to init_lowered_empty_function.
2218 * config/i386/i386.c (add_condition_to_bb): New function.
2219 (get_builtin_code_for_version): New function.
2220 (ix86_compare_version_priority): New function.
2221 (feature_compare): New function.
2222 (dispatch_function_versions): New function.
2223 (ix86_function_versions): New function.
2224 (attr_strcmp): New function.
2225 (ix86_mangle_function_version_assembler_name): New function.
2226 (ix86_mangle_decl_assembler_name): New function.
2227 (make_name): New function.
2228 (make_dispatcher_decl): New function.
2229 (is_function_default_version): New function.
2230 (ix86_get_function_versions_dispatcher): New function.
2231 (make_attribute): New function.
2232 (make_resolver_func): New function.
2233 (ix86_generate_version_dispatcher_body): New function.
2234 (fold_builtin_cpu): Return integer for cpu builtins.
2235 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): New macro.
2236 (TARGET_COMPARE_VERSION_PRIORITY): New macro.
2237 (TARGET_GENERATE_VERSION_DISPATCHER_BODY): New macro.
2238 (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): New macro.
2239 (TARGET_OPTION_FUNCTION_VERSIONS): New macro.
2241 2012-11-05 Joern Rennecke <joern.rennecke@embecosm.com>
2243 * recog.c (extract_insn): Enabled alternative defaults to 1.
2245 2012-11-05 H.J. Lu <hongjiu.lu@intel.com>
2247 * config/i386/i386.c (print_reg): Replace REX_INT_REG_P with
2250 2012-11-05 Eric Botcazou <ebotcazou@adacore.com>
2252 PR tree-optimization/54986
2253 * gimple-fold.c (canonicalize_constructor_val): Strip again all no-op
2254 conversions on entry but add them back on exit if needed.
2256 2012-11-05 Andreas Schwab <schwab@linux-m68k.org>
2258 * final.c (final_scan_insn) [HAVE_cc0]: Handle all comparison
2259 codes in non-jump and cmove insn.
2261 2012-11-05 Uros Bizjak <ubizjak@gmail.com>
2262 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
2264 * mode-switching.c (create_pre_exit): Force late switching if
2265 __builtin_{apply,return} emitted a load that require mode,
2266 other than MODE_EXIT.
2268 2012-11-05 Richard Sandiford <rdsandiford@googlemail.com>
2271 * config/i386/i386.c (ix86_address_subreg_operand): Remove stack
2273 (print_reg): Use true_regnum rather than REGNO.
2274 (ix86_print_operand_address): Remove SUBREG handling.
2276 2012-11-05 Jan Hubicka <jh@suse.cz>
2278 * tree-ssa-loop-niter.c (finite_loop_p): Revamp to be just wrapper of
2279 max_loop_iterations.
2281 2012-11-05 Joern Rennecke <joern.rennecke@embecosm.com>
2283 * reorg.c (fill_simple_delay_slots): Avoid calling optimize_skip
2284 with a return instruction.
2286 2012-11-05 Vladimir Makarov <vmakarov@redhat.com>
2288 PR rtl-optimization/55151
2289 * lra-constraints.c (process_alt_operands): Permit putting reg
2290 value into memory. Increase reject for this case.
2292 2012-11-05 Dehao Chen <dehao@google.com>
2294 * final.c (reemit_insn_block_notes): Do not change scope if insn
2295 location is UNKNOWN_LOCATION.
2297 2012-11-05 Joern Rennecke <joern.rennecke@embecosm.com>
2299 * doc/md.texi (Defining Attributes): Document that we are defining
2300 HAVE_ATTR_name macros as 1 for defined attributes, and as 0
2301 for undefined special attributes.
2302 * final.c (asm_insn_count, align_fuzz): Always define.
2303 (insn_current_reference_address): Likewise.
2304 (init_insn_lengths): Use if (HAVE_ATTR_length) instead of
2305 #ifdef HAVE_ATTR_length.
2306 (get_attr_length_1, shorten_branches, final): Likewise.
2307 (final_scan_insn, output_asm_name): Likewise.
2308 * genattr.c (gen_attr): Define HAVE_ATTR_name macros for
2309 defined attributes as 1.
2310 Remove ancient get_attr_alternative compatibility code.
2311 For special purpose attributes not provided, define HAVE_ATTR_name
2313 In case no length attribute is given, provide stub definitions
2314 for insn_*_length* functions, and also include insn-addr.h.
2315 In case no enabled attribute is given, provide stub definition.
2316 * genattrtab.c (write_length_unit_log): Always write a definition.
2317 * hooks.c (hook_int_rtx_1, hook_int_rtx_unreachable): New functions.
2318 * hooks.h (hook_int_rtx_1, hook_int_rtx_unreachable): Declare.
2319 * lra-int.h (struct lra_insn_recog_data): Make member
2320 alternative_enabled_p unconditional.
2321 * lra.c (free_insn_recog_data): Use if (HAVE_ATTR_length) instead of
2322 #ifdef HAVE_ATTR_length.
2323 (lra_set_insn_recog_data): Likewise. Make initialization of
2324 alternative_enabled_p unconditional.
2325 (lra_update_insn_recog_data): Use #if instead of #ifdef for
2327 * recog.c [!HAVE_ATTR_enabled] (get_attr_enabled): Don't define.
2328 (extract_insn): Check HAVE_ATTR_enabled.
2329 (gate_handle_split_before_regstack): Use #if instead of
2330 #if defined for HAVE_ATTR_length.
2332 2012-11-05 Jan Hubicka <jh@suse.cz>
2334 * ipa-inline.c (compute_uninlined_call_time,
2335 compute_inlined_call_time): New functions.
2336 (RELATIVE_TIME_BENEFIT_RANGE): New macro.
2337 (relative_time_benefit): Rewrite.
2338 (edge_badness): Rewrite path with guessed profile and estimated profile.
2339 * ipa-inline.h (INLINE_HINT_declared_inline, INLINE_HINT_cross_module):
2341 (struct inline_summary): Add GROWTH filed.
2342 * ipa-inline-analysis.c (dump_inline_hints): Update.
2343 (reset_inline_summary): Update.
2344 (dump_inline_summary): Update.
2345 (will_be_nonconstant_predicate): Cleanup to use gimple_store_p and
2346 gimple_assign_load_p predicates.
2347 (estimate_node_size_and_time): Drop INLINE_HINT_declared_inline hint.
2348 (simple_edge_hints): New function.
2349 (do_estimate_edge_time): Return time of invocation of callee rather
2350 than the time scaled by edge frequency; update hints code.
2351 (do_estimate_edge_hints): Update.
2352 (do_estimate_growth): Cleanup.
2354 2012-11-05 Jakub Jelinek <jakub@redhat.com>
2357 * dwarf2out.c (value_format) <case dw_val_class_high_pc>: Handle
2358 also DWARF2_ADDR_SIZE 1 and 2.
2360 2012-11-05 Jan Hubicka <jh@suse.cz>
2362 * tree-ssa-loop-niter.c (find_loop_niter): Remove just_once_each_iteration_p.
2363 (maybe_lower_iteration_bound): Initialize not_executed_last_iteration to NULL
2364 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables): Skip
2365 just_once_each_iteration_p; record estimated bound when loop has only one
2366 likely exit; test just_once_each_iteration_p before IV canon itself.
2368 2012-11-05 Jan Hubicka <jh@suse.cz>
2370 * ipa-inline.c (leaf_node_p): Rename to ...
2371 (num_calls) ... this one.
2372 (want_early_inline_function_p): Allow smal growth on non-leafs.
2374 2012-11-05 Jakub Jelinek <jakub@redhat.com>
2377 * var-tracking.c (fp_setter): Return false if there is REG_CFA_RESTORE
2379 (vt_initialize): Look for fp_setter in any bb, not just successor of
2382 2012-11-05 Oleg Endo <olegendo@gcc.gnu.org>
2384 * config/sh/sh.h (TARGET_CACHE32, TARGET_HARVARD): Delete macro.
2385 (TARGET_SUPERSCALAR): Add TARGET_SH2A.
2386 (CACHE_LOG): Use TARGET_HARD_SH4 and TARGET_SH5 instead of
2388 (TRAMPOLINE_ALIGNMENT): Use TARGET_HARD_SH4 and TARGET_SH5 instead of
2390 * config/sh/sh.c (sh_trampoline_init): Likewise.
2392 2012-11-05 David Edelsohn <dje.gcc@gmail.com>
2394 * system.h (loc_t): Poison.
2396 2012-11-05 Marc Glisse <marc.glisse@inria.fr>
2398 * fold-const.c (fold_unary_loc): Disable conversion optimization
2401 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
2403 * configure: Regenerate.
2405 2012-11-04 Eric Botcazou <ebotcazou@adacore.com>
2407 * combine.c: Adjust toplevel comment.
2408 (make_extraction): Adjust head comment and move up canonicalization.
2410 2012-11-04 Alexandre Oliva <aoliva@redhat.com>
2411 Jakub Jelinek <jakub@redhat.com>
2414 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Emit debug temps
2415 for dropped IV sets.
2417 2012-11-04 Alexandre Oliva <aoliva@redhat.com>
2420 * tree-ssa-threadedge.c (propagate_threaded_block_debug_into):
2421 New, rewritten from debug stmt copying code...
2422 (thread_around_empty_block): ... removed from here.
2423 (thread_across_edge): Call propagate_threaded_block_debug_into.
2425 2012-11-04 Dehao Chen <dehao@google.com>
2427 * expr.c (expand_expr_real_1): Change to not using input_location.
2429 2012-11-03 Jan Hubicka <jh@suse.cz>
2431 * invoke.texi (profile-use): update documentation.
2432 * opts.c (common_handle_option): Enable tree-vectorize
2433 and tree-loop-distribute-patterns.
2434 * tree-loop-distribution.c (tree_loop_distribution): Skip loops
2436 * config/i386/i386.c (ix86_option_override_internal): Enabe
2437 prefetch_lop_arrays for profile-use.
2439 2012-11-03 Robert Mason <rbmj@verizon.net>
2441 * gcov-io.c (gcov_open): Add file mode to open call (need for VxWorks)
2443 2012-11-03 Sandra Loosemore <sandra@codesourcery.com>
2445 * doc/extend.texi: Copy-edit to use present tense except when
2446 explicitly describing future or past behavior.
2448 2012-11-03 Oleg Endo <olegendo@gcc.gnu.org>
2450 * config/sh/sh.c (output_movedouble, output_far_jump,
2451 output_ieee_ccmpeq): Use multi-line strings for asm.
2452 (find_regmode_weight): Wrap lines.
2453 (sh_optimize_target_register_callee_saved): Remove commented out
2455 (emit_load_ptr): Remove prototype.
2457 2012-11-03 Oleg Endo <olegendo@gcc.gnu.org>
2460 * config/sh/sh.md (*cbranch_t): Allow splitting after reload.
2461 Allow going beyond current basic block before reload when looking for
2463 * config/sh/sh.c (sh_find_set_of_reg): Don't stop at labels.
2465 2012-11-02 Jan Hubicka <jh@suse.cz>
2467 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): Add
2468 missing sign to unsigned.
2470 2012-11-02 Andrew Pinski <apinski@cavium.com>
2473 * simplify-rtx.c (simplify_relational_operation_1): Don't simplify
2474 (LTU/GEU (PLUS a 0) 0) into (GEU/LTU a 0) since they are not
2477 2012-11-02 Jan Hubicka <jh@suse.cz>
2479 * tree-ssa-loop-niter.c (double_int_cmp, bound_index,
2480 discover_iteration_bound_by_body_walk): New functions.
2481 (discover_iteration_bound_by_body_walk): Use it.
2483 2012-11-02 Jan Hubicka <jh@suse.cz>
2485 * predict.c (predict_loops): Predict also exits not dominating latch.
2487 2012-11-02 Jan Hubicka <jh@suse.cz>
2489 * predict.c (predict_loops): Do not predict infinite loops.
2491 2012-11-02 Jan Hubicka <jh@suse.cz>
2494 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
2495 MAX field if NITER was folded to contant.
2496 (record_estimate): Sanity check.
2497 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): New
2499 (remove_redundant_iv_test): New function.
2500 (loops_to_unloop, loops_to_unloop_nunroll): New static vars.
2501 (unloop_loops): Break out from ...
2502 (try_unroll_loop_completely): ... here; Pass in MAXITER; use
2503 remove_exits_and_undefined_stmts; do not unloop.
2504 (canonicalize_loop_induction_variables): Compute MAXITER;
2505 use remove_redundant_iv_test; remove loop_close_ssa_invalidated
2506 and irred_invalidated arguments.
2507 (canonicalize_induction_variables): Compute fresh bound estimates;
2508 unloop; walk from innermost.
2509 (tree_unroll_loops_completely): Likewise.
2511 2012-11-02 Vladimir Makarov <vmakarov@redhat.com>
2514 * lra-constraints.c (debug_loc_equivalence_change_p): Rename to
2515 loc_equivalence_change_p.
2516 (lra_constraints): Check equiv_insn_bitmap for debug insn. Call
2517 loc_equivalence_change_p for non-transformed insn.
2519 2012-11-02 Eric Botcazou <ebotcazou@adacore.com>
2521 * cfg-flags.def (ABNORMAL_CALL): Fix comment.
2523 (SIBCALL): Likewise.
2524 * cfgrtl.c (rtl_verify_flow_info_1): Adjust error messages.
2525 Deal with EDGE_SIBCALL and fix the EDGE_ABNORMAL check.
2527 2012-11-02 Jakub Jelinek <jakub@redhat.com>
2530 * config/i386/i386.md (bswapdi2): Limit to TARGET_64BIT.
2531 (*bswapdi2_doubleword): Removed.
2533 2012-11-02 Gerald Pfeifer <gerald@pfeifer.com>
2535 * doc/install.texi (Specific): Remove moxie web reference.
2537 2012-11-01 Marc Glisse <marc.glisse@inria.fr>
2540 * tree-vect-generic.c (expand_vector_condition): New function.
2541 (expand_vector_operations_1): Call it.
2543 2012-11-01 Steve Ellcey <sellcey@mips.com>
2545 * target-globals.c (save_target_globals): Save lra_int struct.
2547 2012-11-01 Gerald Pfeifer <gerald@pfeifer.com>
2549 * doc/standards.texi (Standards): Adjust reference to Go specification.
2551 2012-11-01 Lawrence Crowl <crowl@google.com>
2553 * ebitmap.h: Remove unused.
2554 * ebitmap.c: Remove unused.
2555 * Makefile.in: Remove ebitmap.h and ebitmap.c.
2556 * sbitmap.h (SBITMAP_SIZE_BYTES): Move to source file.
2557 (SET_BIT_WITH_POPCOUNT): Remove unused.
2558 (RESET_BIT_WITH_POPCOUNT): Remove unused.
2559 (bitmap_copy_n): Remove unused.
2560 (bitmap_range_empty_p): Remove unused.
2561 (sbitmap_popcount): Remove unused.
2562 (sbitmap_verify_popcount): Make private to source file.
2563 * sbitmap.c (SBITMAP_SIZE_BYTES): Move here from header.
2564 (bitmap_copy_n): Remove unused.
2565 (bitmap_range_empty_p): Remove unused.
2566 (sbitmap_popcount): Remove unused.
2567 (sbitmap_verify_popcount): Make private to source file.
2569 2012-11-01 Lawrence Crowl <crowl@google.com>
2571 * sbitmap.h (sbitmap_iter_init): Rename bmp_iter_set_init and add
2572 unused parameter to match bitmap iterator. Update callers.
2573 (sbitmap_iter_cond): Rename bmp_iter_set. Update callers.
2574 (sbitmap_iter_next): Rename bmp_iter_next and add unused parameter to
2575 match bitmap iterator. Update callers.
2576 (EXECUTE_IF_SET_IN_SBITMAP_REV): Remove unused.
2577 (EXECUTE_IF_SET_IN_SBITMAP): Rename EXECUTE_IF_SET_IN_BITMAP and
2578 adjust to be identical to the definition in bitmap.h. Conditionalize
2579 the definition based on not having been defined. Update callers.
2580 * bitmap.h (EXECUTE_IF_SET_IN_BITMAP): Conditionalize the definition
2581 based on not having been defined. (To match the above.)
2583 2012-11-01 Lawrence Crowl <crowl@google.com>
2585 * sbitmap.h (TEST_BIT): Rename bitmap_bit_p, normalizing parameter
2586 type. Update callers to match.
2587 (SET_BIT): Rename bitmap_set_bit, normalizing parameter type. Update
2589 (SET_BIT_WITH_POPCOUNT): Rename bitmap_set_bit_with_popcount,
2590 normalizing parameter type. Update callers to match.
2591 (RESET_BIT): Rename bitmap_clear_bit, normalizing parameter type.
2592 Update callers to match.
2593 (RESET_BIT_WITH_POPCOUNT): Rename bitmap_clear_bit_with_popcount,
2594 normalizing parameter type. Update callers to match.
2595 * basic-block.h (sbitmap_intersection_of_succs): Rename
2596 bitmap_intersection_of_succs. Update callers to match.
2597 * basic-block.h (sbitmap_intersection_of_preds): Rename
2598 bitmap_intersection_of_preds. Update callers to match.
2599 * basic-block.h (sbitmap_union_of_succs): Rename
2600 bitmap_union_of_succs. Update callers to match.
2601 * basic-block.h (sbitmap_union_of_preds): Rename
2602 bitmap_union_of_preds. Update callers to match.
2604 2012-11-01 Vladimir Makarov <vmakarov@redhat.com>
2607 * lra-constraints.c (lra_constraints): Check only pseudos with
2608 equivalences. Add insns with equivalence pseudos.
2610 2012-11-01 Sharad Singhai <singhai@google.com>
2613 * dumpfile.h (struct dump_file_info): Fix order of flags.
2615 2012-11-01 Jan Hubicka <jh@suse.cz>
2618 * ipa-inline-transform.c (inline_call): Silence an sanity check until
2619 ipa-cp issue if fixed.
2621 2012-11-01 Sharad Singhai <singhai@google.com>
2623 * doc/invoke.texi: Update -fopt-info documentation.
2624 * dumpfile.c: Move dump_flags here from passes.c.
2625 Rename opt_info_options to optinfo_verbosity_options.
2626 Add optgroup_options.
2627 (dump_files): Add field for optinfo_flags in the static initializer.
2628 (dump_register): Handle additional parameter for optgroup_flags.
2629 (opt_info_enable_passes): Renamed opt_info_enable_all. Handle
2630 optgroup_flags. Fix documentation.
2631 (opt_info_switch_p_1): Handle optgroup options.
2632 (opt_info_switch_p): Handle optgroup_flags. Warn on multiple files.
2633 * dumpfile.h (dump_register): Additional argument for optgroup_flags.
2634 All callers updated.
2635 (struct dump_file_info): Add field for optgroup_flags.
2636 Define OPTGROUP_* flags.
2637 * tree-pass.h (struct opt_pass): Add addtional field for optinfo_flags.
2638 All opt_pass static initializers updated.
2639 * opts-global.c (dump_remap_tree_vectorizer_verbose): Use 'all'
2640 instead of 'optall'.
2641 (handle_common_deferred_options): Fix typo in error message.
2642 * passes.c (register_one_dump_file): Add argument for optgroup_flags.
2643 Turn on OPTGROUP_IPA for IPA passes.
2644 Move dump_flags from here to dumpfile.c.
2645 * statistics.c (statistics_early_init): Use OPTGROUP_NONE in call to
2648 2012-11-01 Joern Rennecke <joern.rennecke@embecosm.com>
2651 * config/sh/sh.md (doloop_end): Use emit_jump_insn.
2653 2012-10-31 Jakub Jelinek <jakub@redhat.com>
2655 PR tree-optimization/53708
2656 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
2657 user-supplied alignment when used with an explicit section name.
2659 2012-10-31 Dehao Chen <dehao@google.com>
2661 * tree-eh.c (do_return_redirection): Set location for jump statement.
2662 (do_goto_redirection): Likewise.
2663 (frob_into_branch_around): Likewise.
2664 (lower_try_finally_nofallthru): Likewise.
2665 (lower_try_finally_copy): Likewise.
2666 (lower_try_finally_switch): Likewise.
2667 * expr.c (store_expr): Use current insn location instead of expr
2669 (expand_expr_real): Likewise.
2670 (expand_expr_real_1): Likewise.
2672 2012-10-31 Easwaran Raman <eraman@google.com>
2676 * optabs.c (emit_cmp_and_jump_insn_1): Add REG_BR_PROB note
2677 only if it doesn't already exist.
2678 * stmt.c (get_outgoing_edge_probs): Return 0 if BB is NULL.
2679 (emit_case_dispatch_table): Handle the case where STMT_BB is NULL.
2680 (expand_sjlj_dispatch_table): Pass BB containing before_case
2681 to emit_case_dispatch_table.
2683 2012-10-31 Lawrence Crowl <crowl@google.com>
2686 (is_a <T> (U*)): New. Test for is-a relationship.
2687 (as_a <T> (U*)): New. Treat as a derived type.
2688 (dyn_cast <T> (U*)): New. Conditionally cast based on is_a.
2689 * cgraph.h (varpool_node): Rename to varpool_node_for_decl.
2690 Adjust callers to match.
2691 (is_a_helper <cgraph_node>::test (symtab_node_def *)): New.
2692 (is_a_helper <varpool_node>::test (symtab_node_def *)): New.
2693 (symtab_node_def::try_function): New. Change most calls to
2694 symtab_function_p with calls to dyn_cast <cgraph_node> (p).
2695 (symtab_node_def::try_variable): New. Change most calls to
2696 symtab_variable_p with calls to dyn_cast <varpool_node> (p).
2697 (symtab_function_p): Remove. Change callers to use
2698 is_a <cgraph_node> (p) instead.
2699 (symtab_variable_p): Remove. Change callers to use
2700 is_a <varpool_node> (p) instead.
2701 * cgraph.c (cgraph_node_for_asm): Remove redundant call to
2702 symtab_node_for_asm.
2703 * cgraphunit.c (symbol_finalized_and_needed): New.
2704 (symbol_finalized): New.
2705 (cgraph_analyze_functions): Split complicated conditionals out into
2706 above new functions.
2707 * Makefile.in (CGRAPH_H): Add is-a.h as used by cgraph.h.
2709 2012-10-31 Steven Bosscher <steven@gcc.gnu.org>
2710 Jakub Jelinek <jakub@redhat.com>
2712 PR tree-optimization/55018
2713 * basic-block.h (dfs_find_deadend): New prototype.
2714 * cfganal.c (dfs_find_deadend): No longer static. Use bitmap
2715 instead of sbitmap for visited.
2716 (flow_dfs_compute_reverse_execute): Use dfs_find_deadend here, too.
2717 * dominance.c (calc_dfs_tree): If saw_unconnected, traverse from
2718 dfs_find_deadend of unconnected b instead of b directly.
2720 2012-10-31 Eric Botcazou <ebotcazou@adacore.com>
2722 * config/i386/i386.c (ix86_expand_prologue): Emit frame info for the
2723 special register pushes before frame probing and allocation.
2725 2012-10-31 Vladimir Makarov <vmakarov@redhat.com>
2728 * lra-constraints.c (lra_constraints): Update debug insn info
2729 after equivalence change.
2731 2012-10-31 Jan Hubicka <jh@suse.cz>
2733 * ipa-inline.c (ipa_inline): Avoid infinite loop on inlining
2734 empty virtual functions calling themselves.
2736 2012-10-31 Tom Tromey <tromey@redhat.com>
2739 * doc/gcc.texi: Add @direntry for gcov.
2741 2012-10-31 Joern Rennecke <joern.rennecke@embecosm.com>
2743 * expr.c (can_move_by_pieces): Apply ATTRIBUTE_UNUSED to len.
2745 2012-10-31 Jakub Jelinek <jakub@redhat.com>
2747 PR tree-optimization/19105
2748 PR tree-optimization/21643
2749 PR tree-optimization/46309
2750 * tree-ssa-reassoc.c (init_range_entry): Add STMT argument
2751 and use it if EXP is NULL.
2752 (update_range_test): Handle OPCODE equal to ERROR_MARK and oe->op NULL.
2753 (optimize_range_tests): Likewise.
2754 (final_range_test_p, suitable_cond_bb, no_side_effect_bb, get_ops,
2755 maybe_optimize_range_tests): New functions.
2756 (reassociate_bb): Call maybe_optimize_range_tests if last
2757 stmt of bb is GIMPLE_COND that hasn't been visited yet.
2759 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
2761 * config/rs6000/rs6000.md (insvsi, insvdi, extvsi, extvdi): Rename
2763 (insvsi_internal, insvdi_internal, extvsi_internal)
2764 (extvdi_internal): ...this.
2765 (insv, extv): Update accordingly.
2767 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
2769 * combine.c (simplify_comparison): If BITS_BIG_ENDIAN, always assume
2770 that zero_extracts of const_ints are doing word-sized extractions.
2772 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
2774 * combine.c (make_extraction): Remove dead wanted_inner_mode-
2775 and pos_rtx-related code.
2777 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
2779 * expmed.c (store_bit_field_1): Move generation of MEM insvs
2781 (extract_bit_field_1): Likewise extvs and extzvs.
2783 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
2785 * expmed.c (store_bit_field_using_insv): New function,
2787 (store_bit_field_1): ...here.
2788 (extract_bit_field_using_extv): New function, split out from...
2789 (extract_bit_field_1): ...here.
2791 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
2793 * expmed.c (store_bit_field_1): Use OP_MODE to check whether an
2794 insv pattern is available. Remove redundant checks for OP_MODE
2795 being MAX_MACHINE_MODE.
2796 (extract_bit_field_1): Remove redundant checks for EXT_MODE being
2799 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
2801 * expmed.c (store_bit_field_1): Remove test for BLKmode values.
2803 2012-10-31 Ralf Corsépius <ralf.corsepius@rtems.org>,
2804 Joel Sherrill <joel.sherrill@oarcorp.com>
2806 * config/sparc/t-rtems: New (Custom multilibs).
2807 * config/sparc/t-rtems-64: New (Custom multilibs).
2808 * config.gcc (sparc64-*-rtems*): Add sparc/t-rtems-64.
2809 (sparc-*-rtems*): Add sparc/t-rtems.
2811 2012-10-31 Alan Modra <amodra@gmail.com>
2813 * config/rs6000/rs6000.c (legitimize_reload_address): Remove code
2814 handling non-aligned ld/std.
2815 * config/rs6000/paired.md (movv2sf_paired): Use 'Y' instead of 'o'.
2816 * config/rs6000/vsx.md (vsx_mov, vsx_movti): Likewise.
2817 * config/rs6000/altivec.md (altivec_mov, altivec_movti): Likewise.
2818 * config/rs6000/dfp.md (movtd_internal): Use 'm' instead of 'o'.
2820 2012-10-31 Alan Modra <amodra@gmail.com>
2822 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Define _CALL_LINUX.
2824 2012-10-31 Joern Rennecke <joern.rennecke@embecosm.com>
2826 * lra-constraints.c (choose_split_class): Add ATTRIBUTE_UNUSED to
2830 * vmsdbgout.c (vmsdbgout_write_source_line): Comment out names of
2831 last two parameters.
2833 2012-10-30 Alexandre Oliva <aoliva@redhat.com>
2837 * valtrack.c (dead_debug_promote_uses): Assert-check that
2838 global used bit was clear and initialize entry unconditionally.
2840 2012-10-30 Eric Botcazou <ebotcazou@adacore.com>
2842 * cse.c (hash_rtx_cb): Replace RTX_UNCHANGING_P with MEM_READONLY_P in
2844 (hash_rtx): Likewise.
2846 2012-10-30 H.J. Lu <hongjiu.lu@intel.com>
2848 PR rtl-optimization/55093
2849 * rtlanal.c (simplify_subreg_regno): Remove lra_in_progress
2850 check for ARG_POINTER_REGNUM.
2852 2012-10-30 Steve Ellcey <sellcey@mips.com>
2854 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Change order
2856 (DRIVER_SELF_SPECS): Make -n32 the default on mips64* archs.
2857 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Change order.
2858 (MULTILIB_DIRNAMES): Ditto.
2859 (MULTILIB_EXCEPTIONS): New.
2861 2012-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
2863 * lra-constraints.c (check_secondary_memory_needed_p):
2864 Add ATTRIBUTE_UNUSED to parameters.
2866 2012-10-30 Richard Sandiford <rdsandiford@googlemail.com>
2868 * defaults.h (SLOW_UNALIGNED_ACCESS): Provide default definition.
2869 * expmed.c (SLOW_UNALIGNED_ACCESS): Remove default definition.
2870 * expr.c (SLOW_UNALIGNED_ACCESS): Likewise.
2871 * lra-constraints.c (SLOW_UNALIGNED_ACCESS): Likewise.
2872 (simplify_operand_subreg): Don't check STRICT_ALIGNMENT here.
2874 2012-10-30 Jan Hubicka <jh@suse.cz>
2876 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Cleanup.
2878 2012-10-30 Jan Hubicka <jh@suse.cz>
2880 * tree-ssa-loop-niter.c (number_of_iterations_exit): New parameter
2881 EVERY_ITERATION with implicit value of true.
2882 (record_estimate): Check dominance relationship of the basic block
2883 we are estimating on instead of relying on UPPER to be false.
2884 (struct ilb_data): Drop RELIABLE.
2885 (idx_infer_loop_bounds): Update.
2886 (infer_loop_bounds_from_ref): Drop parameter RELIABLE.
2887 (infer_loop_bounds_from_array): Drop parameter RELIABLE.
2888 (infer_loop_bounds_from_undefined): Update comments and handling
2890 (estimate_numbers_of_iterations_loop): Record all bounds.
2892 2012-10-30 Richard Sandiford <r.sandiford@uk.ibm.com>
2894 * lra-eliminations.c (lra_eliminate_regs_1): Use simplify_gen_subreg
2895 rather than gen_rtx_SUBREG.
2897 2012-10-30 Richard Biener <rguenther@suse.de>
2899 * gimple.h (gimple_store_p): New predicate.
2900 (gimple_assign_load_p): Likewise.
2901 * tree-inline.c (estimate_num_insns): Use it.
2903 2012-10-30 Marc Glisse <marc.glisse@inria.fr>
2905 * fold-const.c (fold_binary_op_with_conditional_arg): Handle vectors.
2906 (fold_binary_loc): Call it for VEC_COND_EXPR.
2908 2012-10-30 James Greenhalgh <james.greenhalgh@arm.com>
2909 Tejas Belagod <tejas.belagod@arm.com>
2911 * config/aarch64/aarch64-simd.md
2912 (aarch64_simd_bsl<mode>_internal): New pattern.
2913 (aarch64_simd_bsl<mode>): Likewise.
2914 (aarch64_vcond_internal<mode>): Likewise.
2915 (vcondu<mode><mode>): Likewise.
2916 (vcond<mode><mode>): Likewise.
2917 * config/aarch64/iterators.md (UNSPEC_BSL): Add to define_constants.
2919 2012-10-30 Richard Biener <rguenther@suse.de>
2921 PR tree-optimization/55111
2922 * tree-ssa-pre.c (eliminate_insert): Properly fold the built stmt.
2924 2012-10-30 Oleg Endo <olegendo@gcc.gnu.org>
2927 * config/sh/iterators.md (SIDI): New mode iterator.
2928 * config/sh/sh.md (negdi2): Use parallel around operation and T_REG
2929 clobber in expander.
2930 (*negdi2): Mark output operand as early clobbered. Add T_REG clobber.
2931 Split after reload. Simplify split code.
2932 (abssi2, absdi2): Fold expanders into abs<mode>2.
2933 (*abssi2, *absdi2): Fold into *abs<mode>2 insn_and_split. Split insns
2935 (*negabssi2, *negabsdi2): Fold into *negabs<mode>2. Add T_REG clobber.
2936 Split insns before reload.
2937 (negsi_cond): Reformat. Use emit_move_insn instead of gen_movesi.
2938 (negdi_cond): Reformat. Use emit_move_insn instead of a pair
2939 of gen_movsi. Split insn before reload.
2941 2012-10-30 Oleg Endo <olegendo@gcc.gnu.org>
2944 * config/sh/sh.md (tstqi_t_zero): Rename to *tstqi_t_zero.
2945 (*tst<mode>_t_zero): New insns.
2946 * config/sh/iterators.md (lowpart_be, lowpart_le): New mode attributes.
2948 2012-10-30 H.J. Lu <hongjiu.lu@intel.com>
2950 * gimple-pretty-print.c (dump_gimple_bb_header): Avoid alloca.
2952 2012-10-30 Jakub Jelinek <jakub@redhat.com>
2955 * valtrack.h (DEBUG_TEMP_AFTER_WITH_REG_FORCE): New.
2956 * valtrack.c (dead_debug_insert_temp): Use emit_debug_insn_after
2957 even for where == DEBUG_TEMP_AFTER_WITH_REG_FORCE.
2958 * dce.c (word_dce_process_block, dce_process_block): Pass
2959 DEBUG_TEMP_AFTER_WITH_REG_FORCE if insn is needed and therefore
2960 not going to be eliminated.
2962 2012-10-29 Lawrence Crowl <crowl@google.com>
2964 * sbitmap.h (sbitmap_copy): Rename bitmap_copy.
2965 (sbitmap_copy_n): Rename bitmap_copy_n.
2966 (sbitmap_equal): Rename bitmap_equal_p.
2967 (sbitmap_empty_p): Rename bitmap_empty_p.
2968 (sbitmap_range_empty_p): Rename bitmap_range_empty_p.
2969 (sbitmap_zero): Rename bitmap_clear.
2970 (sbitmap_ones): Rename bitmap_ones.
2971 (sbitmap_vector_zero): Rename bitmap_vector_clear.
2972 (sbitmap_vector_ones): Rename bitmap_vector_ones.
2973 (sbitmap_not): Rename bitmap_not.
2974 (sbitmap_a_and_b_cg): Commented out.
2975 (sbitmap_a_and_b): Rename bitmap_and. Add bool return.
2976 (sbitmap_difference): Rename bitmap_and_compl.
2977 (sbitmap_a_or_b_cg): Commented out.
2978 (sbitmap_a_or_b): Rename bitmap_xor. Add bool return.
2979 (sbitmap_a_xor_b_cg): Commented out.
2980 (sbitmap_a_xor_b): Rename bitmap_xor. Add bool return.
2981 (sbitmap_a_and_b_or_c_cg): Rename bitmap_and_or.
2982 (sbitmap_a_and_b_or_c): Commented out.
2983 (sbitmap_a_or_b_and_c_cg): Rename bitmap_or_and.
2984 (sbitmap_a_or_b_and_c): Commented out.
2985 (sbitmap_union_of_diff_cg): Rename bitmap_ior_and_compl.
2986 (sbitmap_union_of_diff): Commented out.
2987 (dump_sbitmap): Rename dump_bitmap.
2988 (dump_sbitmap_file): Rename dump_bitmap_file.
2989 (debug_sbitmap): Rename debug_bitmap.
2990 (dump_sbitmap_vector): Rename dump_bitmap_vector.
2991 (sbitmap_first_set_bit): Rename bitmap_first_set_bit.
2992 (sbitmap_last_set_bit): Rename bitmap_last_set_bit.
2993 (sbitmap_a_subset_b_p): Rename bitmap_subset_p.
2994 (sbitmap_any_common_bits): Rename bitmap_intersect_p.
2995 (#define sbitmap_free): Reimplement as inline function.
2996 (#define sbitmap_vector_free): Reimplement as inline function.
2997 * bitmap.h (#define bitmap_zero): Remove as redundant.
2998 (#define bitmap_empty_p): Reimplement as inline function.
2999 (#define dump_bitmap): Reimplement as inline function.
3001 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
3004 * doc/invoke.texi (Warning Options): Document -Wno-return-local-addr.
3006 2012-10-29 H.J. Lu <hongjiu.lu@intel.com>
3008 * lra-assigns.c: Remove trailing white spaces.
3009 * lra-coalesce.c: Likewise.
3010 * lra-constraints.c: Likewise.
3011 * lra-eliminations.c: Likewise.
3012 * lra-int.h: Likewise.
3013 * lra-spills.c: Likewise.
3016 2012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3019 * tree.h (FUNCTION_POINTER_TYPE_P): New.
3021 2012-10-29 Alexandre Oliva <aoliva@redhat.com>
3024 * valtrack.c (dead_debug_insert_temp): Defer rescan of
3025 newly-emitted debug insn.
3027 2012-10-29 Alexandre Oliva <aoliva@redhat.com>
3030 * tree-ssa-threadedge.c (thread_around_empty_block): Copy
3031 debug temps from predecessor before threading.
3033 2012-10-29 Alexandre Oliva <aoliva@redhat.com>
3037 * valtrack.c (dead_debug_global_find): Accept NULL dtemp.
3038 (dead_debug_global_insert): Return new entry.
3039 (dead_debug_global_replace_temp): Return early if REG is no
3040 longer in place, or if dtemp was already substituted.
3041 (dead_debug_promote_uses): Insert for all defs and replace all
3043 (dead_debug_local_finish): Release used after promotion.
3044 (dead_debug_insert_temp): Stop if dtemp is NULL.
3046 2012-10-29 Alexandre Oliva <aoliva@redhat.com>
3049 * loop-unroll.c (loop_exit_at_end_p): Skip debug insns.
3051 2012-10-29 Alexandre Oliva <aoliva@redhat.com>
3054 * config/i386/i386.c (add_parameter_dependencies): Stop
3055 backward scan at the insn before the incoming head.
3056 (ix86_dependencies_evaluation_hook): Skip debug insns. Stop
3057 if first_arg is head.
3059 2012-10-29 Andrew Pinski <apinski@cavium.com>
3061 * config/aarch64/aarch64-protos.h (aarch64_load_tp): New proto.
3062 * config/aarch64/aarch64.c (aarch64_load_tp): Export.
3063 (aarch64_init_builtins): Don't add __builtin_thread_pointer builtin.
3064 * config/aarch64/aarch64.h (aarch64_builtins): Delete
3065 AARCH64_BUILTIN_THREAD_POINTER.
3066 * config/aarch64/aarch64.md (get_thread_pointerdi): New pattern.
3068 2012-10-29 Marc Glisse <marc.glisse@inria.fr>
3071 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
3074 2012-10-29 Vladimir Makarov <vmakarov@redhat.com>
3076 * rtlanal.c (strip_address_mutation): Use SUBREG_REG instead of XEXP.
3078 2012-10-29 Uros Bizjak <ubizjak@gmail.com>
3080 * config/i386/i386.c (ix86_decompose_address): Use simplify_gen_subreg
3081 for all addresses, zero-extended with AND.
3083 2012-10-29 Vladimir Makarov <vmakarov@redhat.com>
3086 * rtlanal.c (strip_address_mutation): Add SUBREG case.
3088 2012-10-29 Jan Hubicka <jh@suse.cz>
3090 * ipa-inline.c (want_inline_function_called_once_p): Rename to ...
3091 (want_inline_function_to_all_callers_p): check also functions with
3093 (ipa_inline): Handle inlining for size into multiple callers.
3095 2012-10-29 Richard Guenther <rguenther@suse.de>
3098 * tracer.c (tracer): Fixup loop structure.
3099 * cfgloopmanip.c (force_single_succ_latches): Add assert.
3100 (fix_loop_structure): Re-compute loop latches and disambiguate
3101 loops with multiple latches if required.
3103 2012-10-29 Uros Bizjak <ubizjak@gmail.com>
3105 * config/i386/i386.c (ix86_decompose_address): Use simplify_gen_subreg
3106 to check SImode equivalent of address, zero-extended with AND RTX.
3107 * config/i386/i386.md (ashift to lea splitter): Split to SImode mult.
3108 (simple lea to add/shift peephole2s): Remove peephole2s that operate
3109 on subregs of DImode operations.
3111 2012-10-28 Vladimir Makarov <vmakarov@redhat.com>
3113 PR rtl-optimization/55106
3114 * lra-constraints.c (skip_usage_debug_insns): New function.
3115 (check_secondary_memory_needed_p): Ditto.
3116 (inherit_reload_reg): Use the new functions. Improve debug output.
3118 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
3120 * doc/cpp.texi (Search Path): Fix outdated C++ path.
3122 2012-10-28 Jan Hubicka <jh@suse.cz>
3124 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
3125 &this->field expressions.
3127 2012-10-28 Vladimir Makarov <vmakarov@redhat.com>
3129 * rtl.h (struct rtx_def): Add a comment for member unchanging.
3130 * lra-int.h (LRA_TEMP_CLOBBER_P): New macro.
3131 (lra_hard_reg_substitution): Rename to lra_final_code_change.
3132 * lra-constraints.c (match_reload): Mark temporary clobbers.
3133 * lra-spill.c (lra_hard_reg_substitution): Rename to
3134 lra_final_code_change. Remove temporary clobbers.
3135 * lra.c (lra): Rename to lra_final_code_change.
3137 2012-10-28 Jan Hubicka <jh@suse.cz>
3139 * ipa-inline.c (edge_badness): Fix overflow.
3140 (inline_small_functions): Initialize SCCs correctly.
3141 (do_estimate_edge_time, do_estimate_edge_hints): Skip self
3142 recursive functions in SCC hints.
3144 2012-10-28 Steven Bosscher <steven@gcc.gnu.org>
3146 PR rtl-optimization/38711
3147 * ira.c (ira): Remove DF_LIVE if the problem is in the stack.
3148 (do_reload): Add it back at the end for -O2 and higher.
3150 * function.c (thread_prologue_and_epilogue_insns): Use
3151 REG_SET_TO_HARD_REG_SET instead of CLEAR_HARD_REG_SET and
3152 reg_set_to_hard_reg_set.
3154 2012-10-28 Jan Hubicka <jh@suse.cz>
3156 * ipa-inline.c (edge_badness): Reduce precision; use scc hints.
3157 (inline_small_functions): Fix dumps; update all callees after inlining.
3158 * ipa-inline.h (INLINE_HINT_in_scc, INLINE_HINT_same_scc): New
3160 (inline summary): Add SCC_NO.
3161 * ipa-inline-analysis.c (dump_inline_hints): Dump SCC hints.
3162 (reset_inline_summary): Reset scc_no.
3163 (estimate_node_size_and_time): Set in_scc hint.
3164 (do_estimate_edge_time): Add same_scc hint.
3165 (do_estimate_edge_hints): Likewise.
3167 2012-10-28 Andreas Schwab <schwab@linux-m68k.org>
3169 * doc/cppopts.texi: Fix use of @item vs. @itemx inside @table.
3170 * doc/extend.texi: Likewise.
3171 * doc/generic.texi: Likewise.
3172 * doc/invoke.texi: Likewise.
3173 * doc/md.texi: Likewise.
3174 * doc/sourcebuild.texi: Likewise.
3176 * doc/tm.texi.in (Misc): Add newline before @end.
3177 * doc/tm.texi: Update.
3179 2012-10-27 Joern Rennecke <joern.rennecke@embecosm.com>
3181 * lra-assigns.c (find_hard_regno_for): Fix use of WORDS_BIG_ENDIAN.
3183 2012-10-27 Georg-Johann Lay <avr@gjlay.de>
3186 * config/avr/avr.c (avr_out_lpm): Remove unused regno_dest.
3188 2012-10-27 Oleg Endo <olegendo@gcc.gnu.org>
3191 * config/sh/sh.c (sh1_builtin_p): Comment out unused function.
3193 2012-10-27 Uros Bizjak <ubizjak@gmail.com>
3195 * config/i386/i386.md (*lea<mode>): Remove unneeded temporary.
3197 2012-10-26 David S. Miller <davem@davemloft.net>
3199 * config/sparc/constraints.md: Update unused letter list, move
3200 "w" near other memory constraints. Remove no longer relevant
3202 * doc/md.texi: Sync sparc constraint documentation with reality.
3204 2012-10-26 DJ Delorie <dj@redhat.com>
3206 * config/rl78/rl78.c (rl78_as_legitimate_address): Do not allow
3207 reg+addend addresses for the _far namespace.
3209 2012-10-26 Segher Boessenkool <segher@kernel.crashing.org>
3211 * config/rs6000/sync.md (ATOMIC): Correct DI condition.
3213 2012-10-26 Jakub Jelinek <jakub@redhat.com>
3216 * cfgexpand.c (expand_debug_expr): Expand &MEM_REF[&var, n]
3217 as DEBUG_IMPLICIT_PTR + n if &var expands to DEBUG_IMPLICIT_PTR.
3218 * tree-sra.c (create_access_replacement): Allow also MEM_REFs
3219 with ADDR_EXPR first operand in DECL_DEBUG_EXPR expressions.
3220 * var-tracking.c (track_expr_p): Handle MEM_REFs in DECL_DEBUG_EXPR
3222 * dwarf2out.c (add_var_loc_to_decl): Likewise.
3224 2012-10-26 Jeff Law <law@redhat.com>
3226 * tree-ssa-threadedge.c (cond_arg_set_in_bb): Use last stmt.
3228 2012-10-26 Gunther Nikl <gnikl@users.sourceforge.net>
3230 * common/config/m68k/m68k-common.c (m68k_handle_option): Set
3231 gcc_options fields of opts_set for -m68020-40 and -m68020-60.
3233 2012-10-26 Teresa Johnson <tejohnson@google.com>
3235 * ree.c (add_removable_extension): Remove unnecessary
3236 mode check with other extension.
3237 * testsuite/gcc.c-torture/execute/20111227-2.c: New test.
3238 * testsuite/gcc.c-torture/execute/20111227-3.c: Ditto.
3240 2012-10-26 Jan Hubicka <jh@suse.cz>
3242 * ipa-inline-transform.c (inline_call): Only account size changes
3245 2012-10-26 Martin Jambor <mjambor@suse.cz>
3248 * tree-sra.c (struct access): New flag grp_to_be_debug_replaced.
3249 (dump_access): Dump the new flag.
3250 (analyze_access_subtree): Set the new flag when appropriate.
3251 (create_access_replacement): Handle debug replacements differently.
3252 (generate_subtree_copies): Handle the grp_to_be_debug_replaced flag.
3253 (init_subtree_with_zero): Likewise.
3254 (sra_modify_expr): Likewise.
3255 (load_assign_lhs_subreplacements): Likewise.
3256 (sra_modify_assign): Likewise.
3258 2012-10-23 Yuri Rumyantsev <ysrumyan@gmail.com>
3260 * config/i386/i386.c (insn_is_function_arg) : Add check on CALL
3262 (ix86_dependencies_evaluation_hook): Insert dependencies in all
3263 predecessors of call block for non-trivial region avoiding creation
3264 of loop-carried dependency to avoid cross-block motion of HW registers.
3266 2012-10-26 Richard Biener <rguenther@suse.de>
3269 * tree-optimize.c (execute_fixup_cfg): Insert __builtin_unreachable
3270 at the end of blocks with no successors.
3272 2012-10-26 Alexander Ivchenko <alexander.ivchenko@intel.com>
3273 Uros Bizjak <ubizjak@gmail.com>
3275 * common/config/i386/i386-common.c
3276 (OPTION_MASK_ISA_FXSR_SET): New.
3277 (OPTION_MASK_ISA_XSAVE_SET): Likewise.
3278 (OPTION_MASK_ISA_XSAVEOPT_SET): Likewise.
3279 (ix86_handle_option): Handle mfxsr, mxsave, mxsaveopt options.
3280 * config.gcc (i[34567]86-*-*): Add fxsrintrin.h,
3281 xsaveintrin.h, xsaveoptintrin.h.
3282 (x86_64-*-*): Likewise.
3283 * config/i386/fxsrintrin.h: New header.
3284 * config/i386/xsaveintrin.h: Likewise.
3285 * config/i386/xsaveoptintrin.h: Likewise.
3286 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3287 FXSR/XSAVE/XSAVEOPT support.
3288 * config/i386/i386-builtin-types.def
3289 (VOID_FTYPE_PVOID_INT64): New function type.
3290 * config/i386/i386-c.c: Define __FXSR__, __XSAVE__
3291 and __XSAVEOPT__ if needed.
3292 * config/i386/i386.c (ix86_target_string): Define -mfxsr,
3293 -mxsave and -mxsaveopt options.
3295 (PTA_XSAVE): Likewise.
3296 (PTA_XSAVEOPT): Likewise.
3297 (ix86_option_override_internal): Handle new option.
3298 (processor_alias_table): Added PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT.
3299 (ix86_valid_target_attribute_inner_p): Add OPT_mfxsr,
3300 OPT_mxsave, OPT_mxsaveopt.
3301 (ix86_builtins): Add IX86_BUILTIN_FXSAVE, IX86_BUILTIN_FXRSTOR,
3302 IX86_BUILTIN_FXSAVE64, IX86_BUILTIN_XSAVE, IX86_BUILTIN_XSAVE64,
3303 IX86_BUILTIN_XRSTOR, IX86_BUILTIN_XRSTOR64, IX86_BUILTIN_XSAVEOPT,
3304 IX86_BUILTIN_XSAVEOPT64.
3305 (ix86_expand_builtin): Handle these built-ins.
3306 * config/i386/i386.h (TARGET_FXSR): New.
3307 (TARGET_XSAVE): Likewise.
3308 (TARGET_XSAVEOPT): Likewise.
3309 * config/i386/i386.md (ANY_XSAVE): New int iterator.
3310 (ANY_XSAVE64): Likewise.
3311 (xsave): New int attribute.
3312 (fxsave): New instruction.
3313 (fxsave64): Likewise.
3314 (fxrstor): Likewise.
3315 (fxrstor64): Likewise.
3316 (<xsave>): Likewise.
3317 (<xsave>_rex64): Likewise.
3319 (xrstor_rex64): Likewise.
3320 (xrstor64): Likewise.
3321 * config/i386/i386.opt (mfxsr): New.
3323 (mxsaveopt): Likewise.
3324 * config/i386/x86intrin.h: Include
3325 xsaveintrin.h, fxsrintrin.h, xsaveoptintrin.h.
3327 2012-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
3329 * config/avr/t-rtems: Revert previous commit.
3331 2012-10-26 Richard Sandiford <rdsandiford@googlemail.com>
3334 * Makefile.in (rtlanal.o): Add dependency on addresses.h.
3335 * rtl.h (address_info): New structure.
3336 (strip_address_mutations, decompose_address, decompose_lea_address)
3337 (decompose_mem_address, update_address, get_index_scale)
3338 (get_index_code): Declare.
3339 * rtlanal.c: Include addresses.h.
3340 (strip_address_mutations, must_be_base_p, must_be_index_p)
3341 (set_address_segment, set_address_base, set_address_index)
3342 (set_address_disp, decompose_incdec_address, decompose_automod_address)
3343 (extract_plus_operands, baseness, decompose_normal_address)
3344 (decompose_address, decompose_lea_address, decompose_mem_address)
3345 (update_address, get_index_scale, get_index_code): New functions.
3346 * lra-constraints.c (strip_subreg): New function.
3347 (address, extract_loc_address_regs, extract_address_regs)
3348 (get_index_scale): Delete.
3349 (process_addr_reg): Apply strip_subreg to the location.
3350 (uses_hard_regs_p): Use decompose_mem_address.
3351 (valid_address_p, base_plus_disp_to_reg, can_add_disp_p)
3352 (equiv_address_substitution): Take an address_info rather
3353 than an address. Remove other arguments. Avoid using Pmode.
3354 (process_address): Use decompose_mem_address and decompose_lea_address.
3355 Update calls to above functions.
3357 2012-10-26 Richard Sandiford <rdsandiford@googlemail.com>
3359 * lra-constraints.c (process_address): Tighten arguments to
3360 base_reg_class. Use simplify_gen_binary to generate PLUS rtxes.
3362 2012-10-26 Richard Sandiford <rdsandiford@googlemail.com>
3364 * lra-constraints.c (get_index_scale, can_add_disp_p): New functions.
3365 (equiv_address_substitution): Use them.
3367 2012-10-26 Richard Sandiford <rdsandiford@googlemail.com>
3369 * lra-constraints.c (valid_address_p): New function, split out from...
3370 (process_address): ...here.
3372 2012-10-26 Richard Sandiford <rdsandiford@googlemail.com>
3374 * lra-constraints.c (process_address): Describe the kinds of address
3377 2012-10-25 Vladimir Makarov <vmakarov@redhat.com>
3379 * lra-int.h (lra_assert): Redefine it gcc_checking_assert.
3380 * lra-constraints.c (check_and_process_move): Remove #if
3381 ENABLE_ASSERT_CHECKING.
3383 2012-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
3385 * config/avr/rtems.h (TARGET_OS_CPP_BUILTINS): Remove
3387 * config/avr/t-rtems (LIB1ASMFUNCS): Filter out _exit.
3389 2012-10-25 David S. Miller <davem@davemloft.net>
3391 * config/sparc/constraints.md ("U"): Delete.
3392 * config/sparc/sparc.md: Use 'r' constraint instead of 'U'.
3393 * config/sparc/sync.md: Likewise.
3395 2012-10-25 Lawrence Crowl <crowl@google.com>
3397 * hash-table.h: Add usage documentation.
3398 (template struct typed_free_remove): Clarify documentation.
3399 Rename template parameter.
3400 (struct typed_noop_remove): Likewise.
3401 (descriptor concept): Change typedef T to value_type.
3402 Add typedef compare_type. Use more precise template parameter name,
3403 Descriptor instead of Descr. Update users to match.
3404 (struct hash_table): Change 'find' parameters to use compare_type
3405 instead of the value type.
3407 2012-10-25 Jan Hubicka <jh@suse.cz>
3409 * ipa-cp.c (ipcp_discover_new_direct_edges): If something was turned
3410 to direct call update the summary.
3411 * ipa-inline-transform.c (inline_call): Sanity check that summaries
3412 match the predicted effect; fix updating of summary after edge
3414 * ipa-inline-analysis.c (inline_node_duplication_hook): Do not try
3415 to update the summary and recompute it instead.
3416 (estimate_function_body_sizes): Fix self size estimation; double
3417 check that it agrees with inline_update_overall_summary.
3418 (estimate_edge_size_and_time): Handle devirtualizaiton costs.
3419 (estimate_edge_devirt_benefit): Update to be called from
3420 estimate_edge_size_and_time.
3421 (estimate_calls_size_and_time): Update.
3422 (estimate_node_size_and_time): Watch overflows.
3423 (inline_merge_summary): Likewise.
3424 * ipa-prob.c: Include ipa-inline.h
3425 (ipa_make_edge_direct_to_target): After redirection update the summary.
3427 2012-10-25 Cary Coutant <ccoutant@google.com>
3430 * dwarf2out.c (prune_unused_types_prune): Check whether DIE is
3431 already a declaration.
3433 2012-10-25 Vladimir Makarov <vmakarov@redhat.com>
3435 * lra-assigns.c (assign_by_spills): Add non-reload pseudos
3436 assigned to hard register to changed_pseudo_bitmap.
3438 2012-10-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3440 * config.gcc (microblaze*-*-rtems*): New target.
3441 * config/microblaze/rtems.h: New.
3442 * config/microblaze/t-rtems: New.
3444 2012-10-25 Jan Hubicka <jh@suse.cz>
3446 PR tree-optimize/54980
3447 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Fix obvious typo.
3448 (loop_edge_to_cancel): Be sure that the edge is from an conditional
3449 so we can cancel it.
3451 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
3454 * tree.c (signed_or_unsigned_type_for): Handle vectors.
3456 2012-10-25 Jan Hubicka <jh@suse.cz>
3458 * ipa-inline.c (recursive_inlining): Redirect to master
3459 clone before testing profitability.
3461 2012-10-25 Richard Biener <rguenther@suse.de>
3463 PR tree-optimization/54902
3464 * tree-ssa-pre.c (fini_eliminate): Return TODO.
3466 (execute_fre): Likewise.
3467 * tree-ssa-tailmerge.c (tail_merge_optimize): Delete unreachable
3468 blocks before computing dominators.
3470 2012-10-25 Richard Sandiford <rdsandiford@googlemail.com>
3472 * expr.c (emit_block_move_via_loop): Use simplify_gen_binary
3473 rather than gen_rtx_PLUS.
3475 2012-10-24 Vladimir Makarov <vmakarov@redhat.com>
3479 * ira.c (setup_reg_renumber): Fix assert.
3480 * ira-emit.c (emit_move_list): Update equivalences only for LRA.
3482 2012-10-24 Vladimir Makarov <vmakarov@redhat.com>
3485 * lra.c: Rename loc to sloc and loc_t to sloc_t.
3487 2012-10-24 Sharad Singhai <singhai@google.com>
3489 * config/rs6000/rs6000.c (rs6000_density_test): Use dump_enabled_p
3490 instead of dump_kind_p.
3492 2012-10-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
3495 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc):
3496 Use diagnostic_append_note.
3497 * diagnostic.c (diagnostic_build_prefix): Make diagnostic const.
3498 (default_diagnostic_finalizer): Do not destroy prefix here.
3499 (diagnostic_report_diagnostic): Destroy it here.
3500 (diagnostic_append_note): New.
3501 * diagnostic.h (diagnostic_append_note): Declare.
3503 2012-10-24 Vladimir Makarov <vmakarov@redhat.com>
3505 PR rtl-optimization/55055
3506 * lra-spills.c (alter_subregs): New function.
3507 (lra_hard_reg_substitution): Use it.
3509 2012-10-24 Sharad Singhai <singhai@google.com>
3511 * dumpfile.c (dump_enabled_p): Make it inline and move the definition
3513 (dump_kind_p): Deleted. Functionality replaced by dump_enabled_p.
3514 Make alt_dump_file extern.
3515 * dumpfile.h (dump_enabled_p): Move inline definition here.
3516 (dump_kind_p): Delete declaration.
3517 Add extern declaration of alt_dump_file.
3518 * toplev.c: Move dump_file and dump_file_name to dumpfile.c.
3519 * tree-vect-loop-manip.c: Replace all uses of dump_kind_p with
3521 * tree-vectorizer.c: Likewise.
3522 * tree-vect-loop.c: Likewise.
3523 * tree-vect-data-refs.c: Likewise.
3524 * tree-vect-patterns.c: Likewise.
3525 * tree-vect-stmts.c: Likewise.
3526 * tree-vect-slp.c: Likewise.
3528 2012-10-24 Richard Sandiford <rdsandiford@googlemail.com>
3530 * expmed.c (lowpart_bit_field_p): Add missing == 0 check.
3532 2012-10-24 Vladimir Makarov <vmakarov@redhat.com>
3535 * lra-constraints.c (extract_loc_address_regs): Pass top_p for
3536 ZERO_EXTEND operand.
3538 2012-10-24 Vladimir Makarov <vmakarov@redhat.com>
3541 * lra-constraints.c (update_ebb_live_info): Skip
3542 non-NOTE_INSN_BASIC_BLOCK notes.
3544 2012-10-24 Jakub Jelinek <jakub@redhat.com>
3546 PR rtl-optimization/55010
3547 * cse.c (fold_rtx) <RTX_COMPARE>: Call copy_rtx on folded_arg{0,1}
3548 before passing it to simplify_relational_operation.
3551 * gimple.h (is_gimple_sizepos): New inline function.
3552 * gimplify.c (gimplify_one_sizepos): Use it. Remove useless
3553 final assignment to expr variable.
3554 * tree.c (RETURN_TRUE_IF_VAR): Return true also if
3555 !TYPE_SIZES_GIMPLIFIED (type) and _t is going to be gimplified
3556 into a local temporary.
3558 2012-10-23 David S. Miller <davem@davemloft.net>
3560 * config/sparc/constraints.md ("T", "W"): Change
3561 definitions to use define_memory_constraint. Do not match 'reg'.
3562 * config/sparc/sparc.c (memory_ok_for_ldd): Remove all non-MEM
3563 handling code, update comment.
3565 2012-10-23 Ian Lance Taylor <iant@google.com>
3567 * doc/extend.texi (Extended Asm): The '+' constraint does not
3570 2012-10-23 Jeff Law <law@redhat.com>
3572 * tree-ssa-threadedge.c (thread_across_edge): Remove unused
3573 parameter in call to cond_arg_set_in_bb.
3575 * tree-ssa-threadedge.c (cond_arg_set_in_bb): Remove unused
3578 PR tree-optimization/54985
3579 * tree-ssa-threadedge.c (cond_arg_set_in_bb): New function extracted
3580 from thread_across_edge.
3581 (thread_across_edge): Use it in all cases where we might thread
3584 2012-10-23 Vladimir Makarov <vmakarov@redhat.com>
3586 * lra-constraints.c (update_ebb_live_info): Process empty blocks.
3588 2012-10-23 Richard Sandiford <rdsandiford@googlemail.com>
3590 * expmed.c (store_split_bit_field): Update the calls to
3591 extract_fixed_bit_field. In the big-endian case, always
3592 use the mode of OP0 to count the number of significant bits.
3593 (extract_bit_field_1): Remove unit, offset, bitpos and
3594 byte_offset from the outermost scope. Express conditions in terms
3595 of bitnum rather than offset, bitpos and byte_offset. Move the
3596 computation of MODE1 to the block that needs it. Use MODE unless
3597 the TMODE-based mode_for_size calculation succeeds. Split the
3598 plain move cases into two, one for memory accesses and one for
3599 register accesses. Generalize the memory case, freeing it from
3600 the old register-based endian checks. Move the INT_MODE calculation
3601 above the code that needs it. Use simplify_gen_subreg to handle
3602 multiword OP0s. If the field still spans several words, pass it
3603 directly to extract_split_bit_field. Assume after that point
3604 that both targets and register sources fit within a word.
3605 Replace x-prefixed variables with non-prefixed forms.
3606 Compute the bitpos for ext(z)v register operands directly in the
3607 chosen unit size, rather than going through an intermediate
3608 BITS_PER_WORD unit size. Simplify the containment check
3609 used when forcing OP0 into a register. Update the call to
3610 extract_fixed_bit_field.
3611 (extract_fixed_bit_field): Replace the bitpos and offset parameters
3612 with a single bitnum parameter, of the same form as extract_bit_field.
3613 Assume that OP0 contains the full field. Simplify the memory offset
3614 calculation and containment check for volatile bitfields. Make the
3615 offset explicit when volatile bitfields force a misaligned access.
3616 Remove WARNED and fix long lines. Assert that the processed OP0
3617 has an integral mode.
3618 (store_split_bit_field): Update the call to store_fixed_bit_field.
3620 2012-10-23 Richard Sandiford <rdsandiford@googlemail.com>
3622 * expmed.c (lowpart_bit_field_p): New function.
3623 (store_bit_field_1): Remove unit, offset, bitpos and byte_offset
3624 from the outermost scope. Express conditions in terms of bitnum
3625 rather than offset, bitpos and byte_offset. Split the plain move
3626 cases into two, one for memory accesses and one for register accesses.
3627 Allow simplify_gen_subreg to fail rather than calling validate_subreg.
3628 Move the handling of multiword OP0s after the code that coerces VALUE
3629 to an integer mode. Use simplify_gen_subreg for this case and assert
3630 that it succeeds. If the field still spans several words, pass it
3631 directly to store_split_bit_field. Assume after that point that
3632 both sources and register targets fit within a word. Replace
3633 x-prefixed variables with non-prefixed forms. Compute the bitpos
3634 for insv register operands directly in the chosen unit size, rather
3635 than going through an intermediate BITS_PER_WORD unit size.
3636 Update the call to store_fixed_bit_field.
3637 (store_fixed_bit_field): Replace the bitpos and offset parameters
3638 with a single bitnum parameter, of the same form as store_bit_field.
3639 Assume that OP0 contains the full field. Simplify the memory offset
3640 calculation. Assert that the processed OP0 has an integral mode.
3641 (store_split_bit_field): Update the call to store_fixed_bit_field.
3643 2012-10-23 Paul Koning <ni1d@arrl.net>
3646 * dwarf2out.c (prune_unused_types_prune): If pruning a class and
3647 not all its children were marked, add DW_AT_declaration flag.
3649 2012-10-23 Ian Bolton <ian.bolton@arm.com>
3650 James Greenhalgh <james.greenhalgh@arm.com>
3651 Jim MacArthur <jim.macarthur@arm.com>
3652 Marcus Shawcroft <marcus.shawcroft@arm.com>
3653 Nigel Stephens <nigel.stephens@arm.com>
3654 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3655 Richard Earnshaw <rearnsha@arm.com>
3656 Sofiane Naci <sofiane.naci@arm.com>
3657 Stephen Thomas <stephen.thomas@arm.com>
3658 Tejas Belagod <tejas.belagod@arm.com>
3659 Yufeng Zhang <yufeng.zhang@arm.com>
3661 * config.gcc: Add AArch64.
3662 * configure.ac: Add AArch64 TLS support detection.
3663 * configure: Regenerate.
3665 2012-10-23 Ian Bolton <ian.bolton@arm.com>
3666 James Greenhalgh <james.greenhalgh@arm.com>
3667 Jim MacArthur <jim.macarthur@arm.com>
3668 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3669 Marcus Shawcroft <marcus.shawcroft@arm.com>
3670 Nigel Stephens <nigel.stephens@arm.com>
3671 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3672 Richard Earnshaw <rearnsha@arm.com>
3673 Sofiane Naci <sofiane.naci@arm.com>
3674 Stephen Thomas <stephen.thomas@arm.com>
3675 Tejas Belagod <tejas.belagod@arm.com>
3676 Yufeng Zhang <yufeng.zhang@arm.com>
3678 * doc/invoke.texi (AArch64 Options): New.
3679 * doc/md.texi (Machine Constraints): Add AArch64.
3681 2012-10-23 Ian Bolton <ian.bolton@arm.com>
3682 James Greenhalgh <james.greenhalgh@arm.com>
3683 Jim MacArthur <jim.macarthur@arm.com>
3684 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3685 Marcus Shawcroft <marcus.shawcroft@arm.com>
3686 Nigel Stephens <nigel.stephens@arm.com>
3687 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3688 Richard Earnshaw <rearnsha@arm.com>
3689 Sofiane Naci <sofiane.naci@arm.com>
3690 Stephen Thomas <stephen.thomas@arm.com>
3691 Tejas Belagod <tejas.belagod@arm.com>
3692 Yufeng Zhang <yufeng.zhang@arm.com>
3694 * common/config/aarch64/aarch64-common.c: New file.
3695 * config/aarch64/aarch64-arches.def: New file.
3696 * config/aarch64/aarch64-builtins.c: New file.
3697 * config/aarch64/aarch64-cores.def: New file.
3698 * config/aarch64/aarch64-elf-raw.h: New file.
3699 * config/aarch64/aarch64-elf.h: New file.
3700 * config/aarch64/aarch64-generic.md: New file.
3701 * config/aarch64/aarch64-linux.h: New file.
3702 * config/aarch64/aarch64-modes.def: New file.
3703 * config/aarch64/aarch64-option-extensions.def: New file.
3704 * config/aarch64/aarch64-opts.h: New file.
3705 * config/aarch64/aarch64-protos.h: New file.
3706 * config/aarch64/aarch64-simd.md: New file.
3707 * config/aarch64/aarch64-tune.md: New file.
3708 * config/aarch64/aarch64.c: New file.
3709 * config/aarch64/aarch64.h: New file.
3710 * config/aarch64/aarch64.md: New file.
3711 * config/aarch64/aarch64.opt: New file.
3712 * config/aarch64/arm_neon.h: New file.
3713 * config/aarch64/constraints.md: New file.
3714 * config/aarch64/gentune.sh: New file.
3715 * config/aarch64/iterators.md: New file.
3716 * config/aarch64/large.md: New file.
3717 * config/aarch64/predicates.md: New file.
3718 * config/aarch64/small.md: New file.
3719 * config/aarch64/sync.md: New file.
3720 * config/aarch64/t-aarch64-linux: New file.
3721 * config/aarch64/t-aarch64: New file.
3723 2012-10-23 Michael Matz <matz@suse.de>
3725 * tree-ssa-operands.h (struct def_optype_d, def_optype_p): Remove.
3726 (ssa_operands.free_defs): Remove.
3727 (DEF_OP_PTR, DEF_OP): Remove.
3728 (struct ssa_operand_iterator_d): Remove 'defs', add 'flags' members,
3729 rename 'phi_stmt' to 'stmt', 'phi_i' to 'i' and 'num_phi' to 'numops'.
3730 * gimple.h (gimple_statement_with_ops.def_ops): Remove.
3731 (gimple_def_ops, gimple_set_def_ops): Remove.
3732 (gimple_vdef_op): Don't take const gimple, adjust.
3733 (gimple_asm_input_op, gimple_asm_input_op_ptr,
3734 gimple_asm_set_input_op, gimple_asm_output_op,
3735 gimple_asm_output_op_ptr, gimple_asm_set_output_op): Adjust asserts,
3736 and rewrite to move def operands to front.
3737 (gimple_asm_clobber_op, gimple_asm_set_clobber_op,
3738 gimple_asm_label_op, gimple_asm_set_label_op): Correct asserts.
3739 * tree-ssa-operands.c (build_defs): Remove.
3740 (init_ssa_operands): Don't initialize it.
3741 (fini_ssa_operands): Don't free it.
3742 (cleanup_build_arrays): Don't truncate it.
3743 (finalize_ssa_stmt_operands): Don't assert on it.
3744 (alloc_def, add_def_op, append_def): Remove.
3745 (finalize_ssa_defs): Remove building of def_ops list.
3746 (finalize_ssa_uses): Don't mark for SSA renaming here, ...
3747 (add_stmt_operand): ... but here, don't call append_def.
3748 (get_indirect_ref_operands): Remove recurse_on_base argument.
3749 (get_expr_operands): Adjust call to get_indirect_ref_operands.
3750 (verify_ssa_operands): Don't check def operands.
3751 (free_stmt_operands): Don't free def operands.
3752 * gimple.c (gimple_copy): Don't clear def operands.
3753 * tree-flow-inline.h (op_iter_next_use): Adjust to explicitely
3755 (op_iter_next_tree, op_iter_next_def): Ditto.
3756 (clear_and_done_ssa_iter): Clear new fields.
3757 (op_iter_init): Adjust to setup new iterator structure.
3758 (op_iter_init_phiuse): Adjust.
3760 2012-10-23 Greta Yorsh <Greta.Yorsh@arm.com>
3762 * config/arm/arm.c (offset_ok_for_ldrd_strd): Return false for Thumb1.
3764 2012-10-23 Vladimir Makarov <vmakarov@redhat.com>
3766 * dbxout.c (dbxout_symbol_location): Pass new argument to alter_subreg.
3767 * dwarf2out.c: Include ira.h and lra.h.
3768 (based_loc_descr, compute_frame_pointer_to_fb_displacement): Use
3769 lra_eliminate_regs for LRA instead of eliminate_regs.
3770 * expr.c (emit_move_insn_1): Pass an additional argument to
3771 emit_move_via_integer. Use emit_move_via_integer for LRA only if
3772 the insn is recognized.
3773 * emit-rtl.c (gen_rtx_REG): Add lra_in_progress.
3774 (validate_subreg): Don't check offset for LRA and floating point modes.
3775 * final.c (final_scan_insn, cleanup_subreg_operands): Pass new
3776 argument to alter_subreg.
3777 (walk_alter_subreg, output_operand): Ditto.
3778 (alter_subreg): Add new argument.
3779 * gcse.c (calculate_bb_reg_pressure): Add parameter to
3780 ira_setup_eliminable_regset call.
3781 * ira.c: Include lra.h.
3782 (ira_init_once, ira_init, ira_finish_once): Call lra_start_once,
3783 lra_init, lra_finish_once in anyway.
3784 (ira_setup_eliminable_regset): Add parameter. Remove need_fp.
3785 Call lra_init_elimination and mark HARD_FRAME_POINTER_REGNUM as
3786 living forever if frame_pointer_needed.
3787 (setup_reg_class_relations): Set up ira_reg_class_subset.
3788 (ira_reg_equiv_invariant_p, ira_reg_equiv_const): Remove.
3789 (find_reg_equiv_invariant_const): Ditto.
3790 (setup_reg_renumber): Use ira_equiv_no_lvalue_p instead of
3791 ira_reg_equiv_invariant_p. Skip caps for LRA.
3792 (setup_reg_equiv_init, ira_update_equiv_info_by_shuffle_insn): New
3794 (ira_reg_equiv_len, ira_reg_equiv): New externals.
3795 (ira_reg_equiv): New.
3796 (ira_expand_reg_equiv, init_reg_equiv, finish_reg_equiv): New
3798 (no_equiv, update_equiv_regs): Use ira_reg_equiv instead of
3800 (setup_reg_equiv): New function.
3801 (ira_use_lra_p): New global.
3802 (ira): Set up lra_simple_p and ira_conflicts_p. Set up and
3803 restore flag_caller_saves and flag_ira_region. Move
3804 initialization of ira_obstack and ira_bitmap_obstack upper. Call
3805 init_reg_equiv, setup_reg_equiv, and setup_reg_equiv_init instead
3806 of initialization of ira_reg_equiv_len, ira_reg_equiv_invariant_p,
3807 and ira_reg_equiv_const. Call ira_setup_eliminable_regset with a
3808 new argument. Don't flatten IRA IRA for LRA. Don't reassign
3809 conflict allocnos for LRA. Call finish_reg_equiv.
3810 (do_reload): Prepare code for LRA call. Call LRA.
3811 * ira.h (ira_use_lra_p): New external.
3812 (struct target_ira): Add members x_ira_class_subset_p
3813 x_ira_reg_class_subset, and x_ira_reg_classes_intersect_p.
3814 (ira_class_subset_p, ira_reg_class_subset): New macros.
3815 (ira_reg_classes_intersect_p): New macro.
3816 (struct ira_reg_equiv): New.
3817 (ira_setup_eliminable_regset): Add an argument.
3818 (ira_expand_reg_equiv, ira_update_equiv_info_by_shuffle_insn): New
3820 * ira-color.c (color_pass, move_spill_restore, coalesce_allocnos):
3821 Use ira_equiv_no_lvalue_p.
3822 (coalesce_spill_slots, ira_sort_regnos_for_alter_reg): Ditto.
3823 * ira-emit.c (ira_create_new_reg): Call ira_expand_reg_equiv.
3824 (generate_edge_moves, change_loop) Use ira_equiv_no_lvalue_p.
3825 (emit_move_list): Simplify code. Call
3826 ira_update_equiv_info_by_shuffle_insn. Use ira_reg_equiv instead
3827 of ira_reg_equiv_invariant_p and ira_reg_equiv_const. Change assert.
3828 * ira-int.h (struct target_ira_int): Remove x_ira_class_subset_p
3829 and x_ira_reg_classes_intersect_p.
3830 (ira_class_subset_p, ira_reg_classes_intersect_p): Remove.
3831 (ira_reg_equiv_len, ira_reg_equiv_invariant_p): Ditto.
3832 (ira_reg_equiv_const): Ditto.
3833 (ira_equiv_no_lvalue_p): New function.
3834 * jump.c (true_regnum): Always use hard_regno for subreg_get_info
3835 when lra is in progress.
3836 * haifa-sched.c (sched_init): Pass new argument to
3837 ira_setup_eliminable_regset.
3838 * loop-invariant.c (calculate_loop_reg_pressure): Pass new
3839 argument to ira_setup_eliminable_regset.
3843 * lra-assigns.c: Ditto.
3844 * lra-constraints.c: Ditto.
3845 * lra-coalesce.c: Ditto.
3846 * lra-eliminations.c: Ditto.
3847 * lra-lives.c: Ditto.
3848 * lra-spills.c: Ditto.
3849 * Makefile.in (LRA_INT_H): New.
3850 (OBJS): Add lra.o, lra-assigns.o, lra-coalesce.o, lra-constraints.o,
3851 lra-eliminations.o, lra-lives.o, and lra-spills.o.
3852 (dwarf2out.o): Add dependence on ira.h and lra.h.
3853 (ira.o): Add dependence on lra.h.
3854 (lra.o, lra-assigns.o, lra-coalesce.o, lra-constraints.o): New entries.
3855 (lra-eliminations.o, lra-lives.o, lra-spills.o): Ditto.
3856 * output.h (alter_subreg): Add new argument.
3857 * rtlanal.c (simplify_subreg_regno): Permit mode changes for LRA.
3858 Permit ARG_POINTER_REGNUM and STACK_POINTER_REGNUM for LRA.
3859 * recog.c (general_operand, register_operand): Accept paradoxical
3860 FLOAT_MODE subregs for LRA.
3861 (scratch_operand): Accept pseudos for LRA.
3862 * rtl.h (lra_in_progress): New external.
3863 (debug_bb_n_slim, debug_bb_slim, print_value_slim): New prototypes.
3864 (debug_rtl_slim, debug_insn_slim): Ditto.
3865 * sdbout.c (sdbout_symbol): Pass new argument to alter_subreg.
3866 * sched-vis.c (print_value_slim): New.
3867 * target.def (lra_p): New hook.
3868 (register_priority): Ditto.
3869 (different_addr_displacement_p): Ditto.
3870 (spill_class): Ditto.
3871 * target-globals.h (this_target_lra_int): New external.
3872 (target_globals): New member lra_int.
3873 (restore_target_globals): Restore this_target_lra_int.
3874 * target-globals.c: Include lra-int.h.
3875 (default_target_globals): Add &default_target_lra_int.
3876 * targhooks.c (default_lra_p): New function.
3877 (default_register_priority): Ditto.
3878 (default_different_addr_displacement_p): Ditto.
3879 * targhooks.h (default_lra_p): Declare.
3880 (default_register_priority): Ditto.
3881 (default_different_addr_displacement_p): Ditto.
3882 * timevar.def (TV_LRA, TV_LRA_ELIMINATE, TV_LRA_INHERITANCE): New.
3883 (TV_LRA_CREATE_LIVE_RANGES, TV_LRA_ASSIGN, TV_LRA_COALESCE): New.
3884 * config/arm/arm.c (load_multiple_sequence): Pass new argument to
3886 (store_multiple_sequence): Ditto.
3887 * config/i386/i386.h (enum ix86_tune_indices): Add
3888 X86_TUNE_GENERAL_REGS_SSE_SPILL.
3889 (TARGET_GENERAL_REGS_SSE_SPILL): New macro.
3890 * config/i386/i386.c (initial_ix86_tune_features): Set up
3891 X86_TUNE_GENERAL_REGS_SSE_SPILL for m_COREI7 and m_CORE2I7.
3892 (ix86_lra_p, ix86_register_priority): New functions.
3893 (ix86_secondary_reload): Add NON_Q_REGS, SIREG, DIREG.
3894 (inline_secondary_memory_needed): Change assert.
3895 (ix86_spill_class): New function.
3896 (TARGET_LRA_P, TARGET_REGISTER_BANK, TARGET_SPILL_CLASS): New macros.
3897 * config/m68k/m68k.c (emit_move_sequence): Pass new argument to
3899 * config/m32r/m32r.c (gen_split_move_double): Ditto.
3900 * config/pa/pa.c (pa_emit_move_sequence): Ditto.
3901 * config/sh/sh.md: Ditto.
3902 * config/v850/v850.c (v850_reorg): Ditto.
3903 * config/xtensa/xtensa.c (fixup_subreg_mem): Ditto.
3904 * doc/md.texi: Add new interpretation of hint * for LRA.
3905 * doc/passes.texi: Describe LRA pass.
3906 * doc/tm.texi.in: Add TARGET_LRA_P, TARGET_REGISTER_PRIORITY,
3907 TARGET_DIFFERENT_ADDR_DISPLACEMENT_P, and TARGET_SPILL_CLASS.
3908 * doc/tm.texi: Update.
3910 2012-10-23 Jan Hubicka <jh@suse.cz>
3912 * loop-unroll.c (decide_peel_simple): Simple peeling makes sense even
3913 with simple loops; bound number of branches only when FDO is not
3915 (decide_unroll_stupid): Mention that num_loop_branches heuristics
3918 2012-10-23 Nick Clifton <nickc@redhat.com>
3921 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Suppress
3922 compile time warning about pointer printing.
3924 2012-10-23 Joseph Myers <joseph@codesourcery.com>
3926 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
3927 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu): Use
3928 glibc-c.o in c_target_objs and cxx_target_objs. Use t-glibc in
3929 tmake_file. Set target_has_targetcm.
3930 (tilegx-*-linux*, tilepro-*-linux*): Append to c_target_objs and
3931 cxx_target_objs rather than overriding previous value.
3932 * config/glibc-c.c, config/t-glibc: New.
3933 * doc/tm.texi.in (TARGET_C_PREINCLUDE): New @hook.
3934 * doc/tm.texi: Regenerate.
3935 * hooks.c (hook_constcharptr_void_null): New.
3936 * hooks.h (hook_constcharptr_void_null): Declare.
3938 2012-10-23 Eric Botcazou <ebotcazou@adacore.com>
3940 * config/mips/linux-common.h (STACK_CHECK_STATIC_BUILTIN): Define.
3941 (STACK_CHECK_PROTECT): Likewise.
3942 * config/mips/mips.h (MIPS_PROLOGUE_TEMP2_REGNUM): Likewise.
3943 (MIPS_PROLOGUE_TEMP2): Likewise.
3944 * config/mips/mips-protos.h (mips_output_probe_stack_range): Declare.
3945 * config/mips/mips.c: Include common/common-target.h.
3946 (mips_emit_probe_stack_range): New function.
3947 (mips_output_probe_stack_range): Likewise.
3948 (mips_expand_prologue): Invoke mips_emit_probe_stack_range if static
3949 builtin stack checking is enabled.
3950 * config/mips/mips.md (UNSPEC_PROBE_STACK_RANGE): New constant.
3951 (probe_stack_range_<P:mode>): New insn.
3953 2012-10-23 Marc Glisse <marc.glisse@inria.fr>
3955 * tree-ssa-forwprop.c (forward_propagate_into_cond): Handle vectors.
3956 * fold-const.c (fold_relational_const): Handle VECTOR_CST.
3957 * doc/generic.texi (VEC_COND_EXPR): Document current policy.
3959 2012-10-23 Jan Hubicka <jh@suse.cz>
3962 * tree-ssa-loop-niter.c (record_estimate): Do not try to lower
3963 the bound of non-is_exit statements.
3964 (maybe_lower_iteration_bound): Do it here.
3965 (estimate_numbers_of_iterations_loop): Call it.
3967 2012-10-23 Jan Hubicka <jh@suse.cz>
3970 * cfgloopmanip.c (fix_bb_placements): Add loop_closed_ssa_invalidated;
3971 track basic blocks that moved out of their loops.
3973 (remove_path): Update.
3974 (fix_loop_placements): Update.
3975 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add
3976 loop_closed_ssa_invalidated parameter; pass it around.
3977 (canonicalize_loop_induction_variables): Update loop closed
3979 (tree_unroll_loops_completely): Likewise; do irred update out of
3980 the outer loop; verify that SSA form is closed.
3981 * cfgloop.h (unrloop): Update.
3983 2012-10-23 Terry Guo <terry.guo@arm.com>
3986 * config/arm/arm.c (thumb1_expand_prologue): Don't push high regs with
3989 2012-10-23 Hans-Peter Nilsson <hp@bitrange.com>
3993 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
3994 expand_builtin_setjmp_receiver.
3995 (expand_label): Adjust, call expand_builtin_setjmp_receiver
3996 with NULL for the label parameter.
3997 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
3998 the frame-pointer. Adjust comments.
3999 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
4000 only if LABEL is non-NULL.
4002 2012-10-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4004 PR tree-optimization/55008
4005 * gimple-ssa-strength-reduction.c (find_basis_for_candidate):
4006 Don't allow a candidate to be a basis for itself under another
4009 2012-10-22 Sharad Singhai <singhai@google.com>
4011 * dumpfile.c (dump_phase_enabled_p): Renamed dump_enabled_p. Update
4013 (dump_enabled_p): A new function to check if any of the dump files
4015 (dump_kind_p): Remove check for current_function_decl. Add check for
4016 dumpfile and alt_dump_file.
4017 * dumpfile.h: Add declaration of dump_enabled_p.
4019 2012-10-22 Richard Biener <rguenther@suse.de>
4022 * tree-streamer-in.c (unpack_ts_int_cst_value_fields): Remove
4025 2012-10-22 Uros Bizjak <ubizjak@gmail.com>
4027 * config/i386/i386.c (memory_address_length): Assert that non-null
4028 base or index RTXes are registers. Do not check for REG RTXes.
4029 Determine addr32 prefix using SImode_address_operand or
4030 from original base and index RTXes. Simplify code.
4032 2012-10-22 Richard Biener <rguenther@suse.de>
4034 PR tree-optimization/55011
4035 * tree-vrp.c (update_value_range): For invalid lattice transitions
4038 2012-10-22 Julian Brown <julian@codesourcery.com>
4040 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Avoid subreg'ing
4041 VFP D registers in big-endian mode.
4043 2012-10-22 Georg-Johann Lay <avr@gjlay.de>
4045 * doc/invoke.texi (AVR Options): Document __AVR_ARCH__.
4046 Note __AVR_<device>__ is not defined for cores.
4047 Don't point to --help=target.
4049 2012-10-22 Sameera Deshpande <sameera.deshpande@arm.com>
4050 Greta Yorsh <Greta.Yorsh@arm.com>
4052 * config/arm/arm.c (thumb2_emit_ldrd_pop): New function.
4053 (arm_expand_epilogue): Use the new function.
4055 2012-10-22 Sameera Deshpande <sameera.deshpande@arm.com>
4056 Greta Yorsh <Greta.Yorsh@arm.com>
4058 * config/arm/arm.c (thumb2_emit_strd_push): New function.
4059 (arm_expand_prologue): Use the new function.
4061 2012-10-22 Sameera Deshpande <sameera.deshpande@arm.com>
4062 Greta Yorsh <Greta.Yorsh@arm.com>
4064 * config/arm/arm-protos.h (offset_ok_for_ldrd_strd): New declaration.
4065 (operands_ok_ldrd_strd): Likewise.
4066 * config/arm/arm.c (offset_ok_for_ldrd_strd): New function.
4067 (operands_ok_ldrd_strd): Likewise.
4068 * config/arm/arm.md (thumb2_ldrd, thumb2_ldrd_base): New patterns.
4069 (thumb2_ldrd_base_neg): Likewise.
4070 (thumb2_strd, thumb2_strd_base, thumb_strd_base_neg): Likewise.
4071 * predicates.md (ldrd_strd_offset_operand): New predicate.
4072 * config/arm/constraints.md (Do): New constraint.
4074 2012-10-22 Hans-Peter Nilsson <hp@bitrange.com>
4076 * config/mmix/mmix.md ("nonlocal_goto_receiver"): Refer to the
4077 frame-pointer as an operand.
4078 ("*nonlocal_goto_receiver_expanded"): Ditto. Use
4079 mmix_output_register_setting instead of naked output_asm_insn for
4080 the offset from the frame-pointer to the saved rO.
4081 * config/mmix/mmix.c (mmix_output_register_setting): Emit NEGU for
4083 * config/mmix/predicates.md ("frame_pointer_operand"): New.
4084 * config/mmix/constraints.md ("Yf"): New.
4086 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
4087 expand_builtin_setjmp_receiver.
4088 (expand_label): Adjust, call expand_builtin_setjmp_receiver
4089 with NULL for the label parameter.
4090 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
4091 the frame-pointer. Adjust comments.
4092 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
4093 only if LABEL is non-NULL.
4095 2012-10-21 Uros Bizjak <ubizjak@gmail.com>
4097 * config/i386/i386-protos.h (memory_address_length): Add new bool
4098 argument. Update all uses.
4099 * config/i386/i386.c (memory_address_length): If not LEA insn, then
4100 add length of addr32 prefix based on mode of base or index register.
4101 (ix86_attr_length_address_default) <TYPE_LEA>: Do not handle SImode
4102 addresses here. Update call to memory_address_length.
4103 (ix86_print_address_operand): Use SImode_address_operand predicate.
4104 * config/i386/predicates.md (SImode_address_operand): New.
4105 * config/i386/i386.md (lea<mode>): Use SImode_address_operand
4106 to calculate "mode" attribute. Use SImode_address_operand predicate
4107 instead of open-coding accepted RTX codes.
4109 2012-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
4111 * rtl.def (ADDR_DIFF_VEC): Fix comment typo.
4113 2012-10-21 Eric Botcazou <ebotcazou@adacore.com>
4115 PR rtl-optimization/44194
4116 * calls.c (expand_call): Allow sibling calls in the PARALLEL case.
4118 2012-10-21 Tobias Burnus <burnus@net-b.de>
4121 * Makefile.in (TARGET_SYSTEM_ROOT_DEFINE): New.
4123 2012-10-21 Chung-Lin Tang <cltang@codesourcery.com>
4125 * config/xtensa/xtensa.c (xtensa_expand_builtin): Remove unused 'arg'
4128 2012-10-20 Eric Botcazou <ebotcazou@adacore.com>
4130 PR rtl-optimization/54315
4131 * calls.c (expand_call): Don't deal specifically with BLKmode values
4132 returned in naked registers.
4133 * expr.h (copy_blkmode_from_reg): Adjust prototype.
4134 * expr.c (copy_blkmode_from_reg): Rename first parameter into
4135 TARGET and make it required. Assert that SRCREG hasn't BLKmode.
4136 Add a couple of short-circuits for common cases and be prepared
4137 for sub-word registers.
4138 (expand_assignment): Call copy_blkmode_from_reg for BLKmode values
4139 returned in naked registers.
4140 (store_expr): Likewise.
4141 (store_field): Likewise.
4143 2012-10-20 Jan Hubicka <jh@suse.cz>
4145 * loop-unroll.c (decide_unroll_constant_iterations): Don't
4146 perform unrolling for loops with low iterations bounds or estimates.
4148 2012-10-20 Jan Hubicka <jh@suse.cz>
4150 * loop-iv.c (iv_number_of_iterations): Record the upper bound
4151 only if there are no further conditions on it.
4153 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4157 * opts.c (finish_options): Remove explicit handling from here.
4159 2012-10-20 Joern Rennecke <joern.rennecke@embecosm.com>
4160 Richard Sandiford <rdsandiford@googlemail.com>
4162 * emit-rtl.c (copy_delay_slot_insn): New function.
4163 * emit-rtl.h (copy_delay_slot_insn): Declare.
4164 * reorg.c: Include "emit-rtl.h".
4165 (steal_delay_list_from_target): Use copy_delay_slot_insn.
4166 (fill_slots_from_thread, fill_simple_delay_slots): Likewise.
4168 * final.c (shorten_branches): When optimizing, start with small
4169 length and increase from there, and don't decrease lengths.
4171 2012-10-19 Jan Hubicka <jh@suse.cz>
4173 * builtins.def (BUILT_IN_UNREACHABLE): Make
4174 ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST.
4175 * builtin-attrs.def (ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST): Define.
4177 2012-10-19 Michael Meissner <meissner@linux.vnet.ibm.com>
4178 Dominique Dhumieres <dominiq@lps.ens.fr>
4180 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Don't assume
4181 OPTION_MASK_STRICT_ALIGN is defined.
4182 (MASK_STRICT_ALIGN): If OPTION_MASK_STRICT_ALIGN is not defined,
4183 define this to 0 for the 3 ports that use it.
4185 * config/rs6000/rs6000.c (OPTION_MASK_STRICT_ALIGN): Don't do
4186 check for ports not having -mstrict-align here, move test to
4188 (MASK_STRICT_ALIGN): Likewise.
4189 (rs6000_debug_reg_global): Print out correct target flag words if
4192 2012-10-19 Marek Polacek <polacek@redhat.com>
4195 * fold-const.c (fold_sign_changed_comparison): Punt if folding
4196 pointer/non-pointer comparison.
4198 2012-10-19 Greta Yorsh <Greta.Yorsh@arm.com>
4200 * doc/sourcebuild.texi (Effective-Target Keywords): Document
4201 new effective target keyword arm_prefer_ldrd_strd.
4203 2012-10-19 Richard Guenther <rguenther@suse.de>
4205 PR tree-optimization/54981
4206 * tree-loop-distribution.c (ssa_name_has_uses_outside_loop_p):
4207 Do not consider debug stmts as uses.
4209 2012-10-19 Richard Biener <rguenther@suse.de>
4211 PR tree-optimization/54976
4212 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
4213 Robustify against odd inner_mode inputs.
4215 2012-10-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4218 * config/arm/arm.c (arm_expand_compare_and_swap): Use SImode to make
4219 sure the mode is correct when falling through from above cases.
4221 2012-10-19 Bin Cheng <bin.cheng@arm.com>
4223 * common.opt (flag_ira_hoist_pressure): New.
4224 * doc/invoke.texi (-fira-hoist-pressure): Describe.
4225 * ira-costs.c (ira_set_pseudo_classes): New parameter.
4226 * ira.h: Update copyright dates.
4227 (ira_set_pseudo_classes): Update prototype.
4228 * haifa-sched.c (sched_init): Update call.
4229 * ira.c (ira): Update call.
4230 * regmove.c: Update copyright dates.
4231 (regmove_optimize): Update call.
4232 * loop-invariant.c: Update copyright dates.
4233 (move_loop_invariants): Update call.
4234 * gcse.c: (struct bb_data): New structure.
4235 (BB_DATA): New macro.
4236 (curr_bb, curr_reg_pressure): New static variables.
4237 (should_hoist_expr_to_dom): Rename from hoist_expr_reaches_here_p.
4238 Change parameter expr_index to expr.
4239 New parameters pressure_class, nregs and hoisted_bbs.
4240 Use reg pressure to determine the distance expr can be hoisted.
4241 (hoist_code): Use reg pressure to direct the hoist process.
4242 (get_regno_pressure_class, get_pressure_class_and_nregs)
4243 (change_pressure, calculate_bb_reg_pressure): New.
4244 (one_code_hoisting_pass): Calculate register pressure. Allocate
4247 2012-10-19 Bin Cheng <bin.cheng@arm.com>
4249 * gcse.c: Update copyright dates.
4250 (hoist_expr_reaches_here_p): Change parameter type from char *
4253 2012-10-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
4256 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*): Rename
4257 "arm*-*-rtemseabi*" to "arm*-*-rtems*".
4259 2012-10-19 Alan Modra <amodra@gmail.com>
4261 * configure.ac (HAVE_LD_NO_DOT_SYMS): Set if using gold.
4262 (HAVE_LD_LARGE_TOC): Likewise.
4263 * configure: Regenerate.
4265 2012-10-19 Alan Modra <amodra@gmail.com>
4267 * config/rs6000/predicates.md (splat_input_operand): Don't call
4268 input_operand for MEMs. Instead check for volatile and call
4269 memory_address_addr_space_p with modified mode.
4271 2012-10-18 Uros Bizjak <ubizjak@gmail.com>
4273 * config/i386/i386.md (rdpmc): Remove expander.
4276 (rdpmc): Rename from *rdpmc.
4277 (rdpmc_rex64): Rename from *rdpmc_rex64.
4278 (rdtsc): Rename from *rdtsc.
4279 (rdtsc_rex64): Rename from *rdtsc_rex64.
4280 (rdtscp): Rename from *rdtscp.
4281 (rdtscp_rex64): Rename from *rdtscp_rex64.
4283 * config/i386/i386.c (struct builtin_description bdesc_special_args)
4284 <IX86_BUILTIN_RDTSC>: Use CODE_FOR_NOTHING.
4285 <IX86_BUILTIN_RDTSCP>: Ditto.
4286 (struct builtin_description bdesc__args) <IX86_BUILTIN_RDPMC>: Ditto.
4287 (ix86_expand_builtin) <IX86_BUILTIN_{RDPMC,RDTSC,RDTSCP}>: Handle here.
4289 2012-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4291 * config/sh/sh.c: Fix comment to silence warning.
4293 2012-10-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4294 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4295 Sameera Deshpande <sameera.deshpande@arm.com>
4297 * config/arm/cortex-a15-neon.md: New file.
4298 * config/arm/cortex-a15.md (cortex_a15_call): Adjust reservation.
4299 (cortex_a15_load1): Likewise.
4300 (cortex_a15_load3): Likewise.
4301 (cortex_a15_store1): Likewise.
4302 (cortex_a15_store3): Likewise.
4303 (cortex-a15-neon.md): Include.
4305 2012-10-18 Segher Boessenkool <segher@kernel.crashing.org>
4307 * config/rs6000/altivec.md (altivec_lvsl, altivec_lvsr): Add mode.
4308 (altivec_vsumsws_nomode): Delete.
4309 (reduc_splus_<mode>, reduc_uplus_<mode>): Call gen_altivec_vsumsws
4310 instead of gen_altivec_vsumsws_nomode.
4311 (altivec_lvlx, altivec_lvlxl, altivec_lvrx, altivec_lvrxl): Add mode.
4312 * config/rs6000/rs6000.md (probe_stack): Rename to...
4313 (probe_stack_<mode>): ... this. Add mode. Change pattern to
4314 use std instead of stw when appropriate.
4315 (probe_stack): New expander.
4316 (move_from_CR_ov_bit): Add mode.
4317 (splitter for compare_plus_ne0_<mode>, splitter for
4318 compare_plus_ne0_<mode>_1): Remove constraints.
4319 * config/rs6000/sync.md (loadsync): Rename to...
4320 (loadsync_<mode>): ... this. Add mode.
4321 (atomic_load<mode>): Adjust.
4323 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
4325 * loop-invariant.c: Include target.h.
4326 (check_dependency): Return false for an uninitialized argument register
4327 that is likely to be spilled.
4328 * Makefile.in (loop-invariant.o): Add $(TARGET_H).
4330 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
4332 * except.c (sjlj_emit_function_enter): Remove unused variable.
4334 2012-10-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4335 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4337 * config/arm/arm.c (neon_builtin_data): Add vfma and vfms builtins.
4338 * config/arm/neon-docgen.ml (intrinsic_groups): Add
4339 fused-multiply-* groups.
4340 * config/neon-gen.ml (print_feature_test_start): New function.
4341 (print_feature_test_end): Likewise.
4342 (print_variant): Print feature test macros.
4343 * config/arm/neon-testgen.ml (emit_prologue): Allow different
4344 tests to require different effective targets.
4345 (effective_target): New function.
4346 (test_intrinsic): Specify correct effective targets.
4347 * config/arm/neon.md (fma<VCVTF:mode>4_intrinsic): New pattern.
4348 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
4349 (neon_vfma<VCVFT:mode>): New expand.
4350 (neon_vfms<VCVFT:mode>): Likewise.
4351 * config/neon.ml (opcode): Add Vfma and Vfms.
4352 (features): Add Requires_feature.
4353 (ops): Add VFMA and VFMS intrinsics.
4354 * config/arm/arm_neon.h: Regenerate.
4355 * doc/arm-neon-intrinsics.texi: Likewise.
4357 2012-10-18 Richard Guenther <rguenther@suse.de>
4359 * lto-streamer.h (enum LTO_tags): Add LTO_integer_cst.
4360 * lto-streamer-in.c (lto_input_tree): Use it.
4361 * lto-streamer-out.c (lto_output_tree): Likewise, for
4362 !TREE_OVERFLOW integer constants only.
4363 * tree-streamer-in.c (unpack_ts_int_cst_value_fields): New function.
4364 (unpack_value_fields): Call it.
4365 (streamer_read_integer_cst): Simplify.
4366 * tree-streamer-out.c (pack_ts_int_cst_value_fields): New function.
4367 (streamer_pack_tree_bitfields): Call it.
4368 (streamer_write_integer_cst): Adjust.
4370 2012-10-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4371 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4373 * config.gcc: Add support for ARMv8 for arm*-*-* targets.
4374 * config/arm/arm-arches.def: Add armv8-a
4375 * config/arm/arm-fpus.def: Add fp-armv8, neon-fp-armv8,
4376 crypto-neon-fp-armv8. Add crypto field.
4377 * config/arm/arm-tables.opt: Regenerate.
4378 * config/arm/arm.c (FL_FOR_ARCH8A): Likewise.
4379 (arm_arch8): New global variable.
4380 (ARM_FPU): Add crypto parameter.
4381 (arm_option_override): Set arm_arch8, update comments.
4382 * config/arm/arm.h (TARGET_CRYPTO): New macro.
4383 (arm_fpu_desc): Add crypto field.
4384 (base_architecture): Add ARMv8 entry.
4385 (arm_arch8): New variable declaration.
4386 * config/arm/bpabi.h: ARMv8 supports BE8.
4387 * doc/invoke.texi: Document ARMv8 options.
4389 2012-10-17 Aldy Hernandez <aldyh@redhat.com>
4392 * trans-mem.c (diagnose_tm_1_op): Allow volatiles inside relaxed
4395 2012-10-17 Aldy Hernandez <aldyh@redhat.com>
4397 PR rtl-optimization/54900
4398 * ifcvt.c (noce_can_store_speculate_p): Call
4399 memory_must_be_modified_in_insn_p.
4400 * alias.c (memory_must_be_modified_in_insn_p): New.
4401 (set_dest_equal_p): New.
4402 * rtl.h (memory_must_be_modified_in_p): Protoize.
4404 2012-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
4406 * config/rs6000/rs6000.opt (rs6000_isa_flags): New flag word to
4407 replace target_flags that gives us 63 possible switches.
4408 (x_rs6000_isa_flags): Save area for rs6000_isa_flags.
4409 (x_rs6000_isa_flags_explicit): Save area for rs6000_isa_flags_explicit.
4410 (rs6000_target_flags_explicit): Delete in favor of
4411 x_rs6000_isa_flags_explicit.
4412 (-mpowerpc64): Change all switches that used to be in target_flags
4413 to now be in rs6000_isa_flags. In using rs6000_isa_flags, the
4414 options machinary will generate names of the form OPITON_<xxx>
4415 instead of TARGET_<xxx> and OPTION_MASK_<xxx> instead of MASK_<xxx>.
4416 (-mpowerpc-gpopt): Likewise.
4417 (-mpowerpc-gfxopt): Likewise.
4418 (-mmfcrf): Likewise.
4419 (-mpopcntb): Likewise.
4420 (-mfprnd): Likewise.
4422 (-mmfpgpr): Likewise.
4423 (-maltivec): Likewise.
4424 (-mhard-dfp): Likewise.
4425 (-mmulhw): Likewise.
4426 (-mdlmzb): Likewise.
4427 (-mmultiple): Likewise.
4428 (-mstring): Likewise.
4429 (-msoft-float): Likewise.
4430 (-mhard-float): Likewise.
4431 (-mpopcntd): Likewise.
4433 (-mno-update): Likewise.
4434 (-mupdate): Likewise.
4435 (-mrecip-precision): Likewise.
4436 (-mminimal-toc): Likewise.
4438 * config/rs6000/aix64.opt (-maix64): Likewise.
4439 (-maix32): Likewise.
4440 * config/rs6000/sysv4.opt (-mstrict-align): Likewise.
4441 (-mrelocatable): Likewise.
4442 (-mlittle-endian): Likewise.
4443 (-mlittle): Likewise.
4444 (-mbig-endian): LIkewise.
4449 * config/rs6000/darwin.opt (-m64): Likewise.
4452 * config/rs6000/rs6000-cpus.def (ISA_2_1_MASKS): Move the various
4453 masks used in rs6000.c here, since they are more logically in this
4454 file. Convert from being enums to just #defines, since the types
4455 of these masks is now HOST_WIDE_INT instead of int. For
4456 POWERPC_MASKS, add MASK_SOFT_FLOAT, since the only use case or'ed
4457 in the mask. Change the use in rs6000.c not to do the OR of
4459 (ISA_2_1_MASKS): Likewise.
4460 (ISA_2_2_MASKS): Likewise.
4461 (ISA_2_4_MASKS): Likewise.
4462 (ISA_2_5_MASKS_EMBEDDED): Likewise.
4463 (ISA_2_5_MASKS_SERVER): Likewise.
4464 (POWERPC_7400_MASK): Likewise.
4465 (POWERPC_MASKS): Likewise.
4466 * config/rs6000/rs6000.c (ISA_2_1_MASKS): Likewise.
4467 (ISA_2_1_MASKS): Likewise.
4468 (ISA_2_2_MASKS): Likewise.
4469 (ISA_2_4_MASKS): Likewise.
4470 (ISA_2_5_MASKS_EMBEDDED): Likewise.
4471 (ISA_2_5_MASKS_SERVER): Likewise.
4472 (POWERPC_7400_MASK): Likewise.
4473 (POWERPC_MASKS): Likewise.
4474 (rs6000_option_override_internal): Likewise.
4476 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Change
4477 all uses of target_flags to rs6000_isa_flags. Change all uses of
4478 target_flags_explicit to rs6000_isa_flags_explicit. Change the
4479 use of MASK_<xxx> to OPTION_MASK_<xxx> that options.h defines when
4480 we use a secondary flags word. Save/restore/print the new flags
4481 word when switching contexts with different target attributes.
4482 (rs6000_option_override_internal): Likewise.
4483 (rs6000_darwin_file_start): Likewise.
4484 (rs6000_opt_masks): Likewise.
4485 (rs6000_inner_target_options): Likewise.
4486 (rs6000_pragma_target_parse): Likewise.
4487 (rs6000_set_current_function): Likewise.
4488 (rs6000_function_specific_save): Likewise.
4489 (rs6000_function_specific_restore): Likewise.
4490 (rs6000_function_specific_print): Likewise.
4491 (rs6000_can_inline_p): Likewise.
4492 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Likewise.
4493 (rs6000_cpu_cpp_builtins): Likewise.
4494 * common/config/rs6000/rs6000-driver.c (rs6000_handle_option):
4497 * config/rs6000/rs6000.h (MASK_ALTIVEC): In moving to using
4498 Var(...) for all of the isa switches, the options machinery now
4499 uses OPTION_MASK_<xxx> instead of MASK_<xxx> for the mask name.
4500 Use #define to map the old name into the new name. For switches
4501 that are defined in aix64.opt, sysv4.opt, and darwin.opt, only do
4502 the definition if those switches were defined.
4503 (MASK_ALTIVEC): Likewise.
4504 (MASK_CMPB): Likewise.
4505 (MASK_DFP): Likewise.
4506 (MASK_DLMZB): Likewise.
4507 (MASK_EABI): Likewise.
4508 (MASK_FPRND): Likewise.
4509 (MASK_HARD_FLOAT): Likewise.
4510 (MASK_ISEL): Likewise.
4511 (MASK_MFCRF): Likewise.
4512 (MASK_MFPGPR): Likewise.
4513 (MASK_MULHW): Likewise.
4514 (MASK_MULTIPLE): Likewise.
4515 (MASK_NO_UPDATE): Likewise.
4516 (MASK_POPCNTB): Likewise.
4517 (MASK_POPCNTD): Likewise.
4518 (MASK_PPC_GFXOPT): Likewise.
4519 (MASK_PPC_GPOPT): Likewise.
4520 (MASK_RECIP_PRECISION): Likewise.
4521 (MASK_SOFT_FLOAT): Likewise.
4522 (MASK_STRICT_ALIGN): Likewise.
4523 (MASK_STRING): Likewise.
4524 (MASK_UPDATE): Likewise.
4525 (MASK_VSX): Likewise.
4526 (MASK_POWERPC64): Likewise.
4527 (MASK_64BIT): Likewise.
4528 (MASK_RELOCATABLE): Likewise.
4529 (MASK_LITTLE_ENDIAN): Likewise.
4530 (MASK_MINIMAL_TOC): Likewise.
4531 (MASK_REGNAMES): Likewise.
4532 (MASK_PROTOTYPE): Likewise.
4533 (rs6000_isa_flags_explicit): Define in terms of the
4534 global_options_set structure.
4536 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS):
4537 Change use of target_flags to rs6000_isa_flags, target_flags_explicit
4538 to rs6000_isa_flags_explicit, and MASK_<xxx> to OPTION_MASK_<xxx>.
4539 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
4540 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
4541 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
4542 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
4543 * config/rs6000/freebsd64.h (RELOCATABLE_NEEDS_FIXUP): Likewise.
4544 (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
4545 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Likewise.
4546 * config/rs6000/linux64.h (RELOCATABLE_NEEDS_FIXUP): Likewise.
4547 (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
4548 (OPTION_LITTLE_ENDIAN): Likewise.
4549 (OPTION_RELOCATABLE): Likewise.
4550 (OPTION_EABI): Likewise.
4551 (OPTION_PROTOTYPE): Likewise.
4552 * config/rs6000/linux.h (RELOCATABLE_NEEDS_FIXUP): Likewise.
4553 * config/rs6000/option-defaults.h (OPTION_MASK_64BIT): Likewise.
4554 (OPT_ARCH32): Likewise.
4555 (OPT_ARCH64): Likewise.
4556 * config/rs6000/sysv4.h (TARGET_TOC): Likewise.
4557 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
4558 (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
4559 (TARGET_OS_SYSV_CPP_BUILTINS): Likewise.
4561 * config/rs6000/t-rs6000 (rs6000.o): Add rs6000-cpus.def as a
4564 2012-10-17 Jan Hubicka <jh@suse.cz>
4566 * cfgloopmanip.c (copy_loop_info): New function.
4567 (duplicate_loop): Use it.
4568 (loop_version): Use it.
4569 * loop-unswitch.c (unswitch_loop): Use it.
4570 * cfgloop.h (copy_loop_info): Declare.
4572 2012-10-17 Jan Hubicka <jh@suse.cz>
4574 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Add edge_to_cancel
4575 parameter and use it to estimate code optimized out in the final
4577 (loop_edge_to_cancel): New function.
4578 (try_unroll_loop_completely): New IRRED_IVALIDATED parameter;
4579 handle unrolling loops with bounds given via max_loop_iteratins;
4580 handle unrolling non-inner loops when code size shrinks;
4581 tidy dump output; when the last iteration loop still stays
4582 as loop in the CFG forcongly redirect the latch to
4583 __builtin_unreachable.
4584 (canonicalize_loop_induction_variables): Add irred_invlaidated
4585 parameter; record niter bound derrived; dump
4586 max_loop_iterations bounds; call try_unroll_loop_completely
4587 even if no niter bound is given.
4588 (canonicalize_induction_variables): Handle irred_invalidated.
4589 (tree_unroll_loops_completely): Handle non-innermost loops;
4590 handle irred_invalidated.
4591 * cfgloop.h (unlop): Declare.
4592 * cfgloopmanip.c (unloop): Export.
4593 * tree.c (build_common_builtin_nodes): Build BULTIN_UNREACHABLE.
4595 2012-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
4597 * opth-gen.awk (TARGET_* generation): Always generate TARGET_<xxx>
4598 for Mask options, whether they use Var(...) or not.
4600 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): Use
4601 TARGET_<xxx> instead of OPTION_<xxx>.
4602 * config/i386/i386.h (TARGET_64BIT): Likewise.
4603 (TARGET_MMX): Likewise.
4604 (TARGET_3DNOW): Likewise.
4605 (TARGET_3DNOW_A): Likewise.
4606 (TARGET_SSE): Likewise.
4607 (TARGET_SSE2): Likewise.
4608 (TARGET_SSE3): Likewise.
4609 (TARGET_SSSE3): Likewise.
4610 (TARGET_SSE4_1): Likewise.
4611 (TARGET_SSE4_2): Likewise.
4612 (TARGET_AVX): Likewise.
4613 (TARGET_AVX2): Likewise.
4614 (TARGET_FMA): Likewise.
4615 (TARGET_SSE4A): Likewise.
4616 (TARGET_FMA4): Likewise.
4617 (TARGET_XOP): Likewise.
4618 (TARGET_LWP): Likewise.
4619 (TARGET_ROUND): Likewise.
4620 (TARGET_ABM): Likewise.
4621 (TARGET_BMI): Likewise.
4622 (TARGET_BMI2): Likewise.
4623 (TARGET_LZCNT): Likewise.
4624 (TARGET_TBM): Likewise.
4625 (TARGET_POPCNT): Likewise.
4626 (TARGET_SAHF): Likewise.
4627 (TARGET_MOVBE): Likewise.
4628 (TARGET_CRC32): Likewise.
4629 (TARGET_AES): Likewise.
4630 (TARGET_PCLMUL): Likewise.
4631 (TARGET_CMPXCHG16B): Likewise.
4632 (TARGET_FSGSBASE): Likewise.
4633 (TARGET_RDRND): Likewise.
4634 (TARGET_F16C): Likewise.
4635 (TARGET_RTM): Likewise.
4636 (TARGET_HLE): Likewise.
4637 (TARGET_RDSEED): Likewise.
4638 (TARGET_PRFCHW): Likewise.
4639 (TARGET_ADX): Likewise.
4640 (TARGET_64BIT): Likewise.
4641 (TARGET_MMX): Likewise.
4642 (TARGET_3DNOW): Likewise.
4643 (TARGET_3DNOW_A): Likewise.
4644 (TARGET_SSE): Likewise.
4645 (TARGET_SSE2): Likewise.
4646 (TARGET_SSE3): Likewise.
4647 (TARGET_SSSE3): Likewise.
4648 (TARGET_SSE4_1): Likewise.
4649 (TARGET_SSE4_2): Likewise.
4650 (TARGET_AVX): Likewise.
4651 (TARGET_AVX2): Likewise.
4652 (TARGET_FMA): Likewise.
4653 (TARGET_SSE4A): Likewise.
4654 (TARGET_FMA4): Likewise.
4655 (TARGET_XOP): Likewise.
4656 (TARGET_LWP): Likewise.
4657 (TARGET_ROUND): Likewise.
4658 (TARGET_ABM): Likewise.
4659 (TARGET_BMI): Likewise.
4660 (TARGET_BMI2): Likewise.
4661 (TARGET_LZCNT): Likewise.
4662 (TARGET_TBM): Likewise.
4663 (TARGET_POPCNT): Likewise.
4664 (TARGET_SAHF): Likewise.
4665 (TARGET_MOVBE): Likewise.
4666 (TARGET_CRC32): Likewise.
4667 (TARGET_AES): Likewise.
4668 (TARGET_PCLMUL): Likewise.
4669 (TARGET_CMPXCHG16B): Likewise.
4670 (TARGET_FSGSBASE): Likewise.
4671 (TARGET_RDRND): Likewise.
4672 (TARGET_F16C): Likewise.
4673 (TARGET_RTM): Likewise.
4674 (TARGET_HLE): Likewise.
4675 (TARGET_RDSEED): Likewise.
4676 (TARGET_PRFCHW): Likewise.
4677 (TARGET_ADX): Likewise.
4678 (TARGET_LP64): Likewise.
4679 (TARGET_X32): Likewise.
4680 (TARGET_ISA_ROUND): Likewise.
4681 * config/i386/darwin.h (TARGET_64BIT): Likewise.
4683 * doc/options.texi (Mask): Update documentation to specify only
4684 TARGET_<xxx> is generated.
4686 2012-10-17 Greta Yorsh <Greta.Yorsh@arm.com>
4688 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): Rename this...
4689 (UNSPEC_REGISTER_USE): ... to this.
4690 (prologue_use): Rename this...
4691 (force_register_use): ... to this and update output assembly.
4692 (epilogue) Rename gen_prologue_use to gen_force_register_use.
4693 * config/arm/arm.c (arm_expand_prologue): Likewise.
4694 (thumb1_expand_epilogue): Likewise.
4695 (arm_expand_epilogue): Likewise.
4696 (arm_expand_epilogue): Likewise.
4698 2012-10-17 Georg-Johann Lay <avr@gjlay.de>
4700 * config/avr/avr-arch.h (avr_extra_arch_macro): Remove prototype.
4701 * config/avr/avr.c (avr_extra_arch_macro): Remove variable.
4702 (avr_option_override): Remove setting of avr_extra_arch_macro.
4703 * config/avr/avr-c.c (avr_extra_arch_macro): Replace with
4704 avr_current_device->macro.
4706 2012-10-17 Richard Biener <rguenther@suse.de>
4708 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
4709 Do not write TREE_CHAIN of PARM_DECLs.
4710 (write_ts_decl_non_common_tree_pointers): Instead stream
4711 the DECL_ARGUMENTS chain.
4712 * tree-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
4713 Do not read TREE_CHAIN of PARM_DECLs.
4714 (lto_input_ts_decl_non_common_tree_pointes): Instead read
4715 the DECL_ARGUMENTS as chain.
4717 2012-10-17 Steven Bosscher <steven@gcc.gnu.org>
4719 * config/iq2000/iq2000.h (call_used_regs): Remove definition.
4721 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
4723 PR rtl-optimization/54870
4724 * tree.h (TREE_ADDRESSABLE): Document special usage on SSA_NAME.
4725 * cfgexpand.c (update_alias_info_with_stack_vars ): Set it on the
4726 SSA_NAME pointer that points to a partition if there is at least
4727 one variable with it set in the partition.
4728 * dse.c (local_variable_can_escape): New predicate.
4729 (can_escape): Call it.
4730 * gimplify.c (mark_addressable): If this is a partitioned decl, also
4731 mark the SSA_NAME pointer that points to a partition.
4733 2012-10-16 Steven Bosscher <steven@gcc.gnu.org>
4735 * df-problems.c (df_kill_notes): Split up in two functions.
4736 (df_remove_dead_and_unused_notes): New function, first half of
4737 df_kill notes to remove all REG_DEAD and REG_UNUSED notes.
4738 (df_remove_dead_eq_notes): New function, second half of df_kill_notes
4739 to remove REG_EQUAL and REG_EQUIV notes referring to dead registers.
4740 (df_note_bb_compute): Call df_remove_dead_and_unused_notes instead
4741 of df_kill_notes. Call df_remove_dead_eq_notes after processing insn.
4743 * web.c (web): Re-add DF_RD_PRUNE_DEAD_DEFS;
4745 2012-10-16 Ian Lance Taylor <iant@google.com>
4747 * doc/extend.texi (Return Address): Change
4748 __builtin_extract_return_address to
4749 __builtin_extract_return_addr.
4751 2012-10-16 Steven Bosscher <steven@gcc.gnu.org>
4753 * rtl.h (get_call_rtx_from): New prototype.
4754 * rtlanal.c (get_call_rtx_from): New function.
4755 * calls.c (emit_call_1): Use it.
4756 * dse.c (scan_insn): Likewise
4757 * dwarf2out.c (dwarf2out_var_location): Likewise.
4758 * sched-deps.c (call_may_noreturn_p): Likewise.
4759 * var-tracking.c (prepare_call_arguments): Likewise.
4760 * config/sh/sh.c (sh_adjust_cost): Likewise.
4762 2012-10-16 Tom de Vries <tom@codesourcery.com>
4764 * expr.c (move_by_pieces, move_by_pieces_ninsns, can_store_by_pieces)
4765 (store_by_pieces_1): Don't enter loop when no more data is left.
4767 2012-10-16 Joern Rennecke <joern.rennecke@embecosm.com>
4769 * loop-doloop.c (doloop_modify): Pass doloop_end pattern to
4771 (doloop_optimize): Pass flag to indicate if loop is entered at top
4773 * config/arm/thumb2.md (doloop_end): Accept extra operand.
4774 * config/bfin/bfin.md (doloop_end): Likewise.
4775 * config/c6x/c6x.md (doloop_end): Likewise.
4776 * config/ia64/ia64.md (doloop_end): Likewise.
4777 * config/mep/mep.md (doloop_begin, doloop_end): Likewise.
4778 * config/rs6000/rs6000.md (doloop_end): Likewise.
4779 * config/s390/s390.md (doloop_end): Likewise.
4780 * config/sh/sh.md (doloop_end): Likewise.
4781 * config/spu/spu.md (doloop_end): Likewise.
4782 * config/tilegx/tilegx.md (doloop_end): Likewise.
4783 * config/tilepro/tilepro.md (doloop_end): Likewise.
4784 * doc/md.texi (doloop_end): Document new operand.
4785 * basic-block.h (contains_no_active_insn_p): Declare.
4786 * cfgrtl.c (contains_no_active_insn_p): New function, factored
4788 (forwarder_block_p): ... here.
4790 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
4794 * doc/options.texi (EnabledBy): Document new form.
4795 * optc-gen.awk: Handle new form of EnabledBy.
4796 * common.opt (Wunused-but-set-parameter): Use EnabledBy.
4797 (Wunused-parameter): Likewise.
4798 * opts.c (finish_options): Do not handle them explicitly.
4799 * opt-functions.awk (search_var_name): New.
4801 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
4805 * optc-gen.awk: Handle new form of LangEnabledBy.
4806 * opts.c (set_Wstrict_aliasing): Declare here. Make static.
4807 * common.opt (Wstrict-aliasing=,Wstrict-overflow=): Do not use Init.
4808 * doc/options.texi (LangEnabledBy): Document new form.
4809 * flags.h (set_Wstrict_aliasing): Do not declare.
4811 2012-10-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4813 * reload.c (find_reloads_subreg_address): Remove FORCE_REPLACE
4814 parameter. Always replace normal subreg with memory reference
4815 whenever possible. Return NULL otherwise.
4816 (find_reloads_toplev): Always call find_reloads_subreg_address
4817 for subregs of registers equivalent to a memory location.
4818 Only recurse further if find_reloads_subreg_address fails.
4819 (find_reloads_address_1): Only call find_reloads_subreg_address
4820 for subregs of registers equivalent to a memory location.
4821 Properly handle failure of find_reloads_subreg_address.
4823 2012-10-16 Jakub Jelinek <jakub@redhat.com>
4826 * rtl.h: Document jump flag on VALUE.
4827 * cselib.h (cselib_set_value_sp_based,
4828 cselib_sp_based_value_p): New prototypes.
4829 * alias.c (find_base_term): For cselib_sp_based_value_p
4830 return static_reg_base_value[STACK_POINTER_REGNUM].
4831 * cselib.c (SP_BASED_VALUE_P): Define.
4832 (cselib_set_value_sp_based, cselib_sp_based_value_p): New functions.
4833 * var-tracking.c (add_stores): Call cselib_set_value_sp_based
4834 for not yet preserved VALUEs of sp on sp assignments if
4835 hard_frame_pointer_adjustment != -1.
4836 (vt_initialize): When setting hard_frame_pointer_adjustment,
4837 disassociate sp from its previous value and call
4838 cselib_set_value_sp_based on a new VALUE created for sp.
4840 PR tree-optimization/54889
4841 * tree-vect-stmts.c (vectorizable_load): Add VIEW_CONVERT_EXPR if
4842 ARRAY_REF newref doesn't have compatible type with vectype element
4843 type, use vectype element type for MEM_REF.
4845 2012-10-16 Steven Bosscher <steven@gcc.gnu.org>
4847 * combine.c (record_dead_and_set_regs): Iterate over hard register set
4848 with a hard_reg_set_iterator.
4849 * cse.c (invalidate_for_call): Likewise.
4850 * gcse.c (compute_hash_table_work): Likewise.
4851 * loop-iv.c (simplify_using_initial_values): Likewise.
4852 * postreload-gcse.c (record_opr_changes): Likewise.
4853 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
4854 * var-tracking.c (dataflow_set_clear_at_call): Likewise.
4856 2012-10-15 Easwaran Raman <eraman@google.com>
4858 * optabs.c (emit_cmp_and_jump_insn_1): Add a new parameter to
4859 specificy the probability of taking the jump.
4860 (emit_cmp_and_jump_insns): Likewise.
4861 (expand_compare_and_swap_loop): Make the jump predicted not taken.
4862 * dojump.c (do_compare_rtx_and_jump): Remove the code attaching
4863 REG_BR_PROB note and pass probability to emit_cmp_and_jump_insns.
4864 * cfgbuild.c (compute_outgoing_frequencies): Do not guess outgoing
4865 probabilities for branches with more than two successors.
4866 * expr.c (emit_block_move_via_loop): Predict the loop backedge loop
4868 (try_casesi): Pass the probability of jumping to the default label.
4869 (try_tablejump): Likewise.
4870 (do_tablejump): Likewise.
4871 * expr.h (try_tablejump): Add a new parameter.
4872 (try_casesi): Likewise.
4873 (emit_cmp_and_jump_insns): Add probability as default parameter with a
4874 default value of -1.
4875 * except.c (sjlj_emit_function_enter): Pass probability to
4876 emit_cmp_and_jump_insns.
4877 * stmt.c (case_node): Add new fields PROB and SUBTREE_PROB.
4878 (do_jump_if_equal): Pass probability for REG_BR_PROB note.
4879 (add_case_node): Pass estimated probability of jumping to the case
4881 (emit_case_decision_tree): Pass default_prob to emit_case_nodes.
4882 (get_outgoing_edge_probs): New function.
4883 (conditional_probability): Likewise.
4884 (reset_out_edges_aux): Likewise.
4885 (compute_cases_per_edge): Likewise.
4886 (emit_case_dispatch_table): Update probabilities of edges coming out
4887 of the switch statement.
4888 (expand_case): Compute and propagate default edge probability to
4889 emit_case_dispatch_table.
4890 (expand_sjlj_dispatch_table): Update calls to add_case_node and
4891 emit_case_dispatch_table.
4892 (balance_case_nodes): Update subtree_prob values.
4893 (emit_case_nodes): Compute edge probabilities and add pass them to
4894 emit_cmp_and_jump_insns.
4896 2012-10-15 Oleg Endo <olegendo@gcc.gnu.org>
4899 * config/sh/sh-protos.h (set_of_reg): New struct.
4900 (sh_find_set_of_reg, sh_is_logical_t_store_expr,
4901 sh_try_omit_signzero_extend): Declare...
4902 * config/sh/sh.c (sh_find_set_of_reg, sh_is_logical_t_store_expr,
4903 sh_try_omit_signzero_extend): ...these new functions.
4904 * config/sh/sh.md (*logical_op_t): New insn_and_split.
4905 (*zero_extend<mode>si2_compact): Use sh_try_omit_signzero_extend
4907 (*extend<mode>si2_compact_reg): Convert to insn_and_split.
4908 Use sh_try_omit_signzero_extend in splitter.
4909 (*mov<mode>_reg_reg): Disallow t_reg_operand as operand 1.
4910 (*cbranch_t): Rewrite combine part in splitter using new
4911 sh_find_set_of_reg function.
4913 2012-10-15 Oleg Endo <olegendo@gcc.gnu.org>
4916 * config/sh/sh.c (sh_find_base_reg_disp): Stop searching insns when
4917 hitting a call insn if GBR is marked as call used.
4918 * config/sh/iterators.md (QIHISIDI): New mode iterator.
4919 * config/sh/predicates.md (gbr_address_mem): New predicate.
4920 * config/sh/sh.md (*movdi_gbr_load, *movdi_gbr_store): New
4921 insn_and_split. Use QIHISIDI instead of QIHISI in unnamed GBR
4924 2012-10-15 Oleg Endo <olegendo@gcc.gnu.org>
4926 * config/sh/sh.c: Update function attribute comments.
4927 * doc/extend.texi (function_vector): Rephrase SH2A specific part.
4928 (nosave_low_regs, renesas, trapa_handler): Document SH specific
4930 (sp_switch, trap_exit): Add to index.
4932 2012-10-15 Matthias Klose <doko@ubuntu.com>
4934 * config.gcc: Match arm*-*-linux-* for ARM Linux/GNU.
4935 * doc/install.texi: Use arm-*-*linux-* instead of arm-*-*linux-gnueabi.
4937 2012-10-15 Uros Bizjak <ubizjak@gmail.com>
4939 * config/i386/sse.md (UNSPEC_MOVU): Remove.
4940 (UNSPEC_LOADU): New.
4941 (UNSPEC_STOREU): Ditto.
4942 (<sse>_movu<ssemodesuffix><avxsizesuffix>): Split to ...
4943 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): ... this and ...
4944 (<sse>_storeu<ssemodesuffix><avxsizesuffix>) ... this.
4945 (<sse2>_movdqu<avxsizesuffix>): Split to ...
4946 (<sse2>_loaddqu<avxsizesuffix>): ... this and ...
4947 (<sse2>_storedqu<avxsizesuffix>): ... this.
4948 (*sse4_2_pcmpestr_unaligned): Update.
4949 (*sse4_2_pcmpistr_unaligned): Ditto.
4951 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign): Use
4952 gen_avx_load{dqu,ups,upd}256 to load from unaligned memory and
4953 gen_avx_store{dqu,ups,upd}256 to store to unaligned memory.
4954 (ix86_expand_vector_move_misalign): Use gen_sse_loadups or
4955 gen_sse2_load{dqu,upd} to load from unaligned memory and
4956 gen_sse_loadups or gen_sse2_store{dqu,upd}256 to store to
4958 (struct builtin_description bdesc_spec) <IX86_BUILTIN_LOADUPS>:
4959 Use CODE_FOR_sse_loadups.
4960 <IX86_BUILTIN_LOADUPD>: Use CODE_FOR_sse2_loadupd.
4961 <IX86_BUILTIN_LOADDQU>: Use CODE_FOR_sse2_loaddqu.
4962 <IX86_BUILTIN_STOREUPS>: Use CODE_FOR_sse_storeups.
4963 <IX86_BUILTIN_STOREUPD>: Use CODE_FOR_sse2_storeupd.
4964 <IX86_BUILTIN_STOREDQU>: Use CODE_FOR_sse2_storedqu.
4965 <IX86_BUILTIN_LOADUPS256>: Use CODE_FOR_avx_loadups256.
4966 <IX86_BUILTIN_LOADUPD256>: Use CODE_FOR_avx_loadupd256.
4967 <IX86_BUILTIN_LOADDQU256>: Use CODE_FOR_avx_loaddqu256.
4968 <IX86_BUILTIN_STOREUPS256>: Use CODE_FOR_avx_storeups256.
4969 <IX86_BUILTIN_STOREUPD256>: Use CODE_FOR_avx_storeupd256.
4970 <IX86_BUILTIN_STOREDQU256>: Use CODE_FOR_avx_storedqu256.
4972 2012-10-15 Dodji Seketeli <dodji@redhat.com>
4974 * alias.c: Cleanup comments.
4976 2012-10-15 Marc Glisse <marc.glisse@inria.fr>
4978 PR tree-optimization/54915
4979 * tree-ssa-forwprop.c (simplify_vector_constructor): Check
4982 2012-10-15 Richard Biener <rguenther@suse.de>
4984 * data-streamer.h (bp_pack_string_with_length): New function.
4985 (bp_pack_string): Likewise.
4986 (bp_unpack_indexed_string): Likewise.
4987 (bp_unpack_string): Likewise.
4988 * data-streamer-out.c (bp_pack_string_with_length): Likewise.
4989 (bp_pack_string): Likewise.
4990 * data-streamer-in.c (bp_unpack_indexed_string): Likewise.
4991 (bp_unpack_string): Likewise.
4992 * tree-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
4993 Pack TRANSLATION_UNIT_LANGUAGE here, not ...
4994 (write_ts_translation_unit_decl_tree_pointers): ... here. Remove.
4995 (streamer_pack_tree_bitfields): Adjust.
4996 (streamer_write_tree_body): Likewise.
4997 * tree-streamer-in.c (unpack_ts_translation_unit_decl_value_fields):
4998 Unpack TRANSLATION_UNIT_LANGUAGE here, not ...
4999 (lto_input_ts_translation_unit_decl_tree_pointers): ... here. Remove.
5000 (unpack_value_fields): Adjust.
5001 (streamer_read_tree_body): Likewise.
5003 2012-10-15 J"orn Rennecke <joern.rennecke@arc.com>
5005 * genoutput.c (process_template): Process '*' in '@' alternatives.
5006 * doc/md.texi (node Output Statement): Provide example for the above.
5008 2012-10-15 Richard Guenther <rguenther@suse.de>
5010 PR tree-optimization/54920
5011 * tree-ssa-pre.c (create_expression_by_pieces): Properly
5012 allocate temporary storage for all NARY elements.
5014 2012-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
5016 * web.c (union_match_dups): Properly handle OP_INOUT match_dups.
5018 2012-10-15 Eric Botcazou <ebotcazou@adacore.com>
5020 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Do not unnecessarily
5021 copy the object in the MEM_P case.
5023 2012-10-15 Richard Guenther <rguenther@suse.de>
5025 * tree-streamer-out.c (streamer_pack_tree_bitfields): Back
5026 BINFO_BASE_ACCESSES and CONSTRUCTOR lengths here.
5027 (streamer_write_chain): Write TREE_CHAIN as null-terminated list.
5028 (write_ts_exp_tree_pointers): Adjust.
5029 (write_ts_binfo_tree_pointers): Likewise.
5030 (write_ts_constructor_tree_pointers): Likewise.
5031 * tree-streamer-in.c (streamer_read_chain): Read TREE_CHAIN as
5032 null-terminated list.
5033 (unpack_value_fields): Unpack BINFO_BASE_ACCESSES and
5034 CONSTRUCTOR lengths and materialize the arrays.
5035 (lto_input_ts_exp_tree_pointers): Adjust.
5036 (lto_input_ts_binfo_tree_pointers): Likewise.
5037 (lto_input_ts_constructor_tree_pointers): Likewise.
5039 2012-10-14 Hans-Peter Nilsson <hp@bitrange.com>
5041 * config/mmix/mmix.c (mmix_opposite_regno): Handle the
5042 return-value register too.
5044 2012-10-14 Steven Bosscher <steven@gcc.gnu.org>
5046 PR rtl-optimization/38711
5047 * df.h (df_get_live_out, df_get_live_in): Make static inline functions.
5048 * df-problems.c (df_get_live_out, df_get_live_in): Moved to df.h.
5049 * ira-lives.c (process_bb_node_lives): Use df_get_live_out instead of
5051 * ira-build.c (create_bb_allocnos): Likewise.
5052 (create_loop_allocnos): Likewise, and use df_get_live_in instead of
5054 * ira-emit.c (generate_edge_moves): Likewise.
5055 (add_ranges_and_copies): Likewise.
5056 * ira-color.c (ira_loop_edge_freq): Use df_get_live_out instead of
5057 DF_LR_OUT, and df_get_live_in instead of DF_LR_IN.
5058 * ira.c (mark_elimination): Update DF_LR and DF_LIVE.
5059 (build_insn_chain): Use df_get_live_out instead of DF_LR_OUT.
5060 (do_reload): Remove the DF_LIVE problem for -O1.
5062 2012-10-14 Steven Bosscher <steven@gcc.gnu.org>
5064 PR rtl-optimization/54919
5065 * loop-unroll.c (struct var_to_expand): Remove accum_pos field.
5066 (analyze_insn_to_expand_var): Do not record accum_pos.
5067 (expand_var_during_unrolling): Use validate_replace_rtx_group to
5068 perform replacement of all references to SET_DEST (set) with the
5069 new register, including references in REG_EQUAL notes.
5070 (insert_var_expansion_initialization): Insert initializatio insns
5071 at the bottom of the pre-header of the loop.
5073 2012-10-14 Jan Hubicka <jh@suse.cz>
5075 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
5076 predict loops with multiple exits realistically.
5077 * cfgloopanal.c (single_likely_exit): New function.
5079 2012-10-14 Uros Bizjak <ubizjak@gmail.com>
5081 * config/alpha/alpha.md: Remove empty predicates and/or constraints.
5082 * config/alpha/sync.md: Ditto.
5084 2012-10-13 Uros Bizjak <ubizjak@gmail.com>
5086 * config/alpha/alpha.md (I24MODE): New mode iterator.
5087 (any_divmod): New code iterator.
5088 (<code>si3): Macroize expander from {div,mod,udiv,umod}si3 using
5089 any_divmod code iterator.
5090 (<code>si3): Macroize expander from {div,mod,udiv,umod}di3 using
5091 any_divmod code iterator.
5092 (extendqi<mode>2): Macroize insn from extendqi{hi,si}2 using
5093 I24MODE mode iterator.
5094 (unaligned_store<mode>): Macroize expander from unaligned_store{qi,hi}
5095 using I12MODE mode iterator.
5096 (mov<mode>): Macroize expander from mov{qi,hi} using
5097 I12MODE mode iterator.
5099 2012-10-13 Eric Botcazou <ebotcazou@adacore.com>
5101 PR rtl-optimization/54871
5102 * loop-iv.c (simplify_using_initial_values): When scanning previous
5103 basic blocks, prune the recorded conditions if the current insn was
5104 not used to make a replacement.
5106 * loop-unroll.c (decide_unroll_constant_iterations): Clean up message.
5107 (unroll_loop_constant_iterations): Clarify head comment.
5108 (decide_unroll_runtime_iterations): Clean up message.
5109 (unroll_loop_runtime_iterations): Clarify head comment.
5110 (decide_peel_simple): Clean up message.
5111 (peel_loop_simple): Clarify head comment.
5112 (decide_unroll_stupid): Clean up message.
5113 (unroll_loop_stupid): Clarify head comment.
5115 2012-10-13 Andreas Schwab <schwab@linux-m68k.org>
5117 PR gcov-profile/44728
5118 * gcov.c (create_file_names): When stripping extension only look
5121 2012-10-13 Jan Hubicka <jh@suse.cz>
5123 * loop-iv.c (determine_max_iter): Fix handling of AND.
5124 (iv_number_of_iterations): Record upper bounds as unsigned
5127 2012-10-13 Steven Bosscher <steven@gcc.gnu.org>
5129 * ira.c (ira): Set current_loops to &ira_loops before recording
5130 loop exits. Release recorded exits and loops early.
5132 2012-10-13 Chung-Lin Tang <cltang@codesourcery.com>
5134 * builtins.c (expand_builtin_set_thread_pointer): Use
5135 create_input_operand() instead of create_fixed_operand().
5137 2012-10-13 Uros Bizjak <ubizjak@gmail.com>
5139 * config/alpha/alpha.md (FMODE): New mode iterator.
5140 (modesuffix): Handle SF and DF modes.
5141 (opmode): New mode attribute.
5142 (abs<mode>2): Macroize insn from abs{sf,df}2 using FMODE mode iterator.
5143 (*nabs<mode>2): Macroize insn from *nabs{sf,df}2 using
5144 FMODE mode iterator.
5145 (neg<mode>2): Macroize insn from neg{sf,df}2 using FMODE mode iterator.
5146 (copysign<mode>3): Macroize insn from copysign{sf,df}3 using
5147 FMODE mode iterator.
5148 (*ncopysign<mode>3): Macroize insn from *ncopysign{sf,df}3 using
5149 FMODE mode iterator.
5150 (*add<mode>3_ieee): Macroize insn from *add{sf,df}_ieee using
5151 FMODE mode iterator.
5152 (add<mode>3): Macroize insn from add{sf,df}3 using FMODE mode iterator.
5153 (*sub<mode>3_ieee): Macroize insn from *sub{sf,df}3_ieee using
5154 FMODE mode iterator.
5155 (sub<mode>3): Macroize insn from sub{sf,df}3 using FMODE mode iterator.
5156 (*mul<mode>3_ieee): Macroize insn from *mul{sf,df}3_ieee using
5157 FMODE mode iterator.
5158 (mul<mode>3): Macroize insn from mul{sf,df}3 using FMODE mode iterator.
5159 (*div<mode>3_ieee): Macroize insn from *div{sf,df}3_ieee using
5160 FMODE mode iterator.
5161 (div<mode>3): Macroize insn from div{sf,df}3 using FMODE mode iterator.
5162 (*sqrt<mode>2_ieee): Macroize insn from *sqrt{sf,df}2_ieee using
5163 FMODE mode iterator.
5164 (sqrt<mode>2): Macroize insn from sqrt{sf,df}2
5165 using FMODE mode iterator.
5166 (*mov<mode>cc_internal): Macroize insn from *mov{sf,df}cc_internal
5167 using FMODE mode iterator.
5168 (mov<mode>cc): Macroize expander from mov{sf,df}cc
5169 using FMODE mode iterator.
5171 2012-10-12 Oleg Endo <olegendo@gcc.gnu.org>
5174 * config/sh/sh.md: Correct define_delay for return insns.
5175 (*movsi_pop): Delete.
5177 2012-10-12 Oleg Endo <olegendo@gcc.gnu.org>
5180 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_int2sf): Fix swapped
5182 * config/sh/predicates.md (fpul_operand): Add comment.
5183 (fpul_fsca_operand, fsca_scale_factor): New predicates.
5184 * config/sh/sh.md (fsca): Move below sincossf3 expander. Convert to
5185 insn_and_split. Use fpul_fsca_operand and fsca_scale_factor
5186 predicates. Simplify fpul operand in splitter.
5188 2012-10-12 Jan Hubicka <jh@suse.cz>
5190 * tree-ssa-threadupdate.c (def_split_header_continue_p): Do not
5193 2012-10-12 Jan Hubicka <jh@suse.cz>
5195 * web.c (web_main): Do not set DF_RD_PRUNE_DEAD_DEFS flag.
5197 2012-10-12 Aaron Gray <aaronngray.lists@gmail.com>
5198 Diego Novillo <dnovillo@google.com>
5200 * gengtype-lex.l: Support for C++ single line comments.
5201 Support for classes.
5202 (CXX_KEYWORD): New. Support C++ keywords inline, public,
5203 protected, private, template, operator, friend, &, ~.
5204 (TYPEDEF): New. Support typedef.
5205 * gengtype-parser.c: updated 'token_names[]'
5206 (direct_declarator): Add support for parsing functions and ctors.
5208 2012-10-12 Diego Novillo <dnovillo@google.com>
5210 * doc/gty.texi: Document C++ limitations in gengtype.
5211 * gengtype-lex.l (CID): Rename from ID.
5212 (ID): Include scoping '::' as part of the identifier name.
5213 * gengtype-parse.c (token_names): Update.
5214 (token_value_format): Update.
5215 (consume_until_eos): Rename from consume_until_semi.
5216 Remove unused argument IMMEDIATE. Update all callers.
5217 Also consider '}' as a finalizer.
5218 (consume_until_comma_or_eos): Rename from
5219 consume_until_comma_or_semi.
5220 Remove unused argument IMMEDIATE. Update all callers.
5221 Also consider '}' as a finalizer.
5222 (direct_declarator): Add documentation on ctor support.
5223 Add argument IN_STRUCT.
5224 If the token following ID is a '(', consider ID a
5225 function and return NULL.
5226 If the token following '(' is not a '*', and IN_STRUCT is true,
5227 conclude that this is a ctor and return NULL.
5228 If the token is IGNORABLE_CXX_KEYWORD, return NULL.
5229 (inner_declarator): Add argument IN_STRUCT.
5231 (declarator): Add argument IN_STRUCT with default value false.
5233 (type): Document argument NESTED.
5234 Skip over C++ inheritance specifiers.
5235 If a token TYPEDEF is found, emit an error.
5236 If an enum is found inside a class/structure, emit an error.
5237 (typedefs, structures, param_structs, variables): Initialize.
5238 (new_structure): Do not complain about duplicate
5239 structures if S has a line location set.
5240 * gengtype-state.c (write_state_type): Remove default handler.
5241 Add handler for TYPE_NONE.
5242 (read_state_scalar_char_type):
5243 * gengtype.c: Fix spacing.
5244 * gengtype.h (enum gty_token): Add name. Add token
5245 IGNORABLE_CXX_KEYWORD.
5247 2012-10-12 Chung-Lin Tang <cltang@codesourcery.com>
5249 * config/arm/arm.md (get_thread_pointersi): Moved to place with
5250 other TLS related patterns.
5252 2012-10-12 Richard Biener <rguenther@suse.de>
5254 * tree-streamer-out.c (pack_ts_target_option): Rename from ...
5255 (write_ts_target_option): ... this.
5256 (pack_ts_optimization): Rename from ...
5257 (write_ts_optimization): ... this.
5258 (streamer_pack_tree_bitfields): Pack them in the bitfield section ...
5259 (streamer_write_tree_body): ... not here.
5260 * tree-streamer-in.c (unpack_ts_target_option): Rename from ...
5261 (lto_input_ts_target_option): ... this.
5262 (unpack_ts_optimization): Rename from ...
5263 (lto_input_ts_optimization): ... this.
5264 (unpack_value_fields): Unpack them from the bitfield section ...
5265 (streamer_read_tree_body): ... not from here.
5267 2012-10-12 Uros Bizjak <ubizjak@gmail.com>
5269 * config/alpha/alpha.md (vecmodesuffix): New mode attribute.
5270 (modesuffix): Handle V8QI and V4HI modes.
5271 (any_maxmin): New code iterator.
5272 (maxmin): New code attribute.
5273 (<code><mode>3): Macroize insn from {smax,smin,umax,umin}{qi,hi}3
5274 using any_maxmin code iterator and I12MODE mode iterator.
5275 (<code><mode>3): Macroize insn from {smax,smin,umax,umin}{v8qi,v4hi}3
5276 using any_maxmin code iterator and VEC12 mode iterator.
5278 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
5280 * optabs.c (vector_compare_rtx): Change prototype.
5281 (expand_vec_cond_expr): Handle VEC_COND_EXPR whose first operand
5282 is not a comparison.
5283 * gimplify.c (gimplify_expr): Handle VEC_COND_EXPR.
5285 2012-10-12 Richard Biener <rguenther@suse.de>
5287 PR tree-optimization/54894
5288 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
5289 Handle over-aligned scalar types properly.
5291 2012-10-12 Oleg Endo <olegendo@gcc.gnu.org>
5294 * config/sh/sh.c (bdesc): Remove thread pointer built-ins.
5295 * config/sh/sh.md (get_thread_pointer, set_thread_pointer): Append mode
5298 2012-10-12 Oleg Endo <olegendo@gcc.gnu.org>
5301 * config/sh/sh.md (negsi_cond, negdi_cond, stack_protect_test): Remove
5302 get_t_reg_rtx when invoking gen_branch_true or gen_branch_false.
5303 (*zero_extend<mode>si2_compact): Convert to insn_and_split. Convert
5304 zero extensions of T bit stores to reg moves in splitter. Remove
5305 obsolete unnamed peephole2 that caught zero extensions after negc T bit
5307 (*branch_true_eq, *branch_false_ne): Delete.
5308 (branch_true, branch_false): Convert insn to expander. Move actual
5310 (*cbranch_t): ...this new insn_and_split. Try to find preceding
5311 redundant T bit stores and tests and combine them with the conditional
5312 branch if possible in the splitter.
5313 (movrt_xor, *movt_movrt): New insn_and_split.
5314 * config/sh/predicates.md (cbranch_treg_value): New predicate.
5315 * config/sh/sh-protos.h (sh_eval_treg_value): Forward declare...
5316 * config/sh/sh.c (sh_eval_treg_value): ...this new function.
5317 (expand_cbranchsi4, expand_cbranchdi4): Remove get_t_reg_rtx
5318 when invoking gen_branch_true or gen_branch_false.
5320 2012-10-11 Uros Bizjak <ubizjak@gmail.com>
5322 * config/alpha/alpha.md (IMODE): New mode iterator.
5325 (modesuffix): Handle QI and HI modes.
5326 (zero_extendqi<mode>2): Macroize insn from zero_extendqi{hi,si,di}2
5327 using I248MODE mode iterator.
5328 (zero_extendhi<mode>2): Macroize insn from zero_extendhi{si,di}2
5329 using I48MODE mode iterator.
5330 (andnot<mode>3): Macroize insn from andnot{si,di}3 using
5331 I48MODE mode iterator.
5332 (ins<modesuffix>l_const): Macroize insn from ins{b,w,l}l_const
5333 using I248MODE mode iterator.
5334 (ins<modesuffix>l): Macroize insn from ins{b,w,l}l
5335 using I248MODE mode iterator.
5336 (*mov<mode>cc_internal): Macroize insn from
5337 *mov{qi,hi,si,di}cc_internal using IMODE mode iterator.
5338 (*mov<mode>cc_lbc): Macroize insn from
5339 *mov{qi,hi,si,di}cc_lbc using IMODE mode iterator.
5340 (*mov<mode>cc_lbs): Macroize insn from
5341 *mov{qi,hi,si,di}cc_lbs using IMODE mode iterator.
5342 (mov<mode>cc): Macroize expander from mov{si,di}cc
5343 using I48MODE mode iterator.
5345 2012-10-11 Steven Bosscher <steven@gcc.gnu.org>
5347 * ira-build.c (ira_loop_tree_body_rev_postorder): New function.
5348 (ira_traverse_loop_tree): Traverse a loop's basic blocks in
5349 reverse post-order of the reversed control-flow direction.
5350 * ira-conflicts.c (ira_build_conflicts): Pass add_copies as
5351 the pre-order function to ira_traverse_loop_tree to preserve
5352 the existing semantics.
5354 * ira-lives.c (remove_some_program_points_and_update_live_ranges):
5355 Squeeze out live range chain elements if their program points are
5358 2012-10-11 Jakub Jelinek <jakub@redhat.com>
5360 * tree.def (REDUC_PLUS_EXPR): Fix up comment.
5362 * fold-const.c (fold_unary_loc): Handle REDUC_MIN_EXPR,
5363 REDUC_MAX_EXPR and REDUC_PLUS_EXPR.
5365 2012-10-11 James Lemke <jwlemke@codesourcery.com>
5367 * config/rs6000/predicates.md (zero_fp_constant): Fix comment.
5368 * config/rs6000/rs6000.md (return_pred): Fix null return.
5369 * config/rs6000/rs6000.c (rs6000_emit_set_const): Fix indentation.
5370 (print_operand): Make FALLTHRU obvious.
5371 (output_cbranch): Correct comment.
5373 2012-10-11 Uros Bizjak <ubizjak@gmail.com>
5375 * config/alpha/alpha.md (DWI): New mode attribute.
5376 (*sadd<modesuffix>): Macroize insn from *saddl and *saddq using
5377 I48MODE mode iterator.
5378 (addv<mode>3): Macroize insn from addvsi3 and addvdi3 using
5379 I48MODE mode iterator.
5380 (neg<mode>2): Macroize insn from negsi2 and negdi2 using
5381 I48MODE mode iterator.
5382 (negv<mode>2): Macroize insn from negvsi2 and negvdi2 using
5383 I48MODE mode iterator.
5384 (sub<mode>3): Macroize insn from subsi3 and subdi3 using
5385 I48MODE mode iterator.
5386 (*ssub<modesuffix>): Macroize insn from *ssubl and *ssubq using
5387 I48MODE mode iterator.
5388 (subv<mode>3): Macroize insn from subvsi3 and subvdi3 using
5389 I48MODE mode iterator.
5390 (mul<mode>3): Macroize insn from mulsi3 and muldi3 using
5391 I48MODE mode iterator.
5392 (mulv<mode>3): Macroize insn from mulvsi3 and mulvdi3 using
5393 I48MODE mode iterator.
5394 (*iornot<mode>3): Macroize insn from *iornotsi3 and *iornotdi3 using
5395 I48MODE mode iterator.
5396 (*xornot<mode>3): Macroize insn from *xornotsi3 and *xornotdi3 using
5397 I48MODE mode iterator.
5399 2012-10-11 Jason Merrill <jason@redhat.com>
5401 * configure.ac (gcc_cv_as_aix_ref): Fix typo.
5402 * configure: Regenerate.
5404 2012-10-11 Chung-Lin Tang <cltang@codesourcery.com>
5406 * builtins.c (expand_builtin_thread_pointer): New.
5407 (expand_builtin_set_thread_pointer): New.
5408 (expand_builtin): Add BUILT_IN_THREAD_POINTER,
5409 BUILT_IN_SET_THREAD_POINTER expand cases.
5410 * builtins.def (BUILT_IN_THREAD_POINTER):
5411 New __builtin_thread_pointer builtin.
5412 (BUILT_IN_SET_THREAD_POINTER):
5413 New __builtin_set_thread_pointer builtin.
5414 * optabs.def (get_thread_pointer,set_thread_pointer):
5416 * doc/md.texi (Standard Names): Document get_thread_pointer and
5417 set_thread_pointer patterns.
5418 * config/alpha/alpha.md (get_thread_pointerdi): Rename from load_tp.
5419 (set_thread_pointerdi): Rename from set_tp.
5420 * config/alpha/alpha.c (alpha_legitimize_address_1): Change
5421 gen_load_tp calls to gen_get_thread_pointerdi.
5422 (alpha_builtin): Remove ALPHA_BUILTIN_THREAD_POINTER,
5423 ALPHA_BUILTIN_SET_THREAD_POINTER.
5424 (code_for_builtin): Remove CODE_FOR_load_tp, CODE_FOR_set_tp.
5425 (alpha_init_builtins): Remove __builtin_thread_pointer,
5426 __builtin_set_thread_pointer machine-specific builtins.
5427 (alpha_expand_builtin_thread_pointer): Add hook function for
5428 TARGET_EXPAND_BUILTIN_THREAD_POINTER.
5429 (alpha_expand_builtin_set_thread_pointer): Add hook function for
5430 TARGET_EXPAND_BUILTIN_SET_THREAD_POINTER.
5431 (alpha_fold_builtin): Remove ALPHA_BUILTIN_THREAD_POINTER,
5432 ALPHA_BUILTIN_SET_THREAD_POINTER cases.
5433 * config/arm/arm.md (get_thread_pointersi): New pattern.
5434 * config/arm/arm-protos.h (arm_load_tp): Add extern declaration.
5435 * config/arm/arm.c (arm_load_tp): Remove static.
5436 (arm_builtins): Remove ARM_BUILTIN_THREAD_POINTER.
5437 (arm_init_tls_builtins): Remove function.
5438 (arm_init_builtins): Remove call to arm_init_tls_builtins().
5439 (arm_expand_builtin): Remove ARM_BUILTIN_THREAD_POINTER case.
5440 * config/mips/mips.md (get_thread_pointer<mode>): New pattern.
5441 * config/mips/mips-protos.h (mips_expand_thread_pointer):
5442 Add extern declaration.
5443 * config/mips/mips.c (mips_expand_thread_pointer):
5444 Renamed from mips_get_tp.
5445 (mips_get_tp): New stub calling mips_expand_thread_pointer.
5446 * config/s390/s390.c (s390_builtin,code_for_builtin_64,
5447 code_for_builtin_31,s390_init_builtins,s390_expand_builtin): Remove.
5448 * config/s390/s390.md (get_tp_64,get_tp_31,set_tp_64,set_tp_31):
5450 (get_thread_pointer<mode>,set_thread_pointer<mode>):
5451 New, adapted from removed patterns.
5452 * config/xtensa/xtensa.md (get_thread_pointersi):
5453 Renamed from load_tp.
5454 (set_thread_pointersi): Renamed from set_tp.
5455 * config/xtensa/xtensa.c (xtensa_legitimize_tls_address):
5456 Change gen_load_tp calls to gen_get_thread_pointersi.
5457 (xtensa_builtin): Remove XTENSA_BUILTIN_THREAD_POINTER and
5458 XTENSA_BUILTIN_SET_THREAD_POINTER.
5459 (xtensa_init_builtins): Remove __builtin_thread_pointer,
5460 __builtin_set_thread_pointer machine-specific builtins.
5461 (xtensa_fold_builtin): Remove XTENSA_BUILTIN_THREAD_POINTER,
5462 XTENSA_BUILTIN_SET_THREAD_POINTER cases.
5463 (xtensa_expand_builtin): Remove XTENSA_BUILTIN_THREAD_POINTER,
5464 XTENSA_BUILTIN_SET_THREAD_POINTER cases.
5466 2012-10-11 Marc Glisse <marc.glisse@inria.fr>
5468 * doc/extend.texi (Vector Extensions): C++ improvements.
5469 * doc/generic.texi (LSHIFT_EXPR, RSHIFT_EXPR): Mixed vector-scalar.
5470 (LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR, NE_EXPR): Specify
5472 (VEC_COND_EXPR): Document it.
5474 2012-10-11 Terry Guo <terry.guo@arm.com>
5476 * config/arm/arm.c (arm_arch6m): New variable to denote armv6-m
5478 * config/arm/arm.h (TARGET_HAVE_DMB): The armv6-m also has DMB
5481 2012-10-11 Hans-Peter Nilsson <hp@bitrange.com>
5484 * configure.ac (out-of-tree linker .hidden support) Set to "no"
5485 for mmix-knuth-mmixware.
5486 * configure: Regenerate.
5488 * configure.ac (gcc_cv_as_comdat_group_group): Default to no.
5489 * configure: Regenerate.
5491 * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION): Allow a single
5492 character to quote the VERSION= contents. Sanity-check contents.
5493 * configure.ac ("what linker to use" ld version extraction): Ditto.
5494 * configure: Regenerate.
5496 2012-10-10 Segher Boessenkool <segher@kernel.crashing.org>
5498 * config/rs6000/rs6000.h (PRINT_OPERAND_PUNCT_VALID_P): Delete '.'.
5500 2012-10-10 Jakub Jelinek <jakub@redhat.com>
5502 PR tree-optimization/54877
5503 * tree-vect-loop.c (vect_is_simple_reduction_1): For MINUS_EXPR
5504 use make_ssa_name instead of copy_ssa_name.
5506 2012-10-10 Richard Biener <rguenther@suse.de>
5508 * lto-streamer-in.c (lto_input_location_bitpack): Rename to ...
5509 (lto_input_location): ... this. Kill original.
5510 (input_eh_region): Adjust.
5511 (input_struct_function_base): Likewise.
5512 (lto_read_tree): Likewise.
5513 * lto-streamer-out.c (lto_output_location_bitpack): Rename to ...
5514 (lto_output_location): ... this. Kill original.
5515 (lto_write_tree): Adjust.
5516 (output_eh_region): Likewise.
5517 (output_struct_function_base): Likewise.
5518 * lto-streamer.c (lto_streamer_hooks_init): Initialize location hooks.
5519 * lto-streamer.h (lto_input_location): Adjust prototype.
5520 (lto_output_location): Likewise.
5521 * streamer-hooks.h (struct streamer_hooks): Adjust prototype
5522 of input_location and output_location hooks.
5523 (stream_input_location): New define.
5524 (stream_output_location): Likewise.
5525 * tree-streamer-in.c (unpack_ts_block_value_fields): Adjust.
5526 (unpack_value_fields): Likewise.
5527 (streamer_read_tree_bitfields): Likewise.
5528 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
5529 (lto_input_ts_exp_tree_pointers): Likewise.
5530 (lto_input_ts_block_tree_pointers): Likewise.
5531 * tree-streamer-out.c (pack_ts_block_value_fields): Adjust.
5532 (streamer_pack_tree_bitfields): Likewise.
5533 (write_ts_decl_minimal_tree_pointers): Likewise.
5534 (write_ts_exp_tree_pointers): Likewise.
5535 (write_ts_block_tree_pointers): Likewise.
5536 * gimple-streamer-in.c (input_phi): Adjust.
5537 (input_gimple_stmt): Likewise.
5538 * gimple-streamer-out.c (output_phi): Adjust.
5539 (output_gimple_stmt): Likewise.
5540 * tree-streamer.h (streamer_read_tree_bitfields): Adjust prototype.
5541 (streamer_pack_tree_bitfields): Likewise.
5543 2012-10-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5545 * config/rs6000/rs6000.c (altivec_expand_dst_builtin): Fix signed
5546 vs. unsigned warnings by using enum type for function code.
5547 (paired_expand_builtin): Likewise.
5548 (spe_expand_builtin): Likewise.
5550 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Change
5551 builtin mask, target flags masks type to HOST_WIDE_INT in
5552 preparation for growing the number of ISA switches from 31 to 63.
5554 * config/rs6000/rs6000.opt (rs6000_builtin_mask): Make mask type
5557 * config/rs6000/rs6000.c (struct builtin_description): Make
5558 builtin mask field HOST_WIDE_INT. Make target flags field
5559 HOST_WIDE_INT in preparation for growing the # of ISA switches.
5560 (struct rs6000_builtin_info_type): Likewise.
5561 (struct rs6000_ptt): Likewise.
5562 (rs6000_builtin_mask_calculate): Likewise.
5563 (rs6000_invalid_builtin): Likewise.
5564 (rs6000_builtin_decl): Likewise.
5565 (rs6000_common_init_builtins): Likewise.
5566 (rs6000_darwin_file_start): Likewise.
5567 (rs6000_final_prescan_insn): Likewise.
5568 (rs6000_inner_target_options): Likewise.
5569 (build_target_option_node): Likewise.
5570 (rs6000_function_specific_print): Likewise.
5571 (DEBUG_FMT_W): New format for printing HOST_WIDE_INT in hex.
5573 * config/rs6000/rs6000-protos.h (rs6000_builtin_mask_calculate):
5574 Make target flags, builtin masks arguments/return values
5575 HOST_WIDE_INT in preparation for growing the number of ISA from 31
5577 (rs6000_target_modify_macros): Likewise.
5578 (rs6000_target_modify_macros_ptr): Likewise.
5580 * config/rs6000/rs6000.c (DEBUG_FMT_ID): Move "-32s" to a separate
5581 define and change DEBUG_FMT_<x> to use it.
5582 (DEBUG_FMT_D): Likewise.
5583 (DEBUG_FMT_S): Likewise.
5584 (DEBUG_FMT_X): Delete, no longer used.
5585 (DEBUG_FMT_W): Likewise.
5586 (DEBUG_FMT_WX): New debug format for printing options in a
5588 (rs6000_debug_reg_global): If -mdebug=reg, print all of the
5589 options in target_flags and target_flags_explicit. Print the
5590 default options for -mcpu=<xxx>, -mtune=<xxx>, and the default
5591 options. Adjust printing out the builtin options.
5592 (rs6000_option_override_internal): Change printing the builtin
5593 options to use rs6000_print_builtin_options.
5594 (rs6000_function_specific_print): Change to use
5595 rs6000_print_isa_options to print ISA flags.
5596 (rs6000_print_options_internal): New function for expanded
5597 -mdebug=reg option printing to print both the ISA options, and the
5598 builtins that are enabled.
5599 (rs6000_print_isa_options): New function to print the ISA options.
5600 (rs6000_print_builtin_options): New function to print the builtin
5603 2012-10-10 Jakub Jelinek <jakub@redhat.com>
5606 * config/i386/bdver1.md (bdver1-mult): Remove.
5609 * combine.c (count_rtxs): Use RTX_BIN_ARITH resp. RTX_COMM_ARITH
5610 instead of '2' resp. 'c' for GET_RTX_CLASS comparisons.
5613 * simplify-rtx.c (simplify_truncation): Compare UINTVAL instead of
5614 INTVAL of second argument with precision resp. op_precision.
5616 2012-10-10 Dodji Seketeli <dodji@redhat.com>
5618 PR middle-end/54860 - Make sure attributes hash table is created
5619 * attribs.c (register_scoped_attributes): Ensure the attribute
5620 hash table is created.
5622 2012-10-10 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5625 * config/i386/bdver1.md (bdver1_int): Automaton has been
5626 split to reduce state transitions.
5628 2012-10-10 Richard Biener <rguenther@suse.de>
5631 * ipa-prop.c (prune_expression_for_jf_1): New function.
5632 (prune_expression_for_jf): Clear EXPR_LOCATION for all
5633 sub-expressions as well.
5635 2012-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5637 * config.gcc: Enable zEC12 for with-arch and with-tune
5639 * common/config/s390/s390-common.c (processor_flags_table): Add
5641 * config/s390/2827.md: New file.
5642 * config/s390/s390-opts.h (enum processor_type): Add
5643 PROCESSOR_2827_ZEC12.
5644 * config/s390/s390.h (enum processor_flags): Add PF_ZEC12.
5645 (TARGET_CPU_ZEC12, TARGET_ZEC12): New macro definitions.
5646 * config/s390/s390.c (zEC12_cost): New definition.
5647 (s390_option_override): Set costs for zEC12.
5648 Set parameter defaults for zEC12.
5649 (legitimate_reload_fp_constant_p): Adjust comment.
5650 (preferred_la_operand_p): Adjust comment.
5651 (s390_expand_insv): Generate insv pattern without CC clobber for zEC12.
5652 (s390_adjust_priority): Add zEC12 check.
5653 (s390_issue_rate): Return 2 for zEC12.
5654 (s390_reorg): Enable code optimizations for zEC12.
5655 (s390_sched_reorder): Reorder insns according to OOO attributes.
5656 (s390_get_sched_attrmask): New function.
5657 (s390_sched_score): New function.
5658 (s390_sched_variable_issue): Update s390_sched_state.
5659 (s390_sched_init): Reset s390_sched_state.
5660 (s390_loop_unroll_adjust): Enable for zEC12.
5661 * config/s390/s390.opt: Add zEC12 processor type value.
5662 * config/s390/s390.md: Enable mnemonic attribute.
5663 (attr cpu, cpu_facility): Add zEC12.
5665 ("*insv<mode>_zEC12", "*insv<mode>_zEC12_noshift")
5666 ("*load_and_trap<mode>"): New insn definition.
5667 ("*cmp_and_trap_unsigned_int<mode>"): Add clt and clgt.
5669 2012-10-09 David S. Miller <davem@davemloft.net>
5671 * config/sparc/sparc.md (type attribute): Add new types 'visl'
5672 (VIS logical operation), 'vismv' (VIS move), and 'pdistn'. Rename
5673 'fgm_pdist' to 'pdist'.
5674 (*movsi_insn): Use vismv and visl.
5675 (*movdi_insn_sp64): Likewise.
5676 (*movsf_insn): Likewise.
5677 (*movdf_insn_sp64): Likewise.
5678 (*mov<VM32:mode>_insn): Likewise, use 'fsrc2s' instead of 'fsrc1s'.
5679 (*mov<VM64:mode>_insn_sp64): Likewise, use 'fsrc2s'
5680 instead of 'fsrc1s'.
5681 (*mov<VM64:mode>_insn_sp32): Likewise, use 'fsrc2s'
5682 instead of 'fsrc1s'.
5683 (VIS logical instructions): Mark as visl.
5684 (pdist_vis): Use 'pdist'.
5685 (pditsn<mode>_vis): Use 'pdistn'.
5686 * config/sparc/ultra1_2.md: Adjust for new VIS attribute types.
5687 * config/sparc/ultra3.md: Likewise.
5688 * config/sparc/niagara.md: Likewise.
5689 * config/sparc/niagara2.md: Likewise.
5690 * config/sparc/niagara4.md: Add cpu units "n4_slot2" and
5691 "n4_load_store" for special store scheduling. Use them in load
5692 and store reservations. Integer divide and multiply can only
5693 issue in slot-1. Represent 1-cycle VIS moves and 3-cycle VIS
5696 2012-10-10 Dehao Chen <dehao@google.com>
5698 * tree-eh.c (lower_try_finally_onedest): Set correct location for
5700 * gimplify.c (gimplify_expr): Set correct location for TRY stmt.
5702 2012-10-10 Oleg Endo <olegendo@gcc.gnu.org>
5705 * config/sh/sh.md (extv, extzv): Check that operands[3] is zero,
5706 regardless of the endianness.
5708 2012-10-09 Lawrence Crowl <crowl@google.com>
5710 * Makefile.in (fold-const.o): Add depencence on hash-table.h.
5713 * fold-const.c (fold_checksum_tree): Change to new
5714 type-safe hash table.
5715 * (print_fold_checksum): Likewise.
5716 * cfg.c (var bb_original): Likewise.
5717 * (var bb_copy): Likewise.
5718 * (var loop_copy): Likewise.
5719 * hash-table.h (template hash_table): Constify parameters for find...
5720 and remove_elt... member functions.
5721 (hash_table::empty) Correct size expression.
5722 (hash_table::clear_slot) Correct deleted entry assignment.
5723 * dse.c (var rtx_group_table): Change to new type-safe hash table.
5725 2012-10-09 Steven Bosscher <steven@gcc.gnu.org>
5727 * basic-block. (profile_record): New struct, moved from passes.c.
5728 * cfghooks.h (struct cfg_hooks) <account_profile_record>: New hook.
5729 (account_profile_record): New prototype.
5730 * cfghooks.c (account_profile_record): New function.
5731 * tree-cfg.c (gimple_account_profile_record): New function
5732 (gimple_cfg_hooks): Add it.
5733 * cfgrtl.c (rtl_account_profile_record): New function
5734 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Add it.
5735 * passes.c (check_profile_consistency): Simplify. Move IR-dependent
5736 code around using cfghooks machinery.
5738 2012-10-09 Oleg Endo <olegendo@gcc.gnu.org>
5741 * doc/extend.texi (Target Builtins): Add SH built-in section.
5742 Document __builtin_thread_pointer and __builtin_set_thread_pointer.
5744 2012-10-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5747 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
5748 Perform non constant step prefetching in inner loop, only
5749 when it is invariant in the entire loop nest.
5750 * tree-ssa-loop-prefetch.c (dump_mem_details): New function to dump
5751 base, step and delta values of memeory reference analysed for
5753 * tree-ssa-loop-prefetch.c (dump_mem_ref): Call dump_mem_details
5754 to print base, step and delta values of memory reference.
5755 * cfgloop.h (loop_outermost): New function that returns outermost
5756 loop for a given loop in a loop nest.
5758 2012-10-09 Richard Guenther <rguenther@suse.de>
5761 * cfgexpand.c (expand_debug_source_expr): Move checking
5762 code conditional on a found decl_debug_args vector.
5764 2012-10-09 Richard Guenther <rguenther@suse.de>
5766 * tree-streamer.c (streamer_tree_cache_get): Move ...
5767 * tree-streamer.h (streamer_tree_cache_get): ... here as inline.
5769 2012-10-09 Jan Hubicka <jh@suse.cz>
5771 * loop-unroll.c (unroll_loop_constant_iterations): Add
5772 update of loop->nb_iterations_upper_bound I missed in my previous
5773 commit; use TRUNC_DIV_EXPR instead of FLOOR_DIV_EXPR to divide
5775 (decide_unroll_runtime_iterations): Avoid overflow.
5776 (unroll_loop_runtime_iterations): Use TRUNC_DIV_EXPR instead of
5777 FLOOR_DIV_EXPR to update iteration bounds.
5778 (decide_peel_simple): Avoid integer overflow when deciding
5779 on number of peelings.
5780 (decide_unroll_stupid): Likewise.
5782 2012-10-09 Tobias Burnus <burnus@net-b.de>
5784 * lto-cgraph.c (input_node_opt_summary): Remove unused code.
5785 * lto-opts.c (append_to_collect_gcc_options): Fix condition.
5786 * lto-symtab.c (lto_cgraph_replace_node): Don't xstrdup string
5787 which is passed to fprintf.
5789 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
5792 * tree.h: Add EXPR_LOC_OR_LOC.
5794 2012-10-09 Nick Clifton <nickc@redhat.com>
5796 PR rtl-optimization/54739
5797 * config/mcore/mcore.md: (anddi3, iordi3, xordi3): Delete patterns.
5800 * config/mcore/mcore.c (mcore_output_movedouble): Fix typo.
5802 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
5805 * fold-const.c (fold_binary_loc): Use build_zero_cst instead of
5806 build_int_cst for a potential vector.
5808 2012-10-08 Uros Bizjak <ubizjak@gmail.com>
5810 * config/i386/atom.md (atom_sse_4): Merge atom_sse_attr attibutes.
5811 (atom_sse_5): Ditto.
5813 2012-10-08 Marc Glisse <marc.glisse@inria.fr>
5816 * config/i386/i386.md (type attribute): Add sseadd1.
5817 (unit attribute): Add support for sseadd1.
5818 (memory attribute): Likewise.
5819 * config/i386/athlon.md: Likewise.
5820 * config/i386/core2.md: Likewise.
5821 * config/i386/atom.md: Likewise.
5822 * config/i386/ppro.md: Likewise.
5823 * config/i386/bdver1.md: Likewise.
5824 * config/i386/sse.md (sse3_h<plusminus_insn>v2df3): Split into...
5825 (sse3_haddv2df3): ... expander.
5826 (*sse3_haddv2df3): ... define_insn. Accept permuted operands.
5827 (sse3_hsubv2df3): ... define_insn.
5828 (*sse3_haddv2df3_low): New define_insn.
5829 (*sse3_hsubv2df3_low): New define_insn.
5831 2012-10-08 Jan Hubicka <jh@suse.cz>
5833 * loop-unswitch.c (unswitch_single_loop): Use
5834 estimated_loop_iterations_int to prevent unswitching when loop
5835 is known to not roll.
5836 * tree-ssa-loop-niter.c (estimated_loop_iterations): Do not segfault
5837 when SCEV is not initialized.
5838 (max_loop_iterations): Likewise.
5839 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Use
5840 estimated_loop_iterations_int to prevent unswithcing when
5841 loop is known to not roll.
5842 * tree-scalar-evolution.c (scev_initialized_p): New function.
5843 * tree-scalar-evolution.h (scev_initialized_p): Likewise.
5844 * loop-unroll.c (decide_peel_once_rolling): Use
5845 max_loop_iterations_int.
5846 (unroll_loop_constant_iterations): Update
5847 nb_iterations_upper_bound and nb_iterations_estimate.
5848 (decide_unroll_runtime_iterations): Use
5849 estimated_loop_iterations or max_loop_iterations;
5850 (unroll_loop_runtime_iterations): fix profile updating.
5851 (decide_peel_simple): Use estimated_loop_iterations
5852 and max_loop_iterations.
5853 (decide_unroll_stupid): Use estimated_loop_iterations
5854 ad max_loop_iterations.
5855 * loop-doloop.c (doloop_modify): Use max_loop_iterations_int.
5856 (doloop_optimize): Likewise.
5857 * loop-iv.c (iv_number_of_iterations): Use record_niter_bound.
5858 (find_simple_exit): Likewise.
5859 * cfgloop.h (struct niter_desc): Remove niter_max.
5861 2012-10-08 Marek Polacek <polacek@redhat.com>
5864 * var-tracking.c (vt_add_function_parameter): Use condition instead
5867 2012-10-08 Dehao Chen <dehao@google.com>
5869 * predict.c (predict_loops): Predict for short-circuit conditions.
5870 (predict_extra_loop_exits): New Function.
5872 2012-10-08 Steven Bosscher <steven@gcc.gnu.org>
5874 * bitmap.h (bitmap_and_into): Update prototype.
5875 * bitmap.c (bitmap_and_into): Return true if the target bitmap
5876 changed, false otherwise.
5878 * df.h (df_dump_insn_problem_function): New function type.
5879 (struct df_problem): Add two functions, to dump just before and
5881 (DF_RD_PRUNE_DEAD_DEFS): New changable flag.
5882 (df_dump_insn_top, df_dump_insn_bottom): New prototypes.
5883 * df-core (df_dump_region): Use dump_bb.
5884 (df_dump_bb_problem_data): New function.
5885 (df_dump_top, df_dump_bottom): Rewrite using df_dump_bb_problem_data.
5886 (df_dump_insn_problem_data): New function.
5887 (df_dump_insn_top, df_dump_insn_bottom): New functions.
5888 * df-scan.c (problem_SCAN): Add NULL fields for new members.
5889 * df-problems.c (df_rd_local_compute): Ignore hard registers if
5890 DF_NO_HARD_REGS is in effect.
5891 (df_rd_transfer_function): If DF_RD_PRUNE_DEAD_DEFS is in effect,
5892 prune reaching defs using the LR problem.
5893 (df_rd_start_dump): Fix dumping of DEFs map.
5894 (df_rd_dump_defs_set): New function.
5895 (df_rd_top_dump, df_rd_bottom_dump): Use it.
5896 (problem_RD): Add NULL fields for new members.
5897 (problem_LR, problem_LIVE): Likewise.
5898 (df_chain_bb_dump): New function.
5899 (df_chain_top_dump): Dump only for artificial DEFs and USEs,
5900 using df_chain_bb_dump.
5901 (df_chain_bottom_dump): Likewise.
5902 (df_chain_insn_top_dump, df_chain_insn_bottom_dump): New functions.
5903 (problem_CHAIN): Add them as new members.
5904 (problem_WORD_LR, problem_NOTE): Add NULL fields for new members.
5905 (problem_MD): Likewise.
5906 * cfgrtl.c (rtl_dump_bb): Use df_dump_insn_top and df_dump_insn_bottom.
5907 (print_rtl_with_bb): Likewise.
5909 * dce.c (init_dce): Use DF_RD_PRUNE_DEAD_DEFS.
5910 * loop-invariant.c (find_defs): Likewise.
5911 * loop-iv.c (iv_analysis_loop_init): Likewise.
5912 * ree.c (find_and_remove_re): Likewise.
5913 * web.c (web_main): Likewise.
5915 2012-10-08 Jason Merrill <jason@redhat.com>
5917 * config/rs6000/rs6000.c (rs6000_code_end): Protect the use of
5918 ASM_WEAKEN_DECL with #if RS6000_WEAK.
5920 2012-10-08 Richard Guenther <rguenther@suse.de>
5922 PR tree-optimization/54825
5923 * tree-ssa-sccvn.c (vn_nary_length_from_stmt): Handle BIT_FIELD_REF.
5924 (init_vn_nary_op_from_stmt): Likewise.
5925 * tree-ssa-pre.c (compute_avail): Use vn_nary_op_lookup_stmt.
5926 * tree-ssa-sccvn.h (sizeof_vn_nary_op): Avoid overflow.
5928 2012-10-08 Richard Guenther <rguenther@suse.de>
5930 * tree-ssa-pre.c (postorder_num): New global.
5931 (compute_antic): Initialize all blocks and adjust for
5933 (my_rev_post_order_compute): Remove.
5934 (init_pre): Use inverted_post_order_compute.
5936 2012-10-08 Bernd Schmidt <bernds@codesourcery.com>
5938 * sched-int.h (schedule_block): Adjust declaration.
5939 * sched-rgn.c (bb_state_array, bb_state): New static variables.
5940 (sched_rgn_init): Initialize them.
5941 (sched_rgn_free): Free them.
5942 (schedule_region): Save scheduling state for future blocks, and
5943 pass such state to schedule_block.
5944 * params.def (PARAM_SCHED_STATE_EDGE_PROB_CUTOFF): New.
5945 * doc/invoke.texi (--param): Document it.
5946 * haifa-sched.c (schedule_block): New arg init_state. Use it to
5947 initialize state if nonnull. All callers changed.
5948 Call advance_one_cycle after scheduling.
5950 2012-10-08 Georg-Johann Lay <avr@gjlay.de>
5953 * doc/invoke.texi (AVR Options): Remove -mshort-calls.
5954 * config/avr/avr.opt (-mshort-calls): Remove option.
5955 * config/avr/avr.h (AVR_HAVE_JMP_CALL): Don't depend on
5958 2012-10-08 Oleg Endo <olegendo@gcc.gnu.org>
5961 * config/sh/sh.md (one_cmplsi2): Make insn_and_split. Add manual
5962 combine matching for an insn sequence where a ge:SI pattern
5965 2012-10-08 Dodji Seketeli <dodji@redhat.com>
5967 PR c++/53528 C++11 attribute support
5968 * plugin.h (register_scoped_attributes): Declare new function.
5969 * tree.h (enu attribute_flags::ATTR_FLAG_CXX_11): New flag.
5970 (lookup_scoped_attribute_spec, cxx_11_attribute_p)
5971 (get_attribute_name, get_attribute_namespace): Declare new functions.
5972 (struct attribute_spec): Remove const qualifier from the members.
5973 * tree.c (comp_type_attributes, private_lookup_attribute)
5974 (lookup_ident_attribute, remove_attribute, merge_attribute)
5975 (attribute_hash_list, attribute_list_contained): Use
5977 * attribs.c (decl_attributes): Don't crash on error_mark_node.
5978 Forbid c++11 attributes appertaining to type-specifiers.
5979 (attribute_hash): Remove global variable.
5980 (attributes_table): New global variable.
5981 (find_attribute_namespace, register_scoped_attribute): New static
5983 (register_scoped_attributes, lookup_scoped_attribute_spec)
5984 (cxx11_attribute_p, get_attribute_name, get_attribute_namespace):
5985 New public functions.
5986 (init_attributes): Register all the GNU attributes into the "gnu"
5988 (register_attribute): Use register_scoped_attribute to register
5989 the attribute into the "gnu" namespace.
5990 (lookup_attribute_spec): Use lookup_scoped_attribute_spec to
5991 lookup the attribute in the "gnu" namespace.
5992 (decl_attributes): Use new get_attribute_namespace and
5993 lookup_scoped_attribute_spec to consider attribute namespaces when
5994 looking up attributes. When operating in c++-11 mode, pass flag
5995 ATTR_FLAG_CXX11 to the spec handler.
5997 2012-10-08 Georg-Johann Lay <avr@gjlay.de>
6000 * config/avr/avr.md (*add<mode>3, add<mode>3, addpsi3): Make
6001 constraint alternative "r,0,r" slighly more expensive.
6002 (sub<mode>3, andqi3, andhi3, andpsi3, andsi3): Ditto.
6003 (iorqi3, iorhi3, iorpsi3, iorsi3): Ditto.
6004 (xorhi3, xorpsi3, xorsi3): Ditto.
6006 2012-10-08 Oleg Endo <olegendo@gcc.gnu.org>
6009 * config/sh/sh.md (*mov<mode>_gbr_load, *mov<mode>_gbr_store): New
6010 insns and accompanying unnamed splits.
6011 * config/sh/predicates.md (general_movsrc_operand,
6012 general_movdst_operand): Reject GBR addresses.
6013 * config/sh/sh-protos.h (sh_find_equiv_gbr_addr): New declaration.
6014 * config/sh/sh.c (sh_address_cost, sh_legitimate_address_p,
6015 sh_secondary_reload): Handle GBR addresses.
6016 (base_reg_disp): New class.
6017 (sh_find_base_reg_disp, sh_find_equiv_gbr_addr): New functions.
6019 2012-10-08 Hans-Peter Nilsson <hp@bitrange.com>
6021 * config/mmix/mmix.c (mmix_output_octa): Don't assume
6022 HOST_WIDEST_INT_PRINT_HEX starts with "0x". Instead use
6023 HOST_WIDE_INT_PRINT_HEX_PURE, falling back to
6024 HOST_WIDEST_INT_PRINT_UNSIGNED.
6026 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
6028 * machmode.h (GET_MODE_UNIT_PRECISION): New macro.
6029 * simplify-rtx.c (simplify_truncation): New function,
6030 extracted from simplify_subreg and (in small part) from
6031 simplify_unary_operation_1.
6032 (simplify_unary_operation_1) <TRUNCATE>: Use it. Remove sign bit
6033 test for !TRULY_NOOP_TRUNCATION_MODES_P.
6034 (simplify_subreg): Use simplify_truncate for lowpart subregs
6035 where both the inner and outer modes are scalar integers.
6036 * config/mips/mips.c (mips_truncated_op_cost): New function.
6037 (mips_rtx_costs): Adjust test for BADDU.
6038 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
6040 2012-10-07 Jan Hubicka <jh@suse.cz>
6042 * ipa-inline-analysis.c (do_estimate_edge_time): Return actual
6043 time spent by the inlined sequence.
6044 (do_estimate_edge_growth): Rename to ...
6045 (do_estimate_edge_time): ... this one; return size of inlined sequence.
6046 * ipa-inline.h (do_estimate_edge_size): New.
6047 (do_estimate_edge_growth): Remove.
6048 (estimate_edge_size): New function.
6049 (estimate_edge_growth): Use it.
6051 2012-10-07 Jan Hubicka <jh@suse.cz>
6053 * lto-cgraph.c (lto_symtab_encoder_new): New parameter FOR_INPUT.
6054 (lto_symtab_encoder_delete): Update.
6055 (lto_symtab_encoder_encode): Update.
6056 (compute_ltrans_boundary): Update.
6057 (input_symtab): Update.
6058 * lto-streamer.h (lto_symtab_encoder_new): Update.
6060 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
6062 * config/mips/mips-protos.h (mips_split_type): New enum.
6063 (mips_split_64bit_move_p, mips_split_doubleword_move): Delete.
6064 (mips_split_move_p, mips_split_move, mips_split_move_insn_p)
6065 (mips_split_move_insn): Declare.
6066 * config/mips/mips.c (mips_tuning_info): New variable.
6067 (mips_load_store_insns): Use mips_split_move_insn_p instead of
6068 mips_split_64bit_move_p.
6069 (mips_emit_move_or_split, mips_mult_move_p): New functions.
6070 (mips_split_64bit_move_p): Rename to...
6071 (mips_split_move_p): ...this and take a mips_split_type argument.
6072 Generalize to all moves. Call mips_mult_move_p.
6073 (mips_split_doubleword_move): Rename to...
6074 (mips_split_move): ...this and take a mips_split_type argument.
6075 Assert that mips_split_move_p holds.
6076 (mips_insn_split_type, mips_split_move_insn_p, mips_split_move_insn):
6078 (mips_output_move): Use mips_split_move_p instead of
6079 mips_split_64bit_move_p. Handle MULT $0, $0 moves.
6080 (mips_save_reg): Use mips_emit_move_or_split.
6081 (mips_sim_reset): Assign to curr_state. Call targetm.sched.init
6083 (mips_sim_init): Call targetm.sched.init_dfa_pre_cycle_insn and
6084 targetm.sched.init_dfa_post_cycle_insn, if defined.
6085 (mips_sim_next_cycle): Assign to curr_state. Use advance_state
6086 instead of state_transition.
6087 (mips_sim_issue_insn): Assign to curr_state. Use
6088 targetm.sched.variable_issue to see how many more insns can be issued.
6089 (mips_seq_time, mips_mult_zero_zero_cost)
6090 (mips_set_fast_mult_zero_zero_p, mips_set_tuning_info)
6091 (mips_expand_to_rtl_hook): New functions.
6092 (TARGET_EXPAND_TO_RTL_HOOK): Define.
6093 * config/mips/mips.md (move_type): Add imul.
6094 (type): Map imul move_types to imul.
6095 (*movdi_32bit, *movti): Add imul alternatives.
6096 Use mips_split_move_insn_p and mips_split_move_insn instead of
6097 mips_split_64bit_move_p and mips_split_doubleword_move in move
6100 2012-10-06 Segher Boessenkool <segher@kernel.crashing.org>
6102 * config/rs6000/rs6000.c (print_operand) ['A']: Delete.
6104 2012-10-06 Paolo Carlini <paolo.carlini@oracle.com>
6107 * ginclude/stdint-wrap.h: In C++11 if __STDC_HOSTED__ define
6108 __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS.
6109 * ginclude/stdint-gcc.h: In C++11 unconditionally define
6110 limit and constant macros.
6112 2012-10-06 Paolo Carlini <paolo.carlini@oracle.com>
6115 * ginclude/stddef.h: In C++11 mode declare nullptr_t in the global
6118 2012-10-06 Jan Hubicka <jh@suse.cz>
6122 * lto-streamer-out.c (produce_symtab): Cleanup; drop v1 API hack.
6124 2012-10-06 Dehao Chen <dehao@google.com>
6127 * gimple-low.c (lower_stmt): Set the block for call args.
6129 2012-10-06 Jan Hubicka <jh@suse.cz>
6131 * doc/invoke.texi (-fprofile-report): Document.
6132 * common.opt (-fprofile-report): New option.
6133 * toplev.c (finalize): Call dump_profile_report.
6134 * toplev.h (profile_report): Declare.
6135 * passes.c (profile_record): New static var.
6136 (check_profile_consistency): New function.
6137 (dump_profile_record): New function.
6138 (execute_one_ipa_transform_pass): Call check_profile_consistency.
6139 (execute_one_pass): Likewise.
6141 2012-10-06 Jan Hubicka <jh@suse.cz>
6144 * lto-streamer.h (lto_symtab_register_decl, lto_symtab_get_resolution,
6145 lto_mark_nothrow_fndecl, lto_fixup_nothrow_decls): Remove.
6146 * lto-symtab.c (lto_symtab_register_decl): Remove.
6148 2012-10-06 Andreas Schwab <schwab@linux-m68k.org>
6150 PR rtl-optimization/54739
6151 * config/m68k/m68k.md (anddi3, iordi3, xordi3, one_cmpldi2): Remove.
6153 2012-10-06 Oleg Endo <olegendo@gcc.gnu.org>
6156 * config/sh/sh.md (define_constants): Add UNSPECV_GBR.
6157 (get_thread_pointer, set_thread_pointer): New expanders.
6158 (load_gbr): Rename to store_gbr. Remove GBR_REG use.
6159 (store_gbr): New insn.
6160 * config/sh/sh.c (prepare_move_operands): Use gen_store_gbr instead of
6161 gen_load_gbr in TLS_MODEL_LOCAL_EXEC case.
6162 (sh1_builtin_p): New function.
6163 (signature_args): Add SH_BLTIN_VP.
6164 (bdesc): Add __builtin_thread_pointer and __builtin_set_thread_pointer.
6166 2012-10-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6168 PR rtl-optimization/54739
6169 * config/pa/pa.md: Remove DImode and, not and, ior and xor patterns
6170 for 32-bit targets. Adjust expanders.
6172 * config/pa/pa.md: Adjust unamed HImode add insn pattern.
6174 2012-10-05 Oleg Endo <olegendo@gcc.gnu.org>
6176 * config/sh/sh.c (builtin_description): Add is_enabled member.
6177 (shmedia_builtin_p): New function.
6178 (bdesc): Use shmedia_builtin_p for existing built-ins.
6179 (sh_media_init_builtins, sh_init_builtins): Merge into single function
6180 sh_init_builtins. Add is_enabled checking. Move variable declarations
6181 to where they are actually used.
6182 (sh_media_builtin_decl, sh_builtin_decl): Merge into single function
6183 sh_builtin_decl. Add is_enabled checking.
6184 (sh_expand_builtin): Move variable declarations to where they are
6187 2012-10-05 Jakub Jelinek <jakub@redhat.com>
6189 * tree-inline.c (expand_call_inline): Move VAR_DECLs with
6190 PARM_DECL origins from remapped DECL_INITIAL's BLOCK_VARS
6191 into id->block's BLOCK_VARS.
6194 * ipa-split.c (split_function): Add debug args and debug source
6195 and normal stmts for args_to_skip which are gimple regs.
6196 * tree-inline.c (copy_debug_stmt): When inlining, adjust source
6197 debug bind stmts to debug binds of corresponding DEBUG_EXPR_DECL.
6199 2012-10-05 Georg-Johann Lay <avr@gjlay.de>
6201 * config/avr/avr.md: Fix indentations of insn C snippets.
6203 2012-10-05 Richard Guenther <rguenther@suse.de>
6206 * tree-ssa-live.c (clear_unused_block_pointer_1): Look at
6207 DECL_DEBUG_EXPR again.
6209 2012-10-05 Jan Hubicka <jh@suse.cz>
6210 Jakub Jelinek <jakub@redhat.com>
6212 PR tree-optimization/33763
6213 * tree-inline.c (expand_call_inline): Silently ignore always_inline
6214 attribute for redefined extern inline functions.
6216 2012-10-04 Jan Hubicka <jh@suse.cz>
6218 * tree-vectorizer.h (vect_estimate_min_profitable_iters): Remove.
6219 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Declare here.
6220 (vect_analyze_loop_operations): Use loop count estimate to rule out
6221 unprofitable vectorization.
6222 (vect_estimate_min_profitable_iters): Return
6223 ret_min_profitable_estimate.
6225 2012-10-05 Jakub Jelinek <jakub@redhat.com>
6227 PR tree-optimization/54810
6228 * tree-vrp.c (register_edge_assert_for_2): Handle
6229 NAME = (unsigned) NAME2; if (NAME cmp CST) for
6230 narrowing casts to unsigned integral type like
6231 NAME = NAME2 & CST2; if (NAME cmp CST) where CST2
6232 is the max value of the unsigned integral type.
6234 2012-10-04 Jeff Law <law@redhat.com>
6237 * config/h8300/h8300.c (h8300_rtx_costs): Fix typo in CONST_INT case.
6239 2012-10-04 Jason Merrill <jason@redhat.com>
6241 * config/rs6000/rs6000.c (rs6000_code_end): Protect the use of
6242 ASM_WEAKEN_DECL with #if RS6000_WEAK.
6244 2012-10-04 Basile Starynkevitch <basile@starynkevitch.net>
6246 * gengtype.c (walk_type): Emit mark_hook when inside a
6247 struct of a union member.
6249 2012-10-04 Georg-Johann Lay <avr@gjlay.de>
6251 * config/avr/predicates.md (flash_operand): New predicate.
6252 * config/avr/avr.md (reload_in<mode>): Use it in operand 1 instead
6255 2012-10-04 Tobias Burnus <burnus@net-b.de>
6257 * gcc.c (record_temp_file, add_sysrooted_prefix, process_command,
6258 do_self_spec, compare_debug_dump_opt_spec_function): Plug memleaks.
6259 (do_spec_1): Ditto, fix out-of-bound access.
6260 * opts.c (common_handle_option): Plug memleak.
6262 2012-10-04 Jason Merrill <jason@redhat.com>
6264 * config/darwin.c (darwin_assemble_visibility): Treat
6265 VISIBILITY_INTERNAL as hidden.
6267 * config/darwin-c.c (find_subframework_file): Add missing const.
6268 (framework_construct_pathname): Likewise.
6270 2012-10-04 Florian Weimer <fweimer@redhat.com>
6272 * doc/cpp.texi (Pragmas): Document #pragma GCC warning, #pragma
6275 2012-10-04 Richard Guenther <rguenther@suse.de>
6278 * tree-ssa-pre.c (do_pre): Make sure to update virtual SSA form before
6279 cleaning up the CFG.
6281 2012-10-04 Richard Guenther <rguenther@suse.de>
6284 * tree-streamer-out.c (write_ts_block_tree_pointers): For
6285 inlined functions outer scopes write the ultimate origin
6286 as BLOCK_ABSTRACT_ORIGIN and BLOCK_SOURCE_LOCATION.
6287 Do not stream the fragment chains.
6288 * tree-streamer-in.c (lto_input_ts_block_tree_pointers): Likewise.
6289 * dwarf2out.c (gen_subprogram_die): Handle NULL DECL_INITIAL.
6290 (dwarf2out_decl): Always output DECL_ABSTRACT function decls.
6292 2012-10-04 Arnaud Charlet <charlet@adacore.com>
6294 * dumpfile.h, dumpfile.c: Remove TDI_ada.
6296 2012-10-04 Yuri Rumyantsev <ysrumyan@gmail.com>
6298 * config/i386/i386.c (ix86_dep_by_shift_count_body) : Add
6299 check on reload_completed since it can be invoked before
6300 register allocation phase in pre-reload schedule.
6301 (ia32_multipass_dfa_lookahead) : Do not use dfa_lookahead for
6302 pre-reload schedule to save compile time.
6303 (ix86_sched_reorder) : Do not perform ready list reordering for
6304 pre-reload schedule to save compile time.
6305 (insn_is_function_arg) : New function. Returns true if lhs of insn is
6306 HW function argument register.
6307 (add_parameter_dependencies) : New function. Add output dependencies
6308 for chain of function adjacent arguments if only there is a move to
6309 likely spilled HW registers. Return first argument if at least one
6310 dependence was added or NULL otherwise.
6311 (avoid_func_arg_motion) : New function. Add output or anti dependency
6312 from insn to first_arg to restrict code motion.
6313 (add_dependee_for_func_arg) : New function. Avoid cross block motion of
6314 function argument through adding dependency from the first non-jump
6316 (ix86_dependencies_evaluation_hook) : New function. Hook for
6317 pre-reload schedule: avoid motion of function arguments passed in
6318 likely spilled HW registers.
6319 (ix86_adjust_priority) : New function. Hook for pre-reload schedule:
6320 set priority of moves from likely spilled HW registers to maximum to
6321 schedule them as soon as possible.
6322 (ix86_sched_init_global): Do not perform multipass scheduling for
6323 pre-reload schedule to save compile time.
6325 2012-10-04 Uros Bizjak <ubizjak@gmail.com>
6327 * configure.ac (noexception_flags): Add -fasynchronous-unwind-tables.
6328 * configure: Regenerate.
6330 2012-10-04 Kaz Kojima <kkojima@gcc.gnu.org>
6332 * config/sh/sh.c (sh_can_use_simple_return_p): Return false for
6333 SHmedia and SHcompact using call cookie.
6334 * config/sh/sh.md (epilogue): Emit non-inlined return insns for
6335 SHmedia and SHcompact using call cookie.
6337 2012-10-03 Oleg Endo <olegendo@gcc.gnu.org>
6340 * config/sh/sh.md (*mov_t_msb_neg): New insn and two accompanying
6341 unnamed split patterns.
6343 2012-10-03 Oleg Endo <olegendo@gcc.gnu.org>
6346 * config/sh/sh.c (parse_validate_atomic_model_option): Handle name
6347 strings in sh_atomic_model.
6348 * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Move macro implementation
6350 * config/sh/sh-c.c (sh_cpu_cpp_builtins): ... this new function.
6351 Add __SH1__ and __SH2__ defines. Add __SH_ATOMIC_MODEL_*__ define.
6352 * config/sh/sh-protos.h (sh_atomic_model): Add name and cdef_name
6354 (sh_cpu_cpp_builtins): Declare new function.
6356 2012-10-03 Dehao Chen <dehao@google.com>
6359 * tree-cfg.c (move_block_to_fn): Update lexical block for phi_args.
6361 2012-10-03 Vladimir Makarov <vmakarov@redhat.com>
6363 * reginfo.c (max_regno_since_last_resize): New.
6364 (reg_preferred_class, reg_alternate_class): Add assert.
6365 (allocate_reg_info): Initialize allocated reg info.
6366 (resize_reg_info): Make bigger reg_info and initialize new memory.
6367 (reginfo_init): Initialize max_regno_since_last_resize.
6368 (setup_reg_classes): Change assert.
6370 2012-10-03 Andrew W. Nosenko <andrew.w.nosenko@gmail.com>
6372 * config/i386/driver-i386.c (host_detect_local_cpu): Fix logic
6373 in SSE and YMM state support check for -march=native.
6375 2012-10-03 Nick Clifton <nickc@redhat.com>
6377 * config/rx/rx.c (struct decl_chain): New local structure.
6378 (warned_decls): New local variable. Contains a stack of decls for
6379 which warnings have been issued.
6380 (add_warned_decl): Adds a decl to the stack.
6381 (already_warned): Returns true if a given decl is on the stack.
6382 (rx_set_current_function): Issue a warning if multiple fast
6383 interrupt handlers are defined.
6384 * config/rx/rx.opt (mwarn-multiple-fast-interrupts): New option.
6385 * doc/invoke.texi: Document the option.
6387 2012-10-03 Mark Kettenis <kettenis@openbsd.org>
6389 * config.gcc (*-*-openbsd4.[3-9]|*-*-openbsd[5-9]*): Set
6390 default_use_cxa_atexit to yes.
6392 2012-10-03 Jakub Jelinek <jakub@redhat.com>
6394 PR rtl-optimization/54792
6395 * sched-deps.c (find_modifiable_mems): Scan also TAIL insn.
6397 2012-10-02 H.J. Lu <hongjiu.lu@intel.com>
6400 * doc/invoke.texi: Document -mprefer-avx128.
6402 2012-10-02 Andrew Pinski <apinski@cavium.com>
6404 * simplify-rtx.c (simplify_unary_operation_1 <case TRUNCATE>):
6405 Don't optimize a truncate of a mem if it is a vector mode.
6407 2012-10-02 Alexandre Oliva <aoliva@redhat.com>
6410 * Makefile.in (VALTRACK_H): Add hash-table.h.
6411 * valtrack.h: Include hash-table.h.
6412 (struct dead_debug_global_entry): New.
6413 (struct dead_debug_hash_descr): New.
6414 (struct dead_debug_global): New.
6415 (struct dead_debug): Rename to...
6416 (struct dead_debug_local): ... this. Adjust all uses.
6417 (dead_debug_global_init, dead_debug_global_finish): New.
6418 (dead_debug_init): Rename to...
6419 (dead_debug_local_init): ... this. Adjust all callers.
6420 (dead_debug_finish): Rename to...
6421 (dead_debug_local_finish): ... this. Adjust all callers.
6422 * valtrack.c (dead_debug_global_init): New.
6423 (dead_debug_init): Rename to...
6424 (dead_debug_local_init): ... this. Take global parameter.
6425 Save it and initialize used bitmap from it.
6426 (dead_debug_global_find, dead_debug_global_insert): New.
6427 (dead_debug_global_replace_temp): New.
6428 (dead_debug_promote_uses): New.
6429 (dead_debug_finish): Rename to...
6430 (dead_debug_local_finish): ... this. Promote remaining uses.
6431 (dead_debug_global_finish): New.
6432 (dead_debug_add): Try to replace global temps first.
6433 (dead_debug_insert_temp): Support global replacements.
6434 * dce.c (word_dce_process_block, dce_process_block): Add
6435 global_debug parameter. Pass it on.
6436 (fast_dce): Initialize, pass on and finalize global_debug.
6437 * df-problems.c (df_set_unused_notes_for_mw): Adjusted.
6438 (df_create_unused_notes, df_note_bb_compute): Likewise.
6439 (df_note_compute): Justify local-only dead debug analysis.
6441 2012-10-02 Alexandre Oliva <aoliva@redhat.com>
6444 * dwarf2out.c (value_format): Use block4 for dw_val_class_loc
6447 2012-10-02 Alexandre Oliva <aoliva@redhat.com>
6450 * var-tracking.c (vt_add_function_parameter): Bail if
6453 2012-10-02 H.J. Lu <hongjiu.lu@intel.com>
6456 * config/i386/driver-i386.c (XCR_XFEATURE_ENABLED_MASK): New.
6457 (XSTATE_FP): Likewise.
6458 (XSTATE_SSE): Likewise.
6459 (XSTATE_YMM): Likewise.
6460 (host_detect_local_cpu): Disable AVX, AVX2, FMA, FMA4 and XOP if
6461 SSE and YMM states aren't supported.
6463 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
6465 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
6466 (*baddu_si): ...this new pattern.
6468 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
6470 * ira-int.h (target_ira_int): Add x_ira_useful_class_mode_regs.
6471 (ira_useful_class_mode_regs): New macro.
6472 * ira.c (clarify_prohibited_class_mode_regs): Set up
6473 ira_useful_class_mode_regs.
6474 * ira-color.c (setup_profitable_hard_regs): Use it to initialise
6475 profitable_hard_regs.
6477 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
6479 * ira.h (target_ira): Add x_ira_class_singleton.
6480 (ira_class_singleton): New macro.
6481 * ira.c (setup_prohibited_class_mode_regs): Set up ira_class_singleton.
6482 * ira-build.c (update_conflict_hard_reg_costs): Use
6483 ira_class_singleton to check for classes with a single
6484 allocatable register.
6485 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Likewise.
6486 (single_reg_class): Likewise. When more than one class is specified,
6487 check whether they have the same singleton register.
6488 (process_single_reg_class_operands): Require single_reg_class
6489 to return NO_REGS or a class with a single allocatable register.
6490 Obtain that register from ira_class_singleton.
6492 2012-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
6494 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
6495 -mcpu=<xxx> is not specified and the compiler is not configured
6496 using --with-cpu=<xxx>, use the bits from the TARGET_DEFAULT to
6497 set the initial options.
6499 2012-10-02 Sharad Singhai <singhai@google.com>
6502 * tree-vect-stmts.c (vectorizable_operation): Add missing return.
6504 2012-10-02 David Edelsohn <dje.gcc@gmail.com>
6506 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
6507 set TARGET_ALTIVEC_VRSAVE for TARGET_ELF.
6508 (rs6000_stack_info): Only set vrsave_mask if TARGET_ALTIVEC_VRSAVE.
6510 2012-10-02 Jakub Jelinek <jakub@redhat.com>
6512 PR tree-optimization/54713
6513 * expr.c (categorize_ctor_elements_1): Don't assume purpose is
6515 * tree-cfg.c (verify_gimple_assign_single): Add verification of
6516 vector CONSTRUCTORs.
6517 * tree-ssa-sccvn.c (vn_reference_lookup_3): For VECTOR_TYPE
6518 CONSTRUCTORs, don't do anything if element type is VECTOR_TYPE,
6519 and don't check index.
6520 * tree-vect-slp.c (vect_get_constant_vectors): VIEW_CONVERT_EXPR ctor
6521 elements first if their type isn't compatible with vector element type.
6523 2012-10-02 Eric Botcazou <ebotcazou@adacore.com>
6525 * tree.h (DECL_NONLOCAL_FRAME): New macro.
6526 * tree-nested.c (get_frame_type): Set DECL_NONLOCAL_FRAME.
6527 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Stream in
6528 DECL_NONLOCAL_FRAME flag.
6529 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Stream out
6530 DECL_NONLOCAL_FRAME flag.
6532 2012-10-02 Marc Glisse <marc.glisse@inria.fr>
6534 * tree-ssa-forwprop.c (forward_propagate_into_cond): Don't use
6535 boolean_type_node for vectors.
6537 2012-10-01 Michael Meissner <meissner@linux.vnet.ibm.com>
6539 * config/rs6000/rs6000.c (toplevel): Include dumpfile.h.
6540 (rs6000_density_test): Rework to accommodate 09-30 change by
6543 * config/rs6000/t-rs6000 (rs6000.o): Add dumpfile.h dependency.
6545 2012-10-01 Dehao Chen <dehao@google.com>
6548 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Use
6549 LOCATION_LOCUS to compare with UNKNOWN_LOCATION.
6550 (slpeel_tree_peel_loop_to_edge): Likewise.
6551 * tree-vectorizer.c (vectorize_loops): Likewise.
6553 2012-10-01 Andrew MacLeod <amacleod@redhat.com>
6556 * optabs.c (expand_atomic_fetch_op_no_fallback): New. Factored code
6557 from expand_atomic_fetch_op.
6558 (expand_atomic_fetch_op): Try atomic_{add|sub} operations in terms of
6559 the other one if direct opcode fails.
6561 2012-10-01 Uros Bizjak <ubizjak@gmail.com>
6563 PR rtl-optimization/54457
6564 * simplify-rtx.c (simplify_subreg):
6565 Simplify (subreg:M (op:N ((x:N) (y:N)), 0)
6566 to (op:M (subreg:M (x:N) 0) (subreg:M (x:N) 0)), where
6567 the outer subreg is effectively a truncation to the original mode M.
6569 2012-10-01 Richard Guenther <rguenther@suse.de>
6571 * builtins.def (ATTR_MATHFN_FPROUNDING): Do not use no-vops
6572 with -frounding-math.
6573 * builtin-attrs.def (ATTR_PURE_NOTHROW_NOVOPS_LIST): Remove.
6574 (ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST): Likewise.
6576 2012-10-01 Eric Botcazou <ebotcazou@adacore.com>
6578 * tree.h (copy_mem_ref_info): Delete.
6579 * tree-ssa-address.c (copy_mem_ref_info): Likewise.
6580 (maybe_fold_tmr): Copy flags manually.
6581 * tree-ssa-loop-im.c (simple_mem_ref_in_stmt): Rewrite.
6583 2012-10-01 Marc Glisse <marc.glisse@inria.fr>
6585 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
6586 Detect the identity.
6587 <VEC_CONCAT>: Handle VEC_SELECTs from the same vector.
6589 2012-10-01 Oleg Endo <olegendo@gcc.gnu.org>
6592 * config/sh/sh.opt (matomic-model): New option.
6593 (msoft-atomic): Mark as deprecated and alias to
6594 matomic-model=soft-gusa.
6595 (mhard-atomic): Delete.
6596 * config/sh/predicates.md (gbr_displacement): New predicate.
6597 * config/sh/sh-protos.h (sh_atomic_model): New struct.
6598 (selected_atomic_model): New declaration.
6599 (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT, TARGET_ATOMIC_SOFT_GUSA,
6600 TARGET_ATOMIC_HARD_LLCS, TARGET_ATOMIC_SOFT_TCB,
6601 TARGET_ATOMIC_SOFT_TCB_GBR_OFFSET_RTX, TARGET_ATOMIC_SOFT_IMASK):
6603 * config/sh/linux.h (SUBTARGET_OVERRIDE_OPTIONS): Adapt setting to
6604 default atomic model.
6605 * config/sh/sh.c (selected_atomic_model_): New global variable.
6606 (selected_atomic_model, parse_validate_atomic_model_option): New
6608 (sh_option_override): Replace atomic selection checks with call to
6609 parse_validate_atomic_model_option.
6610 * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
6611 UNSUPPORTED_HARD_ATOMIC_CPU): Delete.
6612 (DRIVER_SELF_SPECS): Remove atomic checks.
6613 config/sh/sync.md: Update documentation comments.
6614 (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
6615 atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
6616 atomic_<fetchop_name>_fetch<mode>, atomic_nand_fetch<mode>): Use
6617 TARGET_ATOMIC_ANY as condition. Add TARGET_ATOMIC_STRICT check for
6618 SH4A case. Handle new TARGET_ATOMIC_SOFT_TCB and
6619 TARGET_ATOMIC_SOFT_IMASK cases.
6620 (atomic_test_and_set): Handle new TARGET_ATOMIC_SOFT_TCB and
6621 TARGET_ATOMIC_SOFT_IMASK cases.
6622 (atomic_compare_and_swapsi_hard, atomic_exchangesi_hard,
6623 atomic_fetch_<fetchop_name>si_hard, atomic_fetch_nandsi_hard,
6624 atomic_<fetchop_name>_fetchsi_hard, atomic_nand_fetchsi_hard):
6625 Add TARGET_ATOMIC_STRICT check.
6626 (atomic_compare_and_swap<mode>_hard, atomic_exchange<mode>_hard,
6627 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nand<mode>_hard,
6628 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetch<mode>_hard,
6629 atomic_test_and_set_hard): Use TARGET_ATOMIC_HARD_LLCS condition.
6630 (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
6631 atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
6632 atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
6633 atomic_test_and_set_soft): Append _gusa to the insn names and use
6634 TARGET_ATOMIC_SOFT_GUSA as condition.
6635 (atomic_compare_and_swap<mode>_soft_tcb,
6636 atomic_exchange<mode>_soft_tcb,
6637 atomic_fetch_<fetchop_name><mode>_soft_tcb,
6638 atomic_fetch_nand<mode>_soft_tcb,
6639 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
6640 atomic_nand_fetch<mode>_soft_tcb, atomic_test_and_set_soft_tcb):
6642 (atomic_compare_and_swap<mode>_soft_imask,
6643 atomic_exchange<mode>_soft_imask,
6644 atomic_fetch_<fetchop_name><mode>_soft_imask,
6645 atomic_fetch_nand<mode>_soft_imask,
6646 atomic_<fetchop_name>_fetch<mode>_soft_imask,
6647 atomic_nand_fetch<mode>_soft_imask, atomic_test_and_set_soft_imask):
6649 * doc/invoke.texi (SH Options): Document new matomic-model option.
6650 Remove msoft-atomic and mhard-atomic options.
6652 2012-10-01 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6655 * config/s390/s390.c (s390_option_override): Add missing break.
6657 2012-09-30 Sharad Singhai <singhai@google.com>
6659 * dumpfile.c: New file with parts moved from tree-dump.c.
6660 (pflags): New variable.
6662 (alt_dump_file): Ditto.
6663 (dump_files): Update to include additional fields.
6664 (struct dump_option_value_info): Add additional entries.
6665 (get_dump_file_name): Use command line filename if available.
6666 (dump_open_alternate_stream): New function.
6668 (dump_gimple_stmt): Ditto.
6669 (dump_gimple_stmt_loc): Ditto.
6670 (dump_generic_expr): Ditto.
6671 (dump_generic_expr_loc): Ditto.
6672 (dump_printf): Ditto.
6673 (dump_printf_loc): Ditto.
6674 (dump_start): Ditto.
6675 (dump_finish): Ditto.
6676 (dump_begin): Ditto.
6677 (dump_enabled_p): Return true if either of the dump types is enabled.
6678 (dump_initialized_p): Return true if either type of dump is
6680 (dump_end): Do not close standard streams.
6681 (dump_enable_all): Handle filenames for regular dumps.
6682 (dump_switch_p_1): Handle command-line dump filenames.
6683 (opt_info_enable_all): New function.
6684 (opt_info_switch_p_1): Ditto.
6685 (opt_info_switch_p): Ditto.
6686 (dump_kind_p): Ditto.
6687 (dump_basic_block): Ditto.
6688 (dump_combine_total_stats): Ditto.
6689 (dump_remap_tree_vectorizer_verbose): Ditto.
6690 * gimple-pretty-print.h: Rename dump_gimple_stmt to
6691 pp_gimple_stmt_1. All callers updated.
6693 2012-09-30 Sharad Singhai <singhai@google.com>
6695 * doc/invoke.texi: Add documentation for the new -fopt-info option.
6696 * tree-dump.c: Move general dump file related functionality into
6697 dumpfile.c. Remove unneeded headers.
6698 * tree-dump.h: Move function declarations into dumpfile.h.
6699 * dumpfile.h: Include "line-map.h". Add defines for MSG flags.
6700 (struct dump_file_info): Move here from tree-dump.c. Rename flags
6701 to pflags, state to pstate, stream to pstream, filename to
6702 pfilename. All callers updated. Add alt_flags, alt_state,
6703 alt_filenmae, alt_stream.
6704 * tree-vectorizer.c: Include "dumpfile.h". Remove vect_dump.
6705 (vect_set_dump_settings): Remove.
6706 (vect_print_dump_info): Ditto.
6707 * tree-vectorizer.h: Remove declaration of vect_dump and
6708 vect_print_dump_info.
6709 * tree-vect-loop.c: Include "dumpfile.h". Use new dump style.
6710 * tree-vect-data-refs.c: Ditto.
6711 * tree-vect-stmts.c: Ditto.
6712 * tree-vect-slp.c: Ditto.
6713 * tree-vect-patterns.c: Ditto.
6714 * tree-vect-loop-manip.c: Ditto.
6715 * opts.c (vect_set_verbosity_level): Remove.
6716 (common_handle_option): Handle -fopt-info flag. Deprecate
6717 -ftree-vectorizer-verbose.
6718 * tree-parloops.c (gather_scalar_reductions): Remove reference to
6720 * flag-types.h: Remove vect_verbosity_levels.
6721 * common.opt: Add -fopt-info. Deprecate -ftree-vectorizer-verbose.
6722 * opts-global.c (dump_remap_tree_vectorizer_verbose): New function.
6723 (handle_common_deferred_options): Handle -fopt-info and
6724 -ftree-vectorizer-verbose.
6725 * Makefile.in: Add dumpfile.o.
6726 (tree-dump.o): Update dependencies.
6727 (tree-vect-loop.o): Ditto.
6728 (tree-vect-loop-manip.o): Ditto.
6729 (tree-vect-slp.o): Ditto.
6730 (tree-vect-stmts.o): Ditto.
6731 (tree-vectorizer.o): Ditto.
6733 * passes.c (finish_optimization_passes): Instead of using
6734 dump_begin/dump_end, use dump_start/dump_finish. Do not use dump_file.
6735 (pass_init_dump_file): Ditto.
6737 2012-09-30 Joern Rennecke <joern.rennecke@embecosm.com>
6739 PR rtl-optimization/38449:
6740 * hooks.c (hook_bool_const_rtx_const_rtx_true): New function.
6741 * hooks.h (hook_bool_const_rtx_const_rtx_true): Declare.
6742 * target.def: Merge in definitions and documentation for
6743 TARGET_CAN_FOLLOW_JUMP.
6744 * doc/tm.texi.in: Add documentation locations for the above.
6745 * doc/tm.texi: Regenerate.
6746 * reorg.c (follow_jumps): New parameters jump and crossing.
6747 Changed all callers.
6749 2012-09-30 Eric Botcazou <ebotcazou@adacore.com>
6751 * reorg.c (relax_delay_slots): Use delay_insn consistently.
6753 * config/sparc/sparc.c (gen_stack_pointer_dec): Delete.
6754 (sparc_expand_epilogue): Use gen_stack_pointer_inc and adjust.
6755 (sparc_flat_expand_epilogue): Likewise.
6756 (emit_and_preserve): Likewise.
6757 (sparc_fold_builtin): Fix thinko in latest change.
6759 2012-09-30 Andreas Schwab <schwab@linux-m68k.org>
6761 * config/m68k/m68k.md: Add names to bitfield insert and extract
6763 (*insv_8_16_reg): Remove constraints and conditions that assume
6764 that operand 0 could be a MEM.
6765 (*extzv_8_16_reg, *extv_8_16_reg): Likewise, for operand 1.
6767 2012-09-30 Jan Hubicka <jh@suse.cz>
6769 * cfgloop.c (scale_loop_profile): Move to...
6770 * cfgloopmanip.c (scale_loop_profile): .. here; use
6771 scale_loop_frequencies.
6772 (loopify): Use RDIV.
6774 2012-09-28 Jan Hubicka <jh@suse.cz>
6776 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Update profile.
6778 2012-09-28 Jan Hubicka <jh@suse.cz>
6780 * function.c (dup_block_and_redirect): Update profile.
6782 2012-09-29 Andreas Tobler <andreast@fgznet.ch>
6784 * config.gcc: Replace 'host' with 'target' when configuring for
6785 powerpc64*-*-freebsd.
6787 2012-09-29 Marc Glisse <marc.glisse@inria.fr>
6789 * tree.c (truth_type_for): New function.
6790 * tree.h (truth_type_for): Declare.
6791 * gimple-fold.c (and_comparisons_1): Call it.
6792 (or_comparisons_1): Likewise.
6793 * tree-ssa-forwprop.c (forward_propagate_into_cond): Don't use
6794 boolean_type_node for vectors.
6796 2012-09-28 Jan Hubicka <jh@suse.cz>
6798 * basic-block.h (RDIV): Define.
6799 (EDGE_FREQUENCY): Simplify.
6800 (check_probability, combine_probabilities, apply_probability,
6801 inverse_probability): New.
6802 * cfgloop.c (scale_loop_profile): New function.
6803 * cfgloop.h (scale_loop_profile): Declare.
6804 (slpeel_add_loop_guard): Add probability parameter.
6805 (set_prologue_iterations): Add probability parameter.
6806 (slpeel_tree_peel_loop_to_edge): Add bound1 and bound2 parameters;
6807 update probabilities correctly.
6808 (vect_do_peeling_for_alignment, vect_gen_niters_for_prolog_loop): New.
6810 2012-09-20 Bernd Schmidt <bernds@codesourcery.com>
6813 * sched-deps.c (parse_add_or_inc): Remove MINUS handling. Take
6814 STACK_GROWS_DOWNWARD into account.
6816 2012-09-28 Jakub Jelinek <jakub@redhat.com>
6819 * config/i386/predicates.md (nonimmediate_or_const_vector_operand):
6821 * config/i386/i386.c (ix86_expand_vector_logical_operator): New
6823 * config/i386/i386-protos.h (ix86_expand_vector_logical_operator): New
6825 * config/i386/sse.md (<code><mode>3 VI logic): Use it.
6827 PR tree-optimization/54713
6828 * fold-const.c (vec_cst_ctor_to_array): Give up if vector CONSTRUCTOR
6829 has vector elements.
6830 (fold_ternary_loc) <case BIT_FIELD_REF>: Likewise.
6831 * tree-vect-generic.c (vector_element): Don't rely on CONSTRUCTOR elts
6832 indexes. Use BIT_FIELD_REF if CONSTRUCTOR has vector elements.
6833 (lower_vec_perm): Use NULL_TREE CONSTRUCTOR indexes.
6835 2012-09-28 Georg-Johann Lay <avr@gjlay.de>
6837 * config/avr/avr.md (adjust_len): Add lpm.
6838 (reload_in<mode>): Use avr_out_lpm for output. Use "lpm" for
6840 * config/avr/avr-protos.h (avr_out_lpm): New prototype.
6841 * config/avr/avr.c (avr_out_lpm): Make global.
6842 (adjust_insn_length): Handle ADJUST_LEN_LPM.
6844 2012-09-28 Richard Guenther <rguenther@suse.de>
6847 * lto-streamer-out.c (tree_is_indexable): Make PARM_DECLs global.
6848 (lto_output_tree_ref): Handle references to them.
6849 (output_function): Do not output function arguments again.
6850 * lto-streamer-in.c (input_function): Do not input arguments
6851 again, nor overwrite them.
6853 2012-09-28 Richard Guenther <rguenther@suse.de>
6855 * cgraph.h (symtab_node_base): Re-order and pack fields.
6857 2012-09-28 Georg-Johann Lay <avr@gjlay.de>
6859 * config/avr/avr.c (avr_pgm_check_var_decl): Fix non-error diagnostic.
6861 2012-09-28 Georg-Johann Lay <avr@gjlay.de>
6863 PR rtl-optimization/52543
6864 * config/avr/avr.c (avr_mode_dependent_address_p): Return true for
6865 all non-generic address spaces.
6866 (TARGET_SECONDARY_RELOAD): New hook define to...
6867 (avr_secondary_reload): ...this new static function.
6868 * config/avr/avr.md (reload_in<mode>): New insns.
6870 Undo r185605 (mostly):
6871 * config/avr/avr-protos.h (avr_load_lpm): Remove.
6872 * config/avr/avr.c (avr_load_libgcc_p): Don't restrict to __flash
6874 (avr_out_lpm): Also handle loads > 1 byte.
6875 (avr_load_lpm): Remove.
6876 (avr_find_unused_d_reg): New static function.
6877 (avr_out_lpm_no_lpmx): New static function.
6878 (adjust_insn_length): Remove ADJUST_LEN_LOAD_LPM.
6879 * config/avr/avr.md (unspec): Remove UNSPEC_LPM.
6880 (load_<mode>_libgcc): Use MEM instead of UNSPEC_LPM.
6881 (load_<mode>, load_<mode>_clobber): Remove.
6882 (mov<mode>): For multi-byte move from non-generic
6883 16-bit address spaces: Expand to *mov<mode> again.
6884 (load<mode>_libgcc): New expander.
6885 (split-lpmx): Remove split.
6887 2012-09-27 Dehao Chen <dehao@google.com>
6889 * tree.h (tree_constructor): Remove IS_UNKNOWN_LOCATION.
6890 (extern void protected_set_expr_location): Likewise.
6891 (function_args_iter_next): Likewise.
6892 (inlined_function_outer_scope_p): Likewise.
6893 * input.h (IS_UNKNOWN_LOCATION): Likewise.
6894 * fold-const.c (expr_location_or): Likewise.
6895 * lto-cgraph.c (output_node_opt_summary): Likewise.
6896 * dwarf2out.c (add_src_coords_attributes): Likewise.
6897 * tree-eh.c (lower_try_finally_dup_block): Likewise.
6898 * profile.c (branch_prob):
6899 * cfgexpand.c (expand_gimple_cond): Likewise.
6900 (expand_gimple_basic_block): Likewise.
6901 (construct_exit_block): Likewise.
6902 (gimple_expand_cfg): Likewise.
6903 * cfgcleanup.c (try_forward_edges): Likewise.
6904 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
6905 (dump_scope_block): Likewise.
6906 * ipa-prop.c (ipa_write_jump_function): Likewise.
6907 * rtl.h (extern void rtl_check_failed_flag): Likewise.
6908 * gimple.h (gimple_set_location): Likewise.
6909 (gimple_has_location): Likewise.
6910 * cfgrtl.c (unique_locus_on_edge_between_p): Likewise.
6911 (force_nonfallthru_and_redirect): Likewise.
6912 (fixup_reorder_chain): Likewise.
6913 (cfg_layout_merge_blocks): Likewise.
6915 2012-09-27 Meador Inge <meadori@codesourcery.com>
6917 * gcc-ar.c (main): Handle the returning of the sub-process error
6920 2012-09-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6922 * lower-subreg.c (enum classify_move_insn): Rename
6923 SIMPLE_PSEUDO_REG_MOVE to DECOMPOSABLE_SIMPLE_MOVE.
6924 (find_decomposable_subregs): Update.
6925 (decompose_multiword_subregs): Add DECOMPOSE_COPIES parameter.
6926 Only mark pseudo-to-pseudo copies as DECOMPOSABLE_SIMPLE_MOVE
6927 if that parameter is true.
6928 (rest_of_handle_lower_subreg): Call decompose_multiword_subregs
6929 with DECOMPOSE_COPIES false.
6930 (rest_of_handle_lower_subreg2): Call decompose_multiword_subregs
6931 with DECOMPOSE_COPIES true.
6933 2012-09-27 Marek Polacek <polacek@redhat.com>
6935 * doc/gcov.texi (Gcov Data Files): Fix a typo.
6937 2012-09-27 Jakub Jelinek <jakub@redhat.com>
6940 * simplify-rtx.c (simplify_binary_operation_1): Perform
6941 (x - (x & y)) -> (x & ~y) optimization only for integral modes.
6943 2012-09-27 Marc Glisse <marc.glisse@inria.fr>
6947 * doc/extend.texi (Vector Extensions): C++ improvements.
6948 Power of 2 size requirement.
6950 2012-09-27 Richard Guenther <rguenther@suse.de>
6953 * lto-symtab.c (resolution_guessed_p): Remove.
6954 (set_resolution_guessed): Likewise.
6955 (lto_symtab_register_decl): Remove assert.
6956 (lto_symtab_resolve_symbols): Do not alter symbol resolutions
6957 and return the prevailing symbol, checking for multiple prevailing
6959 (lto_symtab_merge_decls_1): Use the result from
6960 lto_symtab_resolve_symbols. Do not alter symbol resolutions.
6962 2012-09-26 Steve Ellcey <sellcey@mips.com>
6965 * doc/install.texi: Fix example.
6967 2012-09-26 Dehao Chen <dehao@google.com>
6969 * tree-ssa-live.c (clear_unused_block_pointer): Use explicitit (void)
6970 for function parameter.
6971 (remove_unused_locals): Don't use LOCATION_BLOCK if it is NULL.
6973 2012-09-26 Oleg Endo <olegendo@gcc.gnu.org>
6975 * doc/extend.texi (bswap Builtins): Change signed types to unsigned
6978 2012-09-26 Ian Lance Taylor <iant@google.com>
6980 * diagnostic.c (bt_callback): Cast pc when calling fprintf.
6982 2012-09-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6984 PR tree-optimization/54674
6985 * gimple-ssa-strength-reduction.c (analyze_increments): Don't
6986 introduce a multiplication with a pointer operand.
6988 2012-09-26 Georg-Johann Lay <avr@gjlay.de>
6991 * doc/tm.texi.in (TARGET_MODE_DEPENDENT_ADDRESS_P): Document new
6992 parameter addrspace.
6993 * doc/tm.texi: Regenerate.
6994 * target.def (mode_dependent_address_p): Add addr_space_t parameter.
6995 * targhooks.h (default_mode_dependent_address_p): Ditto.
6996 * targhooks.c (default_mode_dependent_address_p): Ditto.
6997 * expr.c (convert_move): Pass address space to
6998 mode_dependent_address_p.
6999 * combine.c (combine_simplify_rtx): Ditto.
7000 (make_extraction): Ditto.
7001 (simplify_shift_const_1): Ditto.
7002 (gen_lowpart_for_combine): Ditto.
7003 * lower-subreg.c (simple_move_operand): Ditto.
7004 * recog.c (simplify_while_replacing): Ditto.
7005 (offsettable_address_addr_space_p): Ditto.
7006 (mode_dependent_address_p): Ditto.
7007 * simplify-rtx.c (simplify_unary_operation_1): Ditto.
7008 (simplify_subreg): Ditto.
7009 * config/m68k/m68k.md: Ditto.
7010 * config/vax/vax.md: Ditto.
7011 * config/vax/constraints.md (Q): Ditto.
7012 * config/vax/predicates.md (indexed_memory_operand): Ditto.
7013 * config/alpha/alpha.c (alpha_mode_dependent_address_p): Add
7014 unused addr_space_t parameter.
7015 * config/avr/avr.c (avr_mode_dependent_address_p): Ditto.
7016 * config/h8300/h8300.c (h8300_mode_dependent_address_p): Ditto.
7017 * config/m32r/m32r.c (m32r_mode_dependent_address_p): Ditto.
7018 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): Ditto.
7019 * config/rx/rx.c (rx_mode_dependent_address_p): Ditto.
7020 * config/sparc/sparc.c (sparc_mode_dependent_address_p): Ditto.
7021 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
7023 * config/vax/vax.c (vax_mode_dependent_address_p): Ditto.
7024 * config/xtensa/xtensa.c (xtensa_mode_dependent_address_p): Ditto.
7026 2012-09-26 Christophe Lyon <christophe.lyon@linaro.org>
7028 * tree-ssa-math-opts.c (bswap_stats): Add found_16bit field.
7029 (execute_optimize_bswap): Add support for builtin_bswap16.
7031 2012-09-26 Richard Guenther <rguenther@suse.de>
7033 * tree.h (DECL_IS_BUILTIN): Compare LOCATION_LOCUS.
7035 2012-09-26 Ian Lance Taylor <iant@google.com>
7037 * diagnostic.c: Include "demangle.h" and "backtrace.h".
7038 (bt_stop): New static array.
7039 (bt_callback, bt_err_callback): New static functions.
7040 (diagnostic_action_after_output): Call backtrace_full for DK_ICE.
7041 * Makefile.in (BACKTRACE): New variable.
7042 (BACKTRACEINC, LIBBACKTRACE): New variables.
7043 (BACKTRACE_H): New variable.
7044 (LIBDEPS, LIBS): Add $(LIBBACKTRACE).
7045 (INCLUDES): Add $(BACKTRACEINC).
7046 (diagnostic.o): Depend upon $(DEMANGLE_H) and $(BACKTRACE_H).
7048 2012-09-25 Segher Boessenkool <segher@kernel.crashing.org>
7052 * config/rs6000/rs6000.md (ne0si): Remove unnecessary
7053 earlyclobber. Merge with...
7056 (plus_ne0si): Merge with...
7057 (plus_ne0di): ... to...
7058 (plus_ne0_<mode>): New.
7059 (compare_plus_ne0si): Merge with...
7060 (compare_plus_ne0di)... to...
7061 (compare_plus_ne0_<mode>): New.
7062 (compare_plus_ne0_<mode>_1): New.
7063 (plus_ne0si_compare): Merge with...
7064 (plus_ne0di_compare)... to...
7065 (plus_ne0_<mode>_compare): New.
7067 2012-09-25 Oleg Endo <olegendo@gcc.gnu.org>
7070 * config/sh/constraints.md (Jhb): New constraint.
7071 * config/sh/predicates.md (negt_reg_shl31_operand): New predicate.
7072 * config/sh/sh.md (rotrsi3): New expander.
7073 (rotrsi3_1, *rotrsi3_1, *rotlsi3_1): New insns.
7074 (rotlsi3, rotlhi3): Use const_int_operand predicate instead of
7075 immediate_operand and remove CONST_INT_P checks in expansion code.
7076 (*rotcr): Cleanup variable usage. Handle preceding nott insn. Add
7077 split with swapped operands.
7078 (*rotcr_neg_t, *movt_msb, *negt_msb): New insns and splits.
7080 2012-09-25 Aldy Hernandez <aldyh@redhat.com>
7083 * trans-mem.c (expand_call_tm): Handle late built built-ins.
7085 2012-09-25 Georg-Johann Lay <avr@gjlay.de>
7088 * config/avr/avr-log.c (avr_double_int_pop_digit): Rewrite using
7089 double_int::udivmod.
7091 2012-09-25 Georg-Johann Lay <avr@gjlay.de>
7093 * config/avr/avr.c (avr_set_current_function): Check cfun->machine
7096 2012-09-25 Georg-Johann Lay <avr@gjlay.de>
7099 * config/avr/t-avr: Use ALL_COMPILERFLAGS instead of ALL_CFLAGS
7100 for sources compiled with COMPILER.
7102 2012-09-25 Richard Guenther <rguenther@suse.de>
7105 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Do not merge
7106 cgraph nodes for builtins.
7108 2012-09-25 Jakub Jelinek <jakub@redhat.com>
7110 PR tree-optimization/54676
7111 * tree-vrp.c (set_and_canonicalize_value_range): Handle
7112 one bit precision properly.
7115 * configure.ac (CFLAGS, CXXFLAGS): Remove -Ofast or -Og properly.
7116 * configure: Regenerated.
7118 2012-09-25 Georg-Johann Lay <avr@gjlay.de>
7121 * config/avr/avr.c (avr_map_decompose): Use double_int::from_uhwi
7122 instead of uhwi_to_double_int.
7124 2012-09-25 Richard Guenther <rguenther@suse.de>
7126 * lto-symtab.c (lto_symtab_merge_decls_1): Properly merge
7129 2012-09-25 Richard Guenther <rguenther@suse.de>
7131 PR tree-optimization/53663
7132 * tree-ssa-sccvn.c (vn_reference_lookup_3): Conditional
7133 native encode/interpret translation on VN_WALKREWRITE.
7135 2012-09-24 Dehao Chen <dehao@google.com>
7137 * tree-cfg.c (move_stmt_op): Reset the expr block only when necessary.
7138 (move_block_to_fn): Reset the edge's goto block even
7139 when the goto locus is unknown.
7141 2012-09-24 Lawrence Crowl <crowl@google.com>
7143 * double-int.h (double_int::from_pair): New.
7144 (double_int::wide_mul_with_sign): New.
7145 (double_int::sub_with_overflow): New.
7146 (double_int::neg_with_overflow): New.
7147 (double_int::divmod_with_overflow): New.
7148 (shwi_to_double_int): Remove.
7149 (uhwi_to_double_int): Remove.
7150 (double_int_to_shwi): Remove.
7151 (double_int_to_uhwi): Remove.
7152 (double_int_fits_in_uhwi_p): Remove.
7153 (double_int_fits_in_shwi_p): Remove.
7154 (double_int_fits_in_hwi_p): Remove.
7155 (double_int_mul): Remove.
7156 (double_int_mul_with_sign): Remove.
7157 (double_int_add): Remove.
7158 (double_int_sub): Remove.
7159 (double_int_neg): Remove.
7160 (double_int_div): Remove.
7161 (double_int_sdiv): Remove.
7162 (double_int_udiv): Remove.
7163 (double_int_mod): Remove.
7164 (double_int_smod): Remove.
7165 (double_int_umod): Remove.
7166 (double_int_divmod): Remove.
7167 (double_int_sdivmod): Remove.
7168 (double_int_udivmod): Remove.
7169 (double_int_multiple_of): Remove.
7170 (double_int_setbit): Remove.
7171 (double_int_ctz): Remove.
7172 (double_int_not): Remove.
7173 (double_int_ior): Remove.
7174 (double_int_and): Remove.
7175 (double_int_and_not): Remove.
7176 (double_int_xor): Remove.
7177 (double_int_lshift): Remove.
7178 (double_int_rshift): Remove.
7179 (double_int_lrotate): Remove.
7180 (double_int_rrotate): Remove.
7181 (double_int_negative_p): Remove.
7182 (double_int_cmp): Remove.
7183 (double_int_scmp): Remove.
7184 (double_int_ucmp): Remove.
7185 (double_int_max): Remove.
7186 (double_int_smax): Remove.
7187 (double_int_umax): Remove.
7188 (double_int_min): Remove.
7189 (double_int_smin): Remove.
7190 (double_int_umin): Remove.
7191 (double_int_ext): Remove.
7192 (double_int_sext): Remove.
7193 (double_int_zext): Remove.
7194 (double_int_mask): Remove.
7195 (double_int_max_value): Remove.
7196 (double_int_min_value): Remove.
7197 (double_int_zero_p): Remove.
7198 (double_int_one_p): Remove.
7199 (double_int_minus_one_p): Remove.
7200 (double_int_equal_p): Remove.
7201 (double_int_popcount): Remove.
7202 (extern add_double_with_sign): Remove.
7203 (#define add_double): Remove.
7204 (extern neg_double): Remove.
7205 (extern mul_double_with_sign): Remove.
7206 (extern mul_double_wide_with_sign): Remove.
7207 (#define mul_double): Remove.
7208 (extern lshift_double): Remove.
7209 (extern div_and_round_double): Remove.
7210 * double-int.c (add_double_with_sign): Make static.
7211 (#defined add_double): Localized from header.
7212 (neg_double): Make static.
7213 (mul_double_with_sign): Make static.
7214 (mul_double_wide_with_sign): Make static.
7215 (#defined mul_double): Localized from header.
7216 (lshift_double): Make static.
7217 (div_and_round_double): Make static.
7218 (double_int::wide_mul_with_sign): New.
7219 (double_int::sub_with_overflow): New.
7220 (double_int::neg_with_overflow): New.
7221 (double_int::divmod_with_overflow): New.
7222 * emit-rtl.c (init_emit_once): Change to new double_int API.
7223 * explow.c (plus_constant): Likewise.
7224 * expmed.c (choose_multiplier): Likewise.
7225 * fold-const.c (#define OVERFLOW_SUM_SIGN): Remove.
7226 (int_const_binop_1): Change to new double_int API.
7227 (fold_div_compare): Likewise.
7228 (maybe_canonicalize_comparison): Likewise.
7229 (pointer_may_wrap_p): Likewise.
7230 (fold_negate_const): Likewise.
7231 (fold_abs_const): Likewise.
7232 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
7233 (simplify_const_binary_operation): Likewise.
7234 * tree-chrec.c (tree_fold_binomial): Likewise.
7235 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
7236 * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
7237 * config/avr/avr.c (avr_double_int_push_digit): Likewise.
7238 (avr_map): Likewise.
7239 (avr_map_decompose): Likewise.
7240 (avr_out_insert_bits): Likewise.
7242 2012-09-24 Janis Johnson <janisjo@codesourcery.com>
7244 * doc/sourcebuild.texi (Selectors): Document the use of target
7245 and xfail used together.
7247 2012-09-24 Richard Guenther <rguenther@suse.de>
7250 * tree-ssa-live.c (clear_unused_block_pointer_1): Do not
7251 handle DECL_DEBUG_EXPR_IS_FROM here...
7252 (clear_unused_block_pointer): ... but here when walking all
7255 2012-09-24 Richard Guenther <rguenther@suse.de>
7257 PR tree-optimization/54684
7258 * tree-ssa-ccp.c (optimize_unreachable): Properly update stmts.
7260 2012-09-24 Marc Glisse <marc.glisse@inria.fr>
7262 * tree-ssa-forwprop.c: Include tree-ssa-propagate.h.
7263 (simplify_bitfield_ref): Handle constructors.
7264 * Makefile.in (tree-ssa-forwprop.o): Depend on tree-ssa-propagate.h.
7266 2012-09-24 Richard Guenther <rguenther@suse.de>
7268 * tree-ssa-pre.c (bitmap_find_leader, create_expression_by_pieces,
7269 find_or_generate_expression): Remove dominating stmt argument.
7270 (find_leader_in_sets, phi_translate_1, bitmap_find_leader,
7271 create_component_ref_by_pieces_1, create_component_ref_by_pieces,
7272 do_regular_insertion, do_partial_partial_insertion): Adjust.
7273 (compute_avail): Do not set uids.
7275 2012-09-24 Eric Botcazou <ebotcazou@adacore.com>
7277 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream in
7278 TYPE_NONALIASED_COMPONENT flag.
7279 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream out
7280 TYPE_NONALIASED_COMPONENT flag.
7282 2012-09-24 Jia Liu <proljc@gmail.com>
7284 * doc/lto.texi: Separate sections.
7285 * doc/plugins.texi: Likewise.
7287 2012-09-24 Richard Guenther <rguenther@suse.de>
7290 * gimple.c (gimple_copy): Properly mark the copy modified
7291 if SSA operands are present.
7293 2012-09-23 Eric Botcazou <ebotcazou@adacore.com>
7295 PR tree-optimization/54669
7296 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Invoke
7297 maybe_clean_or_replace_eh_stmt on the modified use statements.
7299 2012-09-23 Marc Glisse <marc.glisse@inria.fr>
7301 * expr.c (do_store_flag): Remove duplicated code.
7303 2012-09-22 Segher Boessenkool <segher@kernel.crashing.org>
7305 * config/rs6000/predicates.md (altivec_register_operand,
7306 vsx_register_operand, vfloat_operand, vint_operand,
7307 vlogical_operand, gpc_reg_operand, cc_reg_operand,
7308 cc_reg_not_cr0_operand, cc_reg_not_micro_cr0_operand):
7309 If op is a SUBREG, consider its SUBREG_REG instead.
7311 2012-09-22 Uros Bizjak <ubizjak@gmail.com>
7313 * optabs.c (prepare_cmp_insn): Expand comparison of the result
7314 of memcmp through generic comparison expansion code.
7316 2012-09-21 Anthony Green <green@moxielogic.com>
7318 * config/moxie/moxie.opt: Add -mno-crt0 option.
7319 * config/moxie/moxie.h (STARTFILE_SPEC): Handle -mno-crt0 option.
7320 * doc/invoke.texi (Option Summary): Document -mno-crt0 option.
7322 2012-09-21 Jack Howarth <howarth@bromo.med.uc.edu>
7325 * Makefile.in (lto-symtab.o): Remove gt-lto-symtab.h dependency.
7327 2012-09-21 Dehao Chen <dehao@google.com>
7330 * tree-eh.c (lower_try_finally_dup_block): Set the correct block for
7331 stmts in the duplicated EH block.
7333 2012-09-21 Richard Guenther <rguenther@suse.de>
7335 PR tree-optimization/54647
7336 * tree-ssa-pre.c (compute_avail): Do not put COND_EXPR
7337 or VEC_COND_EXPR into EXP_GEN again.
7339 2012-09-21 Jakub Jelinek <jakub@redhat.com>
7341 PR tree-optimization/54629
7342 * tree-loop-distribution.c (classify_partition): Free loop nest only
7343 after freeing ddr. Free ddr and loop nest also if successful.
7345 2012-09-21 Matthias Klose <doko@ubuntu.com>
7347 * config/arm/arm.c (arm_mangle_type): Don't warn anymore that
7348 4.4 has changed the `va_list' mangling.
7350 2012-09-21 Eric Botcazou <ebotcazou@adacore.com>
7352 PR rtl-optimization/54290
7353 PR rtl-optimization/54644
7354 * reload1.c (choose_reload_regs): Fix thinko in previous change.
7356 2012-09-20 Segher Boessenkool <segher@kernel.crashing.org>
7358 * config/rs6000/rs6000.md (define_split for plus_eqsi):
7361 2012-09-20 Eric Botcazou <ebotcazou@adacore.com>
7363 * reload1.c (choose_reload_regs): Add missing #ifdef/#endif pair.
7365 2012-09-20 Bernd Schmidt <bernds@codesourcery.com>
7368 * haifa-sched.c (schedule_block): Skip find_modifiable_mems if using
7369 SCHED_PRESSURE_MODEL.
7371 2012-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
7373 * rtlanal.c (dead_or_set_regno_p): Fix COND_EXEC handling.
7375 2012-09-20 Marek Polacek <polacek@redhat.com>
7377 * tree-ssa-operands.c (get_expr_operands): Merge identical cases.
7379 2012-09-20 Marek Polacek <polacek@redhat.com>
7381 * tree-ssa-threadupdate.c (mark_threaded_blocks): Don't cast XNEWVEC's
7383 (create_edge_and_update_destination_phis): Likewise.
7385 2012-09-20 Martin Jambor <mjambor@suse.cz>
7387 * function.c (push_cfun): Check old current_function_decl matches
7388 old cfun, set new current_function_decl to the decl of the new cfun.
7389 (push_struct_function): Likewise.
7390 (pop_cfun): Likewise.
7391 (allocate_struct_function): Move call to
7392 invoke_set_current_function_hook to the end of the function.
7393 * cfgexpand.c (estimated_stack_frame_size): Do not set and restore
7394 current_function_decl.
7395 * cgraph.c (cgraph_release_function_body): Likewise.
7396 * cgraphunit.c (cgraph_process_new_functions): Likewise.
7397 (cgraph_add_new_function): Likewise.
7398 (cgraph_analyze_function): Likewise.
7399 (assemble_thunk): Set cfun to NULL at the end.
7400 (expand_function): Move call to set_cfun downwards.
7401 * gimple-low.c (record_vars_into): Only check current_function_decl
7402 before possibly doing push_cfun.
7403 * gimplify.c (gimplify_function_tree): Do not set and restore
7404 current_function_decl.
7405 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
7406 (inline_analyze_function): Likewise.
7407 * ipa-prop.c (ipa_analyze_node): Likewise.
7408 * ipa-pure-const.c (analyze_function): Likewise.
7409 * lto-streamer-in.c (lto_input_function_body): Do not set
7410 current_function_decl.
7411 * lto-streamer-out.c (output_function): Do not set and restore
7412 current_function_decl.
7413 * omp-low.c (finalize_task_copyfn): Likewise.
7414 (expand_omp_taskreg): Likewise.
7415 (create_task_copyfn): Likewise, move push_cfun up quite a bit.
7416 * passes.c (dump_passes): Do not set and restore current_function_decl.
7417 (do_per_function): Likewise.
7418 (do_per_function_toporder): Likewise.
7419 * trans-mem.c (ipa_tm_scan_irr_function): Likewise.
7420 (ipa_tm_transform_transaction): Likewise.
7421 (ipa_tm_transform_clone): Likewise.
7422 (ipa_tm_execute): Likewise.
7423 * tree-emutls.c (lower_emutls_function_body): Likewise.
7424 * tree-inline.c (initialize_cfun): Do not call pop_cfun.
7425 (tree_function_versioning): Do not call push_cfun, do not set and
7426 restore current_function_decl. Remove assert checking consistency of
7427 cfun and current_function_decl.
7428 * tree-profile.c (tree_profiling): Do not set and restore
7429 current_function_decl.
7430 * tree-sra.c (convert_callers_for_node): Do not set
7431 current_function_decl.
7432 (convert_callers): Do not restore current_function_decl.
7433 (modify_function): Do not set current_function_decl.
7434 * tree-ssa-structalias.c (ipa_pta_execute): Do not set and restore
7435 current_function_decl.
7437 2012-09-20 Diego Novillo <dnovillo@google.com>
7440 * config/vxworks.c (vxworks_emutls_var_init): Update for new
7441 VEC_quick_push interface.
7443 2012-09-20 Richard Guenther <rguenther@suse.de>
7445 PR tree-optimization/54634
7446 * tree-data-ref.c (get_references_in_stmt): For now give
7447 up for pure functions.
7449 2012-09-20 Chen Wei-Ren <chenwj@iis.sinica.edu.tw>
7451 * doc/lto.texi: Correct typo.
7453 2012-09-19 Dehao Chen <dehao@google.com>
7455 * config/s390/s390.c (s390_chunkify_start): Replacing INSN_LOCATOR.
7456 * config/spu/spu.c (emit_nop_for_insn): Likewise.
7458 (spu_emit_branch_hint): Likewise.
7459 (insert_hbrp_for_ilb_runout): Likewise.
7460 * config/mep/mep.c (mep_make_bundle): Likewise.
7461 (mep_bundle_insns): Likewise.
7462 * config/sh/sh.c (gen_block_redirect): Likewise.
7463 * config/c6x/c6x.c (gen_one_bundle): Likewise.
7464 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Likewise.
7465 * config/picochip/picochip.c (picochip_reorg): Likewise.
7466 * config/arm/arm.c (require_pic_register): Likewise.
7467 * config/mips/mips.c (mips16_gp_pseudo_reg): Likewise.
7468 * config/bfin/bfin.c (gen_one_bundle): Likewise.
7470 2012-09-19 Mark Kettenis <kettenis@openbsd.org>
7472 * config.gcc (hppa*-*-openbsd*): New target.
7473 * config/pa/pa-openbsd.h: New file.
7474 * config/pa/pa32-openbsd.h: New file.
7475 * config/host-openbsd.c: Update copyright year.
7476 (TRY_EXCEPT_VM_SPACE): Define for OpenBSD/hppa.
7478 2012-09-19 Martin Jambor <mjambor@suse.cz>
7480 * ipa-prop.c (prune_expression_for_jf): New function.
7481 (ipa_set_jf_constant): Use it.
7482 (ipa_set_jf_arith_pass_through): Likewise.
7483 (determine_known_aggregate_parts): Likewise.
7485 2012-09-19 Steve Ellcey <sellcey@mips.com>
7487 * config.gcc (mips*-mti-elf*): New target.
7488 * config/mips/mti-elf.h: New file.
7489 * config/mips/t-mti-elf: New file.
7491 2012-09-19 Dehao Chen <dehao@google.com>
7493 * toplev.c (general_init): Init block_locations.
7494 * tree.c (tree_set_block): New.
7495 (tree_block): Change to use LOCATION_BLOCK.
7496 * tree.h (TREE_SET_BLOCK): New.
7497 * final.c (reemit_insn_block_notes): Change to use LOCATION_BLOCK.
7498 (final_start_function): Likewise.
7499 * input.c (expand_location_1): Likewise.
7500 * input.h (LOCATION_LOCUS): New.
7501 (LOCATION_BLOCK): New.
7502 (IS_UNKNOWN_LOCATION): New.
7503 * fold-const.c (expr_location_or): Change to use new location.
7504 * reorg.c (emit_delay_sequence): Likewise.
7505 (try_merge_delay_insns): Likewise.
7506 * modulo-sched.c (dump_insn_location): Likewise.
7507 * lto-streamer-out.c (lto_output_location_bitpack): Likewise.
7508 * lto-cgraph.c (output_node_opt_summary): Likewise.
7509 * jump.c (rtx_renumbered_equal_p): Likewise.
7510 * ifcvt.c (noce_try_move): Likewise.
7511 (noce_try_store_flag): Likewise.
7512 (noce_try_store_flag_constants): Likewise.
7513 (noce_try_addcc): Likewise.
7514 (noce_try_store_flag_mask): Likewise.
7515 (noce_try_cmove): Likewise.
7516 (noce_try_cmove_arith): Likewise.
7517 (noce_try_minmax): Likewise.
7518 (noce_try_abs): Likewise.
7519 (noce_try_sign_mask): Likewise.
7520 (noce_try_bitop): Likewise.
7521 (noce_process_if_block): Likewise.
7522 (cond_move_process_if_block): Likewise.
7523 (find_cond_trap): Likewise.
7524 * ipa-prop.c (ipa_set_jf_constant): Likewise.
7525 (ipa_write_jump_function): Likewise.
7526 * dwarf2out.c (add_src_coords_attributes): Likewise.
7527 * expr.c (expand_expr_real): Likewise.
7528 * tree-parloops.c (create_loop_fn): Likewise.
7529 * recog.c (peep2_attempt): Likewise.
7530 * function.c (free_after_compilation): Likewise.
7531 (expand_function_end): Likewise.
7532 (set_insn_locations): Likewise.
7533 (thread_prologue_and_epilogue_insns): Likewise.
7534 * print-rtl.c (print_rtx): Likewise.
7535 * profile.c (branch_prob): Likewise.
7536 * trans-mem.c (ipa_tm_scan_irr_block): Likewise.
7537 * gimplify.c (gimplify_call_expr): Likewise.
7538 * except.c (duplicate_eh_regions_1): Likewise.
7539 * emit-rtl.c (try_split): Likewise.
7540 (make_insn_raw): Likewise.
7541 (make_debug_insn_raw): Likewise.
7542 (make_jump_insn_raw): Likewise.
7543 (make_call_insn_raw): Likewise.
7544 (emit_pattern_after_setloc): Likewise.
7545 (emit_pattern_after): Likewise.
7546 (emit_debug_insn_after): Likewise.
7547 (emit_pattern_before): Likewise.
7548 (emit_insn_before_setloc): Likewise.
7549 (emit_jump_insn_before): Likewise.
7550 (emit_call_insn_before_setloc): Likewise.
7551 (emit_call_insn_before): Likeise.
7552 (emit_debug_insn_before_setloc): Likewise.
7553 (emit_copy_of_insn_after): Likewise.
7554 (insn_locators_alloc): Remove.
7555 (insn_locators_finalize): Remove.
7556 (insn_locators_free): Remove.
7557 (set_curr_insn_source_location): Remove.
7558 (get_curr_insn_source_location): Remove.
7559 (set_curr_insn_block): Remove.
7560 (get_curr_insn_block): Remove.
7561 (locator_scope): Remove.
7562 (insn_scope): Change to use new location.
7563 (locator_location): Remove.
7564 (insn_line): Change to use new location.
7565 (locator_file): Remove.
7566 (insn_file): Change to use new location.
7567 (locator_eq): Remove.
7568 (insn_locations_init): New.
7569 (insn_locations_finalize): New.
7570 (set_curr_insn_location): New.
7571 (curr_insn_location): New.
7572 * cfgexpand.c (gimple_assign_rhs_to_tree): Change to use new location.
7573 (expand_gimple_cond): Likewise.
7574 (expand_call_stmt): Likewise.
7575 (expand_gimple_stmt_1): Likewise.
7576 (expand_gimple_basic_block): Likewise.
7577 (construct_exit_block): Likewise.
7578 (gimple_expand_cfg): Likewise.
7579 * cfgcleanup.c (try_forward_edges): Likewise.
7580 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
7581 (dump_scope_block): Likewise.
7582 (remove_unused_locals): Likewise.
7583 * rtl.c (rtx_equal_p_cb): Likewise.
7584 (rtx_equal_p): Likewise.
7585 * rtl.h (XUINT): New.
7586 (INSN_LOCATOR): Remove.
7587 (CURR_INSN_LOCATION): Remove.
7588 (INSN_LOCATION): New.
7589 (INSN_HAS_LOCATION): New.
7590 * tree-inline.c (remap_gimple_op_r): Change to use new location.
7591 (copy_tree_body_r): Likewise.
7592 (copy_phis_for_bb): Likewise.
7593 (expand_call_inline): Likewise.
7594 * tree-streamer-in.c (lto_input_ts_exp_tree_pointers): Likewise.
7595 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
7596 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
7597 * combine.c (try_combine): Likewise.
7598 * tree-outof-ssa.c (set_location_for_edge): Likewise.
7599 (insert_partition_copy_on_edge): Likewise.
7600 (insert_value_copy_on_edge): Likewise.
7601 (insert_rtx_to_part_on_edge): Likewise.
7602 (insert_part_to_rtx_on_edge): Likewise.
7603 * basic-block.h (edge_def): Remove field.
7604 * gimple.h (gimple_statement_base): Remove field.
7605 (gimple_bb): Change to use new location.
7606 (gimple_set_block): Likewise.
7607 (gimple_has_location): Likewise.
7608 * tree-cfg.c (make_cond_expr_edges): Likewise.
7609 (make_goto_expr_edges): Likewise.
7610 (gimple_can_merge_blocks_p): Likewise.
7611 (move_stmt_op): Likewise.
7612 (move_block_to_fn): Likewise.
7613 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise.
7614 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7615 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
7616 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
7617 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
7618 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
7619 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
7620 * config/score/score.c (score_output_mi_thunk): Likewise.
7621 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
7622 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
7623 * cfgrtl.c (unique_locus_on_edge_between_p): Likewise.
7624 (unique_locus_on_edge_between_p): Likewise.
7625 (emit_nop_for_unique_locus_between): Likewise.
7626 (force_nonfallthru_and_redirect): Likewise.
7627 (fixup_reorder_chain): Likewise.
7628 (cfg_layout_merge_blocks): Likewise.
7629 * stmt.c (emit_case_nodes): Likewise.
7631 2012-09-19 Bernd Schmidt <bernds@codesourcery.com>
7633 * dbgcnt.def (sched_breakdep): New counter.
7634 * haifa-sched.c (update_insn_after_change): New static function,
7635 broken out of haifa_change_pattern.
7636 (haifa_change_pattern): Call it.
7637 (dep_t heap vecs): Declare.
7638 (INSN_COST): Define earlier.
7639 (next_cycle_replace_deps, next_cycle_apply): New static variables.
7640 (apply_replacement): New static function.
7641 (recompute_todo_spec): New argument FOR_BACKTRACK. All callers
7642 changed. Handle DEP_REPLACE deps.
7643 (contributes_to_priority_p): False for replaceable deps.
7644 (must_restore_pattern_p, restore_pattern): New static functions.
7645 (schedule_insn): Use them. Apply replacements for broken deps.
7646 (struct haifa_saved_data): Add new fields to keep track of
7648 (save_backtrack_point): Initialize them.
7649 (undo_replacements_for_backtrack): New static function.
7650 (restore_last_backtrack_point, free_topmost_backtrack_point):
7651 Use it and keep track of replacements.
7652 (perform_replacements_new_cycle, undo_all_replacements): New static
7654 (schedule_block): Call these two as necessary. Call
7655 find_modifiable_mems.
7656 (try_ready): Tweak the assert. Check for DEP_POSTPONED.
7657 * sched-deps.c: Include "emit-rtl.h".
7658 (init_dep_1): Initialize DEP_NONREG, DEP_MULTIPLE and DEP_REPLACE.
7659 (dep_spec_p): True for DEP_REPLACE deps.
7660 (mark_as_hard): New static variable.
7661 (update_dep): Update DEP_NONREG and DEP_MULTIPLE.
7662 (add_dependence_list): New argument hard. All callers changed. Set
7663 and clear mark_as_hard around function body.
7664 (add_dependence_list_and_free): Likewise.
7665 (haifa_note_mem_dep): Set DEP_NONREG.
7666 (haifa_note_dep): Likewise if mark_as_hard is true.
7667 (sched_analyze_insn): Switch loop with if statement testing for
7669 (struct mem_inc_info): New.
7670 (attempt_change, parse_add_or_inc, find_inc, find_mem): New static
7672 (find_modifiable_mems): New function.
7673 * sched-int.h (struct dep_replacement): New.
7674 (struct _dep): Add replace, nonreg and multiple fields. Make type and
7676 (UNKNOWN_DEP_COST): Change to match the bitfield.
7677 (DEP_NONREG, DEP_MULTIPLE, DEP_REPLACE): New macros.
7678 (DEP_POSTPONED): New macro.
7679 (DEP_CANCELLED): Renumber.
7680 (find_modifiable_mems): Declare.
7681 (enum SCHED_FLAGS): Add DONT_BREAK_DEPENDENCIES.
7682 * sched-rgn.c (init_ready_list): Set TODO_SPEC here.
7683 (new_ready): Don't set HARD_DEP, use DEP_POSTPONED.
7684 (debug_dependencies): Dump DEP_NONREG and DEP_MULTIPLE.
7685 * Makefile.in (sched-deps.o): Update dependencies.
7686 * config/c6x/c6x.c (in_hwloop): New static variable.
7687 (c6x_set_sched_flags): If it is true, add DONT_BREAK_DEPENDENCIES.
7688 (hwloop_optimize): Set and clear it around preliminary scheduling pass.
7690 2012-09-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
7692 * config/rs6000/rs6000-builtin.def: Add __builtin_ppc_get_timebase
7693 and __builtin_ppc_mftb.
7694 * config/rs6000/rs6000.c (rs6000_expand_zeroop_builtin): New function
7695 to expand an expression that calls a built-in without arguments.
7696 (rs6000_expand_builtin): Add __builtin_ppc_get_timebase and
7698 (rs6000_init_builtins): Likewise.
7699 * config/rs6000/rs6000.md (rs6000_get_timebase): New pattern.
7700 (rs6000_get_timebase_ppc32): New pattern.
7701 (rs6000_mftb_<mode>): New pattern.
7703 * doc/extend.texi (PowerPC Built-in Functions): New section.
7704 (PowerPC AltiVec/VSX Built-in Functions): Move some built-ins
7705 unrelated to Altivec/VSX to the new section.
7707 2012-09-19 David Edelsohn <dje.gcc@gmail.com>
7709 * rs6000.md (mac*): Remove extra spaces.
7712 2012-09-19 Oleg Endo <olegendo@gcc.gnu.org>
7715 * config/sh/predicates.md (arith_reg_or_t_reg_operand): New predicate.
7716 * config/sh/sh.md (*rotcr): Use arith_reg_or_t_reg_operand predicate.
7717 Handle the case where one of the operands is T_REG.
7718 Add new pattern to handle MSB extraction.
7720 2012-09-19 Oleg Endo <olegendo@gcc.gnu.org>
7723 * config/sh/sh.md (*addc): Add pattern to handle one bit left shifts.
7725 2012-09-19 Oleg Endo <olegendo@gcc.gnu.org>
7727 * config/sh/sh.md (prologue, epilogue): Use braced strings.
7729 2012-09-19 Eric Botcazou <ebotcazou@adacore.com>
7731 PR rtl-optimization/54290
7732 * reload1.c (choose_reload_regs): Also take into account secondary MEMs
7733 to remove address replacements for inherited reloads.
7734 (replaced_subreg): Move around.
7736 2012-09-19 David Edelsohn <dje.gcc@gmail.com>
7738 * config/rs6000/aix61.h (TARGET_DEFAULT): Add MASK_PPC_GPOPT,
7739 MASK_PPC_GFXOPT, and MASK_MFCRF.
7741 2012-09-19 Richard Guenther <rguenther@suse.de>
7743 * passes.c (init_optimization_passes): For -Og move
7744 pass_object_sizes inbetween CCP and copyprop.
7746 2012-09-19 Richard Guenther <rguenther@suse.de>
7748 * tree-ssa-forwprop.c (get_prop_source_stmt): Simplify.
7750 2012-09-19 Jan Hubicka <jh@suse.cz>
7752 * symtab.c (insert_to_assembler_name_hash): Do not insert
7754 (unlink_from_assembler_name_hash): NULL out pointers of unlinked var.
7755 (symtab_prevail_in_asm_name_hash): New.
7756 (symtab_initialize_asm_name_hash): Break out from ...
7757 (symtab_node_for_asm): ... here.
7758 (dump_symtab_base): Dump LTO file data.
7759 (verify_symtab_base): Register vars are not in symtab.
7760 * cgraph.h (symtab_initialize_asm_name_hash,
7761 symtab_prevail_in_asm_name_hash): New functions.
7762 (symtab_real_symbol_p): New inline.
7763 * lto-symtab.c: Do not include gt-lto-symtab.h.
7764 (lto_symtab_entry_def): Remove.
7765 (lto_symtab_entry_t): Remove.
7766 (lto_symtab_identifiers): Remove.
7767 (lto_symtab_free): Remove.
7768 (lto_symtab_entry_hash): Remove.
7769 (lto_symtab_entry_eq): Remove.
7770 (lto_symtab_entry_marked_p): Remove.
7771 (lto_symtab_maybe_init_hash_table): Remove.
7772 (resolution_guessed_p, set_resolution_guessed): New functions.
7773 (lto_symtab_register_decl): Only set resolution info.
7774 (lto_symtab_get, lto_symtab_get_resolution): Remove.
7775 (lto_symtab_merge): Reorg to work across symtab; do nothing if decls
7777 (lto_symtab_resolve_replaceable_p): Reorg to work on symtab.
7778 (lto_symtab_resolve_can_prevail_p): Likewise; only real symbols can
7780 (lto_symtab_resolve_symbols): Reorg to work on symtab.
7781 (lto_symtab_merge_decls_2): Likewise.
7782 (lto_symtab_merge_decls_1): Likewise; add debug dumps.
7783 (lto_symtab_merge_decls): Likewise; do not merge at ltrans stage.
7784 (lto_symtab_merge_cgraph_nodes_1): Reorg to work on symtab.
7785 (lto_symtab_merge_cgraph_nodes): Likewise; do not merge at ltrans
7787 (lto_symtab_prevailing_decl): Rewrite to lookup into symtab.
7788 * lto-streaer.h (lto_symtab_free): Remove.
7789 * lto-cgraph.c (add_references): Cleanup.
7790 * varpool.c (varpool_assemble_decl): Skip hard regs.
7792 2012-09-19 Richard Guenther <rguenther@suse.de>
7795 * common/common-target.h (OPT_LEVELS_1_PLUS_NOT_DEBUG): Add.
7797 2012-09-19 Richard Guenther <rguenther@suse.de>
7800 * common.opt (optimize_debug): New variable.
7801 (Og): New optimization level.
7802 * doc/invoke.texi (Og): Document.
7803 * opts.c (maybe_default_option): Add debug parameter.
7804 (maybe_default_options): Likewise.
7805 (default_options_optimization): Handle -Og.
7806 (common_handle_option): Likewise.
7807 * passes.c (gate_all_optimizations): Do not run with -Og.
7808 (gate_all_optimizations_g): New gate, run with -Og.
7809 (pass_all_optimizations_g): New container pass, run with -Og.
7810 (init_optimization_passes): Schedule pass_all_optimizations_g
7811 alongside pass_all_optimizations.
7813 2012-09-19 Richard Guenther <rguenther@suse.de>
7815 PR tree-optimization/54132
7816 * tree-loop-distribution.c (classify_partition): Properly
7817 check dependences for memmove.
7818 * tree-data-ref.h (compute_affine_dependence): Declare.
7819 * tree-data-ref.c (compute_affine_dependence): Export.
7821 2012-09-19 Zhenqiang Chen <zhenqiang.chen@arm.com>
7824 * bb-reorder.c (connect_better_edge_p): New added.
7825 (find_traces_1_round): When optimizing for size, ignore edge frequency
7826 and probability, and handle all in one round.
7827 (bb_to_key): Use bb->index as key when optimizing for size.
7828 (better_edge_p): The bb with smaller index is better when optimizing
7830 (connect_traces): When optimizing for size, connect block n with
7831 block n + 1; connect trace m with trace m + 1 if falling through.
7832 (gate_handle_reorder_blocks): Enable bbro when optimizing for -Os.
7834 2012-09-19 Bin Cheng <bin.cheng@arm.com>
7836 * fold-const.c (fold_truth_andor): Remove duplicated check on
7839 2012-09-18 Eric Botcazou <ebotcazou@adacore.com>
7842 * expr.c (store_field): Handle a PARALLEL in more cases.
7844 2012-09-18 Segher Boessenkool <segher@kernel.crashing.org>
7846 * config/rs6000/rs6000.md (sminsi3, smaxsi3, uminsi3, umaxsi3): Delete.
7847 (abssi2, abs<mode>2_isel, nabs<mode>2_isel, abssi2_nopower,
7848 nabs_nopower): Delete.
7849 (absdi2, absdi2_internal, nabsdi2): Delete.
7850 (smindi3, smaxdi3, umindi3, umaxdi3): Delete.
7852 2012-09-18 Georg-Johann Lay <avr@gjlay.de>
7854 * config/avr/avr.md: Tidy up empty "". Fix C code indentation.
7855 * config/avr/avr-fixed.md: Ditto.
7857 2012-09-18 Maciej W. Rozycki <macro@codesourcery.com>
7859 * config/rs6000/rs6000.c (print_operand) <'c'>: Remove.
7860 * config/rs6000/spe.md: Remove a leftover comment.
7862 2012-09-18 Jakub Jelinek <jakub@redhat.com>
7865 * config/i386/i386.c (ix86_rtx_costs): Limit > UNITS_PER_WORD
7866 AND/IOR/XOR cost calculation to MODE_INT class modes.
7868 2012-09-18 Thomas Quinot <quinot@adacore.com>
7870 * doc/invoke.texi: Document -fada-spec-parent.
7872 2012-09-18 Jakub Jelinek <jakub@redhat.com>
7874 PR tree-optimization/54610
7875 * tree-ssa-forwprop.c: Include optabs.h. Don't include
7877 (simplify_vector_constructor): Don't use vect_gen_perm_mask,
7878 instead create the mask constant here.
7879 * Makefile.in (tree-ssa-forwprop.o): Depend on $(OPTABS_H).
7880 Don't depend on $(TREE_VECTORIZER_H).
7882 2012-09-18 Florian Weimer <fweimer@redhat.com>
7884 * Makefile.in (BASIC_BLOCK_H): Add cfg-flags.def.
7886 2012-09-18 Richard Guenther <rguenther@suse.de>
7888 * statistics.h (CXX_MEM_STAT_INFO): New define.
7889 * gimple.h (gimple_build_assign_with_ops_stat,
7890 gimple_build_assign_with_ops, gimple_build_assign_with_ops3):
7891 Turn into an overload of the function gimple_build_assign_with_ops.
7892 * gimple.c (gimple_build_assign_with_ops_stat): Rename to ...
7893 (gimple_build_assign_with_ops): ... this.
7894 * tree-ssa-loop-im.c (move_computations_stmt): Adjust.
7895 * tree-ssa-math-opts.c (convert_mult_to_fma): Likewise.
7896 * tree-vect-data-refs.c (vect_permute_store_chain): Likewise.
7897 (vect_permute_load_chain): Likewise.
7898 * tree-vect-generic.c (expand_vector_divmod): Likewise.
7899 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
7900 (vect_recog_divmod_pattern): Likewise.
7901 (vect_recog_mixed_size_cond_pattern): Likewise.
7902 (adjust_bool_pattern): Likewise.
7903 * tree-vect-slp.c (vect_create_mask_and_perm): Likewise.
7904 * tree-vect-stmts.c (vectorizable_operation): Likewise.
7905 (permute_vec_elements): Likewise.
7906 (vectorizable_load): Likewise.
7908 2012-09-17 Paul Koning <ni1d@arrl.net>
7910 * doc/invoke.text (-feliminate-unused-debug-types): Update to
7911 reflect that this is enabled by default.
7913 2012-09-17 Ben Cheng <bccheng@google.com
7915 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Suppress the
7916 dynamic linker commands for statically linked programs.
7918 2012-09-17 Ulrich Weigand <ulrich.weigand@linaro.org>
7920 * config/arm/arm.c (arm_rtx_costs_1): Handle vec_extract and vec_set
7922 * config/arm/arm.md ("vec_set<mode>_internal"): Support memory source
7923 operands, implemented via vld1 instruction.
7924 ("vec_extract<mode>"): Support memory destination operands, implemented
7925 via vst1 instruction.
7926 ("neon_vst1_lane<mode>"): Use UNSPEC_VST1_LANE instead of vec_select.
7927 * config/arm/predicates.md ("neon_lane_number"): Remove.
7929 2012-09-17 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7930 Ulrich Weigand <ulrich.weigand@linaro.org>
7932 * config/arm/arm.c (output_move_neon): Update comment.
7933 Use vld1.64/vst1.64 instead of vldm/vstm where possible.
7934 (neon_vector_mem_operand): Support double-word modes.
7935 * config/arm/neon.md (*neon_mov VD): Call output_move_neon
7936 instead of output_move_vfp. Change constraint from Uv to Un.
7938 2012-09-17 Richard Guenther <rguenther@suse.de>
7941 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Use ggc'ed
7942 FIXED_VALUE_TYPE instead of struct fixed_value.
7944 2012-09-17 Georg-Johann Lay <avr@gjlay.de>
7946 * config/avr/avr.c (CONST_FIXED_P): Remove define.
7947 * config/avr/avr.md (add<mode>3): Use CONST_FIXED_P.
7949 2012-09-17 Georg-Johann Lay <avr@gjlay.de>
7952 * config.gcc (tm_file,avr): Add avr/avr-arch.h.
7953 * config/avr/t-avr (gen-avr-mmcu-texi): Use CC_FOR_BUILD to
7954 compile. Don't depend on TM_H. Use CFLAGS_FOR_BUILD.
7955 * config/avr/avr.h (avr_arch, base_arch_s, mcu_type_s): Source out
7957 * config/avr/avr-arch.h: ...this new file.
7958 * config/avr/gen-avr-mmcu-texi.c: Include avr-arch.h, stdio.h,
7960 * comparator: Make letters smaller than digits.
7961 * config/avr/avr-devices.c: Don't include headers if used in
7962 gen-avr-mmcu-texi.c.
7963 * doc/avr-mmcu.texi: Regenerate.
7965 2012-09-17 Georg-Johann Lay <avr@gjlay.de>
7967 * rtl.h (CONST_FIXED_P): New predicate macro.
7969 2012-09-17 Eric Botcazou <ebotcazou@adacore.com>
7971 * tree-cfgcleanup. (cleanup_control_expr_graph) <GIMPLE_COND>: Remove
7972 code doing propagation from degenerate PHI nodes.
7973 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): New function.
7974 (propagate_constants_for_unrolling): Likewise.
7975 (tree_unroll_loops_completely): If the current loop has been unrolled
7976 and its father isn't the entire function, propagate constants within
7977 the new basic blocks by means of propagate_constants_for_unrolling.
7979 2012-09-17 Jakub Jelinek <jakub@redhat.com>
7981 PR tree-optimization/54563
7982 * tree-ssa-math-opts.c (execute_cse_sincos): Call
7983 gimple_purge_dead_eh_edges if last call has been changed.
7985 2012-09-17 Georg-Johann Lay <avr@gjlay.de>
7988 * config/avr/avr.c (avr_out_plus_symbol): Fix typo if PLUS and PSImode.
7989 (avr_out_plus_1): Remove log comments from assembler output.
7991 2012-09-17 Ruben Buchatskiy <ruben@ispras.ru>
7993 * config/arm/vfp.md (*thumb2_movdf_vfp): Require one of the operands
7996 2012-09-16 Richard Sandiford <rdsandiford@googlemail.com>
7998 * calls.c (expand_call): Use emit_group_move for PARALLEL->PARALLEL
8001 2012-09-15 Tom de Vries <tom@codesourcery.com>
8003 * tree-vrp.c (extract_range_from_binary_expr_1): Fix bug in handling of
8004 LSHIFT_EXPR with shift range. Handle more LSHIFT_EXPR cases with shift
8007 2012-09-15 Georg-Johann Lay <avr@gjlay.de>
8010 * config/avr/avr-fixed.md (ALL2S, ALL4S, ALL24S, ALL124S,
8011 ALL124U): New mode iterators.
8012 (<code_stdname><mode>3): New insns for SS_PLUS, SS_MINUS.
8013 (<code_stdname><mode>3): New insns for US_PLUS, US_MINUS.
8014 (usneg<mode>2): New insns.
8015 (<code_stdname><mode>2): New expanders for SS_NEG, SS_ABS.
8016 (*<code_stdname><mode>2): New insns for SS_NEG, SS_ABS.
8017 * config/avr/avr-dimode.md (ALL8U, ALL8S): New mode iterators.
8018 (avr_out_plus64, avr_out_minus64): Use avr_out_plus instead.
8019 (<code_stdname><mode>3): New expanders for SS_PLUS, SS_MINUS.
8020 (<code_stdname><mode>3): New expanders for US_PLUS, US_MINUS.
8021 (<code_stdname><mode>3_insn): New insns.
8022 (<code_stdname><mode>3_const_insn): New insns.
8023 * config/avr/avr.md (cc): Add: plus. Remove: out_plus,
8024 out_plus_noclobber, minus.
8025 (length): Add: plus. Remove: out_plus, out_plus_noclobber,
8026 plus64, minus, minus64.
8027 (abelian): New code_attr.
8028 (code_stdname): Handle: ss_plus, ss_minus, ss_neg, ss_abs,
8029 us_plus, us_minus, us_neg.
8030 (*add<mode>3, add<mode>3_clobber, add<mode>3, addpsi3, sub<mode>3):
8031 Use avr_out_plus to output.
8032 * config/avr/avr-protos.h (avr_out_plus): Change prototype.
8033 (avr_out_plus_noclobber, avr_out_minus): Remove.
8034 (avr_out_plus64, avr_out_minus64): Remove.
8035 * config/avr/avr.c (avr_out_plus_1): Add new default arguments
8036 code_sat, sign. Saturate after operation if code_sat != UNKNOWN.
8037 (avr_out_plus_symbol): New static function.
8038 (avr_out_plus): Rewrite.
8039 (adjust_insn_length): Handle: ADJUST_LEN_PLUS. Remove handling
8040 of: ADJUST_LEN_OUT_PLUS, ADJUST_LEN_PLUS64, ADJUST_LEN_MINUS,
8041 ADJUST_LEN_MINUS64, ADJUST_LEN_OUT_PLUS_NOCLOBBER.
8042 (notice_update_cc): Handle: CC_PLUS. Remove handling of: CC_MINUS,
8043 CC_OUT_PLUS, CC_OUT_PLUS_NOCLOBBER
8044 (avr_out_plus_noclobber, avr_out_minus): Remove.
8045 (avr_out_plus64, avr_out_minus64): Remove.
8046 (avr_print_operand): Print raw REGNO if 'r' is used with REG.
8048 2012-09-15 Oleg Endo <olegendo@gcc.gnu.org>
8050 * config/sh/sh.c (sh_rtx_costs): Add handling of MEM, SIGN_EXTEND,
8051 ZERO_EXTEND and PARALLEL cases.
8052 (sh_address_cost): Correct rtx parsing and tweak cost estimations.
8054 2012-09-14 Sandra Loosemore <sandra@codesourcery.com>
8056 * doc/tm.texi.in (Stack Arguments): Update obsolete references
8057 to current_function_outgoing_args_size.
8058 (Function Entry): Likewise for current_function_pops_args,
8059 current_function_pretend_args_size,
8060 current_function_outgoing_args_size, and
8061 current_function_epilogue_delay_list.
8062 (Misc): Fix garbled sentence referencing nonexistent
8063 current_function_leaf_function.
8064 * doc/tm.texi: Regenerated.
8066 2012-09-14 Dehao Chen <dehao@google.com>
8068 * tree-eh.c (goto_queue_node): New field.
8069 (record_in_goto_queue): New parameter.
8070 (record_in_goto_queue_label): New parameter.
8071 (lower_try_finally_dup_block): New parameter.
8072 (maybe_record_in_goto_queue): Update source location.
8073 (lower_try_finally_copy): Likewise.
8074 (honor_protect_cleanup_actions): Likewise.
8075 * gimplify.c (gimplify_expr): Reset the location to unknown.
8077 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
8079 * configure: Regenerated.
8081 2012-09-14 Walter Lee <walt@tilera.com>
8083 * doc/invoke.texi (Option Summary): fix typesetting for -mcpu
8084 option for TILEPro and TILE-Gx.
8085 (TILE-Gx Options): Fix grammar and spellings in documentation for
8088 2012-09-14 Marc Glisse <marc.glisse@inria.fr>
8091 * fold-const.c (fold_unary_loc): Disable for VECTOR_TYPE.
8092 (fold_binary_loc): Likewise.
8093 * gimple-fold.c (and_comparisons_1): Handle VECTOR_TYPE.
8094 (or_comparisons_1): Likewise.
8096 2012-09-14 Richard Earnshaw <rearnsha@arm.com>
8099 PR rtl-optimization/54540
8100 * reload.c (find_dummy_reload): Don't use OUT as a reload reg
8101 for IN if it overlaps a fixed register.
8103 2012-09-14 Eric Botcazou <ebotcazou@adacore.com>
8105 PR rtl-optimization/44194
8106 * calls.c (expand_call): In the PARALLEL case, copy the return value
8107 into pseudos instead of spilling it onto the stack.
8108 * emit-rtl.c (adjust_address_1): Rename ADJUST into ADJUST_ADDRESS and
8109 add new ADJUST_OBJECT parameter.
8110 If ADJUST_OBJECT is set, drop the underlying object if it cannot be
8111 proved that the adjusted memory access is still within its bounds.
8112 (adjust_automodify_address_1): Adjust call to adjust_address_1.
8113 (widen_memory_access): Likewise.
8114 * expmed.c (store_bit_field_1): Call adjust_bitfield_address instead
8115 of adjust_address. Do not drop the underlying object of a MEM.
8116 (store_fixed_bit_field): Likewise.
8117 (extract_bit_field_1): Likewise. Fix oversight in recursion.
8118 (extract_fixed_bit_field): Likewise.
8119 * expr.h (adjust_address_1): Adjust prototype.
8120 (adjust_address): Adjust call to adjust_address_1.
8121 (adjust_address_nv): Likewise.
8122 (adjust_bitfield_address): New macro.
8123 (adjust_bitfield_address_nv): Likewise.
8124 * expr.c (expand_assignment): Handle a PARALLEL in more cases.
8125 (store_expr): Likewise.
8126 (store_field): Likewise.
8128 * dse.c: Fix typos in the head comment.
8130 2012-09-14 Christian Bruel <christian.bruel@st.com>
8133 * config/sh/sh-protos.h (sh_need_epilogue): Delete.
8134 (sh_can_use_simple_return_p): Declare.
8135 * config/sh/sh.c (sh_can_use_simple_return_p): Define.
8136 (sh_need_epilogue, sh_need_epilogue_known): Delete.
8137 (sh_output_function_epilogue): Remove sh_need_epilogue_known.
8138 * config/sh/sh.md (simple_return, return): Define.
8139 (epilogue): Use inline return rtl.
8140 (sh_expand_epilogue): Cleanup parameters boolean type.
8141 * config/sh/iterators.md (any_return): New iterator.
8143 2012-09-14 Christian Bruel <christian.bruel@st.com>
8145 * config/sh/predicates.md (t_reg_operand): Check REG_P for SUBREG.
8146 * config/sh/sh.c (sequence_insn_p): Check INSNP_P for SEQUENCE.
8148 2012-09-14 Jakub Jelinek <jakub@redhat.com>
8151 * config/i386/sse.md (fmai_vmfmadd_<mode>): Use (match_dup 1)
8152 instead of (match_dup 0) as second argument to vec_merge.
8153 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>): Likewise.
8154 Remove third alternative.
8155 (*fmai_fnmadd_<mode>, *fmai_fnmsub_<mode>): Likewise. Negate
8156 operand 2 instead of operand 1, but put it as first argument of fma.
8157 * config/i386/fmaintrin.h (_mm_fnmadd_sd, _mm_fnmadd_ss,
8158 _mm_fnmsub_sd, _mm_fnmsub_ss): Negate the second argument instead
8161 2012-09-14 Richard Guenther <rguenther@suse.de>
8163 PR tree-optimization/54565
8164 * passes.c (init_optimization_passes): Adjust comments.
8165 (execute_function_todo): Do not execute execute_update_addresses_taken
8166 before processing TODO_rebuild_alias.
8167 * tree-ssa-ccp.c (do_ssa_ccp): Schedule TODO_update_address_taken.
8169 2012-09-14 Richard Guenther <rguenther@suse.de>
8171 * tree-vrp.c (register_new_assert_for): Simplify for backward walk.
8172 (find_assert_locations_1): Walk the basic-block backwards, properly
8173 add/prune from live. Use live for asserts derived from stmts.
8175 2012-09-14 Marc Glisse <marc.glisse@inria.fr>
8177 * tree-ssa-forwprop.c (simplify_bitfield_ref): Call
8178 get_prop_source_stmt.
8179 (simplify_permutation): Likewise.
8180 (simplify_vector_constructor): Likewise.
8182 2012-09-14 Richard Guenther <rguenther@suse.de>
8184 * builtin-types.def (BT_FN_CONST_STRING): Add.
8185 * builtins.def (BUILT_IN_FILE, BUILT_IN_FUNCTION,
8186 BUILT_IN_LINE): New builtins.
8187 * gimplify.c (gimplify_call_expr): Expand them.
8188 * doc/extend.texi (__builtin_LINE, __builtin_FUNCTION,
8189 __builtin_FILE): Document.
8191 2012-09-13 Anthony Green <green@moxielogic.com>
8193 * config/moxie/moxie.h (LINK_SPEC): Add bi-endian support.
8194 (MULTILIB_DEFAULTS): Define.
8196 (BYTES_BIG_ENDIAN, WORDS_BIG_ENDIAN): Add bi-endian support.
8197 (TARGET_CPU_CPP_BUILTINS): Add __MOXIE_LITTLE_ENDIAN__ and
8198 __MOXIE_BIG_ENDIAN__.
8199 * config/moxie/t-moxie (MULTILIB_DIRNAMES, MULTILIB_OPTIONS): Define.
8200 * config/moxie/moxie.opt: New file.
8201 * doc/invoke.texi (Moxie Options): Add section documenting -mel
8204 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
8205 Manuel López-Ibáñez <manu@gcc.gnu.org>
8208 * doc/invoke.texi ([Winit-self]): Document as enabled by -Wall in C++.
8210 2012-09-13 Eric Botcazou <ebotcazou@adacore.com>
8212 * config/sparc/predicates.md (input_operand): Do not consider TImode
8213 constants as 1-instruction integer constants.
8214 Use register_or_zero_operand instead of register_operand and tidy up.
8215 * config/sparc/sparc.md (movti): New expander.
8216 (movti_insn_sp64): New instruction.
8217 (movti_insn_sp64_hq): Likewise.
8218 (TImode splitters): New splitters.
8219 * config/sparc/sparc.c (sparc_expand_move) <TImode>: New case.
8220 (sparc_legitimate_address_p): Return 0 for REG+REG in TImode.
8222 * config/sparc/sparc-protos.h (arith_double_4096_operand): Delete.
8223 (arith_4096_operand): Likewise.
8224 (zero_operand): Likewise.
8225 (fp_zero_operand): Likewise.
8226 (reg_or_0_operand): Likewise.
8228 2012-09-13 Jakub Jelinek <jakub@redhat.com>
8230 * configure.ac (CXXFLAGS): Remove -O2 when not bootstrapping.
8231 * configure: Regenerated.
8233 2012-08-13 Uros Bizjak <ubizjak@gmail.com>
8235 * config/i386/i386.md (prefetch): Do not assert mode of operand 0.
8236 (*prefetch_sse_<mode>): Do not set mode of address_operand predicate.
8238 (*prefetch_sse): ... this.
8239 (*prefetch_3dnow_<mode>): Do not set mode of address_operand predicate.
8241 (*prefetch_3dnow): ... this.
8243 2012-09-13 Steven Bosscher <steven@gcc.gnu.org>
8245 * ipa-pure-const.c (state_from_flags, local_pure_const): Use
8246 current_function_name instead of lang_hooks.decl_printable_name.
8248 * function.h (fndecl_name): New prototype.
8249 * function.c (fndecl_name): New function.
8250 * vecir.h (cgraph_node_p): New standard IR VEC type.
8251 * trans-mem.c (cgraph_node_p): No need anymore to define it here.
8252 * ipa-utils.h (ipa_get_nodes_in_cycle): New prototype.
8253 * ipa-utils.c (ipa_get_nodes_in_cycle): New function.
8254 * ipa-reference.c: Don't include langhooks.h, and certainly not twice.
8255 Fix many formatting issues (long lines, short lines, spacing, etc.).
8256 (get_static_name): Use fndecl_name.
8257 (dump_static_vars_set_to_file): New function split out from propagate.
8258 (union_static_var_sets): New function, union two sets and collapse
8259 to all_module_statics as quickly as possible.
8260 (intersect_static_var_sets): New function, similar to above.
8261 (copy_static_var_set): Renamed from copy_global_bitmap and rewritten
8262 to allocate a copy on the same bitmap_obstack as the source set.
8263 (propagate_bits): Simplify, and clarify by using union_static_var_sets.
8264 (generate_summary): Remove bm_temp. Print UID of promotable globals.
8265 (read_write_all_from_decl): Use pass-by-reference, bless C++.
8266 (get_read_write_all_from_node): New function, split out from propagate.
8267 (propagate): Simplify and clarify with helper functions. Use
8268 ipa_get_nodes_in_cycle to walk all nodes in a reduced node.
8269 (ipa_reference_read_optimization_summary): Use fndecl_name instead of
8270 lang_hooks.decl_printable_name.
8272 * rtl.h (print_rtl_single_with_indent): New prototype.
8273 * print-rtl.c (print_rtl_single_with_indent): New function.
8274 * cfghooks.h (empty_block_p, split_block_before_cond_jump): New hooks.
8275 * cfghooks.c (empty_block_p, split_block_before_cond_jump): Implement.
8276 * cfgrtl.c (rtl_block_empty_p, rtl_split_block_before_cond_jump):
8277 Implement RTL specific hooks.
8278 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Register the new hooks.
8279 * tree-cfg.c (gimple_empty_block_p,
8280 gimple_split_block_before_cond_jump): Implement GIMPLE specific hooks.
8281 (gimple_cfg_hooks): Register the new hooks.
8282 * tree-ssa-phiopt.c (empty_block_p): Remove in favor of new hook.
8284 2012-09-13 Richard Guenther <rguenther@suse.de>
8286 * tree-ssa-sccvn.h (enum vn_kind): New.
8287 (vn_get_stmt_kind): Likewise.
8288 * tree-ssa-sccvn.c (vn_get_stmt_kind): New function, adjust
8290 (visit_use): Use it.
8291 * tree-ssa-pre.c (compute_avail): Likewise, simplify further.
8293 2012-09-13 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8295 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
8296 for targets bdver1, bdver2, btver1 and btver2.
8298 2012-09-13 Christophe Lyon <christophe.lyon@linaro.org>
8299 Richard Earnshaw <rearnsha@arm.com>
8301 * config/arm/arm.md (arm_rev): Factorize thumb1, thumb2 and arm
8302 variants for rev instruction..
8303 (thumb1_rev): Delete pattern.
8304 (arm_revsh): New pattern to support builtin_bswap16.
8305 (arm_rev16, bswaphi2): Likewise.
8307 2012-09-12 Teresa Johnson <tejohnson@google.com>
8309 PR gcov-profile/54487
8310 * configure.ac (HOST_HAS_F_SETLKW): Set based on compile
8311 test using F_SETLKW with fcntl.
8312 * configure, config.in: Regenerate.
8314 2012-09-12 Jan Hubicka <jh@suse.cz>
8317 * ipa-inline-analysis.c (dump_inline_hints): Dump loop stride.
8318 (set_hint_predicate): New function.
8319 (reset_inline_summary): Reset loop stride.
8320 (remap_predicate_after_duplication): New function.
8321 (remap_hint_predicate_after_duplication): New function.
8322 (inline_node_duplication_hook): Update.
8323 (dump_inline_summary): Dump stride summaries.
8324 (estimate_function_body_sizes): Compute strides.
8325 (remap_hint_predicate): New function.
8326 (inline_merge_summary): Use it.
8327 (inline_read_section): Read stride.
8328 (inline_write_summary): Write stride.
8329 * ipa-inline.c (want_inline_small_function_p): Handle strides.
8330 (edge_badness): Likewise.
8331 * ipa-inline.h (inline_hints_vals): Add stride hint.
8332 (inline_summary): Update stride.
8334 2012-09-12 Uros Bizjak <ubizjak@gmail.com>
8336 * config/i386/i386.c (x86_prefetch_sse): Change to unsigned char.
8337 * config/i386/i386.h (x86_prefetch_sse): Ditto.
8339 2012-09-12 H.J. Lu <hongjiu.lu@intel.com>
8342 * config/i386/predicates.md (x86_64_immediate_operand): Allow
8343 negative offset for UNSPEC_DTPOFF/UNSPEC_NTPOFF.
8345 2012-09-12 Jan Hubicka <jh@suse.cz>
8347 * common.opt (flto-partition): Add "max".
8348 * invoke.texi (flto-partition): Document "max"
8350 2012-09-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8352 * config/i386/i386.md : Comments on fma4 instruction selection
8353 reflect requirement on register pressure based cost model.
8355 * config/i386/driver-i386.c (host_detect_local_cpu): fma4
8356 flag is set-reset as informed by the cpuid flag.
8358 * config/i386/i386.c (processor_alias_table): fma4
8359 flag is enabled for bdver2.
8361 2012-09-12 Richard Guenther <rguenther@suse.de>
8363 PR tree-optimization/54489
8364 * tree-ssa-pre.c: Include domwalk.h.
8366 (sccvn_valnum_from_value_id): New function.
8367 (debug_bitmap_sets_for): Simplify.
8368 (get_representative_for): Properly initialize the SCCVN valnum.
8369 (create_expression_by_pieces): Likewise.
8370 (insert_into_preds_of_block): Likewise.
8371 (can_PRE_operation): Remove.
8372 (make_values_for_phi): Simplify.
8373 (compute_avail): Likewise.
8374 (do_SCCVN_insertion): Remove.
8375 (eliminate_avail, eliminate_push_avail, eliminate_insert):
8377 (eliminate): Split and perform a domwalk.
8378 (eliminate_bb): Former eliminate part that is now dom-enter.
8379 (eliminate_leave_block): New function.
8380 (fini_eliminate): Likewise.
8381 (init_pre): Simplify.
8382 (fini_pre): Likewise.
8383 (execute_pre): Fold into do_pre and do_fre.
8384 (do_pre): Consume execute_pre.
8386 * Makefile.in (tree-ssa-pre.o): Add domwalk.h dependency.
8388 2012-09-12 Diego Novillo <dnovillo@google.com>
8390 * vec.h: Remove compatibility notes for previous distinction
8391 between vectors of objects and vectors of pointers.
8393 2012-09-12 Christian Bruel <christian.bruel@st.com>
8395 * config/sh/newlib.h (NO_IMPLICIT_EXTERN_C): Define.
8397 2012-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8399 * rtl.h (FFS, FLOAT, ABS, PC): Don't undef.
8400 * system.h (FFS, FLOAT, ABS, PC): Undef.
8402 2012-09-12 Richard Guenther <rguenther@suse.de>
8405 * common.opt (finline): Mark with Optimization.
8407 2012-09-12 Jakub Jelinek <jakub@redhat.com>
8409 * config.gcc: Obsolete picochip-*.
8411 2012-09-12 Nathan Froyd <froydnj@gcc.gnu.org>
8412 Hans-Peter Nilsson <hp@bitrange.com>
8414 * config/mmix/mmix.h (MMIX_REG_OK_STRICT): Delete.
8415 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P): Delete.
8416 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
8417 * config/mmix/mmix-protos.h (mmix_intval): Declare.
8418 (mmix_const_ok_for_letter_p, mmix_extra_constraint): Delete.
8419 (mmix_const_double_ok_for_letter_p): Delete.
8420 * config/mmix/constraints.md: New file.
8421 * config/mmix/mmix.md: Include it.
8422 (iordi3): Fix typo; use "I" instead of undefined "H" constraint.
8423 ("*call_real"): Update comment about not using the "p" constraint.
8424 * config/mmix/predicates.md (mmix_reg_or_8bit_operand): Use
8425 satisfies_constraint_I.
8426 (mmix_address_operand): New predicate.
8427 (mmix_symbolic_or_address_operand): Use it instead of address_operand.
8428 * config/mmix/mmix.c: #include tm-constrs.h.
8429 (mmix_intval): Delete declaration. Make non-static.
8430 (mmix_const_ok_for_letter_p, mmix_extra_constraint): Delete.
8431 (mmix_const_double_ok_for_letter_p): Delete.
8432 (mmix_legitimate_address_p): Use satisfies_constraint_I.
8433 (mmix_print_operand_address): Likewise.
8434 (mmix_emit_sp_add): Adjust to use insn_const_int_ok_for_constraint
8435 when matching "L" constraint.
8437 2012-09-11 Steven Bosscher <steven@gcc.gnu.org>
8439 * tree.h (expand_case): Move prototype ...
8440 * expr.h (expand_case): ...here.
8441 (expand_sjlj_dispatch_table): New prototype.
8442 * stmt.c: Include pointer-set.h instead of bitmap.h.
8443 (expand_case): Use a pointer set instead of a bitmap for
8444 already-seen labels. Fold label values here.
8445 (add_case_node): Don't fold label values here.
8446 (expand_sjlj_dispatch_table): New function.
8447 * except.c (sjlj_emit_dispatch_table): Use it.
8449 2012-09-11 Marc Glisse <marc.glisse@inria.fr>
8451 * tree-ssa-forwprop.c (simplify_vector_constructor): New function.
8452 (ssa_forward_propagate_and_combine): Call it.
8454 2012-09-11 Diego Novillo <dnovillo@google.com>
8456 * var-tracking.c (vt_add_function_parameter): Adjust for VEC changes.
8458 2012-09-11 Dominique Dhumieres <dominiq@lps.ens.fr>
8460 * config/darwin.c (darwin_asm_named_section): Adjust for VEC changes.
8461 (darwin_asm_dwarf_section): Likewise.
8463 2012-09-11 Martin Jambor <mjambor@suse.cz>
8465 * dwarf2out.c (dwarf2out_abstract_function): Do not change cfun.
8466 (premark_used_types): New parameter fun, use it instead of cfun.
8467 (gen_subprogram_die): Use DECL_STRUCT_FUNCTION (decl) instead of cfun,
8468 also pass it to premark_used_types.
8470 2012-09-11 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8472 * doc/sourcebuild.texi (arm_neon_v2_ok): Adjust command line.
8474 2012-09-11 Tobias Burnus <burnus@net-b.de>
8476 * doc/sourcebuild.texi (arm_neon_v2_ok): Fix @anchor.
8478 2012-09-11 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8479 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8481 * config/arm/neon.md (fma<VCVTF:mode>4): New pattern.
8482 (*fmsub<VCVTF:mode>4): Likewise.
8483 * doc/sourcebuild.texi (arm_neon_v2_ok, arm_neon_v2_hw): Document it.
8485 2012-09-11 Aldy Hernandez <aldyh@redhat.com>
8488 * tree-ssa-loop-im.c (execute_sm_if_changed_flag_set): Only set
8491 2012-09-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8493 PR tree-optimization/55492
8494 * doc/invoke.texi (max-slsr-cand-scan): New description.
8495 * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Limit
8496 the time spent searching for a basis.
8497 * params.def (PARAM_MAX_SLSR_CANDIDATE_SCAN): New param.
8499 2012-09-11 Richard Guenther <rguenther@suse.de>
8501 * gimple.h (gimple_register_type): Remove.
8502 (print_gimple_types_stats): Adjust prototype.
8503 * lto-streamer.h (print_lto_report): Likewise.
8504 * lto-streamer.c (print_lto_report): Adjust.
8505 * gimple.c (gimple_types, type_hash_cache, enum gtc_mode,
8506 struct type_pair_d, lookup_type_pair, struct sccs,
8507 next_dfs_num, gtc_next_dfs_num, struct gimple_type_leader_entry_s,
8508 gimple_type_leader, gimple_lookup_type_leader, compare_type_names_p,
8509 gtc_visit, gimple_types_compatible_p_1, gimple_types_compatible_p,
8510 visit, iterative_hash_name, struct type_hash_pair,
8511 type_hash_pair_compare, iterative_hash_gimple_type, gimple_type_hash,
8512 gimple_type_eq, gimple_register_type_1, gimple_register_type):
8514 (print_gimple_types_stats): Adjust.
8515 (free_gimple_type_tables): Likewise.
8517 2012-09-11 Richard Guenther <rguenther@suse.de>
8519 * graphite-scop-detection.c (move_sd_regions): Adjust for VEC changes.
8520 (scopdet_basic_block_info): Likewise.
8521 (build_scops_1): Likewise.
8522 (limit_scops): Likewise.
8524 2012-09-11 Richard Guenther <rguenther@suse.de>
8527 * gimple.c (get_base_address): Do not return NULL_TREE apart
8528 from for WITH_SIZE_EXPR.
8529 * gimple-fold.c (canonicalize_constructor_val): Do not call
8530 get_base_address when not necessary.
8532 2012-09-10 Andrew Pinski <apinski@cavium.com>
8535 * trans-mem.c (thread_private_new_memory): Handle COND_EXPR also.
8537 2012-09-10 Maxim Kuvyrkov <maxim@codesourcery.com>
8539 * config/m68k/m68k.c (m68k_sched_dfa_post_advance_cycle): Support
8540 starting scheduling from a pre-existing state.
8542 2012-09-10 Diego Novillo <dnovillo@google.com>
8544 * vec.h (vec_t::quick_push): Remove overload that accepts 'T *'.
8546 (vec_t::safe_push): Likewise.
8547 (vec_t::quick_insert): Likewise.
8548 (vec_t::lower_bound): Likewise.
8549 (vec_t::safe_insert): Likewise.
8550 (vec_t::replace): Change second argument to 'T &'.
8552 2012-09-10 Maciej W. Rozycki <macro@codesourcery.com>
8554 * config/rs6000/rs6000.md: Move a splitter next to its insn.
8556 2012-09-10 Oleg Endo <olegendo@gcc.gnu.org>
8559 * config/sh/sh.h (SH_DYNAMIC_SHIFT_COST): Set always to 1 if
8560 dynamic shifts are available.
8561 (SHIFT_COUNT_TRUNCATED): Always define to 0. Correct comment.
8562 * config/sh/sh.c (ashl_lshr_seq, ext_ashl_lshr_seq): Add comments.
8563 * config/sh/predicates.md (shift_count_operand): Allow
8564 arith_reg_operand even if TARGET_DYNSHIFT is false.
8565 * config/sh/sh.md (ashlsi3, lshrsi3): Expand library call patterns
8567 (ashlsi3_d_call, lshrsi3_d_call): New insns.
8569 2012-09-10 Richard Sandiford <rdsandiford@googlemail.com>
8571 * ira.c (setup_pressure_classes): Handle synonymous classes.
8573 2012-09-10 Marc Glisse <marc.glisse@inria.fr>
8575 * tree-ssa-forwprop.c (simplify_bitfield_ref): New function.
8576 (ssa_forward_propagate_and_combine): Call it.
8578 2012-09-10 Steve Ellcey <sellcey@mips.com>
8580 * config.gcc: Add mips*-mti-linux* target
8581 Handle with_synci like other options.
8582 * config/mips/gnu-user64.h (LINUX64_DRIVER_SELF_SPECS): New.
8583 (DRIVER_SELF_SPECS): Define in terms of LINUX64_DRIVER_SELF_SPECS.
8584 * config/mips/mips.h (MIPS_ISA_SYNCI_SPEC): New.
8585 * config/mips/mti-linux.h: New file.
8586 * config/mips/t-mti-linux: New file.
8588 2012-09-10 Marc Glisse <marc.glisse@inria.fr>
8590 * tree-ssa-forwprop.c (simplify_permutation): Handle CONSTRUCTOR.
8592 2012-09-10 Martin Jambor <mjambor@suse.cz>
8594 * params.def (PARAM_IPA_MAX_AGG_ITEMS): New parameter.
8595 * ipa-prop.c: Include params.h.
8596 (IPA_MAX_AFF_JF_ITEMS): Removed.
8597 (determine_known_aggregate_parts): Use param value of
8598 PARAM_IPA_MAX_AGG_ITEMS instead of IPA_MAX_AFF_JF_ITEMS.
8599 * Makefile.in (ipa-prop.o): Add PARAMS_H dependency.
8601 2012-09-10 Richard Guenther <rguenther@suse.de>
8603 PR tree-optimization/54520
8604 * tree-ssa-threadupdate.c (def_split_header_continue_p):
8605 Properly consider sub-loops.
8607 2012-09-10 Richard Henderson <rth@redhat.com>
8609 * config/alpha/predicates.md (small_symbolic_operand): Disallow
8612 2012-09-10 Georg-Johann Lay <avr@gjlay.de>
8615 * config/avr/avr-mcus.def (at90usb1287): Set LIBRARY_NAME to "usb1287".
8617 2012-09-10 Jan Hubicka <jh@suse.cz>
8619 * lto-cgraph.c (compute_ltrans_boundary): Do not care about aliases.
8620 * symtab.c (symtab_make_decl_local): Remove user defined visibility
8621 when making symbol local.
8623 2012-09-09 Mark Kettenis <kettenis@gnu.org>
8625 * config/openbsd-stdint.h (INTMAX_TYPE, UINTMAX_TYPE): Define.
8627 2012-09-09 Jan Hubicka <jh@suse.cz>
8629 * passes.c (ipa_write_summaries_1): Set state;
8630 do not call compute_ltrans_boundary.
8631 (ipa_write_optimization_summaries): Likewise.
8632 (ipa_write_summaries): compute_ltrans_boundary here.
8633 * lto-streamer.h (lto_symtab_encoder_d): NODES are allocated in heap.
8634 (compute_ltrans_boundary): Update prototype.
8636 2012-09-09 Ulrich Drepper <drepper@gmail.com>
8638 * config/i386/cpuid.h: Define signature_*_e[bcd]x macros for
8639 matching results of level 0 calls to __cpuid to processor
8641 * config/i386/driver-i386.c (vendor_signatures): Removed.
8642 (processor_signatures): Removed.
8643 (host_detect_local_cpu): Replace uses of now-removed SIG_*
8644 constants with the new signature_*_ebx constants.
8646 2012-09-08 Jan Hubicka <jh@suse.cz>
8648 Replace cgraph_node_set and varpool_node_set by symtab_node_encoder
8650 * tree-pass.h (cgraph_node_set_def, varpool_node_set_def): Remove
8651 forward declaration.
8652 (lto_symtab_encoder_d): Forward declare.
8653 (ipa_write_optimization_summaries): Update.
8654 * lto-cgraph.c (lto_symtab_encoder_new): Do not initialize
8655 body, initializer and in_partition.
8656 (lto_symtab_encoder_delete): Update.
8657 (lto_symtab_encoder_encode): Update.
8658 (lto_symtab_encoder_lookup): Move inline.
8659 (lto_symtab_encoder_delete_node): New function.
8660 (lto_symtab_encoder_encode_body_p, lto_set_symtab_encoder_encode_body,
8661 lto_symtab_encoder_encode_initializer_p,
8662 lto_set_symtab_encoder_encode_initializer,
8663 lto_symtab_encoder_in_partition_p,
8664 lto_symtab_encoder_in_partition_p): Update.
8665 (compute_ltrans_boundary): Take encoder as an input.
8666 * passes.c (ipa_write_summaries_1): Update.
8667 (ipa_write_summaries_1): Update.
8668 (ipa_write_summaries): Update.
8669 (ipa_write_optimization_summaries): Update.
8670 * lto-streamer.c (print_lto_report): Report number of cgraph nodes.
8671 * lto-streamer.h (lto_stats_d): Replace num_output_cgraph_nodes by
8672 num_output_symtab_nodes.
8673 (lto_encoder_entry): New structure.
8674 (struct lto_symtab_encoder_d): Reorg.
8675 (lto_symtab_encoder_delete_node): Declare.
8676 (lto_symtab_encoder_lookup): Bring inline.
8677 (compute_ltrans_boundary): Update.
8678 (lto_symtab_encoder_size): Update.
8679 (lsei_node, lsei_cgraph_node, lsei_varpool_node): Update.
8680 (lto_symtab_encoder_deref): Update.
8682 2012-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8684 * config/pa/pa.c (hppa_rtx_costs): Update costs for large
8687 2012-09-08 Andi Kleen <ak@linux.intel.com>
8689 * lto/lto.c (do_whole_program_analysis): Fix last broken patch.
8691 2012-09-08 Andi Kleen <ak@linux.intel.com>
8693 * common.opt (-fmem-report-wpa): Add
8694 * doc/invoke.texi (-fmem-report-wpa): Document.
8695 * lto/lto.c (do_whole_program_analysis): Run mem_report
8696 when mem_report_wpa is set.
8698 2012-09-07 Anthony Green <green@moxielogic.com>
8700 * config/moxie/moxie.c (moxie_expand_prologue): Optimize prologue
8701 for functions with large static stack requirements.
8702 (moxie_expand_epilogue): Use $r12 instead of $r5 for pulling saved
8703 values off of the stack.
8705 2012-09-07 Nick Clifton <nickc@redhat.com>
8707 * config/v850/v850.h (DBX_DEBUGGING_INFO): Define.
8708 (ASM_GENERATE_INTERNAL_LABEL): Define if not already provided.
8709 * config/v850/v850.c (compute_register_save_size): Always include
8711 (increment_stack): New function - emits insns to increment or
8712 decrement the stack pointer.
8713 (expand_prologue, expand_epilogue): Use it.
8714 (expand_prologue): Set the function stack size, if requested.
8715 (v850_debug_unwind_info): New function.
8716 (TARGET_DEBUG_UNWIND_INFO): Define.
8718 2012-09-07 Richard Earnshaw <rearnsha@arm.com>
8721 * tree-ssa-math-opts.c (widening_mult_conversion_strippable_p):
8722 Sign-extension of a zero-extended value can be simplified to
8723 just zero-extension.
8725 2012-09-07 Richard Guenther <rguenther@suse.de>
8728 * tree-ssa-structalias.c (handle_rhs_call): Properly clobber
8729 EAF_NOESCAPED arguments. Transitively close non-EAF_DIRECT
8730 arguments separately.
8732 2012-09-07 Steven Bosscher <steven@gcc.gnu.org>
8734 * bitmap.c (bitmap_last_set_bit): Rewrite to return the correct bit.
8736 * graphite.c (print_global_statistics): Use EDGE_COUNT instead
8738 (print_graphite_scop_statistics): Likewise.
8739 * graphite-scop-detection.c (get_bb_type): Use single_succ_p.
8740 (print_graphite_scop_statistics): Use EDGE_COUNT, not VEC_length.
8741 (canonicalize_loop_closed_ssa): Use single_pred_p.
8743 * alias.c (reg_seen): Make this an sbitmap.
8744 (record_set, init_alias_analysis): Update.
8746 * tree-ssa-coalesce.c (ssa_conflicts_dump): Fix dumping.
8748 2012-09-07 Tom de Vries <tom@codesourcery.com>
8750 PR tree-optimization/53986
8751 * tree-vrp.c (extract_range_from_multiplicative_op_1): Allow
8753 (extract_range_from_binary_expr_1): Handle LSHIFT with constant
8754 range as shift amount.
8756 2012-09-07 Segher Boessenkool <segher@kernel.crashing.org>
8758 * config/rs6000/aix43.h (RS6000_CALL_GLUE): Delete.
8759 * config/rs6000/aix51.h (RS6000_CALL_GLUE): Delete.
8760 * config/rs6000/aix52.h (RS6000_CALL_GLUE): Delete.
8761 * config/rs6000/aix53.h (RS6000_CALL_GLUE): Delete.
8762 * config/rs6000/aix61.h (RS6000_CALL_GLUE): Delete.
8763 * config/rs6000/freebsd64.h (RS6000_CALL_GLUE): Delete.
8764 * config/rs6000/linux64.h (RS6000_CALL_GLUE): Delete.
8765 * config/rs6000/rs6000.c (print_operand) ['.']: Delete.
8766 * config/rs6000/rs6000.h (RS6000_CALL_GLUE): Delete.
8767 * config/rs6000/rs6000.md (tls_gd_aix<TLSmode:tls_abi_suffix>):
8768 Replace %. with nop.
8769 (tls_gd_call_aix<TLSmode:tls_abi_suffix>): Ditto.
8770 (tls_ld_aix<TLSmode:tls_abi_suffix>): Ditto.
8771 (tls_ld_call_aix<TLSmode:tls_abi_suffix>): Ditto.
8772 (call_nonlocal_aix32): Ditto.
8773 (call_nonlocal_aix64): Ditto.
8774 (call_value_nonlocal_aix32): Ditto.
8775 (call_value_nonlocal_aix64): Ditto.
8777 2012-09-06 Andi Kleen <ak@linux.intel.com>
8779 * doc/invoke.texi (-ffat-lto-objects): Clarify that gcc-ar
8780 et.al. should be used.
8782 2012-09-06 Andi Kleen <ak@linux.intel.com>
8784 * lto-streamer.h (res_pair): Add.
8785 (lto_file_decl_data): Replace resolutions with respairs.
8787 * lto/lto.c (lto_resolution_read): Remove max_index. Add rp.
8788 Initialize respairs.
8789 (lto_file_finalize): Set up resolutions vector lazily from respairs.
8791 2012-09-06 Lawrence Crowl <crowl@google.com>
8793 * double-int.h (double_int::operator &=): New.
8794 (double_int::operator ^=): New.
8795 (double_int::operator |=): New.
8796 (double_int::mul_with_sign): Modify overflow parameter to bool*.
8797 (double_int::add_with_sign): New.
8798 (double_int::ule): New.
8799 (double_int::sle): New.
8800 (binary double_int::operator *): Remove parameter name.
8801 (binary double_int::operator +): Likewise.
8802 (binary double_int::operator -): Likewise.
8803 (binary double_int::operator &): Likewise.
8804 (double_int::operator |): Likewise.
8805 (double_int::operator ^): Likewise.
8806 (double_int::and_not): Likewise.
8807 (double_int::from_shwi): Tidy formatting.
8808 (double_int::from_uhwi): Likewise.
8809 (double_int::from_uhwi): Likewise.
8810 * double-int.c (double_int::mul_with_sign): Modify overflow parameter
8812 (double_int::add_with_sign): New.
8813 (double_int::ule): New.
8814 (double_int::sle): New.
8815 * builtins.c: Modify to use the new double_int interface.
8816 * cgraph.c: Likewise.
8817 * combine.c: Likewise.
8818 * dwarf2out.c: Likewise.
8819 * emit-rtl.c: Likewise.
8820 * expmed.c: Likewise.
8822 * fixed-value.c: Likewise.
8823 * fold-const.c: Likewise.
8824 * gimple-fold.c: Likewise.
8825 * gimple-ssa-strength-reduction.c: Likewise.
8826 * gimplify-rtx.c: Likewise.
8827 * ipa-prop.c: Likewise.
8828 * loop-iv.c: Likewise.
8829 * optabs.c: Likewise.
8830 * stor-layout.c: Likewise.
8831 * tree-affine.c: Likewise.
8832 * tree-cfg.c: Likewise.
8833 * tree-dfa.c: Likewise.
8834 * tree-flow-inline.h: Likewise.
8835 * tree-object-size.c: Likewise.
8836 * tree-predcom.c: Likewise.
8837 * tree-pretty-print.c: Likewise.
8838 * tree-sra.c: Likewise.
8839 * tree-ssa-address.c: Likewise.
8840 * tree-ssa-alias.c: Likewise.
8841 * tree-ssa-ccp.c: Likewise.
8842 * tree-ssa-forwprop.c: Likewise.
8843 * tree-ssa-loop-ivopts.c: Likewise.
8844 * tree-ssa-loop-niter.c: Likewise.
8845 * tree-ssa-phiopt.c: Likewise.
8846 * tree-ssa-pre.c: Likewise.
8847 * tree-ssa-sccvn: Likewise.
8848 * tree-ssa-structalias.c: Likewise.
8849 * tree-ssa.c: Likewise.
8850 * tree-switch-conversion.c: Likewise.
8851 * tree-vect-loop-manip.c: Likewise.
8852 * tree-vrp.c: Likewise.
8855 * varasm.c: Likewise.
8857 2012-09-06 Uros Bizjak <ubizjak@gmail.com>
8859 * configure.ac (hle prefixes): Remove .code64 directive.
8860 * configure: Regenerated.
8862 2012-09-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8864 * config/arm/arm.c: Use CONST_INT_P, CONST_DOUBLE_P, REG_P, MEM_P,
8865 LABEL_P, JUMP_P, CALL_P, NOTE_P, BARRIER_P consistently.
8866 * config/arm/arm.h: Use REG_P, MEM_P consistently.
8867 * config/arm/arm.md: Use CONST_INT_P, REG_P, MEM_P, CONST_DOUBLE_P
8869 * config/arm/neon.md: Use REG_P consistently.
8870 * config/arm/predicates.md: Use CONST_INT_P, REG_P, MEM_P consistently.
8871 * config/arm/thumb2.md: Use CONST_INT_P, REG_P consistently.
8872 * config/arm/vec-common.md: Use REG_P consistently.
8874 2012-09-06 Richard Guenther <rguenther@suse.de>
8876 PR tree-optimization/54498
8877 * tree-ssa-alias.h (get_continuation_for_phi): Add flag to
8878 abort when reaching an already visited region.
8879 * tree-ssa-alias.c (maybe_skip_until): Likewise. And do it.
8880 (get_continuation_for_phi_1): Likewise.
8881 (walk_non_aliased_vuses): When we translated the reference,
8882 abort when we re-visit a region.
8883 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
8885 2012-09-06 David Edelsohn <dje.gcc@gmail.com>
8887 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Add TLS
8889 * config/rs6000/rs6000.c (rs6000_debug_address_cost): Add new
8890 arguments to TARGET_ADDRESS_COST call.
8892 2012-09-06 Richard Guenther <rguenther@suse.de>
8894 * tree.h (MOVE_NONTEMPORAL): Remove.
8895 * tree-pretty-print.c (dump_generic_node): Remove
8896 MOVE_NONTEMPORAL handling.
8897 * expr.c (expand_expr_real_1): Likewise.
8899 2012-09-06 Richard Guenther <rguenther@suse.de>
8901 * passes.c (execute_function_todo): Call compute_may_aliases
8902 only if flag_tree_pta is set.
8904 2012-09-06 Andrew Pinski <apinski@cavium.com>
8907 * tree-inline.c (remap_gimple_op_r): Copy TREE_SIDE_EFFECTS also.
8909 2012-09-06 Jakub Jelinek <jakub@redhat.com>
8911 PR rtl-optimization/54455
8912 * sel-sched-ir.c (maybe_tidy_empty_bb): Give up if previous fallthru
8913 bb ends up with asm goto referencing bb's label.
8915 2012-09-06 Chen Liqin <liqin.gcc@gmail.com>
8917 * config/score/score.c: Remove TARGET_LEGITIMIZE_ADDRESS define and
8918 score_legitimize_address function, use compiler default code instead.
8920 2012-09-05 Jan Hubicka <jh@suse.cz>
8922 * ipa-inline.c (want_inline_small_function_p): Use
8923 INLINE_HINT_loop_iterations hint.
8925 2012-09-05 Andrew Pinski <apinski@cavium.com>
8927 * optabs.c (emit_conditional_add): Correct comment about the arguments.
8928 Remove code which might swap op2 and op3 since they cannot be swapped.
8929 * doc/md.texi (add@var{mode}cc): Fix document about how the arguments
8932 2012-09-05 Oleg Endo <olegendo@gcc.gnu.org>
8934 * hooks.c (hook_int_rtx_mode_as_bool_0): New function.
8935 * hooks.h (hook_int_rtx_mode_as_bool_0): Declare it.
8936 * output.h (default_address_cost): Add machine_mode and address space
8938 * target.def (address_cost): Likewise.
8939 * rtlanal.c (address_cost): Pass mode and address space to target hook.
8940 (default_address_cost): Add unnamed machine_mode and address space
8942 * doc/tm.texi: Regenerate.
8943 * config/alpha/alpha.c (TARGET_ADDRESS_COST): Use
8944 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
8945 * config/arm/arm.c (arm_address_cost): Add machine_mode and address
8947 * config/avr/avr.c (avr_address_cost): Likewise.
8948 * config/bfin/bfin.c (bfin_address_cost): Likewise.
8949 * config/cr16/cr16.c (cr16_address_cost): Likewise.
8950 * config/cris/cris.c (cris_address_cost): Likewise.
8951 * config/epiphany/epiphany.c (epiphany_address_cost): Likewise.
8952 * config/i386/i386.c (ix86_address_cost): Likewise.
8953 * config/ia64/ia64.c (TARGET_ADDRESS_COST): Use
8954 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
8955 * config/iq2000/iq2000.c (iq2000_address_cost): Add machine_mode and
8956 address space arguments. Pass them on in recursive invocation.
8957 * config/lm32/lm32.c (TARGET_ADDRESS_COST): Use
8958 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
8959 * config/m32c/m32c.c (m32c_address_cost): Add machine_mode and address
8961 * config/m32r/m32r.c (TARGET_ADDRESS_COST): Use
8962 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
8963 * config/mcore/mcore.c (TARGET_ADDRESS_COST): Likewise.
8964 * config/mep/mep.c (mep_address_cost): Add machine_mode and address
8966 * config/microblaze/microblaze.c (microblaze_address_cost): Likewise.
8967 * config/mips/mips.c (mips_address_cost): Likewise.
8968 * config/mmix/mmix.c (TARGET_ADDRESS_COST): Use
8969 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
8970 * config/mn10300/mn10300.c (mn10300_address_cost): Add machine_mode and
8971 address space arguments.
8972 (mn10300_rtx_costs): Pass GET_MODE (x) and MEM_ADDR_SPACE (x) to
8973 mn10300_address_cost.
8974 * config/pa/pa.c (hppa_address_cost): Add machine_mode and address
8976 * config/rs6000/rs6000.c (rs6000_debug_address_cost): Likewise.
8977 (TARGET_ADDRESS_COST): Use hook_int_rtx_mode_as_bool_0 instead of
8978 hook_int_rtx_bool_0.
8979 * config/rx/rx.c (rx_address_cost): Add machine_mode and address
8981 * config/s390/s390.c (s390_address_cost): Likewise.
8982 * config/score/score-protos.h (score_address_cost): Likewise.
8983 * config/score/score.c (score_address_cost): Likewise.
8984 * config/sh/sh.c (sh_address_cost): Likewise.
8985 * config/sparc/sparc.c (TARGET_ADDRESS_COST): Use
8986 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
8987 * config/spu/spu.c (TARGET_ADDRESS_COST): Likewise.
8988 * config/stormy16/stormy16.c (xstormy16_address_cost): Add machine_mode
8989 and address space arguments.
8990 * config/v850/v850.c (TARGET_ADDRESS_COST): Use
8991 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
8992 * config/vax/vax.c (vax_address_cost): Add machine_mode and address
8994 * config/xtensa/xtensa (TARGET_ADDRESS_COST): Use
8995 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
8997 2012-09-05 Diego Novillo <dnovillo@google.com>
9000 * vec.h (vec_t::lower_bound): Fix spelling of LESSTHAN argument.
9002 2012-09-05 Jakub Jelinek <jakub@redhat.com>
9005 * builtins.c (fold_builtin_strspn, fold_builtin_strcspn): Use
9006 build_int_cst with size_type_node instead of size_int.
9008 2012-09-05 Uros Bizjak <ubizjak@gmail.com>
9010 * config/i386/sse.md (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>):
9011 Use register_operand instead of reg_not_xmm0_operand{,_maybe_avx}.
9012 Use nonimmediate_operand instead of
9013 nonimm_not_xmm0_operand{,_maybe_avx}.
9014 (<sse4_1_avx2>_pblendvb): Ditto.
9015 (sse4_2_pcmpestr): Ditto.
9016 (*sse4_2_pcmpestr_unaligned): Ditto.
9017 (sse4_2_pcmpistr): Ditto.
9018 (*sse4_2_pcmpistr_unaligned): Ditto.
9019 * config/i386/predicates.md (reg_not_xmm0_operand): Remove predicate.
9020 (nonimm_not_xmm0_operand): Ditto.
9021 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
9022 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
9023 * config/i386/i386.md (rdpmc): Do not force operand 1 into ecx.
9025 2012-09-05 Eric Botcazou <ebotcazou@adacore.com>
9027 * bb-reorder.c: Clarify a few points in the head comment and fix
9028 long lines in other comments.
9029 (find_traces): Fix long line.
9030 (find_traces_1_round): Likewise.
9031 (better_edge_p): Likewise.
9032 (connect_traces): Likewise.
9033 (duplicate_computed_gotos): Likewise.
9034 (find_rarely_executed_basic_blocks_and_cr): Remove trailing spaces.
9035 (fix_up_fall_thru_edges): Fix formatting.
9037 2012-09-05 Richard Guenther <rguenther@suse.de>
9039 PR tree-optimization/46590
9040 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Do not
9041 update SSA form here.
9042 (canonicalize_induction_variables): Assert we do not need to
9044 (tree_unroll_loops_completely): Update SSA form here.
9045 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
9046 Do not verify loop-closed SSA form if SSA form is not up-to-date.
9048 2012-09-05 Georg-Johann Lay <avr@gjlay.de>
9051 * config.gcc (tm_file,target=avr-*-*): Add avr/avrlibc.h if
9052 not configured --with-avrlibc=no.
9053 (tm_defines,target=avr-*-*): Add WITH_AVRLIBC if not configured
9055 * config/avr/avrlibc.h: New file.
9056 * config/avr/avr-c.c: Build-in define __WITH_AVRLIBC__ if
9057 not configured --with-avrlibc=no.
9058 * doc/invoke.texi (AVR Built-in Macros): Document __WITH_AVRLIBC__
9060 2012-09-04 Teresa Johnson <tejohnson@google.com>
9062 * gcov-io.c (gcov_write_summary): Write out non-zero histogram
9063 entries to function summary along with an occupancy bit vector.
9064 (gcov_read_summary): Read in the histogram entries.
9065 (gcov_histo_index): New function.
9066 (void gcov_histogram_merge): Ditto.
9067 * gcov-io.h (gcov_type_unsigned): New type.
9068 (struct gcov_bucket_type): Ditto.
9069 (struct gcov_ctr_summary): Include histogram.
9070 (GCOV_TAG_SUMMARY_LENGTH): Update to include histogram entries.
9071 (GCOV_HISTOGRAM_SIZE): New macro.
9072 (GCOV_HISTOGRAM_BITVECTOR_SIZE): Ditto.
9073 * profile.c (NUM_GCOV_WORKING_SETS): Ditto.
9074 (gcov_working_sets): New global variable.
9075 (compute_working_sets): New function.
9076 (find_working_set): Ditto.
9077 (get_exec_counts): Invoke compute_working_sets.
9078 * coverage.c (read_counts_file): Merge histograms, and
9079 fix bug with accessing summary info for non-summable counters.
9080 * basic-block.h (gcov_type_unsigned): New type.
9081 (struct gcov_working_set_info): Ditto.
9082 (find_working_set): Declare.
9083 * gcov-dump.c (tag_summary): Dump out histogram.
9085 2012-09-04 Diego Novillo <dnovillo@google.com>
9088 * vec.h (vec_t::embedded_init): Move default argument value
9089 to function declaration.
9091 2012-09-04 Eric Botcazou <ebotcazou@adacore.com>
9093 * bb-reorder.c (gate_handle_reorder_blocks): Move around.
9094 (rest_of_handle_reorder_blocks): Likewise.
9095 (pass_reorder_blocks): Likewise.
9096 (gate_handle_partition_blocks): Likewise.
9098 2012-09-04 Eric Botcazou <ebotcazou@adacore.com>
9100 PR rtl-optimization/54456
9101 * sched-rgn.c (gate_handle_sched): Return 1 only if optimize > 0.
9103 2012-09-04 Diego Novillo <dnovillo@google.com>
9106 * vec.h (vec_t::alloc): Remove explicit type specification
9108 (vec_t::copy): Likewise.
9109 (vec_t::reserve): Likewise.
9110 (vec_t::reserve_exact): Likewise.
9111 (vec_t::safe_splice): Likewise.
9112 (vec_t::safe_push): Likewise.
9113 (vec_t::safe_grow): Likewise.
9114 (vec_t::safe_grow_cleared): Likewise.
9115 (vec_t::safe_insert): Likewise.
9117 2012-09-04 Richard Henderson <rth@redhat.com>
9119 * alias.c (read_dependence): Return true for ALIAS_SET_MEMORY_BARRIER.
9121 2012-09-04 Richard Guenther <rguenther@suse.de>
9123 * tree-ssa-pre.c (value_expressions): Make it a vector of
9124 bitmaps containing expression IDs.
9125 (add_to_value): Adjust.
9126 (sorted_array_from_bitmap_set): Likewise.
9127 (bitmap_set_replace_value): Likewise.
9128 (print_value_expressions): Likewise.
9129 (get_constant_for_value_id): Likewise.
9130 (get_representative_for): Likewise.
9131 (phi_translate_1): Likewise.
9132 (bitmap_find_leader): Likewise.
9133 (find_or_generate_expression): Likewise.
9134 (do_regular_insertion): Likewise.
9135 (init_pre): Likewise.
9136 (fini_pre): Likewise.
9138 2012-09-04 Diego Novillo <dnovillo@google.com>
9141 * vec.h (vec_t::copy): Add cast in call to reserve_exact.
9143 2012-09-04 Richard Guenther <rguenther@suse.de>
9145 * tree-ssa-pre.c (add_to_exp_gen): Adjust.
9146 (make_values_for_phi): Do not add to PHI_GEN for FRE.
9147 (compute_avail): Stop processing after adding all defs to
9149 (init_pre): Do not allocate not needed bitmap sets for FRE.
9151 2012-09-04 Diego Novillo <dnovillo@google.com>
9153 Rewrite VEC_* functions as member functions of vec_t.
9155 * vec.h: Update documentation.
9156 (ALONE_VEC_CHECK_INFO): Define.
9157 (ALONE_VEC_CHECK_DECL): Define.
9158 (ALONE_VEC_CHECK_PASS): Define.
9159 (struct vec_prefix): Rename field NUM to NUM_.
9160 Rename field ALLOC to ALLOC_.
9162 (struct vec_t): Rename field PREFIX to PREFIX_.
9163 Rename field VEC to VEC_.
9165 (vec_t::length): Rename from VEC_length_1. Update all users.
9166 (vec_t::empty): Rename from VEC_empty_1. Update all users.
9167 (vec_t::address): Rename from VEC_address_1. Update all users.
9169 (vec_t::last): Rename from VEC_last_1. Update all users.
9170 (vec_t::operator[]): Rename from VEC_index_1. Update all users.
9171 (vec_t::iterate): Rename from VEC_iterate_1. Update all users.
9172 (vec_t::embedded_size): Rename from VEC_embedded_size_1.
9174 (vec_t::embedded_init): Rename from VEC_embedded_init_1.
9176 (vec_t::alloc): Rename from VEC_alloc_1. Update all users.
9177 (vec_t::free): Rename from VEC_free_1. Update all users.
9178 (vec_t::copy): Rename from VEC_copy_1. Update all users.
9179 (vec_t::space): Rename from VEC_space_1. Update all users.
9180 (vec_t::reserve): Rename from VEC_reserve_1. Update all users.
9181 (vec_t::reserve_exact): Rename from VEC_reserve_exact_1.
9183 (vec_t::splice): Rename from VEC_splice_1. Update all users.
9184 (vec_t::safe_splice): Rename from VEC_safe_splice_1. Update all users.
9185 (vec_t::quick_push): Rename from VEC_quick_push_1. Update all users.
9186 (vec_t::safe_push): Rename from VEC_safe_push_1. Update all users.
9187 (vec_t::pop): Rename from VEC_pop_1. Update all users.
9188 (vec_t::truncate): Rename from VEC_truncate_1. Update all users.
9189 (vec_t::safe_grow): Rename from VEC_safe_grow_1. Update all users.
9190 (vec_t::safe_grow_cleared): Rename from VEC_safe_grow_cleared_1.
9192 (vec_t::replace): Rename from VEC_replace_1. Update all users.
9193 (vec_t::quick_insert): Rename from VEC_quick_insert_1.
9195 (vec_t::safe_insert): Rename from VEC_safe_insert_1. Update all users.
9196 (vec_t::ordered_remove): Rename from VEC_ordered_remove_1.
9198 (vec_t::unordered_remove): Rename from VEC_unordered_remove_1.
9200 (vec_t::block_remove): Rename from VEC_block_remove_1. Update all users.
9201 (vec_t::lower_bound): Rename from VEC_lower_bound_1. Update all users.
9203 2012-09-04 Steven Bosscher <steven@gcc.gnu.org>
9205 * gimple.h (gimple_build_switch): Remove.
9206 (gimple_build_switch_vec): Promote to the new gimple_build_switch.
9207 (gimple_switch_default_label): Assert the default case label is
9208 really a default case label.
9209 (gimple_switch_set_default_label): Likewise.
9210 * gimple.c (gimple_build_switch_nlabels): Make sure a default label
9211 is passed in, and simplify accordingly.
9212 (gimple_build_switch): Removed.
9213 (gimple_build_switch_vec): Rename to gimple_build_switch.
9214 * gimplify.c (gimplify_switch_expr): Update gimple_build_switch use.
9215 * gimple-pretty-print.c (dump_gimple_switch): Do not accept a NULL
9217 * stmt.c (expand_case): Simplify using the fact that every GIMPLE
9218 switch must have a default case.
9219 * tree-cfg.c (group_case_labels_stmt): Likewise.
9220 (verify_gimple_switch): Use gimple_switch_label in verifier to get
9221 the label at index 0, and verify that it is a valid default case.
9222 * except.c (sjlj_emit_dispatch_table): Rewrite construction of the
9223 switch for dispatching.
9224 * tree-eh.c (lower_try_finally_switch): Update gimple_build_switch use.
9225 (lower_eh_dispatch): Likewise.
9226 * tree-vrp.c (execute_vrp): Use gimple_switch_label to get the case
9227 label at index 0 before turning it into a default case label.
9228 * omp-low.c (expand_omp_sections): Update gimple_build_switch use.
9229 * tree-switch-conversion.c (emit_case_bit_tests): Get the default case
9230 label using gimple_switch_default_label.
9231 (collect_switch_conv_info): Likewise.
9232 (process_switch): Likewise.
9233 * doc/gimple.texi: Update documentation of gimple_build_switch.
9235 2012-09-04 Georg-Johann Lay <avr@gjlay.de>
9238 * config/avr/avr.c (avr_expand_delay_cycles): Mask operand with
9241 2012-09-04 Bin Cheng <bin.cheng@arm.com>
9244 * config/arm/arm.c (thumb1_extra_regs_pushed): Handle return value
9245 of size less than 4 bytes by using macro ARM_NUM_INTS.
9246 (thumb1_unexpanded_epilogue): Use macro ARM_NUM_INTS.
9248 2012-09-04 Richard Guenther <rguenther@suse.de>
9250 PR tree-optimization/54458
9251 * tree-ssa-threadupdate.c (thread_through_loop_header): If we
9252 turn the loop into one with multiple latches mark it so.
9254 2012-09-04 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9257 * config/avr/avr.c (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): New
9259 (avr_allocate_stack_slots_for_args): ...this new static function.
9261 2012-09-04 Christophe Lyon <christophe.lyon@linaro.org>
9263 * config/arm/arm.c (arm_expand_builtin): Replace gen_rtx_CONST_INT
9265 (arm_emit_coreregs_64bit_shift): Likewise.
9267 2012-09-04 Christophe Lyon <christophe.lyon@linaro.org>
9269 * config/arm/arm.c (arm_evpc_neon_vext): New function.
9270 (arm_expand_vec_perm_const_1): Add call to arm_evpc_neon_vext.
9272 2012-09-04 Oleg Endo <olegendo@gcc.gnu.org>
9275 * config/sh/sh.c (prepare_cbranch_operands): Pull out comparison
9276 canonicalization code into...
9277 * (sh_canonicalize_comparison): This new function.
9278 * config/sh/sh-protos.h: Declare it.
9279 * config/sh/sh.h: Use it in new macro CANONICALIZE_COMPARISON.
9280 * config/sh/sh.md (cbranchsi4): Remove TARGET_CBRANCHDI4 check and
9281 always invoke expand_cbranchsi4.
9283 2012-09-03 Andi Kleen <ak@linux.intel.com>
9285 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Initialize
9288 2012-09-03 Andrew Pinski <apinski@cavium.com>
9291 * tree-if-conv.c (constant_or_ssa_name): New function.
9292 (fold_build_cond_expr): New function.
9293 (predicate_scalar_phi): Use fold_build_cond_expr instead of build3.
9294 (predicate_mem_writes): Likewise.
9296 2012-09-03 Marc Glisse <marc.glisse@inria.fr>
9298 * fold-const.c (fold_ternary_loc): Constant-propagate after
9299 removing dead operands.
9301 2012-09-03 Michael Matz <matz@suse.de>
9303 PR tree-optimization/46590
9304 * tree-cfg.c (gimple_duplicate_sese_region): Don't update
9306 * tree-ssa-loop-ch.c (copy_loop_headers): ... but here.
9308 2012-09-03 Sandra Loosemore <sandra@codesourcery.com>
9310 * doc/invoke.texi: Fix numerous typos and punctuation/grammatical
9311 errors throughout the file. Re-word some awkward sentences and
9314 2012-09-03 Richard Guenther <rguenther@suse.de>
9316 PR tree-optimization/54362
9317 * tree-ssa-structalias.c (find_func_aliases): Handle COND_EXPR.
9319 2012-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9321 * config/s390/s390.c (s390_loadrelative_operand_p): New function.
9322 (s390_check_qrst_address, print_operand_address): Use
9323 s390_loadrelative_operand_p instead of s390_symref_operand_p.
9324 (s390_check_symref_alignment): Accept pointer size alignment for
9326 (legitimize_pic_address): Use load relative on z10 or later.
9328 2012-09-03 Jakub Jelinek <jakub@redhat.com>
9331 * valtrack.c (dead_debug_insert_temp): Drop non-reg uses
9334 2012-09-03 Joseph Myers <joseph@codesourcery.com>
9336 * common.opt (--no-sysroot-suffix): New driver option.
9337 * doc/invoke.texi (--no-sysroot-suffix): Document.
9338 * gcc.c (driver_handle_option): Handle --no-sysroot-suffix as not
9339 needing spec processing.
9340 (main): Do not process sysroot suffixes if no_sysroot_suffix.
9342 2012-09-02 Oleg Endo <olegendo@gcc.gnu.org>
9345 * common/config/sh/sh-common.c: Update copyright years.
9346 (sh_option_init_struct): Delete.
9347 (TARGET_OPTION_INIT_STRUCT): Likewise.
9349 2012-09-02 Oleg Endo <olegendo@gcc.gnu.org>
9352 * config/sh/sh.md (cmpgeusi_t): Remove N alternative.
9353 Check operands[1] in split condition instead of operands[0].
9356 2012-09-02 Mark Kettenis <kettenis@openbsd.org>
9358 * config.gcc (x86_64-*-openbsd*): New target.
9359 * config.host (*-*-openbsd*): New target.
9360 * config/openbsd.h (TARGET_C99_FUNCTIONS): Define.
9361 * config/i386/openbsdelf.h: Remove some superfluous defines and
9362 group things together in a more logical fashion.
9363 (DBX_REGISTER_NUMBER): Provide a
9364 definition that works on both 32-bit and 64-bit targets.
9365 (WCHAR_TYPE_SIZE): Hardcode as 32.
9366 (NO_DOLLAR_IN_LABEL): Remove undef.
9367 (TARGET_DEFAULT): Remove.
9368 (SET_ASM_OP): Remove.
9369 (DEFAULT_PCC_STRUCT_RETURN): Undef first to prevent warning.
9370 (ASM_OUTPUT_MAX_SKIP_ALIGN): Synch with x86-64.h
9371 (DWARF2_UNWIND_INFO): Remove define.
9372 (HAVE_ENABLE_EXECUTE_STACK): Define.
9373 * config/host-openbsd.c: New file.
9374 * config/t-openbsd (USER_H): Add EXTRA_HEADERS.
9375 * config/x-openbsd: New file.
9377 2012-09-02 Oleg Endo <olegendo@gcc.gnu.org>
9379 * config/sh/sh.md (*extend<mode>si2_compact_mem_disp): Pass iterated
9380 mode to sh_legitimate_index_p instead of QImode.
9382 2012-09-02 Eric Botcazou <ebotcazou@adacore.com>
9384 PR rtl-optimization/54369
9385 * config/mips/mips.c (mips_reorg): Invoke cleanup_barriers before
9386 calling dbr_schedule.
9387 * config/sparc/sparc.c (sparc_reorg): Likewise.
9389 2012-09-01 Jakub Jelinek <jakub@redhat.com>
9392 * config/i386/i386.md (*mov<mode>_insv_1_rex64, *movsi_insv_1): If
9393 operands[1] is CONST_INT_P, convert it to QImode before printing.
9395 2012-09-01 Andrew Pinski <apinski@cavium.com>
9397 * simplify-rtx.c (simplify_unary_operation_1 <case TRUNCATE>):
9398 A truncate of a memory is just loading the low part of the memory.
9400 2012-09-01 Uros Bizjak <ubizjak@gmail.com>
9404 * config/i386/i386.c (ix86_legitimate_combined_insn): New function.
9405 (TARGET_LEGITIMATE_COMBINED_INSN): New macro.
9407 2012-09-01 Uros Bizjak <ubizjak@gmail.com>
9409 * target.def (legitimate_combined_insn): New target hook.
9410 * doc/tm.texi.in (TARGET_LEGITIMATE_COMBINED_INSN): New hook.
9411 * doc/tm.texi: Regenerated.
9412 * combine.c (recog_for_combine): Call targetm.legitimate_combined_insn
9413 to allow targets to reject combined insn.
9414 * hooks.h (hook_bool_rtx_true): New.
9415 * hooks.c (hook_bool_rtx_true): Ditto.
9417 2012-08-31 Martin Jambor <mjambor@suse.cz>
9419 * ipa-inline-analysis.c (estimate_function_body_sizes): Allocate
9420 nonconstant_names after calculate_dominance_info and
9421 loop_optimizer_init.
9423 2012-08-31 Greta Yorsh <Greta.Yorsh@arm.com>
9425 * config/arm/arm.c (arm_expand_epilogue): Remove unused variable
9428 2012-08-31 Martin Jambor <mjambor@suse.cz>
9431 * ipa-inline-analysis.c (remap_predicate): Fix the offset_map
9434 2012-08-31 Martin Jambor <mjambor@suse.cz>
9436 * ipa-inline-analysis.c (phi_result_unknown_predicate): New function.
9437 (predicate_for_phi_result): Likewise.
9438 (estimate_function_body_sizes): Use the above two functions.
9440 2012-08-31 Martin Jambor <mjambor@suse.cz>
9443 * ipa-inline-analysis.c (estimate_function_body_sizes): Compute
9444 dominance info and loops whenever optimizing.
9446 2012-08-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9447 Richard Earnshaw <richard.earnshaw@arm.com>
9450 * config/arm/arm.c (neon_dereference_pointer): Adjust nelems by
9451 element size. Use elem_type from the formal parameter. New parameter
9453 (neon_expand_args): Adjust call to neon_dereference_pointer.
9455 2012-08-29 Steven Bosscher <steven@gcc.gnu.org>
9457 * cfg.c (dump_bb_info): Print a newline if there were no edges to dump.
9459 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
9462 * config/mips/t-linux64 (MULTILIB_OSDIRNAMES): Change to use
9463 mapping style, add ../lib/mips16.
9464 (MULTILIB_OPTIONS,MULTILIB_DIRNAMES): Add mips16.
9465 (MULTILIB_EXCLUSIONS): Exclude mips16 when not -mabi=32.
9467 2012-08-29 Richard Sandiford <rdsandiford@googlemail.com>
9469 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_synci
9472 2012-08-29 Oleg Endo <olegendo@gcc.gnu.org>
9474 * config/sh/sh.opt (menable-tas): Rename to mtas.
9475 * doc/invoke.texi (SH options): Likewise.
9476 * config/sh/sync.md: Update comments.
9478 2012-08-29 Oleg Endo <olegendo@gcc.gnu.org>
9480 * config/sh/iterators.md: New file.
9481 * config/sh/sync.md (I124, I12, i124suffix): Delete. Replace usage
9482 with new iterators QIHISI, QIHI, bw, bwl respectively throughout
9484 * config/sh/sh.md: Include new file iterators.md.
9485 (zero_extendhisi2, zero_extendqisi2): Fold into zero_extend<mode>si2.
9486 (*zero_extendhisi2_compact, *zero_extendqisi2_compact): Fold into
9487 *zero_extend<mode>si2_compact.
9488 (*zero_extendqisi2_disp_mem, zero_extendhisi2_disp_mem): Fold into
9489 *zero_extend<mode>si2_disp_mem.
9490 (extendhisi2, extendqisi2): Fold into extend<mode>si2.
9491 (*extendqisi2_compact_reg, *extendhisi2_compact_reg): Fold into
9492 *extend<mode>si2_compact_reg.
9493 (*extendqisi2_compact_mem_disp, *extendhisi2_compact_mem_disp): Fold
9494 into *extend<mode>si2_compact_mem_disp.
9495 (*extendqisi2_compact_snd, *extendhisi2_compact_snd): Fold into
9496 *extend<mode>si2_compact_snd.
9497 (*movsi_index_disp, *movhi_index_disp): Fold with iterators and rename
9498 to *movsi_index_disp_load, *movhi_index_disp_load,
9499 *mov<mode>_index_disp_store.
9500 (*movqi_reg_reg, *movhi_reg_reg): Fold into *mov<mode>_reg_reg.
9501 (*movqi_store_mem_disp04, *movhi_store_mem_disp05): Fold into
9502 *mov<mode>_store_mem_disp04.
9503 (*movqi_store_mem_disp12, *movhi_store_mem_disp13): Fold into
9504 *mov<mode>_store_mem_disp12.
9505 (*movqi_load_mem_disp, *movhi_load_mem_disp): Fold into
9506 *mov<mode>_load_mem_disp04 and *mov<mode>_load_mem_disp12.
9508 2012-08-29 Martin Jambor <mjambor@suse.cz>
9510 * ipa-inline.h (estimate_edge_hints): Call do_estimate_edge_hints, not
9511 do_estimate_edge_time.
9513 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
9515 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Add nomips16 asm
9516 directives, remove #ifndef __mips16 guards.
9517 * config/mips/t-linux64 (MULTILIB_OSDIRNAMES): Change to use
9518 mapping style, add ../lib/mips16.
9519 (MULTILIB_OPTIONS,MULTILIB_DIRNAMES): Add mips16.
9520 (MULTILIB_EXCLUSIONS): Exclude mips16 when not -mabi=32.
9522 2012-08-28 Walter Lee <walt@tilera.com>
9523 * confg/tilegx/tilegx.md: Fix code style.
9524 (*zero_extendsidi_truncdisi): Fix typo.
9525 * config/tilegx/tilegx.c: Fix code style.
9526 (tilegx_function_profiler): Fix typo.
9528 2012-08-28 Walter Lee <walt@tilera.com>
9530 * doc/invoke.texi: Document -mcmodel=small, -mcmodel=large.
9531 * config/tilegx/tilegx.h: Include config/tilegx/tilegx-opts.h.
9532 (CRT_CALL_STATIC_FUNCTION): Define.
9533 * config/tilegx/predicates.md (const_last_symbolic_operand):
9534 Handle UNSPEC_HW2_LAST_PCREL, UNSPEC_HW1_LAST_PLT_PCREL, and
9535 UNSPEC_HW2_LAST_PLT_PCREL.
9536 (const_symbolic_operand): Handle UNSPEC_HW1_PCREL,
9537 UNSPEC_HW0_PLT_PCREL, and UNSPEC_HW1_PLT_PCREL.
9538 * config/tilegx/tilegx.md (UNSPEC_MOV_LARGE_PCREL_STEP4): Define,
9539 and renumber the constants that follow.
9540 (UNSPEC_HW1_PCREL): Ditto.
9541 (UNSPEC_HW2_LAST_PCREL): Ditto.
9542 (UNSPEC_HW0_PLT_PCREL): Define.
9543 (UNSPEC_HW1_PLT_PCREL): Define.
9544 (UNSPEC_HW1_LAST_PLT_PCREL): Define.
9545 (UNSPEC_HW2_LAST_PLT_PCREL): Define.
9546 (mov_large_pcrel_step1): Define.
9547 (mov_large_pcrel_step2): Define.
9548 (mov_large_pcrel_step3): Define.
9549 (mov_large_pcrel_step4): Define.
9550 (mov_plt_pcrel_step1): Define.
9551 (mov_plt_pcrel_step2): Define.
9552 (mov_plt_pcrel_step3): Define.
9553 (mov_plt_pcrel_step1_32bit): Define.
9554 (mov_plt_pcrel_step2_32bit): Define.
9555 (call): Handle tilegx_cmodel == CM_LARGE, CM_LARGE_PIC.
9556 (call_value): Ditto.
9557 * config/tilegx/tilegx.opt: Include config/tilegx/tilegx-opts.h.
9558 (mcmodel): New option.
9559 (enum cmodel): Define.
9562 * config/tilegx/tilegx-opts.h: New file.
9563 * config/tilegx/tilegx-protos.h (tilegx_compute_pcrel_address):
9565 (tilegx_compute_pcrel_plt_address): Declare.
9566 * config/tilegx/tilegx.c (tilegx_option_override): Handle
9568 (tilegx_function_ok_for_sibcall): Ditto.
9569 (compute_pcrel_address): Rename to tilegx_compute_pcrel_address,
9570 and don't declare static. Handle tilegx_cmodel.
9571 (tilegx_compute_pcrel_plt_address): Define.
9572 (tilegx_legitimize_pic_address): Rename calls to
9573 compute_pcrel_address.
9574 (tilegx_delegitimize_address): Handle UNSPEC_HW1_PCREL,
9575 UNSPEC_HW2_LAST_PCREL, UNSPEC_HW0_PLT_PCREL, UNSPEC_HW1_PLT_PCREL,
9576 UNSPEC_HW1_LAST_PLT_PCREL, UNSPEC_HW2_LAST_PLT_PCREL.
9577 (load_pic_register): Rename call to compute_pcrel_address.
9578 (tilegx_print_operand): Handle UNSPEC_HW1_PCREL,
9579 UNSPEC_HW2_LAST_PCREL, UNSPEC_HW0_PLT_PCREL, UNSPEC_HW1_PLT_PCREL,
9580 UNSPEC_HW1_LAST_PLT_PCREL, UNSPEC_HW2_LAST_PLT_PCREL.
9582 2012-08-27 Maxim Kuvyrkov <maxim@codesourcery.com>
9584 * sched-deps.c (add_dependence_list_and_free): Simplify.
9585 (flush_pending_list_and_free): Fix a hack that was fixing a hack. Free
9586 lists when add_dependence_list_and_free doesn't free them.
9588 2012-08-27 Uros Bizjak <ubizjak@gmail.com>
9591 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Return
9592 true for TARGET_64BIT or !flag_pic.
9593 * config/i386/sync.md (*atomic_compare_and_swap_doubledi_pic): Remove.
9594 (atomic_compare_and_swap_double<mode>): Change operand 2 predicate
9595 to cmpxchg8b_pic_memory_operand. Use DWIH mode iterator.
9596 Add insn constraint. Conditionally emit xchg asm insns.
9597 (atomic_compare_and_swap<mode>): Update calls. Check only
9598 cmpxchg8b_pic_memory_operand in memory address fixup.
9600 (CASHMODE): Rename from DCASHMODE.
9601 (doublemodesuffix): Update modes.
9602 (regprefix): New mode attribute.
9604 (unspecv) <UNSPECV_CMPXCHG_{1,2,3,4}>: Remove.
9605 <UNSPECV_CMPXCHG>: New constant.
9606 (atomic_compare_and_swap<mode>_1): Rename from
9607 atomic_compare_and_swap_single<mode>. Update calls and
9608 unspec_volatile constants.
9609 (atomic_compare_and_swap<mode>_doubleword): Rename from
9610 atomic_compare_and_swap_double<mode>. Update calls and
9611 unspec_volatile constants.
9613 2012-08-27 Walter Lee <walt@tilera.com>
9615 * doc/md.texi (TILE-Gx): Fix typo.
9617 2012-08-27 Walter Lee <walt@tilera.com>
9619 * config/tilegx/tilegx.c (tilegx_function_profiler): Fix typo.
9620 * config/tilepro/tilepro.c (tilepro_function_profiler): Ditto.
9622 2012-08-27 Walter Lee <walt@tilera.com>
9624 * config/tilegx/tilegx.md (*bfins): Rename to insn_bfins.
9625 (insn_bfins): Delete.
9627 2012-08-27 Walter Lee <walt@tilera.com>
9629 * config/tilegx/sync.md (atomic_compare_and_swap_bare<mode>,
9630 atomic_exchange_bare<mode>,
9631 atomic_fetch_<fetchop_name>_bare<mode>): Set type to X1_remote.
9632 * config/tilegx/tilegx-generic.md (X1_remote): New
9634 * config/tilegx/tilegx.md (type): Add X1_remove.
9635 (insn_cmpexch<four_if_si>, insn_exch<four_if_si>,
9636 insn_fetchadd<four_if_si>, insn_fetchaddgez<four_if_si>,
9637 insn_fetchand<four_if_si>, insn_fetchor<four_if_si>): Set type to
9640 2012-08-27 Andreas Schwab <schwab@linux-m68k.org>
9642 * gdbinit.in: Fix syntax of skip command.
9644 2012-08-27 Richard Sandiford <rdsandiford@googlemail.com>
9646 * config/mips/mips.c (mips_pic_call_symbol_from_set): Check for
9647 SYMBOL_REF SET_SRCs.
9649 2012-08-27 Richard Sandiford <rdsandiford@googlemail.com>
9651 * config/mips/mips.c (vr4130_align_insns): Don't simulate
9652 ghost instructions. Assert that the required instructions exist.
9654 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
9656 * config/mips/mips.h (AVOID_CCMODE_COPIES): Update rationale for
9658 * config/mips/mips.c (machine_function): Add next_fcc.
9659 (mips_output_move): Remove handling of fcc moves.
9660 (mips_allocate_fcc): New function.
9661 (mips_emit_compare, mips_expand_vcondv2sf): Use it.
9662 (mips_hard_regno_mode_ok_p): Restrict CCmode to ST registers.
9663 Remove special case for CCmode reloads.
9664 (mips_expand_builtin_compare_1): Use mips_allocate_fcc and treat
9665 the result a fixed operand.
9666 * config/mips/mips.md (move_type): Remove lui_movf.
9667 (type, length): Remove references to it.
9668 (movcc, reload_incc, reload_outcc): Delete.
9670 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
9672 * config/mips/mips.c (mips_has_long_branch_p): New function,
9674 (mips_expand_ghost_gp_insns): ...here. Look inside sequences.
9676 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
9678 * config/mips/mips.c (r10k_safe_mem_expr_p): Use get_inner_reference.
9680 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
9682 * config/mips/mips.c (mips_rtx_costs): Add costs for CINS.
9684 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
9686 * config/mips/mips.c (mips_rtx_costs): Add missing COSTS_N_INSNS
9687 to the size cost of multiplication.
9689 2012-08-26 Gerald Pfeifer <gerald@pfeifer.com>
9691 * doc/install.texi (Specific): Clarify what needs to be added to
9694 2012-08-26 Gerald Pfeifer <gerald@pfeifer.com>
9696 * doc/tm.texi.in (Misc): Move descriptions of NO_DOLLAR_IN_LABEL
9697 and NO_DOT_IN_LABEL from here...
9698 (Label Output): ...to here.
9699 * doc/tm.texi: Regenerate.
9701 2012-08-26 Gerald Pfeifer <gerald@pfeifer.com>
9703 * doc/invoke.texi (C++ Dialect Options): Add missing space.
9705 2012-08-25 Eric Botcazou <ebotcazou@adacore.com>
9707 PR rtl-optimization/54088
9708 * jump.c (delete_related_insns): Robustify latest change.
9710 2012-08-25 Ricardo Catalinas Jiménez <jimenezrick@gmail.com>
9712 * doc/extend.texi (__atomic Builtins): Remove space before comma.
9714 2012-08-25 Richard Sandiford <rdsandiford@googlemail.com>
9715 Andrew Pinski <apinski@cavium.com>
9717 * config/mips/mips.h (CASE_VECTOR_MODE): For not
9718 TARGET_MIPS16_SHORT_JUMP_TABLES use ptr_mode.
9719 (CASE_VECTOR_SHORTEN_MODE): Likewise.
9721 2012-08-25 Uros Bizjak <ubizjak@gmail.com>
9723 * config/i386/i386.h (FP_REG_P): Remove macro.
9724 (FP_REGNO_P): Ditto.
9725 (HARD_REGNO_NREGS): Use STACK_REGNO_P instead of FP_REGNO_P.
9726 (HARD_REGNO_NREGS_HAS_PADDING): Ditto.
9727 (ANY_FP_REGNO_P): Ditto.
9728 (HARD_REGNO_RENAME_OK): Use STACK_REGNO_P.
9729 * config/i386/i386.c (output_387_ffreep): Use STACK_REGNO_P
9730 instead of FP_REGNO_P.
9731 (ix86_hard_regno_mode_ok): Ditto.
9732 * config/i386/predicates.md (fp_register_operand): Ditto.
9733 (register_and_not_fp_reg_operand): Ditto.
9734 * config/i386/sync.md (atomic_loaddi_fpu): Use STACK_REG_P instead
9737 * reg-stack.c (get_true_reg): Use STACK_REG_P instead of FP_REG_P.
9739 2012-08-24 Jason Merrill <jason@redhat.com>
9741 * print-tree.c (print_node): Don't check TREE_LANG_FLAG_*
9742 on TREE_VEC or SSA_NAME.
9744 2012-08-24 Jakub Jelinek <jakub@redhat.com>
9747 * gimplify.c (optimize_compound_literals_in_ctor): Only recurse
9748 if init is a CONSTRUCTOR.
9750 2012-08-24 Steven Bosscher <steven@gcc.gnu.org>
9752 * tree-ssa-live.c (dump_var_map): Do not dump the partition
9753 map of virtual operands.
9755 2012-08-24 Yuri Rumyantsev <ysrumyan@gmail.com>
9757 * config/i386/i386.c (ia32_multipass_dfa_lookahead) : Add
9758 case for Atom processor.
9760 2012-08-24 Simon Baldwin <simonb@google.com>
9762 * dwarf2out.c (gen_producer_string): Omit command line switch if
9763 CL_NO_DWARF_RECORD flag set.
9764 * opts.h (CL_NO_DWARF_RECORD): New.
9765 * opt-functions.awk (switch_flags): Add NoDWARFRecord.
9766 * doc/options.texi: Document NoDWARFRecord option flag.
9768 2012-08-24 H.J. Lu <hongjiu.lu@intel.com>
9771 * dwarf2out.c (mem_loc_descriptor): Allow arg_pointer_rtx and
9772 frame_pointer_rtx for based_loc_descr.
9774 2012-08-24 Martin Jambor <mjambor@suse.cz>
9776 * predict.c (maybe_hot_frequency_p): New parameter fun. Use its decl
9777 instead of current_function_decl, use profile_status_for_function and
9778 ENTRY_BLOCK_PTR_FOR_FUNCTION with fun instead of their cfun variants.
9779 (maybe_hot_count_p): New parameter fun, use
9780 profile_status_for_function instead of its cfun_variant.
9781 (maybe_hot_bb_p): New parameter fun, checking-assert it, pass it to
9783 (maybe_hot_edge_p): Pass cfun to maybe_hot_count_p and
9784 maybe_hot_frequency_p.
9785 (probably_never_executed_bb_p): New parameter fun, use its decl
9786 instead of current_function_decl.
9787 (optimize_bb_for_size_p): Pass cfun to maybe_hot_bb_p.
9788 (rtl_profile_for_bb): Likewise.
9789 (compute_function_frequency): Pass cfun to maybe_hot_bb_p and
9790 probably_never_executed_bb_p.
9791 * tree-ssa-operands.c (ssa_operands_active): New operator fun. Use it
9793 (update_stmt_operands): Pass cfun as an argument of
9794 ssa_operands_active.
9795 (swap_tree_operands): Likewise.
9796 * gimple-iterator.c (update_modified_stmt): Likewise.
9797 (update_modified_stmts): Likewise.
9798 * tree-flow-inline.h (delink_stmt_imm_use): Likewise.
9799 * tree-ssa.c (delete_tree_ssa): Likewise.
9800 * bb-reorder.c (bb_to_key): Pass cfun to probably_never_executed_bb_p.
9801 (push_to_next_round_p): Likewise.
9802 (find_rarely_executed_basic_blocks_and_crossing_edges ): Likewise.
9803 * cfg.c: Inlude tree.h.
9804 (check_bb_profile): Use profile_status_for_function,
9805 EXIT_BLOCK_PTR_FOR_FUNCTION and ENTRY_BLOCK_PTR_FOR_FUNCTION with
9806 DECL_STRUCT_FUNCTION (current_function_decl) instead of their cfun
9808 (dump_bb_info): Pass DECL_STRUCT_FUNCTION (current_function_decl) to
9809 maybe_hot_bb_p and probably_never_executed_bb_p.
9810 * gimple-pretty-print.c (gimple_dump_bb_buff): Checking-assert that
9811 DECL_STRUCT_FUNCTION (current_function_decl) is not NULL. Pass it to
9812 dump_histograms_for_stmt.
9813 (dump_gimple_mem_ops): Pass
9814 DECL_STRUCT_FUNCTION (current_function_decl)
9815 as an argument to dump_gimple_mem_ops.
9816 * tree-cfg.c (dump_function_to_file): Rename parameter fn to fndecl.
9817 Do not change cfun. Change and restore current_function_decl.
9818 * Makefile.in (cfg.o): Include TREE_H in dependencies.
9820 2012-08-24 Georg-Johann Lay <avr@gjlay.de>
9823 * avr-modes.def (HA, SA, DA, TA, UTA): Adjust modes.
9824 * avr/avr-fixed.md: New file.
9825 * avr/avr.md: Include it.
9827 (adjust_len): Add: minus, minus64, ufract, sfract.
9828 (ALL1, ALL2, ALL4, ORDERED234): New mode iterators.
9829 (MOVMODE): Add: QQ, UQQ, HQ, UHQ, HA, UHA, SQ, USQ, SA, USA.
9830 (MPUSH): Add: HQ, UHQ, HA, UHA, SQ, USQ, SA, USA.
9831 (pushqi1, xload8_A, xload_8, movqi_insn, *reload_inqi, addqi3,
9832 subqi3, ashlqi3, *ashlqi3, ashrqi3, lshrqi3, *lshrqi3, *cmpqi,
9833 cbranchqi4, *cpse.eq): Generalize to handle all 8-bit modes in ALL1.
9834 (*movhi, reload_inhi, addhi3, *addhi3, addhi3_clobber, subhi3,
9835 ashlhi3, *ashlhi3_const, ashrhi3, *ashirhi3_const, lshrhi3,
9836 *lshrhi3_const, *cmphi, cbranchhi4): Generalize to handle all
9837 16-bit modes in ALL2.
9838 (subhi3, casesi, strlenhi): Add clobber when expanding minus:HI.
9839 (*movsi, *reload_insi, addsi3, subsi3, ashlsi3, *ashlsi3_const,
9840 ashrsi3, *ashrhi3_const, *ashrsi3_const, lshrsi3, *lshrsi3_const,
9841 *reversed_tstsi, *cmpsi, cbranchsi4): Generalize to handle all
9842 32-bit modes in ALL4.
9843 * avr-dimode.md (ALL8): New mode iterator.
9844 (adddi3, adddi3_insn, adddi3_const_insn, subdi3, subdi3_insn,
9845 subdi3_const_insn, cbranchdi4, compare_di2,
9846 compare_const_di2, ashrdi3, lshrdi3, rotldi3, ashldi3_insn,
9847 ashrdi3_insn, lshrdi3_insn, rotldi3_insn): Generalize to handle
9848 all 64-bit modes in ALL8.
9849 * config/avr/avr-protos.h (avr_to_int_mode): New prototype.
9850 (avr_out_fract, avr_out_minus, avr_out_minus64): New prototypes.
9851 * config/avr/avr.c (TARGET_FIXED_POINT_SUPPORTED_P): Define to...
9852 (avr_fixed_point_supported_p): ...this new static function.
9853 (TARGET_BUILD_BUILTIN_VA_LIST): Define to...
9854 (avr_build_builtin_va_list): ...this new static function.
9855 (avr_adjust_type_node): New static function.
9856 (avr_scalar_mode_supported_p): Allow if ALL_FIXED_POINT_MODE_P.
9857 (avr_builtin_setjmp_frame_value): Use gen_subhi3 and return new
9858 pseudo instead of gen_rtx_MINUS.
9859 (avr_print_operand, avr_operand_rtx_cost): Handle: CONST_FIXED.
9860 (notice_update_cc): Handle: CC_MINUS.
9861 (output_movqi): Generalize to handle respective fixed-point modes.
9862 (output_movhi, output_movsisf, avr_2word_insn_p): Ditto.
9863 (avr_out_compare, avr_out_plus_1): Also handle fixed-point modes.
9864 (avr_assemble_integer): Ditto.
9865 (output_reload_in_const, output_reload_insisf): Ditto.
9866 (avr_compare_pattern): Skip all modes > 4 bytes.
9867 (avr_2word_insn_p): Skip movuqq_insn, movqq_insn.
9868 (avr_out_fract, avr_out_minus, avr_out_minus64): New functions.
9869 (avr_to_int_mode): New function.
9870 (adjust_insn_length): Handle: ADJUST_LEN_SFRACT,
9871 ADJUST_LEN_UFRACT, ADJUST_LEN_MINUS, ADJUST_LEN_MINUS64.
9872 * config/avr/predicates.md (const0_operand): Allow const_fixed.
9873 (const_operand, const_or_immediate_operand): New.
9874 (nonmemory_or_const_operand): New.
9875 * config/avr/constraints.md (Ynn, Y00, Y01, Y02, Ym1, Ym2, YIJ):
9877 * config/avr/avr.h (LONG_LONG_ACCUM_TYPE_SIZE): Define.
9879 2012-08-23 Kenneth Zadeck <zadeck@naturalbridge.com>
9881 * alias.c (rtx_equal_for_memref_p): Convert constant cases.
9882 * combine.c (find_single_use_1, mark_used_regs_combine): Convert
9884 * cse.c (exp_equiv_p, canon_reg, fold_rtx, cse_process_notes_1,
9885 count_reg_usage): Convert constant cases.
9886 * cselib.c (cselib_expand_value_rtx_1): Convert to CASE_CONST_ANY.
9887 (cselib_subst_to_values): Convert constant cases.
9888 * df-scan.c (df_uses_record): Ditto.
9889 * dse.c (const_or_frame_p): Convert case statements to explicit
9890 if-then-else using mode classes.
9891 * emit-rtl.c (verify_rtx_sharing, copy_insn_1): Convert constant cases.
9892 * explow.c (convert_memory_address_addr_space): Ditto.
9893 * gcse.c (want_to_gcse_p, oprs_unchanged_p, compute_transp): Ditto.
9894 * genattrtab.c (attr_copy_rtx, clear_struct_flag): Ditto.
9895 * ira.c (equiv_init_varies_p, contains_replace_regs,
9896 memref_referenced_p, rtx_moveable_p): Ditto.
9897 * jump.c (mark_jump_label_1): Remove constant cases.
9898 (rtx_renumbered_equal_p): Convert to CASE_CONST_UNIQUE.
9899 * loop-invariant.c (check_maybe_invariant, hash_invariant_expr_1,
9900 invariant_expr_equal_p): Convert to CASE_CONST_ANY.
9901 * postreload-gcse.c (oprs_unchanged_p): Convert constant cases.
9902 * reginfo.c (reg_scan_mark_refs): Ditto.
9903 * regrename.c (scan_rtx): Ditto.
9904 * reload1.c (eliminate_regs_1, elimination_effects,
9905 scan_paradoxical_subregs): Ditto.
9906 * reload.c (operands_match_p, subst_reg_equivs): Ditto.
9907 * resource.c (mark_referenced_resources, mark_set_resources): Ditto.
9908 * rtlanal.c (rtx_unstable_p, rtx_varies_p, count_occurrences)
9909 (reg_mentioned_p, modified_between_p, modified_in_p)
9910 (volatile_insn_p, volatile_refs_p, side_effects_p, may_trap_p_1,
9911 inequality_comparisons_p, computed_jump_p_1): Ditto.
9912 * rtl.c (copy_rtx, rtx_equal_p_cb, rtx_equal_p): Ditto.
9913 * sched-deps.c (sched_analyze_2): Ditto.
9914 * valtrack.c (cleanup_auto_inc_dec): Ditto.
9915 * rtl.h: (CASE_CONST_SCALAR_INT, CASE_CONST_UNIQUE,
9916 CASE_CONST_ANY): New macros.
9918 2012-08-23 Julian Brown <julian@codesourcery.com>
9919 Sandra Loosemore <sandra@codesourcery.com>
9921 * config/mips/mips.md
9922 (UNSPEC_CASESI_DISPATCH): New.
9923 (MIPS16_T_REGNUM): New constant.
9924 (tablejump): Don't use for MIPS16_SHORT_JUMP_TABLES.
9926 (casesi_internal_mips16_<mode>): New.
9927 * config/mips/mips.c (mips16_split_long_branches): Adjust test
9928 to ignore casesi jump tables.
9929 * config/mips/mips.h (TARGET_MIPS16_SHORT_JUMP_TABLES): Update
9931 (CASE_VECTOR_MODE): Use SImode unconditionally.
9932 (CASE_VECTOR_SHORTEN_MODE): Define.
9933 (ASM_OUTPUT_ADDR_DIFF_ELT): Output word-sized addr_diff_elts
9934 when necessary for MIPS16_SHORT_JUMP_TABLES.
9936 2012-08-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9938 * config/rs6000/rs6000.c (rs6000_density_test): Free loop body.
9940 2012-08-23 H.J. Lu <hongjiu.lu@intel.com>
9943 * doc/invoke.texi: Add -da and remove -dm.
9945 2012-08-23 Richard Guenther <rguenther@suse.de>
9947 * tree-vect-stmts.c (vect_finish_stmt_generation): Update
9950 2012-08-23 Jakub Jelinek <jakub@redhat.com>
9952 * tree.c (copy_node_stat): Clear DECL_STRUCT_FUNCTION.
9954 2012-08-23 Mingjie Xing <mingjie.xing@gmail.com>
9956 * doc/gty.texi: Fix typo.
9958 2012-08-23 Richard Guenther <rguenther@suse.de>
9960 * tree-ssa-loop-manip.c (add_exit_phis_var): Allow virtual operands.
9961 (find_uses_to_rename_use): Likewise.
9962 (find_uses_to_rename_bb): Likewise.
9963 (find_uses_to_rename_stmt): Walk over all operands.
9965 2012-08-22 Oleg Endo <olegendo@gcc.gnu.org>
9968 * config/sh/predicates (p27_rshift_count_operand,
9969 not_p27_rshift_count_operand): New predicates.
9970 * config/sh/sh.c (sh_ashlsi_clobbers_t_reg_p,
9971 sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p): Handle special
9972 case when shift amount is 31.
9973 (gen_ashift): Emit gen_shlr instead of gen_lshrsi3_m.
9974 * config/sh/sh.md (ashlsi3_d): Set type to 'dyn_shift' instead
9976 (ashlsi_c): Rename to shll. Adapt calls to gen_ashlsi_c throughout
9978 (lshrsi3): Remove clobber from expander. Use shift_count_operand
9979 instead of nonmemory_operand predicate for second operand. Add
9980 handling of case lshrsi3_n_clobbers_t.
9981 (lshrsi3_k): Use p27_rshift_count_operand for second operand.
9982 (lshrsi3_d): Make insn_and_split. Split dynamic shift to constant
9983 shift sequences if beneficial.
9984 (lshrsi3_n): Make insn_and_split. Split constant shift sequence to
9985 dynamic shift if beneficial.
9986 (lshrsi3_n_clobbers_t): New insn_and_split.
9987 (lshrsi3_m): Delete.
9989 2012-08-22 Steven Bosscher <steven@gcc.gnu.org>
9991 * tracer.c (mark_bb_seen): Use SBITMAP_SIZE.
9993 * alias.c (MAX_ALIAS_LOOP_PASSES): Update comment with rationale,
9994 or rather a lack thereof.
9995 (init_alias_analysis): Propagate the latest information across
9996 the CFG in topological order to propagate as far as possible in
9997 each iteration. Ignore debug insns.
9999 2012-08-22 H.J. Lu <hongjiu.lu@intel.com>
10001 * doc/invoke.texi: Document -mlong-double-64/-mlong-double-80.
10003 * config/i386/i386.c (flag_opts): Add -mlong-double-64.
10004 (TARGET_HAS_BIONIC): Default long double to 64-bit for Bionic.
10006 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 64 if
10007 TARGET_LONG_DOUBLE_64 is true.
10008 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New macro.
10009 (WIDEST_HARDWARE_FP_SIZE): Defined to 80.
10011 * config/i386/i386.opt (mlong-double-80): New option.
10012 (mlong-double-64): Likewise.
10014 * config/i386/i386-c.c (ix86_target_macros): Define
10015 __LONG_DOUBLE_64__ for TARGET_LONG_DOUBLE_64.
10017 2012-08-22 H.J. Lu <hongjiu.lu@intel.com>
10020 * config/i386/i386.c (ix86_split_to_parts): Replace
10021 REAL_VALUE_TO_TARGET_LONG_DOUBLE with real_to_target.
10023 2012-08-22 Richard Guenther <rguenther@suse.de>
10025 * tree-vectorizer.c (vectorize_loops): Do not call
10026 mark_virtual_operands_for_renaming.
10027 * tree-vect-slp.c (vect_slp_transform_bb): Likewise.
10028 Do not update SSA form here.
10030 2012-08-22 Dodji Seketeli <dodji@redhat.com>
10032 * tree.h (TREE_NOTHROW): Use the base.nothrow_flag.
10034 2012-08-22 Richard Guenther <rguenther@suse.de>
10036 PR tree-optimization/46590
10037 * tree-ssa-alias.h (get_continuation_for_phi): Add alias query
10038 counter output argument.
10039 (walk_non_aliased_vuses): Add alias query counter argument
10040 to the walker callback.
10041 * tree-ssa-alias.c (maybe_skip_until): Add alias query counter
10042 output argument and count alias queries.
10043 (get_continuation_for_phi_1): Likewise.
10044 (get_continuation_for_phi): Likewise.
10045 (walk_non_aliased_vuses): Add alias query counter argument
10046 to the walker callback and allow it to abort the walk by
10048 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
10049 * tree-ssa-sccvn.c (vn_reference_lookup_2): Add alias query
10050 counter parmeter, abort walk if that is bigger than
10051 --param sccvn-max-alias-queries-per-access.
10052 * params.def (sccvn-max-alias-queries-per-access): New param.
10053 * doc/invoke.texi (sccvn-max-alias-queries-per-access): Document.
10055 2012-08-22 Richard Guenther <rguenther@suse.de>
10057 * tree-ssa-loop-ch.c (copy_loop_headers): Remove redundant checking.
10058 * tree-into-ssa.c (initialize_flags_in_bb): Use gcc_checking_assert
10059 instead of gcc_assert.
10060 (mark_block_for_update): Likewise.
10061 (add_new_name_mapping): Likewise.
10062 (mark_def_sites): Likewise.
10063 (insert_phi_nodes_for): Likewise.
10064 (rewrite_debug_stmt_uses): Likewise.
10065 (rewrite_stmt): Likewise.
10066 (maybe_register_def): Likewise.
10067 (rewrite_update_phi_arguments): Likewise.
10068 (rewrite_update_enter_block): Likewise.
10069 (mark_def_interesting): Likewise.
10070 (prepare_def_site_for): Likewise.
10071 (insert_updated_phi_nodes_for): Likewise.
10073 2012-08-22 Jakub Jelinek <jakub@redhat.com>
10075 * tree-vect-loop.c (vect_transform_loop): Initialize
10076 check_profitability to false.
10078 * tree-predcom.c (try_combine_chains): Free the worklist vector
10081 2012-08-22 Marc Glisse <marc.glisse@inria.fr>
10083 PR tree-optimization/54317
10084 * tree-vrp.c (extract_range_from_binary_expr_1): Test for
10085 double_int overflow.
10088 2012-08-22 Jakub Jelinek <jakub@redhat.com>
10090 * tree-vrp.c (find_assert_locations): Skip also edges
10091 from the entry block.
10093 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Call
10094 free_stmt_vec_info on orig_cond after gsi_removing it.
10095 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Always
10096 free body_cost_vec vector.
10097 (vect_analyze_data_refs): If gather is unsuccessful,
10098 free_data_ref (dr).
10099 * tree-inline.c (tree_function_versioning): Free
10100 old_transforms_to_apply vector.
10102 2012-08-22 Steven Bosscher <steven@gcc.gnu.org>
10104 * tree-ssa-coalesce.c (struct ssa_conflicts_d): Make contents
10105 of this a VEC and add a bitmap obstack.
10106 (ssa_conflicts_new): Allocate the obstack and grow the VEC cleared
10108 (ssa_conflicts_delete): Free the VEC and release the obstack.
10109 (ssa_conflicts_test_p, ssa_conflicts_test_p, ssa_conflicts_add_one,
10110 ssa_conflicts_merge, ssa_conflicts_dump): Update for above changes.
10111 (truct live_track_d): Add another bitmap obstack here.
10112 (new_live_track): Initialize it and use it for all bitmaps.
10113 (delete_live_track): Don't free the bitmaps one at a time, just
10114 release the obstack.
10115 (create_outofssa_var_map): Fix to conform to GCC code style rules.
10117 2012-08-21 Nathan Froyd <froydnj@gcc.gnu.org>
10119 * config/m32c/constraints.md: New file.
10120 * config/m32c/t-m32c (MD_FILES): Add constraints.
10121 * config/m32c/m32c-protos.h (m32c_const_ok_for_constraint_p): Delete.
10122 (m32c_extra_address_constraint, m32c_extra_memory_constraint): Delete.
10123 (m32c_reg_class_from_constraint): Delete.
10124 (m32c_extra_constraint_p, m32c_extra_constraint_p2): Delete.
10125 (m32c_matches_constraint_p): Declare.
10126 * config/m32c/m32c.h (CONSTRAINT_LEN): Delete.
10127 (REG_CLASS_FROM_CONSTRAINT): Delete.
10128 (CONST_OK_FOR_CONSTRAINT_P): Delete.
10129 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Delete.
10130 (EXTRA_CONSTRAINT_STR): Delete.
10131 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Delete.
10132 * config/m32c/m32c.c: Include tm-constrs.h
10133 (m32c_reg_class_from_constraint): Delete.
10134 (m32c_const_ok_for_constraint_p): Delete.
10135 (m32c_extra_constraint_p2): Rename to...
10136 (m32c_matches_constraint_p): ...this. Make it return bool. Tweak
10138 (m32c_extra_constraint_p): Delete.
10139 (m32c_extra_address_constraint, m32c_extra_memory_constraint): Delete.
10140 (m32c_split_move): Use satisfies_constraint_Ss.
10141 * config/m32c/predicates.md (memsym_operand): Use
10142 satisfies_constraint_Si.
10143 (memimmed_operand): Use satisfies_constraint_Sp.
10144 (m32c_psi_scale, m32c_1bit8_operand): Use satisfies_constraint_Ilb.
10145 (m32c_1bit16_operand): Use satisfies_constraint_Ilw.
10146 (m32c_1mask8_operand): Use satisfies_constraint_ImB.
10147 (m32c_1mask16_operand): Use satisfies_constraint_Imw.
10149 2012-08-21 Nathan Froyd <froydnj@gcc.gnu.org>
10151 * config/mep/mep.h (REG_CLASS_FROM_CONSTRAINT): Delete.
10152 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10153 (CONSTRAINT_LEN, EXTRA_CONSTRAINT): Delete.
10154 * config/mep/mep.c (mep_reg_class_from_constraint): Delete.
10155 (mep_const_ok_for_letter_p, mep_extra_constraint): Delete.
10156 * config/mep/mep-protos.h (mep_reg_class_from_constraint): Delete.
10157 (mep_const_ok_for_letter_p, mep_extra_constraint): Delete.
10159 2012-08-21 Oleg Endo <olegendo@gcc.gnu.org>
10161 * config/sh/sh.md (cmpeqdi_t, cmpgtdi_t, cmpgedi_t, cmpgeudi_t,
10162 cmpgtudi_t, *movsicc_t_false, *movsicc_t_true, divsi_inv20, negsi_cond,
10163 truncdihi2, ic_invalidate_line_i, ic_invalidate_line_sh4a,
10164 ic_invalidate_line_media, movdf_i4, calli_pcrel, call_valuei,
10165 call_valuei_pcrel, sibcalli_pcrel, sibcall_compact,
10166 sibcall_valuei_pcrel, sibcall_value_compact, casesi_worker_1,
10167 casesi_worker_2, bandreg_m2a, borreg_m2a, bxorreg_m2a, sp_switch_1,
10168 sp_switch_2, stack_protect_set_si, stack_protect_set_si_media,
10169 stack_protect_set_di_media, stack_protect_test_si,
10170 stack_protect_test_si_media, stack_protect_test_di_media): Convert to
10171 multi-line asm output strings.
10172 (divsi_inv_qitable, divsi_inv_hitable): Use single-alternative asm
10174 (*andsi3_bclr, rotldi3_mextr, rotrdi3_mextr, calli,
10175 call_valuei_tbr_rel, movml_push_banked, movml_pop_banked, bclr_m2a,
10176 bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a, bldsign_m2a,
10177 bld_reg, *bld_regqi, band_m2a, bor_m2a, bxor_m2a, mextr_rl, *mextr_lr):
10178 Use tab char instead of '\\t'.
10179 (iordi3): Use braced string.
10180 (*movsi_pop): Use tab chars instead of spaces.
10182 2012-08-21 Oleg Endo <olegendo@gcc.gnu.org>
10185 * config/sh/sh.md (*movhi_index_disp): Add support for SH2A
10188 2012-08-21 H.J. Lu <hongjiu.lu@intel.com>
10190 PR middle-end/54332
10191 * df-scan.c (df_bb_verify): Restore df_free_collection_rec call
10192 inside the insn traversal loop.
10194 * vec.h (vec_reserve): Remove the stack allocation check.
10196 2012-08-21 Marc Glisse <marc.glisse@inria.fr>
10198 * fold-const.c (fold_ternary_loc): Detect identity permutations.
10199 Canonicalize permutations more.
10200 * tree-ssa-forwprop.c (is_combined_permutation_identity): New function.
10201 (simplify_permutation): Likewise.
10202 (ssa_forward_propagate_and_combine): Call it.
10204 2012-08-21 Richard Guenther <rguenther@suse.de>
10206 * tree-ssa-loop-im.c (tree_ssa_lim_finalize): Properly free
10207 the affine expansion cache.
10208 * tree-ssa-dom.c (free_expr_hash_elt_contents): New function,
10210 (free_expr_hash_elt): ... this one.
10211 (record_cond): Properly free a not needed hashtable element.
10212 (lookup_avail_expr): Likewise.
10213 * tree-into-ssa.c (init_ssa_renamer): Specify a free function
10214 for the var_infos hashtable.
10215 (update_ssa): Likewise.
10217 2012-08-21 Richard Guenther <rguenther@suse.de>
10219 * alloc-pool.c (pool_alloc): Fix valgrind annotation.
10220 * tree.h: Fix typo and complete flags documentation.
10222 2012-08-21 Richard Guenther <rguenther@suse.de>
10224 * tree.h (struct tree_base): Add union to make it possible to
10225 re-use the upper 4 bytes for tree codes that do not need as
10226 many flags as others. Move visited and default_def_flag to
10227 common bits section in exchange for saturating_flag and
10228 unsigned_flag. Add SSA name version and tree vec length
10230 (struct tree_vec): Remove length field here.
10231 (struct tree_ssa_name): Remove version field here.
10233 2012-08-20 Jan Hubicka <jh@suse.cz>
10236 * ipa-inline.c (want_inline_small_function_p): Take loop_iterations
10238 (edge_badness): Likewise.
10239 * ipa-inline.h (inline_hints_vals): Add INLINE_HINT_loop_iterations.
10240 (inline_summary): Add loop_iterations.
10241 * ipa-inline-analysis.c: Include tree-scalar-evolution.h.
10242 (dump_inline_hints): Dump loop_iterations.
10243 (reset_inline_summary): Free loop_iterations.
10244 (inline_node_duplication_hook): Update loop_iterations.
10245 (dump_inline_summary): Dump loop_iterations.
10246 (will_be_nonconstant_expr_predicate): New function.
10247 (estimate_function_body_sizes): Analyze loops.
10248 (estimate_node_size_and_time): Set hint loop_iterations.
10249 (inline_merge_summary): Merge loop iterations.
10250 (inline_read_section): Stream in loop_iterations.
10251 (inline_write_summary): Stream out loop_iterations.
10253 2012-08-20 Oleg Endo <olegendo@gcc.gnu.org>
10256 * config/sh/sh.md (rotcr, *rotcr, shar, shlr): New insns and splits.
10257 (ashrdi3_k, lshrdi3_k): Rewrite as insn_and_split.
10258 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p): New function.
10259 * config/sh/sh-protos.h (sh_lshrsi_clobbers_t_reg_p): Declare it.
10261 2012-08-20 Oleg Endo <olegendo@gcc.gnu.org>
10264 * config/sh/sh.md (*cset_zero): New insns.
10266 2012-08-20 Mark Wielaard <mjw@redhat.com>
10268 * dwarf2out.h (enum dw_val_class): Add dw_val_class_high_pc.
10269 * dwarf2out.c (dw_val_equal_p): Handle dw_val_class_high_pc.
10270 (add_AT_low_high_pc): New function.
10271 (AT_lbl): Handle dw_val_class_high_pc.
10272 (print_die): Likewise.
10273 (attr_checksum): Likewise.
10274 (attr_checksum_ordered): Likewise.
10275 (same_dw_val_p): Likewise.
10276 (size_of_die): Likewise.
10277 (value_format): Likewise.
10278 (output_die): Likewise.
10279 (gen_subprogram_die): Use add_AT_low_high_pc.
10280 (add_high_low_attributes): Likewise.
10281 (dwarf2out_finish): Likewise.
10283 2012-08-20 Jakub Jelinek <jakub@redhat.com>
10285 PR rtl-optimization/54294
10286 * fwprop.c (all_uses_available_at): Ignore debug insns in between
10287 def_insn and target_insn when checking whether the shortcut is
10290 2012-08-20 Eric Botcazou <ebotcazou@adacore.com>
10292 * config/sparc/sparc.h (MAX_FIXED_MODE_SIZE): Define.
10294 2012-08-20 Patrick Marlier <patrick.marlier@gmail.com>
10296 PR middle-end/53992
10297 * omp-low.c (lower_omp_1): Handle GIMPLE_TRANSACTION.
10299 2012-08-20 Richard Earnshaw <rearnsha@arm.com>
10302 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Delete rhs_code
10303 declaration and setter.
10305 2012-08-20 Richard Earnshaw <rearnsha@arm.com>
10308 * tree-ssa-math-opts.c (widening_mult_conversion_strippable_p):
10310 (is_widening_mult_rhs_p): Use it.
10312 2012-08-20 Joseph Myers <joseph@codesourcery.com>
10314 * configure.ac (ffs): Check for declaration.
10315 * configure, config.in: Regenerate.
10317 2012-08-20 Richard Guenther <rguenther@suse.de>
10319 * tree-flow.h (register_new_name_mapping): Remove.
10320 * tree-into-ssa.c (register_new_name_mapping): Likewise.
10321 (add_new_name_mapping): Do not push/pop timevar here.
10322 (create_new_def_for): Instead do it here. Initialize
10323 update-ssa here, handle a NULL def.
10324 * tree-vrp.c (build_assert_expr_for): Use create_new_def_for.
10326 2012-08-20 Richard Guenther <rguenther@suse.de>
10328 PR tree-optimization/54327
10329 * gimple-fold.c (get_maxval_strlen): Do not walk use-def chains
10330 if the use is registered for SSA update.
10332 2012-08-20 Jakub Jelinek <jakub@redhat.com>
10334 PR tree-optimization/54321
10335 * tree-ssa-forwprop.c (simplify_builtin_call): Pass 0 instead of 1
10336 as second argument to tree_low_cst call on val2.
10338 2012-08-20 Richard Guenther <rguenther@suse.de>
10340 * gimple.h (gimple_statement_base): Annotate with GTY chain_next.
10342 2012-08-20 Richard Guenther <rguenther@suse.de>
10345 * genoutput.c (note_constraint): Properly use CONST_CAST.
10347 2012-08-19 Nick Clifton <nickc@redhat.com>
10350 * config/arm/mmintrin.h: Remove spurious #endif.
10352 2012-08-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10354 * config/avr/avr-log.c (avr_log_vadump): Properly use
10355 int-promoted enum values.
10356 * config/avr/avr.h (struct mcu_type_s): Change `arch' from
10357 int to enum avr_arch.
10358 * config/avr/gen-avr-mmcu-texi.c (main): Use correct initializer.
10360 2012-08-18 Jan Hubicka <jh@suse.cz>
10363 * ipa-inline.c (want_inline_small_function_p): Bypass
10364 inline limits for hinted functions.
10365 (edge_badness): Dump hints; decrease badness for hinted funcitons.
10366 * ipa-inline.h (enum inline_hints_vals): New enum.
10367 (inline_hints): New type.
10368 (edge_growth_cache_entry): Add hints.
10369 (dump_inline_summary): Update.
10370 (dump_inline_hints): Declare.
10371 (do_estimate_edge_hints): Declare.
10372 (estimate_edge_hints): New inline function.
10373 (reset_edge_growth_cache): Update.
10374 * predict.c (cgraph_maybe_hot_edge_p): Do not ice on indirect edges.
10375 * ipa-inline-analysis.c (dump_inline_hints): New function.
10376 (estimate_edge_devirt_benefit): Return true when function should be
10378 (estimate_calls_size_and_time): New hints argument; set it when
10379 devritualization happens.
10380 (estimate_node_size_and_time): New hints argument.
10381 (do_estimate_edge_time): Cache hints.
10382 (do_estimate_edge_growth): Update.
10383 (do_estimate_edge_hints): New function
10385 2012-08-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10387 PR middle-end/53823
10388 * expmed.c (expand_mult): Skip synth_mult for negative coefficients
10389 if the mode is larger than a wide int and it is too costly to multiply
10390 by a positive multiplier and negate the result.
10392 2012-08-18 Steven Bosscher <steven@gcc.gnu.org>
10394 * sparseset.c (sparseset_alloc): Use non-clearing allocation. Tell
10395 valgrind not to worry about reading from unitialized memory.
10397 2012-08-18 Steven Bosscher <steven@gcc.gnu.org>
10399 PR middle-end/54313
10400 * dse.c (dse_step7): Don't free kill_on_calls bitmap, it is
10401 freed when its obstack is release.
10403 2012-08-18 Andrew Pinski <pinskia@gmail.com>
10405 * alloc-pool.c (pool_alloc): Add valgrind markers.
10406 (pool_free): Likewise.
10408 2012-08-17 Walter Lee <walt@tilera.com>
10410 * config/tilegx/feedback.h (FEEDBACK_ENTER_EXPLICIT): Define.
10411 (FEEDBACK_ENTER): Define.
10412 (FEEDBACK_REENTER): Define.
10413 (FEEDBACK_ENTRY): Define.
10414 * config/tilepro/feedback.h: (FEEDBACK_ENTER_EXPLICIT): Define.
10415 (FEEDBACK_ENTER): Define.
10416 (FEEDBACK_REENTER): Define.
10417 (FEEDBACK_ENTRY): Define.
10419 2012-08-17 H.J. Lu <hongjiu.lu@intel.com>
10420 Gary Funck <gary@intrepid.com>
10423 * config/i386/i386.c (ix86_member_type_forces_blk): New function.
10424 (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
10426 * config/i386/i386.h (MAX_FIXED_MODE_SIZE): New macro.
10428 2012-08-17 Marc Glisse <marc.glisse@inria.fr>
10430 * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
10433 2012-08-17 H.J. Lu <hongjiu.lu@intel.com>
10435 * stor-layout.c (compute_record_mode): Replace
10436 MEMBER_TYPE_FORCES_BLK with targetm.member_type_forces_blk.
10437 (layout_type): Likewise.
10439 * system.h: Poison MEMBER_TYPE_FORCES_BLK.
10441 * target.def (member_type_forces_blk): New target hook.
10443 * targhooks.c (default_member_type_forces_blk): New.
10444 * targhooks.h (default_member_type_forces_blk): Likewise.
10446 * doc/tm.texi.in (MEMBER_TYPE_FORCES_BLK): Removed.
10447 (TARGET_MEMBER_TYPE_FORCES_BLK): New hook.
10448 * doc/tm.texi: Regenerated.
10450 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Removed.
10452 * config/ia64/ia64.c (ia64_member_type_forces_blk): New function.
10453 (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
10455 * config/rs6000/rs6000.c (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
10456 (rs6000_member_type_forces_blk): New function.
10458 * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Removed.
10460 * config/xtensa/xtensa.c (xtensa_member_type_forces_blk): New function.
10461 (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
10463 * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Removed.
10465 2012-08-17 Diego Novillo <dnovillo@google.com>
10468 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
10469 * config.in: Regenerate.
10470 * configure: Regenerate.
10471 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
10473 2012-08-17 Richard Guenther <rguenther@suse.de>
10475 * bitmap.h (struct bitmap_element_def): GTY annotate next/prev.
10476 (struct bitmap_head_def): GTY skip current field.
10478 2012-08-17 Steven Bosscher <steven@gcc.gnu.org>
10480 PR middle-end/54146
10481 * tree-ssa-loop-im.c (lim_bitmap_obstack): New bitmap_obstack.
10482 (memref_free): Don't free the bitmaps individually here.
10483 (mem_ref_alloc): Allocate the bitmaps on the new bitmap obstack.
10484 (analyze_memory_references): Likewise.
10485 (tree_ssa_lim_initialize): Initialize the new bitmap obstack.
10486 (tree_ssa_lim_finalize): Release it.
10487 * dse.c (dse_bitmap_obstack): New bitmap obstack.
10488 (dse_obstack): New obstack.
10489 (get_group_info): Allocate the bitmaps on the new bitmap obstack.
10490 (dse_step0): Allocate the scratch bitmap on reg_obstack. Initialize
10491 the new bitmap obstack and normal obstack. Use XNEWVEC for bb_table.
10492 (record_store): Allocate regs_set on reg_obstack.
10493 (dse_step1): Allocate regs_live on reg_obstack.
10494 (dse_step2_init): Allocate offset_map_n and offset_map_p on the new
10496 (dse_step3_scan): Allocate bitmaps on the new bitmap obstack.
10497 (dse_step3): Likewise.
10498 (dse_confluence_0): Likewise.
10499 (dse_confluence_n): Likewise.
10500 (dse_transfer_function): Likewise.
10501 (dse_step7): Destroy the new obstacks, and everything allocated on
10502 them, in one big sweep.
10503 (rest_of_handle_dse): Update.
10504 * cfgexpand.c (stack_var_bitmap_obstack): New bitmap obstack.
10505 (add_stack_var_conflict): Allocate bitmaps on it.
10506 (add_scope_conflicts_1): Likewise.
10507 (add_scope_conflicts): Likewise.
10508 (update_alias_info_with_stack_vars): Likewise.
10509 (init_vars_expansion): Move TREE_USED fiddling expand_used_vars.
10510 Initialize the new bitmap obstack.
10511 (fini_vars_expansion): Release it.
10512 (estimated_stack_frame_size): Use init_vars_expansion to set things up
10513 and always clean up at the end.
10514 (expand_used_vars): Do the TREE_USED trickery here. Always call
10515 fini_vars_expansion.
10516 * tree-ssa-live.h (struct tree_live_info_d): Make livein and liveout
10517 arrays of bitmap_head to avoid one indirection per bitmap access.
10518 (live_on_entry, live_on_exit, live_var_map, live_merge_and_clear,
10519 make_live_on_entry): Update.
10520 * tree-ssa-live.c (partition_view_bitmap): Don't double-free 'used'.
10521 (liveness_bitmap_obstack): New bitmap obstack.
10522 (remove_unused_locals): Use it to allocate all bitmaps on. Update
10523 for livein/liveout changes in tree-ssa-live.h.
10524 (delete_tree_live_info): Release the bitmap obstack.
10525 (loe_visit_block, live_worklist, set_var_live_on_entry,
10526 calculate_live_on_exit, dump_live_info): Update.
10527 (calculate_live_ranges): Initialize the bitmap.
10528 * tree-ssa-ter.c (ter_bitmap_obstack): New bitmap obstack.
10529 (new_temp_expr_table): Allocate bitmap on it.
10530 (make_dependent_on_partition, add_to_partition_kill_list,
10531 add_dependence, process_replaceable): Likewise.
10532 (find_replaceable_exprs): Initialize and release the new obstack here.
10533 * df-problems.c (df_lr_add_problem): Allocate persistent bitmap
10534 for out_of_date_transfer_functions on df_bitmap_obstack.
10535 (df_live_add_problem): Likewise.
10536 (df_chain_add_problem): Likewise.
10537 (df_word_lr_add_problem): Likewise.
10539 2012-08-17 Nick Clifton <nickc@redhat.com>
10541 * config/fr30/fr30.md (cbranchsi4): Remove mode from comparison.
10542 (branch_true): Likewise.
10543 (branch_false): Likewise.
10545 * config/mcore/mcore.md (cbranchsi4): Remove mode from comparison.
10547 * config/iq2000/iq2000.md (cbranchsi4): Remove mode from
10548 comparison and label.
10549 (branch_zero): Likewise.
10550 (branch_zero_inverted): Likewise.
10551 (branch_equality): Likewise.
10552 (branch_equality_inverted): Likewise.
10553 (extend-and-compare): Disable until reload issues can be resolved.
10554 * config/iq2000/iq2000.c (gen_conditional_branch): Use VOIDmode
10556 (iq2000_function_arg_advance): Remove CONST_CAST2.
10558 * config/mep/t-mep (mep-pragma.o): Use $(COMPILER) to compile
10561 2012-08-17 Georg-Johann Lay <avr@gjlay.de>
10563 * config/avr/t-avr (gen-avr-mmcu-texi): Use $(CC) to compile
10564 gen-avr-mmcu-texi.c.
10566 2012-08-17 Richard Earnshaw <rearnsha@arm.com>
10568 * arm.md (arm_addsi3): New variant for Thumb2 16-bit ADD instruction.
10569 * arm.c (thumb2_reorg): Don't convert an ADD instruction that's
10572 2012-08-17 Richard Guenther <rguenther@suse.de>
10574 * hash-table.h (class hash_table): Use a descriptor template
10575 argument instead of decomposed element type and support functions.
10576 (struct pointer_hash): New generic typed pointer-hash.
10577 (struct typed_free_remove, struct typed_noop_remove): Generic
10578 hash_table support pieces.
10579 * coverage.c (struct counts_entry): Add hash_table support members.
10580 * tree-ssa-ccp.c (gimple_htab): Use pointer_hash.
10581 * tree-ssa-coalesce.c (struct ssa_name_var_hash): New generic
10582 SSA name by SSA_NAME_VAR hash.
10583 (coalesce_ssa_name): Use it.
10584 * tree-ssa-pre.c (struct pre_expr_d): Add hash_table support.
10585 (expression_to_id): Adjust.
10586 (struct expr_pred_trans_d): Add hash_table support.
10587 (phi_translate_table): Adjust.
10588 (phi_trans_lookup): Likewise.
10589 (phi_trans_add): Likewise.
10590 (do_regular_insertion): Likewise.
10591 * tree-ssa-tail-merge.c (struct same_succ_def): Add hash_table support.
10592 (same_succ_htab): Adjust.
10593 (find_same_succ_bb): Likewise.
10594 (find_same_succ): Likewise.
10595 (update_worklist): Likewise.
10596 * tree-ssa-threadupdate.c (struct redirection_data): Add hash_table
10598 (redirection_data): Adjust.
10600 2012-08-17 Richard Guenther <rguenther@suse.de>
10602 * params.def (integer-share-limit): Decrease from 256 to 251,
10605 2012-08-17 Richard Guenther <rguenther@suse.de>
10607 * tree-sra.c (modify_function): Free redirect_callers vector.
10608 * ipa-split.c (split_function): Free args_to_pass vector.
10609 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Free
10610 body_cost_vec properly.
10611 (vect_enhance_data_refs_alignment): Likewise.
10612 * tree-vect-stmts.c (vectorizable_operation): Do not pre-allocate
10614 (new_stmt_vec_info): Do not pre-allocate STMT_VINFO_SAME_ALIGN_REFS.
10615 * tree-vect-slp.c (vect_free_slp_instance): Free the instance.
10616 (vect_analyze_slp_instance): Free everything.
10617 (destroy_bb_vec_info): Free the SLP instances.
10619 2012-08-17 Iain Sandoe <iain@codesourcery.com>
10621 * config/rs6000/rs6000.c (macho_branch_islands): Adjust for changes
10624 2012-08-17 Jakub Jelinek <jakub@redhat.com>
10626 * doc/invoke.texi (-Wsizeof-pointer-memaccess): Document.
10628 2012-08-16 Sandra Loosemore <sandra@codesourcery.com>
10630 * config/mips/mips-dsp.md (mips_dpau_h_qbl, mips_dpau_h_qbr)
10631 (mips_dpsu_h_qbl, mips_dpsu_h_qbr, mips_dpaq_s_w_ph)
10632 (mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph, mips_dpaq_sa_l_w)
10633 (mips_dpsq_sa_l_w, mips_maq_s_w_phl, mips_maq_s_w_phr)
10634 (mips_maq_sa_w_phl, mips_maq_sa_w_phr): Add accum_in attribute.
10636 2012-08-16 Oleg Endo <olegendo@gcc.gnu.org>
10639 * config/sh/sh.md (addc): Add commutative modifier.
10640 (*addc, *minus_plus_one, *subc, *negc): New insns and splits.
10642 2012-08-16 Oleg Endo <olegendo@gcc.gnu.org>
10645 * config/sh/sh.md (*movsi_index_disp, *movhi_index_disp): Handle
10646 potential T_REG clobber. Convert zero extending split to
10649 2012-08-16 Oleg Endo <olegendo@gcc.gnu.org>
10652 * config/sh/sh.md (ashlsi3_d): Do not split if it would result
10653 in a T_REG clobber. Correct comment.
10654 (ashlsi3_n): Correct comment.
10656 2012-08-16 Hans-Peter Nilsson <hp@axis.com>
10658 PR middle-end/54261
10659 * optabs.c (expand_atomic_fetch_op): Save and restore code when
10660 retrying after failed attempt.
10662 2012-08-16 Yuri Rumyantsev <ysrumyan@gmail.com>
10664 * config/i386/i386-protos.h (ix86_split_lea_for_addr) : Add
10665 additional argument.
10666 * config/i386/i386.md (ix86_split_lea_for_addr) : Add
10667 additional argument curr_insn.
10668 * config/i386/i386.c (ix86_split_lea_for_addr): Load base or index
10669 register first, depending on their defintion distances.
10670 (ix86_lea_outperforms): Prefer LEA only if split cost exceeds
10672 (find_nearest_reg-def): New function. Find register with
10673 nearest definition.
10675 2012-08-16 Walter Lee <walt@tilera.com>
10677 * config.gcc (tilegx-*-linux*): Add feedback.h.
10678 (tilepro-*-linux*): Likewise.
10679 * config/tilegx/feedback.h: New file.
10680 * config/tilepro/feedback.h: New file.
10682 2012-08-16 Diego Novillo <dnovillo@google.com>
10687 * double-int.h: Move including of gmp.h ...
10688 * system.h: ... here.
10689 * realmpfr.h: Do not include gmp.h.
10690 * tree-ssa-loop-niter.c: Do not include gmp.h.
10692 2012-08-16 Segher Boessenkool <segher@kernel.crashing.org>
10694 * config/rs6000/darwin.h (TARGET_IEEE_QUAD): Fix comment.
10696 2012-08-16 Richard Guenther <rguenther@suse.de>
10698 PR middle-end/54146
10699 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Free the
10701 * ipa-pure-const.c (analyze_function): Use FOR_EACH_LOOP_BREAK.
10702 * cfgloop.h (FOR_EACH_LOOP_BREAK): Fix.
10703 * tree-ssa-structalias.c (handle_lhs_call): Properly free rhsc.
10704 * tree-into-ssa.c (get_ssa_name_ann): Allocate info only when needed.
10705 * tree-ssa-loop-im.c (analyze_memory_references): Adjust.
10706 (tree_ssa_lim_finalize): Free all mem_refs.
10707 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): Free
10708 scc when bailing out.
10709 * modulo-sched.c (sms_schedule): Use FOR_EACH_LOOP_BREAK.
10710 * ira-build.c (loop_with_complex_edge_p): Free loop exit vector.
10711 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): Use
10712 FOR_EACH_LOOP_BREAK.
10714 2012-08-16 Diego Novillo <dnovillo@google.com>
10717 * double-int.h: Move including of gmp.h ...
10718 * system.h: ... here.
10719 * realmpfr.h: Do not include gmp.h.
10720 * tree-ssa-loop-niter.c: Do not include gmp.h.
10722 2012-08-16 Steven Bosscher <steven@gcc.gnu.org>
10724 PR middle-end/54146
10725 * tree-flow.h (compute_global_livein): Remove prototype.
10726 * tree-into-ssa.c (compute_global_livein): Remove function.
10727 * tree-ssa-loop-manip.c: Include gimple-pretty-print.h.
10728 (find_sibling_superloop): New function.
10729 (compute_live_loop_exits): New function.
10730 (add_exit_phis_edge): Rename to add_exit_phi. Do not allow
10731 inserting a PHI in a block that is not a loop exit for VAR.
10732 Add dumping if TDF_DETAILS.
10733 (add_exit_phis_var): Rewrite.
10734 (add_exit_phis): Update.
10735 (get_loops_exits): Rewrite to return an array of per-loop exits
10736 rather than one bitmap with all loop exits.
10737 (find_uses_to_rename_bb): Ignore virtual PHI nodes.
10738 (rewrite_into_loop_closed_ssa): Update.
10740 2012-08-16 Nick Clifton <nickc@redhat.com>
10742 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Cast _ascii_bytes
10743 before passing it to ASM_OUTPUT_LIMITED_STRING.
10745 * config/bfin/bfin.c (hwloop_optimize): Fix use of VEC_last macro.
10747 * config/avr/t-avr: Replace occurrences of $(CC) with $(COMPILER).
10748 * config/avr/avr.c (avr_legitimize_reload_address): Add casts
10749 for reload_type enums.
10750 (DEF_BUILTIN): Cast the icode to enum insn_code.
10752 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
10754 * config/rs6000/aix43.h (ASM_CPU_SPEC): Use %(asm_default)
10756 * config/rs6000/aix51.h (ASM_CPU_SPEC): Ditto.
10758 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
10760 * config/rs6000/aix43.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
10761 (RS6000_CALL_GLUE): Adjust for single assembler syntax.
10762 * config/rs6000/aix51.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
10763 * config/rs6000/aix52.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
10764 * config/rs6000/aix53.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
10765 * config/rs6000/aix61.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
10766 * config/rs6000/darwin.h (TARGET_DEFAULT): Ditto.
10767 * config/rs6000/darwin.md (whole file): Adjust to single
10769 * config/rs6000/darwin64.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
10770 * config/rs6000/default64.h (TARGET_DEFAULT): Ditto.
10771 * config/rs6000/dfp.md: (whole file): Adjust to single
10773 * config/rs6000/eabi.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
10774 * config/rs6000/eabialtivec.h (TARGET_DEFAULT): Ditto.
10775 * config/rs6000/eabispe.h (TARGET_DEFAULT): Ditto.
10776 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Ditto.
10777 * config/rs6000/linuxspe.h (TARGET_DEFAULT): Ditto.
10778 * config/rs6000/rs6000-cpus.def (whole file): Delete POWERPC_BASE_MASK.
10779 * config/rs6000/rs6000-tables.opt: Regenerate.
10780 * config/rs6000/rs6000.c (POWERPC_BASE_MASK): Delete.
10781 (num_insns_constant_wide): Adjust comments.
10782 (whole file): Adjust to single assembler syntax.
10783 (output_cbranch): Adjust comment.
10784 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Delete.
10785 * config/rs6000/rs6000.md: (whole file): Adjust to single
10787 * config/rs6000/rs6000.opt (mnew-mnemonics): Delete.
10788 (mold-mnemonics): Delete.
10789 * config/rs6000/spe.md: (whole file): Adjust to single
10791 * config/rs6000/sync.md: (whole file): Adjust to single
10793 * config/rs6000/sysv4.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
10794 (ASM_OUTPUT_REG_PUSH): Adjust.
10795 (ASM_OUTPUT_REG_POP): Adjust.
10796 * config/rs6000/sysv4le.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
10797 * config/rs6000/vsx.md: (whole file): Adjust to single
10799 * config/rs6000/vxworks.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
10800 * doc/invoke.texi: Adjust documentation to reflect the
10801 removal of -mnew-mnemonics and -mold-mnemonics.
10803 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
10805 * common/config/rs6000/rs6000-common.c (rs6000_handle_option):
10806 Delete handling for -mno-powerpc and -mpowerpc.
10807 * config/rs6000/aix43.h (ASM_CPU_SPEC): Similar.
10808 (ASM_DEFAULT_SPEC): Use -mppc instead of -mcom.
10809 * config/rs6000/aix51.h (ASM_CPU_SPEC, ASM_DEFAULT_SPEC): Ditto.
10810 * config/rs6000/aix52.h (TARGET_DEFAULT): Delete MASK_POWERPC.
10811 * config/rs6000/aix53.h (TARGET_DEFAULT): Ditto.
10812 * config/rs6000/aix61.h (TARGET_DEFAULT): Ditto.
10813 * config/rs6000/darwin.h (TARGET_DEFAULT): Ditto.
10814 * config/rs6000/darwin64.h (TARGET_DEFAULT): Ditto.
10815 * config/rs6000/default64.h (TARGET_DEFAULT): Ditto.
10816 * config/rs6000/driver-rs6000.c (asm_names): Delete handling
10817 for -mcpu=common and -mpowerpc.
10818 * config/rs6000/eabi.h (TARGET_DEFAULT): Delete MASK_POWERPC.
10819 * config/rs6000/eabialtivec.h (TARGET_DEFAULT): Ditto.
10820 * config/rs6000/eabispe.h (TARGET_DEFAULT): Ditto.
10821 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Ditto.
10822 * config/rs6000/linuxspe.h (TARGET_DEFAULT): Ditto.
10823 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING):
10824 Use RS6000_BTM_ALWAYS instead of RS6000_BTM_POWERPC.
10825 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
10826 (rs6000_cpu_cpp_builtins): Adjust.
10827 * config/rs6000/rs6000.c (POWERPC_BASE_MASK): Delete MASK_POWERPC.
10828 (rs6000_builtin_mask_calculate): Adjust.
10829 (rs6000_emit_move): Delete code for ! TARGET_POWERPC.
10830 (rs6000_init_libfuncs): Ditto.
10831 (rs6000_output_function_prologue): Ditto.
10832 (rs6000_opt_masks): Delete MASK_POWERPC.
10833 (rs6000_builtin_mask_names): Delete RS6000_BTM_POWERPC.
10834 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete handling for -mpowerpc.
10835 (RS6000_BTM_POWERPC): Delete.
10836 (RS6000_BTM_COMMON): Delete RS6000_BTM_POWERPC.
10837 * config/rs6000/rs6000.md (extendqisi2 patterns): Adjust for
10838 TARGET_POWERPC always on.
10839 (extendqihi2 patterns): Similar.
10840 (various unnamed subtract patterns): Similar.
10841 (bswaphi2 patterns): Similar.
10842 (divmodsi4): Similar.
10843 (udiv<GPR:mode>3): Similar.
10844 (div<GPR:mode>3 patterns): Similar.
10845 (udivmodsi4): Similar.
10846 (mulhcall): Delete.
10847 (mullcall): Delete.
10848 (divss_call): Delete.
10849 (divus_call): Delete.
10850 (quoss_call): Delete.
10851 (quous_call): Delete.
10852 (insvsi patterns): Adjust.
10853 (addsf3 patterns): Adjust.
10854 (subsf3 patterns): Adjust.
10855 (mulsf3 patterns): Adjust.
10856 (divsf3 patterns): Adjust.
10857 (*fmasf4_fpr): Adjust.
10858 (*fmssf4_fpr): Adjust.
10859 (*nfmasf4_fpr): Adjust.
10860 (*nfmssf4_fpr): Adjust.
10861 (*floatunssidf2_internal): Adjust.
10862 (fix_trunc<SFDF:mode>si2_internal): Adjust.
10863 (fctiwz_<SFDF:mode>): Adjust.
10864 (mulsidi3 patterns): Adjust.
10865 (smulsi3_highpart patterns): Adjust.
10866 (umulsi3_highpart patterns): Adjust.
10867 (fix_trunctfsi2 patterns): Adjust.
10868 (prefetch): Adjust.
10869 * config/rs6000/rs6000.opt (mpowerpc): Replace by stub option.
10870 (mno-powerpc): Delete.
10871 * config/rs6000/sync.md (load_locked<ATOMIC:mode>): Adjust.
10872 (store_conditional<ATOMIC:mode>): Adjust.
10873 (atomic_compare_and_swap<ATOMIC:mode>): Adjust.
10874 (atomic_exchange<ATOMIC:mode>): Adjust.
10875 (atomic_<fetchop_name><ATOMIC:mode>): Adjust.
10876 (atomic_nand<ATOMIC:mode>): Adjust.
10877 (atomic_fetch_<fetchop_name><ATOMIC:mode>): Adjust.
10878 (atomic_fetch_nand<ATOMIC:mode>): Adjust.
10879 (atomic_<fetchop_name>_fetch<ATOMIC:mode>): Adjust.
10880 (atomic_nand_fetch<ATOMIC:mode>): Adjust.
10881 * config/rs6000/sysv4.h (TARGET_DEFAULT): Delete MASK_POWERPC.
10882 * config/rs6000/sysv4le.h (TARGET_DEFAULT): Ditto.
10883 * config/rs6000/vxworks.h (TARGET_DEFAULT): Ditto.
10884 * doc/invoke.texi: Adjust documentation.
10886 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
10888 * config/rs6000/rs6000.h (RS6000_BTM_ALWAYS): New.
10890 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
10892 * config/rs6000/aix52.h (ASM_CPU_SPEC): Fix typo.
10893 * config/rs6000/aix53.h (ASM_CPU_SPEC): Ditto.
10894 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
10895 * config/rs6000/driver-rs6000.c (asm_names): Ditto.
10897 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
10900 * config/rs6000/driver-rs6000.c (asm_names): Use %(asm_default)
10902 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Ditto.
10904 2012-08-15 Sandra Loosemore <sandra@codesourcery.com>
10905 Maxim Kuvyrkov <maxim@codesourcery.com>
10906 Julian Brown <julian@codesourcery.com>
10907 MIPS Technologies, Inc.
10909 * config/mips/mips.md (dspmac, dspmacsat, accext, accmod, dspalu)
10910 (dspalusat): Add insn types.
10911 * config/mips/mips-dsp.md (add<DSPV:mode>3)
10912 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>)
10913 (sub<DSPV:mode>3, mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc)
10914 (mips_addwc, mips_modsub, mips_raddu_w_qb, mips_absq_s_<DSPQ:dspfmt2>)
10915 (mips_precrq_qb_ph, mips_precrq_ph_w, mips_precrq_rs_ph_w)
10916 (mips_precrqu_s_qb_ph, mips_preceq_w_phl, mips_preceq_w_phr)
10917 (mips_precequ_ph_qbl, mips_precequ_ph_qbr, mips_precequ_ph_qbla)
10918 (mips_precequ_ph_qbra, mips_preceu_ph_qbl, mips_preceu_ph_qbr)
10919 (mips_preceu_ph_qbla, mips_preceu_ph_qbra, mips_shll_<DSPV:dspfmt2>)
10920 (mips_shll_s_<DSPQ:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>, mips_shrl_qb)
10921 (mips_shra_ph, mips_shra_r_<DSPQ:dspfmt2>, mips_bitrev, mips_insv)
10922 (mips_repl_qb, mips_repl_ph)
10923 (mips_cmp<DSPV:dspfmt1_1>_eq_<DSPV:dspfmt2>)
10924 (mips_cmp<DSPV:dspfmt1_1>_lt_<DSPV:dspfmt2>)
10925 (mips_cmp<DSPV:dspfmt1_1>_le_<DSPV:dspfmt2>, mips_cmpgu_eq_qb)
10926 (mips_cmpgu_lt_qb, mips_cmpgu_le_qb, mips_pick_<DSPV:dspfmt2>)
10927 (mips_packrl_ph, mips_wrdsp, mips_rddsp): Change type to dspalu.
10928 (mips_dpau_h_qbl, mips_dpau_h_qbr, mips_dpsu_h_qbl, mips_dpsu_h_qbr)
10929 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph)
10930 (mips_maq_s_w_phl, mips_maq_s_w_phr, mips_maq_sa_w_phr): Set type to
10932 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_sa_w_phl): Set type to
10934 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w, mips_extp, mips_extpdp):
10935 Set type to accext.
10936 (mips_shilo, mips_mthlip): Set type to accmod.
10937 * config/mips/mips-dspr2.md (mips_absq_s_qb, mips_addu_s_ph)
10938 (mips_adduh_r_qb): Set type to dspalusat.
10939 (mips_addu_ph, mips_adduh_qb, mips_append, mips_balign)
10940 (mips_cmpgdu_eq_qb, mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb)
10941 (mips_precr_qb_ph, mips_precr_sra_ph_w, mips_precr_sra_r_ph_w)
10942 (mips_prepend, mips_shra_qb, mips_shra_r_qb, mips_shrl_ph)
10943 (mips_subu_ph, mips_subuh_qb, mips_subuh_r_qb, mips_addqh_ph)
10944 (mips_addqh_r_ph, mips_addqh_w, mips_addqh_r_w, mips_subqh_ph)
10945 (mips_subqh_r_ph, mips_subqh_w, mips_subqh_r_w): Set type to dspalu.
10946 (mips_dpa_w_ph, mips_dps_w_ph, mips_mulsa_w_ph, mips_dpax_w_ph)
10947 (mips_dpsx_w_ph, mips_dpaqx_s_w_ph, mips_dpsqx_s_w_ph): Set type to
10948 dspmac. Set accum_in attribute.
10949 (mips_subu_s_ph): Set type to dspalusat.
10950 (mips_dpaqx_sa_w_ph, mips_dpsqx_sa_w_ph): Set type to dspmacsat.
10951 Set accum_in attribute.
10952 * config/mips/mips-protos.h (mips_dspalu_bypass_p): Add prototype.
10953 * config/mips/mips.c (dspalu_bypass_table): New.
10954 (mips_dspalu_bypass_p): New.
10955 * config/mips/24k.md (r24k_dsp_alu, r24k_dsp_mac, r24k_dsp_mac_sat)
10956 (r24k_dsp_acc_ext, r24k_dsp_acc_mod): New insn reservations.
10957 (r24k_int_mult, r24k_int_mthilo, r24k_dsp_mac, r24k_dsp_mac_sat)
10958 (r24k_dsp_acc_ext, r24k_dsp_acc_mod, r24k_dsp_alu): New bypasses.
10959 * config/mips/74k.md (r74k_dsp_alu, r74k_dsp_alu_sat, r74k_dsp_mac)
10960 (r74k_dsp_mac_sat, r74k_dsp_acc_ext, r74k_dsp_acc_mod): New insn
10962 (r74k_dsp_mac, r74k_dsp_mac_sat, r74k_int_mult, r74k_int_mul3)
10963 (r74k_dsp_mac, r74k_dsp_mac_sat): New bypasses.
10965 2012-08-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10967 * config/spu/spu.c: Include "cfgloop.h".
10968 (spu_machine_dependent_reorg): Call loop_optimizer_init and
10969 loop_optimizer_finalize. Use bb_loop_depth instead of loop_depth.
10970 Directly compare loop_father values where appropriate.
10971 * config/spu/t-spu-elf (spu.o): Update dependencies.
10973 2012-08-15 H.J. Lu <hongjiu.lu@intel.com>
10975 * Makefile.in (tree-cfg.o): Also depend on $(TARGET_H).
10977 2012-08-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10979 PR tree-optimization/54245
10980 * gimple-ssa-strength-reduction.c (legal_cast_p_1): New function.
10981 (legal_cast_p): Split out logic to legal_cast_p_1.
10982 (analyze_increments): Avoid introducing multiplies in smaller types.
10984 2012-08-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10986 PR tree-optimization/54240
10987 * tree-ssa-phiopt.c (hoist_adjacent_loads): Correct test for
10988 existence of conditional move with given mode.
10990 2012-08-15 Richard Guenther <rguenther@suse.de>
10992 * double-int.h (double_int::from_unsigned): Rename to ...
10993 (double_int::from_uhwi): ... this.
10994 (double_int::from_signed): Rename to ...
10995 (double_int::from_shwi): ... this.
10996 (double_int::to_signed): Rename to ...
10997 (double_int::to_shwi): ... this.
10998 (double_int::to_unsigned): Rename to ...
10999 (double_int::to_uhwi): ... this.
11000 (double_int::fits_unsigned): Rename to ...
11001 (double_int::fits_uhwi): ... this.
11002 (double_int::fits_signed): Rename to ...
11003 (double_int::fits_shwi): ... this.
11004 (double_int::fits): Rename to ...
11005 (double_int::fits_hwi): ... this.
11006 * double-int.c: Likewise.
11008 2012-08-15 Steven Bosscher <steven@gcc.gnu.org>
11010 * timevar.def (TV_VARPOOL, TV_WHOPR_WPA_LTRANS_EXEC, TV_LIFE,
11011 TV_LIFE_UPDATE, TV_DF_UREC, TV_INLINE_HEURISTICS,
11012 TV_TREE_LINEAR_TRANSFORM, TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI,
11013 TV_VPT, TV_LOCAL_ALLOC, TV_GLOBAL_ALLOC, TV_SEQABSTR): Remove.
11014 (TV_IPA_INLINING, TV_FLATTEN_INLINING, TV_EARLY_INLINING,
11015 TV_INLINE_PARAMETERS, TV_LOOP_INIT, TV_LOOP_FINI): New.
11016 * timevar.c (timevar_print): Make printing width of timevar names
11017 more flexible, but enforce maximum length.
11018 * ipa-inline.c (pass_early_inline): Use TV_EARLY_INLINING.
11019 (pass_ipa_inline): Use TV_IPA_INLINING.
11020 * ipa-inline-analysis.c (pass_inline_parameters): Use
11021 TV_INLINE_HEURISTICS.
11022 * tree-ssa-loop.c (pass_tree_loop_init): No timevar for wrapper pass.
11023 (pass_tree_loop_done): Likewise.
11024 * final.c (pass_shorten_branches): Use TV_SHORTEN_BRANCH.
11025 * loop-init.c (loop_optimizer_init): Push/pop TV_LOOP_INIT.
11026 (loop_optimizer_finalize): Push/pop TV_LOOP_FINI.
11028 2012-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11030 * config/arm/neon.md (neon_vaba<mode> VDQIW): Canonicalize operands.
11031 (neon_vabal<mode> VDQIW): Likewise.
11033 2012-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11036 * config/arm/neon.md (vec_set<mode>_internal VD,VQ): Do not
11037 mark as predicable. Adjust asm template.
11038 (vec_setv2di_internal): Likewise.
11039 (vec_extract<mode> VD, VQ): Likewise.
11040 (vec_extractv2di): Likewise.
11041 (neon_vget_lane<mode>_sext_internal VD, VQ): Likewise.
11042 (neon_vset_lane<mode>_sext_internal VD, VQ): Likewise.
11043 (neon_vdup_n<mode> VX, V32): Likewise.
11044 (neon_vdup_nv2di): Likewise.
11046 2012-08-14 Maxim Kuvyrkov <maxim@codesourcery.com>
11048 * config/mips/mips.md (define_attr accum_in): New instruction
11049 attribute. Set it for imadd and fmadd patterns.
11050 * config/mips/mips.c (mips_linked_madd_p): Use accum_in to extract
11051 accumulator register.
11053 2012-08-14 Diego Novillo <dnovillo@google.com>
11055 Merge from cxx-conversion branch. Configury.
11057 * configure.ac (CXX_FOR_BUILD): Define and substitute.
11058 (BUILD_CXXFLAGS): Define.
11059 Remove all handlers of ENABLE_BUILD_WITH_CXX.
11060 Force all build to be with C++.
11061 * Makefile.in (BUILD_CXXFLAGS): Use it.
11062 Remove all handlers of ENABLE_BUILD_WITH_CXX.
11063 * configure: Regenerate.
11064 * config.in: Regenerate.
11065 * doc/install.texi: Remove documentation for --enable-build-with-cxx
11066 and --enable-build-poststage1-with-cxx.
11068 2012-08-14 Diego Novillo <dnovillo@google.com>
11070 Merge from cxx-conversion branch. Re-implement VEC in C++.
11072 * vec.c (vec_heap_free): Convert into a template function.
11073 (vec_gc_o_reserve_1): Make extern.
11074 (vec_gc_p_reserve): Remove.
11075 (vec_gc_p_reserve_exact): Remove.
11076 (vec_gc_o_reserve): Remove.
11077 (vec_gc_o_reserve_exact): Remove.
11078 (vec_heap_o_reserve_1): Make extern.
11079 (vec_heap_p_reserve): Remove.
11080 (vec_heap_p_reserve_exact): Remove.
11081 (vec_heap_o_reserve): Remove.
11082 (vec_heap_o_reserve_exact): Remove.
11083 (vec_stack_p_reserve): Remove.
11084 (vec_stack_p_reserve_exact): Remove.
11085 * vec.h (VEC_CHECK_INFO, VEC_CHECK_DECL, VEC_CHECK_PASS, VEC_ASSERT,
11086 VEC_ASSERT_FAIL, vec_assert_fail): Move earlier in the file.
11087 (VEC): Define to vec_t<T>.
11088 (vec_allocation_t): Define.
11089 (struct vec_prefix): Move earlier in the file.
11090 (vec_t<T>): New template.
11091 (DEF_VEC_I, DEF_VECL_ALLOC_I, DEF_VEC_P, DEF_VEC_ALLOC_P,
11092 DEF_VEC_O, DEF_VEC_ALLOC_P, DEF_VEC_O, DEF_VEC_ALLOC_O,
11093 DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_O_STACK,
11094 DEF_VEC_ALLOC_I_STACK): Expand to 'struct vec_swallow_trailing_semi'.
11095 (DEF_VEC_A): Provide template instantiations for
11096 GC/PCH markers that do not traverse the vector.
11097 (vec_stack_p_reserve): Remove.
11098 (vec_stack_p_reserve_exact): Remove.
11099 (vec_stack_p_reserve_exact_1): Remove.
11100 (vec_stack_o_reserve): Remove.
11101 (vec_stack_o_reserve_exact): Remove.
11102 (vec_stack_free): Re-write as a template function.
11103 (vec_reserve): New template function.
11104 (vec_reserve_exact): New template function.
11105 (vec_heap_free): New template function if GATHER_STATISTICS is
11106 defined. Otherwise, macro that expands to free().
11107 (VEC_length_1): New template function.
11108 (VEC_length): Call it.
11109 (VEC_empty_1): New template function.
11110 (VEC_empty): Call it.
11111 (VEC_address_1): New template function.
11112 (VEC_address): Call it.
11113 (VEC_last_1): New template function.
11114 (VEC_last): Call it. Change return type to T&.
11115 Change all users that used VEC_Os.
11116 (VEC_index_1): New template function.
11117 (VEC_index): Call it. Return a T& instead of a T*.
11118 Update all callers that were using VEC_O before.
11119 (VEC_iterate_1): New template function.
11120 (VEC_iterate): Call it.
11121 (VEC_embedded_size_1): New template function.
11122 (VEC_embedded_size): Call it.
11123 (VEC_embedded_init_1): New template function.
11124 (VEC_embedded_init): Call it.
11125 (VEC_alloc_1): New template function.
11126 (VEC_alloc): Call it. If A is 'stack', call XALLOCAVAR to
11128 (VEC_free_1): New template function.
11129 (VEC_free): Call it.
11130 (VEC_copy_1): New template function.
11131 (VEC_copy): Call it.
11132 (VEC_space_1): New template function
11133 (VEC_space): Call it.
11134 (VEC_reserve_1): New template function.
11135 (VEC_reserve): Call it.
11136 (VEC_reserve_exact_1): New template function.
11137 (VEC_reserve_exact): Call it.
11138 (VEC_splice_1): New template function.
11139 (VEC_splice): Call it.
11140 (VEC_safe_splice_1): New template function.
11141 (VEC_safe_splice): Call it.
11142 (VEC_quick_push_1): New template function. Create two overloads, one
11143 accepting T, the other accepting T *. Update all callers
11144 where T and T * are ambiguous.
11145 (VEC_quick_push): Call it.
11146 (VEC_safe_push_1): New template function. Create two overloads, one
11147 accepting T, the other accepting T *. Update all callers
11148 where T and T * are ambiguous.
11149 (VEC_safe_push): Call it.
11150 (VEC_pop_1): New template function.
11151 (VEC_pop): Call it.
11152 (VEC_truncate_1): New template function.
11153 (VEC_truncate): Call it.
11154 (VEC_safe_grow_1): New template function.
11155 (VEC_safe_grow): Call it.
11156 (VEC_safe_grow_cleared_1): New template function.
11157 (VEC_safe_grow_cleared): Call it.
11158 (VEC_replace_1): New template function.
11159 (VEC_replace): Call it. Always accept T instead of T*.
11160 Update all callers that used VEC_Os.
11161 (VEC_quick_insert_1): New template function.
11162 (VEC_quick_insert): Call it.
11163 (VEC_safe_insert_1): New template function.
11164 (VEC_safe_insert): Call it.
11165 (VEC_ordered_remove_1): New template function.
11166 (VEC_ordered_remove): Call it.
11167 (VEC_unordered_remove_1): New template function.
11168 (VEC_unordered_remove): Call it.
11169 (VEC_block_remove_1): New template function.
11170 (VEC_block_remove): Call it.
11171 (VEC_lower_bound_1): New template function.
11172 (VEC_lower_bound): Call it.
11174 (DEF_VEC_FUNC_P): Remove.
11175 (DEF_VEC_ALLOC_FUNC_P): Remove.
11176 (DEF_VEC_NONALLOC_FUNCS_P): Remove.
11177 (DEF_VEC_FUNC_O): Remove.
11178 (DEF_VEC_ALLOC_FUNC_O): Remove.
11179 (DEF_VEC_NONALLOC_FUNCS_O): Remove.
11180 (DEF_VEC_ALLOC_FUNC_I): Remove.
11181 (DEF_VEC_NONALLOC_FUNCS_I): Remove.
11182 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove.
11183 (DEF_VEC_ALLOC_FUNC_O_STACK): Remove.
11184 (DEF_VEC_ALLOC_FUNC_I_STACK): Remove.
11185 (vec_reserve_exact): New template function.
11187 * gengtype-lex.l (DEF_VEC_ALLOC_[IOP]/{EOID}): Remove.
11188 * gengtype-parse.c (token_names): Remove DEF_VEC_ALLOC_[IOP].
11189 (typedef_name): Emit vec_t<C1> instead of VEC_C1_C2.
11190 (def_vec_alloc): Remove. Update all callers.
11191 * gengtype.c (filter_type_name): New.
11192 (output_mangled_typename): Call it.
11193 (write_func_for_structure): Likewise.
11194 (write_types): Likewise.
11195 (write_root): Likewise.
11196 (write_typed_alloc_def): Likewise.
11197 (note_def_vec): Emit vec_t<TYPE_NAME> instead of VEC_TYPE_NAME_base.
11198 (note_def_vec_alloc): Remove.
11199 * gengtype.h (note_def_vec_alloc): Remove.
11200 (DEFVEC_ALLOC): Remove token code.
11202 * df-scan.c (df_bb_verify): Remove call to df_free_collection_rec
11203 inside the insn traversal loop.
11204 * gimplify.c (gimplify_compound_lval): Rename STACK to EXPR_STACK.
11205 * ipa-inline.c (inline_small_functions): Rename HEAP to EDGE_HEAP.
11206 * reg-stack.c (stack): Rename to STACK_PTR. Update all users.
11207 * tree-vrp.c (stack): Rename to EQUIV_STACK. Update all users.
11209 * config/bfin/bfin.c (hwloop_optimize): Update some calls to
11210 VEC_* for vectors of non-pointers.
11211 * config/c6x/c6x.c (try_rename_operands): Likewise.
11212 (reshuffle_units): Likewise.
11213 * config/mips/mips.c (mips_multi_start): Likewise.
11214 (mips_multi_add): Likewise.
11215 (mips_multi_copy_insn): Likewise.
11216 (mips_multi_set_operand): Likewise.
11217 * hw-doloop.c (discover_loop): Likewise.
11218 (discover_loops): Likewise.
11219 (reorg_loops): Likewise.
11221 2012-08-14 Diego Novillo <dnovillo@google.com>
11223 Merge from cxx-conversion branch. C++ support in gengtype.
11225 * coretypes.h (gt_pointer_operator): Move from ...
11227 * doc/gty.texi: Document support for C++ templates and
11228 user-provided markers.
11229 * gengtype-lex.l: Update copyright year.
11230 Remove support for recognizing DEF_VEC_O, DEF_VEC_P and DEFVEC_I.
11231 * gengtype-parse.c: Update copyright year.
11232 (token_names): Remove DEF_VEC_O, DEF_VEC_P and DEF_VEC_I.
11233 (require_template_declaration): New.
11234 (typedef_name): Call it.
11235 (type): Replace IS_UNION with KIND. Replace all users.
11236 (def_vec): Remove. Update all users.
11237 * gengtype-state.c (type_lineloc): Handle TYPE_USER_STRUCT.
11238 (write_state_user_struct_type): New.
11239 (write_state_type): Call it.
11240 (read_state_user_struct_type): New.
11241 (read_state_type): Call it.
11242 * gengtype.c: Update copyright year.
11243 (dump_pair): Move declaration to the top.
11244 (dump_type): Likewise.
11245 (dump_type_list): Likewise.
11246 (dbgprint_count_type_at): Handle TYPE_USER_STRUCT.
11247 (create_user_defined_type): New.
11248 (resolve_typedef): Call it.
11249 (new_structure): Replace argument ISUNION with KIND.
11250 Change users to refer to KIND directly.
11251 Update all callers.
11252 (find_structure): Likewise.
11253 (set_gc_used_type): Handle TYPE_USER_STRUCT.
11254 (create_file): Update HDR to include new copyright year.
11255 (struct walk_type_data): Add field IN_PTR_FIELD.
11256 (output_mangled_typename): Handle TYPE_USER_STRUCT.
11257 (walk_type): Set D->IN_PTR_FIELD when walking a TYPE_POINTER.
11258 Clear it afterwards.
11259 Handle TYPE_USER_STRUCT.
11260 (write_types_process_field): Handle TYPE_USER_STRUCT.
11261 (get_type_specifier): Move earlier in the file.
11262 (write_type_decl): New.
11263 (write_marker_function_name): New.
11264 (write_user_func_for_structure_ptr): New.
11265 (write_user_func_for_structure_body): New.
11266 (write_user_marking_functions): New.
11267 (write_func_for_structure): Call write_marker_function_name
11268 and write_type_decl.
11269 Do not call walk_type for TYPE_USER_STRUCT. Emit a call to the user
11271 Call write_user_marking_functions on TYPE_USER_STRUCTs.
11272 (write_types_local_user_process_field): New.
11273 (write_pch_user_walking_for_structure_body): New.
11274 (write_pch_user_walking_functions): New.
11275 (write_types_local_process_field): Handle TYPE_USER_STRUCT.
11276 (write_local_func_for_structure): Do not call walk_type for
11277 TYPE_USER_STRUCT. Instead, emit the call to gt_pch_nx directly.
11278 Call write_pch_user_walking_functions for TYPE_USER_STRUCTs.
11279 (write_root): Handle TYPE_USER_STRUCT.
11280 (vec_prefix_type): Remove. Update all users.
11281 (note_def_vec): Remove. Update all users.
11282 (dump_typekind): Handle TYPE_USER_STRUCT.
11283 (dump_type): Initialize SEEN_TYPES, if needed.
11284 Handle TYPE_USER_STRUCT.
11285 (dump_everything): Do not initialize SEEN_TYPES.
11286 * gengtype.h: Update copyright year.
11287 (enum typekind): Add TYPE_USER_STRUCT.
11288 (union_or_struct_p): Rename from UNION_OR_STRUCT_P.
11289 Convert into function.
11290 Add an overload taking const_type_p.
11291 Update all callers.
11292 (new_structure): Change second field to type enum typekind.
11294 (find_structure): Likewise.
11295 (note_def_vec): Remove.
11296 (DEFVEC_OP): Remove.
11297 (DEFVEC_I): Remove.
11298 * ggc-page.c (gt_ggc_mx): Add entry points for marking
11299 'const char *&', 'unsigned char *&' and 'unsigned char&'.
11300 * ggc-zone.c (gt_ggc_mx): Add entry points for marking
11301 'const char *&' and 'unsigned char *&'.
11302 * stringpool.c (gt_pch_nx): Add entry points for marking
11303 'const char *&', 'unsigned char *&' and 'unsigned char&'.
11304 Add an entry point for the overload taking arguments 'unsigned char
11305 *', 'gt_pointer_operator' and 'void *'.
11306 * vec.h (struct vec_prefix): Remove GTY marker.
11307 (struct vec_t): Remove GTY((length)) attribute from field 'vec'.
11308 (gt_ggc_mx (vec_t<T> *)): New template function.
11309 (gt_pch_nx (vec_t<T> *)): New template function.
11310 (gt_pch_nx (vec_t<T *> *, gt_pointer_operator, void *)): New template
11312 (gt_pch_nx (vec_t<T> *, gt_pointer_operator, void *)): New template
11315 * basic-block.h (struct edge_def): Mark GTY((user)).
11316 Remove all GTY markers from fields.
11317 (gt_ggc_mx): Declare.
11318 (gt_pch_nx): Declare.
11319 * tree-cfg.c (gt_ggc_mx): New.
11322 * gengtype-lex.l (USER_GTY): Add pattern for "user".
11323 * gengtype-parse.c (option): Handle USER_GTY.
11326 If the keyword 'user' is used, do not walk the fields
11328 * gengtype.h (USER_GTY): Add.
11329 * doc/gty.texi: Update.
11331 2012-08-14 Lawrence Crowl <crowl@google.com>
11333 Merge cxx-conversion branch. Implement C++ hash table.
11335 * hash-table.h: New. Implementation borrowed from libiberty/hashtab.c.
11336 * hash-table.c: Likewise.
11337 * tree-ssa-tail-merge.c: Include hash-table.h instead of hashtab.h.
11338 (static htab_t same_succ_htab): Change type to hash_table;
11339 move specification of helper functions from create call to declaration.
11340 Change users to invoke member functions.
11341 (same_succ_print_traverse): Make extern ssa_.... Change callers.
11342 Remove void* casting.
11343 (same_succ_hash): Likewise.
11344 (same_succ_equal): Likewise.
11345 (same_succ_delete): Likewise.
11346 * tree-ssa-threadupdate.c: Include hash-table.h.
11347 (struct local_info): Rename to ssa_local_info_t to avoid overloading
11348 the type name local_info with the variable name local_info.
11349 (static htab_t redirection_data): Change type to hash_table.
11350 Move specification of helper functions from create call to declaration.
11351 Change users to invoke member functions.
11352 (redirection_data_hash): Make extern ssa_.... Change callers.
11353 Remove void* casting.
11354 (redirection_data_eq): Likewise.
11355 (fix_duplicate_block_edges): Likewise.
11356 (create_duplicates): Likewise.
11357 (fixup_template_block): Likewise.
11358 (redirect_edges): Likewise.
11359 (lookup_redirection_data): Change types associated with the hash table
11360 from void* to their actual type. Remove unnecessary casts.
11361 * tree-ssa-ccp.c: Include hash-table.h.
11362 (typedef gimple_htab): New. Uses hash_table. Replace specific uses
11363 of htab_t with gimple_htab. Change users to invoke member functions.
11364 Move specification of helper functions from create call to declaration.
11365 * tree-ssa-coalesce.c: Include hash-table.h instead of hashtab.h.
11366 (hash_ssa_name_by_var): Make extern. Remove void* casting.
11367 (eq_ssa_name_by_var): Likewise.
11368 (coalesce_ssa_name): Change type of local static htab_t ssa_name_hash
11369 to hash_table. Change users to invoke member functions.
11370 Move specification of helper functions from create call to declaration.
11371 * coverage.c: Include hash-table.h instead of hashtab.h.
11372 (static htab_t counts_hash): Change type to hash_table;
11373 move specification of helper functions from create call to declaration.
11374 Change users to invoke member functions.
11375 (htab_counts_entry_hash): Make extern. Rename with coverage_... instead
11376 of htab_... Remove void* casting.
11377 (htab_counts_entry_eq): Likewise.
11378 (htab_counts_entry_del): Likewise.
11379 * tree-ssa-pre.c: Include hash-table.h instead of hashtab.h.
11380 (static htab_t expression_to_id): Change type to hash_table.
11381 Move specification of helper functions from create call to declaration.
11382 Change users to invoke member functions.
11383 (static htab_t phi_translate_table): Likewise.
11384 (pre_expr_eq): Make extern ssa_.... Change callers.
11385 Remove void* casting.
11386 (pre_expr_hash): Likewise.
11387 (expr_pred_trans_hash): Likewise.
11388 (expr_pred_trans_eq): Likewise.
11389 (alloc_expression_id): Change types associated with the hash table
11390 from void* to their actual type. Remove unnecessary casts.
11391 (lookup_expression_id): Likewise.
11392 (phi_trans_lookup): Likewise.
11393 (phi_trans_add): Likewise.
11394 * stringpool.c: Rename uses of libcpp typedef hash_table to
11396 * Makefile.in: Add hash-table.o to OBJS-libcommon-target.
11397 Add $(HASH_TABLE_H). Add new dependences on $(HASH_TABLE_H).
11399 2012-08-14 Lawrence Crowl <crowl@google.com>
11401 Merge from cxx-conversion branch. Re-write double_int in C++.
11404 (typedef double_int): Change to struct (POD).
11405 (double_int::make): New overloads for int to double-int conversion.
11406 (double_int::mask): New.
11407 (double_int::max_value): New.
11408 (double_int::min_value): New.
11409 (double_int::operator ++): New.
11410 (double_int::operator --): New.
11411 (double_int::operator *=): New.
11412 (double_int::operator +=): New.
11413 (double_int::operator -=): New.
11414 (double_int::to_signed): New.
11415 (double_int::to_unsigned): New.
11416 (double_int::fits_unsigned): New.
11417 (double_int::fits_signed): New.
11418 (double_int::fits): New.
11419 (double_int::trailing_zeros): New.
11420 (double_int::popcount): New.
11421 (double_int::multiple_of): New.
11422 (double_int::set_bit): New.
11423 (double_int::mul_with_sign): New.
11424 (double_int::operator * (binary)): New.
11425 (double_int::operator + (binary)): New.
11426 (double_int::operator - (binary)): New.
11427 (double_int::operator - (unary)): New.
11428 (double_int::operator ~ (unary)): New.
11429 (double_int::operator & (binary)): New.
11430 (double_int::operator | (binary)): New.
11431 (double_int::operator ^ (binary)): New.
11432 (double_int::and_not): New.
11433 (double_int::lshift): New.
11434 (double_int::rshift): New.
11435 (double_int::alshift): New.
11436 (double_int::arshift): New.
11437 (double_int::llshift): New.
11438 (double_int::lrshift): New.
11439 (double_int::lrotate): New.
11440 (double_int::rrotate): New.
11441 (double_int::div): New.
11442 (double_int::sdiv): New.
11443 (double_int::udiv): New.
11444 (double_int::mod): New.
11445 (double_int::smod): New.
11446 (double_int::umod): New.
11447 (double_int::divmod): New.
11448 (double_int::sdivmod): New.
11449 (double_int::udivmod): New.
11450 (double_int::ext): New.
11451 (double_int::zext): New.
11452 (double_int::sext): New.
11453 (double_int::is_zero): New.
11454 (double_int::is_one): New.
11455 (double_int::is_minus_one): New.
11456 (double_int::is_negative): New.
11457 (double_int::cmp): New.
11458 (double_int::ucmp): New.
11459 (double_int::scmp): New.
11460 (double_int::ult): New.
11461 (double_int::ugt): New.
11462 (double_int::slt): New.
11463 (double_int::sgt): New.
11464 (double_int::max): New.
11465 (double_int::smax): New.
11466 (double_int::umax): New.
11467 (double_int::min): New.
11468 (double_int::smin): New.
11469 (double_int::umin): New.
11470 (double_int::operator ==): New.
11471 (double_int::operator !=): New.
11472 (shwi_to_double_int): Change implementation to use member function.
11473 (double_int_minus_one): Likewise.
11474 (double_int_zero): Likewise.
11475 (double_int_one): Likewise.
11476 (double_int_two): Likewise.
11477 (double_int_ten): Likewise.
11478 (uhwi_to_double_int): Likewise.
11479 (double_int_to_shwi): Likewise.
11480 (double_int_to_uhwi): Likewise.
11481 (double_int_fits_in_uhwi_p): Likewise.
11482 (double_int_fits_in_shwi_p): Likewise.
11483 (double_int_fits_in_hwi_p): Likewise.
11484 (double_int_mul): Likewise.
11485 (double_int_mul_with_sign): Likewise.
11486 (double_int_add): Likewise.
11487 (double_int_sub): Likewise.
11488 (double_int_neg): Likewise.
11489 (double_int_div): Likewise.
11490 (double_int_sdiv): Likewise.
11491 (double_int_udiv): Likewise.
11492 (double_int_mod): Likewise.
11493 (double_int_smod): Likewise.
11494 (double_int_umod): Likewise.
11495 (double_int_divmod): Likewise.
11496 (double_int_sdivmod): Likewise.
11497 (double_int_udivmod): Likewise.
11498 (double_int_multiple_of): Likewise.
11499 (double_int_setbit): Likewise.
11500 (double_int_ctz): Likewise.
11501 (double_int_not): Likewise.
11502 (double_int_ior): Likewise.
11503 (double_int_and): Likewise.
11504 (double_int_and_not): Likewise.
11505 (double_int_xor): Likewise.
11506 (double_int_lshift): Likewise.
11507 (double_int_rshift): Likewise.
11508 (double_int_lrotate): Likewise.
11509 (double_int_rrotate): Likewise.
11510 (double_int_cmp): Likewise.
11511 (double_int_scmp): Likewise.
11512 (double_int_ucmp): Likewise.
11513 (double_int_max): Likewise.
11514 (double_int_smax): Likewise.
11515 (double_int_umax): Likewise.
11516 (double_int_min): Likewise.
11517 (double_int_smin): Likewise.
11518 (double_int_umin): Likewise.
11519 (double_int_ext): Likewise.
11520 (double_int_sext): Likewise.
11521 (double_int_zext): Likewise.
11522 (double_int_mask): Likewise.
11523 (double_int_max_value): Likewise.
11524 (double_int_min_value): Likewise.
11525 (double_int_zero_p): Likewise.
11526 (double_int_one_p): Likewise.
11527 (double_int_minus_one_p): Likewise.
11528 (double_int_equal_p): Likewise.
11529 (double_int_popcount): Likewise.
11531 (double_int_mask): Reuse implementation for double_int::mask.
11532 (double_int_max_value): Likewise.
11533 (double_int_min_value): Likewise.
11534 (double_int_ext): Likewise.
11535 (double_int_zext): Likewise.
11536 (double_int_sext): Likewise.
11537 (double_int_mul_with_sign): Likewise.
11538 (double_int_divmod): Likewise.
11539 (double_int_sdivmod): Likewise.
11540 (double_int_udivmod): Likewise.
11541 (double_int_div): Likewise.
11542 (double_int_sdiv): Likewise.
11543 (double_int_udiv): Likewise.
11544 (double_int_mod): Likewise.
11545 (double_int_smod): Likewise.
11546 (double_int_umod): Likewise.
11547 (double_int_multiple_of): Likewise.
11548 (double_int_lshift): Likewise.
11549 (double_int_rshift): Likewise.
11550 (double_int_lrotate): Likewise.
11551 (double_int_rrotate): Likewise.
11552 (double_int_cmp): Likewise.
11553 (double_int_ucmp): Likewise.
11554 (double_int_scmp): Likewise.
11555 (double_int_max): Likewise.
11556 (double_int_smax): Likewise.
11557 (double_int_umax): Likewise.
11558 (double_int_min): Likewise.
11559 (double_int_smin): Likewise.
11560 (double_int_umin): Likewise.
11561 (double_int_min): Likewise.
11562 (double_int_min): Likewise.
11563 (double_int_min): Likewise.
11564 (double_int_min): Likewise.
11565 (double_int_min): Likewise.
11566 (double_int_min): Likewise.
11567 (double_int::alshift): New.
11568 (double_int::arshift): New.
11569 (double_int::llshift): New.
11570 (double_int::lrshift): New.
11571 (double_int::ult): New.
11572 (double_int::ugt): New.
11573 (double_int::slt): New.
11574 (double_int::sgt): New.
11575 (double_int_setbit): Reuse implementation for double_int::set_bit,
11576 which avoids a name conflict with a macro.
11577 (double_int_double_int_ctz): Reuse implementation for
11578 double_int::trailing_zeros.
11579 (double_int_fits_in_shwi_p): Reuse implementation for
11580 double_int::fits_signed.
11581 (double_int_fits_in_hwi_p): Reuse implementation for double_int::fits.
11582 (double_int_mul): Reuse implementation for binary
11583 double_int::operator *.
11584 (double_int_add): Likewise.
11585 (double_int_sub): Likewise.
11586 (double_int_neg): Reuse implementation for unary
11587 double_int::operator -.
11588 (double_int_max_value): Likewise.
11589 * fixed-value.c: Change to use member functions introduced above.
11591 2012-08-14 Lawrence Crowl <crowl@google.com>
11593 Merge cxx-conversion branch. Support tree macro calling from gdb.
11595 * tree.h (tree_check): New.
11596 (TREE_CHECK): Use inline function above instead of __extension__.
11597 (tree_not_check): New.
11598 (TREE_NOT_CHECK): Use inline function above instead of __extension__.
11599 (tree_check2): New.
11600 (TREE_CHECK2): Use inline function above instead of __extension__.
11601 (tree_not_check2): New.
11602 (TREE_NOT_CHECK2): Use inline function above instead of __extension__.
11603 (tree_check3): New.
11604 (TREE_CHECK3): Use inline function above instead of __extension__.
11605 (tree_not_check3): New.
11606 (TREE_NOT_CHECK3): Use inline function above instead of __extension__.
11607 (tree_check4): New.
11608 (TREE_CHECK4): Use inline function above instead of __extension__.
11609 (tree_not_check4): New.
11610 (TREE_NOT_CHECK4): Use inline function above instead of __extension__.
11611 (tree_check5): New.
11612 (TREE_CHECK5): Use inline function above instead of __extension__.
11613 (tree_not_check5): New.
11614 (TREE_NOT_CHECK5): Use inline function above instead of __extension__.
11615 (contains_struct_check): New.
11616 (CONTAINS_STRUCT_CHECK): Use inline function above instead of
11618 (tree_class_check): New.
11619 (TREE_CLASS_CHECK): Use inline function above instead of __extension__.
11620 (tree_range_check): New.
11621 (TREE_RANGE_CHECK): Use inline function above instead of __extension__.
11622 (omp_clause_subcode_check): New.
11623 (OMP_CLAUSE_SUBCODE_CHECK): Use inline function above instead of
11625 (omp_clause_range_check): New.
11626 (OMP_CLAUSE_RANGE_CHECK): Use inline function above instead of
11629 (EXPR_CHECK): Use inline function above instead of __extension__.
11630 (non_type_check): New.
11631 (NON_TYPE_CHECK): Use inline function above instead of __extension__.
11632 (tree_vec_elt_check): New.
11633 (TREE_VEC_ELT_CHECK): Use inline function above instead of
11635 (omp_clause_elt_check): New.
11636 (OMP_CLAUSE_ELT_CHECK): Use inline function above instead of
11638 (tree_operand_check): New.
11639 (TREE_OPERAND_CHECK): Use inline function above instead of
11641 (tree_operand_check_code): New.
11642 (TREE_OPERAND_CHECK_CODE): Use inline function above instead of
11644 (TREE_CHAIN): Simplify implementation.
11645 (TREE_TYPE): Simplify implementation.
11646 (tree_operand_length): Move for compilation dependences.
11647 * gdbinit.in: (macro define __FILE__): New.
11648 (macro define __LINE__): New.
11649 (skip "tree.h"): New.
11651 2012-08-14 Oleg Endo <olegendo@gcc.gnu.org>
11654 * config/sh/sh.md (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0,
11655 *cmp_div0s_1, *cbranch_div0s, *movsicc_div0s): New insns.
11656 * config/sh/sh.c (sh_rtx_costs): Handle div0s patterns.
11658 2012-08-14 Oleg Endo <olegendo@gcc.gnu.org>
11661 * config/sh/constraints.md (Sra): New constraint.
11662 * config/sh/predicates.md (simple_mem_operand,
11663 displacement_mem_operand, zero_extend_movu_operand): New predicates.
11664 (zero_extend_operand): Check zero_extend_movu_operand for SH2A.
11665 * config/sh/sh.md (*zero_extendqisi2_disp_mem,
11666 *zero_extendhisi2_disp_mem): Add new insns and two new related
11667 peephole2 patterns.
11669 2012-08-14 Steven Bosscher <steven@gcc.gnu.org>
11671 * graphite-scop-detection.c (create_sese_edges): Compute dominance
11672 info before trying to fix loop structure.
11673 * cfgloopmanip.c (fix_loop_structure): Require fast DOM queries.
11674 * tree-cfgcleanup.c (repair_loop_structures): Likewise.
11675 * cfgloop.c (verify_loop_structure): Verify loop fathers.
11677 * dominance.c (init_dom_info): Use gcc_checking_assert, not gcc_assert.
11678 (dom_convert_dir_to_idx, compute_dom_fast_query,
11679 get_immediate_dominator, set_immediate_dominator, get_dominated_by,
11680 redirect_immediate_dominators, nearest_common_dominator,
11681 (dominated_by_p, bb_dom_dfs_in, bb_dom_dfs_out, recompute_dominator,
11682 iterate_fix_dominators, add_to_dominance_info,
11683 delete_from_dominance_info): Likewise.
11685 2012-08-14 Richard Guenther <rguenther@suse.de>
11687 * cfgexpand.c (expand_used_vars): Use virtual_operand_p.
11688 * gimple-pretty-print.c (dump_phi_nodes): Likewise.
11689 * gimple-streamer-out.c (output_bb): Likewise.
11690 * graphite-sese-to-poly.c (scalar_close_phi_node_p): Likewise.
11691 (rewrite_reductions_out_of_ssa): Likewise.
11692 (rewrite_commutative_reductions_out_of_ss): Likewise.
11693 * ipa-split.c (verify_non_ssa_vars): Likewise.
11694 (consider_split): Likewise.
11695 (visit_bb): Likewise.
11696 (split_function): Likewise.
11697 * lto-streamer-out.c (output_ssa_names): Likewise.
11698 * sese.c (rename_uses): Likewise.
11699 * tree-cfg.c (replace_uses_by): Likewise.
11700 (gimple_merge_blocks): Likewise.
11701 (gimple_cfg2dot): Likewise.
11702 (verify_gimple_phi): Likewise.
11703 (replace_ssa_name): Likewise.
11704 (move_block_to_fn): Likewise.
11705 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
11706 * tree-if-conv.c (if_convertible_phi_p): Likewise.
11707 (predicate_scalar_phi): Likewise.
11708 * tree-inline.c (update_ssa_across_abnormal_edges): Likewise.
11709 (copy_phis_for_bb): Likewise.
11710 * tree-loop-distribution.c (generate_loops_for_partition): Likewise.
11711 (destroy_loop): Likewise.
11712 * tree-outof-ssa.c (eliminate_useless_phis): Likewise.
11713 (insert_backedge_copies): Likewise.
11714 * tree-parloops.c (transform_to_exit_first_loop): Likewise.
11715 (gather_scalar_reductions): Likewise.
11716 (try_create_reduction_list): Likewise.
11717 * tree-scalar-evolution.c (analyze_scalar_evolution_for_all_loop_ph):
11719 (scev_const_prop): Likewise.
11720 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
11721 (get_default_value): Likewise.
11722 (ccp_initialize): Likewise.
11723 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
11724 * tree-ssa-copy.c (may_propagate_copy): Likewise.
11725 (init_copy_prop): Likewise.
11726 * tree-ssa-dce.c (propagate_necessity): Likewise.
11727 (remove_dead_phis): Likewise.
11728 (forward_edge_to_pdom): Likewise.
11729 (eliminate_unnecessary_stmts): Likewise.
11730 * tree-ssa-live.c (partition_view_init): Likewise.
11731 (remove_unused_locals): Likewise.
11732 (register_ssa_partition_check): Likewise.
11733 * tree-ssa-loop-im.c (movement_possibility): Likewise.
11734 (move_computations_stmt): Likewise.
11735 * tree-ssa-loop-ivopts.c (determine_biv_step): Likewise.
11736 (record_invariant): Likewise.
11737 (find_interesting_uses_outside): Likewise.
11738 (determine_set_costs): Likewise.
11739 * tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
11740 (find_uses_to_rename_use): Likewise.
11741 (check_loop_closed_ssa_use): Likewise.
11742 (rewrite_phi_with_iv): Likewise.
11743 (canonicalize_loop_ivs): Likewise.
11744 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
11745 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
11746 * tree-ssa-pre.c (make_values_for_phi): Likewise.
11747 (compute_avail): Likewise.
11748 (eliminate): Likewise.
11749 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
11750 * tree-ssa-reassoc.c (phi_rank): Likewise.
11751 * tree-ssa-strlen.c (strlen_enter_block): Likewise.
11752 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
11753 (ipa_pta_execute): Likewise.
11754 * tree-ssa-tail-merge.c (same_succ_hash): Likewise.
11755 (release_last_vdef): Likewise.
11756 (same_phi_alternatives_1): Likewise.
11757 (bb_has_non_vop_phi): Likewise.
11758 (vop_phi): Likewise.
11759 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
11761 * tree-ssa-uninit.c (warn_uninitialized_phi): Likewise.
11762 (execute_late_warn_uninitialized): Likewise.
11763 * tree-ssa.c (verify_ssa_name): Likewise.
11764 (verify_phi_args): Likewise.
11765 (verify_ssa): Likewise.
11766 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
11767 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
11769 (slpeel_tree_peel_loop_to_edge): Likewise.
11770 (vect_can_advance_ivs_p): Likewise.
11771 (vect_update_ivs_after_vectorizer): Likewise.
11772 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Likewise.
11773 * tree-vrp.c (remove_range_assertions): Likewise.
11774 * value-prof.c (gimple_divmod_values_to_profile): Likewise.
11776 2012-08-14 Richard Guenther <rguenther@suse.de>
11778 PR tree-optimization/54146
11779 * tree-ssa-pre.c (do_regular_insertion): Use a VEC
11780 indexed by pred edge index for avail.
11781 (do_partial_partial_insertion): Likewise.
11782 (insert_into_preds_of_block): Adjust.
11784 2012-08-14 Richard Guenther <rguenther@suse.de>
11786 * gimplify.c (create_tmp_from_val): Mark temporary with
11787 DECL_GIMPLE_REG_P here ...
11788 (internal_get_tmp_var): ... instead of here. If we go into
11789 SSA create an SSA name instead of a VAR_DECL.
11790 (gimplify_modify_expr): Do not create SSA names here, assert
11791 we already got them.
11792 (force_gimple_operand_1): Create an SSA name if we go into SSA.
11793 * sese.c (rename_uses): Simplify.
11795 2012-08-14 Richard Guenther <rguenther@suse.de>
11797 * tree-into-ssa.c: Include diagnostic-core.h.
11798 * Makefile.in (tree-into-ssa.o): Adjust.
11800 2012-08-14 Richard Guenther <rguenther@suse.de>
11802 * tree-into-ssa.c (update_ssa): Verify we do not rename
11803 symbols that are already partly in SSA form.
11805 2012-08-14 Jakub Jelinek <jakub@redhat.com>
11807 PR middle-end/53411
11808 PR rtl-optimization/53495
11809 * ira.c (ira): Move delete_trivially_dead_insns call before
11810 find_moveable_pseudos call.
11812 2012-08-13 Steven Bosscher <steven@gcc.gnu.org>
11814 * tree-ssa-pre.c (do_regular_insertion): Add FIXME markers at points
11815 of potentially huge memset overhead.
11816 (do_partial_partial_insertion): Likewise.
11817 * cfgexpand.c (gimple_expand_cfg): Use XCNEWVEC instead of xcalloc.
11818 * tree-vrp.c (find_assert_locations): Use XNEWVEC instead of XCNEWVEC
11819 for arrays to be filled by pre_and_rev_post_order_compute. Allocate
11820 the right number of slots, not that number plus NUM_FIXED_BLOCKS.
11821 * tree-ssa-reassoc.c (init_reassoc): Likewise.
11822 * cfganal.c (dfs_enumerate_from): Use XNEWVEC instead of XCNEWVEC for
11823 array used as stack.
11824 * tree-ssa-sccvn.c (init_scc_vn): Use XNEWVEC instead of XCNEWVEC for
11825 arrays to be filled by pre_and_rev_post_order_compute.
11826 * cfgloopmanip.c (find_path): Use XNEWVEC instead of XCNEWVEC for
11827 array to be filled by dfs_enumerate_from.
11828 (remove_path): Likewise.
11829 (duplicate_loop_to_header_edge): Use XNEWVEC instead of XCNEWVEC for
11830 array of loops that is filled on the next lines.
11831 * cfgloop.c (get_loop_body): Use XNEWVEC instead of XCNEWVEC for
11832 array of basic blocks to be returned.
11833 (get_loop_body_in_dom_order): Likewise.
11834 (get_loop_body_in_bfs_order): Likewise.
11835 * tree-ssa-loop-manip.c (loop_renamer_obstack): New static obstack
11836 for all bitmaps used for rewriting into loop-closed SSA form.
11837 (add_exit_phis_var): Allocate the def bitmap on it. Clear the livein
11838 bitmap at the end to release a lot of memory.
11839 (add_exit_phis): Allocate the exits bitmap on the new obstack.
11840 (get_loops_exits): Allocate the exits bitmap on the new obstack.
11841 (find_uses_to_rename_use): Allocate a use_blocks bitmap if ver is
11842 seen for the first time.
11843 (find_uses_to_rename): Add "???" for why the whole function must
11844 be re-scanned if changed_bbs is empty.
11845 (rewrite_into_loop_closed_ssa): Allocate bitmaps on the new obstack.
11846 Use XNEWVEC to allocate the use_blocks array. Initialize the new
11847 obstack, and free it at the end. Remove loop over all SSA names.
11848 (check_loop_closed_ssa_stmt): Look only at SSA_OP_USE operands.
11849 * tree-cfg.c (move_sese_region_to_fn): Use XNEWVEC instead of
11850 xcalloc to allocate edge_pred and edge_flag arrays.
11852 2012-08-13 Uros Bizjak <ubizjak@gmail.com>
11854 * config/i386/i386.h (FIXED_REGISTERS): Do not mark REX registers here.
11855 (CALL_USED_REGISTERS): Use bitmaps to mark call-used registers
11856 for different ABIs.
11857 (enum reg_class): Move CLOBBERED_REGS just before GENERAL_REGS.
11858 (REG_CLASS_NAMES): Update.
11859 (REG_CLASS_CONTENTS): Update. Clear CLOBBERED_REGS members.
11860 * config/i386/i386.c (ix86_conditional_register_usage): Disable
11861 REX registers on 32bit targets. Handle bitmaps from
11862 CALL_USED_REGISTERS initializer. Calculate CLOBBERED_REGS register
11863 set from GENERAL_REGS also for 32bit targets. Do not change call
11864 used register set for TARGET_64BIT_MS_ABI separately.
11866 2012-08-13 Richard Guenther <rguenther@suse.de>
11868 * basic-block.h (struct basic_block): Remove loop_depth
11869 member, move flags and index members next to each other.
11870 * cfgloop.h (bb_loop_depth): New inline function.
11871 * cfghooks.c (split_block): Do not set loop_depth.
11872 (duplicate_block): Likewise.
11873 * cfgloop.c (flow_loop_nodes_find): Likewise.
11874 (flow_loops_find): Likewise.
11875 (add_bb_to_loop): Likewise.
11876 (remove_bb_from_loops): Likewise.
11877 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
11878 * gimple-streamer-in.c (input_bb): Do not stream loop_depth.
11879 * gimple-streamer-out.c (output_bb): Likewise.
11880 * bt-load.c: Include cfgloop.h.
11881 (migrate_btr_defs): Use bb_loop_depth.
11882 * cfg.c (dump_bb_info): Likewise.
11883 * final.c (compute_alignments): Likewise.
11884 * ira.c (update_equiv_regs): Likewise.
11885 * tree-ssa-copy.c (init_copy_prop): Likewise.
11886 * tree-ssa-dom.c (loop_depth_of_name): Likewise.
11887 * tree-ssa-forwprop.c: Include cfgloop.h.
11888 (forward_propagate_addr_expr): Use bb_loop_depth.
11889 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
11890 * tree-ssa-sink.c (select_best_block): Likewise.
11891 * ipa-inline-analysis.c: Include cfgloop.h.
11892 (estimate_function_body_sizes): Use bb_loop_depth.
11893 * Makefile.in (tree-ssa-forwprop.o): Depend on $(CFGLOOP_H).
11894 (ipa-inline-analysis.o): Likewise.
11895 (bt-load.o): Likewise.
11897 2012-08-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11898 Jakub Jelinek <jakub@redhat.com>
11901 * config/i386/driver-i386.c (host_detect_local_cpu): Test bit_PRFCHW
11902 bit of CPUID 0x80000001 %ecx instead of CPUID 7 %ecx.
11903 * config/i386/cpuid.h (bits_PRFCHW): Move definition to CPUID
11904 0x80000001 %ecx flags.
11906 2012-08-13 Richard Guenther <rguenther@suse.de>
11908 * tree-cfg.c (print_loop): Avoid ICEing for loops marked for
11909 removal and loops with multiple latches.
11911 2012-08-13 Jakub Jelinek <jakub@redhat.com>
11914 * tree.c (integer_pow2p): Avoid undefined signed overflows.
11915 * simplify-rtx.c (neg_const_int): Likewise.
11916 * expr.c (fixup_args_size_notes): Likewise.
11917 * stor-layout.c (set_min_and_max_values_for_integral_type): Likewise.
11918 * double-int.c (mul_double_wide_with_sign): Likewise.
11919 (double_int_mask): Likewise.
11920 * tree-ssa-loop-ivopts.c (get_address_cost): Likewise.
11922 2012-08-13 Richard Guenther <rguenther@suse.de>
11924 PR tree-optimization/54200
11925 * tree-ssa-copyrename.c (rename_ssa_copies): Do not add
11926 PHI results to another partition if not all PHI arguments
11927 have the same partition.
11929 2012-08-12 Jan Hubicka <jh@suse.cz>
11931 * tree-pass.h (write_summary, write_optimization_summary): Remove
11932 set and vset arguments.
11933 * ipa-cp.c (ipcp_write_summary): Remove set and vset arugments.
11934 (write_node_summary_p): Likewise; use the encoder.
11935 (ipa_reference_write_optimization_summary): Likewise.
11936 * lto-cgraph.c (output_cgraph_opt_summary): Use encoder.
11937 (lto_symtab_encoder_new): Initialize in_partition field.
11938 (lto_symtab_encoder_delete): Destroy in_partition field.
11939 (LCC_NOT_FOUND): Move to lto-streamer.h
11940 (lto_symtab_encoder_deref): Likewise.
11941 (lto_symtab_encoder_in_partition_p,
11942 lto_set_symtab_encoder_in_partition): New functions.
11943 (referenced_from_other_partition_p): Rewrite to use encoder.
11944 (reachable_from_other_partition_p): Likewise.
11945 (referenced_from_this_partition_p): Likewise.
11946 (reachable_from_this_partition_p): Likewise.
11947 (lto_output_node): Likewise.
11948 (lto_output_varpool_node): Likewise.
11949 (output_refs): Likewise.
11950 (compute_ltrans_boundary): Initialize in_partition fileds of
11952 (output_symtab): Likewise.
11953 (input_refs): Match the changes in output_refs.
11954 (output_cgraph_opt_summary_p): Remove set argument.
11955 (output_node_opt_summary): Replace set by encoder.
11956 (output_cgraph_opt_summary): Remove set argument; use
11958 * ipa-pure-const.c (pure_const_write_summary): Remove set and vset
11959 arguments; use the encoder.
11960 * lto-streamer-out.c (lto_output): Remove set and vset argument; use
11962 (produce_symtab): Likewise.
11963 * ipa-inline.h (inline_write_summary): Remove set and vset arguments.
11964 * ipa-inline-analysis.c (inline_write_summary): Likewise.
11965 * ipa-prop.c (ipa_prop_write_jump_functions): Remove set argument;
11967 * ipa-prop.h (ipa_prop_write_jump_functions): Likewise.
11968 * passes.c (ipa_write_summaries_2): Remove set and vset arguments.
11969 (ipa_write_summaries_1): Update.
11970 (ipa_write_optimization_summaries_1): Likewise.
11971 (ipa_write_optimization_summaries): Likewise.
11972 * lto-streamer.h (lto_symtab_encoder_t): Add in_partition.
11973 (lto_symtab_encoder_iterator): New type.
11974 (lto_symtab_encoder_deref): Make inline.
11975 (output_symtab, referenced_from_other_partition_p,
11976 reachable_from_other_partition_p, referenced_from_this_partition_p,
11977 reachable_from_this_partition_p): Update.
11978 (lsei_end_p, lsei_next, lsei_node, lsei_cgraph_node,
11979 lsei_varpool_node): New inline functions.
11980 (LCC_NOT_FOUND): New macro.
11981 (lto_symtab_encoder_deref, lsei_start, lsei_next_in_partition,
11982 lsei_start_in_partition, lsei_next_function_in_partition,
11983 lsei_start_function_in_partition, lsei_next_variable_in_partition,
11984 lsei_start_variable_in_partition): New inline functions.
11986 2012-08-12 Oleg Endo <olegendo@gcc.gnu.org>
11988 * config/sh/sh.md (prefetch): Simplify expander. Fix condition to
11990 (*prefetch_media): Move insn below expander.
11991 (*prefetch): Fix condition to allow SH3.
11993 2012-08-12 Oleg Endo <olegendo@gcc.gnu.org>
11996 * config/sh/sh.md: Add splits for inverted compare and branch
11998 (*cmpeqsi_t): New insn.
11999 (cmpgtsi_t, cmpgesi_t): Swap r and N alternatives.
12000 (cmpgeusi_t): Use satisfies_constraint_Z. Emit sett insn in
12001 replacement insn list and not in the preparation statements.
12002 (clrt, sett): Add mt_group attribute.
12004 2012-08-12 Marc Glisse <marc.glisse@inria.fr>
12006 PR middle-end/54193
12007 * gimple-pretty-print.c (dump_ternary_rhs): Handle 4 arguments.
12009 2012-08-12 Oleg Endo <olegendo@gcc.gnu.org>
12012 * config/sh/predicates.md (mem_index_disp_operand): Check for
12013 arith_reg_operand instead of REG_P.
12015 2012-08-11 Bernd Schmidt <bernds@codesourcery.com>
12017 * reload1.c (replaced_subreg, gen_reload): Add
12018 SECONDARY_MEMORY_NEEDED ifdefs as necessary.
12020 2012-08-11 Jan Hubicka <jh@suse.cz>
12022 * lto-section-in.c (lto_section_name): Do not use "symtab" as part of
12023 symtab_node sectoin name; it confuses plugin.
12025 2012-08-11 Uros Bizjak <ubizjak@gmail.com>
12027 * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Shift DECL_UID
12028 index in the va_list_vars bitmap by num_ssa_names.
12030 2012-08-11 Uros Bizjak <ubizjak@gmail.com>
12032 * config/i386/sse.md (xop integer multiply/add insns): Use
12033 register_operand for operand 3 predicate.
12034 (xop_phadd<u>bq): Fix vec_select selectors.
12036 2012-08-11 Martin Jambor <mjambor@suse.cz>
12039 * ipa-inline.h (condition): New fields offset, agg_contents and by_ref.
12040 * ipa-inline-analysis.c (agg_position_info): New type.
12041 (add_condition): New parameter aggpos, also store agg_contents, by_ref
12043 (dump_condition): Also dump aggregate conditions.
12044 (evaluate_conditions_for_known_args): Also handle aggregate
12045 conditions. New parameter known_aggs.
12046 (evaluate_properties_for_edge): Gather known aggregate contents.
12047 (inline_node_duplication_hook): Pass NULL known_aggs to
12048 evaluate_conditions_for_known_args.
12049 (unmodified_parm): Split into unmodified_parm and unmodified_parm_1.
12050 (unmodified_parm_or_parm_agg_item): New function.
12051 (set_cond_stmt_execution_predicate): Handle values passed in
12053 (set_switch_stmt_execution_predicate): Likewise.
12054 (will_be_nonconstant_predicate): Likewise.
12055 (estimate_edge_devirt_benefit): Pass new parameter known_aggs to
12056 ipa_get_indirect_edge_target.
12057 (estimate_calls_size_and_time): New parameter known_aggs, pass it
12058 recrsively to itself and to estimate_edge_devirt_benefit.
12059 (estimate_node_size_and_time): New vector known_aggs, pass it o
12060 functions which need it.
12061 (remap_predicate): New parameter offset_map, use it to remap aggregate
12063 (remap_edge_summaries): New parameter offset_map, pass it recursively
12064 to itself and to remap_predicate.
12065 (inline_merge_summary): Also create and populate vector offset_map.
12066 (do_estimate_edge_time): New vector of known aggregate contents,
12067 passed to functions which need it.
12068 (inline_read_section): Stream new fields of condition.
12069 (inline_write_summary): Likewise.
12070 * ipa-cp.c (ipa_get_indirect_edge_target): Also examine the aggregate
12071 contents. Let all local callers pass NULL for known_aggs.
12073 2012-08-11 Jan Hubicka <jh@suse.cz>
12075 * lto-cgraph.c (output_cgraph): Rename to ...
12076 (output_symtab): ... this one. Update for LTO_section_symtab_nodes.
12077 (input_cgraph): Rename to ...
12078 (input_symtab): ... this one. Update for LTO_section_symtab_nodes.
12079 * lto-streamer-out.c (create_output_block): Do not set
12081 (produce_asm): Likewise.
12082 (lto_output_toplevel_asms): Likewise.
12083 (produce_asm_for_decls): Likewise.
12084 (lto_output): Use output_symtab.
12085 * lto-section-in.c (lto_section_name): Update.
12086 * lto-section-out.c (lto_destroy_simple_output_block): Remove
12088 * lto-streamer.h (enum lto_section_type): Remove LTO_section_varpool;
12089 rename LTO_section_cgraph to LTO_section_symtab_nodes.
12090 (struct lto_header): Remove section_type.
12092 2012-08-11 Jan Hubicka <jh@suse.cz>
12094 * cgraph.h (vector types for symtab_node): Add.
12095 * ipa-reference.c (ipa_reference_write_optimization_summary): Update
12096 for new symtab encoder.
12097 (ipa_reference_read_optimization_summary): Likewise.
12098 * lto-cgraph.c (output_varpool): Remove.
12099 (input_cgraph_opt_summary): Take symtab nodes vector as argument.
12100 (LTO_cgraph_tags): Rename to ...
12101 (LTO_symtab_tags): ... this one; add LTO_symtab_variable.
12102 (lto_cgraph_encoder_new): Rename to ...
12103 (lto_symtab_encoder_new): ... this on.
12104 (lto_cgraph_encoder_encode): Rename to ...
12105 (lto_symtab_encoder_encode): ... this one.
12106 (lto_cgraph_encoder_delete): Rename to ...
12107 (lto_symtab_encoder_delete): ... this one.
12108 (lto_cgraph_encoder_deref): Rename to ...
12109 (lto_symtab_encoder_deref): ... this one.
12110 (lto_cgraph_encoder_encode_body_p): Rename to ...
12111 (lto_symtab_encoder_encode_body_p): ... this one.
12112 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
12113 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
12114 lto_varpool_encoder_deref): Remove.
12115 (lto_varpool_encoder_encode_initializer_p): Rename to ...
12116 (lto_symtab_encoder_encode_initializer_p): ... this one.
12117 (lto_set_varpool_encoder_encode_initializer): Rename to ...
12118 (lto_set_symtab_encoder_encode_initializer): ... this one.
12119 (lto_output_edge): Update.
12120 (lto_output_node): Update.
12121 (lto_output_varpool_node): Update; stream out LTO_symtab_variable tag.
12122 (lto_output_ref): Drop varpool_encoder; update.
12123 (add_node_to): Update.
12124 (add_references): Update.
12125 (output_outgoing_cgraph_edges): Update.
12126 (output_refs): Update.
12127 (compute_ltrans_boundary): Update.
12128 (output_cgraph): Update; output varpools too.
12129 (input_overwrite_node): Update.
12130 (output_varpool): Remove.
12131 (input_node): Update.
12132 (input_ref): Update.
12133 (input_edge): Update.
12134 (input_cgraph_1): Update; input varpool too; unify fixup code.
12135 (input_varpool_1): Remove.
12136 (input_refs): Update.
12137 (input_cgraph): Update.
12138 (output_node_opt_summary): Update.
12139 (input_cgraph_opt_section): Update.
12140 (input_cgraph_opt_summary): Update.
12141 * ipa-pure-const.c (pure_const_write_summary): Update.
12142 (pure_const_read_summary): Update.
12143 * lto-streamer-out.c (lto_write_tree): Update.
12144 (lto_output): Likewise.
12145 (produce_symtab): Update.
12146 (produce_asm_for_decls): Update.
12147 * ipa-inline-analysis.c (inline_read_section): Update.
12148 (inline_write_summary): Update.
12149 * ipa-prop.c (ipa_write_node_info): Update.
12150 (ipa_prop_read_section): Update.
12151 * lto-streamer.h (lto_cgraph_encoder_d): Rename to ...
12152 (lto_symtab_encoder_d): ... this one; add initializer.
12153 (lto_cgraph_encoder_t): Rename to ...
12154 (lto_symtab_encoder_t): ... this one.
12155 (lto_cgraph_encoder_size): Rename to ...
12156 (lto_symtab_encoder_size): ... this one.
12157 (lto_varpool_encoder_d): ... remove.
12158 (lto_varpool_encoder_t): Remove.
12159 (lto_out_decl_state): Remove cgraph_node_encoder, varpool_node_encoder
12160 add symtab_node_encoder.
12161 (lto_file_decl_data): Likewise.
12162 (lto_cgraph_encoder_deref, lto_cgraph_encoder_lookup,
12163 lto_cgraph_encoder_new, lto_cgraph_encoder_encode,
12164 lto_cgraph_encoder_delete, lto_cgraph_encoder_encode_body_p,
12165 lto_varpool_encoder_encode_body_p, lto_varpool_encoder_deref,
12166 lto_varpool_encoder_lookup, lto_varpool_encoder_new,
12167 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
12168 lto_varpool_encoder_encode_initializer_p): Remove.
12169 (lto_symtab_encoder_deref, lto_symtab_encoder_lookup,
12170 lto_symtab_encoder_t, lto_symtab_encoder_encode,
12171 lto_symtab_encoder_delete, lto_symtab_encoder_encode_body_p,
12172 lto_symtab_encoder_encode_initializer_p): New.
12174 2012-08-11 Uros Bizjak <ubizjak@gmail.com>
12176 * config/i386/i386.md (isa): Add fma and fma4.
12177 (enabled): Handle fma and fma4.
12178 * config/i386/sse.md (*fma_fmadd_<mode>): Merge *fma4_fmadd_<mode>.
12179 (*fma_fmsub_<mode>): Merge *fma4_fmsub_<mode>.
12180 (*fma_fnmadd_<mode>): Merge *fma4_fnmadd_<mode>.
12181 (*fma_fnmsub_<mode>): Merge *fma4_fnmsub_<mode>.
12182 (*fma_fmaddsub_<mode>): Merge *fma4_fmaddsub_<mode>.
12183 (*fma_fmsubadd_<mode>): Merge *fma4_fmsubadd_<mode>.
12185 2012-08-10 Uros Bizjak <ubizjak@gmail.com>
12187 * config/i386/sse.md (*fma_fmadd_<mode>, *fma_fmsub_<mode>,
12188 *fma_fnmadd_<mode>, *fma_fnmsub_<mode>, *fma_fmaddsub_<mode>,
12189 *fma_fmsubadd_<mode>): Move FMA3 insn patterns before FMA4 patterns.
12191 2012-08-10 Uros Bizjak <ubizjak@gmail.com>
12193 * config/i386/i386.md (simple LEA peephole2s): Add zero-extend
12194 variants of PLUS and MULT simple LEA patterns. Disable PLUS
12195 patterns for TARGET_OPT_AGU.
12197 2012-08-10 Richard Guenther <rguenther@suse.de>
12199 * Makefile.in (OBJS): Remove matrix-reorg.o.
12200 (matrix-reorg.o): Remove dependence rule.
12201 (GTFILES): Remove matrix-reorg.c.
12202 * matrix-reorg.c: Remove.
12203 * passes.c (init_optimization_passes): Do not schedule
12204 pass_ipa_matrix_reorg.
12205 * tree-pass.h (pass_ipa_matrix_reorg): Remove.
12206 * common.opt (fipa-matrix-reorg): Stub out.
12207 * doc/invoke.texi (fipa-matrix-reorg): Remove documentation.
12209 2012-08-10 Richard Guenther <rguenther@suse.de>
12211 PR middle-end/54219
12212 * fold-const.c (fold_ternary_loc): Do not reverse the mask
12213 when canonicalizing it when folding VEC_PERM_EXPR.
12215 2012-08-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12217 PR middle-end/54211
12218 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
12219 Use cand_type to determine whether pointer arithmetic will be generated.
12221 2012-08-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12223 * doc/sourcebuild.texi: Document long_neq_int effective target.
12225 2012-08-10 Richard Guenther <rguenther@suse.de>
12227 PR tree-optimization/54109
12228 * tree-ssa-forwprop.c
12229 (forward_propagate_addr_into_variable_array_index): Remove.
12230 (forward_propagate_addr_expr_1): Adjust.
12232 2012-08-10 Richard Guenther <rguenther@suse.de>
12234 * tree-cfg.c (dump_function_to_file): Make sure to dump
12235 anonymous SSA names when there are no local decls.
12237 2012-08-10 Steven Bosscher <steven@gcc.gnu.org>
12239 * tree-ssa-pre.c (alloc_expression_id): Fix use of VEC_reserve.
12240 * tree-into-ssa.c (get_ssa_name_ann): Likewise.
12241 (mark_phi_for_rewrite): Likewise.
12242 (compute_global_livein): Use VEC_reserve outside the innermost
12243 loop and VEC_quick_push instead of VEC_safe_push in that loop.
12244 (update_ssa): Re-organize to avoid unnecessary sbitmap_zero'ing
12245 of new_ssa_names and old_ssa_names. Allocate phis_to_rewrite to
12246 the correct initial size.
12248 2012-08-10 Richard Guenther <rguenther@suse.de>
12250 * tree-ssa-pre.c (pretemp, storetemp, prephitemp): Remove.
12251 (need_creation): Remove.
12252 (get_representative_for): Use anonymous named SSA names.
12253 (create_expression_by_pieces): Likewise.
12254 (insert_into_preds_of_block): Likewise.
12255 (init_pre): Do not init removed vars.
12256 (fini_pre): Do not free need_creation.
12257 * tree-ssa-forwprop.c (simplify_bitwise_binary): Use anonymous
12259 * tree-ssa-loop-manip.c (create_iv): Likewise.
12260 * value-prof.c (gimple_divmod_fixed_value): Likewise.
12261 (gimple_mod_pow2): Likewise.
12262 (gimple_mod_subtract): Likewise.
12263 (gimple_ic): Likewise.
12264 (gimple_stringop_fixed_value): Likewise.
12265 * tree-ssa-phiopt.c (condstoretemp): Remove.
12266 (tree_ssa_phiopt_worker): Use anonymous named SSA names.
12267 (conditional_replacement): Likewise.
12268 (abs_replacement): Likewise.
12269 (cond_store_replacement): Likewise.
12270 (cond_if_else_store_replacement_1): Likewise.
12271 * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
12272 (rewrite_bittest): Likewise.
12273 * tree-ssa-reassoc.c (build_and_add_sum): Get type from callers
12274 and build anonymous SSA names.
12275 (undistribute_ops_list): Adjust.
12276 (eliminate_redundant_comparison): Use anonymous SSA names.
12277 (rewrite_expr_tree_parallel): Likewise.
12278 (get_reassoc_pow_ssa_name): Remove.
12279 (attempt_builtin_powi): Adjust.
12280 (reassociate_bb): Likewise.
12281 * tree-ssa-strlen.c (get_string_length): Use anonymous SSA names.
12282 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
12283 (build_arrays): Likewise.
12284 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
12285 (create_tailcall_accumulator): Likewise.
12286 * tree-vect-generic.c (expand_vector_divmod): Likewise.
12287 * tree-profile.c (gcov_type_tmp_var): Remove.
12288 (gimple_init_edge_profiler): Do not initialize it and use anonymous
12290 (gimple_gen_ic_profiler): Likewise.
12291 (tree_profiling): Adjust.
12292 * tree-sra.c (build_ref_for_offset): Use anonymous SSA names.
12293 * tree-ssa-math-opts.c (execute_cse_sincos_1): Likewise.
12294 (powi_as_mults_1): Likewise.
12295 (powi_as_mults): Likewise.
12296 (build_and_insert_call): Adjust.
12297 (build_and_insert_binop): Likewise.
12298 (build_and_insert_ref): Likewise.
12299 (build_and_insert_cast): Likewise.
12300 (gimple_expand_builtin_pow): Likewise.
12301 (gimple_expand_builtin_cabs): Likewise.
12302 (execute_optimize_bswap): Use anonymous SSA names.
12303 (convert_mult_to_widen): Likewise.
12304 (convert_plusminus_to_widen): Likewise.
12305 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
12306 * tree-ssa-propagate.c (update_call_from_tree): Likewise.
12307 * tree-if-conv.c (ifc_temp_var): Likewise.
12308 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
12309 * tree-parloops.c (take_address_of): Likewise.
12310 * tree-vect-data-refs.c (vect_permute_store_chain): Likewise.
12311 (vect_permute_load_chain): Likewise.
12312 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
12313 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
12314 (vect_handle_widen_op_by_const): Likewise.
12315 (vect_operation_fits_smaller_type): Likewise.
12316 (vect_recog_over_widening_pattern): Likewise.
12317 * tree-vect-stmts.c (vect_init_vector): Likewise.
12318 * tree-vrp.c (simplify_truth_ops_using_ranges): Likewise.
12319 (simplify_float_conversion_using_ranges): Likewise.
12321 2012-08-10 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12323 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix
12324 target mask of __builtin_ia32_rdseed_di_step builtin.
12326 2012-08-10 Richard Guenther <rguenther@suse.de>
12328 PR tree-optimization/54027
12329 * tree-vrp.c (extract_range_from_binary_expr_1): Merge RSHIFT_EXPR
12330 and LSHIFT_EXPR handling, force -fwrapv for the multiplication used
12331 to handle LSHIFT_EXPR with a constant.
12333 2012-08-10 Richard Guenther <rguenther@suse.de>
12335 * tree.h (SSA_NAME_VAR): Return NULL_TREE if an IDENTIFIER_NODE
12336 is recorded as var.
12337 (SSA_NAME_IDENTIFIER): Return the IDENTIFIER_NODE of the SSA_NAME
12338 or its SSA_NAME_VAR.
12339 (SET_SSA_NAME_VAR_OR_IDENTIFIER): New setter.
12340 * tree-ssanames.c (make_ssa_name_fn): Handle creating anonymous
12341 SSA names by passing a type instead of a variable decl.
12342 (release_ssa_name): Use SET_SSA_NAME_VAR_OR_IDENTIFIER.
12343 (copy_ssa_name_fn): Handle anonymous SSA names.
12344 (replace_ssa_name_symbol): Use SET_SSA_NAME_VAR_OR_IDENTIFIER.
12345 * tree-flow-inline.h (make_temp_ssa_name): New inline function.
12346 * tree-pretty-print.c (dump_generic_node): Use SSA_NAME_IDENTIFIER,
12347 dump SSA names without a name as <anon>.
12348 * cfgexpand.c (expand_used_vars): Assing anonymous SSA names we are
12349 going to expand a decl.
12350 (gimple_expand_cfg): Assign all SSA names of a partition the
12351 decl we created for its leader.
12352 * tree-ssa.c (target_for_debug_bind): Handle SSA_NAMEs.
12353 (verify_ssa_name): Handle anonymous SSA names.
12354 (verify_def): Likewise.
12355 * tree-predcom.c (eliminate_temp_copies): Likewise.
12356 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
12357 * tree-ssa-live.c (var_map_base_init): Compute conflicts for
12358 anonymous SSA names with the same type.
12359 (mark_all_vars_used_1): Handle anonymous SSA names.
12360 (verify_live_on_entry): Likewise.
12361 * tree-ssa-coalesce.c (abnormal_corrupt): Remove.
12362 (create_outofssa_var_map): Adjust with respect to conflicts we
12363 compute for anonymous SSA names. Do not restrict abnormal
12365 (coalesce_partitions): Do not restrict abnormal coalescing.
12366 Assert we only ever coalesce variables we computed conflicts for.
12367 * tree-ssa-ter.c (process_replaceable): Do not restrict TER
12368 of anonymous names.
12369 * expr.c (expand_expr_real_1): Handle anonymous SSA names
12370 expanded from IVOPTs by creating a raw REG here.
12371 * tree-cfg.c (replace_ssa_name): Handle anonymous SSA names.
12372 (dump_function_to_file): Dump anonymous SSA names alongside
12373 with their types in the variable list.
12374 (verify_gimple_return): Guard use of SSA_NAME_VAR.
12375 * tree-into-ssa.c (mark_for_renaming): Handle a NULL symbol.
12376 (rewrite_into_ssa): Make SSA names anonymous.
12377 * tree-ssa-structalias.c (alias_get_name): Rewrite.
12378 * tree-ssa-uninit.c (ssa_undefined_value_p): Handle anonymous
12380 (warn_uninitialized_phi): Likewise.
12381 * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Defer expanding
12382 anonymous SSA names to the expander.
12383 (determine_iv_cost): Anonymous SSA names are artificial.
12384 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
12385 Handle anonymous SSA names.
12386 * lto-streamer-out.c (output_ssa_names): Stream SSA_NAME_VAR
12387 or if NULL, the type of the SSA name.
12388 * tree-inline.c (remap_ssa_name): Handle anonymous SSA names,
12389 remap names as anonymous where appropriate.
12390 (insert_init_stmt): Pass SSA names down to insert_init_debug_bind.
12391 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Adjust
12392 according to what we create conflicts for in out-of-SSA
12394 * tree-parloops.c (separate_decls_in_region_name): Handle
12395 anonymous SSA names.
12396 (add_field_for_name): Likewise.
12397 * tree.c (get_name): Handle SSA names.
12398 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Defer to get_name for
12400 * tree-vect-loop-manip.c (adjust_debug_stmts): Use
12402 * tree-sra.c (create_access_replacement): Give up generating
12403 a DECL_DEBUG_EXPR for SSA names in the memory reference.
12404 (replace_removed_params_ssa_names): Guard use of SSA_NAME_VAR.
12405 * tree-complex.c (get_component_ssa_name): Handle anonymous
12407 (set_component_ssa_name): Likewise.
12408 * tree-ssa-sccvn.c (visit_reference_op_load): Likewise.
12409 * tree-object-size.c (collect_object_sizes_for): Handle
12410 uninitialized SSA names properly.
12411 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Guard use of
12413 * ipa-split.c (test_nonssa_use): Likewise.
12414 (consider_split): Likewise.
12415 (mark_nonssa_use): Likewise.
12417 2012-08-09 Jan Hubicka <jh@suse.cz>
12419 PR middle-end/54146
12420 * ipa-inline-transform.c (inline_call): Add UPDATE_OVERALL_SUMMARY
12421 parameter; honnor it.
12422 * ipa-inline.c (recursive_inlining): Update call
12424 (inline_small_functions): Likewise.
12425 (ipa_inline): Likewise.
12426 (inline_always_inline_functions): Likewise.
12427 (early_inline_small_functions): Likewise.
12428 (flatten_function): Do separate update of summary info.
12429 * ipa-inline.h (inline_update_overall_summary): Declare.
12430 (inline_call): Update.
12431 * ipa-inline-analysis.c (inline_merge_summary): Break out
12432 updating code to ...
12433 (inline_update_overall_summary): Likewise.
12435 2012-08-09 Richard Henderson <rth@redhat.com>
12437 * config/s390/s390.c (s390_expand_insv): Use VOIDmode in gen_rtx_SET.
12439 * config/s390/s390.c (s390_expand_cs_hqi): Copy val to a temp before
12440 performing the compare for the restart loop.
12442 2012-08-09 DJ Delorie <dj@redhat.com>
12444 * config/rl78/rl78.c (rl78_alloc_physical_registers): Check for
12445 SET before extracting SET_SRC.
12446 (rl78_remove_unused_sets): Check for REG before extractnig REGNO.
12448 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
12451 * config/sh/sh-protos (shift_insns_rtx): Delete.
12452 (sh_ashlsi_clobbers_t_reg_p): Add.
12453 * config/sh/sh.c (shift_insns, shift_amounts, ext_shift_insns,
12454 ext_shift_amounts): Merge arrays of ints to array of structs.
12455 Adapt usage of arrays throughout the file.
12456 (shift_insns_rtx): Delete unused function.
12457 (sh_ashlsi_clobbers_t_reg_p): New function.
12458 * config/sh/sh.md (ashlsi3): Emit ashlsi3_n_clobbers_t insn if the
12459 final shift sequence will clobber T_REG.
12460 (ashlsi3_n): Split only if the final shift sequence will not
12462 (ashlsi3_n_clobbers_t): New insn_and_split.
12464 2012-08-09 Steven Bosscher <steven@gcc.gnu.org>
12466 * calls.c (mem_overlaps_already_clobbered_arg_p): Use SBITMAP_SIZE
12467 instead of looking at sbitmap n_bits member directly.
12468 * gcse.c (hoist_code): Likewise.
12469 * sched-rgn.c (split_edges): Likewise.
12470 * tree-into-ssa.c (is_old_name, is_new_name, add_new_name_mapping,
12471 update_ssa): Likewise.
12473 2012-08-09 Uros Bizjak <ubizjak@gmail.com>
12475 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Return preferred
12476 single unit register class for classes that contain registers form
12478 (REG_CLASS_CONTENTS): Add missing "frame" register to FLOAT_INT_REGS,
12479 INT_SSE_REGS and FLOAT_INT_SSE_REGS register classes.
12481 2012-08-09 Martin Jambor <mjambor@suse.cz>
12483 * cgraph.h (cgraph_indirect_call_info): Field anc_offse renamd to
12484 offset, updated all users. New field agg_contents.
12485 * ipa-prop.h (jump_func_type): Removed IPA_JF_CONST_MEMBER_PTR.
12486 (ipa_pass_through_data): New field agg_preserved.
12487 (ipa_ancestor_jf_data): Likewise.
12488 (ipa_member_ptr_cst): Removed.
12489 (ipa_agg_jf_item): New type.
12490 (ipa_agg_jump_function): Likewise.
12491 (ipa_jump_func): New field agg. Removed field member_cst.
12492 (ipa_get_jf_pass_through_agg_preserved): New function.
12493 (ipa_get_jf_ancestor_agg_preserved): Likewise.
12494 (ipa_get_jf_member_ptr_pfn): Removed.
12495 (ipa_find_agg_cst_for_param): Declare.
12496 (ipa_load_from_parm_agg): Likewise.
12497 * ipa-prop.c (param_analysis_info): Fields modified and
12498 visited_statements rename to parm_modified and parm_visited_statements
12499 respectively, added fields ref_modified, ref_visited_statements,
12500 pt_modified and pt_visited_statements.
12501 (ipa_print_node_jump_functions_for_edge): Do not dump const member
12502 functions. Dump agg_preserved flags and aggregate jump functions.
12503 (ipa_set_jf_simple_pass_through): Set also agg_preserved.
12504 (ipa_set_ancestor_jf): Likewise.
12505 (ipa_set_jf_arith_pass_through): Clear agg_preserved.
12506 (ipa_set_jf_member_ptr_cst): Removed.
12507 (is_parm_modified_before_stmt): Logic reversed, renamed to
12508 parm_preserved_before_stmt_p. Cache visited bitmap only for
12509 naked DECL parameters. All callers updated.
12510 (load_from_unmodified_param): Allow NULL parms_ainfo.
12511 (parm_ref_data_preserved_p): New function.
12512 (parm_ref_data_pass_through_p): Likewise.
12513 (ipa_load_from_parm_agg_1): Likewise.
12514 (ipa_load_from_parm_agg): Likewise.
12515 (compute_complex_assign_jump_func): Check if aggregate contents are
12517 (compute_complex_ancestor_jump_func): Likewise.
12518 (compute_scalar_jump_functions): Removed.
12519 (type_like_member_ptr_p): Also check field position are known and sane.
12520 (compute_pass_through_member_ptrs): Removed.
12521 (determine_cst_member_ptr): Likewise.
12522 (ipa_known_agg_contents_list): New type.
12523 (determine_known_aggregate_parts): New function.
12524 (compute_cst_member_ptr_arguments): Removed.
12525 (ipa_compute_jump_functions_for_edge): Compute all kinds of jump
12526 functions (scalar, aggregate and member pointer).
12527 (ipa_get_member_ptr_load_param): Incorporate into
12528 ipa_get_stmt_member_ptr_load_param, also pass back an offset.
12529 (ipa_note_param_call): Clear agg_contents.
12530 (ipa_analyze_indirect_call_uses): Also look for simple pointers loaded
12531 from aggregates. In such cases, store offset of the called field.
12532 (ipa_analyze_node): Initialize new fields of param_analysis_info.
12533 (update_jump_functions_after_inlining): Handle aggregate contents.
12534 (ipa_find_agg_cst_for_param): New function.
12535 (try_make_edge_direct_simple_call): Handle called aggregate values.
12536 (update_indirect_edges_after_inlining): Make sure aggregate preserving
12537 jump functions comply with type compatibility requirements.
12538 (ipa_edge_duplication_hook): Copy also aggregate jump functions.
12539 (ipa_write_jump_function): Stream agg_preserved flags and aggregate
12540 jump functions. Do not stream member pointer constant jump functions.
12541 (ipa_read_jump_function): Likewise.
12542 (ipa_write_indirect_edge_info): Stream new cgraph_indirect_call_info
12544 (ipa_read_indirect_edge_info): Likewise.
12546 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
12549 * config/sh/predicates.md (mem_index_disp_operand): New predicate.
12550 * config/sh/sh.md (*movsi_index_disp): Rewrite insns to use the new
12551 mem_index_disp_operand predicate.
12553 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
12556 * config/sh/sh.md: Add negc extu sequence peephole.
12557 (movrt, movnegt, movrt_negc, nott): Use t_reg_operand predicate.
12558 (*movrt_negc): New insn.
12559 * config/sh/sync.md (atomic_test_and_set): Pass gen_t_reg_rtx to
12561 * config/sh/sh.c (expand_cbranchsi4, sh_emit_scc_to_t,
12562 sh_emit_compare_and_branch, sh_emit_compare_and_set): Use
12564 (sh_expand_t_scc): Pass gen_t_reg_rtx to gen_movnegt.
12566 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
12569 * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg):
12570 Use arith_reg_operand predicate instead of register_operand.
12571 * config/sh/predicates.md (movsrc_no_disp_mem_operand): Accept
12572 only mem, simplify.
12574 2012-08-09 Uros Bizjak <ubizjak@gmail.com>
12576 * config/alpha/alpha.c (alpha_pad_noreturn): Rename to ...
12577 (alpha_pad_function_end): ... this. Also insert NOP between
12578 sibling call and GP load.
12579 (alpha_reorg): Update call to alpha_pad_function_end. Expand comment.
12581 2012-08-09 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12583 * config/i386/adxintrin.h: Remove guarding __ADX__ check.
12584 * config/i386/x86intrin.h: Likewise.
12585 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove
12586 OPTION_MASK_ISA_ADX from needed options for
12587 __builtin_ia32_addcarryx_u32 and __builtin_ia32_addcarryx_u64.
12588 (ix86_expand_builtin): Use add<mode>3_carry in expanding of
12589 IX86_BUILTIN_ADDCARRYX32 and IX86_BUILTIN_ADDCARRYX64.
12591 2012-08-09 Andrey Belevantsev <abel@ispras.ru>
12593 PR rtl-optimization/53701
12594 * sel-sched.c (vinsn_vec_has_expr_p): Clarify function comment.
12595 Process not only expr's vinsns but all old vinsns from expr's
12596 history of changes.
12597 (update_and_record_unavailable_insns): Clarify comment.
12599 2012-08-09 Bernd Schmidt <bernds@codesourcery.com>
12601 * reload.c (find_valid_class_1): New static function.
12602 (push_reload): Use it when reloading a SYMBOL_REG as the inner
12603 of a subreg. Keep better track of needed classes for the
12604 secondary memory case.
12605 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Limit INT_SSE_REGS to
12607 * reload1.c (replaced_subreg): New static function.
12608 (gen_reload): Use it when deciding whether to use secondary
12611 2012-08-09 Richard Guenther <rguenther@suse.de>
12613 * tree.h (SSA_VAR_P): Simplify.
12614 * tree-ssanames.c (make_ssa_name_fn): Strengthen assert.
12615 * fold-const.c (fold_comparison): Check for default def first
12616 before checking for PARM_DECL.
12617 * tree-complex.c (get_component_ssa_name): Likewise.
12618 * tree-inline.c (remap_ssa_name): Likewise.
12619 * tree-ssa-loop-ivopts.c (parm_decl_cost): Likewise.
12620 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
12621 (find_what_p_points_to): Likewise.
12622 * tree-ssa-operands.c (add_stmt_operand): Simplify.
12624 2012-08-08 Joseph Myers <joseph@codesourcery.com>
12626 * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
12627 IOR to a constant if one operand has side effects.
12629 2012-08-08 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12631 * builtins.c (expand_builtin_atomic_compare_exchange): Pass old
12632 value operand as MEM to expand_atomic_compare_and_swap.
12634 * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Accept
12635 nonimmediate_operand for old value; generate load and store if
12637 * config/s390/s390.c (s390_expand_cs_hqi): Accept any operand
12640 2012-08-08 Steven Bosscher <steven@gcc.gnu.org>
12642 PR middle-end/54146
12643 * gimpify.c (gimplify_body): Only verify_gimple_in_seq with
12645 * tree-ssa-loop-manip.c (add_exit_phis_var): Assert that var is
12646 a gimple_reg if checking is enabled.
12647 (find_uses_to_rename_stmt): Only look at non-virtual USE operands.
12648 * tree-into-ssa (compute_global_livein): Change the worklist
12649 type from an array to a VEC.
12651 2012-08-08 Richard Guenther <rguenther@suse.de>
12653 * tree-ssa-operands.h (virtual_operand_p): Declare.
12654 * tree-ssa-operands.c (virtual_operand_p): New predicate.
12655 * gimple.c (is_gimple_reg): Use virtual_operand_p.
12656 * tree-into-ssa.c (prepare_block_for_update): Likewise.
12657 * tree-vect-loop-manip.c (adjust_debug_stmts): Likewise.
12659 2012-08-08 Richard Guenther <rguenther@suse.de>
12661 * tree-call-cdce.c (check_pow): Simplify.
12662 (gen_conditions_for_pow_int_base): Likewise.
12663 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not handle
12664 virtual operands here.
12665 * tree-ssa-operands.c (get_name_decl): Remove unused function.
12666 * gimplify.c (gimple_regimplify_operands): Remove dead code.
12667 * tree-vrp.c (get_value_range): Move SSA_NAME_VAR access.
12668 * tree-parloops.c (create_phi_for_local_result): Use copy_ssa_name.
12669 * value-prof.c (gimple_ic): Use duplicate_ssa_name.
12670 (gimple_stringop_fixed_value): Likewise.
12671 * tree.c (needs_to_live_in_memory): Remove SSA name handling.
12672 * tree-stdarg.c (find_va_list_reference): Store SSA_NAME_VERSIONs
12673 in the bitmap alongside shifted DECL_UIDs.
12674 (va_list_counter_struct_op): Likewise.
12675 (va_list_ptr_read): Likewise.
12676 (va_list_ptr_write): Likewise.
12677 (check_va_list_escapes): Likewise.
12678 (check_all_va_list_escapes): Likewise.
12679 (execute_optimize_stdarg): Likewise.
12680 * tree-outof-ssa.c (insert_backedge_copies): Use copy_ssa_name.
12682 2012-08-08 Richard Sandiford <rdsandiford@googlemail.com>
12683 H.J. Lu <hongjiu.lu@intel.com>
12685 PR rtl-optimization/54157
12686 * combine.c (gen_lowpart_for_combine): Don't return identity
12687 for CONST or symbolic reference.
12689 2012-08-08 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12691 * common/config/i386/i386-common.c (OPTION_MASK_ISA_ADX_SET): New.
12692 (OPTION_MASK_ISA_ADX_UNSET): Likewise.
12693 (ix86_handle_option): Handle madx option.
12694 * config.gcc (i[34567]86-*-*): Add adxintrin.h.
12695 (x86_64-*-*): Likewise.
12696 * config/i386/adxintrin.h: New header.
12697 * config/i386/driver-i386.c (host_detect_local_cpu): Detect ADCX/ADOX
12699 * config/i386/i386-builtin-types.def
12700 (UCHAR_FTYPE_UCHAR_UINT_UINT_PUNSIGNED): New function type.
12701 (UCHAR_FTYPE_UCHAR_ULONGLONG_ULONGLONG_PULONGLONG): Likewise.
12702 * config/i386/i386-c.c: Define __ADX__ if needed.
12703 * config/i386/i386.c (ix86_target_string): Define -madx option.
12705 (ix86_option_override_internal): Handle new option.
12706 (ix86_valid_target_attribute_inner_p): Add OPT_madx.
12707 (ix86_builtins): Add IX86_BUILTIN_ADDCARRYX32,
12708 IX86_BUILTIN_ADDCARRYX64.
12709 (ix86_init_mmx_sse_builtins): Define corresponding built-ins.
12710 (ix86_expand_builtin): Handle these built-ins.
12711 (ix86_expand_args_builtin): Handle new function types.
12712 * config/i386/i386.h (TARGET_ADX): New.
12713 * config/i386/i386.md (adcx<mode>3): New define_insn.
12714 * config/i386/i386.opt (madx): New.
12715 * config/i386/x86intrin.h: Include adxintrin.h.
12717 2012-08-08 Nick Clifton <nickc@redhat.com>
12719 * config/rl78/rl78.c: Include tree-pass.h.
12721 2012-08-08 Steven Bosscher <steven@gcc.gnu.org>
12723 PR middle-end/54146
12724 * ira.c (init_live_subregs): Take live_subregs_used as a bitmap.
12725 (build_insn_chain): Make live_subregs_used a bitmap.
12726 Use SBITMAP_SIZE to ignore the paradoxical bytes of subregs.
12727 Use sbitmap_free to free the live_subreg sbitmaps.
12729 PR middle-end/54146
12730 * ifcvt.c: Include pointer-set.h.
12731 (cond_move_process_if_block): Change type of then_regs and
12732 else_regs from alloca'd array to pointer_sets.
12733 (check_cond_move_block): Update for this change.
12734 (cond_move_convert_if_block): Likewise.
12735 * Makefile.in: Fix dependencies for ifcvt.o.
12737 2012-08-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12739 * gimple-ssa-strength-reduction.c (struct incr_info_d): New struct.
12740 (incr_vec): New static var.
12741 (incr_vec_len): Likewise.
12742 (address_arithmetic_p): Likewise.
12743 (stmt_cost): Remove dead assignment.
12744 (dump_incr_vec): New function.
12745 (cand_abs_increment): Likewise.
12746 (lazy_create_slsr_reg): Likewise.
12747 (incr_vec_index): Likewise.
12748 (count_candidates): Likewise.
12749 (record_increment): Likewise.
12750 (record_increments): Likewise.
12751 (unreplaced_cand_in_tree): Likewise.
12752 (optimize_cands_for_speed_p): Likewise.
12753 (lowest_cost_path): Likewise.
12754 (total_savings): Likewise.
12755 (analyze_increments): Likewise.
12756 (ncd_for_two_cands): Likewise.
12757 (nearest_common_dominator_for_cands): Likewise.
12758 (profitable_increment_p): Likewise.
12759 (insert_initializers): Likewise.
12760 (introduce_cast_before_cand): Likewise.
12761 (replace_rhs_if_not_dup): Likewise.
12762 (replace_one_candidate): Likewise.
12763 (replace_profitable_candidates): Likewise.
12764 (analyze_candidates_and_replace): Handle candidates with SSA-name
12767 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
12769 * cfg.c (debug_bb): Do not set TDF_BLOCKS.
12770 * cfghooks.c (dump_bb): Honor ~TDF_BLOCKS.
12771 * pretty-print.c (pp_base_flush): Do not add a newline, and do not
12772 clear pp_needs_newline.
12773 * pretty-print.h (pp_newline_and_flush): New macro with the behavior
12774 of pp_base_flush before the above change.
12775 * langhooks.c (lhd_print_error_function): Use pp_newline_and_flush
12776 instead of pp_flush.
12777 * diagnostic.c (diagnostic_finish): Likewise.
12778 (diagnostic_report_diagnostic): Likewise.
12779 (verbatim): Likewise.
12780 (error_recursion): Likewise.
12781 * tree-pretty-print.c (print_generic_stmt): Likewise.
12782 (print_generic_stmt_indented): LIkewise.
12783 * gimple-pretty-print.c (print_gimple_stmt): Likewise.
12784 (print_gimple_seq): Likewise.
12785 (gimple_dump_bb_buff): Likewise.
12787 2012-08-07 Uros Bizjak <ubizjak@gmail.com>
12790 * var-tracking.c (var_lowpart): Exit early for matched modes.
12792 2012-08-07 Richard Henderson <rth@redhat.com>
12794 * config/s390/s390.c (s390_emit_compare_and_swap): Update for
12795 atomic_compare_and_swapsi_internal name change.
12796 (s390_expand_insv): Try RISBG last, not requiring operands in
12797 registers but forcing them there. Try a limited form of ICM.
12798 (s390_two_part_insv): New.
12799 (s390_expand_cs_hqi): Use it. Update for atomic optabs.
12800 * config/s390/s390.md (UNSPEC_MOVA): New.
12801 (TDSI): Remove mode iterator.
12802 (DGPR, DINT, TDI): New mode iterators.
12803 (td): New mode attribute.
12804 (mem_signal_fence): New.
12805 (mem_thread_fence): Rename from memory_barrier; update for model arg.
12806 (mem_thread_fence_1): Rename from *memory_barrier.
12807 (atomic_load<DINT>, atomic_store<DINT>): New expanders.
12808 (atomic_loaddi_1, atomic_loadti_1): New.
12809 (atomic_storedi_1, atomic_storeti_1): New.
12810 (sync_compare_and_swap<TDSI>, sync_compare_and_swap<HQI>): Remove.
12811 (atomic_compare_and_swap<DGPR>, atomic_compare_and_swap<HQI>): New.
12812 (atomic_compare_and_swap<DGPR>_internal): New.
12813 (*sync_compare_and_swap<DW>, *sync_compare_and_swap<GPR>): Remove.
12814 (*atomic_compare_and_swap<TDI>_1): New.
12815 (*atomic_compare_and_swapdi_2, *atomic_compare_and_swapsi_3): New.
12816 (sync_<ATOMIC_Z196><GPR>, sync_old_<ATOMIC_Z196><GPR>): Remove.
12817 (atomic_fetch_<ATOMIC_Z196><GPR>): New.
12818 (atomic_fetch_<ATOMC_Z196><GPR>_iaf): New.
12819 (sync_<ATOMIC><HQI>, sync_old_<ATOMIC><HQI>): Remove.
12820 (sync_new_<ATOMIC><HQI>): Remove.
12821 (atomic_<ATOMIC><HQI>, atomic_fetch_<ATOMIC><HQI>): New.
12822 (atomic_<ATOMIC>_fetch<HQI>): New.
12823 (sync_lock_test_and_set<HQI>): Remove.
12824 (atomic_exchange<HQI>): New.
12826 2012-08-07 Paul Brook <paul@codesourcery.com>
12827 Sandra Loosemore <sandra@codesourcery.com>
12829 * except.c (switch_to_exception_section): Place tables for
12830 DECL_ONE_ONLY functions in comdat groups.
12832 2012-08-07 Richard Guenther <rguenther@suse.de>
12834 * tree-flow.h (copy_ssa_name_fn): New function.
12835 (duplicate_ssa_name_fn): Likewise.
12836 * tree-flow-inline.h (copy_ssa_name): New function.
12837 (duplicate_ssa_name): Likewise.
12838 * tree-ssanames.c (copy_ssa_name_fn): New function.
12839 (duplicate_ssa_name): Rename to ...
12840 (duplicate_ssa_name_fn): ... this and adjust.
12841 * tree-tailcall.c (update_accumulator_with_ops): Use copy_ssa_name.
12842 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
12844 (slpeel_update_phi_nodes_for_guard2): Likewise.
12845 (slpeel_tree_peel_loop_to_edge): Likewise.
12846 (vect_loop_versioning): Likewise.
12847 * tree-parloops.c (transform_to_exit_first_loop): Likewise.
12848 (create_parallel_loop): Likewise.
12849 * ipa-split.c (split_function): Likewise.
12850 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
12851 (vect_create_epilog_for_reduction): Likewise.
12852 * tree-vect-data-refs.c (bump_vector_ptr): Likewise.
12853 (vect_setup_realignment): Likewise.
12854 * tree-vect-stmts.c (vectorizable_load): Likewise.
12855 * tree-switch-conversion.c (build_one_array): Likewise.
12856 (gen_def_assigns): Likewise.
12857 * tree-cfg.c (gimple_make_forwarder_block): Likewise.
12858 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
12859 create_zero_dim_array with the SSA name.
12860 (rewrite_phi_out_of_ssa): Likewise.
12861 (rewrite_cross_bb_scalar_dependence): Likewise. Use copy_ssa_name.
12863 2012-08-07 Richard Guenther <rguenther@suse.de>
12865 * tree-dfa.c (set_ssa_default_def): Clear the SSA_NAME_DEFAULT_DEF
12866 bit of the old name when we clear the slot.
12867 * tree-ssa-live.c (remove_unused_locals): Release any default
12868 def associated with an unused var.
12869 * tree-ssa-copy.c (may_propagate_copy_into_asm): Always return true.
12871 2012-08-07 Richard Guenther <rguenther@suse.de>
12873 * tree-into-ssa.c (rewrite_stmt): Remove clobbers for variables
12874 we rewrite into SSA form.
12875 (rewrite_enter_block): Adjust.
12876 * gimple-iterator.c (gsi_replace): Also allow replacement with
12877 a stmt without a lhs.
12878 * tree-ssa-live.c (remove_unused_locals): Remove code handling
12879 clobbers of SSA names.
12880 * tree-nested.c (convert_local_reference_stmt): Remove clobbers
12881 for variables we access through the local chain.
12882 * tree-cfg.c (verify_gimple_assign_single): Verify clobbers
12883 clobber full decls only.
12885 2012-08-07 Richard Guenther <rguenther@suse.de>
12887 * gimple.h (gimple_phi_set_result): Adjust SSA_NAME_DEF_STMT.
12888 * tree-phinodes.c (make_phi_node): Allow a NULL var.
12889 * tree-into-ssa.c (insert_phi_nodes_for): Simplify.
12890 * tree-complex.c (update_phi_components): Likewise.
12891 * tree-ssa-loop-manip.c (create_iv): Likewise.
12892 (add_exit_phis_edge): Likewise.
12893 (split_loop_exit_edge): Likewise.
12894 (tree_transform_and_unroll_loop): Likewise.
12895 * value-prof.c (gimple_ic): Likewise.
12896 (gimple_stringop_fixed_value): Likewise.
12897 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
12898 * omp-low.c (expand_parallel_call): Likewise.
12899 (expand_omp_for_static_chunk): Likewise.
12900 (expand_omp_atomic_pipeline): Likewise.
12901 * tree-parloops.c (create_phi_for_local_result): Likewise.
12902 (transform_to_exit_first_loop): Likewise.
12903 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
12904 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
12905 * tree-predcom.c (initialize_root_vars): Likewise.
12906 (initialize_root_vars_lm): Likewise.
12907 * sese.c (sese_add_exit_phis_edge): Likewise.
12908 * gimple-streamer-in.c (input_phi): Likewise.
12909 * tree-inline.c (copy_phis_for_bb): Likewise.
12910 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
12911 * tree-cfg.c (gimple_make_forwarder_block): Likewise.
12912 (gimple_duplicate_bb): Likewise.
12914 2012-08-07 Nick Clifton <nickc@redhat.com>
12916 * config/mn10300/mn10300.c (mn10300_expand_prologue): Report
12917 stack usage if requested.
12919 2012-08-06 Cary Coutant <ccoutant@google.com>
12921 * cgraphunit.c (assemble_thunk): Add source line info.
12922 * final.c (final): Check for non-null cfg pointer.
12924 2012-08-06 Sandra Loosemore <sandra@codesourcery.com>
12925 Maxim Kuvyrkov <maxim@codesourcery.com>
12926 Julian Brown <julian@codesourcery.com>
12928 * config/mips/24k.md (r24k_unknown_store): Delete special handling
12930 (r24k_int_load, r24k_int_arith, r24k_int_mul3, r24k_int_mfhilo)
12931 (r24k_int_cop, r24k_int_multi)
12932 (r24kf2_1_fcvt_f2i, r24kf2_1_fxfer)
12933 (r24kf1_1_fcvt_f2i, r24kf1_1_fxfer): Use mips_store_data_bypass_p
12934 instead of store_data_bypass_p.
12935 * config/mips/74k.md (r74k_int_store): Delete special handling for
12937 (r74k_int_load, r74k_int_logical, r74k_int_arith, r74k_int_cmove):
12938 Use mips_store_data_bypass_p instead of store_data_bypass_p.
12940 2012-08-06 Marc Glisse <marc.glisse@inria.fr>
12942 PR tree-optimization/51938
12943 PR tree-optimization/52005
12944 * tree-ssa-ifcombine.c (ifcombine_ifandif): New parameters for
12945 inverted conditions.
12946 (ifcombine_iforif): Remove, merge code into ifcombine_ifandif.
12947 (tree_ssa_ifcombine_bb): Update calls to the above. Detect !a&&b
12948 and !a||b patterns.
12950 2012-08-06 Olivier Hainque <hainque@adacore.com>
12952 * tree-emutls.c (new_emutls_decl): When a var_section is requested by
12953 the target, attach the new decl to that, not to the template section.
12955 2012-08-06 Tom de Vries <tom@codesourcery.com>
12957 * tree-switch-conversion.c (emit_case_bit_tests): Generate MINUS_EXPR in
12960 2012-08-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12962 * doc/invoke.texi: Document AMD btver2.
12963 * doc/extend.texi: Document AMD btver1 and btver2.
12965 2012-08-04 Sandra Loosemore <sandra@codesourcery.com>
12966 Richard Sandiford <rdsandiford@googlemail.com>
12968 * config/mips/mips.c (mips_option_override): Check -fpic
12969 for compatibility with -mabicalls and ABI.
12971 2012-08-04 Catherine Moore <clm@codesourcery.com>
12972 Sandra Loosemore <sandra@codesourcery.com>
12974 * config/mips/xlr.md (ir_xlr_alu_clz): New insn_reservation.
12975 (ir_xlr_alu): Remove clz.
12976 * config/mips/mips-cpus.def (xlr): Set PTF_AVOID_BRANCHLIKELY.
12978 2012-08-04 Richard Earnshaw <rearnsha@arm.com>
12980 * arm.c (arm_gen_constant): Use SImode when preparing operands for
12983 2012-08-04 Uros Bizjak <ubizjak@gmail.com>
12985 * config/i386/i386.h (QI_REGNO_P): New define.
12986 (ANY_QI_REGNO_P): Ditto.
12987 (GENERAL_REGNO_P): Use IN_RANGE macro.
12988 (QI_REG_P): Use QI_REGNO_P.
12989 (ANY_QI_REG_P): Use GENERAL_REGNO_P and QI_REGNO_P.
12990 (HARD_REGNO_CALLER_SAVE_MODE): Use QI_REGNO_P.
12991 * config/i386/i386.c (ix86_hard_regno_mode_ok): Ditto.
12992 (x86_extended_QIreg_mentioned_p): Ditto. Also check if
12993 register is a general register.
12995 2012-08-03 Uros Bizjak <ubizjak@gmail.com>
12997 * config/i386/sync.md (*atomic_fetch_add_cmp<mode>): Use
12998 incdec_operand predicate to return INC or DEC insn mnemonic.
12999 Add %K operand modifier.
13000 (atomic_add<mode>): Use incdec_operand predicate to
13001 return INC or DEC insn mnemonic.
13002 (atomic_dec<mode>): Ditto.
13004 2012-08-03 Michael Matz <matz@suse.de>
13006 PR tree-optimization/54146
13007 * cfgexpand.c (add_scope_conflicts_1): Use bitmap_ior_into.
13008 (add_scope_conflicts): Iterate in RPO order.
13009 (add_stack_protection_conflicts): Iterate over the other triangle.
13010 (fini_vars_expansion): Clear stack_vars_sorted.
13012 2012-08-03 Marc Glisse <marc.glisse@inria.fr>
13014 PR tree-optimization/30318
13015 * double-int.c (mul_double_wide_with_sign): New function.
13016 (mul_double_with_sign): Call the new function.
13017 * double-int.h (mul_double_wide_with_sign): Declare the new function.
13018 * tree-vrp.c (extract_range_from_binary_expr_1) [MULT_EXPR]:
13019 Handle integer types that wrap on overflow.
13020 (quad_int_cmp): New helper function.
13021 (quad_int_pair_sort): Likewise.
13023 2012-08-03 Richard Guenther <rguenther@suse.de>
13025 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Query
13026 is_gimple_reg on the SSA name, not its variable.
13027 (vect_update_ivs_after_vectorizer): Likewise.
13028 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
13029 * tree-if-conv.c (if_convertible_phi_p): Likewise.
13030 (predicate_scalar_phi): Likewise.
13031 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Likewise.
13032 (vect_analyze_scalar_cycles_1): Likewise.
13033 * tree-ssa-live.c (register_ssa_partition_check): Likewise.
13034 * tree-outof-ssa.c (eliminate_useless_phis): Likewise.
13035 * tree-ssa-reassoc.c (phi_rank): Likewise.
13036 * tree-parloops.c (separate_decls_in_region_name): Use
13037 replace_ssa_name_symbol.
13038 * tree-predcom.c (base_names_in_chain_on): Likewise.
13039 * matrix-reorg.c (update_type_size): Query the type of the SSA name,
13041 * gimple-ssa-strength-reduction.c (create_mul_ssa_cand): Likewise.
13042 (create_mul_imm_cand): Likewise.
13043 (create_add_ssa_cand): Likewise.
13044 (create_add_imm_cand): Likewise.
13045 (slsr_process_add): Likewise.
13046 * tree-inline.c (remap_ssa_name): Do not set the type of the
13048 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Clarify assert.
13049 Check for default def first.
13051 2012-08-04 Steven Bosscher <steven@gcc.gnu.org>
13053 * cfgrtl.c (print_rtl_with_bb): Do not print a newline between insns.
13055 * sched-vis.c (print_pattern): Handle SEQUENCE also.
13057 2012-08-02 Richard Henderson <rth@redhat.com>
13061 * function.h (struct rtl_data): Add max_dynamic_stack_alignment.
13062 * cfgexpand.c (gimple_expand_cfg): Initialise it.
13063 * explow.c (allocate_dynamic_stack_space): Set it. Simplify
13064 alignment requirements given the known alignment of dynamic_offset.
13065 * function.c (instantiate_virtual_regs): Align dtnamic_offset.
13067 2012-08-02 Kenneth Zadeck <zadeck@naturalbridge.com>
13069 * cfgexpand.c (expand_debug_locations): Encapsulate test for
13070 CONST_DOUBLE in macro.
13071 * combine.c (try_combine, gen_lowpart_for_combine): Ditto.
13072 * cprop.c (implicit_set_cond_p): Ditto.
13073 * cselib.c (rtx_equal_for_cselib_1): Ditto.
13074 * expmed.c (expand_mult): Ditto.
13075 * expr.c (convert_modes): Ditto.
13076 * ira-costs.c (record_reg_classes): Ditto.
13077 * ira-lives.c (single_reg_class): Ditto.
13078 * optabs.c (expand_copysign_absneg, expand_copysign): Ditto.
13079 * print-rtl.c (print_rtx): Ditto.
13080 * recog.c (simplify_while_replacing, const_double_operand)
13081 (asm_operand_ok, constrain_operands): Ditto.
13082 * reg-stack.c (subst_stack_regs_pat): Ditto.
13083 * reload.c (find_reloads, find_equiv_reg): Ditto.
13084 * rtlanal.c (replace_rtx): Remove test.
13085 * rtlanal.c (constant_pool_constant_p, split_double): Encapsulate
13086 test for CONST_DOUBLE in macro.
13087 * simplify-rtx.c (mode_signbit_p, avoid_constant_pool_reference)
13088 (simplify_unary_operation_1, simplify_const_unary_operation)
13089 (simplify_binary_operation_1, simplify_const_binary_operation)
13090 (simplify_relational_operation_1)
13091 (simplify_const_relational_operations)
13092 (implify_subreg): Ditto.
13093 * varasm.c (output_constant_pool_2): Ditto.
13094 * rtl.h (CONST_DOUBLE_AS_INT_P, CONST_DOUBLE_AS_FLOAT_P): New macros.
13095 * rtl.def (CONST_DOUBLE): Updated comments.
13097 2012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
13100 * config/mips/mips-protos.h (mips_strip_unspec_address): Declare.
13101 * config/mips/mips.c (mips_strip_unspec_address): Make extern.
13102 (mips16_rewrite_pool_constant): Make a copy of the pool constant
13103 before adding to a PC-relative table.
13104 (mips16_lay_out_constants): Add a SPLIT_P parameter.
13105 (mips16_load_branch_target, mips16_split_long_branches): New functions.
13106 (mips_reorg): Update call to mips16_lay_out_constants.
13107 Call mips16_split_long_branches.
13108 * config/mips/predicates.md (pc_or_label_operand): Delete.
13109 * config/mips/mips.md (length): Add a calculation for MIPS16 branches.
13110 Move the extended_mips16 handling further down.
13111 (*branch_equality<mode>_mips16): Replace use pc_or_label_operand
13112 with explicit label_ref and pc. Follow the usual operand numbering.
13113 (*branch_equality<mode>_mips16_inverted): New pattern.
13114 (*jump_mips16): Add length attribute.
13115 (indirect_jump_and_restore_<mode>): New pattern.
13116 (consttable_int): Call mips_strip_unspec_address on the operand.
13118 2012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
13120 * recog.c (split_insn): Copy the original SET_SRC before using
13123 2012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
13125 * reorg.c (dbr_schedule): Delete REG_BR_PRED loop.
13127 2012-08-02 Marc Glisse <marc.glisse@inria.fr>
13129 PR tree-optimization/53805
13130 * fold-const.c (invert_tree_comparison): Invert ORDERED_EXPR and
13131 UNORDERED_EXPR even for trapping floating point.
13133 2012-08-02 H.J. Lu <hongjiu.lu@intel.com>
13135 PR middle-end/53321
13136 PR middle-end/53865
13137 * ipa-inline-analysis.c (inline_free_summary): Return if
13138 inline_edge_summary_vec is NULL.
13140 * ipa-split.c (execute_split_functions): Check if a function
13141 is inlinable only if inline_edge_summary_vec != NULL.
13143 * ipa.c (symtab_remove_unreachable_nodes): Restore
13144 cgraph_propagate_frequency call when something was changed.
13145 (free_inline_summary): New function.
13146 (pass_ipa_free_inline_summary): New pass.
13148 * passes.c (init_optimization_passes): Add
13149 pass_ipa_free_inline_summary before pass_ipa_tree_profile.
13151 * timevar.def (TV_IPA_FREE_INLINE_SUMMARY): New.
13153 * tree-pass.h (pass_ipa_free_inline_summary): New.
13155 2012-08-02 Richard Earnshaw <rearnsha@arm.com>
13157 * arm.c (arm_gen_constant): Use UBFX for some AND operations when
13160 2012-08-02 Richard Guenther <rguenther@suse.de>
13162 * tree-into-ssa.c (struct common_info_d): New struct.
13163 (struct var_info_d, struct ssa_name_info): Use it.
13164 (get_ssa_name_ann): Adjust.
13165 (get_phi_state, set_phi_state): Remove.
13166 (get_common_info): New function.
13167 (get_current_def, set_current_def): Adjust.
13168 (get_def_blocks_for): Take a common info as param.
13169 (set_def_block): Call get_common_info once.
13170 (set_livein_block): Likewise.
13171 (find_def_blocks_for): Adjust.
13172 (insert_phi_nodes): Likewise.
13173 (register_new_def): Call get_common_info once.
13174 (get_reaching_def): Likewise.
13175 (rewrite_debug_stmt_uses): Likewise.
13176 (rewrite_leave_block): Likewise.
13177 (dump_currdefs): Likewise.
13178 (debug_var_infos_r): Adjust.
13179 (register_new_update_single): Call get_common_info once.
13180 (maybe_replace_use_in_debug_stmt): Likewise.
13181 (rewrite_update_leave_block): Likewise.
13182 (mark_use_interesting): Adjust.
13183 (create_new_def_for): Likewise.
13184 (update_ssa): Likewise.
13186 2012-08-02 Michael Matz <matz@suse.de>
13188 * tree-ssa-live.c (set_is_used): Return a bool.
13189 (mark_all_vars_used): Don't take data argument.
13190 (mark_all_vars_used_1): Adjust calls to above, merge handling
13191 of local and global vars.
13192 (remove_unused_scope_block_p): Don't take global_unused_vars,
13193 merge handling of local and global vars.
13194 (remove_unused_locals): Don't allocate/fill/pass global_unused_vars,
13195 use is_used_p for local and global vars.
13197 2012-08-02 Richard Guenther <rguenther@suse.de>
13199 * tree-flow.h (make_rename_temp): Remove.
13200 * tree-dfa.c (make_rename_temp): Likewise.
13201 * cgraphunit.c (thunk_adjust, assemble_thunk): Use create_tmp_reg
13202 instead of make_rename_temp.
13203 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
13204 expand_omp_atomic_pipeline): Likewise.
13205 * trans-mem.c (tm_log_emit_save_or_restores, build_tm_load,
13206 build_tm_store, expand_call_tm, expand_transaction,
13207 ipa_tm_insert_gettmclone_call): Likewise.
13208 * tree-complex.c (expand_complex_div_wide): Likewise.
13209 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
13211 * tree-ssa-loop-im.c (execute_sm_if_changed_flag_set, execute_sm):
13213 * tree-ssa-math-opts.c (insert_reciprocals): Likewise.
13214 * value-prof.c (gimple_divmod_fixed_value, gimple_mod_pow2,
13215 gimple_mod_subtract): Likewise.
13217 2012-08-02 Richard Guenther <rguenther@suse.de>
13219 * tree-flow.h (set_default_def): Rename to ...
13220 (set_ssa_default_def): ... this. Take a struct function argument.
13221 (gimple_default_def): Rename to ...
13222 (ssa_default_def): ... this.
13223 (get_or_create_ssa_default_def): New function.
13224 * tree-dfa.c: Likewise.
13225 (dump_variable): Adjust.
13226 * ipa-prop.c (ipa_analyze_params_uses): Adjust, properly check
13227 for used parameters.
13228 * ipa-split.c (consider_split): Adjust, avoid repeated default-def
13230 (split_function): Likewise.
13231 * lto-streamer-in.c (input_ssa_names): Adjust.
13232 * omp-low.c (expand_omp_taskreg): Likewise.
13233 * tree-cfg.c (replace_ssa_name): Adjust, no need to push/pop cfun.
13234 * tree-complex.c (init_parameter_lattice_values): Adjust.
13235 (get_component_ssa_name): Likewise.
13236 (update_parameter_components): Likewise.
13237 * tree-inline.c (remap_ssa_name): Likewise.
13238 (setup_one_parameter): Likewise.
13239 (initialize_inlined_parameters): Likewise.
13240 (declare_return_variable): Likewise.
13241 (expand_call_inline): Likewise.
13242 (tree_function_versioning): Likewise.
13243 * tree-into-ssa.c (get_default_def_for): Remove.
13244 (get_reaching_def): Use get_or_create_ssa_default_def instead.
13245 * tree-predcom.c (replace_ref_with): Adjust.
13246 * tree-sra.c (get_repl_default_def_ssa_name): Likewise.
13247 (is_unused_scalar_param): Likewise.
13248 (ptr_parm_has_direct_uses): Likewise.
13249 (sra_ipa_reset_debug_stmts): Likewise.
13250 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust.
13251 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
13252 * tree-ssa-live.c (verify_live_on_entry): Likewise.
13253 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise,
13254 avoid repeated default def lookups.
13255 * tree-ssa-sccvn.c (run_scc_vn): Likewise.
13256 * tree-tailcall.c (arg_needs_copy_p): Adjust.
13257 (tree_optimize_tail_calls_1): Likewise.
13259 2012-08-02 Richard Guenther <rguenther@suse.de>
13261 PR tree-optimization/50672
13263 2012-08-01 Richard Guenther <rguenther@suse.de>
13265 * tree-ssa-tail-merge.c (release_last_vdef): Remove.
13266 (replace_block_by): Adjust.
13268 2012-08-02 Richard Guenther <rguenther@suse.de>
13270 * tree-dfa.c (referenced_var_lookup): Remove.
13271 (find_referenced_vars): Remove.
13272 (pass_referenced_vars): Likewise.
13273 (make_rename_temp): Do not add referenced vars.
13274 (dump_referenced_vars): Remove.
13275 (debug_referenced_vars): Likewise.
13276 (dump_dfa_stats): Do not dump referenced var stats.
13277 (find_vars_r): Remove.
13278 (find_referenced_vars_in): Likewise.
13279 (referenced_var_check_and_insert): Likewise.
13280 (add_referenced_var_1): Likewise.
13281 (remove_referenced_var): Likewise.
13282 * tree-flow.h (referenced_var_lookup): Likewise.
13283 (struct gimple_df): Remove referenced_vars member.
13284 (typedef referenced_var_iterator): Remove.
13285 (FOR_EACH_REFERENCED_VAR): Likewise.
13286 (num_referenced_vars): Likewise.
13287 (debug_referenced_vars, dump_referenced_vars): Likewise.
13288 (add_referenced_var_1, add_referenced_var): Likewise.
13289 (remove_referenced_var): Likewise.
13290 (find_referenced_vars_in): Likewise.
13291 * tree-flow-inline.h (gimple_referenced_vars): Remove.
13292 (first_referenced_var): Likewise.
13293 (end_referenced_vars_p): Likewise.
13294 (next_referenced_var): Likewise.
13295 * cfgexpand.c (update_alias_info_with_stack_vars): Remove assert.
13296 * gimple-pretty-print.c (pp_points_to_solution): Dump UIDs
13298 * tree-into-ssa.c (dump_decl_set): Likewise.
13299 (pass_build_ssa): Do not require PROP_referenced_vars.
13300 * tree-ssa.c (target_for_debug_bind): Virtual operands are
13301 not suitable, but all register type vars are.
13302 (init_tree_ssa): Do not allocate referenced vars.
13303 (delete_tree_ssa): Do not free referenced vars.
13304 * cgraphunit.c (init_lowered_empty_function): Do not set
13305 PROP_referenced_vars.
13306 (assemble_thunk): Do not add referenced vars.
13307 * gimple-fold.c (canonicalize_constructor_val): Likewise.
13308 (gimplify_and_update_call_from_tree): Likewise.
13309 * gimple-streamer-in.c (input_bb): Likewise.
13310 * passes.c (init_optimization_passes): Do not run
13311 pass_referenced_vars.
13312 (dump_properties): Do not dump PROP_referenced_vars.
13313 * tree-inline.c (remap_decl): Do not add referenced vars.
13314 (remap_gimple_op_r): Likewise.
13315 (copy_tree_body_r): Likewise.
13316 (copy_bb): Likewise.
13317 (setup_one_parameter): Likewise.
13318 (declare_return_variable): Likewise.
13319 (copy_decl_for_dup_finish): Likewise.
13320 (copy_arguments_for_versioning): Likewise.
13321 (tree_function_versioning): Likewise.
13322 * tree-pass.h (PROP_referenced_vars): Remove.
13323 (pass_referenced_vars): Likewise.
13324 * tree-profile.c (gimple_gen_edge_profiler): Do not add
13326 (gimple_gen_interval_profiler): Likewise.
13327 (gimple_gen_pow2_profiler): Likewise.
13328 (gimple_gen_one_value_profiler): Likewise.
13329 (gimple_gen_ic_profiler): Likewise.
13330 (gimple_gen_average_profiler): Likewise.
13331 (gimple_gen_ior_profiler): Likewise.
13332 * tree-ssa-live.c (remove_unused_locals): Do not touch referenced vars.
13333 * tree-cfg.c (replace_ssa_name): Do not add referenced vars.
13334 (move_stmt_op): Likewise.
13335 * tree-ssa-operands.c (create_vop_var): Likewise.
13336 * gimple-low.c (record_vars_into): Likewise.
13337 * gimplify.c (gimple_regimplify_operands): Likewise.
13338 (force_gimple_operand_1): Likewise.
13339 * omp-low.c (expand_omp_for_generic): Likewise.
13340 (expand_omp_for_static_chunk): Likewise.
13341 (expand_omp_atomic_pipeline): Likewise.
13342 * graphite-clast-to-gimple.c (graphite_create_new_loop): Likewise.
13343 (translate_clast_assignment): Likewise.
13344 * graphite-sese-to-poly.c (create_zero_dim_array): Likewise.
13345 (handle_scalar_deps_crossing_scop_limits): Likewise.
13346 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
13347 * ipa-split.c (split_function): Likewise.
13348 * matrix-reorg.c (transform_access_sites): Likewise.
13349 * trans-mem.c (tm_log_add): Likewise.
13350 (ipa_tm_insert_gettmclone_call): Likewise.
13351 * tree-complex.c (create_one_component_var): Likewise.
13352 * tree-if-conv.c (ifc_temp_var): Likewise.
13353 * tree-parloops.c (take_address_of): Likewise.
13354 (initialize_reductions): Likewise.
13355 (separate_decls_in_region_name): Likewise.
13356 (create_call_for_reduction_1): Likewise.
13357 (separate_decls_in_region): Likewise.
13358 * tree-predcom.c (predcom_tmp_var): Likewise.
13359 (reassociate_to_the_same_stmt): Likewise.
13360 * tree-sra.c (build_ref_for_offset): Likewise.
13361 (create_access_replacement): Likewise.
13362 (get_replaced_param_substitute): Likewise.
13363 (sra_ipa_reset_debug_stmts): Likewise.
13364 * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
13365 (rewrite_bittest): Likewise.
13366 * tree-ssa-loop-ivopts.c (create_new_iv): Likewise.
13367 * tree-ssa-loop-manip.c (create_iv): Likewise.
13368 (tree_transform_and_unroll_loop): Likewise.
13369 * tree-ssa-math-opts.c (powi_as_mults): Likewise.
13370 (build_and_insert_call): Likewise.
13371 (gimple_expand_builtin_cabs): Likewise.
13372 (execute_optimize_bswap): Likewise.
13373 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
13374 (abs_replacement): Likewise.
13375 (cond_store_replacement): Likewise.
13376 (cond_if_else_store_replacement_1): Likewise.
13377 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
13378 * tree-ssa-pre.c (get_representative_for): Likewise.
13379 (create_expression_by_pieces): Likewise.
13380 (insert_into_preds_of_block): Likewise.
13381 * tree-ssa-propagate.c (update_call_from_tree): Likewise.
13382 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
13383 (eliminate_redundant_comparison): Likewise.
13384 (rewrite_expr_tree_parallel): Likewise.
13385 (get_reassoc_pow_ssa_name): Likewise.
13386 * tree-ssa-strlen.c (get_string_length): Likewise.
13387 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
13388 (build_arrays): Likewise.
13389 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
13390 (create_tailcall_accumulator): Likewise.
13391 * tree-vect-data-refs.c (vect_get_new_vect_var): Likewise.
13392 (vect_create_addr_base_for_vector_ref): Likewise.
13393 (vect_permute_store_chain): Likewise.
13394 (vect_permute_load_chain): Likewise.
13395 * tree-vect-generic.c (expand_vector_divmod): Likewise.
13396 * tree-vect-loop-manip.c (set_prologue_iterations): Likewise.
13397 (vect_build_loop_niters): Likewise.
13398 (vect_generate_tmps_on_preheader): Likewise.
13399 (vect_update_ivs_after_vectorizer): Likewise.
13400 (vect_gen_niters_for_prolog_loop): Likewise.
13401 (vect_do_peeling_for_alignment): Likewise.
13402 (vect_create_cond_for_align_checks): Likewise.
13403 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
13404 (vect_handle_widen_op_by_const): Likewise.
13405 (vect_operation_fits_smaller_type): Likewise.
13406 (vect_recog_over_widening_pattern): Likewise.
13407 * tree-vect-stmts.c (vect_init_vector): Likewise.
13409 2012-08-01 Alexandre Oliva <aoliva@redhat.com>
13412 * valtrack.c (dead_debug_insert_temp): Use cleanup_auto_inc_dec.
13414 2012-08-01 Alexandre Oliva <aoliva@redhat.com>
13417 * valtrack.c (cleanup_auto_inc_dec): Implement unconditionally,
13418 falling back to copy_rtx on non-autoinc machines.
13419 (propagate_for_debug_subst): Always use cleanup_auto_inc_dec.
13421 2012-08-01 Alexandre Oliva <aoliva@redhat.com>
13424 * valtrack.h, valtrack.c: New.
13425 * Makefile.in (VALTRACK_H): New.
13426 (OBJS): Add valtrack.o.
13428 (cselib.o, dce.o, df-problems.o, combine.o): Add VALTRACK_H.
13429 * combine.c: Include valtrack.h.
13430 (make_compound_operation): Publish.
13431 (cleanup_auto_inc_dec): Move to valtrack.c.
13432 (struct rtx_subst_pair, propagate_for_debug_subst): Likewise.
13433 (propagate_for_debug): Likewise. Add this_basic_block parameter.
13434 Adjust all callers.
13435 * cselib.c: Include valtrack.h.
13437 * df-problems.c: Likewise.
13438 (dead_debug_init, dead_debug_reset_uses): Move to valtrack.c.
13439 (dead_debug_finish, dead_debug_add): Likewise.
13440 (dead_debug_insert_temp): Likewise.
13441 * df.h (struct dead_debug_use): Move to valtrack.h.
13442 (struct dead_debug, enum debug_temp_where): Likewise.
13443 (dead_debug_init, dead_debug_reset_uses): Move to valtrack.h.
13444 (dead_debug_finish, dead_debug_add): Likewise.
13445 (dead_debug_insert_temp): Likewise.
13446 * rtl.h (make_compound_operation): Declare.
13448 2012-08-01 Catherine Moore <clm@codesourcery.com>
13449 Sandra Loosemore <sandra@codesourcery.com>
13451 * config/mips/mips-cpus.def (34kn): New.
13452 * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Add 34kn.
13453 (BASE_DRIVER_SELF_SPECS): Do not imply -mdsp for the 34kn.
13454 * config/mips/mips-tables.opt: Regenerate.
13455 * doc/invoke.texi (MIPS Options): Document -march=34kn.
13457 2012-08-01 Richard Henderson <rth@redhat.com>
13459 * expmed.h (NUM_MODE_PARTIAL_INT): New.
13460 (NUM_MODE_VECTOR_INT, NUM_MODE_IP_INT, NUM_MODE_IPV_INT): New.
13461 (struct expmed_op_cheap): Size one array on NUM_MODE_IPV_INT.
13462 (struct expmed_op_costs): Likewise.
13463 (struct target_expmed): Size x_convert_cost on NUM_MODE_IP_INT.
13464 (expmed_mode_index): New.
13465 (expmed_op_cheap_ptr, expmed_op_cost_ptr): Use expmed_mode_index.
13466 (convert_cost_ptr): Likewise.
13467 * expmed.c (struct init_expmed_rtl): Rename convert to trunc.
13468 (init_expmed_one_conv): Split out from ...
13469 (init_expmed_one_mode): ... here. Iterate conversions over
13470 partial integer modes too.
13471 (init_expmed): Iterate over partial integer modes too.
13473 2012-08-01 Richard Henderson <rth@redhat.com>
13475 * config/m32c/m32c.c (TARGET_INIT_LIBFUNCS): Remove.
13476 (m32c_init_libfuncs): Remove.
13477 * config/m32c/cond.md (cstore<QHPSI>4_16): Rename from cstore<QHPSI>4.
13478 (cstore<QHPSI>4): New expander.
13480 2012-08-01 Richard Guenther <rguenther@suse.de>
13482 * tree-flow-inline.h (referenced_var): Remove.
13483 * tree-ssa-coalesce.c (create_outofssa_var_map): Remove duplicate
13485 * tree-sra.c (candidates): New global hashtable.
13486 (candidate): New function.
13487 (sra_initialize): Initialize candidates.
13488 (sra_deinitialize): Free candidates.
13489 (disqualify_candidate): Remove candidate from candidates.
13490 (maybe_add_sra_candidate): New function.
13491 (find_var_candidates): Walk over all local decls and parameters,
13492 add candidates to candidates hashtable.
13493 (find_param_candidates): Add candidates to candidates hashtable.
13494 (analyze_all_variable_accesses): Use candidate instead of
13497 2012-08-01 Tom de Vries <tom@codesourcery.com>
13499 * tree-vrp.c (find_case_label_ranges): New function.
13500 (vrp_visit_switch_stmt, simplify_switch_using_ranges): Use
13501 find_case_label_ranges instead of find_case_label_range. Handle second
13504 2012-08-01 Michael Matz <matz@suse.de>
13506 * tree-complex.c (init_parameter_lattice_values): Don't call var_ann.
13507 * tree-dfa.c (struct dfa_stats_d): Remove num_var_anns member.
13508 (dump_dfa_stats): Don't dump stats about var anns.
13509 (collect_dfa_stats): Don't collect them.
13510 (add_referenced_var_1): Don't set var annotation pointers.
13511 (remove_referenced_var): Ditto, and only remove it it's in the
13514 * tree-flow-inline.h (var_ann): Remove.
13515 * tree-flow.h (struct var_ann_d, var_ann_t): Remove.
13517 * tree-inline.c (remapped_type): Remove.
13518 (can_be_nonlocal): Most variable will be considered live here,
13519 return false earlier.
13520 (remap_decls): Don't call var_ann, all variables will be considered
13522 (copy_debug_stmt): Ditto, and use is_global_var.
13524 * tree-into-ssa.c (rewrite_debug_stmt_uses): Use get_current_def to
13525 determine if a variable was referred to, not var_ann.
13526 * tree-ssa-live.c (remove_unused_scope_block_p): Don't check var_ann.
13527 (remove_unused_locals): Ditto.
13528 * tree-ssa.c (delete_tree_ssa): Don't free/clear var ann pointers.
13529 * tree-tailcall.c (arg_needs_copy_p): Don't check var_ann.
13530 * tree.c (copy_node_stat): Don't clear var ann pointer.
13531 * tree.h (tree_result_decl, tree_parm_decl, tree_var_decl): Remove
13533 (DECL_VAR_ANN_PTR): Remove.
13535 2012-08-01 Michael Matz <matz@suse.de>
13537 * tree-flow.h (struct var_ann_d): Rename used member.
13538 (set_is_used): Don't declare.
13539 * tree-flow-inline.h (clear_is_used): Remove.
13540 (set_is_used, is_used_p): Move to ...
13541 * tree-ssa-live.c (set_is_used, is_used_p): ... here, and use
13542 on the side bitmap.
13543 (usedvars): New bitmap.
13544 (dump_scope_block): Don't dump unusedness.
13545 (remove_unused_locals): Allocate and free usedvars.
13546 * tree-nrv.c (tree_nrv): Don't clear used flags here.
13548 2012-08-01 Michael Matz <matz@suse.de>
13550 * tree-flow.h (struct var_ann_d): Remove base_var_processed and
13551 base_index members.
13552 * tree-ssa-live.h (struct _var_map): Remove basevars member.
13553 (VAR_ANN_BASE_INDEX): Remove.
13554 * tree-ssa-live.c (var_map_base_init): Use a hash table instead
13555 of var annotation to compress index space. Don't deal with above
13557 (var_map_base_fini): Don't free basevars.
13558 (init_var_map): Don't clear basevars.
13560 2012-08-01 Bill Schmidt <wschmidt@linux.ibm.com>
13562 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Change
13563 base_name to base_expr.
13564 (struct cand_chain_d): Likewise.
13565 (base_cand_hash): Likewise.
13566 (base_cand_eq): Likewise.
13567 (record_potential_basis): Likewise.
13568 (alloc_cand_and_find_basis): Likewise.
13569 (create_mul_ssa_cand): Likewise.
13570 (create_mul_imm_cand): Likewise.
13571 (create_add_ssa_cand): Likewise.
13572 (create_add_imm_cand): Likewise.
13573 (slsr_process_cast): Likewise.
13574 (slsr_process_copy): Likewise.
13575 (dump_candidate): Likewise.
13576 (base_cand_dump_callback): Likewise.
13577 (unconditional_cands_with_known_stride_p): Likewise.
13578 (cand_increment): Likewise.
13580 2012-08-01 Bill Schmidt <wschmidt@linux.ibm.com>
13582 PR tree-optimization/46556
13583 * gimple-ssa-strength-reduction.c (enum cand_kind): Add CAND_REF.
13584 (base_cand_map): Change to hash table.
13585 (base_cand_hash): New function.
13586 (base_cand_free): Likewise.
13587 (base_cand_eq): Likewise.
13588 (lookup_cand): Change base_cand_map to hash table.
13589 (find_basis_for_candidate): Likewise.
13590 (base_cand_from_table): Exclude CAND_REF.
13591 (restructure_reference): New function.
13592 (slsr_process_ref): Likewise.
13593 (find_candidates_in_block): Call slsr_process_ref.
13594 (dump_candidate): Handle CAND_REF.
13595 (base_cand_dump_callback): New function.
13596 (dump_cand_chains): Change base_cand_map to hash table.
13597 (replace_ref): New function.
13598 (replace_refs): Likewise.
13599 (analyze_candidates_and_replace): Call replace_refs.
13600 (execute_strength_reduction): Change base_cand_map to hash table.
13602 2012-08-01 Uros Bizjak <ubizjak@gmail.com>
13604 * config/i386/i386.c (ix86_address_subreg_operand): Reject
13606 (ix86_print_operand_address): Assert that parts.base and parts.index
13607 are non-NULL after call to simplify_subreg.
13609 2012-08-01 Richard Guenther <rguenther@suse.de>
13611 * doc/tree-ssa.texi: Remove pieces mentioning mark_sym_for_renaming.
13613 2012-08-01 Richard Guenther <rguenther@suse.de>
13615 * graphite-clast-to-gimple.c (translate_clast_user): Rename
13617 * sese.c (graphite_copy_stmts_from_block): Do not rename virtual
13619 * tree-call-cdce.c (tree_call_cdce): Use
13620 mark_virtual_operands_for_renaming.
13621 * tree-eh.c (sink_clobbers): Simplify.
13622 * tree-flow.h (mark_sym_for_renaming): Remove.
13623 (mark_virtual_operands_for_renaming): New function.
13624 * tree-if-conv.c (tree_if_conversion): Use
13625 mark_virtual_operands_for_renaming.
13626 * tree-inline.c (update_ssa_across_abnormal_edges): Likewise.
13627 * tree-into-ssa.c (mark_sym_for_renaming): Remove.
13628 (mark_virtual_operands_for_renaming): New function.
13629 * tree-loop-distribution.c (tree_loop_distribution): Use
13630 mark_virtual_operands_for_renaming.
13631 * tree-ssa-dce.c (mark_virtual_operand_for_renaming): Do not
13632 update stmts, use mark_virtual_operands_for_renaming.
13633 * tree-ssa-tail-merge.c (release_last_vdef): Remove.
13634 (replace_block_by): Adjust.
13635 (tail_merge_optimize): Use mark_virtual_operands_for_renaming.
13636 * tree-tailcall.c (tree_optimize_tail_calls_1): Use
13637 mark_virtual_operands_for_renaming.
13638 * tree-vect-slp.c (vect_slp_transform_bb): Likewise.
13639 * tree-vectorizer.c (vectorize_loops): Likewise.
13641 2012-08-01 Richard Guenther <rguenther@suse.de>
13643 * tree-flow.h (struct gimple_df): Remove syms_to_rename member,
13644 add ssa_renaming_needed and rename_vops flags.
13645 (SYMS_TO_RENAME): Remove.
13646 (symbol_marked_for_renaming): Likewise.
13647 (mark_virtual_ops_for_renaming): Likewise.
13648 * tree-into-ssa.c (symbols_to_rename_set, symbols_to_rename):
13650 (mark_for_renaming, marked_for_renaming): New functions.
13651 (symbol_marked_for_renaming): Remove.
13652 (dump_currdefs): Adjust.
13653 (maybe_replace_use): Likewise.
13654 (maybe_replace_use_in_debug_stmt): Likewise.
13655 (maybe_register_def): Likewise.
13656 (rewrite_update_phi_arguments): Likewise.
13657 (rewrite_update_enter_block): Likewise.
13658 (fini_ssa_renamer): Clear update SSA status here ...
13659 (delete_update_ssa): ... not here. Free rename set.
13660 (prepare_block_for_update): Compute which decls need renaming.
13661 (dump_update_ssa): Adjust.
13662 (mark_sym_for_renaming): Adjust update SSA status for virtuals.
13663 (need_ssa_update_p): Adjust.
13664 (insert_updated_phi_nodes_for): Likewise.
13665 (update_ssa): Likewise.
13666 * tree-ssa-operands.c (finalize_ssa_defs): Adjust update SSA status
13667 for virtual and real operands.
13668 (finalize_ssa_uses): Likewise.
13669 * tree-ssanames.c (init_ssanames): Adjust.
13670 * tree-ssa.c (maybe_rewrite_mem_ref_base, maybe_optimize_var,
13671 execute_update_addresses_taken): Add bitmap to keep track of which
13672 candidates are suitable for rewriting and later renaming by SSA update.
13673 * matrix-reorg.c (transform_access_sites): Do not rename all defs.
13674 * tree-dfa.c (make_rename_temp): Do not mark real operands for
13676 * cgraphunit.c (assemble_thunk): Likewise.
13677 * gimplify.c (gimple_regimplify_operands): Likewise.
13678 (force_gimple_operand_1): Likewise.
13679 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
13680 * tree-inline.c (declare_return_variable): Likewise.
13681 * tree-parloops.c (separate_decls_in_region_stmt): Do not call
13682 mark_virtual_ops_for_renaming.
13683 (create_stores_for_reduction): Likewise.
13684 (create_loads_and_stores_for_name): Likewise.
13685 * tree-predcom.c (mark_virtual_ops_for_renaming): Remove.
13686 (initialize_root_vars_lm): Do not call mark_virtual_ops_for_renaming.
13687 (execute_load_motion): Likewise.
13688 (remove_stmt): Likewise.
13689 (execute_pred_commoning_chain): Likewise.
13690 * tree-sra.c (create_access_replacement): Do not rename real operands.
13691 (get_unrenamed_access_replacement): Unify with ...
13692 (get_access_replacement): ... this.
13693 (get_repl_default_def_ssa_name): Adjust.
13694 * tree-ssa-loop-im.c (move_computations_stmt): Manually update
13696 (rewrite_mem_ref_loc): Do not call mark_virtual_ops_for_renaming.
13697 * tree-ssa-loop-prefetch.c (emit_mfence_after_loop): Likewise.
13699 2012-07-31 DJ Delorie <dj@redhat.com>
13701 * config/s390/s390.c (s390_option_override): Disable DWARF 3/4
13702 extensions for TPF, unless specifically selected.
13704 2012-08-01 Alan Modra <amodra@gmail.com>
13707 * config/rs6000/rs6000.c (mem_operand_gpr): Don't limit range
13708 of lo_sum offsets. Comment. Assert mode at least word size
13709 rather than bypassing powerpc64 word offset check.
13711 2012-07-31 Bill Schmidt <wschmidt@linux.ibm.com>
13713 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
13714 costs for vec_perm and vec_promote_demote down to more natural values.
13715 (struct _rs6000_cost_data): New data structure.
13716 (rs6000_density_test): New function.
13717 (rs6000_init_cost): Change to use rs6000_cost_data.
13718 (rs6000_add_stmt_cost): Likewise.
13719 (rs6000_finish_cost): Perform density test when vectorizing a loop.
13721 2012-07-31 Steven Bosscher <steven@gcc.gnu.org>
13723 * sched-vis.c (print_exp): Handle FMA explicitly. Simplify handling
13724 of RTX_UNARY function-like operations. Print unknown expression
13725 RTX classes as pseudo-functions.
13726 (print_pattern): Simplify return pattern printing.
13727 (dump_insn_slim): Print the value of notes as a pattern for proper
13728 printing of CFA notes.
13730 2012-07-31 Dehao Chen <dehao@google.com>
13732 * predict.c (tree_estimate_probability_driver): Normalize the
13733 loop when initializing the loop optimizer.
13735 2012-07-31 Richard Guenther <rguenther@suse.de>
13737 * tree-flow.h (struct var_ann_d): Remove need_phi_state
13738 and current_def members.
13739 * tree-into-ssa.c (struct def_blocks_d): Remove var member.
13740 (def_blocks): Remove.
13741 (struct var_info_d): New.
13742 (var_infos): New hashtable.
13743 (struct ssa_name_info): Add def_blocks member.
13744 (get_ssa_name_ann): Adjust.
13745 (get_var_info): New function.
13746 (get_phi_state, set_phi_state, get_current_def,
13747 set_current_def, get_def_blocks_for, find_def_blocks_for): Adjust.
13748 (insert_phi_nodes_compare_def_blocks): Rename to ...
13749 (insert_phi_nodes_compare_var_infos): ... this and adjust.
13750 (insert_phi_nodes): Adjust.
13751 (dump_tree_ssa, dump_tree_ssa_stats): Adjust.
13752 (def_blocks_hash, def_blocks_eq, def_blocks_free): Remove.
13753 (debug_def_blocks_r): Rename to ...
13754 (debug_var_infos_r): ... this and adjust.
13755 (var_info_hash): New function.
13756 (var_info_eq): Likewise.
13757 (rewrite_blocks): Adjust.
13758 (init_ssa_renamer): Likewise.
13759 (fini_ssa_renamer): Likewise.
13760 (delete_update_ssa): Likewise.
13761 (update_ssa): Likewise.
13762 * tree-ssanames.c (release_dead_ssa_names): Do not clear current defs.
13764 2012-07-31 Bill Schmidt <wschmidt@linux.ibm.com>
13766 PR tree-optimization/53773
13767 * tree-vectorizer.h (struct _loop_vec_info): Add operands_swapped.
13768 (LOOP_VINFO_OPERANDS_SWAPPED): New macro.
13769 * tree-vect-loop.c (new_loop_vec_info): Initialize
13770 LOOP_VINFO_OPERANDS_SWAPPED field.
13771 (destroy_loop_vec_info): Restore canonical form.
13772 (vect_is_slp_reduction): Set LOOP_VINFO_OPERANDS_SWAPPED field.
13773 (vect_is_simple_reduction_1): Likewise.
13775 2012-07-31 Steven Bosscher <steven@gcc.gnu.org>
13777 * sched-vis.c (dump_insn_slim): Print print_rtx_head at the
13778 start of each new line.
13779 * final.c (final_scan_insn): If the final dump is requested as
13780 slim RTL, dump slim RTL to the assembly file also.
13782 2012-07-31 Andrey Belevantsev <abel@ispras.ru>
13786 * sel-sched-ir.c (has_dependence_note_reg_use): Clarify comment.
13789 2011-08-04 Sergey Grechanik <mouseentity@ispras.ru>
13791 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
13792 only if producer writes to the register given by regno.
13794 2012-07-31 Nick Clifton <nickc@redhat.com>
13796 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Add
13797 support for reporting stack usage.
13799 * config/frv/frv.c (QUAD): Fix typo.
13800 (frv_expand_prologue): Report stack usage.
13802 2012-07-31 Steven Bosscher <steven@gcc.gnu.org>
13805 * gengtype.c (struct walk_type_data): Add have_this_obj field.
13806 (walk_type): For functions that take a this_obj argument and
13807 that process fields with a GTY((length)) argument, write the
13808 test that write_types_local_process_field will write also at the
13809 head of the loop, effectively unswitching the loop.
13810 (write_func_for_structure, write_local_func_for_structure): Clear
13811 have_this_obj before calling walk_type.
13812 (write_local_func_for_structure): Set have_this_obj before walk_type.
13813 (write_array): Set have_this_obj for output of local pointer walking
13814 functions but not for marker functions.
13815 (write_types_local_process_field): Assert have_this_obj is set.
13817 * rtl.h (simplify_using_condition): Adjust prototype using bitmap
13820 2012-07-30 Nathan Froyd <froydnj@gcc.gnu.org>
13823 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13824 * targhooks.c (default_mode_dependent_address_p): Delete code
13825 for GO_IF_MODE_DEPENDENT_ADDRESS.
13826 * system.h (GO_IF_MODE_DEPENDENT_ADDRESS): Poison.
13827 * doc/tm.texi.in (GO_IF_MODE_DEPENDENT_ADDRESS): Delete documention.
13828 * doc/tm.texi: Regenerate.
13829 * config/alpha.h (GO_IF_MODE_DEPENDENT_ADDRESS): Move code to...
13830 * config/alpha.c (alpha_mode_dependent_address_p): ...here. New
13832 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13833 * config/cr16/cr16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13834 * config/mep/mep.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13835 * config/vax/vax-protos.h (vax_mode_dependent_address_p): Delete.
13836 * config/vax/vax.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13837 * config/vax/vax.c (vax_mode_dependent_address_p): Make static.
13839 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13841 2012-07-30 Nathan Froyd <froydnj@gcc.gnu.org>
13843 * expmed.h (NUM_MODE_VECTOR_INT): Define.
13844 (struct expmed_op_cheap, struct expmed_op_costs): New structures.
13845 (struct target_expmed): Convert x_mul_highpart_cost and
13846 x_mul_widen_cost fields to be indexed by integer modes.
13847 Convert x_sdiv_pow2_cheap and x_smod_pow2_cheap fields to be
13848 of type struct expmed_op_cheap. Convert other cost fields to be
13849 of type struct_expmed_op_costs.
13850 (mul_widen_cost_ptr, mul_highpart_cost_ptr): Adjust for new
13851 indexing of respective fields.
13852 (expmed_op_cheap_ptr): New function.
13853 (sdiv_pow2_cheap_ptr, smod_pow2_cheap_ptr): Call it.
13854 (expmed_op_cost_ptr): New function.
13855 (add_cost_ptr, neg_cost_ptr, shift_cost_ptr, shiftadd_cost_ptr,
13856 shiftsub0_cost_ptr, shiftsub1_cost_ptr, mul_cost_ptr,
13857 sdiv_cost_ptr, udiv_cost_ptr): Call it.
13859 2012-07-30 Sandra Loosemore <sandra@codesourcery.com>
13860 Julian Brown <julian@codesourcery.com>
13862 * doc/invoke.texi (MIPS Options): Document -mno-float.
13863 * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Make it know
13866 2012-07-30 Joseph Myers <joseph@codesourcery.com>
13868 * doc/sourcebuild.texi (Subdirectories): Document common subdirectory.
13870 2012-07-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13872 PR middle-end/53823
13873 * expmed.c (expand_mult): Skip synth_mult for constant double op1 except
13874 for special cases. Don't initialize coeff and is_neg.
13876 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
13877 Richard Earnshaw <rearnsha@arm.com>
13879 * target.def (vector_alignment): New target hook.
13880 * doc/tm.texi.in (TARGET_VECTOR_ALIGNMENT): Document new hook.
13881 * doc/tm.texi: Regenerate.
13882 * targhooks.c (default_vector_alignment): New function.
13883 * targhooks.h (default_vector_alignment): Add prototype.
13884 * stor-layout.c (layout_type): Use targetm.vector_alignment.
13885 * config/arm/arm.c (arm_vector_alignment): New function.
13886 (TARGET_VECTOR_ALIGNMENT): Define.
13888 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Use
13889 vector type alignment instead of size.
13890 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Use
13891 element type size directly instead of computing it from alignment.
13892 Fix variable naming and comment.
13894 2012-07-30 Kirill Yukhin <kirill.yukhin@intel.com>
13895 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13897 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDSEED_SET): New.
13898 (OPTION_MASK_ISA_RDSEED_UNSET): Likewise.
13899 (ix86_handle_option): Handle mrdseed option.
13900 * config.gcc (i[34567]86-*-*): Add rdseedintrin.h.
13901 (x86_64-*-*): Likewise.
13902 * config/i386/prfchwintrin.h: New header.
13903 * config/i386/cpuid.h (bit_RDSEED): New.
13904 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13906 * config/i386/i386-c.c: Define __RDSEED__ if needed.
13907 * config/i386/i386.c (ix86_target_string): Define -mrdseed option.
13909 (ix86_option_override_internal): Handle new option.
13910 (ix86_valid_target_attribute_inner_p): Add OPT_mrdseed.
13911 (ix86_builtins): Add enum entries for RDSEED* builtins.
13912 (ix86_init_mmx_sse_builtins): Define new builtins.
13913 (ix86_expand_builtin): Expand RDSEED* builtins.
13914 * config/i386/i386.h (TARGET_RDSEED): New.
13915 * config/i386/i386.md (rdseed<mode>_1): New.
13916 * config/i386/i386.opt (mrdseed): New.
13917 * config/i386/x86intrin.h: Include rdseedintrin.h.
13919 2012-07-30 Richard Guenther <rguenther@suse.de>
13921 * tree-into-ssa.c (mark_def_sites): Also process virtual operands.
13922 (rewrite_stmt): Likewise.
13923 (rewrite_enter_block): Likewise.
13924 (pass_build_ssa): Do not update virtual SSA form during TODO.
13925 (mark_symbol_for_renaming): Do nothing if we are not in SSA form.
13926 * lto-streamer-in.c (lto_read_body): Set in_ssa_p earlier.
13928 2012-07-30 Oleg Endo <olegendo@gcc.gnu.org>
13931 * config/sh/sh.md (*movsi_index_disp, *movhi_index_disp): New
13934 2012-07-30 Oleg Endo <olegendo@gcc.gnu.org>
13937 * config/sh/sh.md (mov_neg_si_t): Move to Scc instructions section.
13938 Use t_reg_operand predicate. Add split for negated case.
13939 (ashrsi2_31): Pass get_t_reg_rtx to gen_mov_neg_si_t.
13940 * config/sh/sh.c (expand_ashiftrt): Likewise.
13942 2012-07-30 Oleg Endo <olegendo@gcc.gnu.org>
13945 * config/sh/sh.md (ashlsi3_d): Invoke gen_shifty_op directly instead
13946 of trying to emit ashlsi3_n.
13948 2012-07-30 Laurynas Biveinis <laurynas.biveinis@gmail.com>
13949 Steven Bosscher <steven@gcc.gnu.org>
13951 * gengtype.c (adjust_field_type): Diagnose duplicate "length"
13952 option applications and option being applied to arrays of atomic types.
13953 (walk_type): Allow "atomic" option on strings too.
13954 * dwarf2out.h (struct dw_vec_struct): Use the "atomic" GTY option
13955 for the array field.
13956 * vec.h: Describe the atomic object "A" type of the macros in
13957 the header comment.
13958 (VEC_T_GTY_ATOMIC, DEF_VEC_A, DEF_VEC_ALLOC_A): Define.
13959 * emit-rtl.c (locations_locators_vals): use the atomic object vector.
13960 * doc/gty.texi: Clarify that GTY option "length" is only for
13961 arrays of non-atomic objects. Fix typo in the description of the
13964 2012-07-27 Uros Bizjak <ubizjak@gmail.com>
13966 * config/i386/i386.c (ix86_avoid_lea_for_addr): Handle
13967 zero-extended addresses. Return false if the address has less
13968 than two components.
13969 (ix86_split_lea_for_addr): Unconditionally convert target and
13970 all address operands to requested mode.
13971 * config/i386/i386.md (*lea<mode>): Recover operands from curr_insn.
13972 Pass SImode to ix86_split_lea_for_addr when splitting zero-extended
13974 (zero-extended add splitter): New splitter to conditionally split
13975 non-destructive adds.
13976 (*zero_extendsidi2_rex64): Conditionally emit leal instead of movl.
13978 2012-07-28 Alan Modra <amodra@gmail.com>
13981 * config/rs6000/rs6000.c (rs6000_secondary_reload): Limit 32-bit
13982 multi-gpr reload to cases where predicate passes. Do the same for
13983 64-bit multi-gpr reload.
13985 2012-07-27 Nathan Froyd <froydnj@gcc.gnu.org>
13987 * expmed.h (alg_hash, alg_hash_used_p, sdiv_pow2_cheap,
13988 smod_pow2_cheap, zero_cost, add_cost, neg_cost, shift_cost)
13989 shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost,
13990 sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete
13991 macro definitions and re-purpose as inline functions.
13992 (alg_hash_entry_ptr, set_alg_hash_used_p, sdiv_pow2_cheap_ptr,
13993 set_sdiv_pow2_cheap, smod_pow2_cheap_ptr, set_smod_pow2_cheap,
13994 zero_cost_ptr, set_zero_cost, add_cost_ptr, set_add_cost,
13995 neg_cost_ptr, set_neg_cost, shift_cost_ptr, set_shift_cost,
13996 shiftadd_cost_ptr, set_shiftadd_cost, shiftsub0_cost_ptr,
13997 set_shiftsub0_cost, shiftsub1_cost_ptr, set_shiftsub1_cost,
13998 mul_cost_ptr, set_mul_cost, sdiv_cost_ptr, set_sdiv_cost,
13999 udiv_cost_ptr, set_udiv_cost, mul_widen_cost_ptr,
14000 set_mul_widen_cost, mul_highpart_cost_ptr, set_mul_highpart_cost):
14002 (convert_cost_ptr): New function, split out from...
14003 (set_convert_cost, convert_cost): ...here.
14004 * expmed.c, tree-ssa-loop-ivopts.c: Update for new functions.
14005 * gimple-ssa-strength-reduction.c: Likewise.
14007 2012-07-20 Ryan Mansfield <rmansfield@qnx.com>
14009 * gcc.c (main): Move GCC_DRIVER_HOST_INITIALIZATION after
14010 diagnostic_initialize.
14012 2012-07-27 Oleg Endo <olegendo@gcc.gnu.org>
14015 * config/sh/sh.c (shiftcosts): Remove case where first operand
14016 is a const_int. Move COSTS_N_INSNS usage into caller ...
14017 (sh_rtx_costs) ... here. Return false when shiftcosts cannot be
14018 calculated instead of MAX_COST.
14020 2012-07-27 Richard Guenther <rguenther@suse.de>
14022 * tree-cfg.c (gimple_can_merge_blocks_p): Do more fine-grained
14023 check whether SSA form is not up-to-date.
14024 * tree-flow.h (name_mappings_registered_p): Remove.
14025 * tree-into-ssa.c (struct repl_map_d): Remove.
14026 (repl_tbl): Likewise.
14027 (struct ssa_name_info): Add repl_set member.
14028 (update_ssa_obstack): New static global.
14029 (get_ssa_name_ann): Initialize repl_set.
14030 (clear_ssa_name_info): Assert age did not wrap.
14031 (repl_map_hash, repl_map_eq, repl_map_free): Remove.
14032 (names_replaced_by): Adjust.
14033 (add_to_repl_tbl): Likewise.
14034 (dump_tree_ssa_stats): Likewise.
14035 (init_update_ssa): Initialize update_ssa_obstack.
14036 (delete_update_ssa): Free update_ssa_obstack.
14037 (name_mappings_registered_p): Remove.
14038 (update_ssa): Adjust.
14040 2012-07-27 Segher Boessenkool <segher@kernel.crashing.org>
14042 * config/rs6000/constraints.md: Delete "q" constraint.
14043 * config/rs6000/dfp.md (movsd_hardfloat, movsd_softfloat):
14044 Delete the "q" alternative.
14045 * config/rs6000/predicates.md (gpc_reg_operand): Adjust.
14046 * config/rs6000/rs6000.c (rs6000_debug_reg_global)
14047 (rs6000_init_hard_regno_mode_ok, rs6000_dbx_register_number):
14048 adjust to MQ_REGNO removal.
14049 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust
14051 (REG_ALLOC_ORDER): Adjust comment. Remove MQ from alloc order.
14052 (enum reg_class): Adjust comment. Delete MQ_REGS.
14053 (REG_CLASS_CONTENTS): Adjust.
14054 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust comment.
14055 * config/rs6000/rs6000.md: Delete MQ_REGNO.
14056 (movsi_internal1, movsi_internal1_single, movhi_internal,
14057 movqi_internal, movcc_internal1, movsf_hardfloat,
14058 movsf_softfloat): Delete the "q" alternative.
14059 (ctr<mode>_internal1, ctr<mode>_internal2, ctr<mode>_internal5,
14060 ctr<mode>_internal6): Delete "q" constraint.
14062 2012-07-27 Richard Guenther <rguenther@suse.de>
14064 * tree-into-ssa.c (def_blocks_p): New typedef.
14065 (insert_phi_nodes_compare_def_blocks): New function.
14066 (insert_phi_nodes): Do not walk over referenced vars, instead
14067 walk over recorded def_blocks, record relevant ones and sort
14068 them to avoid repeated hashtable lookups.
14070 2012-07-27 Richard Guenther <rguenther@suse.de>
14072 * doc/invoke.texi (min-virtual-mappings, virtual-mappings-ratio):
14073 Remove param documentation.
14074 * params.def (PARAM_MIN_VIRTUAL_MAPPINGS,
14075 PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Remove.
14076 * tree-flow.h (mark_set_for_renaming): Remove.
14077 * tree-into-ssa.c (struct update_ssa_stats_d): Remove.
14078 (add_new_name_mapping): Remove bookkeeping code.
14079 (dump_update_ssa): Remove stats dumping code.
14080 (init_update_ssa): Remove stats allocation code.
14081 (delete_update_ssa): Remove stats freeing code.
14082 (mark_set_for_renaming): Remove.
14083 (switch_virtuals_to_full_rewrite_p): Likewise.
14084 (switch_virtuals_to_full_rewrite): Likewise.
14085 (update_ssa): Do not call switch_virtuals_to_full_rewrite.
14087 2012-07-27 Marek Polacek <polacek@redhat.com>
14089 * cgraphunit.c: Rename varpool_finalize_variable to
14090 varpool_finalize_decl in a comment.
14092 2012-07-27 Segher Boessenkool <segher@kernel.crashing.org>
14094 * common/config/rs6000/rs6000-common.c (rs6000_handle_option):
14095 Delete code for -mno-power, -mpower, and -mpower2.
14096 * config/rs6000/aix43.h (NON_POWERPC_MASKS): Delete.
14097 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
14099 (ASM_CPU_SPEC): Delete support for POWER and POWER2.
14100 * config/rs6000/aix51.h (NON_POWERPC_MASKS): Delete.
14101 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
14103 (ASM_CPU_SPEC): Delete support for POWER and POWER2.
14104 * config/rs6000/aix52.h (NON_POWERPC_MASKS): Delete.
14105 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
14107 (TARGET_POWER): Delete.
14108 * config/rs6000/aix53.h (NON_POWERPC_MASKS): Delete.
14109 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
14111 (TARGET_POWER): Delete.
14112 * config/rs6000/aix61.h (NON_POWERPC_MASKS): Delete.
14113 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
14115 (TARGET_POWER): Delete.
14116 * config/rs6000/darwin.h (TARGET_POWER): Delete.
14117 * config/rs6000/driver-rs6000.c (struct asm_names): Delete
14118 support for -mpower, -mpower2, and -mno-power.
14119 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
14121 (rs6000_cpu_cpp_builtins): Likewise.
14122 * config/rs6000/rs6000-cpus.def: Likewise.
14123 * config/rs6000/rs6000-tables.opt: Regenerate.
14124 * config/rs6000/rs6000.c (POWER_MASKS): Delete.
14125 (rs6000_option_override_internal): Adjust.
14126 (rs6000_conditional_register_usage): Adjust.
14127 (rs6000_emit_move): Adjust.
14128 (rs6000_common_init_builtins): Adjust.
14129 (rs6000_init_libfuncs): Adjust.
14130 (rs6000_output_function_prologue): Adjust.
14131 (rs6000_adjust_cost): Adjust.
14132 (struct rs6000_opt_masks): Delete MASK_POWER and MASK_POWER2.
14133 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for
14135 (TARGET_DEFAULT): Adjust.
14136 (PROCESSOR_POWER): Delete.
14137 (SHIFT_COUNT_TRUNCATED): Adjust.
14138 * config/rs6000/rs6000.md (extendqisi2): Delete POWER support.
14139 (extendqisi2_power): Delete.
14140 (extendqisi2_no_power): Adjust.
14141 (extendqihi2, extendqihi2_power, extendqihi2_no_power):
14143 (sminsi3, smaxsi3, uminsi3, umaxsi3): Adjust.
14144 (anonymous doz insn patterns): Delete.
14146 (abssi2_power): Delete.
14147 (abssi2_nopower): Adjust.
14148 (nabs_power, nabs_nopower): Likewise.
14149 (mulsi3, mulsi3_mq, mulsi3_no_mq, mulsi3_mq_internal1):
14150 Likewise. Delete anonymous post-reload splitter.
14151 (mulsi3_no_mq_internal1): rename to...
14152 (mulsi3_internal1): New define_insn.
14153 (mulsi3_mq_internal2, mulsi3_no_mq_internal2, mulsi3_internal2):
14155 (divmodsi4, divmodsi4_internal, udiv<mode>3, udivsi3_mq,
14156 udivsi3_no_mq, udivsi3, div<mode>3, divsi3_mq, div<mode>3_no_mq,
14157 udivmodsi4_normal, udivmodsi4_tests, udivmodsi4): Likewise.
14158 (mulh_call, mull_call, divss_call, divus_call, quoss_call,
14159 quous_call): Likewise.
14160 (maskir_internal1, maskir_internal2, maskir_internal3,
14161 maskir_internal4, maskir_internal5, maskir_internal6,
14162 maskir_internal7, maskir_internal8): Delete.
14163 (ashlsi3, ashlsi3_power, ashlsi3_no_power): Adjust.
14164 (anonymous sl insn patterns): Delete.
14165 (lshrsi3, lshrsi3_power, lshrsi3_no_power): Adjust.
14166 (lshrsi3_64): Adjust.
14167 (anonymous sr insn patterns): Delete.
14168 (anonymous rrib insn patterns): Delete.
14169 (ashrsi3, ashrsi3_power, ashrsi3_no_power): Adjust.
14170 (anonymous sra insn patterns): Delete.
14171 (sqrtsf2, sqrtdf2, sqrtdf2_fpr): Adjust.
14172 (fix_trunc<mode>si2, fix_trunc<mode>si2_internal,
14173 fctiwz_<mode>): Adjust.
14174 (mulsidi3, mulsidi3_mq, mulsidi3_no_mq, umulsidi3, umulsidi3_mq,
14175 umulsidi3_no_mq, smulsi3_highpart, smulsi3_highpart_mq,
14176 smulsi3_highpart_no_mq, umulsi3_highpart, umulsi3_highpart_mq,
14177 umulsi3_highpart_no_mq): Adjust.
14178 (ashldi3_power, lshrdi3_power, ashrdi3_power): Delete.
14179 (ashrdi3_no_power, ashldi3, ashldi3_internal1,
14180 lshrdi3_internal1): Adjust.
14181 (fix_trunctfsi2, fix_trunctfsi2_fprs): Adjust.
14182 (movti_power): Delete.
14183 (movti_string): Adjust.
14184 (stmsi8, stmsi7, stmsi6, stmsi5, stmsi4, stmsi3): Adjust.
14185 (stmsi8_power, stmsi7_power, stmsi6_power, stmsi5_power,
14186 stmsi4_power, stmsi3_power): Delete.
14187 (anonymous movmemsi insn patterns): Adjust.
14188 (lfq_power2, stfq_power2): Delete.
14189 (eq<mode>, eq<mode>_compare): Adjust.
14190 (eqsi_power): Delete.
14192 (anonymous le, lt, ge, gt insn patterns): Delete.
14193 * config/rs6000/rs6000.opt (mpower, mno-power, mpower2): Delete.
14194 * config/rs6000/sysv4.h (TARGET_POWER): Delete.
14195 * config/rs6000/t-aix43 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
14196 MULTILIB_MATCHES): Adjust.
14197 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
14198 -mpower, -mno-power, -mpower2, -mno-power2 documentation.
14199 Delete -mcpu=power and -mcpu=power2 documentation.
14201 2012-07-27 Segher Boessenkool <segher@kernel.crashing.org>
14203 * config/rs6000/601.md: New file.
14204 * config/rs6000/aix43.h (ASM_CPU_SPEC): Delete support for
14206 * config/rs6000/aix51.h (ASM_CPU_SPEC): Likewise.
14207 * config/rs6000/driver-rs6000.c (detect_processor_aix,
14208 struct asm_names): Likewise.
14209 * config/rs6000/rios1.md: Delete file.
14210 * config/rs6000/rios2.md: Delete file.
14211 * config/rs6000/rs6000-cpus.def: Delete definitions for RIOS
14213 * config/rs6000/rs6000-opts.h (enum processor_type): Delete
14214 PROCESSOR_RIOS1 and PROCESSOR_RIOS2.
14215 * config/rs6000/rs6000-tables.opt: Regenerated.
14216 * config/rs6000/rs6000.c (struct rios1_cost, struct rios2_cost):
14218 (rs6000_option_override_internal): Delete support for RIOS CPUs.
14219 (rs6000_conditional_register_usage): Adjust comment.
14220 (rs6000_issue_rate):Delete support for RIOS CPUs.
14221 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for
14223 (PROCESSOR_POWER): Change to PROCESSOR_PPC601.
14224 (PROCESSOR_DEFAULT): Change to PROCESSOR_PPC603.
14225 * config/rs6000/rs6000.md (define_attr "cpu"): Delete rios1
14227 (include "rios1.md", include "rios2.md"): Delete.
14228 (include "601.md"): New.
14229 * config/rs6000/rs6000.opt (enum rs6000_cpu): Default to
14231 * config/rs6000/t-aix43 (MULTILIB_MATCHES): Delete support
14233 * config/rs6000/t-rs6000 (MD_INCLUDES): Delete rios1.md and
14234 rios2.md . Add 601.md .
14236 2012-07-26 Richard Henderson <rth@redhat.com>
14238 * doc/extend.texi (attribute): Document hot/cold for labels.
14239 * predict.c (tree_estimate_probability_bb): Handle hot/cold
14240 attributes on user labels.
14241 * predict.def (PRED_HOT_LABEL, PRED_COLD_LABEL): New.
14243 2012-07-26 Andrew Jenner <andrew@codesourcery.com>
14244 Sandra Loosemore <sandra@codesourcery.com>
14246 * cse.c (find_comparison_args): Check for cycles of any length.
14248 2012-07-26 Nick Clifton <nickc@redhat.com>
14250 * config/mn10300/mn10300.c (REG_SAVE_BYTES): Delete.
14251 (mn10300_get_live_callee_saved_regs): If requested return a count
14252 of the number of bytes in the mask.
14253 (mn10300_expand_prologue): Add argument to invocation of
14254 mn10300_get_live_callee_regs.
14255 (mn10300_expand_epilogue): Compute reg_save_bytes by calling
14256 mn10300_get_live_callee_saved_regs.
14257 (mn10300_initial_offset): Likewise.
14258 * config/mn10300/mn10300-protos.h (mn10300_get_live_callee_saved_regs):
14260 * config/mn10300/mn10300.md (return_ret): Add argument to
14261 invocation of mn10300_get_live_callee_saved_regs.
14263 2012-07-26 Steven Bosscher <steven@gcc.gnu.org>
14265 PR regression/54084
14266 * sel-sched-ir.c (cmp_v_in_regset_pool): Clarify logic, fix
14267 pointer difference check.
14269 2012-07-26 Bill Schmidt <wschmidt@linux.ibm.com>
14271 * tree-ssa-loop-ivopts.c (mbc_entry_hash): Remove.
14272 (mbc_entry_eq): Likewise.
14273 (mult_costs): Likewise.
14274 (cost_tables_exist): Likewise.
14275 (initialize_costs): Likewise.
14276 (finalize_costs): Likewise.
14277 (tree_ssa_iv_optimize_init): Remove call to initialize_costs.
14278 (add_regs_cost): Remove.
14279 (multiply_regs_cost): Likewise.
14280 (add_const_cost): Likewise.
14281 (extend_or_trunc_reg_cost): Likewise.
14282 (negate_reg_cost): Likewise.
14283 (struct mbc_entry): Likewise.
14284 (multiply_by_const_cost): Likewise.
14285 (get_address_cost): Change add_regs_cost calls to add_cost lookups;
14286 change multiply_by_const_cost to mult_by_coeff_cost.
14287 (force_expr_to_var_cost): Likewise.
14288 (difference_cost): Change multiply_by_const_cost to mult_by_coeff_cost.
14289 (get_computation_cost_at): Change add_regs_cost calls to add_cost
14290 lookups; change multiply_by_const_cost to mult_by_coeff_cost.
14291 (determine_iv_cost): Change add_regs_cost calls to add_cost lookups.
14292 (tree_ssa_iv_optimize_finalize): Remove call to finalize_costs.
14293 * tree-ssa-address.c (expmed.h): New #include.
14294 (most_expensive_mult_to_index): Change multiply_by_const_cost to
14295 mult_by_coeff_cost.
14296 * gimple-ssa-strength-reduction.c (expmed.h): New #include.
14297 (stmt_cost): Change to use mult_by_coeff_cost, mul_cost, add_cost,
14298 neg_cost, and convert_cost instead of IVOPTS interfaces.
14299 (execute_strength_reduction): Remove calls to initialize_costs and
14301 * expmed.c (struct init_expmed_rtl): Add convert rtx_def.
14302 (init_expmed_one_mode): Initialize convert rtx_def; initialize
14303 x_convert_cost for related modes.
14304 (mult_by_coeff_cost): New function.
14305 * expmed.h (NUM_MODE_INT): New #define.
14306 (struct target_expmed): Add x_convert_cost matrix.
14307 (set_convert_cost): New inline function.
14308 (convert_cost): Likewise.
14309 (mult_by_coeff_cost): New extern decl.
14310 * tree-flow.h (initialize_costs): Remove decl.
14311 (finalize_costs): Likewise.
14312 (multiply_by_const_cost): Likewise.
14313 (add_regs_cost): Likewise.
14314 (multiply_regs_cost): Likewise.
14315 (add_const_cost): Likewise.
14316 (extend_or_trunc_reg_cost): Likewise.
14317 (negate_reg_cost): Likewise.
14318 * Makefile.in (gimple-ssa-strength-reduction.o): Update dependencies.
14319 (tree-ssa-address.o): Update dependencies.
14321 2012-07-26 Steven Bosscher <steven@gcc.gnu.org>
14323 * bitmap.h: Add explanation of sparse set as linked-list bitmap.
14324 * sbitmap.h: Add explanation about non-sparse sets as simple bitmap.
14325 (TEST_BIT): Make a static inline function for stronger type checking.
14326 (SET_BIT): Don't handle sbitmaps with popcount.
14327 (RESET_BIT): Likewise.
14328 (SET_BIT_WITH_POPCOUNT): New, like SET_BIT but with popcount.
14329 (RESET_BIT_WITH_POPCOUNT): New, like RESET_BIT but with popcount.
14330 * ebitmap.c (ebitmap_clear_bit): Use SET_BIT_WITH_POPCOUNT and
14331 RESET_BIT_WITH_POPCOUNT on wordmask bitmaps.
14332 (ebitmap_set_bit, ebitmap_and_into, ebitmap_and, ebitmap_ior_into,
14333 ebitmap_and_compl_into, ebitmap_and_compl): Likewise.
14334 * sparseset.h: Add explanation of sparse set representation.
14336 2012-07-26 Richard Guenther <rguenther@suse.de>
14338 PR tree-optimization/54098
14339 * tree-vrp.c (vrp_visit_phi_node): Iterate once more if the
14340 original range was UNDEFINED.
14342 2012-07-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14344 * config/arm/neon.ml (ops): Fix regexp for vld1Q_dups64 and
14345 vld1Q_dupu64 tests.
14347 2012-07-26 Oleg Endo <olegendo@gcc.gnu.org>
14350 * config/sh/sh.opt (mzdcbranch): New option.
14351 * doc/invoke.texi: Document it.
14352 * config/sh/sh.md (negsi_cond): Use TARGET_ZDCBRANCH as condition
14353 instead of TARGET_HARD_SH4.
14354 * config/sh/sh.c (sh_option_override): Set TARGET_ZDCBRANCH as default
14355 for TARGET_HARD_SH4.
14357 2012-07-25 Oleg Endo <olegendo@gcc.gnu.org>
14360 * config/sh/predicates.md (shift_count_operand): Handle not-SHMEDIA
14362 (p27_shift_count_operand, not_p27_shift_count_operand): New predicates.
14363 * config/sh/sh.md (ashlsi3): Remove parallel and T_REG clobber
14364 from expander. Do not emit shift insn for not-SHMEDIA case.
14365 (ashlsi3_std): Replace with ...
14366 (ashlsi3_k, ashlsi3_d): ... these new insns.
14367 * config/sh/sh.c (gen_ashift): Make static. Add sanity checks.
14368 Emit ashlsi3_k insn instead of ashlsi3_std in ASHIFT case.
14369 (gen_ashift_hi): Make static.
14370 * config/sh/sh-protos.h (gen_ashift, gen_ashift_hi): Remove forward
14373 2012-07-25 Bharathi Seshadri <bseshadr@cisco.com>
14374 Jim Wilson <jimwilso@cisco.com>
14376 * config/arm/bpabi.h (BE8_LINK_SPEC): Set according to
14377 TARGET_BIG_ENDIAN_DEFAULT.
14379 2012-07-25 Eric Botcazou <ebotcazou@adacore.com>
14381 * gimple-low.c (lower_try_catch): New function.
14382 (lower_stmt) <GIMPLE_TRY>: Use it to lower GIMPLE_TRY_CATCH.
14383 <GIMPLE_CATCH>: Delete.
14384 <GIMPLE_EH_FILTER>: Likewise.
14386 2012-07-25 Eric Botcazou <ebotcazou@adacore.com>
14388 * expr.c (expand_expr_real_1): Do not expand operand #1 and #2
14389 of BIT_FIELD_REF for ignored results.
14390 * fold-const.c (fold_ternary_loc) <BIT_FIELD_REF>: Check that the
14391 CONSTRUCTOR has vector type before using vector accessors on it.
14392 * gimplify.c (gimplify_compound_lval): Do not gimplify operand #1 and
14393 #2 of BIT_FIELD_REF.
14394 (gimplify_expr) <BIT_FIELD_REF>: Likewise.
14395 * tree-nested.c (convert_nonlocal_reference_op) <BIT_FIELD_REF>: Do
14396 not process operand #1 and #2.
14397 (convert_local_reference_op): Likewise.
14398 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Remove superfluous
14400 <BIT_FIELD_REF>: Reuse operand #1 and #2 directly.
14401 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Do not stabilize
14403 (UPDATE_FLAGS): Do not consider operand #2 of BIT_FIELD_REF.
14404 (build6_stat): Delete.
14405 * tree.h (build6_stat, build6, build6_stat_loc, build6_loc): Likewise.
14407 2012-07-25 Marc Glisse <marc.glisse@inria.fr>
14409 PR tree-optimization/30318
14410 * tree-vrp.c (extract_range_from_binary_expr_1) [PLUS_EXPR]:
14412 [MINUS_EXPR]: Merge with PLUS_EXPR.
14414 2012-07-25 Sandra Loosemore <sandra@codesourcery.com>
14415 Paul Brook <paul@codesourcery.com>
14418 * target.def (warn_func_return): New hook.
14419 * doc/tm.texi.in (TARGET_WARN_FUNC_RETURN): New hook.
14420 * doc/tm.texi: Regenerate.
14421 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14423 * ipa-pure-const.c (warn_function_noreturn): Check
14424 targetm.warn_func_return.
14425 * tree-cfg.c (execute_warn_function_return): Likewise.
14426 * config/spu/spu.c (spu_warn_func_return): New.
14427 (TARGET_WARN_FUNC_RETURN): Define.
14428 * config/rx/rx.c (rx_warn_func_return): New.
14429 (TARGET_WARN_FUNC_RETURN): Define.
14430 * config/avr/avr.c (avr_warn_func_return): New.
14431 (TARGET_WARN_FUNC_RETURN): Define.
14432 * config/arm/arm.c (arm_warn_func_return): New.
14433 (TARGET_WARN_FUNC_RETURN): Define.
14434 * config/mcore/mcore.c (mcore_warn_func_return): New.
14435 (TARGET_WARN_FUNC_RETURN): Define.
14436 (saved_warn_return_type, saved_warn_return_type_count): Remove.
14437 (mcore_reorg, mcore_handle_naked_attribute): Remove warn_return hack.
14439 2012-07-25 Siddhesh Poyarekar <siddhesh@redhat.com>
14441 * final.c [ASSEMBLER_DIALECT](do_assembler_dialects): New
14442 function to implement assembler dialects.
14443 (output_asm_insn): Use do_assembler_dialects.
14444 (asm_fprintf): Likewise.
14446 2012-07-25 Richard Henderson <rth@redhat.com>
14449 * libfuncs.h: Don't include optabs.h.
14450 (struct libfunc_entry): Use "int" for op, mode1, mode2 members.
14451 * optabs.c (hash_libfunc): Don't cast members to int.
14452 * Makefile.in (LIBFUNCS_H): Don't include OPTABS_H.
14454 2012-07-25 Dodji Seketeli <dodji@redhat.com>
14456 * basic-block.c: Fix typo in comment.
14458 2012-07-25 Kirill Yukhin <kirill.yukhin@intel.com>
14459 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14461 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PRFCHW_SET): New.
14462 (OPTION_MASK_ISA_PRFCHW_UNSET): Likewise.
14463 (ix86_handle_option): Handle mprfchw option.
14464 * config.gcc (i[34567]86-*-*): Add prfchwintrin.h.
14465 (x86_64-*-*): Likewise.
14466 * config/i386/prfchwintrin.h: New header.
14467 * config/i386/cpuid.h (bit_PRFCHW): New.
14468 (bit_BMI): Formatting fix.
14469 (bit_HLE): Likewise.
14470 (bit_RTM): Likewise.
14471 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14473 * config/i386/i386-c.c: Define __PRFCHW__ if needed.
14474 * config/i386/i386.c (ix86_target_string): Define
14475 -mprfchw option. Formatting fixes.
14476 (PTA_HLE): Formatting fix.
14478 (ix86_option_override_internal): Handle new option.
14479 (ix86_valid_target_attribute_inner_p): Add OPT_mprfchw.
14480 * config/i386/i386.h (TARGET_PRFCHW): New.
14481 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW.
14482 * config/i386/i386.opt (mprfchw): New.
14483 * config/i386/mm3dnow.h: Move _m_prefetchw from here to prfchwintrin.h.
14484 * config/i386/x86intrin.h: Include prfchwintrin.h.
14486 2012-07-25 Sergey Melnikov <sergey.melnikov@intel.com>
14488 * config/i386/i386.md (stack_protect_set): Disable the pattern
14489 for Android since Android libc (bionic) does not provide random
14490 value for stack protection guard at gs:0x14. Guard value
14491 will be provided from external symbol (default implementation).
14492 (stack_protect_set_<mode>): Likewise.
14493 (stack_protect_test): Likewise.
14494 (stack_protect_test_<mode>): Likewise.
14495 * defaults.h: Define macro TARGET_HAS_BIONIC to 0 - target does
14496 not have Bionic by default
14497 * config/linux.h: Redefine macro TARGET_HAS_BIONIC to (OPTION_BIONIC)
14498 Macro OPTION_BIONIC is defined in this file and provides Bionic
14499 accessibility status
14501 2012-07-25 Steven Bosscher <steven@gcc.gnu.org>
14503 * gimple-pretty-print.c (gimple_dump_bb_buff): Call pp_flush.
14505 2012-07-25 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14508 * config.gcc (i[34567]86-*-linux* | ...): Add btver2.
14509 (case ${target}): Add btver2.
14510 * config/i386/driver-i386.c (host_detect_local_cpu): Let
14511 -march=native recognize btver2 processors.
14512 * config/i386/i386-c.c (ix86_target_macros_internal): Add
14513 btver2 def_and_undef
14514 * config/i386/i386.c (struct processor_costs btver2_cost): New
14516 (m_BTVER2): New definition.
14517 (m_AMD_MULTIPLE): Includes m_BTVER2.
14518 (initial_ix86_tune_features): Add btver2 tune.
14519 (processor_target_table): Add btver2 entry.
14520 (static const char *const cpu_names): Add btver2 entry.
14521 (software_prefetching_beneficial_p): Add btver2.
14522 (ix86_option_override_internal): Add btver2 instruction sets.
14523 (ix86_issue_rate): Add btver2.
14524 (ix86_adjust_cost): Add btver2.
14525 * config/i386/i386.h (TARGET_BTVER2): New definition.
14526 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver2.
14527 (enum processor_type): Add PROCESSOR_BTVER2.
14528 * config/i386/i386.md (define_attr "cpu"): Add btver2.
14530 2012-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
14532 * doc/tm.texi: Regenerate.
14533 * targhooks.c (default_init_cost): Add prologue and epilogue costs.
14534 (default_add_stmt_cost): Likewise; also handle NULL stmt_info.
14535 (default_finish_cost): Add prologue and epilogue costs.
14536 * targhooks.h (default_add_stmt_cost): Change parameter list.
14537 (default_finish_cost): Likewise.
14538 * target.def (init_cost): Change documentation string.
14539 (add_stmt_cost): Change documentation string and parameter list.
14540 (finish_cost): Likewise.
14541 * target.h (vect_cost_model_location): New enum.
14542 * tree-vectorizer.h (struct _slp_tree): Remove cost substruct.
14543 (struct _slp_instance): Remove cost substruct; rename stmt_cost_vec
14545 (SLP_INSTANCE_OUTSIDE_OF_LOOP_COST): Remove.
14546 (SLP_INSTANCE_STMT_COST_VEC): Rename to SLP_INSTANCE_BODY_COST_VEC.
14547 (SLP_TREE_OUTSIDE_OF_LOOP_COST): Remove.
14548 (struct _vect_peel_extended_info): Rename stmt_cost_vec to
14550 (struct _stmt_vec_info): Remove cost substruct.
14551 (STMT_VINFO_OUTSIDE_OF_LOOP_COST): Remove.
14552 (stmt_vinfo_set_outside_of_loop_cost): Remove.
14553 (builtin_vectorization_cost): New function.
14554 (vect_get_stmt_cost): Change to use builtin_vectorization_cost.
14555 (add_stmt_cost): Change parameter list.
14556 (finish_cost): Likewise.
14557 (vect_model_simple_cost): Likewise.
14558 (vect_model_store_cost): Likewise.
14559 (vect_model_load_cost): Likewise.
14560 (record_stmt_cost): Likewise.
14561 (vect_get_load_cost): Likewise.
14562 (vect_get_known_peeling_cost): Likewise.
14563 * tree-vect-loop.c (vect_get_known_peeling_cost): Change parameter
14564 list; call record_stmt_cost for prologue and epilogue costs.
14565 (vect_estimate_min_profitable_iters): Call add_stmt_cost for
14566 prologue and epilogue costs; remove computation of vec_outside_cost;
14567 return vec_prologue_cost and vec_epilogue_cost from finish_cost.
14568 (vect_model_reduction_cost): Revise call to add_stmt_cost for body
14569 costs; call add_stmt_cost for prologue and epilogue costs.
14570 (vect_model_induction_cost): Revise call to add_stmt_cost for body
14571 costs; call add_stmt_cost for prologue costs.
14572 * tree-vect-data-refs.c (vect_get_data_access_cost): Change parameter
14573 list for function and arguments for calls to vect_get_load_cost and
14574 vect_get_store_cost.
14575 (vect_peeling_hash_get_lowest_cost): Change argument list for calls to
14576 vect_get_data_access_cost and vect_get_known_peeling_cost; use
14577 temporary vectors prologue_cost_vec and epilogue_cost_vec for the
14578 latter call and discard their results; rename stmt_cost_vec to
14579 body_cost_vec; correct possible storage leak for body_cost_vec.
14580 (vect_peeling_hash_choose_best_peeling): Rename stmt_cost_vec to
14582 (vect_enhance_data_refs_alignment): Rename stmt_cost_vec to
14583 body_cost_vec; add extra dummy parameter on calls to
14584 vect_get_data_access_cost; tolerate null si->stmt; add vect_body to
14585 argument list on call to add_stmt_cost.
14586 * tree-vect-stmts.c (record_stmt_cost): Change parameter list;
14587 rename stmt_cost_vec to body_cost_vec; tolerate null stmt_info; call
14588 builtin_vectorization_cost; add "where" parameter on call to
14590 (vect_model_simple_cost): Change parameter list; call record_stmt_cost
14591 for prologue costs; remove call to stmt_vinfo_set_outside_of_loop_cost;
14592 rename stmt_cost_vec to body_cost_vec.
14593 (vect_model_promotion_demotion_cost): Add vect_body argument to call
14594 to add_stmt_cost; call add_stmt_cost for prologue costs; remove call
14595 to stmt_vinfo_set_outside_of_loop_cost.
14596 (vect_model_store_cost): Change parameter list; call record_stmt_cost
14597 for prologue costs; add vect_body argument to call to record_stmt_cost;
14598 rename stmt_cost_vec to body_cost_vec; remove call to
14599 stmt_vinfo_set_outside_of_loop_cost.
14600 (vect_get_store_cost): Rename stmt_cost_vec to body_cost_vec; add
14601 vect_body argument to calls to record_stmt_cost.
14602 (vect_model_load_cost): Change parameter list; rename stmt_cost_vec to
14603 body_cost_vec; add vect_body argument to calls to record_stmt_cost;
14604 remove call to stmt_vinfo_set_outside_of_loop_cost.
14605 (vect_get_load_cost): Change parameter list; rename stmt_cost_vec to
14606 body_cost_vec; add vect_body argument to calls to record_stmt_cost;
14607 call record_stmt_cost for prologue costs.
14608 (vectorizable_store): Change argument list for call to
14609 vect_model_store_cost.
14610 (vectorizable_load): Change argument list for call to
14611 vect_model_load_cost.
14612 (new_stmt_vec_info): Remove assignment to
14613 STMT_VINFO_OUTSIDE_OF_LOOP_COST.
14614 * config/spu/spu.c (spu_init_cost): Add prologue and epilogue costs.
14615 (spu_add_stmt_cost): Likewise; also handle NULL stmt_info.
14616 (spu_finish_cost): Add prologue and epilogue costs.
14617 * config/i386/i386.c (i386_init_cost): Add prologue and epilogue costs.
14618 (i386_add_stmt_cost): Likewise; also handle NULL stmt_info.
14619 (i386_finish_cost): Add prologue and epilogue costs.
14620 * config/rs6000/rs6000.c (rs6000_init_cost): Add prologue and epilogue
14622 (rs6000_add_stmt_cost): Likewise; also handle NULL stmt_info.
14623 (rs6000_finish_cost): Add prologue and epilogue costs.
14624 * tree-vect-slp.c (vect_free_slp_instance): Rename
14625 SLP_INSTANCE_STMT_COST_VEC to SLP_INSTANCE_BODY_COST_VEC.
14626 (vect_create_new_slp_node): Remove assignment to
14627 SLP_TREE_OUTSIDE_OF_LOOP_COST.
14628 (vect_get_and_check_slp_defs): Change parameter list; change argument
14629 lists to calls to vect_model_store_cost and vect_model_simple_cost.
14630 (vect_build_slp_tree): Change parameter list; change argument lists
14631 to calls to vect_model_load_cost, vect_get_and_check_slp_defs, and
14632 recursive self-calls; remove setting of outside_cost from
14633 SLP_TREE_OUTSIDE_OF_LOOP_COST; add vect_body argument to call to
14635 (vect_analyze_slp_instance): Rename stmt_cost_vec to body_cost_vec;
14636 rename SLP_INSTANCE_STMT_COST_VEC to SLP_INSTANCE_BODY_COST_VEC;
14637 remove assignment to SLP_INSTANCE_OUTSIDE_OF_LOOP_COST; record SLP
14639 (vect_bb_vectorization_profitable_p): Rename stmt_cost_vec to
14640 body_cost_vec; handle null ci->stmt; add vect_body argument to call
14641 to add_stmt_cost; simplify calls to targetm.vectorize.
14642 builtin_vectorization_cost; return vec_prologue_cost and
14643 vec_epilogue_cost from finish_cost.
14644 (vect_update_slp_costs_according_to_vf): Rename stmt_cost_vec to
14645 body_cost_vec; add vect_body argument to call to add_stmt_cost.
14647 2012-07-24 Richard Henderson <rth@redhat.com>
14649 * system.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Poison.
14650 * config/cris/cris.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
14651 * config/h8300/h8300.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
14652 * config/mn10300/mn10300.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
14653 * config/rs6000/rs6000.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove
14655 * config/v850/v850.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
14656 * config/v850/v850.md (fixuns_truncsfsi2, fixuns_truncdfsi2): New.
14657 (fix_truncsfsi2, fix_truncdfsi2): Avoid double FIX.
14658 * config/vax/vax.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
14659 * config/vax/vax.md (fixuns_trunc<VAXfp><VAXint>): New.
14660 * doc/tm.texi.in (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
14661 * doc/tm.texi: Rebuild.
14663 2012-07-24 Richard Henderson <rth@redhat.com>
14665 * optabs.def: New file.
14666 * Makefile.in (OPTABS_H): Add insn-opinit.h.
14667 (MOSTLYCLEANFILES): Likewise.
14668 (insn-opinit.o): Remove reload.h
14669 (simple_rtl_generated_c): Remove insn-opinit.c.
14670 (s-opinit): New rule.
14671 (build/genopinit.o): Add optabs.def.
14672 * genopinit.c (rtx_upname): New.
14673 (optabs): Extract to optabs.def
14674 (enum optab_tag, struct optab_def_d, optabs): New.
14675 (struct pattern_d, patterns): New.
14676 (match_pattern): Split out from ...
14677 (gen_insn): ... here. Push matches on patterns vec.
14678 (pattern_cmp, optab_kind_cmp, optab_rcode_cmp): New.
14679 (header_file_name, source_file_name, handle_arg): New.
14680 (open_outfile): New.
14681 (main): Sort and emit new tables. Generate lookup_handler,
14682 raw_optab_handler, swap_optab_enable.
14683 * libfuncs.h (libfunc_entry): Change "size_t optab" to "optab op".
14684 * optabs.c (code_to_optab_): Remove.
14685 (hash_libfunc): Update for optab name change.
14686 (eq_libfunc): Likewise.
14687 (convert_optab_libfunc): Update computation of optab member;
14688 use the new convlib_def table.
14689 (optab_libfunc): Similarly.
14690 (set_optab_libfunc, set_conv_libfunc): Likewise.
14691 (sign_expand_binop): Use swap_optab_enable instead of fake optabs.
14692 (init_insn_codes, init_optab, init_optabv, init_convert_optab): Remove.
14693 (init_optabs): Don't call them; export the data to optabs.def.
14694 (gen_int_libfunc, gen_fp_libfunc): Export non-static.
14695 (gen_fixed_libfunc, gen_signed_fixed_libfunc): Likewise.
14696 (gen_unsigned_fixed_libfunc, gen_int_fp_libfunc): Likewise.
14697 (gen_intv_fp_libfunc, gen_int_fp_fixed_libfunc): Likewise.
14698 (gen_int_fp_signed_fixed_libfunc, gen_int_fixed_libfunc): Likewise.
14699 (gen_int_signed_fixed_libfunc): Likewise.
14700 (gen_int_unsigned_fixed_libfunc): Likewise.
14701 (gen_interclass_conv_libfunc, gen_int_to_fp_conv_libfunc): Likewise.
14702 (gen_ufloat_conv_libfunc): Likewise.
14703 (gen_int_to_fp_nondecimal_conv_libfunc): Likewise.
14704 (gen_fp_to_int_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
14705 (gen_trunc_conv_libfunc, gen_extend_conv_libfunc): Likewise.
14706 (gen_fract_conv_libfunc, gen_fractuns_conv_libfunc): Likewise.
14707 (gen_satfract_conv_libfunc, gen_satfractuns_conv_libfunc): Likewise.
14708 (debug_optab_libfuncs): Update for optab representation change.
14709 * optabs.h: Include insn-opinit.h.
14710 (optab, convert_optab, direct_optab): New typedefs.
14711 (struct optab_handlers, struct widening_optab_handlers): Remove.
14712 (struct optab_libcall_d): Rename from optab_d; remove code_,
14713 handlers, widening members.
14714 (struct convert_optab_libcall_d): Rename from convert_optab_d;
14715 remove code_ and handlers members.
14716 (enum optab_index, enum convert_optab_index): Remove.
14717 (enum direct_optab_index): Remove.
14718 (code_to_optab_): Fix array range.
14719 (optab_to_code): Covert to inline function.
14720 (optab_to_code_, convlib_def, normlib_def): Declare.
14721 (raw_optab_handler, swap_optab_enable): Declare.
14722 (unknown_optab): Remove; export to optabs.def
14723 (ssadd_optab, usadd_optab, sssub_optab, ussub_optab, ssmul_optab,
14724 usmul_optab, ssdiv_optab, usdiv_optab, ssneg_optab, usneg_optab,
14725 ssashl_optab, usashl_optab, add_optab, sub_optab, smul_optab,
14726 addv_optab, subv_optab, smul_highpart_optab, umul_highpart_optab,
14727 smul_widen_optab, umul_widen_optab, usmul_widen_optab,
14728 smadd_widen_optab, umadd_widen_optab, ssmadd_widen_optab,
14729 usmadd_widen_optab, smsub_widen_optab, umsub_widen_optab,
14730 ssmsub_widen_optab, usmsub_widen_optab, sdiv_optab, smulv_optab,
14731 sdivv_optab, sdivmod_optab, udiv_optab, udivmod_optab, smod_optab,
14732 umod_optab, fmod_optab, remainder_optab, ftrunc_optab, and_optab,
14733 ior_optab, xor_optab, ashl_optab, lshr_optab, ashr_optab, rotl_optab,
14734 rotr_optab, vashl_optab, vlshr_optab, vashr_optab, vrotl_optab,
14735 vrotr_optab, smin_optab, smax_optab, umin_optab, umax_optab, pow_optab,
14736 atan2_optab, fma_optab, fms_optab, fnma_optab, fnms_optab, mov_optab,
14737 movstrict_optab, movmisalign_optab, storent_optab, neg_optab,
14738 negv_optab, abs_optab, absv_optab, one_cmpl_optab, bswap_optab,
14739 ffs_optab, clz_optab, ctz_optab, clrsb_optab, popcount_optab,
14740 parity_optab, sqrt_optab, sincos_optab, sin_optab, asin_optab,
14741 cos_optab, acos_optab, exp_optab, exp10_optab, exp2_optab, expm1_optab,
14742 ldexp_optab, scalb_optab, significand_optab, logb_optab, ilogb_optab,
14743 log_optab, log10_optab, log2_optab, log1p_optab, floor_optab,
14744 ceil_optab, btrunc_optab, round_optab, nearbyint_optab, rint_optab,
14745 tan_optab, atan_optab, copysign_optab, signbit_optab, isinf_optab,
14746 cmp_optab, ucmp_optab, eq_optab, ne_optab, gt_optab, ge_optab,
14747 lt_optab, le_optab, unord_optab, strlen_optab, cbranch_optab,
14748 cmov_optab, cstore_optab, ctrap_optab, push_optab, addcc_optab,
14749 reduc_smax_optab, reduc_umax_optab, reduc_smin_optab, reduc_umin_optab,
14750 reduc_splus_optab, reduc_uplus_optab, ssum_widen_optab,
14751 usum_widen_optab, sdot_prod_optab, udot_prod_optab, vec_set_optab,
14752 vec_extract_optab, vec_init_optab, vec_shl_optab, vec_shr_optab,
14753 vec_realign_load_optab, vec_widen_umult_hi_optab,
14754 vec_widen_umult_lo_optab, vec_widen_smult_hi_optab,
14755 vec_widen_smult_lo_optab, vec_widen_umult_even_optab,
14756 vec_widen_umult_odd_optab, vec_widen_smult_even_optab,
14757 vec_widen_smult_odd_optab, vec_widen_ushiftl_hi_optab,
14758 vec_widen_ushiftl_lo_optab, vec_widen_sshiftl_hi_optab,
14759 vec_widen_sshiftl_lo_optab, vec_unpacks_hi_optab, vec_unpacks_lo_optab,
14760 vec_unpacku_hi_optab, vec_unpacku_lo_optab, vec_unpacks_float_hi_optab,
14761 vec_unpacks_float_lo_optab, vec_unpacku_float_hi_optab,
14762 vec_unpacku_float_lo_optab, vec_pack_trunc_optab, vec_pack_ssat_optab,
14763 vec_pack_usat_optab, vec_pack_sfix_trunc_optab,
14764 vec_pack_ufix_trunc_optab, powi_optab, sync_compare_and_swap_optab,
14765 sync_lock_test_and_set_optab, sync_old_add_optab, sync_old_sub_optab,
14766 sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab,
14767 sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab,
14768 sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab,
14769 sync_new_nand_optab, sext_optab, zext_optab, trunc_optab, sfix_optab,
14770 ufix_optab, sfixtrunc_optab, ufixtrunc_optab, sfloat_optab,
14771 ufloat_optab, lrint_optab, lround_optab, lfloor_optab, lceil_optab,
14772 fract_optab, fractuns_optab, satfract_optab, satfractuns_optab,
14773 vec_load_lanes_optab, vec_store_lanes_optab, vcond_optab, vcondu_optab,
14774 movcc_optab, reload_in_optab, reload_out_optab, movmem_optab,
14775 setmem_optab, cmpstr_optab, cmpstrn_optab, cmpmem_optab,
14776 sync_lock_release_optab, sync_add_optab, sync_sub_optab,
14777 sync_ior_optab, sync_and_optab, sync_xor_optab, sync_nand_optab,
14778 atomic_exchange_optab, atomic_compare_and_swap_optab,
14779 atomic_load_optab, atomic_store_optab, atomic_add_fetch_optab,
14780 atomic_sub_fetch_optab, atomic_and_fetch_optab,
14781 atomic_nand_fetch_optab, atomic_xor_fetch_optab, atomic_or_fetch_optab,
14782 atomic_fetch_add_optab, atomic_fetch_sub_optab, atomic_fetch_and_optab,
14783 atomic_fetch_nand_optab, atomic_fetch_xor_optab, atomic_fetch_or_optab,
14784 atomic_add_optab, atomic_sub_optab, atomic_and_optab,
14785 atomic_nand_optab, atomic_xor_optab, atomic_or_optab,
14786 atomic_always_lock_free_optab, atomic_is_lock_free_optab,
14787 atomic_thread_fence_optab, atomic_signal_fence_optab,
14788 vec_perm_optab, vec_perm_const_optab): Likewise.
14789 (struct target_optabs): Remove x_optab_table, x_convert_optab_table,
14790 and x_direct_optab_table members; add pat_enable.
14791 (optab_table, convert_optab_table, direct_optab_table): Remove.
14792 (optab_handler): Use raw_optab_handler.
14793 (widening_optab_handler, convert_optab_handler): Likewise.
14794 (set_optab_handler, set_widening_optab_handler): Remove.
14795 (set_convert_optab_handler, set_direct_optab_handler): Remove.
14796 (direct_optab_handler): Defer to optab_handler.
14797 * rtl.h (NON_GENERATOR_NUM_RTX_CODE): New.
14799 2012-07-24 Jason Merrill <jason@redhat.com>
14801 * bitmap.c (bitmap_descriptor): Adjust order of parameters to
14802 match MEM_STAT_DECL.
14803 * statistics.h (ALONE_FINAL_MEM_STAT_DECL): Correct typo.
14805 2012-07-24 Richard Henderson <rth@redhat.com>
14807 * optabs.h (struct optab_d): Rename code member to code_.
14808 (struct convert_optab_h): Likewise.
14809 (code_to_optab_): Rename from code_to_optab.
14810 (code_to_optab, optab_to_code): New.
14811 * dojump.c (do_compare_rtx_and_jump): Use code_to_optab.
14812 * ifcvt.c (noce_emit_move_insn): Likewise.
14813 * optabs.c (simplify_expand_binop): Use optab_to_code.
14814 (expand_simple_binop, shift_optab_p, commutative_optab_p): Likewise.
14815 (avoid_expensive_constant, expand_binop_directly): Likewise.
14816 (expand_binop, expand_simple_unop, expand_unop_direct): Likewise.
14817 (expand_unop, prepare_float_lib_cmp, expand_fixed_convert): Likewise.
14818 (have_insn_for, debug_optab_libfuncs): Likewise.
14819 (init_optab, init_optabv, init_convert_optab): Update for optab
14820 member name change.
14822 * libfuncs.h: Include optabs.h.
14823 * dwarf2out.c, lto-streamer.in.c: Don't include libfuncs.h.
14824 * Makefile.in (LIBFUNCS_H): Add OPTABS_H.
14825 (lto-streamer-in.o, dwarf2out.o): Update deps.
14827 * optabs.h (unknown_optab): New.
14828 * builtins.c (interclass_mathfn_icode): Use it.
14829 * dojump.c (do_compare_rtx_and_jump): Likewise.
14830 * optabs.c (optab_for_tree_code, expand_binop): Likewise.
14831 * tree-vect-generic.c (add_rshift, expand_vector_divmod): Likewise.
14832 (expand_vector_operations_1): Likewise.
14833 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
14834 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
14836 2012-07-24 Steven Bosscher <steven@gcc.gnu.org>
14838 * alloc-pool.c (create_alloc_pool): Fix ENABLE_CHECKING check.
14840 2012-07-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14843 * config/arm/arm.c (arm_print_operand_address): Remove superfluous
14845 * config/arm/neon.md ("neon_vld3_lane<mode>":VD): Remove alignment
14847 ("neon_vld3_lane<mode>":VMQ): Likewise.
14848 ("neon_vld3_dup<mode>":VDX): Likewise.
14849 ("neon_vst3_lane<mode>":VD): Likewise.
14850 ("neon_vst3_lane<mode>":VMQ): Likewise.
14852 2012-07-24 Roland McGrath <mcgrathr@google.com>
14854 * arm.c (arm_get_frame_offsets): Don't use fixed regs for
14855 stack alignment padding.
14857 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
14860 * config/i386/i386.c (ix86_legitimate_address_p): Move check for
14861 negative constant address for TARGET_X32 ...
14862 (ix86_decompose_address): ... here. Reject constant addresses
14863 that don't satisfy x86_64_immediate_operand predicate.
14865 2012-07-24 Julian Brown <julian@codesourcery.com>
14867 * doc/sourcebuild.texi (arm_hf_eabi): Document effective-target check.
14869 2012-07-24 Steven Bosscher <steven@gcc.gnu.org>
14871 * sbitmap.h (SBITMAP_ELT_BITS): Use "1u" trick as for BITMAP_WORD_BITS.
14872 Move test to check that there is a popcount function for the the number
14873 of bits in SBITMAP_ELT_BITS to sbitmap.c.
14874 * sbitmap.c: Test SBITMAP_ELT_BITS, not HOST_BITS_PER_WIDEST_FAST_INT.
14875 MEM_STAT_INFO): Define in terms of their ALONE counterparts.
14877 * configure.ac (GATHER_STATISTICS): Always define, non-zero if enabled.
14878 * configure: Regenerate.
14879 * statistics.h (GATHER_STATISTICS): Error out if it is not defined.
14880 (GCC_MEM_STAT_ARGUMENTS): New define.
14881 (ALONE_MEM_STAT_DECL): Define in terms of GCC_MEM_STAT_ARGUMENTS.
14882 (ALONE_FINAL_MEM_STAT_DECL, ALONE_FINAL_PASS_MEM_STAT): New defines.
14883 (MEM_STAT_DECL, FINAL_MEM_STAT_DECL, PASS_MEM_STAT,
14884 FINAL_PASS_MEM_STAT): Define.
14885 * ggc-internal.h (ggc_record_overhead): Use FINAL_MEM_STAT_DECL.
14886 * ggc.h (ggc_record_overhead, ggc_free_overhead,
14887 ggc_prune_overhead_list): Remove internal prototypes, they are defined
14888 already in ggc-internal.h.
14889 * ggc-common.c (struct loc_descriptor): Remove #ifdef GATHER_STATISTICS
14891 (add_statistics): Likewise.
14892 (dump_ggc_loc_statistics): Likewise. Return if GATHER_STATISTICS is 0.
14893 * ggc-zone.c (struct page_entry): Remove #ifdef GATHER_STATISTICS
14894 wrappers around "survived" and "stats" members.
14895 (alloc_large_page): Always initialize survived.
14896 (ggc_internal_alloc_zone_stat): Likewise.
14897 Remove #ifdef GATHER_STATISTICS wrappers. Record overhead if
14898 GATHER_STATISTICS is non-0.
14899 (ggc_free): Convert #ifdef GATHER_STATISTICS to if-code.
14900 (sweep_pages): Always increase survived.
14901 (ggc_collect_1): Convert #ifdef GATHER_STATISTICS to if-code.
14902 (calculate_average_page_survival): Always define.
14903 (ggc_collect): Convert #ifdef GATHER_STATISTICS to if-code.
14904 (ggc_print_statistics): Likewise.
14905 (ggc_pch_read): Likewise.
14906 * ggc-page.c (struct globals): Always define "stats" member.
14907 (ggc_internal_alloc_stat): Convert #ifdef GATHER_STATISTICS to if-code.
14908 (ggc_free): Likewise.
14909 (ggc_collec): Likewise.
14910 (ggc_print_statistics): Likewise.
14911 * bitmap.h (struct bitmap_head_def): Always define "desc" member.
14912 (bitmap_initialize_stat): Convert #ifdef GATHER_STATISTICS to if-code.
14913 * gimple.h (enum gimple_alloc_kind): Always define.
14914 (gimple_alloc_kind): Likewise.
14915 * tree-flow.h (phinodes_print_statistics): Always define.
14916 (ssanames_print_statistics): Likewise.
14917 * vec.h (vec_heap_free): Always define.
14918 (VEC_stack_alloc): Define if GATHER_STATISTICS is non-0.
14919 * alloc-pool.c (alloc_pool_descriptor): Always define.
14920 (create_alloc_pool): Convert #ifdef GATHER_STATISTICS to if-code.
14921 (empty_alloc_pool): Likewise.
14922 (pool_alloc): Likewise.
14923 (pool_free): Likewise.
14924 (dump_alloc_pool_statistics): Likewise.
14925 (print_statistics): Always define.
14926 * bitmap.c (struct bitmap_descriptor): Always define.
14927 (bitmap_register): Pass ALONE_FINAL_PASS_MEM_STAT.
14928 (register_overhead): Always define.
14929 (bitmap_element_free): Convert #ifdef GATHER_STATISTICS to if-code.
14930 (bitmap_element_allocate): Likewise.
14931 (bitmap_elt_clear_from): Likewise.
14932 (bitmap_obstack_alloc_stat): Likewise.
14933 (bitmap_gc_alloc_stat): Likewise.
14934 (bitmap_obstack_free): Likewise.
14935 (bitmap_find_bit): Likewise.
14936 (bitmap_ior_and_into): Likewise.
14937 (bitmap_print): Likewise.
14938 (dump_bitmap_statistics): Likewise. Return if GATHER_STATISTICS is 0.
14939 * gimple.c (gimple_alloc_counts, gimple_alloc_sizes): Always define.
14940 (gimple_alloc_kind_names): Likewise.
14941 (gimple_alloc_stat): Convert #ifdef GATHER_STATISTICS to if-code.
14942 (dump_gimple_statistics): Likewise. Return if GATHER_STATISTICS is 0.
14943 * rtl.c (rtx_alloc_counts, rtx_alloc_sizes, rtvec_alloc_counts,
14944 rtvec_alloc_sizes): Always define.
14945 (rvec_alloc): Convert #ifdef GATHER_STATISTICS to if-code.
14946 (rtx_alloc_stat): Likewise.
14947 (dump_rtx_statistics): Likewise. Return if GATHER_STATISTICS is 0.
14948 * tree.c (_obstack_allocated_p, tree_code_counts, tree_node_counts,
14949 tree_node_sizes, tree_node_kind_names): Always define.
14950 (record_node_allocation_statistics): Convert #ifdef GATHER_STATISTICS
14952 (type_hash_canon): Likewise.
14953 (dump_tree_statistics): Likewise.
14954 * tree-ssanames.c (ssa_name_nodes_reused, ssa_name_nodes_created):
14956 (ssanames_print_statistics): Likewise.
14957 (make_ssa_name_fn): Convert #ifdef GATHER_STATISTICS to if-code.
14958 * tree-phinodes.c (phi_nodes_reused, phi_nodes_created): Always define.
14959 (phinodes_print_statistics): Likewise.
14960 (allocate_phi_node): Convert #ifdef GATHER_STATISTICS to if-code.
14961 * vec.c (struct vec_descriptor): Always define.
14962 (hash_descriptor, eq_descriptor, ptr_hash_entry, hash_ptr, eq_ptr,
14963 vec_descriptor, rester_overhead, free_overhead): Likewise.
14964 (cmp_statistic): Likewise.
14965 (vec_heap_free): Convert #ifdef GATHER_STATISTICS to if-code.
14966 (vec_heap_o_reserve_1): Likewise.
14967 (dump_vec_loc_statistics): Likewise.
14969 2012-07-24 Richard Guenther <rguenther@suse.de>
14971 PR tree-optimization/53616
14972 * tree-loop-distribution.c (ldist_gen): Do not change
14973 partition ordering when merging partitions.
14975 2012-07-24 Alan Modra <amodra@gmail.com>
14979 * config/rs6000/constraints.md (Y): Use mem_operand_gpr.
14980 * config/rs6000/predicates.md (word_offset_memref_operand): Delete.
14981 Adjust all rs6000_legitimate_offset_address_p calls.
14982 * config/rs6000/rs6000-protos.h (mem_operand_gpr): Declare.
14983 (rs6000_secondary_reload_gpr): Declare.
14984 (rs6000_legitimate_offset_address_p): Update prototype.
14985 (rs6000_offsettable_memref_p): Delete.
14986 (rs6000_secondary_reload_ppc64): Delete.
14987 * config/rs6000/rs6000.c (address_offset): New function.
14988 (mem_operand_gpr): Likewise.
14989 (rs6000_legitimate_offset_address_p): Add worst_case param. When
14990 not worst_case assume class of regs with least restrictive offsets.
14992 (legitimate_lo_sum_address_p): Simplify register mode tests.
14993 (rs6000_legitimize_address): Likewise. Assume best case offset
14994 addressing. Combine ELF and MACHO lo_sum code.
14995 (rs6000_mode_dependent_address): Correct offset addressing limits.
14996 (rs6000_offsettable_memref_p): Make static, add reg_mode param.
14997 Use reg_mode to help rs6000_legitimate_offset_address_p.
14998 (rs6000_secondary_reload): Use address_offset. Handle 32-bit multi
14999 gpr load/store when offset too large.
15000 (rs6000_secondary_reload_gpr): Renamed rs6000_secondary_reload_ppc64.
15001 (rs6000_split_multireg_move): Adjust rs6000_offsettable_memref_p calls.
15002 * config/rs6000/rs6000.md (movdf_hardfloat32): Use 'Y' constraint
15003 for gpr load/store. Order alternatives as r->Y,Y->r,r->r and
15004 d->m,m->d,d->d. Correct size of gpr load/store.
15005 (movdf_softfloat32): Use 'Y' constraint for gpr load/store. Order
15007 (movti_ppc64): Likewise.
15008 (movdi_internal32): Likewise. Also disparage fprs.
15009 (movdi_mfpgpr, movdi_internal64): Likewise.
15010 (movtf_internal): Use 'm' for fpr load/store. Order alternatives.
15011 (movtf_softfloat): Order alternatives.
15012 (extenddftf2_internal): Use 'm' and 'Y' for store.
15013 (movti_power, movti_string): Use 'Y' for gpr load/store. Order.
15014 (stack_protect_setdi, stack_protect_testdi): Likewise.
15015 (movdf_hardfloat64_mfpgpr, movdf_hardfloat64): Order alternatives.
15016 (movdf_softfloat64): Likewise.
15017 (reload_<mode>_store): Adjust reload_di_store to provide
15018 reload_si_store as well.
15019 (reload_<mode>_load): Likewise.
15021 2012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
15024 * config/sh/predicates.md (general_movsrc_operand,
15025 general_movdst_operand): Reject T_REG.
15026 * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg,
15027 movsi_i, movsi_ie, movsi_i_lowpart, *movqi_reg_reg, *movhi_reg_reg):
15028 Remove T_REG alternatives.
15029 (*negtstsi): New insn.
15031 2012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
15034 * config/sh/sh.md (mulsf3_ie): Delete.
15035 (mulsf3_i4): Rename to mulsf3_i.
15036 (mulsf3): Emit mulsf3_i insn.
15038 2012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
15040 * config/sh/sh.md (addc1, subc1): Delete.
15041 (adddi3_compact): Use addc instead of addc1.
15042 (subdi3_compact): Use subc instead of subc1.
15044 2012-07-23 Uros Bizjak <ubizjak@gmail.com>
15046 * config/i386/i386-protos.h (ix86_lea_outperforms): Remove prototype.
15047 * config/i386/i386.c (ix86_lea_outperforms): Make static. Make
15048 split_cost argument signed.
15049 (ix86_avoid_lea_for_add): Cleanup.
15050 (ix86_use_lea_for_mov): Use INVALID_REGNUM instead of -1.
15051 (ix86_avoid_lea_for_addr): Ditto. Make split_cost signed.
15052 Use gen_lowpart instead of gen_rtx_SUBREG. Cleanup.
15054 2012-07-23 Ulrich Weigand <ulrich.weigand@linaro.org>
15056 * config/arm/arm.c (arm_reorg): Ensure all insns are split.
15058 2012-07-23 Uros Bizjak <ubizjak@gmail.com>
15061 * config/i386/i386.md (*lea): Add asserts to detect invalid addresses.
15062 * config/i386/i386.c (ix86_print_operand_address): Ditto.
15063 (ix86_decompose_address): Allow (zero_extend:DI (subreg:SI (...)))
15064 addresses. Prevent zero extensions of CONST_INT operands.
15066 2012-07-23 Steven Bosscher <steven@gcc.gnu.org>
15068 * sbitmap.h (struct int_list): Remove.
15069 (sbitmap_intersect_of_predsucc, sbitmap_union_of_predsucc):
15070 Remove prototypes of non-existing function.
15071 (sbitmap_intersect_of_predecessors, sbitmap_intersect_of_successors,
15072 sbitmap_union_of_predecessors, sbitmap_union_of_successors): Remove
15074 (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds,
15075 sbitmap_union_of_succs, sbitmap_union_of_preds): Move prototypes to...
15076 * basic-block.h: ... here.
15077 * sbitmap.c: Do not include basic-block.h.
15078 (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds,
15079 sbitmap_union_of_succs, sbitmap_union_of_preds): Move functions to...
15080 * cfganal.c: ... here.
15081 * bt-load.c (compute_out, link_btr_uses): Update for above changes.
15082 * gcse.c (compute_code_hoist_vbeinout): Likewise.
15083 * lcm.c (compute_antinout_edge, compute_available): Likewise.
15084 * Makefile.in: Fix sbitmap.o dependencies.
15086 2012-07-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15087 Nick Clifton <nickc@redhat.com>
15089 * config/frv/frv-protos.h (frv_ifcvt_machdep_init): Prototype.
15090 * config/frv/frv.c (frv_ifcvt_machdep_init): Change type of
15091 (unused) parameter to void *.
15093 2012-07-23 Richard Guenther <rguenther@suse.de>
15095 * tree-ssa-alias.c (dump_alias_info): Walk over local decls
15096 instead of referenced vars.
15098 2012-07-23 Steven Bosscher <steven@gcc.gnu.org>
15100 * coverage.c: Refer to "notes file" instead of "graph file"
15101 in all comments. Explain history of bbg prefix.
15102 * gcov-io.h: Likewise.
15103 * gcov.c: Likewise.
15104 (find_source): Likewise in fnotice.
15105 (read_graph_file): Likewise.
15106 (read_count_file): Likewise.
15107 * doc/gcov.texi: Document -fprofile-dir flag. Add "notes file"
15108 and "data file" explicitly in the explanation of the files.
15110 2012-07-22 Steven Bosscher <steven@gcc.gnu.org>
15112 PR tree-optimization/53881
15113 * tree-cfg.c (group_case_labels_stmt): Look up the basic block
15114 for each label and compare them instead of labels.
15116 2012-07-22 Steven Bosscher <steven@gcc.gnu.org>
15118 * opts.c (common_handle_option): Do not set
15119 flag_value_profile_transformations for -fprofile-generate.
15120 * profile.c (instrument_values): Use COUNTER_FOR_HIST_TYPE.
15121 (BB_TO_GCOV_INDEX): Remove.
15122 (output_location): Don't use it.
15123 (branch_prob): Likewise. Don't fiddle with the index of
15124 ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR. Use clear_aux_for_blocks.
15125 (find_spanning_tree):
15126 * gcov.c (struct function_info): Document that blocks 0 and 1
15127 are the entry resp. exit blocks in gcov, too, like in GCC itself.
15128 (solve_flow_graph): Use ENTRY_BLOCK and EXIT_BLOCK for special
15129 blocks identification.
15130 (output_lines): Likewise.
15131 * value-prof.c (gimple_value_profile_transformations): Do not
15132 test flag_value_profile_transformations again.
15133 (gimple_ic_transform): Take a gimple_stmt_iterator like all other
15134 transformation functions.
15135 (gimple_values_to_profile):
15136 Don't test flag_value_profile_transformations
15137 * tree-profile.c (tree_profiling): Assert that the cgraph is in
15138 the CGRAPH_STATE_IPA_SSA state.
15139 Do not set, or look at, after_tree_profile.
15140 * function.h (struct function): Remove after_tree_profile bit.
15141 * omp-low.c (expand_omp_taskreg): Don't set after_tree_profile.
15142 * tree-inline.c (initialize_cfun): Don't copy it.
15143 * lto-streamer-out.c (output_struct_function_base): Don't stream it.
15144 * lto-streamer-in.c (input_struct_function_base): Likewise.
15146 2012-07-22 Oleg Endo <olegendo@gcc.gnu.org>
15148 * config/sh/sh.h (TARGET_DYNSHIFT): New macro.
15149 (SH_DYNAMIC_SHIFT_COST): Use it.
15150 * config/sh/sh.c (expand_ashiftrt, shl_sext_kind): Likewise.
15151 (sh_dynamicalize_shift_p): Add TARGET_DYNSHIFT condition.
15152 Add sanity check for input value. Add function description.
15153 * config/sh/sh.md (ashlsi3, ashlsi3_std, ashrsi3_d, lshrsi3,
15154 lshrsi3_d): Use TARGET_DYNSHIFT.
15156 2012-07-22 Oleg Endo <olegendo@gcc.gnu.org>
15158 * config/sh/sh.md (negc): Delete expander.
15159 (*negc): Rename insn to negc.
15161 2012-07-22 Uros Bizjak <ubizjak@gmail.com>
15164 * config/i386/i386.md (*lea): New insn pattern.
15166 (*lea<mode>_2): Ditto.
15167 (*lea_{3,4,5,6}_zext): Ditto.
15168 * config/i386/predicates.md (lea_address_operand): Do not reject
15169 zero-extended address operands.
15170 * config/i386/constraints.md (j): Remove address constraint.
15171 * config/i386/i386.c (ix86_decompose_address): Allow SImode subreg
15173 (ix86_print_operand_address): Handle SImode subreg of an address.
15174 (ix86_avoid_lea_for_addr): Reject zero-extended addresses for now.
15176 2012-07-22 Hans-Peter Nilsson <hp@axis.com>
15178 Emit executable-stack note correctly for CRIS targets.
15179 * config/cris/cris.c (cris_file_end): New function.
15180 (TARGET_ASM_FILE_END): Define.
15182 2012-07-22 Chung-Lin Tang <cltang@codesourcery.com>
15183 Maxim Kuvyrkov <maxim@codesourcery.com>
15184 NetLogic Microsystems Inc.
15186 * config/mips/mips.c (mips_issue_rate): Handle XLP.
15187 * config/mips/mips.md: Include xlp.md.
15188 * config/mips/xlp.md: New file.
15190 2012-07-21 Steven Bosscher <steven@gcc.gnu.org>
15192 PR gcov-profile/32543
15193 * profile.c (branch_prob): Update total_num_edges_instrumented and
15194 report the number of edges to instrument.
15196 2012-07-21 Oleg Endo <olegendo@gcc.gnu.org>
15198 * config/sh/sh.md: Correct comment regarding clrt and sett insns.
15200 2012-07-21 Andrew Pinski <apinski@cavium.com>
15202 * config/mips/mips.md (*popcountdi2_trunc): New pattern
15203 to handle popcount of a truncation.
15205 2012-07-21 Andrew Pinski <apinski@cavium.com>
15207 * config/mips/mips-protos.h (mips_expand_ext_as_unaligned_load):
15208 Add a bool argument.
15209 * config/mips/mips.c (mips_block_move_straight): Update call to
15210 mips_expand_ext_as_unaligned_load.
15211 (mips_expand_ext_as_unaligned_load): Add unsigned_p argument.
15212 Accept DImode dest when the width is that of SImode.
15213 * config/mips/mips.md (extv): Update call to
15214 mips_expand_ext_as_unaligned_load.
15217 2012-07-21 Andrew Pinski <apinski@cavium.com>
15219 * config/mips/mips.c (mips_get_unaligned_mem): Copy *op after calling
15222 2012-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
15224 * config/mips/mips.md (define_attr sync_*): Move before "type".
15225 (define_attr "type"): New values "atomic" and "syncloop".
15226 * config/mips/sync.md (atomic_exchange<mode>, atomic_fetch_add<mode>):
15227 Set "type" attribute.
15228 * config/mips/generic.md (generic_atomic, generic_syncloop):
15230 * config/mips/10000.md, config/mips/20kc.md,
15231 * config/mips/24k.md, config/mips/4130.md,
15232 * config/mips/4k.md, config/mips/5400.md,
15233 * config/mips/5500.md, config/mips/5k.md,
15234 * config/mips/7000.md, config/mips/74k.md,
15235 * config/mips/9000.md, config/mips/loongson2ef.md,
15236 * config/mips/loongson3a.md, config/mips/octeon.md,
15237 * config/mips/sb1.md, config/mips/sr71k.md,
15238 * config/mips/xlr.md: Handle "atomic" and "syncloop" types.
15240 2012-07-20 Oleg Endo <olegendo@gcc.gnu.org>
15242 * config/sh/sh.md: Group and sort shift related patterns.
15243 (ashlsi3_n, *ashlhi3_n, lshrsi3_n): Remove length attributes.
15245 2012-07-20 Hans-Peter Nilsson <hp@axis.com>
15247 * config/cris/cris.c (cris_asm_output_ident): Remove unused
15248 local variables section_asm_op, size, buf.
15250 2012-07-20 Pat Haugen <pthaugen@us.ibm.com>
15251 Steven Bosscher <steven@gcc.gnu.org>
15253 * config/rs6000/power4.md (power4-store-update): Fix reservation.
15254 (power4-three): Likewise.
15256 2012-07-20 Sameera Deshpande <sameera.deshpande@arm.com>
15257 Greta Yorsh <Greta.Yorsh@arm.com>
15259 * config/arm/arm.c (arm_cortex_a15_tune): New tune.
15260 * config/arm/arm-cores.def (cortex-a15): Use it.
15262 2012-07-20 Sameera Deshpande <sameera.deshpande@arm.com>
15263 Greta Yorsh <Greta.Yorsh@arm.com>
15265 * config/arm/arm-protos.h (tune_params): Add prefer_ldrd_strd.
15266 * config/arm/arm.c (arm_slowmul_tune): Initialize it.
15267 (arm_fastmul_tune, arm_strongarm_tune): Likewise.
15268 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune): Likewise.
15269 (arm_cortex_tune, arm_cortex_a5_tune, arm_cortex_a9_tune): Likewise.
15270 (arm_fa726te_tune): Likewise.
15272 2012-07-20 Richard Guenther <rguenther@suse.de>
15274 * tree-dfa.c (collect_dfa_stats): Simplify.
15275 * tree-ssa-structalias.c (compute_may_aliases): Do not dump
15277 * cfgexpand.c (estimated_stack_frame_size): Walk over local
15278 decls instead of referenced vars.
15279 * tree-ssa.c (delete_tree_ssa): Simplify.
15280 * tree-tailcall.c (find_tail_calls): Walk over local decls
15281 instead of referenced vars.
15282 (add_virtual_phis): Remove.
15283 (tree_optimize_tail_calls_1): Instead mark the virtual operand
15286 2012-07-20 Steven Bosscher <steven@gcc.gnu.org>
15288 * basic-block.h (BB_FLAGS_TO_PRESERVE): New define.
15289 (brief_dump_cfg): Update prototype to take flags argument.
15290 (check_bb_profile): Remove prototype.
15291 * tracer.c (tracer): Update brief_dump_cfg calls.
15292 * cfghooks.c (dump_bb): Do not pass TDF_COMMENT to dump_bb_info.
15293 Call dump_bb_info before and after the cfghook dump_bb. Terminate
15294 the dump with a newline.
15295 (dump_flow_info): Do not call check_bb_profile.
15296 * cfg.c (clear_bb_flags): Update using BB_FLAGS_TO_PRESERVE.
15297 (check_bb_profile): Make static. Take indent and flags arguments.
15298 (dump_bb_info): Always dump loop depth. With TDF_DETAILS, call
15299 check_bb_profile. Print one edge per line.
15300 (brief_dump_cfg): Take a flags argument, and filter out
15301 TDF_COMMENT and TDF_DETAILS.
15302 * pretty-print.c (pp_base_newline): Set pp_needs_newline to false.
15303 * gimple-pretty-print.c (dump_gimple_bb_header): Do not use
15304 dump_bb_info here, it is already called from dump_bb. Idem for
15306 (dump_gimple_bb_footer): Likewise.
15307 (gimple_dump_bb_buff): Call pp_flush after dump_gimple_stmt to
15308 avoid broken dumps for statement histograms.
15309 (gimple_dump_bb): Handle ENTRY_BLOCK and EXIT_BLOCK. Do
15310 not call pp_flush here, the buffer should be empty.
15311 * sched-rgn.c (debug_region): Pass TDF_BLOCKS to dump_bb.
15312 * sched-vis.c (debug_bb_slim): Likewise.
15313 * tree-cfg.c (remove_bb): Pass dump_flags to dump_bb.
15314 (gimple_debug_bb): Pass TDF_BLOCKS to dump_bb.
15315 (gimple_dump_cfg): Do brief_dump_cfg with TDF_COMMENT.
15316 (dump_function_to_file): Do not call check_bb_profile on
15317 ENTRY_BLOCK and EXIT_BLOCK, check_bb_profile doesn't handle them.
15318 Use dump_bb instead of gimple_dump_bb.
15319 (print_loops_bb): Use dump_bb instead of gimple_dump_bb.
15320 * passes.c (execute_function_dump): Always call print_rtl_with_bb
15322 * cfgrtl.c (print_rtl_with_bb): Handle printing without an up-to-date
15323 CFG. With TDF_BLOCKS and TDF_DETAILS, do DF dumps at the top and
15324 bottom of each basic block.
15326 2012-07-20 Richard Guenther <rguenther@suse.de>
15328 PR tree-optimization/54031
15329 * tree-ssa-ccp.c (get_value_from_alignment): Use
15330 get_pointer_alignment_1.
15332 2012-07-20 Richard Guenther <rguenther@suse.de>
15334 * tree-inline.c (add_local_variables): Remove check_var_ann
15335 parameter and dead code.
15336 (expand_call_inline): Adjust.
15337 (tree_function_versioning): Likewise.
15339 2012-07-20 Jakub Jelinek <jakub@redhat.com>
15342 * tree-vrp.c (nonnull_arg_p): Handle all nonnull attributes instead
15343 of just the first one.
15345 2012-07-20 Richard Guenther <rguenther@suse.de>
15347 * builtins.c (get_object_alignment_2): Correct offset handling
15348 when using type alignment of a MEM_REF kind base.
15350 2012-07-20 Kirill Yukhin <kirill.yukhin@intel.com>
15353 * config/i386/lzcntintrin.h (_lzcnt_u32): New.
15354 (_lzcnt_u64): Ditto.
15356 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
15358 * config/sparc/sparc.md (adddi3_insn_sp32): Add earlyclobber.
15360 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
15362 * tree-ssa-forwprop.c (combine_conversions): Punt if the RHS of the
15363 defining statement is a SSA name that occurs in abnormal PHIs.
15365 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
15367 * gimple-fold.c (canonicalize_constructor_val): Strip only useless type
15370 2012-07-19 Jakub Jelinek <jakub@redhat.com>
15372 PR rtl-optimization/53942
15373 * function.c (assign_parm_setup_reg): Avoid zero/sign extension
15374 directly from likely spilled non-fixed hard registers, move them
15377 2012-07-19 Steve Ellcey <sellcey@mips.com>
15379 * config/mips/mips.c (mips_set_mips16_mode): Clear SYNCI_MASK in
15382 2012-07-19 Jason Merrill <jason@redhat.com>
15385 * dwarf2out.c (get_die_parent): New.
15386 (generate_type_signature): Use it.
15388 2012-07-19 Richard Henderson <rth@redhat.com>
15390 * config/ia64/vect.md (smulv4hi3_highpart): New.
15391 (umulv4hi3_highpart): New.
15392 (vec_widen_smult_even_v4hi): Rename from pmpy2_even.
15393 (vec_widen_smult_odd_v4hi): Rename from pmpy2_odd.
15394 (udot_prodv8qi, sdot_prodv8qi): Remove.
15395 (sdot_prodv4hi, udot_prodv4hi): Remove.
15396 * config/ia64/ia64.c (ia64_expand_dot_prod_v8qi): Remove.
15397 * config/ia64/ia64-protos.h: Update.
15399 * tree-vect-patterns.c (vect_recog_divmod_pattern): Do not require
15400 vectors larger than UNITS_PER_WORD.
15402 * expr.c (store_constructor): Initialize icode with CODE_FOR_nothing.
15403 * tree-vect-stmts.c (vectorizable_operation): Use LAST_INSN_CODE for
15404 dummy != CODE_FOR_nothing value.
15406 2012-07-19 Uros Bizjak <ubizjak@gmail.com>
15408 * doc/tm.texi.in (MODE_AFTER): Add entity as the first macro argument.
15409 * doc/tm.texi: Regenerate.
15410 * mode-switching.c (optimize_mode_switching): Update MODE_AFTER call.
15411 * config/sh/sh.h (MODE_AFTER): Update.
15412 * config/epiphany/epiphany.h (MODE_AFTER): Update.
15414 2012-07-19 Jakub Jelinek <jakub@redhat.com>
15416 PR middle-end/54017
15417 * tree-cfgcleanup.c (cleanup_omp_return): Remove.
15418 (cleanup_tree_cfg_bb): Don't call it.
15419 * omp-low.c (expand_omp_sections): Fix up the !exit_reachable case
15422 2012-07-19 Christian Bruel <christian.bruel@st.com>
15425 * config/sh/sh.c (gen_far_branch): Set JUMP_LABEL for return jumps.
15427 2012-07-19 Richard Guenther <rguenther@suse.de>
15428 Eric Botcazou <ebotcazou@adacore.com>
15430 * tree-ssa-ccp.c (valid_lattice_transition): Clarify comment
15431 about transition from invariant to known bits.
15432 (likely_value): Addresses with UNDEFINED components are UNDEFINED.
15434 2012-07-19 Richard Guenther <rguenther@suse.de>
15436 PR tree-optimization/53970
15437 * tree-vect-data-refs.c (not_size_aligned): Avoid sign-compare warning.
15439 2012-07-19 Tristan Gingold <gingold@adacore.com>
15440 Richard Henderson <rth@redhat.com>
15442 * opts.c (finish_options): Handle UI_SEH.
15443 * expr.c (build_personality_function): Handle UI_SEH.
15444 * dwarf2out.c (dwarf2out_begin_prologue): Handle UI_SEH.
15445 * coretypes.h (unwind_info_type): Add UI_SEH.
15446 * config/i386/winnt.c (i386_pe_seh_emit_except_personality):
15448 (i386_pe_seh_init_sections): Likewise.
15449 * config/i386/cygming.h (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): Define.
15450 (TARGET_ASM_INIT_SECTIONS): Define.
15451 * common/config/i386/i386-common.c (TARGET_EXCEPT_UNWIND_INFO): Define.
15452 (i386_except_unwind_info): New function.
15454 2012-07-18 Maciej W. Rozycki <macro@codesourcery.com>
15455 Chao-ying Fu <fu@mips.com>
15457 * config/mips/mips.opt (mmcu): New option.
15458 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
15459 _mips_mcu when TARGET_MCU.
15460 (ASM_SPEC): Pass mcu options to the assembler.
15461 * doc/invoke.texi (MIPS Options): Document -mmcu and -mno-mcu.
15463 2012-07-18 Ralf Corsépius <ralf.corsepius@rtems.org>
15465 * config.gcc (v850-*-rtems*): New target.
15466 * config/v850/rtems.h: New.
15467 * config/v850/t-rtems: New.
15469 2012-07-18 Bill Schmidt <wschmidt@linux.ibm.com>
15471 * doc/invoke.texi: Add -fhoist-adjacent-loads and -ftree-slsr to list
15472 of flags controlling optimization; add -ftree-slsr to list of flags
15473 enabled by default at -O; add -fhoist-adjacent-loads to list of flags
15474 enabled by default at -O2; add -fvect-cost-model to list of flags
15475 enabled by default at -O3; document -fhoist-adjacent-loads and
15477 * opts.c (default_option): Make -ftree-slsr default at -O1 and above.
15478 * gimple-ssa-strength-reduction.c (gate_strength_reduction): Use
15480 * common.opt: Add -ftree-slsr with flag_tree_slsr.
15482 2012-07-18 Jie Zhang <jzhang918@gmail.com>
15483 Julian Brown <julian@codesourcery.com>
15485 * config/arm/arm.c (arm_rtx_costs_1): Adjust cost for CONST_VECTOR.
15486 (arm_size_rtx_costs): Likewise.
15487 (neon_valid_immediate): Add a case for double 0.0.
15489 2012-07-18 Andrew Stubbs <ams@codesourcery.com>
15490 Mark Shinwell <shinwell@codesourcery.com>
15491 Julian Brown <julian@codesourcery.com>
15493 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp)
15494 (*movdi_vfp_cortexa8, *movsf_vfp, *thumb2_movsf_vfp)
15495 (*movdf_vfp, *thumb2_movdf_vfp, *movsfcc_vfp)
15496 (*thumb2_movsfcc_vfp, *movdfcc_vfp, *thumb2_movdfcc_vfp): Add
15498 * config/arm/arm.md (neon_type): Update comment.
15500 2012-07-18 Richard Guenther <rguenther@suse.de>
15502 PR tree-optimization/53970
15503 * tree.h (contains_packed_reference): Remove.
15504 * expr.c (contains_packed_reference): Likewise.
15505 * tree-vect-data-refs.c (not_size_aligned): New function.
15506 (vector_alignment_reachable_p): Use it.
15507 (vect_supportable_dr_alignment): Likewise.
15509 2012-07-18 Richard Guenther <rguenther@suse.de>
15511 * tree.h (get_object_or_type_alignment): Remove.
15512 * builtins.c (get_object_alignment_2): New function copied from
15513 get_object_alignment_1. Take extra argument to indicate whether
15514 we take the address of EXP. Rework to use type alignment information
15515 if not, and return whether the result is an approximation or not.
15516 (get_object_alignment_1): Wrap around get_object_alignment_2.
15517 (get_pointer_alignment_1): Call get_object_alignment_2 indicating
15518 we take the address.
15519 (get_object_or_type_alignment): Remove.
15520 * expr.c (expand_assignment): Call get_object_alignment.
15521 (expand_expr_real_1): Likewise.
15523 2012-07-18 Nick Clifton <nickc@redhat.com>
15525 * doc/invoke.texi (ARM Options): Document -munaligned-access.
15527 2012-07-18 Oleg Endo <olegendo@gcc.gnu.org>
15529 * config/sh/sh.md (mulsidi3, umulsidi3): Remove constraints in
15530 expander. Use arith_reg_dest predicate.
15531 (rotldi3, rotrdi3): Remove constraints in expander.
15532 (adddi3_compact, subdi3_compact, mulsidi3_compact, umulsidi3_compact,
15533 ashlsi3_n, *ashlhi3_n, ashrsi2_16, ashrsi2_31, lshrsi3_n): Convert to
15536 2012-07-18 Oleg Endo <olegendo@gcc.gnu.org>
15539 * config/sh/sh.opt (mieee): Use Var instead of Mask. Correct
15541 * config/sh/sh.c (sh_option_override): Do not change
15542 flag_finite_math_only. Set TARGET_IEEE to complement of
15543 flag_finite_math_only.
15544 * doc/invoke.texi (SH options): Add mno-ieee. Correct description
15545 of mieee and mno-ieee behavior.
15547 2012-07-18 Steven Bosscher <steven@gcc.gnu.org>
15549 * graphite-poly.c (print_pbb_body): Fixup dump_bb call.
15551 2012-07-18 Steven Bosscher <steven@gcc.gnu.org>
15553 * dumpfile.h (TDF_COMMENT): New define.
15554 * basic-block.h (EDGE_FALLTHRU, EDGE_ABNORMAL, EDGE_ABNORMAL_CALL,
15555 EDGE_EH, EDGE_FAKE, EDGE_DFS_BACK, EDGE_CAN_FALLTHRU,
15556 EDGE_IRREDUCIBLE_LOOP, EDGE_SIBCALL, EDGE_LOOP_EXIT, EDGE_TRUE_VALUE,
15557 EDGE_FALSE_VALUE, EDGE_EXECUTABLE, EDGE_CROSSING, EDGE_PRESERVE):
15558 Move to new file cfg-flags.h.
15559 (enum cfg_edge_flags): New enum, using cfg-flags.h.
15560 (EDGE_ALL_FLAGS): Compute value automatically.
15561 (BB_NEW, BB_REACHABLE, BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK,
15562 BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION,
15563 BB_DUPLICATED, BB_NON_LOCAL_GOTO_TARGET, BB_RTL,
15564 BB_FORWARDER_BLOCK, BB_NONTHREADABLE_BLOCK, BB_MODIFIED, BB_VISITED,
15565 BB_IN_TRANSACTION): Move to new file cfg-flags.h.
15566 (enum bb_flags): Rename to cfg_bb_flags. Use cfg-flags.h.
15567 (BB_ALL_FLAGS): New, compute value automatically.
15568 (dump_bb_info): Update prototype.
15569 (dump_edge_info): Update prototype.
15570 * cfg-flags.h: New file.
15571 * cfg.c (dump_edge_info): Take flags argument. Be verbose only if
15572 TDF_DETAILS and not TDF_SLIM. Include cfg-flags.h for bitnames.
15573 Check that the edge flags are within the range of EDGE_ALL_FLAGS.
15574 (debug_bb): Update dump_bb call.
15575 (dump_cfg_bb_info): Remove.
15576 (dump_bb_info): New function. Use cfg-flags.h for bitnames.
15577 Adjust verbosity using TDF_* flags. Check that the basic block flags
15578 are within the range of BB_ALL_FLAGS.
15579 (brief_dump_cfg): Use dump_bb_info instead of dump_cfg_bb_info.
15580 * cfghooks.h (struct cfghooks): Update dump_bb hook, take a FILE
15581 first for consistency with other dump functions.
15582 (dump_bb): Update prototype accordingly.
15583 * cfghooks.c: Include dumpfile.h.
15584 (verify_flow_info): Update dump_edge_info calls.
15585 (dump_bb): Take a flags argument and pass it around.
15586 Use dump_bb_info to dump common information about a basic block.
15587 (dump_flow_info): Moved here from cfgrtl.c. Make IL agnostic.
15588 (debug_flow_info): Moved here from cfgrtl.c.
15589 * profile.c (is_edge_inconsistent): Update dump_bb calls.
15590 * loop-invariant.c (find_defs): Update print_rtl_with_bb call.
15591 * rtl.h (debug_bb_n_slim, debug_bb_slim, print_rtl_slim,
15592 print_rtl_slim_with_bb): Remove prototypes.
15593 (dump_insn_slim): Adjust prototype to take a const_rtx.
15594 (print_rtl_with_bb): Adjust prototype.
15595 * sched-rgn.c (debug_region): Use dump_bb instead of debug_bb_n_slim.
15596 * sched-vis.c (dump_insn_slim): Take a const_rtx.
15597 (debug_insn_slim): Prototype here near DEBUG_FUNCTION marker.
15598 (print_rtl_slim_with_bb): Remove.
15599 (print_rtl_slim): Rename to debug_rtl_slim. Print only insn info,
15600 not basic block info (print_rtl_with_bb with TDF_SLIM should be used
15601 for that. Prototype here near DEBUG_FUNCTION marker.
15602 (debug_bb_slim): Prototype here near DEBUG_FUNCTION marker.
15604 (debug_bb_n_slim): Prototype here near DEBUG_FUNCTION marker.
15605 * tree-cfg.c (gimple_can_merge_blocks_p): Use EDGE_COMPLEX.
15606 (remove_bb): Update dump_bb call.
15607 (gimple_debug_bb): Use dump_bb.
15608 (dump_function_to_file): Update gimple_dump_bb call.
15609 (print_loops_bb): Likewise.
15610 * tree-flow.h (gimple_dump_bb): Update prototype.
15611 * gimple-pretty-print.c (dump_bb_header): Rename to
15612 dump_gimple_bb_header. Write to a stream instead of a pretty
15613 printer. Use dump_bb_info to dump basic block info.
15614 (dump_bb_end): Rename to dump_gimple_bb_footer. Write to a
15615 stream instead of a pretty printer. Use dump_bb_info.
15616 (gimple_dump_bb_buff): Do not call dump_bb_header and dump_bb_end.
15617 (gimple_dump_bb): Do it here with dump_gimple_bb_header and
15618 dump_gimple_bb_footer.
15619 * cfgrtl.c (rtl_dump_bb): Update prototype. Only dump DF if the
15620 dump flags have TDF_DETAILS. Use dump_insn_slim if TDF_SLIM.
15621 (print_rtl_with_bb): Take a flags argument and pass it around.
15622 Use dump_insn_slim if TDF_SLIM.
15623 (dump_bb_info): Removed and re-incarnated in cfg.c.
15624 (dump_flow_info): Moved to cfghooks.c.
15625 (debug_flow_info): Moved to cfghooks.c.
15626 * passes.c (execute_function_dump): Unconditionally use
15627 print_rtl_with_bb for RTL dumps, now that it understands TDF_SLIM.
15628 * final.c (dump_basic_block_info): Update dump_edge_info calls.
15629 * tree-vrp.c (dump_asserts_for): Likewise.
15630 * ifcvt.c (if_convert): Unconditionally use print_rtl_with_bb.
15631 * tree-if-conv.c (if_convertible_bb_p): Don't look at
15632 EDGE_ABNORMAL_CALL, it has no meaning in the GIMPLE world.
15633 * trans-mem.c (make_tm_edge): Don't set EDGE_ABNORMAL_CALL,
15634 for the same reason.
15635 * config/rl78/rl78.c (rl78_reorg): Update print_rtl_with_bb calls.
15637 2012-07-17 Richard Guenther <rguenther@suse.de>
15639 * tree-vect-data-refs.c (vect_get_new_vect_var): Add referenced
15640 vars here, use create_tmp_reg where appropriate.
15641 (vect_create_addr_base_for_vector_ref): Do not add referenced
15642 vars here, use create_tmp_reg where appropriate.
15643 (vect_create_data_ref_ptr): Likewise.
15644 (vect_create_destination_var): Likewise.
15645 (vect_permute_store_chain): Likewise.
15646 (vect_permute_load_chain): Likewise.
15647 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
15649 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
15650 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
15651 (vect_handle_widen_op_by_const): Likewise.
15652 * tree-vect-stmts.c (vect_init_vector): Likewise.
15653 (vectorizable_load): Likewise.
15655 2012-07-17 Tom de Vries <tom@codesourcery.com>
15657 * hwint.c: Fix loop range.
15659 2012-07-17 Tom de Vries <tom@codesourcery.com>
15661 * double-int.h (double_int_popcount): New inline function.
15662 * hwint.c (popcount_hwi): New function.
15663 * hwint.h (popcount_hwi): Declare function. New inline function.
15665 2012-07-17 Richard Henderson <rth@redhat.com>
15667 * tree-vect-stmts.c (supportable_widening_operation): Remove decl
15669 (vectorizable_conversion): Update supportable_widening_operation call.
15670 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Likewise.
15671 (vect_recog_widen_shift_pattern): Likewise.
15672 * tree-vectorizer.h: Update decl.
15674 2012-07-17 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15675 Ulrich Weigand <ulrich.weigand@linaro.org>
15677 * common/config/arm/arm-common.c (arm_option_optimization_table):
15678 Enable -fsched-pressure by default while optimizing.
15679 * config/arm/arm.c (arm_option_override): Use the alternate scheduler
15680 pressure algorithm by default.
15682 2012-07-16 Oleg Endo <olegendo@gcc.gnu.org>
15684 * config/sh/sh.h (CONST_OK_FOR_I06): Delete.
15685 (CONST_OK_FOR_I10): Move macro to ...
15686 * config/sh/sh.c: ... here.
15687 (sh_legitimate_index_p): Use satisfies_constraint_I06 instead of
15690 2012-07-16 Oleg Endo <olegendo@gcc.gnu.org>
15692 * config/sh/sh.md: Delete mov related define_peephole patterns.
15694 2012-07-16 Jonathan Wakely <jwakely.gcc@gmail.com>
15697 * doc/install.texi (Installing GCC): Refer to instructions for
15698 released versions. Fix hyphenation.
15700 2012-07-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15702 * config/spu/spu.c (targetm): Move to bottom of file.
15703 (spu_attribute_table): Likewise.
15704 (spu_option_override, spu_init_builtins, spu_builtin_decl,
15705 spu_scalar_mode_supported_p, spu_vector_mode_supported_p,
15706 spu_legitimate_address_p, spu_addr_space_legitimate_address_p,
15707 adjust_operand, get_pic_reg, need_to_save_reg, frame_emit_store,
15708 frame_emit_load, frame_emit_add_imm, emit_nop_for_insn,
15709 insn_clobbers_hbr, spu_emit_branch_hint, spu_emit_vector_compare,
15710 get_branch_target, spu_machine_dependent_reorg, spu_sched_issue_rate,
15711 spu_sched_variable_issue, spu_sched_adjust_cost, spu_sched_init_global,
15712 spu_sched_init, spu_sched_reorder, spu_handle_fndecl_attribute,
15713 spu_handle_vector_attribute, spu_pass_by_reference, spu_function_arg,
15714 spu_function_arg_advance, spu_build_builtin_va_list, spu_va_start,
15715 spu_gimplify_va_arg_expr, store_with_one_insn_p, reg_aligned_for_addr,
15716 spu_assemble_integer, spu_asm_globalize_label, spu_rtx_costs,
15717 spu_function_ok_for_sibcall, spu_init_libfuncs, spu_return_in_memory,
15718 spu_encode_section_info, spu_legitimize_address,
15719 spu_addr_space_legitimize_address, spu_builtin_mask_for_load,
15720 spu_builtin_vectorization_cost, spu_vector_alignment_reachable,
15721 spu_addr_space_pointer_mode, spu_addr_space_address_mode,
15722 spu_addr_space_subset_p, spu_addr_space_convert, spu_sms_res_mii,
15723 spu_section_type_flags, spu_select_section, spu_unique_section,
15724 spu_trampoline_init, spu_conditional_register_usage,
15725 spu_ref_may_alias_errno, spu_output_mi_thunk, spu_unwind_word_mode,
15726 spu_libgcc_cmp_return_mode, spu_libgcc_shift_count_mode,
15727 spu_setup_incoming_varargs): Remove prototypes.
15728 (spu_legitimize_address): Add "static" to definition.
15730 2012-07-16 Jakub Jelinek <jakub@redhat.com>
15732 * config/i386/rtmintrin.h (_xabort): Remove trailing semicolon.
15734 2012-07-16 Ulrich Weigand <ulrich.weigand@linaro.org>
15736 * tree-ssa-ccp.c (optimize_unreachable): Check gsi_end_p
15737 before calling gsi_stmt.
15739 2012-07-16 Kirill Yukhin <kirill.yukhin@intel.com>
15742 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
15744 * config/i386/i386.md (stack_protect_set): Disable the pattern
15745 for Android since Android libc (bionic) does not provide random
15746 value for stack protection guard at gs:0x14. Guard value
15747 will be provided from external symbol (default implementation).
15748 (stack_protect_set_<mode>): Likewise.
15749 (stack_protect_test): Likewise.
15750 (stack_protect_test_<mode>): Likewise.
15752 2012-07-16 H.J. Lu <hongjiu.lu@intel.com>
15754 PR middle-end/53959
15756 * gimple.c (gimple_types_compatible_p_1): Restore type attribute
15759 2012-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
15761 * opts.c (default_option): Add -fvect-cost-model to default options
15764 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
15766 * graphite-clast-to-gimple.c, graphite-dependences.c,
15767 graphite-sese-to-poly.c: Include tree-pass.h instead of dumpfile.h
15768 for pass TODO flags.
15769 * Makefile.in: Fix dependencies.
15771 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
15773 * haifa-sched.c (init_before_recovery): Do not set EDGE_CAN_FALLTHRU.
15774 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
15776 * function.c (stack_protect_epilogue): Use expand_call to expand
15777 targetm.stack_protect_fail.
15778 * stmt.c (expand_expr_stmt): Remove now-unused function.
15779 * tree.h (expand_expr_stmt): Remove prototype.
15780 * doc/tm.texi.in (TARGET_STACK_PROTECT_FAIL): Document that this
15781 hook must return a CALL_EXPR.
15782 * doc/tm.texi: Regenerate.
15784 * emit-rtl.c (emit_label_before): Do not allow the same label
15785 to be emitted twice.
15786 (emit_label_after): Likewise.
15787 (emit_label): Likewise.
15789 * flags.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
15790 TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): Move to tree.h.
15791 * tree.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
15792 TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): New home.
15794 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
15796 * system.h (dump_file): Do not define.
15797 * tree-pass.h: Include dumpfile.h, which is a new file containing...
15798 (enum tree_dump_index, TDF_*, get_dump_file_name, dump_enabled_p,
15799 dump_initialized_p, dump_begin, dump_end, dump_node, dump_switch_p,
15800 dump_flag_name, dump_file, dump_flags, dump_file_name,
15801 get_dump_file_info, struct dump_file_info): all of this, moved to...
15802 * dumpfile.h: Here, new file.
15803 * tree-dump.h: Include dumpfile.h, but not tree-pass.h.
15804 (dump_stmt): Remove prototype for C++ specific function.
15805 (dump_enumerated_decls): Move prototype from here...
15806 * tree-flow.h (dump_enumerated_decls): ... to here.
15807 (get_ref_base_and_extent) Move prototype from here ...
15808 * tree.h (get_ref_base_and_extent) ... to here.
15809 * tree-ssa-live.c: Do not inclde tree-pretty-print.h, because
15810 gimple-pretty-print.h is enough. Do not include tree-dump.h,
15811 include timevar.h and dumpfile.h instead.
15812 (struct numbered_tree_d, compare_decls_by_uid,
15813 dump_enumerated_decls_push, dump_enumerated_decls): Move from here ...
15814 * tree-dfa.c:(struct numbered_tree_d, compare_decls_by_uid,
15815 dump_enumerated_decls_push, dump_enumerated_decls):... to here.
15816 Do not include timevar.h.
15817 * tree.c: Do not include timevar.h.
15818 * tree-cfg.c: Do not include langhooks.h, tree-pretty-print.h, and
15820 (dump_cfg_stats): Use current_function_name.
15821 (gimple_cfg2vcg): Likewise.
15822 (dump_function_to_file): Likewise.
15823 * df-scan.c: Do not include tree-pass.h and timevar.h.
15824 Include dumpfile.h.
15825 (df_entry_block_bitmap_verify, df_exit_block_bitmap_verify): Do not
15826 use print_current_pass.
15827 * df-problems.c: Include dumpfile.h.
15828 Always define REG_DEAD_DEBUGGING, avoid #ifdef code, because it
15829 leads to errors in the code not selected.
15830 (df_note_compute): Do not print_rtl_with_bb here. Fix compilation
15831 bug if REG_DEAD_DEBUGGING is not 0, get_insns is not available here.
15832 * lcm.c: Include dumpfile.h.
15833 Remove obsolete include of insn-attr.h.
15834 * dojump.c (do_compare_rtx_and_jump): Remove failure printing for
15835 missing probability notes.
15836 * stmt.c: Include dumpfile.h.
15837 (emit_case_decision_tree): Re-enable printing expand details only
15839 * alias.c, auto-inc-dec.c, bb-reorder.c, caller-save.c, cfg.c,
15840 cfgcleanup.c, cfgexpand.c, cfgloop.c, cfgloopmanip.c, cgraph.c,
15841 cgraphclones.c, cgraphunit.c, combine.c, combine-stack-adj.c,
15842 coverage.c, cprop.c, cse.c, cselib.c, dbgcnt.c, dce.c, df-core.c,
15843 dse.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, final.c,
15844 function.c, fwprop.c, gcse.c, gimple-fold.c,
15845 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
15846 gimplify.c, graphite-blocking.c, graphite-clast-to-gimple.c,
15847 graphite-dependences.c, graphite-interchange.c,
15848 graphite-optimize-isl.c, graphite-poly.c,
15849 graphite-sese-to-poly.c, haifa-sched.c, hw-doloop.c, ifcvt.c,
15850 ipa.c, ipa-cp.c, ipa-inline-analysis.c, ipa-inline.c,
15851 ipa-inline-transform.c, ipa-prop.c, ipa-pure-const.c,
15852 ipa-reference.c, ipa-split.c, ipa-utils.c, ira.c, ira-emit.c,
15853 jump.c, loop-doloop.c, loop-init.c, loop-invariant.c, loop-iv.c,
15854 loop-unroll.c, loop-unswitch.c, lower-subreg.c,
15855 lto-section-out.c, lto-streamer-in.c, matrix-reorg.c, mcf.c,
15856 mode-switching.c, modulo-sched.c, omega.c, omp-low.c, passes.c,
15857 plugin.c, postreload.c, postreload-gcse.c, predict.c, print-rtl.c,
15858 print-tree.c, profile.c, recog.c, ree.c, regcprop.c, reginfo.c,
15859 regmove.c, regrename.c, reg-stack.c, reload1.c, reorg.c,
15860 sched-rgn.c, sched-vis.c, sel-sched.c, sel-sched-ir.c,
15861 store-motion.c, tracer.c, trans-mem.c, tree-affine.c,
15862 tree-call-cdce.c, tree-cfgcleanup.c, tree-chrec.c,
15863 tree-data-ref.c, tree-diagnostic.c, tree-dump.c,
15864 tree-eh.c, tree-flow-inline.h, tree-if-conv.c, tree-into-ssa.c,
15865 tree-mudflap.c, tree-nrv.c, tree-object-size.c,
15866 tree-optimize.c, tree-outof-ssa.c, tree-predcom.c,
15867 tree-pretty-print.c, tree-profile.c, tree-scalar-evolution.c,
15868 tree-sra.c, tree-ssa-address.c, tree-ssa-alias.c, tree-ssa.c,
15869 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-copy.c,
15870 tree-ssa-copyrename.c,, tree-ssa-dce.c, tree-ssa-dom.c,
15871 tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-ifcombine.c,
15872 tree-ssa-loop.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15873 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c,
15874 tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
15875 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
15876 tree-ssa-math-opts.c, tree-ssa-operands.c, tree-ssa-phiopt.c,
15877 tree-ssa-phiprop.c, tree-ssa-pre.c, tree-ssa-propagate.c,
15878 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-sink.c,
15879 tree-ssa-structalias.c, tree-ssa-tail-merge.c, tree-ssa-ter.c,
15880 tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
15881 tree-ssa-uncprop.c, tree-ssa-uninit.c,
15882 tree-switch-conversion.c, tree-tailcall.c,
15883 tree-vect-data-refs.c, tree-vect-loop.c,
15884 tree-vect-loop-manip.c, tree-vectorizer.c,
15885 tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
15886 tree-vrp.c, value-prof.c, var-tracking.c, web.c: Include tree-pass.h
15887 only if needed. If tree-pass.h is included, do not include timevar.h
15888 and dumpfile.h. If tree-pass.h is not included but dump_file, or
15889 dump_flags, or the TDF_* flags are used, include dumpfile.h.
15890 If gimple-pretty-print.h is included, don't include
15891 tree-pretty-print.h. Remove assorted unnecessary includes.
15893 * config/mn10300/mn10300.c, config/c6x/c6x.c, config/ia64/ia64.c,
15894 config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c,
15895 config/spu/spu.c, config/mep/mep.c, config/i386/i386.c:
15896 Include dumpfile.h.
15897 * config/rl78/rl78.c: Include dumpfile.h instead of tree-pass.h.
15898 * arm/t-arm, avr/t-avr, i386/t-i386, ia64/t-ia64, mep/t-mep,
15899 spu/t-spu-elf: Fix dependencies.
15901 2012-07-16 Dehao Chen <dehao@google.com>
15904 2012-07-10 Dehao Chen <dehao@google.com>
15906 * tree.h (phi_arg_d): New field.
15907 * tree-flow-inline.h (gimple_phi_arg_block): New function.
15908 (gimple_phi_arg_block_from_edge): New function.
15909 (gimple_phi_arg_set_block): New function.
15910 (gimple_phi_arg_has_block): New function.
15911 (redirect_edge_var_map_block): New function.
15912 * tree-flow.h (_edge_var_map): New field.
15913 * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
15914 * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
15915 redirect_edge_var_map_add.
15916 * tree-outof-ssa.c (_elim_graph): New field.
15917 (insert_partition_copy_on_edge): New parameter.
15918 (insert_value_copy_on_edge): New parameter.
15919 (insert_rtx_to_part_on_edge): New parameter.
15920 (insert_part_to_rtx_on_edge): New parameter.
15921 (elim_graph_add_edge): New parameter.
15922 (elim_graph_remove_succ_edge): New parameter.
15923 (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
15924 (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
15925 (new_elim_graph): Add block debug info.
15926 (clear_elim_graph): Likewise.
15927 (delete_elim_graph): Likewise.
15928 (elim_graph_add_node): Likewise.
15929 (elim_graph_add_edge): Likewise.
15930 (elim_graph_remove_succ_edge): Likewise.
15931 (eliminate_build): Likewise.
15932 (elim_forward): Likewise.
15933 (elim_unvisited_predecessor): Likewise.
15934 (elim_backward): Likewise.
15935 (elim_create): Likewise.
15936 (eliminate_phi): Likewise.
15937 (insert_backedge_copies): Likewise.
15938 * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
15940 (rewrite_add_phi_arguments): Likewise.
15941 * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
15942 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
15943 * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
15944 * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
15945 * tree-ssa-loop-manip.c (create_iv): Likewise.
15946 (add_exit_phis_edge): Likewise.
15947 (split_loop_exit_edge): Likewise.
15948 (copy_phi_node_args): Likewise.
15949 (tree_transform_and_unroll_loop): Likewise.
15950 * value-prof.c (gimple_ic): Likewise.
15951 (gimple_stringop_fixed_value): Likewise.
15952 * tree-tailcall.c (add_successor_phi_arg): Likewise.
15953 (eliminate_tail_call): Likewise.
15954 (create_tailcall_accumulator): Likewise.
15955 (tree_optimize_tail_calls_1): Likewise.
15956 * tree-phinodes.c (add_phi_arg): Likewise.
15957 (make_phi_node): Likewise.
15958 (resize_phi_node): Likewise.
15959 (remove_phi_arg_num): Likewise.
15960 * omp-low.c (expand_parallel_call): Likewise.
15961 (expand_omp_for_static_chunk): Likewise.
15962 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
15964 (slpeel_update_phi_nodes_for_guard1): Likewise.
15965 (slpeel_update_phi_nodes_for_guard2): Likewise.
15966 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
15967 (set_prologue_iterations): Likewise.
15968 (slpeel_tree_peel_loop_to_edge): Likewise.
15969 (vect_loop_versioning): Likewise.
15970 * tree-parloops.c (create_phi_for_local_result): Likewise.
15971 (transform_to_exit_first_loop): Likewise.
15972 (create_parallel_loop): Likewise.
15973 * ipa-split.c (split_function): Likewise.
15974 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
15975 (vect_create_epilog_for_reduction): Likewise.
15976 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
15977 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
15978 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
15979 (cond_if_else_store_replacement_1): Likewise.
15980 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
15981 (remove_forwarder_block_with_phi): Likewise.
15982 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
15983 * tree-predcom.c (initialize_root_vars): Likewise.
15984 (initialize_root_vars_lm): Likewise.
15985 * sese.c (sese_add_exit_phis_edge): Likewise.
15986 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
15987 * tree-ssa.c (flush_pending_stmts): Likewise.
15988 (redirect_edge_var_map_add): Likewise.
15989 (ssa_redirect_edge): Likewise.
15990 * gimple-streamer-in.c (input_phi): Likewise.
15991 * tree-vect-stmts.c (vectorizable_load): Likewise.
15992 * tree-inline.c (copy_phis_for_bb): Likewise.
15993 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
15994 * tree-switch-conversion.c (fix_phi_nodes): Likewise.
15995 * tree-cfg.c (reinstall_phi_args): Likewise.
15996 (gimple_make_forwarder_block): Likewise.
15997 (add_phi_args_after_copy_edge): Likewise.
15998 (gimple_duplicate_sese_tail): Likewise.
16000 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
16002 * config/i386/i386.md (stack_protect_set): Disable the pattern
16003 for Android since Android libc (bionic) does not provide random
16004 value for stack protection guard at gs:0x14. Guard value
16005 will be provided from external symbol (default implementation).
16006 (stack_protect_set_<mode>): Likewise.
16007 (stack_protect_test): Likewise.
16008 (stack_protect_test_<mode>): Likewise.
16010 2012-07-16 Hans-Peter Nilsson <hp@axis.com>
16012 * config/cris/cris-protos.h (cris_legitimate_address_p): Declare.
16013 * config/cris/cris.h (CONSTANT_ADDRESS_P): Define in terms of
16014 CONSTANT_P and cris_legitimate_address_p.
16015 * config/cris/cris.c (cris_legitimate_address_p): Make non-static.
16016 (cris_preferred_reload_class): Don't return GENERAL_REGS as
16017 preferred to MOF_SRP_REGS.
16019 * config/cris/cris.c (cris_init_libfuncs): Handle initialization
16020 of library functions for basic atomic compare-and-swap.
16021 * config/cris/cris.h (TARGET_ATOMICS_MAY_CALL_LIBFUNCS): New macro.
16022 * config/cris/cris.opt (munaligned-atomic-may-use-library): New option.
16023 * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>")
16024 ("cris_atomic_fetch_<atomic_op_name><mode>_1")
16025 ("atomic_compare_and_swap<mode>")
16026 ("cris_atomic_compare_and_swap<mode>_1"): Make conditional on
16027 TARGET_ATOMICS_MAY_CALL_LIBFUNCS for sizes larger than byte.
16028 * config/cris/cris.c (cris_print_operand) <case 'P', 'q'>: New cases.
16029 * config/cris/sync.md (atomic_op_op_cnstr): New code_attr.
16030 (atomic_op_op_pred): Ditto.
16031 (atomic_op_mnem_pre_op2): Renamed from atomic_op_mnem_pre; to
16032 reflect the change to include %2 in expansion. All callers changed.
16033 (qm3): New mode_attr.
16034 ("atomic_fetch_<atomic_op_name><mode>"): Use <atomic_op_op_pred>
16035 as predicate for operand 2.
16036 ("cris_atomic_fetch_<atomic_op_name><mode>_1"): Update FIXME. Use
16037 "<atomic_op_op_pred>" "<atomic_op_op_cnstr>" for predicate and
16038 constraint for operand 2.
16039 ("atomic_compare_and_swap<mode>"): Add FIXME. Change predicate to
16040 nonmemory_operand for operand 3.
16041 ("cris_atomic_compare_and_swap<mode>_1"): Change operand 3 to
16042 exclude memory. Improve emitted sync code for v10 and v32. Use
16043 <qm3> instead of <m> for size designator for cmp.
16044 ("atomic_compare_and_swap<mode>"): Change predicate to
16045 nonmemory_operand for operand 3. Add FIXME.
16046 ("cris_atomic_compare_and_swap<mode>_1"): Change predicates and
16047 constraints for operand 3 to exclude memory.
16048 ("atomic_fetch_<atomic_op_name><mode>")
16049 ("atomic_compare_and_swap<mode>"): Gate expand_mem_thread_fence
16050 calls on result of call to need_atomic_barrier_p.
16052 2012-07-15 Richard Sandiford <rdsandiford@googlemail.com>
16054 * config/mips/mips.md (move_type): Replace mfhilo and mthilo
16055 with mflo and mtlo.
16056 (type): Split mfhilo into mfhi and mflo. Split mthilo into mthi
16057 and mtlo. Adjust move_type->type mapping.
16058 (may_clobber_hilo): Split mthilo into mthi and mtlo.
16059 (*movdi_32bit, *movdi_32bit_mips16, *movdi_64bit, *movdi_64bit_mips16)
16060 (*mov<mode>_internal, *mov<mode>_mips16, *movhi_internal)
16061 (*movhi_mips16, *movqi_internal, *movqi_mips16): Use mtlo and mflo
16062 instead of mthilo and mfhilo.
16063 (mfhi<GPR:mode>_<HILO:mode>): Use mfhi instead of mfhilo.
16064 (mthi<GPR:mode>_<HILO:mode>): Use mthi instead of mthilo.
16065 * config/mips/mips-dsp.md (mips_extr_w, mips_extr_r_w, mips_extr_rs_w)
16066 (mips_extr_s_h, mips_extp, mips_extpdp, mips_shilo, mips_mthlip):
16067 Use mflo instead of mfhilo.
16068 * config/mips/10000.md (r10k_arith): Split mthilo.
16069 (r10k_mfhi, r10k_mflo): Use mfhi and mflo directly.
16070 * config/mips/sb1.md (ir_sb1_mfhi, ir_sb1_mflo): Likewise.
16071 (ir_sb1_mthilo): Split mthilo into mthi and mtlo.
16072 * config/mips/20kc.md (r20kc_imthilo, r20kc_imfhilo): Split
16074 * config/mips/24k.md (r24k_int_mfhilo, r24k_int_mthilo): Likewise.
16075 * config/mips/4130.md (vr4130_class, vr4130_mfhilo, vr4130_mthilo):
16077 * config/mips/4k.md (r4k_int_mthilo, r4k_int_mfhilo): Likewise.
16078 * config/mips/5400.md (ir_vr54_hilo): Likewise.
16079 * config/mips/5500.md (ir_vr55_mthilo, ir_vr55_mfhilo): Likewise.
16080 * config/mips/5k.md (r5k_int_mthilo, r5k_int_mfhilo): Likewise.
16081 * config/mips/7000.md (rm7_mthilo, rm7_mfhilo): Likewise.
16082 * config/mips/74k.md (r74k_int_mfhilo, r74k_int_mthilo): Likewise.
16083 * config/mips/9000.md (rm9k_mfhilo, rm9k_mthilo): Likewise.
16084 * config/mips/generic.md (generic_hilo): Likewise.
16085 * config/mips/loongson2ef.md (ls2_alu): Likewise.
16086 * config/mips/loongson3a.md (ls3a_mfhilo): Likewise.
16087 * config/mips/octeon.md (octeon_imul_o1, octeon_imul_o2)
16088 (octeon_mfhilo_o1, octeon_mfhilo_o2): Likewise.
16089 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
16090 * config/mips/xlr.md (xlr_hilo): Likewise.
16092 2012-07-14 Andrew Stubbs <ams@codesourcery.com>
16093 Sandra Loosemore <sandra@codesourcery.com>
16095 * config/sh/sh.h (SH_ASM_SPEC): Add spaces between options.
16097 2012-07-14 Uros Bizjak <ubizjak@gmail.com>
16099 * config/i386/i386.c (ix86_set_reg_reg_cost): Enable TFmode/TCmode
16102 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
16104 * toplev.c (init_asm_output): Open asm_out_file in 'w' mode.
16106 2012-07-13 Bill Schmidt <wschmidt@linux.ibm.com>
16109 * config/spu/spu.c (spu_init_cost): Mark static.
16110 (spu_add_stmt_cost): Likewise.
16111 (spu_finish_cost): Likewise.
16112 (spu_destroy_cost_data): Likewise.
16113 * config/i386/i386.c (ix86_init_cost): Mark static.
16114 (ix86_add_stmt_cost): Likewise.
16115 (ix86_finish_cost): Likewise.
16116 (ix86_destroy_cost_data): Likewise.
16117 * config/rs6000/rs6000.c (rs6000_init_cost): Mark static.
16118 (rs6000_add_stmt_cost): Likewise.
16119 (rs6000_finish_cost): Likewise.
16120 (rs6000_destroy_cost_data): Likewise.
16122 2012-07-13 Steven Bosscher <steven@gcc.gnu.org>
16124 * ggc.h (ggc_internal_alloc_stat, ggc_alloc_typed_stat,
16125 ggc_internal_cleared_alloc_stat, ggc_cleared_alloc_htab_ignore_args,
16126 ggc_cleared_alloc_ptr_array_two_args, ggc_splay_alloc): Add
16128 * alloc-pool.h (pool_alloc): Likewise.
16130 * final.c (final): Do not loop to find max_uid.
16132 2012-07-13 Steven Bosscher <steven@gcc.gnu.org>
16134 * emit-rtl.c (make_debug_insn_raw, make_jump_insn_raw): Make static.
16135 * rtl.h (make_debug_insn_raw, make_jump_insn_raw): Remove prototypes.
16137 2012-07-13 Richard Guenther <rguenther@suse.de>
16139 PR tree-optimization/53907
16140 * tree-ssa-forwprop.c (associate_pointerplus): New function.
16141 (ssa_forward_propagate_and_combine): Call it.
16143 2012-07-13 Richard Guenther <rguenther@suse.de>
16145 PR tree-optimization/53922
16146 * tree-vrp.c (value_inside_range): Change prototype to take
16147 min/max instead of value-range.
16148 (range_includes_zero_p): Likewise. Return the result from
16149 value_inside_range.
16150 (extract_range_from_binary_expr_1): Adjust to handle dont-know
16151 return value from range_includes_zero_p.
16152 (extract_range_from_unary_expr_1): Likewise.
16153 (compare_range_with_value): Likewise.
16154 (vrp_meet_1): Likewise.
16156 2012-07-13 Bill Schmidt <wschmidt@linux.ibm.com>
16158 * doc/tm.texi: Regenerate.
16159 * doc/tm.texi.in (TARGET_VECTORIZE_INIT_COST): New hook.
16160 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
16161 (TARGET_VECTORIZE_FINISH_COST): Likewise.
16162 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
16163 * targhooks.c (default_init_cost): New function.
16164 (default_add_stmt_cost): Likewise.
16165 (default_finish_cost): Likewise.
16166 (default_destroy_cost_data): Likewise.
16167 * targhooks.h (default_init_cost): New decl.
16168 (default_add_stmt_cost): Likewise.
16169 (default_finish_cost): Likewise.
16170 (default_destroy_cost_data): Likewise.
16171 * target.def (init_cost): New DEFHOOK.
16172 (add_stmt_cost): Likewise.
16173 (finish_cost): Likewise.
16174 (destroy_cost_data): Likewise.
16175 * target.h (struct _stmt_vec_info): New extern decl.
16176 (stmt_vectype): Likewise.
16177 (stmt_in_inner_loop_p): Likewise.
16178 * tree-vectorizer.h (stmt_info_for_cost): New struct/typedef.
16179 (stmt_vector_for_cost): New VEC/typedef.
16180 (add_stmt_info_to_vec): New function.
16181 (struct _slp_tree): Remove cost.inside_of_loop field.
16182 (struct _slp_instance): Remove cost.inside_of_loop field; add
16183 stmt_cost_vec field.
16184 (SLP_INSTANCE_INSIDE_OF_LOOP_COST): Remove macro.
16185 (SLP_INSTANCE_STMT_COST_VEC): New accessor macro.
16186 (SLP_TREE_INSIDE_OF_LOOP_COST): Remove macro.
16187 (struct _vect_peel_extended_info): Add stmt_cost_vec field.
16188 (struct _loop_vec_info): Add target_cost_data field.
16189 (LOOP_VINFO_TARGET_COST_DATA): New accessor macro.
16190 (struct _bb_vec_info): Add target_cost_data field.
16191 (BB_VINFO_TARGET_COST_DATA): New accessor macro.
16192 (struct _stmt_vec_info): Remove cost.inside_of_loop field.
16193 (STMT_VINFO_INSIDE_OF_LOOP_COST): Remove macro.
16194 (stmt_vinfo_set_inside_of_loop_cost): Remove function.
16195 (init_cost): New function.
16196 (add_stmt_cost): Likewise.
16197 (finish_cost): Likewise.
16198 (destroy_cost_data): Likewise.
16199 (vect_model_simple_cost): Change parameter list.
16200 (vect_model_store_cost): Likewise.
16201 (vect_model_load_cost): Likewise.
16202 (record_stmt_cost): New extern decl.
16203 (vect_get_load_cost): Change parameter list.
16204 (vect_get_store_cost): Likewise.
16205 * tree-vect-loop.c (new_loop_vec_info): Call init_cost.
16206 (destroy_loop_vec_info): Call destroy_cost_data.
16207 (vect_estimate_min_profitable_iters): Remove old calculation of
16208 inside costs; call finish_cost instead.
16209 (vect_model_reduction_cost): Call add_stmt_cost instead of old
16210 inside-costs calculation.
16211 (vect_model_induction_cost): Likewise.
16212 * tree-vect-data-refs.c (vect_get_data_access_cost): Change to
16213 return a stmt_vector_for_cost; modify calls to vect_get_load_cost
16214 and vect_get_store_cost to obtain the value to return.
16215 (vect_peeling_hash_get_lowest_cost): Obtain a stmt_cost_vec from
16216 vect_get_data_access_cost and store it in the minimum peeling
16218 (vect_peeling_hash_choose_best_peeling): Change the parameter list
16219 to add a (stmt_vector_for_cost *) output parameter, and set its value.
16220 (vect_enhance_data_refs_alignment): Ignore the new return value from
16221 calls to vect_get_data_access_cost; obtain stmt_cost_vec from
16222 vect_peeling_hash_choose_best_peeling and pass its contents to the
16224 * tree-vect-stmts.c (stmt_vectype): New function.
16225 (stmt_in_inner_loop_p): Likewise.
16226 (record_stmt_cost): Likewise.
16227 (vect_model_simple_cost): Add stmt_cost_vec parameter; call
16228 record_stmt_cost instead of old calculation; don't call
16229 stmt_vinfo_set_inside_of_loop_cost.
16230 (vect_model_promotion_demotion_cost): Call add_stmt_cost instead of
16231 old calculation; don't call stmt_vinfo_set_inside_of_loop_cost.
16232 (vect_model_store_cost): Add stmt_cost_vec parameter; call
16233 record_stmt_cost instead of old calculation; add stmt_cost_vec
16234 parameter to vect_get_store_cost call; don't call
16235 stmt_vinfo_set_inside_of_loop_cost.
16236 (vect_get_store_cost): Add stmt_cost_vec parameter; call
16237 record_stmt_cost instead of old calculation.
16238 (vect_model_load_cost): Add stmt_cost_vec parameter; call
16239 record_stmt_cost instead of old calculation; add stmt_cost_vec
16240 parameter to vect_get_load_cost call; don't call
16241 stmt_vinfo_set_inside_of_loop_cost.
16242 (vect_get_load_cost): Add stmt_cost_vec parameter; call
16243 record_stmt_cost instead of old calculation.
16244 (vectorizable_call): Add NULL parameter to vect_model_simple_cost call.
16245 (vectorizable_conversion): Likewise.
16246 (vectorizable_assignment): Likewise.
16247 (vectorizable_shift): Likewise.
16248 (vectorizable_operation): Likewise.
16249 (vectorizable_store): Add NULL parameter to vect_model_store_cost call.
16250 (vectorizable_load): Add NULL parameter to vect_model_load_cost call.
16251 (new_stmt_vec_info): Don't set STMT_VINFO_INSIDE_OF_LOOP_COST.
16252 * config/spu/spu.c (TARGET_VECTORIZE_INIT_COST): New macro def.
16253 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
16254 (TARGET_VECTORIZE_FINISH_COST): Likewise.
16255 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
16256 (spu_init_cost): New function.
16257 (spu_add_stmt_cost): Likewise.
16258 (spu_finish_cost): Likewise.
16259 (spu_destroy_cost_data): Likewise.
16260 * config/i386/i386.c (ix86_init_cost): New function.
16261 (ix86_add_stmt_cost): Likewise.
16262 (ix86_finish_cost): Likewise.
16263 (ix86_destroy_cost_data): Likewise.
16264 (TARGET_VECTORIZE_INIT_COST): New macro def.
16265 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
16266 (TARGET_VECTORIZE_FINISH_COST): Likewise.
16267 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
16268 * config/rs6000/rs6000.c (TARGET_VECTORIZE_INIT_COST): New macro def.
16269 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
16270 (TARGET_VECTORIZE_FINISH_COST): Likewise.
16271 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
16272 (rs6000_init_cost): New function.
16273 (rs6000_add_stmt_cost): Likewise.
16274 (rs6000_finish_cost): Likewise.
16275 (rs6000_destroy_cost_data): Likewise.
16276 * tree-vect-slp.c (vect_free_slp_instance): Free stmt_cost_vec.
16277 (vect_create_new_slp_node): Don't set SLP_TREE_INSIDE_OF_LOOP_COST.
16278 (vect_get_and_check_slp_defs): Add stmt_cost_vec parameter; add
16279 stmt_cost_vec parameter to vect_model_store_cost and
16280 vect_model_simple_cost calls.
16281 (vect_build_slp_tree): Remove inside_cost parameter; add stmt_cost_vec
16282 parameter; add stmt_cost_vec parameter to vect_get_and_check_slp_defs,
16283 vect_model_load_cost, and recursive vect_build_slp_tree calls; prevent
16284 calculating cost more than once for loads; remove inside_cost
16285 parameter from recursive vect_build_slp_tree calls; call
16286 record_stmt_cost instead of old calculation.
16287 (vect_analyze_slp_instance): Allocate stmt_cost_vec and save it with
16288 the instance; free it on premature exit; remove inside_cost parameter
16289 from vect_build_slp_tree call; add stmt_cost_vec parameter to
16290 vect_build_slp_tree call; don't set SLP_INSTANCE_INSIDE_OF_LOOP_COST.
16291 (new_bb_vec_info): Call init_cost.
16292 (destroy_bb_vec_info): Call destroy_cost_data.
16293 (vect_bb_vectorization_profitable_p): Call add_stmt_cost for each
16294 statement recorded with an SLP instance; call finish_cost instead of
16295 the old calculation.
16296 (vect_update_slp_costs_according_to_vf): Record statement costs from
16297 SLP instances, multiplying by the appropriate number of copies; don't
16298 update SLP_INSTANCE_INSIDE_OF_LOOP_COST.
16300 2012-07-13 Richard Guenther <rguenther@suse.de>
16302 PR middle-end/53937
16303 * builtins.c (get_pointer_alignment_1): Handle constant
16306 2012-07-13 Richard Sandiford <rdsandiford@googlemail.com>
16307 Steven Bosscher <steven@gcc.gnu.org>
16308 Bernd Schmidt <bernds@codesourcery.com>
16310 PR rtl-optimization/53908
16311 * df-problems.c (can_move_insns_across): When doing
16312 memory-reference book-keeping, handle call insns.
16314 2012-07-13 Richard Guenther <rguenther@suse.de>
16316 * gimple.c (gimple_types_compatible_p_1): Remove redundant
16317 type attribute comparisons.
16318 (gimple_canonical_types_compatible_p): Likewise.
16320 2012-07-12 Hans-Peter Nilsson <hp@axis.com>
16322 PR rtl-optimization/53176
16323 * rtlanal.c (rtx_cost): Adjust default cost for X with a
16324 UNITS_PER_WORD factor for all X according to the size of
16325 its mode, not just for SUBREGs with untieable modes.
16326 Handle SET. Use factor * factor for MULT, DIV, UDIV,
16329 2012-07-12 Uros Bizjak <ubizjak@gmail.com>
16331 * config/i386/i386.md (QImode and HImode cmove splitters): Merge
16332 QImode and HImode splitters. Use ix86_comparison_operator.
16333 Explicitly match FLAGS_REG.
16334 (DFmode cmove splitter): Explicitly match FLAGS_REG.
16336 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
16338 * expr.h (can_move_by_pieces): Move prototype from here ...
16339 * tree.h (can_move_by_pieces): ... to here.
16340 * optabs.h (set_widening_optab_handler): Use XCNEW.
16341 * gimplify.c: Do not include expr.h.
16343 * toplev.c: Do not include dwarf2out.h.
16344 * config/ia64/ia64.c: Likewise.
16345 * config/sparc/sparc.c: Likewise.
16346 * config/sparc/t-sparc (sparc.o): Fix dependencies.
16348 * Makefile.in (toplev.o): Fix dependencies
16349 (c-family/c-gimplify.o): Likewise.
16350 (c-family/c-common.o): Likewise.
16352 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
16354 * basic-block.h (struct edge_def): Use basic_block instead of
16356 * cfgloop.h (struct loop_exit, struct loop): Likewise.
16357 * gengenrtl.c (type_from_format): Likewise. Also for 'tree'
16358 instead of union tree_node *.
16359 * rtl.h (union rtunion_def, emit_insn_before_noloc,
16360 emit_insn_after_noloc, add_insn_before, add_insn_after,
16361 debug_bb_slim): Likewise.
16362 * tree-inline.h (struct copy_body_data): Likewise.
16363 * sched-rgn.c (dump_region_dot): Likewise.
16364 * gimple.h (struct gimple_statement_base, gimple_set_bb,
16365 gsi_move_to_bb_end): Likewise.
16366 * sched-vis.c (debug_bb_slim): Likewise.
16367 (debug_bb_n_slim): Likewise.
16368 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Likewise.
16369 (mn10300_block_contains_call):
16371 2012-07-11 Greta Yorsh <Greta.Yorsh@arm.com>
16374 * config/arm/arm.c (arm_early_load_addr_dep): Handle new
16377 2012-07-11 Jonathan Wakely <jwakely.gcc@gmail.com>
16379 * doc/extend.texi (Namespace Association): Alter cautionary text.
16381 2012-07-10 Oleg Endo <olegendo@gcc.gnu.org>
16384 * config/sh/sh.md: Remove displacement addresssing related splits.
16386 2012-07-10 Xinliang David Li <davidxl@google.com>
16388 * doc/invoke.texi: New option documented.
16389 * flag-types.h: New enum type.
16390 * gimplify.c (gimplify_bind_expr): Control
16391 clobber generation with new option.
16392 (gimplify_target_expr): Ditto.
16393 * common.opt: New option.
16395 2012-07-10 Julian Brown <julian@codesourcery.com>
16397 * config/arm/arm.md (movsi): Don't split symbol refs here.
16398 (define_split): New.
16400 2012-07-10 Andreas Schwab <schwab@linux-m68k.org>
16403 * config/m68k/m68k.c (m68k_epilogue_uses): New.
16404 * config/m68k/m68k.h (EPILOGUE_USES): Use it.
16405 * config/m68k/m68k-protos.h (m68k_epilogue_uses): Add prototype.
16407 2012-07-10 Richard Henderson <rth@redhat.com>
16409 * target.def (builtin_mul_widen_even, builtin_mul_widen_odd): Remove.
16410 * system.h (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Poison.
16411 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Poison.
16412 * config/i386/i386.c (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): Remove.
16413 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): Remove.
16414 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): Remove.
16415 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): Remove.
16416 (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): Remove.
16417 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): Remove.
16418 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): Remove.
16419 (bdesc_args): Remove entries to match.
16420 (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): Remove.
16421 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
16422 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
16423 * config/rs6000/rs6000.c (rs6000_builtin_mul_widen_even): Remove.
16424 (rs6000_builtin_mul_widen_odd): Remove.
16425 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
16426 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
16427 * config/spu/spu.c (spu_builtin_mul_widen_even): Remove.
16428 (spu_builtin_mul_widen_odd): Remove.
16429 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
16430 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
16431 * doc/tm.texi.in: Don't document the removed hooks.
16433 * tree-vect-stmts.c (supportable_widening_operation): Expand
16434 WIDEN_MULT_EXPR via VEC_WIDEN_MULT_EVEN/ODD_EXPR if possible.
16436 * expmed.c (expmed_mult_highpart): Rename from expand_mult_highpart.
16437 (expmed_mult_highpart_optab): Rename from expand_mult_highpart_optab.
16438 * optabs.c (can_mult_highpart_p): New.
16439 (expand_mult_highpart): New.
16440 * expr.c (expand_expr_real_2) [MULT_HIGHPART_EXPR): Use it.
16441 * tree-vect-generic.c (expand_vector_operations_1): Don't expand
16442 by pieces if can_mult_highpart_p.
16443 (expand_vector_divmod): Use can_mult_highpart_p and always
16444 generate MULT_HIGHPART_EXPR.
16445 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
16446 * tree-vect-stmts.c (vectorizable_operation): Likewise.
16448 * config/spu/spu-builtins.md (spu_mpy): Move to spu.md.
16449 (spu_mpyu, spu_mpyhhu, spu_mpyhh): Likewise.
16450 * config/spu/spu.md (vec_widen_smult_odd_v8hi): Rename from spu_mpy.
16451 (vec_widen_umult_odd_v8hi): Rename from spu_mpyu.
16452 (vec_widen_smult_even_v8hi): Rename from spu_mpyhh.
16453 (vec_widen_umult_even_v8hi): Rename from spu_mpyhhu.
16454 * config/spu/spu-builtins.def: Update pattern names to match.
16456 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Rename
16457 from altivec_vmuleub.
16458 (vec_widen_smult_even_v16qi): Rename from altivec_vmulesb.
16459 (vec_widen_umult_even_v8hi): Rename from altivec_vmuleuh.
16460 (vec_widen_smult_even_v8hi): Rename from altivec_vmulesh.
16461 (vec_widen_umult_odd_v16qi): Rename from altivec_vmuloub.
16462 (vec_widen_smult_odd_v16qi): Rename from altivec_vmulosb.
16463 (vec_widen_umult_odd_v8hi): Rename from altivec_vmulouh.
16464 (vec_widen_smult_odd_v8hi): Rename from altivec_vmulosh.
16465 * config/rs6000/rs6000-builtin.def: Update pattern names to match.
16467 * config/i386/sse.md (vec_widen_umult_even_v8si): Rename from
16468 avx2_umulv4siv4di3.
16469 (vec_widen_umult_even_v4si): Rename from sse2_umulv2siv2di3.
16470 (vec_widen_smult_even_v8si): Rename from avx2_mulv4siv4di3.
16471 (mulv4si3): Remove XOP test shadowed by SSE4 test.
16472 * config/i386/i386.c (bdesc_args): Update pattern names.
16473 (ix86_expand_sse2_mulvxdi3): Likewise.
16474 (ix86_expand_mul_widen_evenodd): Likewise. Remove XOP test
16475 shadowed by SSE4 test.
16477 * tree.def (VEC_WIDEN_MULT_EVEN_EXPR, VEC_WIDEN_MULT_ODD_EXPR): New.
16478 * cfgexpand.c (expand_debug_expr): Handle them.
16479 * expr.c (expand_expr_real_2): Likewise.
16480 * fold-const.c (fold_binary_loc): Likewise.
16481 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
16482 * optabs.c (optab_for_tree_code): Likewise.
16483 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
16484 * tree-inline.c (estimate_operator_cost): Likewise.
16485 * tree-pretty-print.c (dump_generic_node): Likewise.
16486 * tree.c (commutative_tree_code): Likewise.
16487 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
16488 Handle type change before looking up optab.
16489 * optabs.h (OTI_vec_widen_umult_even, OTI_vec_widen_umult_odd): New.
16490 (OTI_vec_widen_smult_even, OTI_vec_widen_smult_odd): New.
16491 (vec_widen_umult_even_optab, vec_widen_umult_odd_optab): New.
16492 (vec_widen_smult_even_optab, vec_widen_smult_odd_optab): New.
16493 * genopinit.c (optabs): Initialize them.
16494 * doc/md.texi: Document them.
16496 2012-07-10 Dehao Chen <dehao@google.com>
16498 * tree.h (phi_arg_d): New field.
16499 * tree-flow-inline.h (gimple_phi_arg_block): New function.
16500 (gimple_phi_arg_block_from_edge): New function.
16501 (gimple_phi_arg_set_block): New function.
16502 (gimple_phi_arg_has_block): New function.
16503 (redirect_edge_var_map_block): New function.
16504 * tree-flow.h (_edge_var_map): New field.
16505 * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
16506 * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
16507 redirect_edge_var_map_add.
16508 * tree-outof-ssa.c (_elim_graph): New field.
16509 (insert_partition_copy_on_edge): New parameter.
16510 (insert_value_copy_on_edge): New parameter.
16511 (insert_rtx_to_part_on_edge): New parameter.
16512 (insert_part_to_rtx_on_edge): New parameter.
16513 (elim_graph_add_edge): New parameter.
16514 (elim_graph_remove_succ_edge): New parameter.
16515 (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
16516 (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
16517 (new_elim_graph): Add block debug info.
16518 (clear_elim_graph): Likewise.
16519 (delete_elim_graph): Likewise.
16520 (elim_graph_add_node): Likewise.
16521 (elim_graph_add_edge): Likewise.
16522 (elim_graph_remove_succ_edge): Likewise.
16523 (eliminate_build): Likewise.
16524 (elim_forward): Likewise.
16525 (elim_unvisited_predecessor): Likewise.
16526 (elim_backward): Likewise.
16527 (elim_create): Likewise.
16528 (eliminate_phi): Likewise.
16529 (insert_backedge_copies): Likewise.
16530 * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
16532 (rewrite_add_phi_arguments): Likewise.
16533 * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
16534 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
16535 * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
16536 * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
16537 * tree-ssa-loop-manip.c (create_iv): Likewise.
16538 (add_exit_phis_edge): Likewise.
16539 (split_loop_exit_edge): Likewise.
16540 (copy_phi_node_args): Likewise.
16541 (tree_transform_and_unroll_loop): Likewise.
16542 * value-prof.c (gimple_ic): Likewise.
16543 (gimple_stringop_fixed_value): Likewise.
16544 * tree-tailcall.c (add_successor_phi_arg): Likewise.
16545 (eliminate_tail_call): Likewise.
16546 (create_tailcall_accumulator): Likewise.
16547 (tree_optimize_tail_calls_1): Likewise.
16548 * tree-phinodes.c (add_phi_arg): Likewise.
16549 (make_phi_node): Likewise.
16550 (resize_phi_node): Likewise.
16551 (remove_phi_arg_num): Likewise.
16552 * omp-low.c (expand_parallel_call): Likewise.
16553 (expand_omp_for_static_chunk): Likewise.
16554 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
16556 (slpeel_update_phi_nodes_for_guard1): Likewise.
16557 (slpeel_update_phi_nodes_for_guard2): Likewise.
16558 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
16559 (set_prologue_iterations): Likewise.
16560 (slpeel_tree_peel_loop_to_edge): Likewise.
16561 (vect_loop_versioning): Likewise.
16562 * tree-parloops.c (create_phi_for_local_result): Likewise.
16563 (transform_to_exit_first_loop): Likewise.
16564 (create_parallel_loop): Likewise.
16565 * ipa-split.c (split_function): Likewise.
16566 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
16567 (vect_create_epilog_for_reduction): Likewise.
16568 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
16569 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
16570 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
16571 (cond_if_else_store_replacement_1): Likewise.
16572 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
16573 (remove_forwarder_block_with_phi): Likewise.
16574 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
16575 * tree-predcom.c (initialize_root_vars): Likewise.
16576 (initialize_root_vars_lm): Likewise.
16577 * sese.c (sese_add_exit_phis_edge): Likewise.
16578 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
16579 * tree-ssa.c (flush_pending_stmts): Likewise.
16580 (redirect_edge_var_map_add): Likewise.
16581 (ssa_redirect_edge): Likewise.
16582 * gimple-streamer-in.c (input_phi): Likewise.
16583 * tree-vect-stmts.c (vectorizable_load): Likewise.
16584 * tree-inline.c (copy_phis_for_bb): Likewise.
16585 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
16586 * tree-switch-conversion.c (fix_phi_nodes): Likewise.
16587 * tree-cfg.c (reinstall_phi_args): Likewise.
16588 (gimple_make_forwarder_block): Likewise.
16589 (add_phi_args_after_copy_edge): Likewise.
16590 (gimple_duplicate_sese_tail): Likewise.
16592 2012-07-09 Oleg Endo <olegendo@gcc.gnu.org>
16595 * config/sh/sh.c (sequence_insn_p): New function.
16596 (find_barrier, sh_insn_length_adjustment): Use it.
16598 2012-07-09 Iain Sandoe <iain@codesourcery.com>
16601 * config/i386/i386.c (ix86_fold_builtin): Call SUBTARGET_FOLD_BUILTIN
16603 * config/darwin.h: Rename TARGET_FOLD_BUILTIN to
16604 SUBTARGET_FOLD_BUILTIN.
16605 * config/rs6000/darwin.h: Map TARGET_FOLD_BUILTIN onto
16606 SUBTARGET_FOLD_BUILTIN.
16608 2012-07-09 Iain Sandoe <iain@codesourcery.com>
16610 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Move NeXT
16611 runtime exceptions model setting from here ...
16612 * config/darwin.c (darwin_override_options): ... to here.
16614 2012-07-09 Steven Bosscher <steven@gcc.gnu.org>
16616 PR tree-optimization/53887
16617 * tree-cfg.c (group_case_labels_stmt): Make non-static.
16618 * tree-flow.h (group_case_labels_stmt): Add prototype.
16619 * tree-switch-conversion.c (process_switch): Use group_case_labels_stmt
16620 to pre-process every switch.
16622 2012-07-09 Jason Merrill <jason@redhat.com>
16625 * tree.c (type_contains_placeholder_1): Handle NULLPTR_TYPE.
16626 (type_hash_eq): Likewise.
16628 2012-07-09 Tom de Vries <tom@codesourcery.com>
16629 Richard Guenther <rguenther@suse.de>
16631 * tree-ssa-ccp.c (optimize_unreachable): New function.
16632 (execute_fold_all_builtins): Use optimize_unreachable to optimize
16633 BUILT_IN_UNREACHABLE. Don't optimize after BUILT_IN_UNREACHABLE.
16635 2012-07-09 Richard Guenther <rguenther@suse.de>
16638 * graphite-optimize-isl.c: Make sure CU is not empty.
16640 2012-07-09 Steven Bosscher <steven@gcc.gnu.org>
16642 * gensupport.c (init_rtx_reader_args_cb): Start counting code
16643 generating patterns from 1 to free up 0 for CODE_FOR_nothing.
16644 * gencodes.c (main): Give CODE_FOR_nothing the value 0. Add
16645 the LAST_INSN_CODE marker at the end.
16646 * genoutput.c (nothing): New static struct data.
16647 (idata): Initialize to ¬hing.
16648 (idata_end): Initialize to ¬hing.next.
16649 (init_insn_for_nothing): New function to create dummy 'nothing' insn.
16651 * genpeep.c (insn_code_number): Remove global variable.
16652 (gen_peephole): Take it as an argument instead.
16653 (main): Take insn_code_number from read_md_rtx.
16654 * optabs.h: Revert r161809:
16655 (optab_handlers): Change type of insn_code back to insn_code.
16656 (optab_handler, widening_optab_handler, set_optab_handler,
16657 set_widening_optab_handler, convert_optab_handler,
16658 set_convert_optab_handler, direct_optab_handler,
16659 set_direct_optab_handler): Remove int casts.
16660 Revert to treating the insn_code field as "insn_code".
16662 2012-07-08 Oleg Endo <olegendo@gcc.gnu.org>
16664 * config/sh/sh.md (*return_i): Move trap_exit attribute check to ...
16665 * config/sh/sh.c (sh_cfun_trap_exit_p): ... this new function.
16666 * config/sh/sh-protos.h: Declare it.
16668 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
16670 * mcf.c: Do not include tm.h, tree.h, and langhooks.h.
16671 (dump_fixup_graph): Use current_function_name.
16672 (adjust_cfg_counts): Likewise.
16673 * ira-conflicts.c: Do not include tree.h.
16674 (ira_build_conflicts): Use REG_USERVAR_P instead of DECL_ARTIFICIAL.
16676 2012-07-08 Oleg Endo <olegendo@gcc.gnu.org>
16679 * config/sh/sh.md (*branch_true_eq, *branch_false_ne, nott): New insns.
16681 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
16683 * basic-block.h: Re-group most prototypes per file.
16684 (struct edge_list): Remove num_blocks field.
16685 (dump_bb_info): Adjust prototypes.
16686 (dump_reg_info): Move prototype to regs.h.
16687 * function.h: Do not include tree.h.
16688 Include vec.h, vecir.h, input.h and machmode.h to compensate.
16689 (function_name): New prototype.
16690 * gimple.h: Include tree.h to compensate for basic-block.h change.
16691 * langhooks.h: Note that tree.h is only necessary for enum tree_code.
16692 * regs.h (dump_reg_info): Prototype here.
16693 * regset.h: Adjust file reference in comment.
16694 (debug_regset): Remove prototype.
16695 * rtl.h: Include flags.h for flag_var_tracking_assignments.
16696 (MAY_HAVE_DEBUG_INSNS): Define as flag_var_tracking_assignments
16697 instead of no-longer-available tree.h's MAY_HAVE_DEBUG_STMTS.
16698 (dump_reg_info, dump_flow_info): Remove prototypes.
16699 * bb-reorder.c (set_edge_can_fallthru_flag): Move from cfganal.c
16700 to here, the only user. Make static.
16701 (reorder_basic_blocks): Call dump_reg_info before dump_flow_info.
16702 * cfg.c: Do not include tm.h, tree.h, rtl.h, hard-reg-set.h, regs.h,
16703 flags.h, function.h, except.h, diagnostic-core.h, tm_p.h, timevar.h,
16704 tree-pass.h, cfgloop.h, and tree-flow.h.
16705 Include basic-block.h, the first header I'd expect to be included.
16706 (reg_obstack): Move to df-core.c.
16707 (free_edge): Remove bogus ATTRIBUTE_UNUSED.
16708 (remove_edge_raw): Do not call tree-ssa's redirect_edge_var_map_clear.
16709 (redirect_edge_succ_nodup): Move to cfghooks.c.
16710 (dump_regset, debug_regset): Move to df-core.c.
16711 (dump_bb_info): Move to cfgrtl.c.
16712 (dump_reg_info): Move to regstat.c.
16713 (dump_flow_info): Move to cfgrtl.c.
16714 (debug_flow_info): Likewise.
16715 (dump_edge_info): Do not look at cfun, a CFG without cfun is nonsense.
16716 * cfganal.c: Do not include tm.h, rtl.h, obstack.h, hard-reg-set.h,
16717 insn-config.h, recog.h, diagnostic-core.h, tm_p.h, and cfgloop.h.
16718 (flow_active_insn_p, forwarder_block_p, can_fallthru,
16719 could_fall_through): Move to cfgrtl.c.
16720 (set_edge_can_fallthru_flag): Moved to bb-reorder.c.
16721 (create_edge_list): Do not set edge_list's removed num_blocks.
16722 (print_edge_list): Look at n_basic_blocks instead of num_blocks.
16723 (flow_nodes_print): Remove.
16724 (flow_edge_list_print): Remove.
16725 (inverted_post_order_compute): Use FOR_ALL_BB.
16726 * cfgrtl.c (dump_flow_info): Moved from cfg.c.
16727 Do not call dump_reg_info.
16728 (debug_flow_info): Moved from cfg.c
16729 (dump_bb_info): Moved from cfg.c. Take 'verbose' argument
16730 to avoid looking at TDF_* flags from tree-pass.h.
16731 (flow_active_insn_p, forwarder_block_p, can_fallthru,
16732 could_fall_through): Moved from cfganal.c.
16733 (print_rtl_with_bb): Adjust dump_bb_info calls.
16734 * cfghooks.c (redirect_edge_succ_nodup): Moved from cfg.c.
16735 (remove_edge): Call redirect_edge_var_map_clear if IR_GIMPLE.
16736 (cfgcleanup.c): Look at MAY_HAVE_DEBUG_INSNS, not MAY_HAVE_DEBUG_STMTS.
16737 * cselib.c: Include tree.h with a FIXME.
16738 * df-core.c (reg_obstack): Moved from cfg.c.
16739 (dump_regset): Likewise.
16740 (debug_regset): Likewise. Make a DEBUG_FUNCTION.
16741 * final.c (compute_alignments): Call dump_reg_info before
16743 * function.c (function_name): New function.
16744 (current_function_name): Use it.
16745 * ifcvt.c (rest_of_handle_if_conversion): Call dump_reg_info before
16747 * ira-conflicts.c: Include tree.h with a note.
16748 * regstat.c (dump_reg_info): Moved here from cfg.c.
16749 * loop-init.c: Include regs.h instead of hard-reg-set.h.
16750 (rtl_loop_init): Call dump_reg_info before dump_flow_info.
16751 (rtl_loop_done): Likewise.
16752 * mcf.c: Include tree.h before langhooks.h.
16753 * predict.c (maybe_hot_count_p): Assert we have cfun.
16754 (probably_never_executed_bb_p): Likewise.
16755 * profile.c (compute_branch_probabilities): Use gimple_dump_cfg
16756 instead of dump_flow_info.
16757 * sched-deps.c: Include tree.h with a FIXME.
16758 (call_may_noreturn_p): Add FIXME note why this function has to
16759 look at function decls instead of function decl flags.
16760 * sched-vis.c: Include tree.h with a FIXME.
16761 (print_rtl_slim): Adjust dump_bb_info uses.
16762 * statistics.c (statistics_fini_pass_2): Use current_function_name
16763 to avoid including tree.h.
16764 (statistics_counter_event): Use function_name for the same reason.
16765 (statistics_histogram_event): Likewise.
16766 * tracer.c (tracer): Remove bogus gcc_assert. Use brief_dump_cfg
16767 instead of dump_flow_info.
16768 * var-tracking.c (variable_tracking_main_1): Call dump_reg_info
16769 before dump_flow_info.
16770 * doc/cfg.texi: Update CFG documentation.
16771 * Makefile.in (RTL_H): Depend on FLAGS_H.
16772 (GIMPLE_H): Depend on TREE_H.
16773 (FUNCTION_H): Depend on VEC_H, vecir.h, INPUT_H and MACHMODE_H,
16774 but no longer on TREE_H.
16775 (C_COMMON_H): Depend on TREE_H.
16776 (cselib.o, cse.o, cfganal.o, loop-init.o, ira-conflicts.o,
16777 sched-deps.o, sched-vis.o): Fixup dependencies.
16779 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
16781 * alias.h: Do not include coretypes.h in header files.
16782 * cppbuiltin.h: Likewise.
16783 * double-int.h: Likewise.
16784 * gimple-fold.h: Likewise.
16785 * flags.h: Likewise.
16786 * tree-ssa-alias.h: Likewise.
16787 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free,
16788 OBSTACK_CHUNK_SIZE): Define here to avoid dependency on coretypes.h.
16789 * Makefile.in (RTL_BASE_H): Depend on coretypes.h.
16790 (TREE_H): Likewise.
16791 (ALIAS_H): Do not depend on coretypes.h.
16792 (FLAGS_H): Likewise.
16793 (realmpfr.o): Depend on coretypes.h.
16795 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
16797 * Makefile.in (gengtype-lex.o, gengtype-parse.o, gengtype-state.o,
16798 gengtype.o): Add -DGENERATOR_FILE manually for host gengtype objects.
16800 2012-07-07 Richard Earnshaw <rearnsha@arm.com>
16802 * arm.h (TARGET_CPU_CPP_BUILTINS): Remove Maverick support.
16803 (TARGET_FPA): Delete definition.
16804 (TARGET_MAVERICK): Likewise.
16805 (TARGET_FPA_EMU2): Likewise.
16806 (arm_fp_model): Remove FPA and Maverick models.
16807 (arm_arch_cirrus): Delete declaration.
16808 (FLOAT_WORDS_BIG_ENDIAN): Delete definition.
16809 (FIXED_REGISTERS): Remove FPA and Maverick support. Reorganize.
16810 (CALL_USED_REGISTERS): Likewise.
16811 (FIRST_FPA_REGNUM, LAST_FPA_REGNUM): Delete definition.
16812 (FIRST_VFP_REGNUM): Renumbered.
16813 (D7_VFP_REGNUM): Chain definition.
16814 (LAST_LO_VFP_REGNUM): Likewise.
16815 (FIRST_HI_VFP_REGNUM): Likewise.
16816 (LAST_HI_VFP_REGNUM): Likewise.
16817 (FIRST_IWMMXT_GR_REGNUM): Likewise.
16818 (LAST_IWMMXT_GR_REGNUM): Likewise.
16819 (FIRST_IWMMXT_REGNUM): Likewise.
16820 (LAST_IWMMXT_REGNUM): Likewise.
16821 (FRAME_POINTER_REGNUM): Renumbered.
16822 (ARG_POINTER_REGNUM): Renumbered.
16823 (FIRST_PSEUDO_REGISTER): Remove FPA and Maverick registers.
16824 (FIRST_CIRRUS_FP_REGNUM, LAST_CIRRUS_FP_REGNUM): Delete definitions.
16825 (HARD_REGNO_REGNUM): Remove FPA support.
16826 (REG_ALLOC_ORDER): Remove FPA and Maverick registers. Reorganize.
16827 (reg_class): Likewise.
16828 (REG_CLASS_NAMES): Likewise.
16829 (REG_CLASS_CONTENTS): Likewise.
16830 (CANNOT_CHANGE_MODE_CLASS): Never true. Update comment.
16831 (SECONDARY_INPUT_RELOAD_CLASS): Remove Maverick support.
16832 (CLASS_MAX_NREGS): Remove FPA and Maverick support.
16833 * aout.h (REGISTER_NAMES): Remove FPA and Maverick registers.
16834 Reorganize. Use AAPCS preferred names.
16835 (ADDITIONAL_REGISTER_NAMES): Remove aliases for Maverick. Update
16837 (OVERLAPPING_REGISTER_NAMES): Update register numbering.
16838 * arm.c (FL_CIRRUS): Delete definition.
16839 (arm_arch_cirrus): Delete variable.
16840 (arm_float_words_big_endian): Delete function.
16841 (cirrus_memory_offset): Delete function.
16842 (output_mov_long_double_fpa_from_arm): Delete function.
16843 (output_mov_long_double_arm_from_fpa): Delete function.
16844 (output_mov_double_fpa_from_arm): Delete function.
16845 (output_mov_double_arm_from_fpa): Delete function.
16846 (emit_sfm): Delete function.
16847 (maybe_get_arm_condition_code): Update comment.
16848 (arm_file_start): Always use softvfp for softfloat systems.
16849 (thumb_core_reg_alloc_order): Adjust for updated register allocation.
16850 (arm_option_override): Remove FPA and Maverick support. Always
16851 default to vfp as the fallback FPU format.
16852 (use_return_insn): Remove FPA support.
16853 (arm_get_frame_offsets): Likewise.
16854 (arm_save_coproc_regs): Likewise.
16855 (arm_canonicalize_comparison): Remove Maverick support.
16856 (arm_select_cc_mode): Likewise.
16857 (arm_gen_compare_reg): Likewise.
16858 (arm_print_operand): Likewise.
16859 (arm_libcall_value_1): Remove FPA and Maverick support.
16860 (arm_function_value_regno_p): Likewise.
16861 (arm_apply_result_size): Likewise.
16862 (arm_legitimate_index_p): Likewise.
16863 (thumb2_legitimate_index_p): Likewise.
16864 (legitimize_reload_address): Likewise.
16865 (arm_register_move_cost): Likewise.
16866 (arm_hard_regno_mode_ok): Likewise.
16867 (arm_regno_class): Likewise.
16868 (arm_dbx_register_number): Likewise.
16869 (arm_emit_unwind_sequence): Likewise.
16870 (arm_conditional_register_usage): Likewise.
16871 * arm-protos.h (neg_const_double_rtx_ok_for_fpa): Remove declaration.
16872 (cirrus_memory_offset): Likewise.
16873 (output_move_long_double_fpa_from_arm): Likewise.
16874 (output_move_long_double_arm_from_fpa): Likewise.
16875 (output_move_double_fpa_from_arm): Likewise.
16876 (output_move_double_arm_from_fpa): Likewise.
16877 (arm_float_words_big_endian): Likewise.
16878 * arm.md (CC_REGNUM): Renumbered.
16879 (VFPCC_REGNUM): Moved here. Renumbered.
16880 (FPA_F0_REGNUM, FPA_F7_REGNUM): Delete.
16881 (attr fpu): Remove FPA and Maverick support.
16882 * vfp.md (VFPCC_REGNUM): Delete. Moved to arm.md.
16883 * arm-cores.def (ep9312): Remove Maverick support.
16884 * arm-arches.def (ep9312): Delete architecture.
16885 * arm-tables.opt: Regenerated.
16887 * arm/linux-elf.h (FPUTYPE_DEFAULT): Set to vfp.
16889 2012-07-07 Steven Bosscher <steven@gcc.gnu.org>
16891 PR tree-optimization/53881
16892 * tree-switch-conversion.c (emit_case_bit_tests): Do not rely on
16893 comparing labels to establish uniqueness of a switch case target,
16894 use the CFG instead.
16896 2012-07-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16898 * combine.c (force_to_mode) [LSHIFTRT]: Avoid undefined behaviour
16899 due to negative shift amount.
16901 2012-07-07 Hans-Peter Nilsson <hp@axis.com>
16903 Fix configure test for "stack protector support in target C library".
16904 * configure.ac (test_prefix, test_exec_prefix): Move setting from
16905 inside sysroot handling to before and outside it.
16906 * configure: Regenerate.
16908 2012-07-06 Kai Tietz <ktietz@redhat.com>
16911 * config/i386/mingw32.h (NATIVE_SYSTEM_HEADER_DIR): Define it always
16912 as "/mingw/include".
16914 2012-07-06 Alexandre Oliva <aoliva@redhat.com>
16917 * var-tracking.c (vt_add_function_parameter): Convert
16918 internal_arg_pointer into arg_pointer-based address even
16921 2012-07-06 Alexandre Oilva <aoliva@redhat.com>
16923 PR rtl-optimization/53827
16926 * alias.c (memrefs_conflict_p): Adjust offset and size by the
16927 same amount for alignment ANDs.
16929 2012-07-06 Tom de Vries <tom@codesourcery.com>
16931 PR tree-optimization/51879
16932 * tree-ssa-sccvn.c (copy_reference_ops_from_call)
16933 (visit_reference_op_call): Handle case that lhs is not an SSA_NAME.
16934 (visit_use): Also call visit_reference_op_call for calls with a vdef.
16936 2012-07-06 Tom de Vries <tom@codesourcery.com>
16938 PR tree-optimization/52009
16939 * tree-ssa-tail-merge.c (gimple_equal_p): For GIMPLE_ASSIGN, compare
16940 value numbers of gimple_vdef.
16941 * tree-ssa-sccvn.h (vn_reference_insert): Add vdef parameter to
16943 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MODIFY_EXPR.
16944 (vn_reference_insert): Add and handle vdef parameter.
16945 (visit_reference_op_load): Add argument to vn_reference_insert call.
16946 (visit_reference_op_store): Find value number of vdef of store. Insert
16947 value number of vdef of store.
16949 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
16951 * config/i386/i386.md (simple lea to add peephole): Also transform
16952 RTXes where second PLUS operand matches output.
16954 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
16956 * config/i386/i386.c (construct_plt_address): Make static.
16957 * config/i386/i386-protos.h (construct_plt_address): Remove.
16959 2012-07-06 Nick Clifton <nickc@redhat.com>
16961 * config/mn10300/mn10300.c (mn10300_encode_section_info): Call
16962 default_encode_section_info.
16964 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
16967 * config/i386/i386.c (x86_output_mi_thunk): For CM_LARGE_PIC model,
16968 emit PIC sequence for fnaddr symbol reference in advance.
16970 2012-07-06 Eric Botcazou <ebotcazou@adacore.com>
16973 2012-06-14 Eric Botcazou <ebotcazou@adacore.com>
16975 * dwarf2out.c (function_possibly_abstracted_p): New static function.
16976 (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
16977 cgraph_function_possibly_inlined_p.
16978 (gen_inlined_subroutine_die): Return if the origin is to be ignored.
16979 (process_scope_var): Do not emit concrete instances of abstracted
16980 nested functions from here.
16981 (gen_decl_die): Emit the abstract instance if the function is possibly
16982 abstracted and not only possibly inlined.
16983 (dwarf2out_finish): Find the first non-abstract parent instance and
16984 attach concrete instances on the limbo list to it.
16986 2012-07-05 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16987 Julian Brown <julian@codesourcery.com>
16991 * config/arm/neon-gen.ml (return_by_ptr): Delete.
16992 (print_function): Handle empty strings.
16993 (return): Delete use of return_by_ptr.
16994 (mask_shape_for_shuffle): New function.
16995 (mask_elems): Likewise.
16996 (shuffle_fn): Likewise.
16997 (params): Simplify and remove use of return_by_ptr.
16998 (get_shuffle): New function.
16999 (print_variant): Update.
17000 * config/arm/neon.ml (rev_elems): New function.
17001 (permute_range): Likewise.
17002 (zip_range): Likewise.
17003 (uzip_range): Likewise.
17004 (trn_range): Likewise.
17005 (zip_elems): Likewise.
17006 (uzip_elems): Likewise.
17007 (trn_elems): Likewise.
17008 (features): New enumeration Use_shuffle. Delete ReturnPtr.
17011 (ops): Update entries for Vrev64, Vrev32, Vrev16, Vtr, Vzip, Vuzp.
17012 * config/arm/arm_neon.h: Regenerate.
17014 2012-07-05 Richard Guenther <rguenther@suse.de>
17016 * tree-pretty-print.c (dump_generic_node): Properly test
17017 the result of exact_log2.
17019 2012-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17021 * config/s390/s390-protos.h (s390_expand_movmem)
17022 (s390_expand_cmpmem): Add return value.
17023 * config/s390/s390.c (s390_expand_movmem, s390_expand_cmpmem):
17024 Return FALSE to use the library function in some cases.
17025 * config/s390/s390.md (movmem, cmpmem): Evaluate return value of C
17028 2012-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17030 * config.gcc: Enable ifunc attribute by default on s390 and s390x.
17032 2012-07-05 Steven Bosscher <steven@gcc.gnu.org>
17034 * expr.c (try_casesi): Remove bogus ATTRIBUTE_UNUSED markers.
17035 * stmt.c (dump_case_nodes): New.
17036 (expand_case): Split out code generation parts into new functions.
17037 (expand_switch_as_decision_tree_p): Split out from expand_case.
17038 (emit_case_decision_tree): Likewise.
17039 (emit_case_dispatch_table): Likewise.
17041 2012-07-05 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
17043 * config/arm/iterators.md (SDF): New mode iterator.
17044 (V_if_elem): Add support for SF and DF modes.
17046 (F_constraint): New mode iterator attribute.
17047 (F_fma_type): Likewise.
17048 config/arm/vfp.md (fma<SDF:mode>4): New pattern.
17049 (*fmsub<SDF:mode>4): Likewise.
17050 (*fmnsub<SDF:mode>4): Likewise.
17051 (*fmnadd<SDF:mode>4): Likewise.
17053 2012-07-04 Uros Bizjak <ubizjak@gmail.com>
17055 * expmed.c (expand_mult): Initialize coeff and is_neg.
17057 2012-07-04 Oleg Endo <olegendo@gcc.gnu.org>
17059 * config/sh/predicates.md (zero_extend_operand): New predicate.
17060 * config/sh/sh.md (zero_extendhisi2): Simplify by using new
17061 zero_extend_operand predicate.
17062 (zero_extendqisi2): Likewise.
17064 2012-07-04 Uros Bizjak <ubizjak@gmail.com>
17066 PR middle-end/53321
17067 * ipa.c (symtab_remove_unreachable_nodes): Partially revert r187375
17068 to not call cgraph_propagate_frequency if something was changed.
17070 2012-07-04 Richard Guenther <rguenther@suse.de>
17072 PR middle-end/53433
17073 * gimple-fold.c (get_base_constructor): Do not return an
17074 error_mark_node DECL_INITIAL.
17076 2012-07-04 Richard Guenther <rguenther@suse.de>
17078 PR tree-optimization/53844
17079 * tree-ssa-dse.c (dse_possible_dead_store_p): Properly handle
17080 the loop virtual PHI.
17082 2012-07-04 Richard Guenther <rguenther@suse.de>
17084 PR tree-optimization/53849
17085 * tree-cfg.c (move_stmt_op): Only call add_referenced_var
17086 for duplicated locals. Use add_referenced_var_1 to avoid
17087 pushing/popping cfun.
17089 2012-07-04 Kai Tietz <ktietz@redhat.com>
17091 * config/i386/winnt.c (i386_pe_reloc_rw_mask): New function.
17092 * config/i386/i386-protos.h (i386_pe_reloc_rw_mask): Add
17094 * config/i386/cygming.h (TARGET_ASM_RELOC_RW_MASK): Define
17095 as i386_pe_reloc_rw_mask.
17097 2012-07-04 Richard Guenther <rguenther@suse.de>
17099 * tree.c (find_decls_types_r): Handle TYPE_CONTEXT the same
17100 as in free_lang_data_in_type.
17102 2012-07-04 Tobias Grosser <tobias@grosser.es>
17103 Michael Matz <matz@suse.de>
17105 * Makefile.in (OBJS): Add graphite-optimize-isl.o.
17106 (graphite-optimize-isl.o): Add dependencies.
17107 * common.opt (floop-nest-optimize): New flag.
17108 * doc/invoke.texi (floop-nest-optimize): Document.
17109 * graphite-dependences.c (compute_deps): Export.
17110 * graphite-poly.h (compute_deps): Declare.
17111 * graphite-optimize-isl.c: New file.
17112 * graphite-poly.c (apply_poly_transforms): Run the loop
17114 * tree-ssa-loop.c (gate_graphite_transforms): Enable graphite
17115 if -floop-nest-optimize is enabled.
17117 2012-07-03 Oleg Endo <olegendo@gcc.gnu.org>
17119 * config/sh/predicates.md (logical_and_operand): New predicate.
17120 * config/sh/constraints.md (Jmb, Jmw): New constraints.
17121 * config/sh/sh.md (andsi3): Move expander above insns. Add handling
17122 of 0xFFFF constant. Use logical_and_operand predicate and
17123 satisfies_constraint_Jmb, satisfies_constraint_Jmw.
17124 (*andsi3_compact): Make it an insn_and_split. Use
17125 logical_and_operand predicate. Add Jmb,Jmw alternatives.
17127 2012-07-03 Jason Merrill <jason@redhat.com>
17130 * tree.c (build_zero_cst): Handle NULLPTR_TYPE.
17132 2012-07-03 Nick Clifton <nickc@redhat.com>
17134 * config/mep/mep.c (mep_reorg_regmove): Use
17135 next_nonnote_non_debug_insn to advance to the next insn. Do not
17136 expect delete_insn to return an rtx.
17138 2012-07-03 Richard Guenther <rguenther@suse.de>
17140 * doc/install.texi (CLooG): Clarify how CLooG needs to be
17141 configured and that it needs to be built against ISL 0.10.
17143 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
17145 * config/i386/i386.c (ix86_option_override_internal): Fix wrong
17146 code model string in the error message.
17148 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
17151 * config/i386/i386.c (x86_output_mi_thunk): Check if fnaddr satisfies
17152 sibcall_insn_operand. Move it to a temporary register if not.
17154 2012-07-03 Andreas Schwab <schwab@linux-m68k.org>
17157 * config/m68k/m68k.c (m68k_option_override): Reset stack_limit_rtx
17160 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
17162 * config/i386/xmmintrin.h (_mm_sfence): Use __builtin_ia32_pause.
17164 2012-07-03 Roland McGrath <mcgrathr@google.com>
17166 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): Also require that the
17167 assembler accept 'rep bsf ...', 'rep bsr ...', 'rep ret' and 'rep nop'.
17168 * configure: Regenerated.
17169 * config/i386/i386.md (simple_return_internal_long): Use %;
17170 (ctz<mode>2): Likewise.
17171 (*pause): Likewise.
17173 2012-07-02 Oleg Endo <olegendo@gcc.gnu.org>
17176 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): New
17178 * config/sh/sh-protos.h (get_t_reg_rtx): New prototype.
17179 * config/sh/sh.c (get_t_reg_rtx): New function. Use it when invoking
17180 gen_branch_true and gen_branch_false.
17181 * config/sh/sh.md: Use get_t_reg_rtx when invoking gen_branch_true and
17183 (branch_true, branch_false): Use t_reg_operand predicate.
17184 (*branch_true, *branch_false): Delete.
17185 (movt): Use t_reg_operand predicate.
17186 (*negnegt): Use negt_reg_operand predicate and fold little and big
17188 (*movtt): Use t_reg_operand and fold little and big endian variants.
17189 (*movt_qi): Delete.
17191 2012-07-02 Steven Bosscher <steven@gcc.gnu.org>
17193 * stmt.c (emit_case_bit_tests): Remove.
17194 (expand_case): Remove expand_switch_using_bit_tests_p code.
17195 * tree-switch-conversion.c (hoist_edge_and_branch_if_true): New.
17196 (MAX_CASE_BIT_TESTS): Moved from stmt.c to here.
17197 (lshift_cheap_p): Likewise.
17198 (expand_switch_using_bit_tests_p): Likewise.
17199 (struct case_bit_test): Likewise.
17200 (case_bit_test_cmp): Likewise.
17201 (emit_case_bit_tests): New implementation for GIMPLE.
17202 (gen_inbound_check): Do not release post-dominator info here.
17203 (process_switch): Reorder code. Expand as bit tests if it
17205 (do_switchconv): Release post-dominator info here if something changed.
17206 (struct gimple_opt_pass): Verify more.
17207 * tree.h (expand_switch_using_bit_tests_p): Remove prototype.
17209 2012-07-02 Martin Jambor <mjambor@suse.cz>
17211 PR middle-end/38474
17212 * ipa-prop.c (compute_known_type_jump_func): Put BINFO check before a
17213 dynamic type change check.
17215 2012-07-02 Richard Guenther <rguenther@suse.de>
17216 Michael Matz <matz@suse.de>
17217 Tobias Grosser <tobias@grosser.es>
17218 Sebastian Pop <sebpop@gmail.com>
17220 * Makefile.in: Remove PPL flags in favor of ISL ones.
17221 (BACKENDLIBS): Remove PPL libs.
17222 (INCLUDES): Remove PPL includes in favor of ISL ones.
17223 (graphite-clast-to-gimple.o): Remove graphite-dependences.h and
17224 graphite-cloog-compat.h dependencies.
17225 (graphite-dependences.o): Likewise.
17226 (graphite-poly.o): Likewise.
17227 * configure.ac: Declare ISL vars instead of PPL ones.
17228 * configure: Regenerated.
17229 * doc/install.texi: Replace PPL requirement documentation with ISL one.
17230 * graphite-blocking.c: Remove PPL code, add ISL equivalent.
17231 * graphite-clast-to-gimple.c: Likewise.
17232 * graphite-dependences.c: Likewise.
17233 * graphite-interchange.c: Likewise.
17234 * graphite-poly.h: Likewise.
17235 * graphite-poly.c: Likewise.
17236 * graphite-sese-to-poly.c: Likewise.
17237 * graphite.c: Likewise.
17238 * graphite-scop-detection.c: Re-arrange includes.
17239 * graphite-cloog-util.c: Remove.
17240 * graphite-cloog-util.h: Likewise.
17241 * graphite-ppl.h: Likewise.
17242 * graphite-ppl.c: Likewise.
17243 * graphite-dependences.h: Likewise.
17245 2012-07-02 Richard Guenther <rguenther@suse.de>
17247 Merge from graphite branch
17248 2011-07-21 Tobias Grosser <tobias@grosser.es>
17250 * Makefile.in (graphite-clast-to-gimple.o, graphite-cloog-util.o):
17251 Remove graphite-cloog-util.h.
17252 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop,
17253 build_iv_mapping, translate_clast_user, translate_clast,
17254 free_scattering, initialize_cloog_names, build_cloog_prog,
17255 create_params_index): Do not use old compatibility functions.
17256 (clast_name_to_index, set_cloog_options): Remove code for legacy cloog.
17257 * graphite-cloog-util.c (openscop_print_cloog_matrix): Do not use old
17258 compatibility functions.
17259 (new_Cloog_Scattering_from_ppl_Polyhedron): Remove code for legacy
17261 * graphite-cloog-util.h: Remove include of graphite-cloog-util.h.
17262 * graphite.c (graphite.c): Do not call outdated cloog_initialize() and
17264 * graphite-cloog-compat.h: Remove.
17266 2011-08-09 Tobias Grosser <tobias@grosser.es>
17268 * graphite-clast-to-gimple.c (new_clast_name_index): Store a copy
17269 of the string, no just a reference.
17270 (clast_name_index): Add a new field, that specifies if we need to free
17272 (free_clast_name_index): If necessary, free the name string.
17273 (clast_name_index_elt_info): Calculate the hash based on the string
17274 content, not the memory location it is stored in.
17275 (clast_name_to_level): Specify that we do not need to free the name.
17276 (clast_name_to_index): Dito.
17277 (clast_name_to_lb_ub): Dito.
17278 (eq_clast_name_indexes): Compare the strings, not their base pointers.
17279 (free_scattering): Removed.
17280 (initialize_cloog_names): Renamed to add_names_to_union_domain().
17281 (add_names_to_union_domain): Changed to work on a union_domain,
17282 instead of a CloogNames structure.
17283 (build_cloog_prog): Removed.
17284 (build_cloog_union_domain): New.
17285 (generate_cloog_input): New.
17286 (scop_to_clast): Use CloogInput instead of CloogProgram.
17287 (print_generated_program): Adapt to new scop_to_clast() and do not
17288 print the CloogProgram any more.
17289 (create_params_index): Removed, functionality integrated in
17290 add_names_to_union_domain().
17291 (gloog): Adapt to new scop_to_clast().
17292 * graphite-clast-to-gimple.h (scop_to_clast): Remove.
17294 2012-01-11 Tobias Grosser <tobias@grosser.es>
17296 * graphite-clast-to-gimple.c (clast_name_to_index,
17297 clast_name_to_lb_ub, clast_name_to_gcc): Change types.
17298 (clast_to_gcc_expression): Add clast_expr_name as a new
17299 case. Do not assume a clast_expr_term points always to a
17301 (type_for_clast_term): Do not assume a clast_expr_term points always to
17303 (type_for_clast_name): New.
17304 (type_for_clast_expr): Add clast_expr_name as a new case.
17306 2011-08-03 Sebastian Pop <sebpop@gmail.com>
17308 * graphite-cloog-util.c (new_Cloog_Domain_from_ppl_Polyhedron,
17309 new_Cloog_Scattering_from_ppl_Polyhedron,
17310 new_Cloog_Domain_from_ppl_Pointset_Powerset): Remove ATTRIBUTE_UNUSED.
17312 2012-07-02 Jakub Jelinek <jakub@redhat.com>
17314 PR tree-optimization/53645
17315 * tree-vect-generic.c (expand_vector_divmod): Use TYPE_MODE (type)
17316 instead of TYPE_MODE (wider_type) as can_vec_perm_p argument.
17318 2012-07-01 Wei Guozhi <carrot@google.com>
17321 * config/arm/arm-protos.h (const_ok_for_dimode_op): New prototype.
17322 * config/arm/arm.c (const_ok_for_dimode_op): New function.
17323 * config/arm/constraints.md (Dd): New constraint.
17324 * config/arm/predicates.md (arm_adddi_operand): New predicate.
17325 * config/arm/arm.md (adddi3): Extend it to handle constants.
17326 (arm_adddi3): Likewise.
17327 (addsi3_carryin_<optab>): Extend it to handle sbc case.
17328 (addsi3_carryin_alt2_<optab>): Likewise.
17329 * config/arm/neon.md (adddi3_neon): Extend it to handle constants.
17331 2012-06-30 Nathan Sidwell <nathan@acm.org>
17333 * coverage.c (bbg_file_stamp): New.
17334 (read_counts_file): Merge incoming stamp with bbg_file_stamp.
17335 (build_info): Write bbg_file_stamp.
17336 (coverage_init): Initialize bbg_file_stamp. Read counts file
17337 before writing graph header.
17338 (coverage_finish): Don't unlink the data file if we can generate a
17340 * tree.h (crc32_unsigned): Declare.
17341 * tree.c (crc32_unsigned_bits): New, broken out of ...
17342 (crc32_byte): ... here. Use it.
17343 (crc32_unsigned): New.
17345 2012-06-29 Cary Coutant <ccoutant@google.com>
17347 * dwarf2out.c (add_pubname_string): Don't check for want_pubnames.
17348 (gen_subprogram_die): Don't add pubname if want_pubnames is false.
17349 (gen_variable_die): Likewise.
17350 (gen_namespace_die): Likewise.
17352 2012-06-29 Eric Botcazou <ebotcazou@adacore.com>
17354 * tree-eh.c (lower_try_finally_switch): Really put the location of the
17355 last statement of the finally block onto the switch.
17357 2012-06-29 H.J. Lu <hongjiu.lu@intel.com>
17360 * config/i386/gnu-user64.h (WCHAR_TYPE): Use "int" only for
17363 2012-06-29 Sterling Augustine <saugustine@google.com>
17365 * dwarf2out.c (add_pubname): Add comment.
17366 (add_pubtype): Fix indentation.
17367 (gen_enumeration_type_die): Likewise.
17369 2012-06-29 Jakub Jelinek <jakub@redhat.com>
17371 * tree-vect-generic.c (expand_vector_divmod): For even/odd
17372 widening multiply, put even always as first argument to VEC_PERM_EXPR.
17374 2012-06-29 Richard Henderson <rth@redhat.com>
17376 * tree-vect-generic.c: Include target.h.
17377 (expand_vector_divmod): Use builtin_mul_widen_even/odd if supported.
17378 * Makefile.in (tree-vect-generic.o): Update.
17380 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
17382 * configure.ac: Remove special gtfiles case for C.
17383 * configure: Regenerate.
17384 * Makefile.in: Remove C front-end hooks and build hooks that
17385 will be picked up from c/Make-lang.in now.
17386 Add tree-mudflap to C_COMMON_OBJS.
17387 * gengtype.c (files_rules): Adjust gt-files for c/c-decl.c.
17388 * config/vms/vms.c: Look for c-tree.h in c/.
17389 * doc/gty.texi: Remove reference to c-config-lang.in.
17390 * doc/sourcebuild.texi: Document the c/ subdirectory.
17392 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
17394 * system.h (CASE_USE_BIT_TESTS): Poison.
17395 * stmt.c (CASE_USE_BIT_TESTS): Fold away into its only user ...
17396 (expand_switch_using_bit_tests_p): ...here.
17397 * doc/tm.texi.in (CASE_USE_BIT_TESTS): Remove documentation.
17398 * doc/tm.texi (CASE_USE_BIT_TESTS): Regenerate.
17400 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
17402 * system.h (IFCVT_EXTRA_FIELDS): Poison.
17403 (IFCVT_INIT_EXTRA_FIELDS): Poison.
17404 * basic-block.h (struct ce_if_block): Remove IFCVT_EXTRA_FIELDS.
17405 * ifcvt.c (find_if_header): Use IFCVT_MACHDEP_INIT instead of
17406 IFCVT_INIT_EXTRA_FIELDS.
17407 * gengtype-parse.c (struct_field_seq): Remove obsolete comment.
17408 * config/frv/frv.h (IFCVT_INIT_EXTRA_FIELDS): Rename to
17409 IFCVT_MACHDEP_INIT.
17410 * config/frv/frv.c (frv_ifcvt_init_extra_fields): Rename to
17411 frv_ifcvt_machdep_init.
17412 * doc/tm.texi.in (IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS):
17413 Remove documentation.
17414 (IFCVT_MACHDEP_INIT): Document.
17415 * doc/tm.texi: Regenerate.
17417 2012-06-29 Nick Clifton <nickc@redhat.com>
17419 * config/lm32/lm32.c (lm32_compute_frame_size): Fix typo.
17421 2012-06-29 Jakub Jelinek <jakub@redhat.com>
17423 * tree-vect-stmts.c (vectorizable_operation): Check both
17424 VEC_WIDEN_MULT_LO_EXPR and VEC_WIDEN_MULT_HI_EXPR optabs.
17425 Verify that operand[0]'s mode is TYPE_MODE (wide_vectype).
17427 2012-06-28 Richard Henderson <rth@redhat.com>
17429 * doc/generic.texi (MULT_HIGHPART_EXPR): Document it.
17431 2012-06-28 Jakub Jelinek <jakub@redhat.com>
17433 PR tree-optimization/51581
17434 * tree-vect-stmts.c (permute_vec_elements): Add forward decl.
17435 (vectorizable_operation): Handle vectorization of MULT_HIGHPART_EXPR
17436 also using VEC_WIDEN_MULT_*_EXPR or builtin_mul_widen_* plus
17437 VEC_PERM_EXPR if vector MULT_HIGHPART_EXPR isn't supported.
17438 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use
17439 MULT_HIGHPART_EXPR instead of VEC_WIDEN_MULT_*_EXPR and shifts.
17441 PR tree-optimization/53645
17442 * tree-vect-generic.c (expand_vector_divmod): Use MULT_HIGHPART_EXPR
17443 instead of VEC_WIDEN_MULT_{HI,LO}_EXPR followed by VEC_PERM_EXPR
17446 2012-06-28 Georg-Johann Lay <avr@gjlay.de>
17449 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): New.
17450 * config/avr/avr-protos.h (avr_hard_regno_call_part_clobbered): New.
17451 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): Forward to
17452 avr_hard_regno_call_part_clobbered.
17454 2012-06-28 Richard Guenther <rguenther@suse.de>
17456 PR middle-end/53790
17457 * expr.c (expand_expr_real_1): Verify if the type is complete
17458 before inspecting its size.
17460 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
17462 * doc/include/gpl.texi: Remove.
17463 * doc/sourcebuild.texi (Texinfo Manuals): Don't mention gpl.texi.
17465 2012-06-28 Jakub Jelinek <jakub@redhat.com>
17467 PR tree-optimization/53645
17468 * tree-vect-generic.c (add_rshift): New function.
17469 (expand_vector_divmod): New function.
17470 (expand_vector_operation): Use it for vector integer
17471 TRUNC_{DIV,MOD}_EXPR by VECTOR_CST.
17472 * tree-vect-patterns.c (vect_recog_divmod_pattern): Replace
17473 unused lguup variable with dummy_int.
17475 2012-06-28 OLivier Hainque <hainque@adacore.com>
17477 * expr.c (convert_move): Latch mem integer inputs into a
17478 register before expanding a multi-instructions sequence.
17480 2012-06-28 Alexandre Oliva <aoliva@redhat.com>
17481 Uros Bizjak <ubizjak@gmail.com>
17482 Jakub Jelinek <jakub@redhat.com>
17486 * var-tracking.c (vt_emit_notes): Release loc_exp_dep_pool...
17487 (vt_finalize): ... here instead, if needed.
17489 2012-06-28 Alexandre Oliva <aoliva@redhat.com>
17494 * dce.c (word_dce_process_block): Check whether inserting debug
17495 temps are needed even for needed insns.
17496 (dce_process_block): Likewise.
17497 * df-problems.c (dead_debug_add): Add comment about multi-regs.
17498 (dead_debug_insert_temp): Likewise. Don't subreg when we're
17499 setting fewer regs than a multi-reg requires.
17501 2012-06-27 Richard Henderson <rth@redhat.com>
17503 * config/alpha/alpha.c (alpha_dimode_u): New.
17504 (alpha_init_builtins): Initialize it, and use it.
17505 (alpha_fold_builtin_cmpbge): Use alpha_dimode_u.
17506 (alpha_fold_builtin_zapnot, alpha_fold_builtin_insxx): Likewise.
17507 (alpha_fold_vector_minmax, alpha_fold_builtin_perr): Likewise.
17508 (alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb): Likewise.
17509 (alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw): Likewise.
17510 (alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz): Likewise.
17511 (alpha_fold_builtin_ctpop): Likewise.
17512 (alpha_fold_builtin_umulh): Remove.
17513 (alpha_fold_builtin): Use MULT_HIGHPART_EXPR for UMULH; fix
17514 typo in MAX_ARGS check.
17516 2012-06-27 Richard Henderson <rth@redhat.com>
17518 * tree.def (MULT_HIGHPART_EXPR): New.
17519 * cfgexpand.c (expand_debug_expr): Ignore it.
17520 * expr.c (expand_expr_real_2): Handle it.
17521 * fold-const.c (int_const_binop_1): Likewise.
17522 * optabs.c (optab_for_tree_code): Likewise.
17523 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
17524 * tree-inline.c (estimate_operator_cost): Likewise.
17525 * tree-pretty-print.c (dump_generic_node): Likewise.
17526 (op_code_prio, op_symbol_code): Likewise.
17527 * tree.c (commutative_tree_code): Likewise. Also handle
17528 WIDEN_MULT_EXPR, VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_LO_EXPR.
17530 2012-06-27 Richard Henderson <rth@redhat.com>
17533 * config/i386/i386.c (ix86_rtx_costs): Fix typo vs UNITS_PER_WORD
17534 in 2012-06-23 change. Adjust two other DImode tests as well.
17536 2012-06-27 Nick Clifton <nickc@redhat.com>
17538 * config/rx/rx.md (comparesi3_extend): Remove = modifier from
17541 2012-06-27 Richard Guenther <rguenther@suse.de>
17543 PR middle-end/53676
17544 * tree-chrec.c (chrec_convert_1): Represent truncation to
17545 a type with undefined overflow as truncation to an unsigned
17546 type converted to the type with undefined overflow.
17547 * tree-scalar-evolution.c (interpret_rhs_expr): For computing
17548 the scalar evolution of a truncated widened operation avoid
17549 looking at the non-existing evolution of the widened operation
17552 2012-06-27 Richard Guenther <rguenther@suse.de>
17554 PR tree-optimization/53774
17555 * tree-ssa-reassoc.c (get_rank): All default defs have
17557 (init_reassoc): Precompute rank for all SSA default defs.
17559 2012-06-27 Nick Clifton <nickc@redhat.com>
17561 * config/rx/rx.md (simple_return): Use the simple_return rtx.
17563 2012-06-26 Richard Henderson <rth@redhat.com>
17565 * config/i386/i386.c (ix86_rtx_costs): Use standard_sse_constant_p
17566 and don't fall thru from standard_80387_constant_p to the memory
17569 2012-06-26 Richard Henderson <rth@redhat.com>
17571 * config/i386/i386.c (bdesc_args): Update. Change
17572 IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI to OPTION_MASK_ISA_SSE2.
17573 (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): New.
17574 (ix86_builtin_mul_widen_even): Use it.
17575 (ix86_builtin_mul_widen_odd): Relax SMUL_ODD from sse4 to sse2.
17576 (ix86_expand_mul_widen_evenodd): Handle signed for sse2.
17577 * config/i386/sse.md (vec_widen_<s>mult_hi_<V124_AVX2>): Allow
17579 (vec_widen_<s>mult_lo_<V124_AVX2>): Likewise.
17580 (vec_widen_<s>mult_odd_<VI4_AVX2>): Likewise. Relax from V124_AVX2.
17581 (vec_widen_smult_even_v4si): New.
17583 2012-06-26 Richard Henderson <rth@redhat.com>
17585 * config/i386/sse.md (mul<VI8_AVX2>3): Change from insn_and_split
17586 to expander; move guts to ...
17587 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): ... here. Add
17588 highparts before shifting up.
17589 * config/i386/i386-protos.h: Update.
17591 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
17593 * system.h (USE_COMMON_FOR_ONE_ONLY): Poison.
17594 * defaults.h (USE_COMMON_FOR_ONE_ONLY): Do not provide default.
17595 * config/darwin.h (USE_COMMON_FOR_ONE_ONLY): Do not define.
17597 2012-06-26 Alexandre Oliva <aoliva@redhat.com>
17599 * var-tracking.c (vt_add_function_parameter): Use a preserved
17600 VALUE for the MEM address of an incoming parameter.
17602 2012-06-26 Sterling Augustine <saugustine@google.com>
17604 * dwarf2out.c (output_pubnames): Add check for DW_TAG_enumerator.
17605 (prune_unused_types): Likewise.
17607 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
17609 * system.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
17610 UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Poison.
17611 * vmsdbgout.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
17612 UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Rename to
17613 VMS_UNALIGNED_SHORT_ASM_OP, VMS_UNALIGNED_INT_ASM_OP,
17614 VMS_UNALIGNED_LONG_ASM_OP, and VMS_UNALIGNED_DOUBLE_INT_ASM_OP.
17615 * config/microblaze/microblaze.h (UNALIGNED_SHORT_ASM_OP,
17616 UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Do not define.
17617 * doc/tm.texi.in: Remove UNALIGNED_INT_ASM_OP reference from the
17619 * doc/tm.texi: Regenerate.
17620 * doc/cpp.texi: Make example for #error generic.
17621 * config/frv/frv.h: Fix example text to match tm.texi.
17623 2012-06-26 Bill Schmidt <wschmidt@linux.ibm.com>
17625 * tree-pass.h (pass_strength_reduction): New decl.
17626 * tree-ssa-loop-ivopts.c (initialize_costs): Make non-static.
17627 (finalize_costs): Likewise.
17628 * timevar.def (TV_TREE_SLSR): New timevar.
17629 * gimple-ssa-strength-reduction.c: New.
17630 * tree-flow.h (initialize_costs): New decl.
17631 (finalize_costs): Likewise.
17632 * Makefile.in (tree-ssa-strength-reduction.o): New dependencies.
17633 * passes.c (init_optimization_passes): Add pass_strength_reduction.
17635 2012-06-26 Matt Turner <mattst88@gmail.com>
17637 * doc/extend.texi (__builtin_arm_tinsrb): Add missing second parameter.
17638 (__builtin_arm_tinsrh): Likewise.
17639 (__builtin_arm_tinsrw): Likewise.
17640 (__builtin_arm_wsadb): Add missing v2si parameter.
17641 (__builtin_arm_wsadh): Likewise.
17642 (__builtin_arm_getwcx): Delete.
17643 (__builtin_arm_setwcx): Delete.
17644 (__builtin_arm_getwcgr0): Add.
17645 (__builtin_arm_getwcgr1): Add.
17646 (__builtin_arm_getwcgr2): Add.
17647 (__builtin_arm_getwcgr3): Add.
17648 (__builtin_arm_setwcgr0): Add.
17649 (__builtin_arm_setwcgr1): Add.
17650 (__builtin_arm_setwcgr2): Add.
17651 (__builtin_arm_setwcgr3): Add.
17653 2012-06-26 Richard Guenther <rguenther@suse.de>
17656 2012-06-21 Richard Guenther <rguenther@suse.de>
17658 * tree-inline.c (estimate_num_insns): Estimate call cost for
17659 tailcalls properly.
17661 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
17664 * doc/tm.texi.in: Document LOGICAL_OP_NON_SHORT_CIRCUIT.
17665 * doc/tm.texi: Regenerate.
17667 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
17670 * config/mips/mips.h: Do not define ALL_COP_ADDITIONAL_REGISTER_NAMES.
17671 * config/frv/frv.h: Do not define REVERSE_CONDEXEC_PREDICATES_P.
17672 * doc/tm.texi.in: Remove documentation for unused target macros
17673 ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
17674 DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
17675 REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
17676 TARGET_NARROW_VOLATILE_BITFIELDS.
17677 Document that MD_HANDLE_UNWABI is a macro in libgcc.
17678 * doc/tm.texi: Regenerate.
17679 * system.h: Poison target macros
17680 ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
17681 DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
17682 REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
17683 TARGET_NARROW_VOLATILE_BITFIELDS
17685 2012-06-26 Jan Hubicka <jh@suse.cz>
17688 * cgraph.h (varpool_can_remove_if_no_refs): Fix handling of
17691 2012-06-26 Dehao Chen <dehao@google.com>
17693 * tree-inline.c: (expand_call_inline): Ensure that lexical block's
17694 source location is consistant with the call stmt.
17696 2012-06-26 Ulrich Weigand <ulrich.weigand@linaro.org>
17698 PR tree-optimization/53729
17699 PR tree-optimization/53636
17700 * tree-vect-slp.c (vect_slp_analyze_bb_1): Delay call to
17701 vect_verify_datarefs_alignment until after statements have
17702 been marked as relevant/irrelevant.
17703 * tree-vect-data-refs.c (vect_verify_datarefs_alignment):
17704 Skip irrelevant statements.
17705 (vect_enhance_data_refs_alignment): Use STMT_VINFO_RELEVANT_P
17706 instead of STMT_VINFO_RELEVANT.
17707 (vect_get_data_access_cost): Do not check for supportable
17708 alignment before calling vect_get_load_cost/vect_get_store_cost.
17709 * tree-vect-stmts.c (vect_get_store_cost): Do not abort when
17710 handling unsupported alignment.
17711 (vect_get_load_cost): Likewise.
17713 2012-06-25 Steven Bosscher <steven@gcc.gnu.org>
17715 * config/rl78/rl78.h: Do not undefine DONT_USE_BUILTIN_SETJMP.
17716 Do not define JMP_BUF_SIZE.
17718 2012-06-26 Jakub Jelinek <jakub@redhat.com>
17720 PR tree-optimization/53748
17721 * tree-ssa-phiopt.c (conditional_replacement): Only optimize
17722 if arg0/arg1 have integral or pointer types.
17724 2012-06-25 Richard Henderson <rth@redhat.com>
17726 * config/i386/sse.md (sse2_sse4_1): Remove code attr.
17727 (<s>dot_prodv4si, <s>dot_prodv8si): Remove
17728 (sdot_prodv4si): New; handle only XOP.
17730 2012-06-25 Richard Henderson <rth@redhat.com>
17732 * config/i386/i386-builtin-types.def (V4UDI, V8USI): New.
17733 (V2UDI_FUNC_V4USI_V4USI): New.
17734 (V4UDI_FUNC_V8USI_V8USI): New.
17735 * config/i386/i386.c (ix86_expand_args_builtin): Handle them.
17736 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): New.
17737 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): New.
17738 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): New.
17739 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): New.
17740 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): New.
17741 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): New.
17742 (bdesc_args): Add them.
17743 (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): New.
17744 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): New.
17745 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): New.
17746 (ix86_expand_mul_widen_evenodd): Use xop_pmacsdqh.
17747 * config/i386/sse.md (vec_widen_<s>mult_odd_<V124_AVX2>): New.
17749 2012-06-25 Richard Henderson <rth@redhat.com>
17751 * config/i386.sse.md (mul<VI4_AVX2>3): Use xop_pmacsdd.
17753 2012-06-25 Richard Henderson <rth@redhat.com>
17755 * config/i386/i386.c (ix86_rtx_costs) [MULT]: Only apply XOP cost
17757 (ix86_expand_vec_interleave): New.
17758 (ix86_expand_mul_widen_evenodd): New.
17759 (ix86_expand_mul_widen_hilo): New.
17760 (ix86_expand_sse2_mulv4si3): Use ix86_expand_mul_widen_evenodd.
17761 * config/i386/i386.md (u_bool) New code attr.
17762 * config/i386/predicates.md
17763 (nonimmediate_or_const_vector_operand): Remove.
17764 * config/i386/sse.md (mul<VI4_AVX2>3): Don't use it; don't test
17765 both AVX and SSE4_1.
17766 (vec_widen<s>mult_hi_<VI2_AVX2>): Remove.
17767 (vec_widen<s>mult_lo_<VI2_AVX2>): Remove.
17768 (vec_widen<s>mult_hi_v8si): Remove.
17769 (vec_widen<s>mult_lo_v8si): Remove.
17770 (vec_widen_smult_hi_v4si): Remove.
17771 (vec_widen_smult_lo_v4si): Remove.
17772 (vec_widen_umult_hi_v4si): Remove.
17773 (vec_widen_umult_lo_v4si): Remove.
17774 (vec_widen_<s>mult_hi_<VI124_AVX2>): New.
17775 (vec_widen_<s>mult_lo_<VI124_AVX2>): New.
17776 * config/i386/i386-protos.h: Update.
17778 2012-06-25 Christophe Lyon <christophe.lyon@st.com>
17780 * config/arm/neon.md (UNSPEC_VLD1_DUP): Remove.
17781 (neon_vld1_dup): Restrict to VQ operands.
17782 (neon_vld1_dupv2di): New, fixes vld1q_dup_s64.
17784 2012-06-25 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
17785 James Greenhalgh <james.greenhalgh@arm.com>
17787 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add new built-ins.
17788 (TARGET_FMA): New macro.
17789 (TARGET_ARM_QBIT, TARGET_ARM_SAT): Likewise.
17790 (TARGET_ARM_ARCH): Likewise.
17791 (TARGET_ARM_ARCH_ISA_THUMB): Likewise.
17792 (TARGET_V6M, TARGET_V7M): Likewise.
17793 (TARGET_ARM_ARCH_PROFILE): Likewise.
17794 (TARGET_ARM_FEATURE_LDREX): Likewise.
17795 (TARGET_ARM_FP, TARGET_NEON_FP): Likewise.
17796 (ARM_MIN_ENUM_SIZE): Likewise.
17797 * config/arm/arm.c (arm_file_start): Refactor appropriately.
17798 (base_architecture): New enumeration.
17799 (arm_base_arch): New global variable.
17800 (processors): Add field base_arch.
17801 (ARM_ARCH, ARM_CORE): Adjust accordingly.
17802 (arm_option_override): Add initialization of arm_base_arch.
17803 * doc/cpp.texi (system-specific predefined macros.): Change.
17805 2012-06-25 Jakub Jelinek <jakub@redhat.com>
17808 * config/i386/sse.md (sse_loadlps): Use x m x constraints instead
17809 of x x x in the vmovlps load alternative.
17811 2012-06-25 Richard Sandiford <rdsandiford@googlemail.com>
17814 * df.h (dead_debug_add): Remove third argument.
17815 * df-problems.c (dead_debug_add): Likewise. Use the REGNO of the
17816 REG that we want to replace instead.
17817 (dead_debug_insert_temp): Use the REGNO of the reg that we want
17818 to replace instead of DF_REF_REGNO. Require there to always be
17819 at least one such use. Check for cases where the same location
17820 has more than df_ref associated with it.
17821 (df_note_bb_compute): Remove third dead_debug_add argument.
17822 * dce.c (word_dce_process_block): Likewise.
17824 2012-06-25 Steven Bosscher <steven@gcc.gnu.org>
17826 * config/v850/v850.c: Remove redundant extern declarations for
17827 last_assemble_variable_decl and size_directive_output.
17829 * doc/tm.texi.in: Document JMP_BUF_SIZE.
17830 * doc/tm.texi: Regenerate.
17831 * config/sparc/sparc.h (JMP_BUF_SIZE): Do not define.
17832 * config/pa/pa.h (JMP_BUF_SIZE): Likewise.
17833 * config/stormy16/stormy16.h: Likewise.
17835 * config/picochip/picochip.c: Do not define DONT_USE_BUILTIN_SETJMP.
17837 * doc/sourcebuild.texi: Add missing subdirectories.
17839 2012-06-25 Tristan Gingold <gingold@adacore.com>
17841 * config/i386/i386.h: Fix typo.
17843 2012-06-25 Tristan Gingold <gingold@adacore.com>
17845 * config/i386/winnt.c (i386_pe_seh_end_prologue): Move code to ...
17846 (seh_cfa_adjust_cfa): ... that function.
17847 (seh_emit_stackalloc): Do not emit out of range values.
17848 * config/i386/i386.md: Delete unused UNSPEC_REG_SAVE,
17849 UNSPEC_DEF_CFA constants.
17850 * config/i386/i386.h (SEH_MAX_FRAME_SIZE): Define.
17851 * config/i386/i386.c (ix86_frame_pointer_required): Required
17852 for very large frames on SEH target.
17853 (ix86_compute_frame_layout): Save area is before frame pointer
17854 on SEH target. Handle very large frames.
17855 (ix86_expand_prologue): Likewise.
17857 2012-06-24 Steven Bosscher <steven@gcc.gnu.org>
17859 * output.h: (current_function_is_leaf,
17860 current_function_sp_is_unchanging,
17861 current_function_uses_only_leaf_regs): Remove.
17862 * function.c (current_function_is_leaf,
17863 current_function_sp_is_unchanging,
17864 current_function_uses_only_leaf_regs): Remove.
17865 (rest_of_handle_check_leaf_regs): Set crtl->uses_only_leaf_regs
17866 instead of current_function_uses_only_leaf_regs.
17867 * function.h (struct rtl_data): New fields sp_is_unchanging,
17868 is_leaf, uses_only_leaf_regs.
17869 * resource.c (init_resource_info): Replace current_function_is_leaf,
17870 current_function_sp_is_unchanging, and
17871 current_function_uses_only_leaf_regs with new crtl fields.
17872 * sdbout.c (sdbout_symbol): Likewise.
17873 * df-core.c (rest_of_handle_df_initialize): Likewise.
17874 * ira.c (ira): Likewise.
17875 * final.c (final_start_function): Likewise.
17876 * reorg.c (fill_simple_delay_slots): Likewise.
17877 * regrename.c (check_new_reg_p): Likewise.
17878 * stack-ptr-mod.c (notice_stack_pointer_modification_1): Likewise.
17879 (notice_stack_pointer_modification): Likewise.
17880 * dbxout.c (dbxout_symbol): Likewise.
17881 (dbxout_parms): Likewise.
17882 * sel-sched.c (init_regs_for_mode): Likewise.
17883 * dwarf2out.c (dbx_reg_number): Likewise.
17884 (multiple_reg_loc_descriptor): Likewise.
17885 * config/i386/i386.c (ix86_frame_pointer_required): Likewise.
17886 (gen_pop): Likewise.
17887 (ix86_select_alt_pic_regnum): Likewise.
17888 (ix86_compute_frame_layout): Likewise.
17889 (ix86_finalize_stack_realign_flags): Likewise.
17890 (ix86_expand_epilogue): Likewise.
17891 * config/rs6000/rs6000.c (rs6000_stack_info): Likewise.
17892 * config/h8300/h8300.c (byte_reg): Likewise.
17893 * config/c6x/c6x.c (must_reload_pic_reg_p): Likewise.
17894 (c6x_save_reg): Likewise.
17895 (c6x_compute_frame_layout): Likewise.
17896 * config/pa/pa.c (pa_compute_frame_size): Likewise.
17897 (pa_output_function_prologue): Likewise.
17898 * config/stormy16/stormy16.c (struct xstormy16_stack_layout): Likewise.
17899 * config/sparc/sparc.md (attr "leaf_function"): Likewise.
17900 * config/sparc/sparc.c (sparc_initial_elimination_offset): Likewise.
17901 (sparc_expand_prologue): Likewise.
17902 (sparc_flat_expand_prologue): Likewise.
17903 (sparc_asm_function_prologue): Likewise.
17904 (sparc_output_mi_thunk): Likewise.
17905 (sparc_frame_pointer_required): Likewise.
17906 * config/epiphany/epiphany.c (epiphany_compute_function_type):
17908 (epiphany_compute_frame_size): Likewise.
17909 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
17910 * config/cris/cris.c (cris_md_asm_clobbers): Likewise.
17911 (cris_frame_pointer_required): Likewise.
17912 * config/tilepro/tilepro.c (emit_sp_adjust): Likewise.
17913 (tilepro_current_function_is_leaf): Likewise.
17914 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Likewise.
17915 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
17916 * config/ia64/ia64.c (find_gr_spill): Likewise.
17917 (ia64_compute_frame_size): Likewise.
17918 (ia64_can_eliminate): Likewise.
17919 (ia64_initial_elimination_offset): Likewise.
17920 * config/m68k/m68k.c (m68k_save_reg): Likewise.
17921 (m68k_expand_epilogue): Likewise.
17922 * config/rx/rx.c (rx_get_stack_layout): Likewise.
17923 * config/tilegx/tilegx.c (tilegx_current_function_is_leaf): Likewise.
17924 * config/picochip/picochip.c (picochip_can_eliminate_link_sp_save):
17926 (picochip_output_frame_debug): Likewise.
17927 * config/sh/sh.c (sh_media_register_for_return): Likewise.
17928 (sh_allocate_initial_value): Likewise.
17929 (sh_output_mi_thunk): Likewise.
17930 * config/microblaze/microblaze.c (microblaze_must_save_register):
17932 (compute_frame_size): Likewise.
17933 (microblaze_initial_elimination_offset): Likewise.
17934 (microblaze_expand_prologue): Likewise.
17935 (microblaze_expand_epilogue): Likewise.
17936 * config/frv/frv.c (frv_expand_epilogue): Likewise.
17937 (frv_frame_pointer_required): Likewise.
17938 * config/spu/spu.c (get_pic_reg): Likewise.
17939 (direct_return): Likewise.
17940 (spu_expand_prologue): Likewise.
17941 (spu_expand_epilogue): Likewise.
17942 (spu_initial_elimination_offset): Likewise.
17943 * config/mips/mips.c (mips_global_pointer): Likewise.
17944 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
17945 (mips_compute_frame_info): Likewise.
17946 * config/mep/mep.c (mep_interrupt_saved_reg): Likewise.
17947 (mep_reload_pointer): Likewise.
17948 * config/rl78/rl78.c (need_to_save): Likewise.
17949 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
17950 * config/score/score.c (score_compute_frame_size): Likewise.
17951 (score_function_prologue): Likewise.
17952 * config/bfin/bfin.c (must_save_p): Likewise.
17953 (expand_prologue_reg_save): Likewise.
17954 (expand_epilogue_reg_restore): Likewise.
17955 (bfin_frame_pointer_required): Likewise.
17956 (n_regs_saved_by_prologue): Likewise.
17957 (add_to_reg): Likewise.
17958 (expand_interrupt_handler_prologue): Likewise.
17959 (expand_interrupt_handler_epilogue): Likewise.
17960 (bfin_expand_prologue): Likewise.
17961 * config/avr/avr.c (avr_regs_to_save): Likewise.
17962 (avr_prologue_setup_frame): Likewise.
17963 (expand_epilogue): Likewise.
17964 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
17965 (s390_register_info): Likewise.
17966 (s390_frame_info): Likewise.
17967 (s390_init_frame_layout): Likewise.
17968 (s390_emit_prologue): Likewise.
17971 2012-06-24 Steven Bosscher <steven@gcc.gnu.org>
17973 * system.h: Poison ASM_BYTE_OP and ASM_OUTPUT_BYTE.
17974 * vmsdbgout: Do not undefine it if defined.
17975 Rename local ASM_BYTE_OP definition to VMS_ASM_BYTE_OP.
17976 * config/microblaze/microblaze/h: Do no define ASM_BYTE_OP.
17977 * config/mep/mep.h: Do not define ASM_OUTPUT_BYTE.
17979 2012-06-24 Richard Sandiford <rdsandiford@googlemail.com>
17981 * config/mips/mips.c (mips_process_sync_loop): Add missing enum cast.
17983 2012-06-23 Richard Henderson <rth@redhat.com>
17986 * config/i386/i386.c (ix86_rtx_costs): Add reasonable costs for
17987 V*QImode shifts and multiply.
17988 (ix86_expand_vecop_qihi): Support shifts.
17989 * config/i386/i386.md (any_shift): New code iterator.
17990 * config/i386/sse.md (ashlv16qi3): Merge ...
17991 (<any_shiftrt>v16qi3): ... into ...
17992 (<any_shift><VI1_AVX2>3): ... here. Use ix86_expand_vecop_qihi
17993 to support SSE and AVX.
17995 * config/i386/i386.c (ix86_expand_sse_unpack): Split operands[]
17996 parameter into src and dest.
17997 * config/i386/sse.md (vec_unpacku_hi_<V124_AVX2>): Update call.
17998 (vec_unpacks_hi_<V124_AVX2>): Likewise.
17999 (vec_unpacku_lo_<V124_AVX2>): Likewise.
18000 (vec_unpacks_lo_<V124_AVX2>): Likewise.
18001 * config/i386/i386-protos.h: Update.
18003 * config/i386/sse.md (mul<VI1_AVX2>3): Change from insn_and_split to
18004 pure expander; move expansion code ...
18005 * config/i386/i386.c (ix86_expand_vecop_qihi): ... here. New function.
18006 * config/i386/i386-protos.h: Update.
18008 2012-06-22 Edmar Wienskoski <edmar@freescale.com>
18010 * config/rs6000/rs6000.md (define_attr "type"): New type popcnt.
18011 (popcntb<mode>2): Add attribute type popcnt.
18012 (popcntd<mode>2): Ditto.
18013 * config/rs6000/power4.md (define_insn_reservation): Add type popcnt.
18014 * config/rs6000/power5.md (define_insn_reservation): Ditto.
18015 * config/rs6000/power7.md (define_insn_reservation): Ditto.
18016 * config/rs6000/476.md (define_insn_reservation): Ditto.
18017 * config/rs6000/power6.md (define_insn_reservation): New
18018 reservation for popcnt instructions.
18020 2012-06-22 H.J. Lu <hongjiu.lu@intel.com>
18022 * doc/invoke.texi: Update -mpreferred-stack-boundary=3 warning.
18024 2012-06-22 H.J. Lu <hongjiu.lu@intel.com>
18027 * doc/invoke.texi: Add a warning for -mpreferred-stack-boundary=3.
18029 * config/i386/i386.c (ix86_option_override_internal): Allow
18030 -mpreferred-stack-boundary=3 for 64-bit if SSE is disabled.
18032 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to 64 for 64-bit
18033 if SSE is disabled.
18035 2012-06-22 Bill Schmidt <wschmidt@linux.ibm.com>
18037 * double-int.c (double_int_multiple_of): New function.
18038 * double-int.h (double_int_multiple_of): New decl.
18039 * tree-ssa-loop-ivopts.c (add_cost, zero_cost): Remove undefs.
18040 (mbc_entry_hash): New forward decl.
18041 (mbc_entry_eq): Likewise.
18042 (zero_cost): Change to no_cost.
18043 (mult_costs): New static var.
18044 (cost_tables_exist): Likewise.
18045 (initialize_costs): New function.
18046 (finalize_costs): Likewise.
18047 (tree_ssa_iv_optimize_init): Call initialize_costs.
18048 (add_cost): Change to add_regs_cost; distinguish costs by speed.
18049 (multiply_regs_cost): New function.
18050 (add_const_cost): Likewise.
18051 (extend_or_trunc_reg_cost): Likewise.
18052 (negate_reg_cost): Likewise.
18053 (multiply_by_cost): Change to multiply_by_const_cost; distinguish
18055 (get_address_cost): Change add_cost to add_regs_cost; change
18056 multiply_by_cost to multiply_by_const_cost.
18057 (force_expr_to_var_cost): Change zero_cost to no_cost; change
18058 add_cost to add_regs_cost; change multiply_by_cost to
18059 multiply_by_const_cost.
18060 (split_cost): Change zero_cost to no_cost.
18061 (ptr_difference_cost): Likewise.
18062 (difference_cost): Change zero_cost to no_cost; change multiply_by_cost
18063 to multiply_by_const_cost.
18064 (get_computation_cost_at): Change add_cost to add_regs_cost; change
18065 multiply_by_cost to multiply_by_const_cost.
18066 (determine_use_iv_cost_generic): Change zero_cost to no_cost.
18067 (determine_iv_cost): Change add_cost to add_regs_cost.
18068 (iv_ca_new): Change zero_cost to no_cost.
18069 (tree_ssa_iv_optimize_finalize): Call finalize_costs.
18070 * tree-ssa-address.c (most_expensive_mult_to_index): Change
18071 multiply_by_cost to multiply_by_const_cost.
18072 * tree-flow.h (multiply_by_cost): Change to multiply_by_const_cost.
18073 (add_regs_cost): New decl.
18074 (multiply_regs_cost): Likewise.
18075 (add_const_cost): Likewise.
18076 (extend_or_trunc_reg_cost): Likewise.
18077 (negate_reg_cost): Likewise.
18079 2012-06-22 Richard Guenther <rguenther@suse.de>
18081 Merge from graphite branch
18082 2011-08-10 Sebastian Pop <sebpop@gmail.com>
18084 * graphite-sese-to-poly.c (build_scop_drs): Fix memory leak.
18086 2012-01-13 Tobias Grosser <tobias@grosser.es>
18088 * tree-flow.h (parallelized_function_p): Declare.
18089 * tree-parloops.c (parallelized_function_p): Export.
18090 * graphite.c (graphite_transform_loops): Do not run graphite on
18091 already parallel functions.
18093 2012-06-22 Alan Modra <amodra@gmail.com>
18095 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Pass in and
18096 return mem. Convert to indirect addressing if not indirect or
18097 indexed. Adjust all callers.
18099 2012-06-22 Richard Guenther <rguenther@suse.de>
18101 * gcov-iov.c: Include bconfig.h and system.h.
18103 2012-06-22 Andreas Schwab <schwab@linux-m68k.org>
18105 * doc/include/texinfo.tex: Update to version 2012-06-05.14.
18107 2012-06-22 Richard Guenther <rguenther@suse.de>
18109 PR gcov-profile/53744
18110 * gcov-iov.c (main): Treat "" and "prerelease" the same.
18112 2012-06-22 Eric Botcazou <ebotcazou@adacore.com>
18115 * dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Fortran90 as language
18116 for GNU Fortran if in strict DWARF2 mode.
18118 2012-06-22 Eric Botcazou <ebotcazou@adacore.com>
18120 * tree-ssa-live.c (remove_unused_scope_block_p): Remove again
18121 DECL_IGNORED_P non-reg vars even if they are used.
18123 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
18127 * var-tracking.c (vt_get_canonicalize_base): New.
18128 (vt_canonicalize_addr, vt_stack_offset_p): New.
18129 (vt_canon_true_dep): New.
18130 (drop_overlapping_mem_locs): Use vt_canon_true_dep.
18131 (clobber_overlaping_mems): Use vt_canonicalize_addr.
18133 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
18137 * var-tracking.c (vt_initialize): Record initial offset between
18138 arg pointer and stack pointer.
18140 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
18144 * var-tracking.c (vt_init_cfa_base): Drop redundant recording of
18147 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
18151 * alias.c (memrefs_conflict_p): Improve handling of AND for alignment.
18153 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
18155 * ddg.c (build_intra_loop_deps): Discard deps of nondebug on debug.
18157 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
18160 * cselib.c (promote_debug_loc): Don't crash on NULL argument.
18162 2012-06-21 Meador Inge <meadori@codesourcery.com>
18165 * c-decl.c (c_push_function_context): Restore the behavior to reuse
18166 the language function allocated for -Wunused-local-typedefs.
18167 (c_pop_function_context): If necessary, clear the language function
18168 created in c_push_function_context. Always clear out the
18169 x_cur_stmt_list field of the restored language function.
18171 2012-06-21 Sterling Augustine <saugustine@google.com>
18172 Cary Coutant <ccoutant@google.com>
18174 * dwarf2out.c (is_cu_die, is_namespace_die, is_class_die,
18175 add_AT_pubnames, add_enumerator_pubname, want_pubnames): New functions.
18176 (comdat_type_struct): New field 'skeleton_die'.
18177 (breakout_comdat_types): Update it.
18178 (add_pubname): Rework logic. Call is_class_die, is_cu_die and
18179 is_namespace_die. Fix minor style violation. Call want_pubnames.
18180 (add_pubname_string): Call want_pubnames.
18181 (add_pubtype): Rework logic for calculating type name. Call
18182 is_namespace_die. Call want_pubnames.
18183 (output_pubnames): Move conditional logic deciding when to produce the
18184 section from dwarf2out_finish. Use new skeleton_die field.
18185 (base_type_die): Call add_pubtype.
18186 (gen_enumeration_type_die): Unconditionally call add_pubtype.
18187 (gen_subprogram_die): Adjust calls to add_pubname.
18188 (gen_namespace_die): Call add_pubname_string.
18189 (dwarf2out_finish): Call add_AT_pubnames; Move logic on when to
18190 produce pubnames and pubtypes sections to output_pubnames.
18191 * common.opt (-gpubnames): New option.
18192 * doc/invoke.texi: Document it.
18194 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
18196 * config/m32c/m32c-pragma.c: Remove unnecessary includes.
18198 2012-06-21 Michael Matz <matz@suse.de>
18200 PR middle-end/53688
18201 * builtins.c (get_memory_rtx): Always build an all-aliasing MEM_REF
18204 2012-06-21 Richard Guenther <rguenther@suse.de>
18206 * tree-inline.c (estimate_num_insns): Estimate call cost for
18207 tailcalls properly.
18209 2012-06-20 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
18211 * tree.h (DECL_SOURCE_COLUMN): New accessor.
18213 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
18215 * config/i386/i386.md (SINCOS): New int iterator.
18216 (sincos): New int attribute.
18217 (*<sincos>xf2_i387): Macroize insn from *{sin,cos}xf2_i387 using
18218 SINCOS int iterator.
18219 (*<sincos>_extend<mode>xf2_i387): Macroize insn from
18220 *{sin,cos}_extend<mode>xf2_i387 using SINCOS int iterator.
18222 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
18224 * config/i386/i386.md (RDFSGSBASE): New int iterator.
18225 (WRFSGSBASE): Ditto.
18226 (fsgs): New int attribute.
18227 (rd<fsgs>base<mode>): Macroize insn from rd<fsgs>base<mode> using
18228 RDFSGSBASE int iterator.
18229 (wr<fsgs>base<mode>): Macroize insn from wr<fsgs>base<mode> using
18230 WRFSGSBASE int iterator.
18232 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
18234 * config/i386/i386.md (<rounding_insn><mode>2): Macroize expander
18235 from {floor,ceil,btrunc}<mode>2 using FIST_ROUNDING int iterator.
18236 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Macroize expander
18237 from l{floor,ceil}<MODEF:mode><SWI48:mode>2 using FIST_ROUNDING
18240 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
18242 * system.h: Poison ASM_OUTPUT_IDENT and IDENT_ASM_OP.
18244 2012-06-20 Richard Guenther <rguenther@suse.de>
18246 PR tree-optimization/30318
18247 * tree-vrp.c (range_int_cst_p): Do not reject overflowed
18249 (range_int_cst_singleton_p): But explicitely here.
18250 (zero_nonzero_bits_from_vr): And here.
18251 (extract_range_from_binary_expr_1): Re-implement PLUS_EXPR
18252 to cover all cases we can perform arbitrary precision
18253 arithmetic with double-ints.
18254 (intersect_ranges): Handle adjacent anti-ranges.
18256 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
18258 * config/i386/i386.md (rounding_insn): New int attribute.
18259 (<rounding_insn>xf2): Macroize insn from
18260 {floor,ceil,btrunc}xf2 using FRNDINT_ROUNDING int iterator.
18261 (l<rounding_insn>xf<mode>2): Rename from l<rounding>xf<mode>2.
18263 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
18265 * config/i386/i386.md (IEEE_MAXMIN): New int iterator.
18266 (ieee_maxmin): New int attribute.
18267 (*ieee_s<ieee_maxmin><mode>3): Macroize insn from
18268 *ieee_s{max,min}<mode>3 using IEEE_MAXMIN int iterator.
18270 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
18272 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): Remove.
18273 * config/arm/arm.c: Do not include c-pragma.h.
18274 (arm_emit_eabi_attribute): New function based on EMIT_EABI_ATTRIBUTE.
18275 (arm_file_start): Replace uses of EMIT_EABI_ATTRIBUTE with calls
18276 to arm_emit_eabi_attribute.
18277 * arm-c.c: Do not include output.h.
18278 (arm_output_c_attributes): Replace use of EMIT_EABI_ATTRIBUTE with a
18279 call to arm_emit_eabi_attribute.
18280 * config/arm/arm-protos.h (arm_emit_eabi_attribute): Prototype it.
18282 2012-06-20 Richard Guenther <rguenther@suse.de>
18284 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
18285 Allow adjusting alignment of user-aligned decls again.
18287 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
18289 * config/rl78/rl78-c.c: Remove unnecessary includes.
18291 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
18293 * config/cris/cris.c: Include cgraph.h.
18294 (cris_option_override): Do not set non-existing flag_no_gcc_ident.
18296 2012-06-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18298 * emit-rtl.c (need_atomic_barrier_p): New function.
18299 * emit-rtl.h (need_atomic_barrier_p): Declare it.
18300 * config/alpha/alpha.c (alpha_{pre,post}_atomic_barrier): Use it.
18301 * config/arm/arm.c (arm_{pre,post}_atomic_barrier): Use it.
18302 * config/tilegx/tilegx.c (tile_{pre,post}_atomic_barrier): Use it.
18303 * config/mips/mips.c (mips_{pre,post}_atomic_barrier_p): Remove.
18304 (mips_process_sync_loop): Use generic version instead.
18306 2012-06-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18308 * config/mips/mips.c (mips_process_sync_loop): Emit cmp result only if
18311 2012-06-19 Tom de Vries <vries@codesourcery.com>
18312 Maxim Kuvyrkov <maxim@codesourcery.com>
18314 * config/mips/constraints.md (ZR): New constraint.
18315 * config/mips/predicates.md (mem_noofs_operand): New predicate.
18316 * config/mips/mips.c (mips_print_operand): Handle new print modifier.
18317 * config/mips/mips.h (TARGET_XLP): Define.
18318 (TARGET_SYNC_AFTER_SC): Update.
18319 (ISA_HAS_SWAP, ISA_HAS_LDADD): Define.
18320 * config/mips/sync.md (atomic_exchange, atomic_fetch_add): Use
18321 XLP-specific swap and ldadd patterns.
18322 (atomic_exchange_swap, atomic_fetch_add_ldadd): New patterns.
18324 2012-06-19 Tom de Vries <vries@codesourcery.com>
18325 Maxim Kuvyrkov <maxim@codesourcery.com>
18327 * config/mips/mips.c (mips_emit_pre_atomic_barrier_p,)
18328 (mips_emit_post_atomic_barrier_p): New static functions.
18329 (mips_process_sync_loop): Use them. Emit sync memory barriers in
18330 accordance with memory model semantics. Add return of CMP result for
18332 * config/mips/mips.md: Update comment.
18333 (sync_cmp): New attribute.
18334 (sync_memmodel): New attribute replacing sync_release_barrier.
18335 * config/mips/sync.md (UNSPEC_ATOMIC_COMPARE_AND_SWAP,)
18336 (UNSPEC_ATOMIC_EXCHANGE, UNSPEC_ATOMIC_FETCH_OP): New constants.
18337 (sync_lock_test_and_set, test_and_set_12): Update.
18338 (atomic_compare_and_swap, atomic_exchange, atomic_exchange_llsc,)
18339 (atomic_fetch_add, atomic_fetch_add_llsc): New patterns.
18341 2012-06-19 Joseph Myers <joseph@codesourcery.com>
18343 * config/rs6000/spe.md (*mov_si<mode>_e500_subreg0): Rename to
18344 mov_si<mode>_e500_subreg0.
18345 (*mov_si<mode>_e500_subreg0_elf_low)
18346 (*mov_si<mode>_e500_subreg4_elf_low): New patterns.
18348 2012-06-19 Richard Henderson <rth@redhat.com>
18350 * config/alpha/alpha.c: Include params.h.
18351 (alpha_option_override): Initialize PARAM_L1_CACHE_LINE_SIZE,
18352 PARAM_L1_CACHE_SIZE, PARAM_L2_CACHE_SIZE for the cpu tuning.
18354 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
18356 * doc/tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE,
18357 TARGET_OBJC_DECLARE_CLASS_DEFINITION): Add @hooks.
18358 (ASM_DECLARE_CLASS_REFERENCE, ASM_DECLARE_UNRESOLVED_REFERENCE):
18360 * doc/tm.texi: Regenerate.
18361 * config/darwin.h (ASM_OUTPUT_LABELREF): Remove special case for
18362 .objc_class_name_*.
18363 * config/darwin-c.c: Include target.h.
18364 (darwin_objc_declare_unresolved_class_reference): New function.
18365 (darwin_objc_declare_class_definition): New function.
18366 (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE): Define.
18367 (TARGET_OBJC_DECLARE_CLASS_DEFINITION): Define.
18369 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
18371 * target.def (output_ident): New hook.
18372 * targhooks.h (default_asm_output_ident_directive): Add prototype.
18373 * varasm.c (assemble_asm): Only prefix a tab if the string does not
18374 already start with one.
18375 (default_asm_output_ident_directive): New function to emit
18376 .ident as a top-level asm node while parsing, or directly to
18377 asm_out_file after parsing.
18378 * toplev.c (compile_file): Print a GCC .ident with
18379 targetm.asm_out.output_ident.
18380 * doc/tm.texi.in (ASM_OUTPUT_IDENT): Remove documentation for macro.
18381 (TARGET_ASM_OUTPUT_IDENT): Add @hook for this.
18382 * doc/tm.texi: Update.
18384 * config/elfos.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
18385 (TARGET_ASM_OUTPUT_IDENT): Define.
18386 * config/i386/djgpp.h (IDENT_ASM_OP): Remove.
18387 * config/i386/gas.h (ASM_OUTPUT_IDENT): Remove.
18388 * config/arm/aout.h (ASM_OUTPUT_IDENT): Remove.
18389 * config/sparc/sparc.h (IDENT_ASM_OP): Remove.
18390 (TARGET_ASM_OUTPUT_IDENT): Define.
18391 * config/picochip/picochip.h (IDENT_ASM_OP): Remove.
18392 (TARGET_ASM_OUTPUT_IDENT): Define.
18394 * config/cris/cris-protos.h (cris_asm_output_ident): Add prototype.
18395 * config/cris/cris.c (cris_asm_output_ident): New function.
18396 * config/cris/cris.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
18398 * config/microblaze/microblaze-protos.h (microblaze_asm_output_ident):
18400 * config/microblaze/microblaze.c: Include cgraph.h for add_asm_node.
18401 (microblaze_asm_output_ident): Rewrite to work similar to
18402 default_asm_output_ident_directive for front-end .idents.
18403 * config/microblaze/microblaze.h (ASM_OUTPUT_IDENT): Remove.
18404 (TARGET_ASM_OUTPUT_IDENT): Define.
18406 * config/mips/mips.h (ASM_OUTPUT_IDENT): Remove.
18407 * config/mips/sde.h (IDENT_ASM_OP, ASM_OUTPUT_IDENT): Remove.
18409 * config/rx/rx.c: Include cgraph.h for add_asm_node.
18410 (rx_asm_output_ident): New function, similar to
18411 default_asm_output_ident_directive, but handle AS100 syntax also, so
18412 that #ident also works for rx in AS100 syntax.
18413 (TARGET_ASM_OUTPUT_IDENT): Define.
18414 * config/rx/rx.h (IDENT_ASM_OP): Remove.
18416 * Makefile.in: Fix dependencies for c-family/c-lex.o.
18418 2012-06-19 Uros Bizjak <ubizjak@gmail.com>
18420 * config/i386/i386.md (FIST_ROUNDING): New int iterator.
18421 (rounding): Handle UNSPEC_FIST_{FLOOR,CEIL}.
18423 (*fist<mode>2_<rounding>_1): Macroize insn from
18424 *fist<mode>2_{floor,ceil}_1 using FIST_ROUNDING int iterator.
18425 (fistdi2_<rounding>): Macroize insn from
18426 fistdi2_{floor,ceil} using FIST_ROUNDING int iterator.
18427 (fistdi2_<rounding>_with_temp and splitters): Macroize insn and
18428 corresponding splitters from fistdi2_{floor,ceil} and corresponding
18429 splitters using FIST_ROUNDING int iterator.
18430 (fist<mode>2_<rounding>): Macroize insn from
18431 fist<mode>2_{floor,ceil} using FIST_ROUNDING int iterator.
18432 (fist<mode>2_<rounding>_with_temp and splitters): Macroize insn and
18433 corresponding splitters from fist<mode>2_{floor,ceil} and corresponding
18434 splitters using FIST_ROUNDING int iterator.
18435 (l<rounding>xf<mode>2): Macroize expander from l{floor,ceil}xf<mode>2
18436 using FIST_ROUNDING int iterator.
18438 2012-06-19 Richard Henderson <rth@redhat.com>
18440 * config/i386/i386-protos.h (ix86_expand_sse2_mulv4si3): Declare.
18441 * config/i386/i386.c (ix86_expand_sse2_mulv4si3): New.
18442 * config/i386/predicates.md (nonimmediate_or_const_vector_operand): New.
18443 * config/i386/sse.md (sse2_mulv4si3): Delete.
18444 (mul<VI4_AVX2>3): Use ix86_expand_sse2_mulv4si3 and
18445 nonimmediate_or_const_vector_operand.
18447 2012-06-19 Richard Henderson <rth@redhat.com>
18449 * expmed.c (struct init_expmed_rtl): Split ...
18450 (init_expmed_one_mode): ... out of ...
18451 (init_expmed): ... here. Initialize integer vector modes also.
18452 (synth_mult): Handle integer vector modes.
18453 (choose_mult_variant): Likewise.
18454 (expand_mult_const): Likewise.
18455 (expand_mult): Likewise.
18456 * machmode.h (GET_MODE_UNIT_BITSIZE): New.
18458 2012-06-19 Richard Henderson <rth@redhat.com>
18460 * config/i386/i386.c (ix86_rtx_costs): Handle CONST_VECTOR, and
18461 integral vector modes.
18463 2012-06-19 Uros Bizjak <ubizjak@gmail.com>
18465 * config/i386/i386.md (FRNDINT_ROUNDING): New int iterator.
18466 (rounding): New int attribute.
18468 (frndintxf2_<rounding>): Macroize insn from
18469 frndintxf2_{floor,ceil,trunc} using FRNDINT_ROUNDING int iterator.
18470 (frndintxf2_<rounding>_i387): Macroize insn from
18471 frndintxf2_{floor,ceil,trunc}_i387 using FRNDINT_ROUNDING int iterator.
18473 2012-06-19 Richard Guenther <rguenther@suse.de>
18475 * tree-vrp.c (union_ranges): New function.
18476 (vrp_meet_1): Use union_ranges.
18477 (vrp_meet): Dump what we union and call vrp_meet_1.
18479 2012-06-19 Richard Earnshaw <rearnsha@arm.com>
18481 * arm.md (enum unspec): Delete UNSPEC_SIN and UNSPEC_COS.
18482 (attr type): Remove fmul, ffmul, farith, ffarith, float_em
18483 f_fpa_load, f_fpa_store, f_mem_r, r_mem_f.
18484 (attr write_conflict, attr core_cycles): Update.
18485 * arm-generic.md (r_mem_f_wbuf): Delete reservation.
18487 2012-06-19 Richard Guenther <rguenther@suse.de>
18489 * tree-vrp.c (intersect_ranges): Handle more cases.
18490 (vrp_intersect_ranges): Dump what we intersect and call ...
18491 (vrp_intersect_ranges_1): ... this.
18493 2012-06-19 Richard Guenther <rguenther@suse.de>
18495 PR tree-optimization/53708
18496 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
18497 user-supplied alignment and alignment of decls with the used
18500 2012-06-18 Lawrence Crowl <crowl@google.com>
18502 * timevar.def (TV_PHASE_GENERATE): Rename to TV_PHASE_LATE_ASM.
18503 (TV_PHASE_CGRAPH): Rename to TV_PHASE_OPT_GEN.
18504 (TV_PHASE_STREAM_IN): New.
18505 (TV_PHASE_STREAM_OUT): New.
18506 * timevar.c (validate_phases): New.
18507 (timevar_print): Call validate_phases.
18508 * c-decl.c (c_write_global_declarations): Rename use of TV_PHASE_CGRAPH
18509 to TV_PHASE_OPT_GEN.
18510 * langhooks.c (write_global_declarations): Rename use of
18511 TV_PHASE_CGRAPH to TV_PHASE_OPT_GEN. Use TV_PHASE_DBGINFO instead of
18512 TV_PHASE_CHECK_DBGINFO.
18513 * toplev.c (compile_file): Rename use of TV_PHASE_GENERATE to
18514 TV_PHASE_LATE_ASM. Move start of TV_PHASE_LATE_ASM to after call to
18515 lang_hooks.decls.final_write_globals.
18517 2012-06-18 David Edelshn <dje.gcc@gmail.com>
18519 * config/rs6000/aix52.h (TARGET_EXTRA_BUILTINS): Define as 0.
18521 2012-06-18 Uros Bizjak <ubizjak@gmail.com>
18524 * config/i386/sse.md (*sse4_2_pcmpestr_unaligned): New.
18525 (*sse4_2_pcmpistr_unaligned): New.
18527 2012-06-18 Ian Bolton <ian.bolton@arm.com>
18528 Sameera Deshpande <sameera.deshpande@arm.com>
18529 Greta Yorsh <greta.yorsh@arm.com>
18531 * config/arm/arm-protos.h (arm_output_epilogue): Remove.
18532 * config/arm/arm.c (print_multi_reg): Remove.
18533 (vfp_output_fldmd): Likewise.
18534 (arm_output_epilogue): Likewise.
18535 * config/arm/arm.md (epilogue_insns): Update condition and code.
18537 2012-06-18 Ian Bolton <ian.bolton@arm.com>
18538 Sameera Deshpande <sameera.deshpande@arm.com>
18539 Greta Yorsh <greta.yorsh@arm.com>
18541 * config/arm/arm-protos.h (thumb2_expand_return): New declaration.
18542 * config/arm/arm.c (thumb2_expand_return): New function.
18543 * config/arm/arm.md (return): Update condition and code.
18545 2012-06-18 Ian Bolton <ian.bolton@arm.com>
18546 Sameera Deshpande <sameera.deshpande@arm.com>
18547 Greta Yorsh <greta.yorsh@arm.com>
18549 * config/arm/arm-protos.h (output_return_instruction): New parameter
18550 and int to bool change of parameter types.
18551 * config/arm/arm.c (output_return_instruction): Likewise.
18552 * config/arm/arm.md (arm_simple_return): New pattern.
18553 (arm_return, cond_return, cond_return_inverted): Add new arguments.
18554 * config/arm/thumb2.md (thumb2_return): Update condition and code.
18556 2012-06-18 Ian Bolton <ian.bolton@arm.com>
18557 Sameera Deshpande <sameera.deshpande@arm.com>
18558 Greta Yorsh <greta.yorsh@arm.com>
18560 * config/arm/arm-protos.h (arm_expand_epilogue): New declaration.
18561 * config/arm/arm.c (arm_expand_epilogue): New function.
18562 * config/arm/arm.md (epilogue): Update condition and code.
18563 (sibcall_epilogue): Likewise.
18565 2012-06-18 Ian Bolton <ian.bolton@arm.com>
18566 Sameera Deshpande <sameera.deshpande@arm.com>
18567 Greta Yorsh <greta.yorsh@arm.com>
18569 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): New function.
18570 * config/arm/arm.md (arm_addsi3) Add an alternative.
18572 2012-06-18 Ian Bolton <ian.bolton@arm.com>
18573 Sameera Deshpande <sameera.deshpande@arm.com>
18574 Greta Yorsh <greta.yorsh@arm.com>
18576 * config/arm/arm.md (vfp_pop_multiple_with_writeback) New define_insn.
18577 * config/arm/predicates.md (pop_multiple_fp) New special predicate.
18578 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): New function.
18580 2012-06-18 Ian Bolton <ian.bolton@arm.com>
18581 Sameera Deshpande <sameera.deshpande@arm.com>
18582 Greta Yorsh <greta.yorsh@arm.com>
18584 * config/arm/arm.md (load_multiple_with_writeback) New define_insn.
18585 (load_multiple, pop_multiple_with_writeback_and_return) Likewise.
18586 (pop_multiple_with_return, ldr_with_return) Likewise.
18587 * config/arm/predicates.md (pop_multiple_return) New special predicate.
18588 * config/arm/arm-protos.h (arm_output_multireg_pop) New declaration.
18589 * config/arm/arm.c (arm_output_multireg_pop) New function.
18590 (arm_emit_multi_reg_pop): New function.
18592 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
18594 * config/arm/arm.c (ldm_stm_operation_p): Require SP
18595 as base register for loads if SP is in the register list.
18597 2012-06-18 Richard Guenther <rguenther@suse.de>
18599 PR tree-optimization/53693
18600 * tree-vect-patterns.c (vect_operation_fits_smaller_type):
18601 Reject operands with more than one use.
18603 2012-06-18 Bill Schmidt <wschmidt@linux.ibm.com>
18605 PR tree-optimization/53703
18606 * tree-ssa-phiopt.c (hoist_adjacent_loads): Skip virtual phis;
18607 correctly set bb_for_def[12].
18609 2012-06-18 Steven Bosscher <steven@gcc.gnu.org>
18611 * config/vax/vax.h (VMS_TARGET): Remove.
18613 2012-06-18 Richard Guenther <rguenther@suse.de>
18615 * tree-vrp.c (extract_range_from_assert): Split out range
18617 (intersect_ranges): New function.
18618 (vrp_intersect_ranges): Likewise.
18620 2012-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18622 * config/s390/s390.c (s390_gimplify_va_arg): Revert change from
18625 2012-06-18 Tejas Belagod <tejas.belagod@arm.com>
18627 * doc/md.texi: Document int iterators.
18628 * read-rtl.c (ints): New iterator group.
18629 (find_int): Int iterator group callback.
18630 (apply_int_iterator): Likewise.
18631 (apply_iterators): Traverse int iterator table and add all the used
18633 (initialize_iterators): Initialize data structures and callbacks for
18635 (read_rtx): Parse and read mappings for int iterators.
18636 (read_rtx_code): Record int iterator usage.
18638 2012-06-18 Richard Sandiford <rdsandiford@googlemail.com>
18640 PR middle-end/53698
18641 * expr.c (expand_expr_addr_expr_1): Convert to tmode before
18642 performing an addition.
18644 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
18646 * output.h (split_double): Move prototype to rtl.h.
18647 (constructor_static_from_elts_p): Move prototype to tree.c.
18648 * rtl.h (split_double): Moved here from output.h.
18649 * tree.h (constructor_static_from_elts_p): Moved here from output.h.
18650 * final.c (split_double): Move from here ...
18651 * rtlanal.c (split_double): ... to here.
18652 * expr.c: Do not include output.h.
18654 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
18656 * cfglayout.h: Remove.
18657 * cfglayout.c: Remove.
18658 * function.h (struct function): Remove x_last_location field.
18659 * function.c: Do not include cfglayout.h.
18660 (expand_function_start): Do not call no-op force_next_line_note.
18661 (expand_function_end): Likewise.
18662 * cfgrtl.c: Do not include cfglayout.h. Include gt-cfgrtl.h.
18663 (unlink_insn_chain): Moved here from cfglayout.c.
18664 (skip_insns_after_block, label_for_bb, record_effective_endpoints,
18665 into_cfg_layout_mode, outof_cfg_layout_mode,
18666 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode,
18667 relink_block_chain, fixup_reorder_chain, verify_insn_chain,
18668 fixup_fallthru_exit_predecessor, force_one_exit_fallthru,
18669 cfg_layout_can_duplicate_bb_p, duplicate_insn_chain,
18670 cfg_layout_duplicate_bb, cfg_layout_initialize, break_superblocks,
18671 cfg_layout_finalize): Likewise.
18672 (rtl_can_remove_branch_p): Likewise.
18673 * rtl.h (insn_scope): Move prototype from cfglayout.h here.
18674 (duplicate_insn_chain): Likewise.
18675 (force_next_line_note): Remove prototype.
18676 * emit-rtl.c: Do not include tree-flow.h, egad. Include vecprim.h.
18677 (last_location): Remove #define to emit.x_last_location.
18678 (force_next_line_note): Remove no-op function.
18679 (init_emit): Don't set x_last_location.
18680 (block_locators_locs, block_locators_blocks, locations_locators_locs,
18681 locations_locators_vals, prologue_locator, epilogue_locator,
18682 curr_location, last_location, curr_block, last_block, curr_rtl_loc):
18683 Move POD to here from cfglayout.c.
18684 (insn_locators_alloc, insn_locators_finalize, insn_locators_free,
18685 set_curr_insn_source_location, get_curr_insn_source_location,
18686 set_curr_insn_block, get_curr_insn_block, curr_insn_locator,
18687 locator_scope, insn_scope, locator_location, locator_line, insn_line,
18688 locator_file, insn_file, locator_eq): Move to here from cfglayout.c.
18689 * cfghooks.h: Remove double-include protection.
18690 (can_copy_bbs_p, copy_bbs): Move prototypes from cfglayout.h to here.
18691 * cfghooks.c (can_copy_bbs_p, copy_bbs): Move to here from cfglayout.c.
18692 * final.c: Do not include cfglayout.h.
18693 (choose_inner_scope, change_scope): Move to here from cfglayout.c.
18694 (reemit_insn_block_notes): Likewise. Make static.
18695 * tree-flow.h (tree_could_trap_p, operation_could_trap_helper_p,
18696 operation_could_trap_p, tree_could_throw_p): Move from here...
18697 * tree.h: ... to here.
18698 * gengtype.c (open_base_files): Remove cfglayout.h from the list.
18699 * profile.c: Do not include cfghooks.h.
18700 * cfgloopmanip.c: Do not include cfglayout.h and cfghooks.h.
18701 * modulo-sched.c: Likewise.
18702 * loop-unswitch.c: Do not include cfglayout.h.
18703 * sched-ebb.c: Likewise.
18704 * tracer.c: Likewise.
18706 * tree-vect-loop-manip.c: Likewise.
18707 * loop-init.c: Likewise.
18708 * dwarf2out.c: Likewise.
18709 * hw-doloop.c: Likewise.
18710 * loop-unroll.c: Likewise.
18711 * cfgcleanup.c: Likewise.
18712 * bb-reorder.c: Likewise.
18713 * sched-rgn.c: Likewise.
18714 * tree-cfg.c: Likewise.
18715 * config/alpha/alpha.c: Likewise.
18716 * config/spu/spu.c: Likewise.
18717 * config/sparc/sparc.c: Likewise.
18718 * config/sh/sh.c: Likewise.
18719 * config/c6x/c6x.c: Likewise.
18720 * config/ia64/ia64.c: Likewise.
18721 * config/rs6000/rs6000.c: Likewise.
18722 * config/score/score.c: Likewise.
18723 * config/mips/mips.c: Likewise.
18724 * config/bfin/bfin.c: Likewise.
18725 * Makefile.in (CFGAYOUT_H): Remove, and fixup users.
18726 * config/rs6000/t-rs6000 (rs6000.o): Do not depend on cfglayout.h.
18727 * config/spu/t-spu-elf (spu.o: $): Likewise.
18728 * config/sparc/t-sparc (sparc.o): Do not depend on CFGLAYOUT_H.
18730 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
18732 * cfgloop.h: Do not include rtl.h.
18733 (enum iv_extend_code): New.
18734 (struct rtx_iv): Use iv_extend_code instead of rtx_code.
18735 * Makefile.in (CFGLOOP_H): Do not depend on RTL_H.
18736 * loop-iv.c (iv_extend_to_rtx_code): New function to translate
18737 an IV_EXTEND_CODE to an RTX_CODE.
18738 (dump_iv_info): Update for rtx_iv field type change.
18739 (iv_constant): Likewise.
18740 (iv_subreg): Likewise.
18741 (iv_extend): Likewise.
18742 (iv_neg): Likewise.
18743 (iv_add): Likewise.
18744 (iv_mult): Likewise.
18745 (iv_shift): Likewise.
18746 (get_biv_step_1): Likewise.
18747 (get_biv_step): Likewise.
18748 (iv_analyze_biv): Likewise.
18749 (get_iv_value): Likewise.
18750 (shorten_into_mode): Likewise.
18751 (canonicalize_iv_subregs): Likewise.
18752 * sese.c (sese_build_liveouts): Use MAY_HAVE_DEBUG_STMTS instead
18753 of MAY_HAVE_DEBUG_INSNS.
18754 * tree-ssa-loop-ivopts.c: Include recog.h after expr.h.
18755 * tree-ssa-loop-prefetch.c: Likewise.
18757 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
18759 * expmed.c (ceil_log2): Move from here...
18760 * hwint.c: ... to here for older GCCs...
18761 * hwint.h: ... and here for newer GCCs.
18762 * rtl.h (ceil_log2): Remove prototype.
18764 * tree-phinodes.c: Do not include rtl.h.
18765 * Makefile.in (tree-phinodes.o): Do not depend on RTL_H.
18767 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
18769 * config/cris/cris.h (TARGET_ELF): Remove.
18770 (FORCE_EH_FRAME_INFO_IN_DATA_SECTION): Remove.
18771 (CRIS_ASM_OUTPUT_ALIGNED_DECL_COMMON): Simpify using TARGET_ELF==1.
18772 (LOCAL_LABEL_PREFIX): Likewise.
18773 * config/cris/cris.c (cris_target_asm_named_section): Remove.
18774 (cris_option_override): Simpify using TARGET_ELF==1.
18775 (cris_file_start): Likewise.
18776 * config/cris/cris-protos.h (cris_target_asm_named_section): Remove.
18778 2012-06-17 Uros Bizjak <ubizjak@gmail.com>
18780 * config/i386/sse.md (vcvtph2ps): Fix vec_select selector.
18782 2012-06-16 Eric Botcazou <ebotcazou@adacore.com>
18784 PR middle-end/53590
18785 * tree-inline.c (initialize_cfun): Copy can_delete_dead_exceptions.
18787 2012-06-15 Easwaran Raman <eraman@google.com>
18789 * passes.c (init_optimization_passes): Remove pass_call_cdce
18790 from its current position and insert after pass_dce.
18792 2012-06-15 Walter Lee <walt@tilera.com>
18794 * config/tilegx/sync.md (atomic_fetch_<fetchop_name><mode>): Fix typo.
18796 2012-06-15 Richard Earnshaw <rearnsha@arm.com>
18798 * arm.c (note_invalid_constants): Don't return a result.
18799 (arm_memory_load_p): Delete function.
18800 (arm_const_double_rtx): Delete iterator variable i;
18801 (fp_immediate_constant): Likewise.
18802 (fp_const_from_val): Likewise.
18804 * arm.c (arm_init_iwmmxt_builtins): Delete void_ftype_void.
18806 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
18809 * c-typeck.c (c_build_vec_perm_expr): Move to c-family/c-common.c.
18810 * c-tree.h (c_build_vec_perm_expr): Move to c-family/c-common.h.
18812 2012-06-15 Georg-Johann Lay <avr@gjlay.de>
18814 * config/avr/avr.c (avr_default_expand_builtin): New function.
18815 (avr_expand_builtin): Use it.
18816 (avr_expand_unop_builtin): Remove.
18817 (avr_expand_binop_builtin): Remove.
18818 (avr_expand_triop_builtin): Remove.
18820 2012-06-15 Michael Matz <matz@suse.de>
18822 PR middle-end/38474
18823 * cfgexpand.c (add_alias_set_conflicts): Remove.
18824 (expand_used_vars): Don't call it.
18825 (aggregate_contains_union_type): Remove.
18826 * function.c (n_temp_slots_in_use): New static data.
18827 (make_slot_available, assign_stack_temp_for_type): Update it.
18828 (init_temp_slots): Zero it.
18829 (remove_unused_temp_slot_addresses): Use it for quicker removal.
18830 (remove_unused_temp_slot_addresses_1): Use htab_clear_slot.
18832 2012-06-15 Michael Matz <matz@suse.de>
18834 * gimplify.c (gimplify_compound_literal_expr): Take gimple_test_f
18835 argument, don't emit assign statement if value is directly usable.
18836 (gimplify_expr): Adjust.
18838 2012-06-15 Michael Matz <matz@suse.de>
18840 * gimplify.c (gimplify_modify_expr): Fold generated statements.
18841 * gimple-fold.c (can_refer_decl_in_current_unit_p): Check flag_ltrans.
18843 2012-06-15 Richard Guenther <rguenther@suse.de>
18845 * tree-vrp.c (set_and_canonicalize_value_range): Use canonical
18846 predicates to set VR_UNDEFINED and VR_VARYING. Drop a case
18847 we assert for in set_value_range to VR_VARYING.
18849 2012-06-15 Richard Earnshaw <rearnsha@arm.com>
18851 * arm.md (addsf3, adddf3): Use s_register_operand.
18852 (subsf3, subdf3): Likewise.
18853 (mulsf3, muldf3): Likewise.
18854 (difsf3, divdf3): Likewise.
18855 (movsfcc, movdfcc): Likewise.
18856 * predicates.md (f_register_operand): Delete.
18857 (arm_float_rhs_operand): Delete.
18858 (arm_float_add_operand): Delete.
18859 (arm_float_compare_operand): Use s_register_operand when
18861 (cirrus_register_operand): Delete.
18862 (cirrus_fp_register): Delete.
18863 (cirrus_shift_const): Delete.
18864 (cmpdi_operand): Remove Maverick support.
18865 * constraints.md (f, v, H): Delete constraints.
18866 (G): Update documentation.
18867 * arm.c (fp_consts_inited): Convert to bool.
18868 (strings_fp): Delete.
18869 (values_fp): Delete.
18870 (value_fp0): New variable.
18871 (init_fp_table): Simplify logic.
18872 (arm_const_double_rtx): Likewise.
18873 (fp_immediate_constant): Likewise.
18874 (fp_const_from_val): Likewise.
18875 (neg_const_double_rtx_ok_for_fpa): Delete.
18876 * doc/md.texi (ARM constraints): Update documentation.
18878 2012-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
18880 PR tree-optimization/53636
18881 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Verify
18882 stride when doing basic-block vectorization.
18884 2012-06-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18886 * tree-vect-generic.c (lower_vec_perm): Propagate vector constants
18887 into VEC_PERM_EXPR.
18889 2012-06-15 Jakub Jelinek <jakub@redhat.com>
18891 * tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily
18892 allocate and free bbs array for the SLP case.
18894 PR tree-optimization/51581
18895 * expr.h (choose_multiplier): New prototype.
18896 * expmed.c (choose_multiplier): No longer static.
18897 Change multiplier_ptr from rtx * to UHWI *.
18898 (expand_divmod): Adjust callers.
18899 * tree-vect-patterns.c (vect_recog_sdivmod_pow2_pattern): Renamed to...
18900 (vect_recog_divmod_pattern): ... this. Pass bb_vinfo as last
18901 argument to new_stmt_vec_info. Attempt to optimize also divisions
18902 by non-pow2 constants if integer vector division isn't supported.
18903 * tree-vect-stmts.c (vect_analyze_stmt): If node != NULL,
18904 don't look at pattern stmts and sequences.
18906 2012-06-15 Eric Botcazou <ebotcazou@adacore.com>
18908 PR middle-end/53590
18909 * common.opt (-fdelete-dead-exceptions): New switch.
18910 * doc/invoke.texi (Code Gen Options): Document it.
18911 * cse.c (count_reg_usage) <CALL_INSN>: Use !insn_nothrow_p in lieu of
18912 insn_could_throw_p predicate. Do not skip an insn that could throw
18913 if dead exceptions can be deleted.
18914 (insn_live_p): Likewise, do not return true in that case.
18915 * dce.c (can_alter_cfg): New flag.
18916 (deletable_insn_p): Do not return false for an insn that can throw if
18917 the CFG can be altered and dead exceptions can be deleted.
18918 (init_dce): Set can_alter_cfg to false for fast DCE, true otherwise.
18919 * dse.c (scan_insn): Use !insn_nothrow_p in lieu of insn_could_throw_
18920 predicate. Do not preserve an insn that could throw if dead exceptions
18922 * function.h (struct function): Add can_delete_dead_exceptions flag.
18923 * function.c (allocate_struct_function): Set it.
18924 * lto-streamer-in.c (input_struct_function_base): Stream it.
18925 * lto-streamer-out.c (input_struct_function_base): Likewise.
18926 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark a
18927 statement that could throw as necessary if dead exceptions can be
18930 2012-06-14 Maxim Kuvyrkov <maxim@codesourcery.com>
18932 * config/tilegx/sync.md (atomic_fetch_sub<mode>): Fix typo.
18934 2012-06-14 Oleg Endo <olegendo@gcc.gnu.org>
18937 * config/sh/sh.md: Add peephole for swapbsi2.
18938 (*swapbisi2_and_shl8, *swapbhisi2): New insns and splits.
18940 2012-06-14 Uros Bizjak <ubizjak@gmail.com>
18942 * config/i386/i386.md (*zero_extendsidi2): Remove x,x alternative.
18943 (*zero_extendsidi2_rex64): Ditto. Remove isa attribute.
18945 2012-06-14 Jakub Jelinek <jakub@redhat.com>
18948 * config/i386/i386.md (*anddi_1 into *andsi_1_zext splitter): New.
18950 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
18952 * arm.c (arm_cirrus_insn_p): Delete.
18953 (cirrus_reorg): Delete.
18954 (arm_reorg): Don't call cirrus_reorg.
18955 (arm_final_prescan_insn_p): Don't check for cirrus insns.
18956 * arm.md (define_attr "type"): Remove mav_farith and mav_dmult.
18957 (adddi3, subdi3): Remove Maverick support.
18958 (arm_adddi3): Likewise.
18959 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
18960 (addsf3, adddf3): Likewise.
18961 (subsf3, subdf3): Likewise.
18962 (mulsf3, muldf3): Likewise.
18963 (ashldi3, ashrdi3, lshrdi3): Likewise.
18964 (floatsisf2, floatsidf2): Likewise.
18965 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
18966 (arm_movdi, thumb1_movdi_insn): Likewise.
18967 (arm_cmpdi_insn): Likewise.
18968 (cirrus_cmpsf, cirrus_cmpdf, cirrus_cmpdi): Likewise.
18969 (cirrus.md): Don't include.
18970 * cirrus.md: Delete file.
18971 * t-arm (MD_INCLUDES): Remove cirrus.md.
18973 2012-06-14 Eric Botcazou <ebotcazou@adacore.com>
18975 * dwarf2out.c (function_possibly_abstracted_p): New static function.
18976 (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
18977 cgraph_function_possibly_inlined_p.
18978 (gen_inlined_subroutine_die): Return if the origin is to be ignored.
18979 (process_scope_var): Do not emit concrete instances of abstracted
18980 nested functions from here.
18981 (gen_decl_die): Emit the abstract instance if the function is possibly
18982 abstracted and not only possibly inlined.
18983 (dwarf2out_finish): Find the first non-abstract parent instance and
18984 attach concrete instances on the limbo list to it.
18986 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
18988 * arm.md (divsf3, divdf3): Remove FPA support.
18989 (negsf2, negdf2): Likewise.
18990 (sqrtsf2, sqrtdf2): Likewise.
18991 (movdfcc): Likewise.
18992 (modsf3, moddf3, movxf): Delete.
18993 (push_fp_multi): Delete.
18994 (fpa.md): Don't include it.
18995 * fpa.md: Delete file.
18996 * t-arm (MD_INCLUDES): Remove fpa.md.
18998 2012-06-14 Bill Schmidt <wschmidt@linux.ibm.com>
19000 * tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c.
19001 (cost_for_stmt): Remove decl.
19002 (vect_get_single_scalar_iteration_cost): Correct typo in name.
19003 * tree-vect-loop.c (vect_get_cost): Remove.
19004 (vect_get_single_scalar_iteration_cost): Correct typo in name; use
19005 vect_get_stmt_cost rather than vect_get_cost.
19006 (vect_get_known_peeling_cost): Use vect_get_stmt_cost rather than
19008 (vect_estimate_min_profitable_iters): Correct typo in call to
19009 vect_get_single_scalar_iteration_cost; use vect_get_stmt_cost rather
19010 than vect_get_cost.
19011 (vect_model_reduction_cost): Use vect_get_stmt_cost rather than
19013 (vect_model_induction_cost): Likewise.
19014 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Correct
19015 typo in call to vect_get_single_scalar_iteration_cost.
19016 * tree-vect-stmts.c (vect_get_stmt_cost): Move to tree-vectorizer.h.
19017 (cost_for_stmt): Remove unnecessary function.
19018 * Makefile.in (TREE_VECTORIZER_H): Update dependencies.
19020 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
19022 * arm.opt (mfp=2, mfp=3, mfpe, mfpe=2, mfpe=3): Delete options.
19023 * arm-fpus.def (fpa, fpe2, fpe3, maverick): Delete FPU types.
19024 * arm-tables.opt: Regenerated.
19025 * doc/invoke.texi: Remove references to deleted options.
19027 2012-06-14 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
19029 * config/h8300/genmova.sh: Modified to add offset bits of
19030 mova/Sz assembly instruction for memory access.
19031 * config/h8300/h8300.c: Likewise.
19032 * config/h8300/mova.md: Likewise.
19034 2012-06-12 Christian Bruel <christian.bruel@st.com>
19037 * config/sh/sh.c (sh_option_override): Don't force
19038 flag_omit_frame_pointer and maccumulate_outgoing_args.
19039 * config/sh/sh.opt (maccumulate-outgoing-args): Init as Var.
19041 2012-06-14 Richard Guenther <rguenther@suse.de>
19043 * tree-vrp.c (VR_INITIALIZER): New define.
19044 (ranges_from_anti_range): New function.
19045 (extract_range_from_binary_expr_1): Decompose operations on
19046 VR_ANTI_RANGEs to operations on VR_RANGE.
19047 (extract_range_from_unary_expr_1): Likewise.
19048 (extract_range_from_binary_expr_1, extract_range_from_binary_expr,
19049 extract_range_from_unary_expr_1, extract_range_from_unary_expr,
19050 extract_range_from_cond_expr, adjust_range_with_scev,
19051 vrp_visit_assignment_or_call, vrp_visit_phi_node,
19052 simplify_bit_ops_using_ranges): Use VR_INITIALIZER.
19054 2012-06-13 Richard Henderson <rth@redhat.com>
19056 * hwint.h (HOST_WIDEST_INT_C): New.
19057 (HOST_WIDE_INT_C): New.
19058 (HOST_WIDE_INT_1): Use it.
19059 * config/alpha/alpha.c (alpha_trampoline_init): Use it.
19061 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
19064 * var-tracking.c: Include alias.h.
19065 (overlapping_mems): New struct.
19066 (drop_overlapping_mem_locs): New.
19067 (clobber_overlapping_mems): New.
19068 (var_mem_delete_and_set, var_mem_delete): Call it.
19069 (val_bind): Likewise, but only if modified.
19070 (compute_bb_dataflow, emit_notes_in_bb): Call it on MEMs.
19071 * Makefile.in (var-tracking.o): Depend in $(ALIAS_H).
19073 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
19076 * var-tracking.c (loc_exp_dep_pool): New.
19077 (vt_emit_notes): Create and release the pool.
19078 (compute_bb_dataflow): Use value-based locations in MO_VAL_SET.
19079 (emit_notes_in_bb): Likewise.
19080 (loc_exp_dep_insert): Deal with NOT_ONEPART vars.
19081 (notify_dependents_of_changed_value): Likewise.
19082 (notify_dependents_of_resolved_value): Check that NOT_ONEPART
19083 variables don't have a VAR_LOC_DEP_LST.
19084 (emit_note_insn_var_location): Expand NOT_ONEPART locs that are
19085 VALUEs or MEMs of VALUEs.
19087 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
19091 * dce.c (word_dce_process_block): Insert debug temps only if the
19092 insn is not marked.
19093 (dce_process_block): Likewise, and if debug.used is not empty,
19094 and only after iterating over all DEFs that might mark the insn.
19096 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
19098 * common.opt (ftree-coalesce-inlined-vars): New.
19099 (ftree-coalesce-vars): New.
19100 * doc/invoke.texi: Document them.
19101 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
19104 2012-06-13 Richard Sandiford <rdsandiford@googlemail.com>
19106 * read-rtl.c (mapping): Remove index field. Add current_value field.
19107 Define heap vectors.
19108 (iterator_group): Fix long line. Remove num_builtins field and
19109 uses_iterator fields. Make apply_iterator take a void * parameter.
19110 (iterator_use, atttribute_use): New structures.
19111 (iterator_traverse_data, BELLWETHER_CODE, bellwether_codes): Delete.
19112 (current_iterators, iterator_uses, attribute_uses): New variables.
19113 (uses_mode_iterator_p, uses_code_iterator_p): Delete.
19114 (apply_mode_iterator, apply_code_iterator): Take a void * parameter.
19115 (map_attr_string, apply_iterator_to_string): Remove iterator
19116 and value parameters. Look through all current iterator values
19117 for a matching attribute.
19118 (mode_attr_index, apply_mode_maps): Delete.
19119 (apply_iterator_to_rtx): Replace with...
19120 (copy_rtx_for_iterators): ...this new function.
19121 (uses_iterator_p, apply_iterator_traverse): Delete.
19122 (apply_attribute_uses, add_current_iterators, apply_iterators): New
19124 (add_mapping): Remove index field. Set current_value field.
19125 (initialize_iterators): Don't set num_builtins and uses_iterator_p
19127 (find_iterator): Delete.
19128 (record_iterator_use, record_attribute_use): New functions.
19129 (record_potential_iterator_use): New function.
19130 (check_code_iterator): Remove handling of bellwether codes.
19131 (read_rtx): Remove mode maps. Truncate iterator and attribute uses.
19132 (read_rtx_code, read_nested_rtx, read_rtx_variadic): Remove mode_maps
19133 parameter. Use the first code iterator value instead of the
19134 bellwether_codes array. Use record_potential_iterator_use for modes.
19136 2012-06-13 Oleg Endo <olegendo@gcc.gnu.org>
19139 * config/sh/sh.md (bswapsi2): New expander.
19140 (swapbsi2): New insn.
19142 2012-06-13 H.J. Lu <hongjiu.lu@intel.com>
19145 * config/i386/i386.c (ix86_tune_cost): New variable.
19146 (ix86_option_override_internal): Set ix86_tune_cost. Use
19147 ix86_tune_cost for simultaneous_prefetches, prefetch_block,
19148 l1_cache_size and l2_cache_size.
19150 2012-06-13 Richard Guenther <rguenther@suse.de>
19152 * tree-vrp.c (vrp_meet): Properly meet equivalent ranges.
19153 Handle meeting two VR_RANGE to an VR_ANTI_RANGE. Implement
19154 all possible meetings of VR_RANGE with VR_ANTI_RANGE and
19155 VR_ANTI_RANGE with VR_ANTI_RANGE.
19157 2012-06-13 Richard Earnshaw <rearnsha@arm.com>
19159 * config.gcc (unsupported): Move obsoleted FPA-based configurations
19161 (obsolete): ... here.
19162 (arm*-*-freebsd*): Remove.
19163 (arm*-*-linux*): Only accept EABI variants. Simplify logic.
19164 (arm*-*-uclinux*): Likewise.
19165 (arm*-*-ecos-elf): Remove.
19166 (arm*-*-rtems*): Remove.
19167 (arm*-*-elf): Remove.
19168 (arm*-wince-pe*): Remove.
19169 (arm, --with-fpu): Remove support for fpa and Maverick variants.
19170 * arm/ecos-elf.h: Delete.
19171 * arm/t-strongarm-elf: Delete.
19172 * arm/rtems-elf.h: Delete.
19173 * arm/wince-pe.h: Delete.
19174 * arm/pe.c: Delete.
19175 * arm/pe.h: Delete.
19176 * arm/t-wince-pe: Delete.
19178 2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
19180 PR tree-optimization/53647
19181 * tree-ssa-phiopt.c (gate_hoist_loads): Skip transformation for
19182 targets with no defined cache line size.
19184 2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
19186 * targhooks.c (default_builtin_vectorized_conversion): Handle
19187 vec_construct, using vectype to base cost on subparts.
19188 * target.h (enum vect_cost_for_stmt): Add vec_construct.
19189 * tree-vect-stmts.c (vect_model_load_cost): Use vec_construct
19190 instead of scalar_to-vec.
19191 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
19192 vec_construct in same way as default for now.
19193 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
19194 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
19195 Handle vec_construct, including special case for 32-bit loads.
19197 2012-06-13 Xinyu Qi <xyqi@marvell.com>
19199 * config/arm/arm.c (FL_IWMMXT2): New define.
19200 (arm_arch_iwmmxt2): New variable.
19201 (arm_option_override): Enable use of iWMMXt with VFP.
19202 Disable use of iWMMXt with NEON. Disable use of iWMMXt under
19203 Thumb mode. Set arm_arch_iwmmxt2.
19204 (arm_expand_binop_builtin): Accept VOIDmode op.
19205 (enum arm_builtins): Revise built-in fcode.
19206 (IWMMXT2_BUILTIN): New define.
19207 (IWMMXT2_BUILTIN2): Likewise.
19208 (iwmmx2_mbuiltin): Likewise.
19209 (builtin_description bdesc_2arg): Revise built in declaration.
19210 (builtin_description bdesc_1arg): Likewise.
19211 (arm_init_iwmmxt_builtins): Revise built in initialization.
19212 (arm_expand_builtin): Revise built in expansion.
19213 (arm_output_iwmmxt_shift_immediate): New function.
19214 (arm_output_iwmmxt_tinsr): Likewise.
19215 * config/arm/arm-protos.h (arm_output_iwmmxt_shift_immediate): Declare.
19216 (arm_output_iwmmxt_tinsr): Likewise.
19217 * config/arm/iwmmxt.md (WCGR0, WCGR1, WCGR2, WCGR3): New constant.
19218 (iwmmxt_psadbw, iwmmxt_walign, iwmmxt_tmrc, iwmmxt_tmcr): Delete.
19219 (rorv4hi3, rorv2si3, rordi3): Likewise.
19220 (rorv4hi3_di, rorv2si3_di, rordi3_di): Likewise.
19221 (ashrv4hi3_di, ashrv2si3_di, ashrdi3_di): Likewise.
19222 (lshrv4hi3_di, lshrv2si3_di, lshrdi3_di): Likewise.
19223 (ashlv4hi3_di, ashlv2si3_di, ashldi3_di): Likewise.
19224 (iwmmxt_tbcstqi, iwmmxt_tbcsthi, iwmmxt_tbcstsi): Likewise
19225 (*iwmmxt_clrv8qi, *iwmmxt_clrv4hi, *iwmmxt_clrv2si): Likewise.
19226 (tbcstv8qi, tbcstv4hi, tbsctv2si): New pattern.
19227 (iwmmxt_clrv8qi, iwmmxt_clrv4hi, iwmmxt_clrv2si): Likewise.
19228 (*and<mode>3_iwmmxt, *ior<mode>3_iwmmxt, *xor<mode>3_iwmmxt): Likewise.
19229 (ror<mode>3, ror<mode>3_di): Likewise.
19230 (ashr<mode>3_di, lshr<mode>3_di, ashl<mode>3_di): Likewise.
19231 (ashli<mode>3_iwmmxt, iwmmxt_waligni, iwmmxt_walignr): Likewise.
19232 (iwmmxt_walignr0, iwmmxt_walignr1): Likewise.
19233 (iwmmxt_walignr2, iwmmxt_walignr3): Likewise.
19234 (iwmmxt_setwcgr0, iwmmxt_setwcgr1): Likewise.
19235 (iwmmxt_setwcgr2, iwmmxt_setwcgr3): Likewise.
19236 (iwmmxt_getwcgr0, iwmmxt_getwcgr1): Likewise.
19237 (iwmmxt_getwcgr2, iwmmxt_getwcgr3): Likewise.
19238 (All instruction patterns): Add wtype attribute.
19239 (*iwmmxt_arm_movdi, *iwmmxt_movsi_insn): iWMMXt coexist with vfp.
19240 (iwmmxt_uavgrndv8qi3, iwmmxt_uavgrndv4hi3): Revise the pattern.
19241 (iwmmxt_uavgv8qi3, iwmmxt_uavgv4hi3): Likewise.
19242 (ashr<mode>3_iwmmxt, ashl<mode>3_iwmmxt, lshr<mode>3_iwmmxt): Likewise.
19243 (iwmmxt_tinsrb, iwmmxt_tinsrh, iwmmxt_tinsrw):Likewise.
19244 (eqv8qi3, eqv4hi3, eqv2si3, gtuv8qi3): Likewise.
19245 (gtuv4hi3, gtuv2si3, gtv8qi3, gtv4hi3, gtv2si3): Likewise.
19246 (iwmmxt_wunpckihh, iwmmxt_wunpckihw, iwmmxt_wunpckilh): Likewise.
19247 (iwmmxt_wunpckilw, iwmmxt_wunpckehub, iwmmxt_wunpckehuh): Likewise.
19248 (iwmmxt_wunpckehuw, iwmmxt_wunpckehsb, iwmmxt_wunpckehsh): Likewise.
19249 (iwmmxt_wunpckehsw, iwmmxt_wunpckelub, iwmmxt_wunpckeluh): Likewise.
19250 (iwmmxt_wunpckeluw, iwmmxt_wunpckelsb, iwmmxt_wunpckelsh): Likewise.
19251 (iwmmxt_wunpckelsw, iwmmxt_wmadds, iwmmxt_wmaddu): Likewise.
19252 (iwmmxt_wsadb, iwmmxt_wsadh, iwmmxt_wsadbz, iwmmxt_wsadhz): Likewise.
19253 (iwmmxt2.md): Include.
19254 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __IWMMXT2__.
19255 (TARGET_IWMMXT2): New define.
19256 (TARGET_REALLY_IWMMXT2): Likewise.
19257 (arm_arch_iwmmxt2): Declare.
19258 * config/arm/mmintrin.h: Use __IWMMXT__ to enable iWMMXt intrinsics.
19259 Use __IWMMXT2__ to enable iWMMXt2 intrinsics.
19260 Use C name-mangling for intrinsics.
19261 (__v8qi): Redefine.
19262 (_mm_cvtsi32_si64, _mm_andnot_si64, _mm_sad_pu8): Revise.
19263 (_mm_sad_pu16, _mm_align_si64, _mm_setwcx, _mm_getwcx): Likewise.
19264 (_m_from_int): Likewise.
19265 (_mm_sada_pu8, _mm_sada_pu16): New intrinsic.
19266 (_mm_alignr0_si64, _mm_alignr1_si64, _mm_alignr2_si64): Likewise.
19267 (_mm_alignr3_si64, _mm_tandcb, _mm_tandch, _mm_tandcw): Likewise.
19268 (_mm_textrcb, _mm_textrch, _mm_textrcw, _mm_torcb): Likewise.
19269 (_mm_torch, _mm_torcw, _mm_tbcst_pi8, _mm_tbcst_pi16): Likewise.
19270 (_mm_tbcst_pi32): Likewise.
19271 (_mm_abs_pi8, _mm_abs_pi16, _mm_abs_pi32): New iWMMXt2 intrinsic.
19272 (_mm_addsubhx_pi16, _mm_absdiff_pu8, _mm_absdiff_pu16): Likewise.
19273 (_mm_absdiff_pu32, _mm_addc_pu16, _mm_addc_pu32): Likewise.
19274 (_mm_avg4_pu8, _mm_avg4r_pu8, _mm_maddx_pi16, _mm_maddx_pu16): Likewise.
19275 (_mm_msub_pi16, _mm_msub_pu16, _mm_mulhi_pi32): Likewise.
19276 (_mm_mulhi_pu32, _mm_mulhir_pi16, _mm_mulhir_pi32): Likewise.
19277 (_mm_mulhir_pu16, _mm_mulhir_pu32, _mm_mullo_pi32): Likewise.
19278 (_mm_qmulm_pi16, _mm_qmulm_pi32, _mm_qmulmr_pi16): Likewise.
19279 (_mm_qmulmr_pi32, _mm_subaddhx_pi16, _mm_addbhusl_pu8): Likewise.
19280 (_mm_addbhusm_pu8, _mm_qmiabb_pi32, _mm_qmiabbn_pi32): Likewise.
19281 (_mm_qmiabt_pi32, _mm_qmiabtn_pi32, _mm_qmiatb_pi32): Likewise.
19282 (_mm_qmiatbn_pi32, _mm_qmiatt_pi32, _mm_qmiattn_pi32): Likewise.
19283 (_mm_wmiabb_si64, _mm_wmiabbn_si64, _mm_wmiabt_si64): Likewise.
19284 (_mm_wmiabtn_si64, _mm_wmiatb_si64, _mm_wmiatbn_si64): Likewise.
19285 (_mm_wmiatt_si64, _mm_wmiattn_si64, _mm_wmiawbb_si64): Likewise.
19286 (_mm_wmiawbbn_si64, _mm_wmiawbt_si64, _mm_wmiawbtn_si64): Likewise.
19287 (_mm_wmiawtb_si64, _mm_wmiawtbn_si64, _mm_wmiawtt_si64): Likewise.
19288 (_mm_wmiawttn_si64, _mm_merge_si64): Likewise.
19289 (_mm_torvscb, _mm_torvsch, _mm_torvscw): Likewise.
19290 (_m_to_int): New define.
19291 * config/arm/arm-cores.def (iwmmxt2): Add FL_IWMMXT2.
19292 * config/arm/arm-arches.def (iwmmxt2): Likewise.
19293 * config/arm/t-arm (MD_INCLUDES): Add marvell-f-iwmmxt.md and
19295 * config/arm/arm.md (marvell-f-iwmmxt.md): Include.
19296 (arch): Add "iwmmxt2".
19297 (arch_enabled): Handle "iwmmxt2".
19298 (wtype): New attribute.
19299 (UNSPEC_WMADDS, UNSPEC_WMADDU): Delete.
19300 (UNSPEC_WALIGNI): New unspec.
19301 * config/arm/predicates.md (imm_or_reg_operand): New predicate.
19302 * config/arm/iterators.md (VMMX2): New mode_iterator.
19303 * config/arm/marvell-f-iwmmxt.md: New file.
19304 * config/arm/iwmmxt2.md: New file.
19306 2012-06-12 Jakub Jelinek <jakub@redhat.com>
19311 * c-decl.c (build_compound_literal): Call c_incomplete_type_error
19312 if type isn't complete.
19314 2012-06-12 Uros Bizjak <ubizjak@gmail.com>
19316 * config/ia64/sync.md (fetchop_name): Change ior attribute to "or".
19318 2012-06-12 Richard Henderson <rth@redhat.com>
19320 * config/rs6000/sync.md (atomic_load, atomic_store): Use INT1 mode
19321 iterator instead of INT.
19323 2012-06-12 Bill Schmidt <wschmidt@linux.ibm.com>
19325 * opts.c: Add -fhoist-adjacent-loads to -O2 and above.
19326 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Add argument to forward
19328 (hoist_adjacent_loads, gate_hoist_loads): New forward declarations.
19329 (tree_ssa_phiopt): Call gate_hoist_loads.
19330 (tree_ssa_cs_elim): Add parm to tree_ssa_phiopt_worker call.
19331 (tree_ssa_phiopt_worker): Add do_hoist_loads to formal arg list; call
19332 hoist_adjacent_loads.
19333 (local_mem_dependence): New function.
19334 (hoist_adjacent_loads): Likewise.
19335 (gate_hoist_loads): Likewise.
19336 * common.opt (fhoist-adjacent-loads): New switch.
19337 * Makefile.in (tree-ssa-phiopt.o): Added dependencies.
19339 2012-06-12 Michael Matz <matz@suse.de>
19341 * alias.c (nonoverlapping_component_refs_p): Take two rtx arguments.
19342 (nonoverlapping_memrefs_p): Don't call it here ...
19343 (true_dependence_1): ... but here.
19345 2012-06-12 Richard Guenther <rguenther@suse.de>
19347 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove dead code.
19348 * alias.c (ao_ref_from_mem): MEM_EXPR is conservative, MEM_OFFSET
19349 and MEM_SIZE only refines it. Reflect that and be less conservative
19350 if either of the latter is not known.
19352 2012-06-12 Jakub Jelinek <jakub@redhat.com>
19354 PR rtl-optimization/53589
19355 * cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge
19356 discovery even when e->dest != target. If any LABEL_REF points
19357 to e->dest label, redirect it to target's label.
19359 2012-06-12 Chung-Lin Tang <cltang@codesourcery.com>
19361 * config/sh/sh.c (output_stack_adjust): Remove !epilogue_p
19362 condition for generating REG_FRAME_RELATED_EXPR note.
19363 (pop): Add code for generating REG_CFA_RESTORE,
19364 REG_CFA_ADJUST_CFA notes. Set RTX_FRAME_RELATED_P to 1.
19365 (sh_expand_epilogue): Use frame_insn() for FP to SP move.
19366 Set 'frame_p' of calls to output_stack_adjust() to 'true'.
19368 2012-06-11 Richard Henderson <rth@redhat.com>
19370 * config/alpha/alpha.c (HWI_HEX2): Add missing shift.
19371 * vmsdbgout.c (VMS_EPOCH_OFFSET): Add LL suffix.
19373 * config/alpha/alpha.c (alpha_trampoline_init): Split large constants.
19375 2012-06-12 Hans-Peter Nilsson <hp@axis.com>
19377 * doc/tm.texi.in (Addressing Modes) <TARGET_LEGITIMIZE_ADDRESS>:
19378 Mention that this hook needs to be defined for native TLS.
19379 * doc/tm.texi: Regenerate.
19381 2012-06-11 Mike Stump <mikestump@comcast.net>
19383 * emit-rtl.c (init_emit_once): Iterate through the
19384 MODE_PARTIAL_INT modes with MIN_MODE_PARTIAL_INT and
19385 MAX_MODE_PARTIAL_INT, as GET_MODE_WIDER_MODE doesn't step through
19386 all the MIN_MODE_PARTIAL_INT modes anymore.
19388 2012-06-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19390 * config/mips/mips-tables.opt (xlp): Fix merge typo.
19392 2012-06-11 Roland McGrath <mcgrathr@google.com>
19394 * dwarf2out.c (const_ok_for_output_1): Detect a TLS UNSPEC using
19395 SYMBOL_REF_TLS_MODEL rather than DECL_THREAD_LOCAL_P, in case it's
19396 not a VAR_DECL. Also don't limit it to UNSPECs with exactly one
19399 2012-06-11 Oleg Endo <olegendo@gcc.gnu.org>
19402 * config/sh/sh.md (fmasf4): New expander.
19403 (*macsf3): Rename to fmasf4_i. Adapt to fma pattern.
19404 (mac_media): Rename to fmasf4_media. Adapt to fma pattern.
19405 * config/sh/sh.opt (mfused-madd): Remove.
19406 * config/sh/sh.c (sh_option_override): Remove mfused-madd handling.
19407 (builtin_description bdesc): Remove __builtin_sh_media_FMAC_S.
19408 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add fused-madd.opt
19410 * doc/invoke.texi (SH Options): Update mfused-madd and mno-fused-madd
19413 2012-06-11 Richard Henderson <rth@redhat.com>
19415 * dwarf2cfi.c (scan_trace): Handle annulled branch-taken delay slots.
19417 2012-06-11 Richard Guenther <rguenther@suse.de>
19419 PR middle-end/53470
19420 * tree.c (free_lang_data_in_type): Do not clear TYPE_CONTEXT but
19421 replace it with the first non-BLOCK context.
19423 2012-06-11 Richard Guenther <rguenther@suse.de>
19425 * alias.c (aliases_everything_p): Remove.
19426 (DIFFERENT_ALIAS_SETS_P): Likewise.
19427 (true_dependence_1): Use mems_in_disjoint_alias_sets_p directly.
19428 Do not use aliases_everything_p or special-case ANDs. Do not
19429 special-case BLKmode moves.
19430 (may_alias_p): Likewise. Handle BLKmode similar like everywhere
19433 2012-06-09 Hans-Peter Nilsson <hp@axis.com>
19435 Fix CRIS build errors with --enable-build-with-cxx.
19436 * config/cris/cris.c (cris_emit_trap_for_misalignment): Rename
19437 variable "and" to "andop".
19438 * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>"): Use
19439 temporary variable for memory model, passing C++-type-correct
19440 parameter type to expand_mem_thread_fence.
19441 ("atomic_compare_and_swap<mode>"): Ditto.
19443 2012-06-09 Richard Henderson <rth@redhat.com>
19446 * cfgcleanup.c (execute_jump): Rename from rest_of_handle_jump2.
19447 (pass_jump): Rename from pass_jump2.
19448 (execute_jump2, pass_jump2): New.
19449 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Don't
19450 perform cfg cleanup here. Move the test of PUSH_ROUNDING
19451 and ACCUMULATE_OUTGOING_ARGS test...
19452 (gate_handle_stack_adjustments): ... here.
19453 * passes.c (init_optimization_passes): Update for pass_jump2 rename.
19454 Place new pass_jump2 after pass_stack_adjustments.
19455 * tree-pass.h (pass_jump): Declare.
19457 2012-06-09 Kenneth Zadeck <zadeck@naturalbridge.com>
19459 * simplify-rtx.c (simplify_const_binary_operation): Fixed shift
19462 2012-06-08 Richard Henderson <rth@redhat.com>
19465 * combine-stack-adj.c (force_move_args_size_note): Add ARGS_SIZE
19466 note to a clobber insn when no other insn is available.
19468 2012-06-08 Georg-Johann Lay <avr@gjlay.de>
19470 * config/avr/avr.c (avr_case_values_threshold): Return 7.
19472 2012-06-07 Andreas Schwab <schwab@linux-m68k.org>
19474 * genhooks.c (main): Set progname.
19475 (emit_documentation): Remove variable found_start, always bail out
19476 when a place is missing.
19477 * doc/tm.texi.in (C++ ABI): Add @hook TARGET_CXX_DECL_MANGLING_CONTEXT.
19479 2012-06-07 Jakub Jelinek <jakub@redhat.com>
19481 PR middle-end/53580
19482 * omp-low.c (scan_omp): Change first argument to gimple_seq *,
19483 call walk_gimple_seq_mod instead of walk_gimple_seq.
19484 (scan_sharing_clauses, scan_omp_parallel, scan_omp_task,
19485 scan_omp_for, scan_omp_sections, scan_omp_single,
19486 execute_lower_omp): Adjust callers.
19487 (scan_omp_1_stmt): Likewise. If check_omp_nesting_restrictions
19488 returns false, replace stmt with GIMPLE_NOP.
19489 (check_omp_nesting_restrictions): Instead of issuing warnings,
19490 issue errors and return false if any errors were reported.
19492 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
19494 * doc/invoke.texi (fconserve-space): Remove documentation.
19496 2012-06-06 Edmar Wienskoski <edmar@freescale.com>
19498 * config/rs6000/rs6000-tables.opt: Regenerated.
19500 2012-06-06 Richard Guenther <rguenther@suse.de>
19502 PR tree-optimization/53081
19503 * tree-data-ref.h (adjacent_store_dr_p): Rename to ...
19504 (adjacent_dr_p): ... this and make it work for reads, too.
19505 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMCPY.
19506 (struct partition_s): Change main_stmt to main_dr, add
19507 secondary_dr member.
19508 (build_size_arg_loc): Change to date data-reference and not
19510 (build_addr_arg_loc): New function split out from ...
19511 (generate_memset_builtin): ... here. Use it and simplify.
19512 (generate_memcpy_builtin): New function.
19513 (generate_code_for_partition): Adjust.
19514 (classify_partition): Streamline pattern detection. Detect memcpy.
19515 (ldist_gen): Adjust.
19516 (tree_loop_distribution): Adjust seed statements for memcpy
19519 2012-06-06 Matt Turner <mattst88@gmail.com>
19521 * config/arm/mmintrin.h (_mm_empty): New.
19524 2012-06-06 Richard Sandiford <r.sandiford@uk.ibm.com>
19526 * doc/invoke.texi (sched-pressure-algorithm): Document new --param.
19527 * common.opt (fsched-pressure-algorithm=): Remove.
19528 * flag-types.h (sched_pressure_algorithm): Move to...
19529 * sched-int.h (sched_pressure_algorithm): ...here.
19530 * params.def (sched-pressure-algorithm): New param.
19531 * haifa-sched.c (sched_init): Use it to initialize sched_pressure.
19532 * common/config/s390/s390-common.c (s390_option_optimization_table):
19533 Remove OPT_fsched_pressure_algorithm_ entry.
19534 * config/s390/s390.c (s390_option_override): Set a default value for
19535 PARAM_SCHED_PRESSURE_ALGORITHM.
19537 2012-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
19540 * config/rs6000/rs6000.c (rs6000_generate_compare): If we are
19541 doing an unsigned compare, make sure the second argument is not a
19543 (rs6000_emit_cmove): Don't allow floating point comparisons when
19544 generating ISEL moves.
19546 2012-06-05 Edmar Wienskoski <edmar@freescale.com>
19548 * config/rs6000/e5500.md: New file.
19549 * config/rs6000/e6500.md: New file.
19550 * config/rs6000/rs6000.c (processor_costs): Add new costs for
19552 (rs6000_option_override_internal): Altivec and Spe options not
19553 allowed with e5500. Spe options not allowed with e6500. Increase
19554 move inline limit for e5500 and e6500. Disable string instructions
19555 for e5500 and e6500. Enable branch targets alignment for e5500 and
19556 e6500. Initialize rs6000_cost for e5500 and e6500.
19557 (rs6000_adjust_cost): Add extra scheduling cycles between compare
19558 and brnach for e5500 and e6500.
19559 (rs6000_issue_rate): Set issue rate for e5500 and e6500.
19560 * config/rs6000/rs6000-cpus.def: Add cpu definitions for e5500 and
19562 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add e5500 and e6500.
19563 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce5500 and
19565 Include e5500.md and e6500.md.
19566 * config/rs6000/rs6000-opt.h (processor_type): Add
19567 PROCESSOR_PPCE5500 and PROCESSOR_PPCE6500.
19568 * config.gcc (cpu_is_64bit): Add new cores e5500, e6500.
19569 (powerpc*-*-*): Add new cores e5500, e6500.
19570 * doc/invoke.texi: (item -mcpu): Add e5500 and e6500 to list of cpus.
19572 2012-06-05 Richard Guenther <rguenther@suse.de>
19574 * tree-vect-data-refs.c (vect_analyze_data_refs): Fix last change.
19576 2012-06-05 H.J. Lu <hongjiu.lu@intel.com>
19579 * config.gcc: Select x32 run-time library if --with-abi={x32|mx32}
19580 is used for x86_64-*-*.
19582 2012-06-05 Richard Guenther <rguenther@suse.de>
19584 PR tree-optimization/30442
19585 * tree-vect-data-refs.c (vect_analyze_data_refs): For basic-block
19586 vectorization stop analysis at the first stmt we cannot compute
19587 a data-reference for instead of giving up completely.
19589 2012-06-05 Richard Guenther <rguenther@suse.de>
19591 * tree-loop-distribution.c (struct partition_s): Add has_writes member.
19592 (partition_alloc): Initialize it.
19593 (partition_has_writes): New function.
19594 (rdg_flag_uses): Adjust.
19595 (rdg_flag_vertex): Likewise.
19596 (rdg_flag_vertex_and_dependent): Likewise.
19597 (rdg_flag_loop_exits): Likewise.
19598 (build_rdg_partition_for_component): Likewise.
19599 (rdg_build_partitions): Likewise.
19601 2012-06-05 Richard Guenther <rguenther@suse.de>
19603 PR tree-optimization/53081
19604 * tree-loop-distribution.c (generate_memset_builtin): Handle all
19605 kinds of byte-sized stores.
19606 (classify_partition): Likewise.
19607 (tree_loop_distribution): Adjust seed statements used for
19608 !flag_tree_loop_distribution.
19610 2012-06-05 Alan Modra <amodra@gmail.com>
19612 * config/rs6000/rs6000.c (ptr_regno_for_savres): Comment.
19613 (rs6000_emit_prologue): Ensure register used for inline saves
19614 of vector regs is not the static chain register. Revise comment.
19616 2012-06-04 Oleg Endo <olegendo@gcc.gnu.org>
19618 * doc/md.texi (Standard Pattern Names For Generation): Document
19621 2012-06-04 H.J. Lu <hongjiu.lu@intel.com>
19624 * config/i386/i386.c (ix86_sched_reorder) Skip debug insns.
19626 2012-06-04 Jason Merrill <jason@redhat.com>
19628 * dwarf2out.c (is_unit_die): New.
19629 (copy_declaration_context, copy_ancestor_tree): Use it.
19630 (copy_decls_walk): Likewise.
19632 2012-06-04 Paolo Carlini <paolo.carlini@oracle.com>
19635 * doc/invoke.texi (Wenum-compare): Update documentation.
19637 2012-06-04 Dodji Seketeli <dodji@redhat.com>
19639 PR preprocessor/53463
19640 * parser.c (cp_parser_assignment_expression): Use the location
19641 for the '=' as the default location for the expression.
19643 2012-06-04 Edmar Wienskoski <edmar@freescale.com>
19646 * config/rs6000/altivec.md (altivec_stvlx): Change machine mode of
19648 (altivec_stvlxl): Ditto.
19649 (altivec_stvrx): Ditto.
19650 (altivec_stvrxl): Ditto.
19652 2012-06-04 Vladimir Makarov <vmakarov@redhat.com>
19654 * ira-int.h (struct target_ira_int): Add member x_ira_uniform_class_p.
19655 (ira_uniform_class_p): New macro.
19657 * ira.c (setup_uniform_class_p): New function.
19658 (setup_allocno_and_important_classes): Call the function.
19659 (print_unform_and_important_classes): New function.
19660 (print_classes): Rename to print_translated_classes.
19661 (ira_debug_allocno_classes): Add call of
19662 print_unform_and_important_classes.
19664 * ira-costs.c (setup_regno_cost_classes_by_aclass): Use uniform
19665 classes instead of pressure classes.
19667 2012-06-04 Aldy Hernandez <aldyh@redhat.com>
19669 PR middle-end/47530
19670 * trans-mem.c (expand_block_edges): Do not skip the first
19671 statement when resetting the BB.
19673 2012-06-04 Richard Guenther <rguenther@suse.de>
19675 * tree-data-ref.c (stores_from_loop): Remove.
19676 (stmt_with_adjacent_zero_store_dr_p): Likewise.
19677 (stores_zero_from_loop): Likewise.
19678 * tree-data-ref.h (stores_from_loop, stores_zero_from_loop,
19679 stmt_with_adjacent_zero_store_dr_p, stride_of_unit_type_p): Remove.
19680 (adjacent_store_dr_p): New function.
19681 * tree-loop-distribution.c (generate_memset_builtin): Pass
19682 the RDG, use the already available data-reference.
19683 (generate_code_for_partition): Pass down RDG.
19684 (classify_partition): Inline parts of the former
19685 stmt_with_adjacent_zero_store_dr_p here and use adjacent_store_dr_p.
19686 (ldist_gen): Remember if there was any detected builtin and
19687 do less work if not and flag_tree_loop_distribution is not set.
19688 (tree_loop_distribution): Inline and fuse stores_from_loop
19689 and stores_zero_from_loop here.
19691 2012-06-04 Richard Guenther <rguenther@suse.de>
19693 PR middle-end/53471
19694 * dwarf2out.c (dwarf2out_finish): If generating LTO do not
19695 create new assembler names.
19697 2012-06-04 Richard Guenther <rguenther@suse.de>
19699 * tree-data-ref.c (struct rdg_vertex_info): Remove.
19700 (rdg_vertex_for_stmt): Simplify using gimple_uid.
19701 (create_rdg_vertices): Pass loop argument, remove stmt to RDG index
19702 hashtable. Record stmt data-references.
19703 (hash_stmt_vertex_info): Remove.
19704 (eq_stmt_vertex_info): Likewise.
19705 (hash_stmt_vertex_del): Likewise.
19706 (build_empty_rdg): Simplify.
19707 (build_rdg): Adjust.
19708 (free_rdg): Likewise.
19709 (ref_base_address): Remove.
19710 (have_similar_memory_accesses): Likewise.
19711 * tree-data-ref.h (create_rdg_vertices): Remove.
19712 (struct rdg_vertex): Add datarefs member.
19713 (RDGV_DATAREFS): New define.
19714 (RDG_DATAREFS): Likewise.
19715 (have_similar_memory_accesses): Remove.
19716 (rdg_has_similar_memory_accesses): Likewise.
19717 * tree-loop-distribution.c (ref_base_address): Re-implement here.
19718 (similar_memory_accesses): Re-implement using existing data-references.
19719 (tree_loop_distribution): Initialize stmt uids for the stmt to
19721 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
19722 access stmt vinfo for stmts in loop.
19724 2012-06-04 Andreas Schwab <schwab@linux-m68k.org>
19727 * config/m68k/m68k.md ("tablejump"): Fix check for
19728 CASE_VECTOR_PC_RELATIVE.
19730 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
19732 * output.h (merge_weak, assemble_alias,
19733 initializer_constant_valid_p,
19734 initializer_constant_valid_for_bitfield_p): Move protos from here...
19735 * tree.h: ... to here.
19736 * cgraphclones.c: Do not include output.h.
19737 * gimplify.c: Likewise.
19738 * reload.c: Likewise.
19739 * recog.c: Likewise.
19740 * tree-ssa-loop-ivopts.c: Likewise.
19741 * tree-switch-conversion.c: Likewise.
19742 * c-parser.c: Likewise.
19743 * c-typeck.c: Likewise.
19744 * Makefile.in: Fix dependencies.
19746 2012-06-04 Georg-Johann Lay <avr@gjlay.de>
19749 * config/avr/avr-stdint.h: New file.
19750 * config.gcc (avr-*-*,tm_file): Use avr/avr-stdint.h instead of
19753 2012-06-04 Jakub Jelinek <jakub@redhat.com>
19755 PR tree-optimization/53550
19756 * tree-ssa-loop-niter.c (number_of_iterations_cond): If type
19757 is POINTER_TYPE_P, use sizetype as step type instead of type.
19759 2012-06-04 Richard Guenther <rguenther@suse.de>
19761 * tree-data-ref.c (have_similar_memory_accesses_1): Remove.
19762 (ref_base_address_1): Likewise.
19763 (remove_similar_memory_refs): Likewise.
19764 * tree-data-ref.h (remove_similar_memory_refs): Remove.
19765 * tree-loop-distribution.c (classify_partition): Do not classify
19766 as builtin if -ftree-loop-distribute-patterns is not enabled.
19767 (fuse_partitions_with_similar_memory_accesses): Inline ...
19768 (ldist_gen): ... here. Fuse all non-builtin partitions if
19769 -ftree-loop-distribution is not enabled. Properly return
19770 the number of created partitions. Do not update SSA form here but ...
19771 (tree_loop_distribution): ... once here for the whole function.
19772 Only walk innermost loops, constrain loops we consider here
19773 further. Do not call remove_similar_memory_refs.
19774 (distribute_loop): Do not check number of loop nodes here.
19776 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
19778 * Makefile.in (GIMPLE_H): Do not depend on TARGET_H.
19780 2012-06-03 Martin Jambor <mjambor@suse.cz>
19782 * ipa-prop.h (ipa_get_jf_known_type_offset): New function.
19783 (ipa_get_jf_known_type_base_type): Likewise.
19784 (ipa_get_jf_known_type_component_type): Likewise.
19785 (ipa_get_jf_constant): Likewise.
19786 (ipa_get_jf_pass_through_formal_id): Likewise.
19787 (ipa_get_jf_pass_through_operation): Likewise.
19788 (ipa_get_jf_ancestor_offset): Likewise.
19789 (ipa_get_jf_ancestor_type): Likewise.
19790 (ipa_get_jf_ancestor_formal_id): Likewise.
19791 (ipa_get_jf_member_ptr_pfn): Likewise.
19792 * ipa-prop.c (ipa_set_jf_known_type): New function.
19793 (ipa_set_jf_constant): Likewise.
19794 (ipa_set_jf_simple_pass_through): Likewise.
19795 (ipa_set_jf_arith_pass_through): Likewise.
19796 (ipa_set_ancestor_jf): Likewise.
19797 (fill_member_ptr_cst_jump_function): Moved up and renamed to
19798 ipa_set_jf_member_ptr_cst.
19799 (detect_type_change_1): Use the new jump function creation functions.
19800 (compute_complex_assign_jump_func): Likewise.
19801 (compute_complex_ancestor_jump_func): Likewise.
19802 (compute_known_type_jump_func): Likewise.
19803 (compute_scalar_jump_functions): Likewise.
19804 (compute_pass_through_member_ptrs): Likewise.
19805 (determine_cst_member_ptr): Likewise.
19806 (combine_known_type_and_ancestor_jfs): Likewise.
19807 (try_make_edge_direct_simple_call): Likewise.
19808 (try_make_edge_direct_virtual_call): Likewise.
19809 (update_indirect_edges_after_inlining): Likewise.
19810 * ipa-cp.c (ipa_get_jf_pass_through_result): Use jump function
19811 access functions. Incorporat NOP_EXPR and BINFO handling from its
19813 (ipa_get_jf_ancestor_result): Likewise. Incorporate handling BINFOs
19814 which was in its callers.
19815 (ipa_value_from_jfunc): Use jump function access functions. Some
19816 functionality moved to functions above.
19817 (propagate_vals_accross_ancestor): Likewise.
19818 (propagate_vals_accross_pass_through): Use jump function access
19820 (propagate_accross_jump_function): Likewise.
19821 * ipa-inline-analysis.c (remap_edge_change_prob): Use jump function
19823 (inline_merge_summary): Likewise.
19825 2012-06-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19827 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Define.
19828 * config/pa/pa.c (pa_attr_length_millicode_call): Use
19829 MAX_PCREL17F_OFFSET instead of fixed offset.
19830 (pa_attr_length_call): Likewise.
19831 (pa_attr_length_indirect_call): Likewise.
19833 2012-06-03 Oleg Endo <olegendo@gcc.gnu.org>
19836 * config/sh/sh.opt (mfsca, mfsrra): New options.
19837 * config/sh/sh.md (rsqrtsf2): Use TARGET_FPU_ANY and TARGET_FSRRA
19839 (fsca): Use TARGET_FPU_ANY and TARGET_FSCA condition.
19840 (sinssf2, cossf2): Fold expanders to ...
19841 (sincossf3): ... this new expander. Use TARGET_FPU_ANY and
19842 TARGET_FSCA condition.
19843 * config/sh/sh.c (sh_option_override): Handle TARGET_FSRRA and
19845 * doc/invoke.texi (SH Options): Add descriptions for -mfsca,
19846 -mno-fsca, -mfsrra, -mno-fsrra.
19848 2012-06-03 Matt Turner <mattst88@gmail.com>
19850 * config/mips/4600.md (r4700_imul_si): New.
19851 (r4700_imul_di): New.
19852 (r4700_fmul_single): New.
19853 (r4700_fmul_double): New.
19854 * config/mips/mips-cpus.def: Add r4700.
19855 * config/mips/mips.c: Likewise.
19856 * config/mips/mips.md: Likewise.
19857 * config/mips/mips-tables.opt: Regenerate.
19859 2012-06-02 Steven Bosscher <steven@gcc.gnu.org>
19861 * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Split out to
19862 new function sparc_initial_elimination_offset.
19863 * config/sparc/sparc.c (sparc_initial_elimination_offset): New
19865 * config/sparc/sparc-protos.h (sparc_initial_elimination_offset):
19868 2012-06-02 Kenneth Zadeck <zadeck@naturalbridge.com>
19870 * expmed.c (expand_mult, choose_multiplier): Change
19871 "2 * HOST_BITS_PER_WIDE_INT" to "HOST_BITS_PER_DOUBLE_INT".
19872 * expr.c (convert_modes): Likewise.
19873 * explow.c (plus_constant): Likewise.
19874 * fixed-value.c (fixed_saturate1, fixed_saturate2)
19875 (do_fixed_add, do_fixed_multiply, do_fixed_multiply)
19876 (do_fixed_multiply, do_fixed_multiply, do_fixed_divide)
19877 (do_fixed_divide, do_fixed_divide, do_fixed_divide)
19878 (do_fixed_divide, do_fixed_divide, do_fixed_shift, do_fixed_shift)
19879 (do_fixed_shift, fixed_convert, fixed_convert)
19880 (fixed_convert_from_int, fixed_convert_from_int)
19881 (fixed_convert_from_real): Likewise.
19882 * fold-const.c (fold_convert_const_int_from_fixed, sign_bit_p)
19883 (native_interpret_int, fold_binary_loc, fold_ternary_loc): Likewise.
19884 * varasm.c (output_constructor_bitfield): Likewise.
19885 * tree-vrp.c (register_edge_assert_for_2): Likewise.
19886 * double-int.c (rshift_double, lshift_double): Likewise.
19887 * double-int.h (double_int_fits_in_uhwi_p, double_int, double_int):
19889 * simplify-rtx.c (mode_signbit_p)
19890 (simplify_const_unary_operation, simplify_binary_operation_1)
19891 (simplify_immed_subreg): Likewise.
19892 * builtins.c (c_readstr, fold_builtin_bitop): Likewise.
19893 * tree-vect-generic.c (build_replicated_const): Likewise.
19894 * dbxout.c (stabstr_O): Likewise.
19895 * emit-rtl.c (immed_double_int_const, immed_double_const)
19896 (gen_lowpart_common, init_emit_once): Likewise.
19897 * tree.c (integer_pow2p, tree_log2, tree_floor_log2)
19898 (widest_int_cst_value, upper_bound_in_type): Likewise.
19899 * stor-layout.c (initialize_sizetypes, fixup_signed_type)
19900 (fixup_unsigned_type): Likewise.
19901 * real.c (real_to_integer2, real_from_integer): Likewise.
19902 * dwarf2out.c (size_of_loc_descr, size_of_die, output_die)
19903 (clz_loc_descriptor, mem_loc_descriptor): Likewise.
19905 2012-06-01 Eric Botcazou <ebotcazou@adacore.com>
19907 PR middle-end/53501
19908 * fold-const.c (fold_binary_loc): Refine previous change.
19910 2012-06-01 Olivier Hainque <hainque@adacore.com>
19912 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Restore
19913 the "do {" part of the do-while(0) loop.
19915 2012-06-01 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
19917 * config/i386/i386.c (x86_sched_reorder): New function.
19918 Added new function x86_sched_reorder.
19920 2012-06-01 Richard Guenther <rguenther@suse.de>
19922 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
19924 (classify_partition): Likewise.
19926 2012-06-01 Richard Guenther <rguenther@suse.de>
19928 * tree-loop-distribution.c (enum partition_kind): New enum.
19929 (struct partition_s): Add kind and main_stmt members.
19930 (partition_alloc): Initialize kind to PKIND_NORMAL.
19931 (partition_builtin_p): New function.
19932 (copy_loop_before): Remove failure path and assert instead.
19933 (generate_loops_for_partition): Likewise.
19934 (generate_memset_zero): Fold into ...
19935 (generate_memset_builtin): ... this.
19936 (classify_partition): New function with code from
19937 can_generate_builtin and generate_builtin.
19938 (generate_builtin): Remove.
19939 (can_generate_builtin): Likewise.
19940 (fuse_partitions_with_similar_memory_accesses): Call
19941 partition_builtin_p instead of can_generate_builtin.
19942 (rdg_build_partitions): Do not call
19943 fuse_partitions_with_similar_memory_accesses here...
19944 (ldist_gen): ... but here after classifying all partitions.
19945 Remove failure path of generate_code_for_partition.
19946 (generate_code_for_partition): Generate code according
19947 to partition classification.
19949 2012-06-01 Manuel López-Ibáñez <manu@gcc.gnu.org>
19950 Jonathan Wakely <jwakely.gcc@gmail.com>
19953 * doc/invoke.texi (Warning Options): Explain purpose and differences
19954 between -Wmissing-prototypes and -Wmissing-declarations.
19956 2012-06-01 Christian Bruel <christian.bruel@st.com>
19958 * gcc.c (save_switch): Add user_p parameter.
19959 (read_specs): Likewise.
19960 (set_specs): Likewise.
19961 (validate_switches): Likewise.
19962 (validate_switches_from_spec): Likewise.
19963 (validate_all_switches): Pass on user_p parameter.
19964 (struct spec_list): Add user_p field.
19965 (struct switchstr): Add known field.
19966 (save_switch): Add known parameter.
19967 (INIT_STATIC_SPEC): Initialize user_p;
19968 (driver_unknown_option_callbac): call save_switch if
19969 OPT_SPECIAL_unknown.
19970 (driver_handle_option): Propagate OPT_specs.
19971 (do_spec_1): Set validated only if known.
19972 (check_live_switch): Likewise.
19973 (validate_switches): Set validated if known or user_spec.
19975 2012-06-01 Hans-Peter Nilsson <hp@axis.com>
19977 Add CRIS atomic patterns for 1, 2, and 4 bytes.
19978 * config/cris/cris.c (cris_emit_trap_for_misalignment): New function.
19979 * config/cris/cris-protos.h: Declare it.
19980 * config/cris/cris.h [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 32]
19981 (TARGET_DEFAULT): Add alignment by 32.
19982 [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 10] (TARGET_DEFAULT): New
19983 case, as TARGET_CPU_DEFAULT == 0 but with alignment as for
19984 TARGET_CPU_DEFAULT == 32.
19985 (TARGET_TRAP_UNALIGNED_ATOMIC): New macro.
19986 * config/cris/cris.md: Include sync.md. Avoid allocating specific
19987 numbers by replacing the define_constants for all UNSPECs with the
19988 equivalent define_c_enum construct.
19989 * config/cris/cris.opt (mtrap-unaligned-atomic): New option.
19990 * config/cris/sync.md: New file.
19992 2012-05-31 Matt Turner <mattst88@gmail.com>
19994 * config/mips/4600.md (r4600_imul_si): Rename from r4600_imul.
19995 (r4600_imul_di): New.
19996 (r4600_idiv_si): Rename from r4600_idiv.
19997 (r4600_idiv_di): New.
19999 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
20001 * output.h (__gcc_host_wide_int__): Move to hwint.h.
20002 (decl_default_tls_model): Move to tree.h
20003 (dump_file): Move to system.h.
20004 (default_stabs_asm_out_destructor, default_stabs_asm_out_constructor,
20005 dbxout_int, dbxout_stabd, dbxout_begin_stabn, dbxout_begin_stabn_sline,
20006 dbxout_begin_empty_stabs, dbxout_begin_simple_stabs,
20007 dbxout_begin_simple_stabs_desc, dbxout_stab_value_zero,
20008 dbxout_stab_value_zero, dbxout_stab_value_label_diff,
20009 dbxout_stab_value_internal_label,
20010 dbxout_stab_value_internal_label_diff): Move from here ...
20011 * dbxout.h: ... to here.
20012 * system.h (dump_file): Moved here from output.h.
20013 * hwint.h (__gcc_host_wide_int__): Moved here from output.h.
20014 * tree.h (decl_default_tls_model): Moved here from output.h.
20015 * varasm.c (default_stabs_asm_out_destructor,
20016 default_stabs_asm_out_constructor): Move from here ...
20017 * dbxout.c: ... to here.
20019 * gcov-dump.c (dump_file): Rename to dump_gcov_file. Update callers.
20021 * collect2.h (dump_file): Rename to dump_ld_file.
20022 * collect2.c: Likewise.
20023 * tlink.c: Likewise.
20025 * alias.c: Do not include output.h.
20026 * auto-inc-dec.c: Likewise.
20027 * bt-load.c: Likewise.
20028 * caller-save.c: Likewise.
20030 * cfgbuild.c: Likewise.
20031 * cfgcleanup.c: Likewise.
20032 * cfglayout.c: Likewise.
20033 * cfgloop.c: Likewise.
20034 * cfgloopanal.c: Likewise.
20035 * cfgloopmanip.c: Likewise.
20036 * cfgrtl.c: Likewise.
20037 * cgraph.c: Likewise.
20038 * cgraphclones.c: Likewise.
20039 * combine-stack-adj.c: Likewise.
20040 * combine.c: Likewise.
20041 * cprop.c: Likewise.
20043 * cselib.c: Likewise.
20044 * dbgcnt.c: Likewise.
20045 * df-problems.c: Likewise.
20046 * df-scan.c: Likewise.
20047 * dojump.c: Likewise.
20048 * fwprop.c: Likewise.
20049 * gcse.c: Likewise.
20050 * graph.c: Likewise.
20051 * haifa-sched.c: Likewise.
20052 * hw-doloop.c: Likewise.
20053 * ipa-inline-transform.c: Likewise.
20054 * ipa-pure-const.c: Likewise.
20055 * ipa-reference.c: Likewise.
20056 * ipa-utils.c: Likewise.
20057 * ira-build.c: Likewise.
20058 * ira-emit.c: Likewise.
20060 * loop-doloop.c: Likewise.
20061 * loop-invariant.c: Likewise.
20062 * loop-iv.c: Likewise.
20063 * loop-unroll.c: Likewise.
20064 * loop-unswitch.c: Likewise.
20065 * lto-cgraph.c: Likewise.
20066 * lto-section-in.c: Likewise.
20067 * lto-streamer-in.c: Likewise.
20069 * mode-switching.c: Likewise.
20070 * postreload-gcse.c: Likewise.
20071 * postreload.c: Likewise.
20072 * predict.c: Likewise.
20073 * profile.c: Likewise.
20075 * reg-stack.c: Likewise.
20076 * regcprop.c: Likewise.
20077 * regmove.c: Likewise.
20078 * regstat.c: Likewise.
20079 * reload1.c: Likewise.
20080 * sched-ebb.c: Likewise.
20081 * sel-sched-dump.c: Likewise.
20082 * simplify-rtx.c: Likewise.
20083 * stor-layout.c: Likewise.
20084 * store-motion.c: Likewise.
20085 * tracer.c: Likewise.
20086 * tree-affine.c: Likewise.
20087 * tree-cfg.c: Likewise.
20088 * tree-cfgcleanup.c: Likewise.
20089 * tree-dfa.c: Likewise.
20090 * tree-into-ssa.c: Likewise.
20091 * tree-nomudflap.c: Likewise.
20092 * tree-optimize.c: Likewise.
20093 * tree-pretty-print.c: Likewise.
20094 * tree-profile.c: Likewise.
20095 * tree-ssa-address.c: Likewise.
20096 * tree-ssa-ccp.c: Likewise.
20097 * tree-ssa-copy.c: Likewise.
20098 * tree-ssa-dom.c: Likewise.
20099 * tree-ssa-loop-ch.c: Likewise.
20100 * tree-ssa-loop-im.c: Likewise.
20101 * tree-ssa-loop-manip.c: Likewise.
20102 * tree-ssa-loop-niter.c: Likewise.
20103 * tree-ssa-loop-prefetch.c: Likewise.
20104 * tree-ssa-loop-unswitch.c: Likewise.
20105 * tree-ssa-loop.c: Likewise.
20106 * tree-ssa-propagate.c: Likewise.
20107 * tree-ssa-structalias.c: Likewise.
20108 * tree-ssa-tail-merge.c: Likewise.
20109 * tree-ssa-threadedge.c: Likewise.
20110 * tree-ssa-threadupdate.c: Likewise.
20111 * tree-ssa-uncprop.c: Likewise.
20112 * tree-ssa-uninit.c: Likewise.
20113 * tree-ssa.c: Likewise.
20114 * value-prof.c: Likewise.
20115 * var-tracking.c: Likewise.
20118 * config/m32r/m32r.c: Include dbxout.h.
20119 * config/pa/pa.c: Likewise.
20120 * config/rs6000/rs6000.c: Likewise.
20122 * Makefile.in: Fix dependencies.
20123 * config/rs6000/t-rs5000: Likewise.
20125 2012-05-31 Aldy Hernandez <aldyh@redhat.com>
20127 * tree-ssa-loop-im.c (execute_sm): Do not check flag_tm.
20128 * gimple.h (block_in_transaction): Check for flag_tm.
20130 2012-05-31 Aldy Hernandez <aldyh@redhat.com>
20132 PR tree-optimization/52558
20133 * cfg.c (alloc_aux_for_edge): Fix comment.
20134 (alloc_aux_for_edge): Remove static.
20135 * basic-block.h (alloc_aux_for_edge): Protoize.
20136 * tree-ssa-loop-im.c (execute_sm_if_changed): New.
20137 (execute_sm_if_changed_flag): New.
20138 (execute_sm_if_changed_flag_set): New.
20139 (execute_sm): Do not generate data races unless requested.
20140 (tree_ssa_lim_initialize): Call alloc_aux_for_edges.
20141 (tree_ssa_lim_finalize): Call free_aux_for_edges.
20142 * gimple.h (block_in_transaction): New.
20143 (gimple_in_transaction): Use block_in_transaction.
20145 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
20148 * config/avr/avr.opt (-msp8): Document it.
20149 * doc/invoke.texi (AVR Options): Ditto. And document related
20152 2012-05-31 Diego Novillo <dnovillo@google.com>
20154 * configure.ac (CXX_FOR_BUILD): Define and substitute.
20155 (BUILD_CXXFLAGS): Define and substitute.
20156 * Makefile.in (BUILD_CXXFLAGS): Define.
20157 (CXX_FOR_BUILD): Define.
20158 (COMPILER_FOR_BUILD): Set to CXX_FOR_BUILD if building with C++.
20159 (LINKER_FOR_BUILD): Likewise.
20160 (BUILD_COMPILERFLAGS): Set to BUILD_CXXFLAGS if building with C++.
20161 (BUILD_LINKERFLAGS): Likewise.
20162 * configure: Regenerate.
20164 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
20166 * Makefile.in: Fix many dependencies.
20167 * tree-profile.c: Don't include regs.h.
20168 * tree-vectorizer.c: Don't include cfglayout.h.
20169 * tree-vect-stmts.c: Likewise.
20170 * tree-vect-slp.c: Likewise.
20171 * tree-vect-loop.c: Likewise.
20172 * reg-stack.c: Likewise.
20173 * tree-ssa-loop-manip.c: Likewise.
20174 * toplev.c: Likewise.
20175 * varasm.c: Don't include cfglayout.h, basic-block.h,
20176 and tree-iterator.h.
20177 * tree-cfgcleanup.c: Don't include cfglayout.h.
20178 * passes.c: Don't include cfglayout.h, dwarf2asm.h,
20179 dwarf2out.h, dbxout.h, sdbout.h, and xcoffout.h.
20180 * cgraphclones.c: Don't include plugin.h.
20182 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
20184 * config/avr/t-avr: Correct avr-mmcu.texi dependencies.
20185 (s-avr-mmcu-texi): Don't sed on gen-avr-mmcu-texi output.
20186 * doc/avr-mmcu.texi (svn:eol-style): Set to native.
20188 2012-05-31 Richard Guenther <rguenther@suse.de>
20190 * tree-loop-distribution.c (struct partition_s): New struct,
20191 typedef and vector type.
20192 (partition_alloc, partition_free): New functions.
20193 (generate_loops_for_partition, generate_builtin,
20194 generate_code_for_partition, rdg_flag_uses, rdg_flag_vertex,
20195 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
20196 build_rdg_partition_for_component, can_generate_builtin,
20197 similar_memory_accesses, fuse_partitions_with_similar_memory_accesses,
20198 rdg_build_partitions, dump_rdg_partitions, debug_rdg_partitions,
20199 number_of_rw_in_partition, partition_contains_all_rw,
20200 ldist_gen): Use partition_t instead of bitmap.
20202 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
20204 * config/avr/gen-avr-mmcu-texi.c: Sort MCUs.
20205 * doc/avr-mmcu.texi: Regenerate.
20207 2012-05-31 Richard Guenther <rguenther@suse.de>
20209 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
20210 Use FOR_EACH_SSA_DEF_OPERAND.
20211 (generate_builtin): Adjust.
20212 (stmt_generated_in_another_partition): Remove.
20213 (add_scalar_computations_to_partition): Likewise.
20214 (rdg_build_partitions): Do not call
20215 add_scalar_computations_to_partition.
20217 2012-05-31 Eric Botcazou <ebotcazou@adacore.com>
20219 * tree-dfa.c (get_ref_base_and_extent): Compute the offset using
20220 double ints throughout.
20221 * tree-sra.c (build_user_friendly_ref_for_offset) <RECORD_TYPE>:
20222 Check that the position of the field is representable as an integer.
20224 2012-05-31 Richard Guenther <rguenther@suse.de>
20226 * tree-data-ref.c (dr_analyze_innermost): Properly convert
20227 the MEM_REF offset to sizetype.
20229 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
20231 * doc/invoke.texi (AVR Options): Fix typos.
20233 2012-05-31 Hans-Peter Nilsson <hp@axis.com>
20235 * config/cris/cris.h (CC1_SPEC): Pass through all -march=
20236 and -mcpu= options.
20237 (ASM_SPEC): Ditto, not just -march=v32, but translate non-v10,
20238 non-v32 into --march=v0_v10.
20240 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
20242 * ira-int.h (target_ira_int): Rename x_move_cost to
20243 x_ira_register_move_cost, x_may_move_in_cost to
20244 x_ira_may_move_in_cost and x_may_move_out_cost to
20245 x_ira_may_move_out_cost. Delete the old fields with
20246 those names and also x_ira_max_register_move_cost,
20247 x_ira_max_may_move_in_cost and x_ira_max_may_move_out_cost.
20248 (move_cost, may_move_in_cost, may_move_out_cost)
20249 (ira_max_register_move_cost, ira_max_may_move_in_cost)
20250 (ira_max_may_move_out_cost): Delete.
20251 * ira.c (init_move_cost): Rename to...
20252 (ira_init_register_move_cost): ...this, deleting the old
20253 function with that name. Apply above variable renamings.
20254 Retain asserts for null fields.
20255 (ira_init_once): Don't initialize register move costs here.
20256 (free_register_move_costs): Apply above variable renamings.
20257 Remove code for deleted fields.
20259 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
20261 * ira.c (init_move_cost): Adjust choice of subclasses to match
20262 the current ira_init_register_move_cost choice. Use
20263 ira_class_subset_p instead of reg_class_subset_p.
20264 (ira_init_register_move_cost): Assert that move_cost,
20265 may_move_in_cost and may_move_out_cost already hold the desired
20266 values for their ira_* equivalents. For the latter two,
20267 ignore classes that can't store a register of the given mode.
20269 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
20271 * ira.c (setup_allocno_and_important_classes): Use
20272 ira_class_hard_regs_num to check whether a class has any
20273 allocatable registers.
20274 (ira_init_register_move_cost): Likewise.
20276 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
20278 * ira.c (init_move_cost): Adjust local variable names to match
20279 file conventions. Use ira_assert instead of gcc_assert.
20281 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
20283 * regs.h (move_table, move_cost, may_move_in_cost, may_move_out_cost):
20284 Move these definitions and associated target_globals fields to...
20285 * ira-int.h: ...here.
20286 * rtl.h (init_move_cost): Delete.
20287 * reginfo.c (last_mode_for_init_move_cost, init_move_cost): Move to...
20288 * ira.c: ...here, making the latter static.
20290 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
20292 * ira-costs.c (copy_cost): Use ira_init_register_move_cost_if_necessary
20293 and ira_register_move_cost instead of init_move_cost and move_cost.
20295 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
20297 * ira.h (target_ira): Delete x_ira_available_class_regs.
20298 (ira_available_class_regs): Delete.
20299 * ira.c (setup_available_class_regs): Delete.
20300 (setup_alloc_classes): Don't call it.
20301 (setup_pressure_classes): Use ira_class_hard_regs_num instead of
20302 ira_available_class_regs.
20303 * haifa-sched.c (print_curr_reg_pressure, setup_insn_reg_pressure_info)
20304 (model_spill_cost): Likewise.
20305 * ira-build.c (low_pressure_loop_node_p): Likewise.
20306 * ira-color.c (color_pass): Likewise.
20307 * ira-emit.c (change_loop): Likewise.
20308 * ira-lives.c (inc_register_pressure, dec_register_pressure)
20309 (single_reg_class, ira_implicitly_set_insn_hard_regs)
20310 (process_bb_node_lives): Likewise.
20311 * loop-invariant.c (gain_for_invariant): Likewise.
20313 2012-05-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20316 * config/pa/pa.c (TARGET_SECTION_TYPE_FLAGS): Define.
20317 (pa_section_type_flags): New.
20318 (pa_legitimate_constant_p): Revert previous change.
20320 2012-05-30 Steven Bosscher <steven@gcc.gnu.org>
20322 * ira.c (allocate_initial_values): Make static.
20324 2012-05-30 Uros Bizjak <ubizjak@gmail.com>
20326 * config/i386/i386.c (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>:
20327 Generate tls_initial_exec_64_sun only when !TARGET_X32.
20329 2012-05-30 Richard Guenther <rguenther@suse.de>
20331 PR middle-end/53501
20332 * fold-const.c (fold_binary_loc): Make sure to call
20333 fold_plusminus_mult_expr with the original sign of operands.
20335 2012-05-30 Steven Bosscher <steven@gcc.gnu.org>
20337 * Makefile.in: Fix many dependencies.
20338 (DWARF2_H): Depend on dwarf2.def.
20339 (RTL_ERROR_H): Depend on rtl-error.h.
20340 (TREE_PRETTY_PRINT_H, GIMPLE_PRETTY_PRINT_H): New. Replace
20341 all gimple-pretty-print.h and tree-pretty-print.h references.
20343 2012-05-30 Marc Glisse <marc.glisse@inria.fr>
20345 * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
20348 2012-05-30 Richard Guenther <rguenther@suse.de>
20350 PR middle-end/53522
20351 * tree-emutls.c (gen_emutls_addr): Do not add globals to
20354 2012-05-30 Eric Botcazou <ebotcazou@adacore.com>
20356 * explow.c (probe_stack_range): Restore simple control flow and stop
20357 again when the probe cannot be generated if HAVE_check_stack.
20359 2012-05-30 Jakub Jelinek <jakub@redhat.com>
20361 PR rtl-optimization/53519
20362 * combine.c (simplify_shift_const_1) <case NOT>: Use constm1_rtx
20363 instead of GEN_INT (GET_MODE_MASK (mode)) as second operand of XOR.
20365 2012-05-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20367 * config/arm/arm.c (arm_evpc_neon_vrev): Adjust off by one error.
20369 2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
20372 * doc/tm.texi: Update.
20373 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Add @hook.
20374 * target.def (force_at_comp_dir): New hook.
20375 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define.
20376 * dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir.
20378 2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
20380 * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
20382 (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
20383 (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
20385 2012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
20388 * config/sh/sh.c (sh_option_override): Set TARGET_FMAC if
20389 flag_unsafe_math_optimizations is set.
20390 * doc/invoke.texi (SH Options): Add -mno-fused-madd description.
20391 Update description of -mfused-madd.
20393 2012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
20396 * config/sh/predicates.md (atomic_arith_operand,
20397 atomic_logical_operand): New predicates.
20398 * config/sh/sh.c (sh_option_override): Check atomic options.
20399 * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
20400 UNSUPPORTED_HARD_ATOMIC_CPU): New macros.
20401 (DRIVER_SELF_SPECS): Use UNSUPPORTED_ATOMIC_OPTIONS and
20402 UNSUPPORTED_HARD_ATOMIC_CPU.
20403 * config/sh/sync.md: Update description comments.
20404 (I12): New mode iterator.
20405 (fetchop_predicate, fetchop_constraint): New code attributes.
20406 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
20407 atomic_exchangesi_hard, atomic_exchange<mode>_hard,
20408 atomic_fetch_<fetchop_name>si_hard,
20409 atomic_fetch_<fetchop_name><mode>_hard,
20410 atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
20411 atomic_<fetchop_name>_fetchsi_hard,
20412 atomic_<fetchop_name>_fetch<mode>_hard,
20413 atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
20414 atomic_test_and_set_hard): New insns.
20415 (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
20416 atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
20417 atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
20418 atomic_test_and_set_soft): Use same formatting for the first line of
20419 the asm block as in new insns above.
20420 (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
20421 atomic_fetch_<fetchop_name><mode>, atomic_<fetchop_name>_fetch<mode>,
20422 atomic_test_and_set): Integrate new *_hard insns into expanders.
20423 * config/sh/sh.opt (mhard-atomic): New option.
20424 * doc/invoke.texi (SH Options): Document it.
20426 2012-05-29 Meador Inge <meadori@codesourcery.com>
20428 * c-decl.c (c_push_function_context): Always create a new language
20430 (c_pop_function_context): Clear the language function created in
20431 c_push_function_context.
20433 2012-05-29 Matt Turner <mattst88@gmail.com>
20435 * config/alpha/ev6.md: (define_bypass "ev6_fmul,ev6_fadd"): New.
20436 (define_bypass "ev6_fcmov"): New.
20438 2012-05-29 Steven Bosscher <steven@gcc.gnu.org>
20440 * integrate.c: Remove.
20441 * integrate.h: Remove.
20442 * Makefile.in: Remove make rules for integrate.c and INTEGRATE_H.
20443 * config/arm/t-arm: Remove INTEGRATE_H dependency for target files.
20444 * config/rs6000/t-rs6000: Likewise
20445 * config/spu/t-spu-elf: Likewise.
20446 * function.h (get_hard_reg_initial_val, has_hard_reg_initial_val,
20447 get_hard_reg_initial_reg, emit_initial_value_sets): Move prototypes
20448 from integrate.h to here.
20449 (initial_value_entry): New prototype.
20450 * reload.h (allocate_initial_values): Remove prototype.
20451 * tree.h (set_decl_abstract_flags, set_decl_origin_self): Likewise.
20452 * cse.c (fixed_base_plus_p): Don't handle virtual registers for
20454 * dwarf2out.c (set_decl_origin_self, set_block_origin_self,
20455 set_decl_abstract_flags, set_block_abstract_flags): Move from
20456 integrate.c to here, the only user.
20457 * expmed.c (extract_fixed_bit_field): Remove outdated comment
20459 * function.c: Don't include integrate.h.
20460 (struct initial_value_pair, struct initial_value_struct,
20461 get_hard_reg_initial_val, has_hard_reg_initial_val,
20462 get_hard_reg_initial_reg, emit_initial_value_sets): Move from
20463 integrate.c to here.
20464 (initial_value_entry): New function.
20465 * genemit.c (main): Don't print integrate.h include line.
20466 * ira.c: Don't include integrate.h.
20467 (allocate_initial_values): Move from integrate.c to here.
20468 (ira): Update allocate_initial_values call.
20469 * tree-inline.c: Don't include integrate.h.
20470 (function_attribute_inlinable_p): Moved from integrate.c to here.
20471 * cfgexpand.c: Don't include integrate.h.
20472 * except.c: Likewise.
20473 * langhooks.c: Likewise.
20474 * passes.c: Likewise.
20475 * toplev.c: Likewise.
20476 * config/frv/frv.c: Likewise.
20477 * config/pa/pa.c: Likewise.
20478 * config/spu/spu.c: Likewise.
20479 * config/epiphany/epiphany.c: Likewise.
20480 * config/mep/mep.c: Likewise.
20481 * config/score/score.c: Likewise.
20482 * config/picochip/picochip.c: Likewise.
20483 * config/sh/sh.c: Likewise.
20484 * config/alpha/alpha.c: Likewise.
20485 * config/microblaze/microblaze.c: Likewise.
20486 * config/mips/mips.c: Likewise.
20487 * config/v850/v850.c: Likewise.
20488 * config/mmix/mmix.c: Likewise.
20489 * config/bfin/bfin.c: Likewise.
20490 * config/arm/arm.c: Likewise.
20491 * config/s390/s390.c: Likewise.
20492 * config/m32r/m32r.c: Likewise.
20493 * config/rs6000/rs6000.c: Likewise.
20494 * config/c6x/c6x.c: Include function.h instead of integrate.h.
20495 * config/tilegx/tilegx.c: Likewise.
20496 * config/tilepro/tilepro.c: Likewise.
20498 2012-05-29 Georg-Johann Lay <avr@gjlay.de>
20500 * config/avr/t-avr (s-avr-mmcu-texi): Call
20501 gen-avr-mmcu-texi$(build_exeext) via ./ and don't assume . is in PATH.
20503 2012-05-29 Michael Matz <matz@suse.de>
20505 * rtl.h (assign_stack_temp, assign_stack_temp_for_type,
20506 assign_temp): Remove 'keep' argument.
20507 (mark_temp_addr_taken): Remove prototype.
20508 * tree.h (expand_decl): Remove prototype.
20509 * function.c (struct temp_slot): Remove addr_taken and keep member.
20510 (assign_stack_temp_for_type) Don't initialize above, remove
20512 (assign_stack_temp, assign_temp): Remove keep argument.
20513 (mark_temp_addr_taken): Remove.
20514 (preserve_temp_slots): Remove handling of addr_taken and keep members.
20515 (free_temp_slots): Ditto.
20516 * expr.c (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Remove
20518 * stmt.c (expand_asm_operands): Remove dead code.
20519 (expand_decl): Remove.
20520 * c-decl.c (finish_struct): Don't call expand_decl.
20521 * builtins.c (expand_builtin_cexpi): Adjust calls to assign_temp
20522 and assign_stack_temp.
20523 * calls.c (save_fixed_argument_area, initialize_argument_information,
20524 expand_call, emit_library_call_value_1, store_one_arg): Ditto.
20525 * expmed.c (extract_bit_field_1): Ditto.
20526 * expr.c (emit_group_load_1, emit_group_store,
20527 copy_blkmode_from_reg, emit_push_insn, expand_assignment,
20528 store_field, expand_constructor, expand_cond_expr_using_cmove,
20529 expand_expr_real_2, expand_expr_real_1): Ditto.
20530 * stmt.c (expand_asm_operands, expand_return): Ditto.
20532 * function.c (pop_temp_slots): Call free_temp_slots.
20533 * calls.c (store_one_arg): Don't call preserve_temp_slots or
20535 * expr.c (expand_assignment): Don't call free_temp_slots.
20537 * config/arm/arm.c (neon_expand_vector_init): Ditto.
20538 * config/i386/i386.c (ix86_expand_vector_set): Ditto.
20539 (ix86_expand_vector_extract): Ditto.
20540 * config/ia64/ia64.c (spill_xfmode_rfmode_operand,
20541 ia64_expand_movxf_movrf): Ditto.
20542 * config/mips/mips.c (mips_expand_vi_general): Ditto.
20543 * config/mmix/mmix.md (floatdisf2, floatunsdisf2, truncdfsf2,
20544 extendsfdf2): Ditto.
20545 * config/rs6000/rs6000.c (rs6000_expand_vector_init,
20546 rs6000_expand_vector_set, rs6000_expand_vector_extract,
20547 rs6000_allocate_stack_temp): Ditto.
20548 * config/rs6000/rs6000.md (fix_trunctfsi2_fprs): Ditto.
20549 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
20550 sparc_emit_float_lib_cmp, sparc_emit_float_lib_cmp,
20551 sparc_expand_vector_init): Ditto.
20553 2012-05-29 Michael Matz <matz@suse.de>
20555 * c-tree.h (c_expand_decl): Remove prototype.
20557 * expr.c (expand_expr_real_1 <normal_inner_ref>): Don't allocate
20559 (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Make unreachable.
20560 * gimple-fold.c (canonicalize_constructor_val): Canonicalize
20561 COMPOUND_LITERAL_EXPR.
20562 * function.c (expand_function_start): Don't call expand_decl,
20563 instead assert that we have RTL assigned.
20564 * tree-ssa-live.c (remove_unused_locals): Clear
20565 nonlocal_goto_save_area if its backing variable is removed.
20566 * stmt.c (expand_asm_operands): Remove handling of non-lvalues
20568 (expand_decl): Assert that this does nothing.
20569 * calls.c (expand_call): Don't call mark_temp_addr_taken.
20571 2012-05-29 Richard Guenther <rguenther@suse.de>
20573 PR tree-optimization/53516
20574 * tree-data-ref.c (stmt_with_adjacent_zero_store_dr_p): Reject
20576 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
20578 2012-05-29 Joseph Myers <joseph@codesourcery.com>
20580 * LANGUAGES: Fix typos.
20581 * Makefile.in: Fix typos.
20582 * alias.c: Fix typos.
20583 * auto-inc-dec.c: Fix typos.
20584 * bb-reorder.c: Fix typos.
20585 * cfgcleanup.c: Fix typos.
20586 * cgraph.c: Fix typos.
20587 * cgraph.h: Fix typos.
20588 * cgraphunit.c: Fix typos.
20589 * collect2-aix.h: Fix typos.
20590 * collect2.c: Fix typos.
20591 * compare-elim.c: Fix typos.
20592 * config/alpha/vms.h: Fix typos.
20593 * config/arm/README-interworking: Fix typos.
20594 * config/arm/arm.c: Fix typos.
20595 * config/arm/iterators.md: Fix typos.
20596 * config/arm/vxworks.h: Fix typos.
20597 * config/avr/avr.c: Fix typos.
20598 * config/avr/avr.h: Fix typos.
20599 * config/avr/avr.md: Fix typos.
20600 * config/avr/builtins.def: Fix typos.
20601 * config/c6x/c6x.c: Fix typos.
20602 * config/cr16/cr16.c: Fix typos.
20603 * config/cr16/cr16.md: Fix typos.
20604 * config/cris/cris.md: Fix typos.
20605 * config/darwin.c: Fix typos.
20606 * config/darwin.opt: Fix typos.
20607 * config/i386/i386-c.c: Fix typos.
20608 * config/i386/i386.c: Fix typos.
20609 * config/ia64/ia64.c: Fix typos.
20610 * config/m68k/cf.md: Fix typos.
20611 * config/mep/mep.c: Fix typos.
20612 * config/microblaze/microblaze.c: Fix typos.
20613 * config/microblaze/microblaze.h: Fix typos.
20614 * config/mn10300/mn10300.c: Fix typos.
20615 * config/mn10300/mn10300.md: Fix typos.
20616 * config/pa/pa.c: Fix typos.
20617 * config/picochip/picochip.h: Fix typos.
20618 * config/rs6000/a2.md: Fix typos.
20619 * config/rs6000/rs6000.c: Fix typos.
20620 * config/rs6000/vector.md: Fix typos.
20621 * config/rx/rx.md: Fix typos.
20622 * config/rx/rx.opt: Fix typos.
20623 * config/s390/2097.md: Fix typos.
20624 * config/s390/s390.c: Fix typos.
20625 * config/s390/s390.h: Fix typos.
20626 * config/sh/sh.c: Fix typos.
20627 * config/sh/sh.md: Fix typos.
20628 * config/sparc/sync.md: Fix typos.
20629 * config/spu/spu.c: Fix typos.
20630 * config/spu/spu.md: Fix typos.
20631 * config/vms/vms.c: Fix typos.
20632 * config/vxworks-dummy.h: Fix typos.
20633 * config/vxworks.h: Fix typos.
20634 * cselib.c: Fix typos.
20635 * df-scan.c: Fix typos.
20637 * doc/extend.texi: Fix typos.
20638 * doc/install.texi: Fix typos.
20639 * doc/invoke.texi: Fix typos.
20640 * doc/md.texi: Fix typos.
20641 * doc/plugins.texi: Fix typos.
20642 * doc/rtl.texi: Fix typos.
20643 * dse.c: Fix typos.
20644 * dwarf2asm.c: Fix typos.
20645 * dwarf2out.c: Fix typos.
20646 * except.h: Fix typos.
20647 * expr.c: Fix typos.
20648 * fold-const.c: Fix typos.
20649 * gcc.c: Fix typos.
20650 * gcse.c: Fix typos.
20651 * genautomata.c: Fix typos.
20652 * gengtype-state.c: Fix typos.
20653 * gengtype.c: Fix typos.
20654 * genhooks.c: Fix typos.
20655 * gimple-fold.c: Fix typos.
20656 * gimple-pretty-print.c: Fix typos.
20657 * gimple.c: Fix typos.
20658 * gimple.h: Fix typos.
20659 * gimplify.c: Fix typos.
20660 * graphite-interchange.c: Fix typos.
20661 * graphite-sese-to-poly.c: Fix typos.
20662 * ifcvt.c: Fix typos.
20663 * input.c: Fix typos.
20664 * ipa-cp.c: Fix typos.
20665 * ipa-inline-analysis.c: Fix typos.
20666 * ipa-inline-transform.c: Fix typos.
20667 * ipa-inline.c: Fix typos.
20668 * ipa-pure-const.c: Fix typos.
20669 * ipa-ref.h: Fix typos.
20670 * ipa-reference.c: Fix typos.
20671 * ipa-utils.c: Fix typos.
20672 * ipa.c: Fix typos.
20673 * ira-emit.c: Fix typos.
20674 * ira-lives.c: Fix typos.
20675 * lto-streamer.c: Fix typos.
20676 * lto-streamer.h: Fix typos.
20677 * lto-wrapper.c: Fix typos.
20678 * mcf.c: Fix typos.
20679 * mode-switching.c: Fix typos.
20680 * modulo-sched.c: Fix typos.
20681 * plugin.c: Fix typos.
20682 * postreload.c: Fix typos.
20683 * sched-deps.c: Fix typos.
20684 * sel-sched-ir.c: Fix typos.
20685 * sel-sched-ir.h: Fix typos.
20686 * sel-sched.c: Fix typos.
20687 * sese.c: Fix typos.
20688 * stor-layout.c: Fix typos.
20689 * target-hooks-macros.h: Fix typos.
20690 * target.def: Fix typos.
20691 * trans-mem.c: Fix typos.
20692 * tree-eh.c: Fix typos.
20693 * tree-predcom.c: Fix typos.
20694 * tree-sra.c: Fix typos.
20695 * tree-ssa-address.c: Fix typos.
20696 * tree-ssa-loop-ivopts.c: Fix typos.
20697 * tree-ssa-loop-niter.c: Fix typos.
20698 * tree-ssa-math-opts.c: Fix typos.
20699 * tree-ssa-pre.c: Fix typos.
20700 * tree-ssa-propagate.c: Fix typos.
20701 * tree-ssa-reassoc.c: Fix typos.
20702 * tree-ssa-sccvn.c: Fix typos.
20703 * tree-ssa-ter.c: Fix typos.
20704 * tree-ssa-uninit.c: Fix typos.
20705 * tree-ssanames.c: Fix typos.
20706 * tree-vect-generic.c: Fix typos.
20707 * tree-vect-slp.c: Fix typos.
20708 * tree.c: Fix typos.
20709 * tree.h: Fix typos.
20710 * varasm.c: Fix typos.
20711 * varpool.c: Fix typos.
20713 2012-05-29 Joseph Myers <joseph@codesourcery.com>
20715 * doc/include/texinfo.tex: Update to version 2012-05-16.16.
20717 2012-05-29 Richard Guenther <rguenther@suse.de>
20719 * tree-dfa.c (find_vars_r): Do not call add_referenced_vars
20721 (add_referenced_var_1): Re-organize. Assert we are not
20722 called for globals.
20723 (remove_referenced_var): Likewise.
20724 * varpool.c (add_new_static_var): Use create_tmp_var_raw.
20725 * tree-mudflap.c (execute_mudflap_function_ops): Do not
20726 call add_referenced_var on globals.
20727 * matrix-reorg.c (transform_access_sites): Likewise.
20729 2012-05-29 Steven Bosscher <steven@gcc.gnu.org>
20731 * alias.c (reg_known_value): Make this a VEC.
20732 (reg_known_equiv_p): Make this an sbitmap.
20733 (reg_known_value_size): Remove.
20734 (get_reg_known_value, set_reg_known_value, get_reg_known_equiv_p,
20735 set_reg_known_equiv_p): Update for reg_known_value and
20736 reg_known_value_size data structure change.
20737 (init_alias_analysis, end_alias_analysis): Likewise.
20739 2012-05-29 Jakub Jelinek <jakub@redhat.com>
20741 PR middle-end/53510
20742 * input.c (read_line): Use XRESIZEVEC instead of XNEWVEC
20743 to avoid leaking memory. No need to handle memory allocation
20744 failure. Double string_len on each reallocation instead of adding 2.
20745 * gcov.c (read_line): Likewise.
20747 2012-05-29 Hans-Peter Nilsson <hp@axis.com>
20749 * config/cris/cris.h (TARGET_HAS_BREAK, TARGET_TRAP_USING_BREAK8):
20751 * config/cris/cris.md ("trap"): Define, enabled for
20752 TARGET_TRAP_USING_BREAK8.
20753 * config/cris/cris.opt (mtrap-using-break8): New option.
20755 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
20758 * doc/invoke.texi: Document -Wmissing-braces not enabled by -Wall
20761 2012-05-28 Hans-Peter Nilsson <hp@axis.com>
20763 * doc/md.texi (stack_protect_test): Remove negation of branch to label.
20764 (Standard Names): Fix typos in documentation of atomic patterns.
20766 2012-05-27 Nathan Sidwell <nathan@acm.org>
20768 * tree.c (build_constructor): Propagate TREE_SIDE_EFFECTS.
20770 2012-05-26 Jason Merrill <jason@redhat.com>
20773 * c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning
20774 about array compound literals.
20776 2012-05-26 Eric Botcazou <ebotcazou@adacore.com>
20778 * cfgcleanup.c (try_optimize_cfg): Do not delete forwarder blocks
20779 if CLEANUP_NO_INSN_DEL.
20780 * cfgrtl.c (unique_locus_on_edge_between_p): New function extracted
20781 from cfg_layout_merge_blocks.
20782 (emit_nop_for_unique_locus_between): New function.
20783 (rtl_merge_blocks): Invoke emit_nop_for_unique_locus_between.
20784 (cfg_layout_merge_blocks): Likewise.
20786 2012-05-26 Dimitrios Apostolou <jimis@gmx.net>
20787 Paolo Bonzini <bonzini@gnu.org>
20789 * df-scan.c (df_def_record_1): Assert a parallel must contain an
20790 EXPR_LIST at this point. Receive the LOC and move its extraction...
20791 (df_defs_record): ... here. Change if-else to a switch statement.
20792 (df_find_hard_reg_defs, df_find_hard_reg_defs_1): New.
20793 (df_get_call_refs): Changed defs_generated from bitmap to HARD_REG_SET
20794 and compute it from df_find_hard_reg_defs(). Record DF_REF_BASE
20795 DEFs in REGNO order. Use HARD_REG_SET instead of bitmap for
20796 regs_invalidated_by_call.
20797 (df_insn_refs_collect): Record DF_REF_REGULAR DEFs after
20798 df_get_call_refs().
20800 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
20803 * tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL.
20804 * tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR.
20806 2012-05-25 Michael Meissner <meissner@linux.vnet.ibm.com>
20808 * config/rs6000/t-linux64: Delete the 32-bit multilib that uses
20809 software floating point emulation. No longer build the multilibs
20810 with -mstrict-align.
20812 2012-05-25 Aldy Hernandez <aldyh@redhat.com>
20814 PR middle-end/53008
20815 * trans-mem.c (ipa_tm_create_version_alias): Output new_node if
20816 accessed indirectly.
20817 (ipa_tm_create_version): Same.
20819 2012-05-25 Uros Bizjak <ubizjak@gmail.com>
20822 * config/i386/i386.c (ix86_print_operand) <case 'O'>: Print '.' here.
20823 <case 'C', case 'c', case 'F', case 'f'>: Print '.' only for C and c.
20825 2012-05-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
20828 * config/i386/i386.c (ix86_expand_vec_perm): Use correct op.
20829 (ix86_expand_vec_perm): Use int mode instead of float.
20830 (expand_vec_perm_pshufb): Remove handling of useseless type
20833 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
20836 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and
20837 gnu_ld variables to yes.
20838 * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion.
20839 (HAVE_GNU_AS): Likewise.
20840 * config.in: Regenerate.
20841 * configure: Likewise.
20843 2012-05-25 Tristan Gingold <gingold@adacore.com>
20845 * config/i386/i386.c (struct ix86_frame): Remove unused frame field.
20846 (ix86_compute_frame_layout): Fix type of stack_alignment_needed
20847 and preferred_alignment.
20849 2012-05-25 Tristan Gingold <gingold@adacore.com>
20851 * common/config/ia64/ia64-common.c (ia64_except_unwind_info): Fix typo.
20853 2012-05-25 Thomas Schwinge <thomas@codesourcery.com>
20855 * fold-const.c (optimize_bit_field_compare): Abort early in the strict
20856 volatile bitfields case.
20858 2012-05-24 Pat Haugen <pthaugen@us.ibm.com>
20860 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
20861 rs6000_sched_costly_dep default to true_store_to_load_dep_costly.
20862 (adjacent_mem_locations): Move some code to and call...
20863 (get_memref_parts): ...new function.
20864 (mem_locations_overlap): New function.
20865 (rs6000_adjust_priority): Adjust calls to is_load_insn/is_store_insn.
20866 (is_mem_ref): Rename to...
20867 (find_mem_ref): ...this. Return MEM rtx.
20868 (get_store_dest): Remove function.
20869 (is_load_insn1, is_load_insn, is_store_insn1, is_store_insn): Add
20870 new parameter and adjust calls.
20871 (rs6000_is_costly_dependence): Update calls for extra arg. Make sure
20872 mem refs overlap for true_store_to_load_dep_costly.
20873 (rs6000_sched_reorder2): Update calls for extra arg. Adjust args
20874 passed to adjacent_mem_locations.
20875 (is_costly_group): Walk resolved dependency list.
20876 (force_new_group): Emit group ending nop for Power6/Power7.
20877 * config/rs6000/rs6000.md (UNSPEC_GRP_END_NOP): New enum value.
20878 (group_ending_nop): New define_insn.
20880 2012-05-24 Dodji Seketeli <dodji@redhat.com>
20882 Make unwound macro expansion trace less redundant
20883 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Don't print
20884 context of macro definition in the trace, when it's redundant.
20887 2012-05-24 Richard Guenther <rguenther@suse.de>
20889 PR middle-end/53460
20890 * tree-profile.c (tree_profiling): Cleanup the CFG if
20891 execute_fixup_cfg requests it.
20893 2012-05-24 Richard Guenther <rguenther@suse.de>
20895 * tree-flow.h (create_var_ann): Remove.
20896 * tree-dfa.c (create_var_ann): Remove and inline into its
20898 (add_referenced_var_1): ... here.
20899 * varpool.c (add_new_static_var): Do not call add_referenced_var
20901 * gimple-fold.c (canonicalize_constructor_val): Likewise.
20902 * tree-switch-conversion.c (build_one_array): Likewise.
20903 * tree-profile.c (gimple_gen_ic_profiler): Likewise.
20904 * tree-flow-inline.h (gimple_referenced_vars): Guard against
20906 * tree-inline.c (remap_gimple_op_r): Likewise. Check
20907 gimple_referenced_vars instead of gimple_in_ssa_p.
20908 (copy_tree_body_r): Likewise.
20909 (setup_one_parameter): Likewise.
20910 (declare_return_variable): Likewise.
20911 (tree_function_versioning): Likewise.
20913 2012-05-24 Jakub Jelinek <jakub@redhat.com>
20915 PR tree-optimization/53465
20916 * tree-vrp.c (extract_range_from_cond_expr): First copy_value_range
20917 vr0 into *vr, then vrp_meet that.
20918 (vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't
20919 have any equivalences.
20920 (vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the
20923 2012-05-24 Jim MacArthur <jim.macarthur@arm.com>
20925 * recog.c (reg_fits_class_p): Check both regno and regno + offset are
20927 * regs.h (in_hard_reg_set_p): Assert that regno is a hard register and
20928 check end_regno - 1 is a hard register.
20930 2012-05-24 Richard Guenther <rguenther@suse.de>
20932 * varpool.c (add_new_static_var): Remove call to create_var_ann.
20933 * tree-ssa-operands.c (create_vop_var): Likewise.
20935 2012-05-24 Richard Guenther <rguenther@suse.de>
20938 * tree-ssa-live.c (remove_unused_scope_block_p): Properly
20940 (remove_unused_locals): Pass global_unused_vars to
20941 remove_unused_scope_block_p. Restore code walking all
20942 referenced vars and pruning them.
20944 2012-05-23 Jan Hubicka <jh@suse.cz>
20946 * tree.h (alias_diag_flags): Remove.
20947 (alias_pair): Remove emitted_diags.
20948 (finish_aliases_1, finish_aliases_2, remove_unreachable_alias_pairs,
20949 symbol_alias_set_t, symbol_alias_set_destroy,
20950 symbol_alias_set_contains, propagate_aliases_backward): Remove.
20951 * toplev.c (compile_file): Do not call finish_aliases_2
20952 * cgraphunit.c (cgraph_process_new_functions): Do not call
20954 (handle_alias_pairs): Output diagnostics about aliases to externals.
20955 (assemble_thunks_and_aliases): Use do_assemble_alias.
20956 (output_weakrefs): Likewise.
20957 (finalize_compilation_unit): Do not call finish_aliases_1.
20958 * ipa.c (symtab_remove_unreachable_nodes): De not call
20959 remove_unreachable_alias_pairs.
20960 * varasm.c (do_assemble_alias): Export.
20961 (symbol_alias_set_create, symbol_alias_set_destroy,
20962 symbol_alias_set_contains, symbol_alias_set_insert,
20963 propagate_aliases_forward, propagate_aliases_backward,
20964 propagate_aliases_backward, trivially_visible_alias,
20965 trivially_defined_alias, remove_unreachable_alias_pairs,
20966 finish_aliases_1, finish_aliases_2, assemble_alias): Remove.
20967 * output.h (do_assemble_alias): Declare.
20968 * varpool.c (varpool_remove_unreferenced_decls): Do not call
20971 2012-05-23 Martin Jambor <mjambor@suse.cz>
20973 * ipa-inline-analysis.c (inline_merge_summary): Free operand_map.
20975 2012-05-23 Eric Botcazou <ebotcazou@adacore.com>
20977 * gimple.c (gimple_types_compatible_p_1) <ARRAY_TYPE>: Remove bogus
20979 (gimple_canonical_types_compatible_p) <ARRAY_TYPE>: Likewise.
20980 (iterative_hash_gimple_type): Adjust comment.
20981 (iterative_hash_canonical_type): Likewise. Hash the bounds of the
20982 domain for an array type instead of the domain type itself.
20984 2012-05-23 Richard Guenther <rguenther@suse.de>
20986 PR tree-optimization/53438
20987 * tree-sra.c (analyze_access_subtree): Correct bitfield exclusion.
20989 2012-05-23 Georg-Johann Lay <avr@gjlay.de>
20992 * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
20993 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
20996 2012-05-23 Richard Guenther <rguenther@suse.de>
20998 * tree-dfa.c (add_referenced_var_1): Do not add global vars.
20999 * tree-ssa-live.c (mark_all_vars_used_1): Handle global vars
21000 via the global_unused_vars bitmap.
21001 (remove_unused_locals): Handle global vars in local-decls via
21002 a global_unused_vars bitmap instead of the used flag in the
21003 var annotation. Simplify global variable handling and removal.
21005 2012-05-22 Jan Hubicka <jh@suse.cz>
21007 PR middle-end/53426
21008 * tree-ssa-structalias.c (create_variable_info_for): Skip constructors
21009 from other partitions.
21011 2012-05-22 Jan Hubicka <jh@suse.cz>
21013 PR middle-end/53161
21014 * symtab.c (symtab_register_node): Fix ordering issue.
21016 2012-05-22 Steven Drake <sbd@NetBSD.org>
21018 * gcc.c (do_spec_1): Add %M spec token to output multilib_os_dir.
21020 2012-05-22 David Edelsohn <dje.gcc@gmail.com>
21022 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
21023 Use strip_name_encoding target hook.
21025 2012-05-22 Richard Guenther <rguenther@suse.de>
21027 * tree.h (VAR_DECL_IS_VIRTUAL_OPERAND): New.
21028 (init_function_for_compilation): Remove.
21029 * tree-dfa.c (find_vars_r): Take struct function argument.
21030 (find_referenced_vars_in): Adjust.
21031 * tree-ssa-operands.c (clobber_stats): Remove.
21032 (create_vop_var): Take struct function argument. Mark
21033 virtual operand with VAR_DECL_IS_VIRTUAL_OPERAND.
21034 (init_ssa_operands): Take struct function argument.
21035 (fini_ssa_operands): Do not dump dead stats.
21036 * tree-ssa-operands.h (init_ssa_operands): Take struct function
21038 * cgraphunit.c (init_lowered_empty_function): Adjust.
21039 * lto-streamer-in.c (input_cfg): Likewise.
21040 * tree-inline.c (initialize_cfun): Likewise.
21041 * tree-into-ssa.c (rewrite_into_ssa): Likewise.
21042 * omp-low.c (expand_omp_taskreg): Likewise. Avoid switching cfun.
21043 * gimple.c (is_gimple_reg): Optimize the SSA_NAME case,
21044 virtual operands are not registers.
21046 2012-05-22 Richard Guenther <rguenther@suse.de>
21048 * tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous commit.
21050 2012-05-22 Richard Guenther <rguenther@suse.de>
21052 PR middle-end/53437
21053 * tree-inline.c (setup_one_parameter): Create a dummy init
21054 statement for unused parameters when not optimizing.
21056 2012-05-22 Richard Guenther <rguenther@suse.de>
21058 * tree-flow.h (add_referenced_var_1): Declare.
21059 (add_referenced_var): Define.
21060 * tree-dfa.c (referenced_var_check_and_insert): Avoid one hash lookup.
21061 (add_referenced_var): Rename to ...
21062 (add_referenced_var_1): ... this. Take struct function argument.
21064 2012-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21067 * config/arm/arm-protos.h (arm_validize_comparison): Declare.
21068 * config/arm/arm.c (arm_validize_comparison): Define.
21069 * config/arm/arm.md ("cbranchsi4"): Cleanup expansion and use
21070 arm_validize_comparison.
21071 ("cbranchdi4"): Likewise.
21072 ("cstoredi4"): Likewise.
21073 ("movsicc"): Likewise.
21074 ("movsfcc"): Likewise.
21075 ("movdfcc"): Likewise.
21077 2012-05-22 Dimitrios Apostolou <jimis@gmx.net>
21079 * df-scan.c (df_scan_alloc): Round up allocation pools size, reduce
21080 the mw_reg_pool size.
21082 2012-05-22 Paolo Bonzini <bonzini@gnu.org>
21084 PR tree-optimization/53336
21085 * tree-cfg.c (verify_gimple_assign_unary): Allow conversion from
21086 non-integer integral types to offset type and vice versa.
21088 2012-05-22 Alan Modra <amodra@gmail.com>
21090 * config/rs6000/aix.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
21091 * config/rs6000/darwin.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
21092 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE,
21093 V_SAVE_INLINE): Delete.
21094 * config/rs6000/rs6000.c (V_SAVE_INLINE): Delete.
21095 (rs6000_savres_strategy): Reimplement GP/FP/V_SAVE_INLINE logic.
21096 For ELF targets, use out-of-line restores for -Os and any number
21097 of regs if the restore exits, and out-of-line gp save for two or
21098 more regs. Use save_reg_p to test for holes in reg restore set.
21099 Replace "#if" with "if".
21101 2012-05-22 Alan Modra <amodra@gmail.com>
21103 * config/rs6000/rs6000.c (save_reg_p): New function.
21104 (first_reg_to_save, first_fp_reg_to_save): Use it here.
21105 (first_altivec_reg_to_save, restore_saved_cr): Likewise.
21106 (emit_frame_save): Use gen_frame_store.
21107 (gen_frame_mem_offset): Correct SPE condition requiring reg+reg.
21108 (rs6000_emit_prologue): Use save_reg_p. Use gen_frame_store for
21110 (rs6000_emit_epilogue): Use save_reg_p. Use gen_frame_load for
21111 vrsave, toc, gp and fp restores.
21113 2012-05-22 Alan Modra <amodra@gmail.com>
21115 * config/rs6000/rs6000.c: Delete unnecessary forward declarations.
21116 Move those with ATTRIBUTE_UNUSED to immediately before definitions.
21117 Move function pointer variables after forward declarations.
21118 (rs6000_builtin_support_vector_misalignment): Make static.
21119 (rs6000_legitimate_address_p, rs6000_gimplify_va_arg): Likewise.
21120 (rs6000_function_value, rs6000_can_eliminate): Likewise.
21122 2012-05-21 Bernd Schmidt <bernds@codesourcery.com>
21124 PR rtl-optimization/53373
21125 * caller-save.c (save_call_clobbered_regs): Look into a possible
21126 PARALLEL manually rather than using single_set on a call insn.
21128 2012-05-21 Jakub Jelinek <jakub@redhat.com>
21130 PR tree-optimization/53436
21131 * omp-low.c (omp_build_component_ref): New function.
21132 (build_receiver_ref, build_sender_ref, create_task_copyfn): Use it.
21134 2012-05-21 Uros Bizjak <ubizjak@gmail.com>
21136 * config/i386/i386.c (put_condition_code): Change "reverse" and "fp"
21138 (ix86_print_operand) <case 'O'>: Look at mode size of the operand.
21139 Do not print '.' here. Output operand lossage error for unhandled
21144 <case 'z'>: Hardcode "code" argument into error strings.
21146 <case 'D'>: Merge AVX and non-AVX codes.
21147 <case 'C', case 'c', case 'F', case 'f'>: Merge. Fix error string.
21148 Update call to put_condition_code.
21150 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
21152 * config/m68k/m68k.md (*clzsi2_cf): Renamed from clzsi2. Call
21154 (clzsi2): New expander.
21155 (*clzsi2_68k): New insn.
21156 * config/m68k/m68k.h: Update comment about CLZ_DEFINED_VALUE_AT_ZERO.
21158 2012-05-21 Aldy Hernandez <aldyh@redhat.com>
21160 * gimple.h (gimple_set_in_transaction): Remove.
21161 (gimple_in_transaction): Look in BB instead.
21162 (gimple_statement_base): Remove in_transaction field.
21163 * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION.
21164 * trans-mem.c (compute_transaction_bits): Place transaction bit
21165 information into basic blocks.
21167 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
21169 * expr.c (get_def_for_expr_class): Define only if
21170 HAVE_conditional_move.
21171 (convert_tree_comp_to_rtx): Likewise.
21173 2012-05-21 Uros Bizjak <ubizjak@gmail.com>
21176 * config/i386/i386.md (ffs<mode>2): Generate CCCmode compare
21178 (ffssi2_no_cmove): Ditto.
21179 (*ffs<mode>_1): Remove insn pattern.
21180 (*tzcnt<mode>_1): New insn pattern.
21181 (*bsf<mode>1): Ditto.
21183 2012-05-21 Richard Guenther <rguenther@suse.de>
21185 * tree-dfa.c (add_referenced_var): Do not walk DECL_INITIAL for
21186 more referenced vars.
21187 * tree-ssa-live.c (mark_all_vars_used_1): Only set the used
21188 flag on variables that have a var-annotation.
21190 2012-05-21 Joseph Myers <joseph@codesourcery.com>
21193 * c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
21194 from folded operands before wrapping another around the
21195 conditional expression.
21197 2012-05-21 Jakub Jelinek <jakub@redhat.com>
21199 PR tree-optimization/53366
21200 * tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut
21201 tests if complex_numbers == 2, but there are non-complex number loads
21204 PR tree-optimization/53409
21205 * tree-vect-loop.c (vect_analyze_loop_operations): Don't check
21206 vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop.
21208 PR tree-optimization/53410
21209 * fold-const.c (fold_binary_loc): Use build_zero_cst (type)
21210 instead of build_int_cst (type, 0) where vector types might be
21211 involved. Instead of build_int_cst (type, 1) convert the original
21212 integer_onep argument to the desired type.
21214 2012-05-21 Michael Matz <matz@suse.de>
21216 * genattrtab.c (attr_rtx_cost): Move earlier, start with cost being 1.
21217 (simplify_test_exp): Handle one more case of distributive law,
21218 decrease cost threshold.
21219 (tests_attr_p, get_attr_order): New functions.
21220 (optimize_attrs): Use topological order, inline only cheap values.
21221 (write_attr_set): Reset our_known_true after some time.
21223 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
21226 * config/i386/i386.c (type_natural_mode): Warn passing SSE
21227 vector argument without SSE enabled changes the ABI.
21229 2012-05-21 Richard Guenther <rguenther@suse.de>
21231 PR tree-optimization/53408
21232 * tree-vect-loop.c (vectorizable_induction): Properly check
21233 the restriction that we cannot handle induction results from
21234 the inner loop outside of the outer loop.
21236 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
21239 * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ...
21240 (UNSPECV_RDRAND): This.
21241 (rdrand<mode>_1): Updated.
21243 2012-05-21 Richard Guenther <rguenther@suse.de>
21245 * tree-loop-distribution.c (can_generate_builtin): Reject
21248 2012-05-21 Chung-Lin Tang <cltang@codesourcery.com>
21250 * Makefile.in (options.c): Add options.h to included header
21251 files, before tm.h.
21253 2012-05-21 Razya Ladelsky <razya@il.ibm.com>
21255 * tree-parloops.c : Add myself to contributors, update
21256 TODO list, add link to wiki.
21258 2012-05-21 Alan Modra <amodra@gmail.com>
21260 * config/rs6000/predicates.md (input_operand): Don't match
21261 constant pool addresses. Remove label_ref, high and plus from
21262 match_code list. Remove redundant CONSTANT_P test.
21263 (splat_input_operand): Similarly update match_code list.
21264 (small_toc_ref): New predicate.
21265 * config/rs6000/rs6000-protos.h (toc_relative_expr_p): Update prototype.
21266 * config/rs6000/rs6000.c (tocrel_base, tocrel_offset): Make const.
21267 (legitimate_constant_pool_address_p): Move TARGET_TOC test and
21268 register checks to..
21269 (toc_relative_expr_p): ..here. Add "strict" param. Match new rtl
21270 generated by create_TOC_reference.
21271 (rs6000_legitimize_address): Update cerate_TOC_reference call.
21272 (rs6000_delegitimize_address): Handle new rtl for toc refs.
21273 (rs6000_cannot_force_const_mem, rs6000_find_base_term): Likewise.
21274 (use_toc_relative_ref): New function, split out from..
21275 (rs6000_emit_move): ..here. Remove redundant tests. Update
21276 create_TOC_reference calls.
21277 (rs6000_legitimize_reload_address): Formatting. Handle splitting
21278 of medium/large model toc addresses. Use use_toc_relative_ref.
21279 (print_operand): Formatting, style. Adjust for toc changes.
21280 (print_operand_address): Likewise.
21281 (rs6000_output_addr_const_extra): Likewise.
21282 (create_TOC_reference): Put TOC_REGISTER in UNSPEC_TOCREL rather
21283 than a PLUS. Use this formulation for both high and low part
21284 of -mcmodel=medium/large toc reference too. Before reload,
21285 always use the small model formulation.
21286 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Similarly avoid
21287 a PLUS in high part of addresses here.
21288 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
21289 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
21290 (largetoc_high, largetoc_low): Move earlier. Cope when no
21291 base reg available.
21292 (largetoc_high_plus): New insn.
21293 (movsi_internal1, movsi_internal1_single, movsf_softfloat,
21294 movdi_mfpgpr, movdi_internal64): Don't handle 'R' constraint here..
21295 (tocref): ..instead do so here, new insn and split.
21297 2012-05-20 H.J. Lu <hongjiu.lu@intel.com>
21299 * config/i386/driver-i386.c (host_detect_local_cpu): Support
21300 RDRND, F16C and FSGSBASE.
21302 2012-05-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21304 PR rtl-optimzation/53373
21305 * config/pa/pa.md (call_symref_pic): Don't expose PIC register save in
21306 call pattern. Update split patterns.
21307 (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
21308 call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
21310 2012-05-20 Razya Ladelsky <razya@il.ibm.com>
21312 * tree-parloops.c (gen_parallel_loop): Change many_iterations_cond
21315 2012-05-18 Jan Hubicka <jh@suse.cz>
21317 * cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs
21318 (cgraph_process_new_functions): Process also aliases.
21319 * lto-streamer-out.c (struct sets): Remove.
21320 (trivally_defined_alias): Remove.
21321 (output_alias_pair_p): Remove.
21322 (output_unreferenced_globals): Remove.
21323 (produce_symtab); Do not handle alias pairs.
21324 (produce_asm_for_decls): Likewise.
21325 * lto-streamer-in.c (input_alias_pairs): Remove.
21326 (lto_read_body): Do not input alias pairs.
21327 (lto_input_constructors_and_inits): Remove.
21329 2012-05-18 Jan Hubicka <jh@suse.cz>
21331 * cgraphunit.c (handle_alias_pairs): Cleanup; handle all types of
21334 2012-05-18 Jan Hubicka <jh@suse.cz>
21336 * cgraphbuild.c (record_reference): Update.
21337 * lto-cgraph.c (lto_output_varpool_node): External vars
21338 are not in other partition even if they are not output
21339 in current partition.
21340 * gimple-fold.c (can_refer_decl_in_current_unit_p): Take FROM_DECL
21342 (canonicalize_constructor_val): Take FROM_DECL argument.
21343 (fold_ctor_reference, fold_string_cst_ctor_reference,
21344 fold_array_ctor_reference, fold_nonarray_ctor_reference,
21345 fold_ctor_reference): Likewise.
21346 (fold_const_aggregate_ref_1, gimple_get_virt_method_for_binfo): Update.
21347 * gimple.h (gimple_fold_builtin): Likewise.
21349 2012-05-18 Olivier Hainque <hainque@adacore.com>
21351 * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
21352 $(libsubdir) as libexecsubdir.
21354 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21356 * config/rs6000/rs6000.c (print_operand): Revise code that unsafely
21357 relied on signed overflow behavior.
21359 2012-05-18 Richard Guenther <rguenther@suse.de>
21361 PR tree-optimization/53346
21362 * tree-loop-distribution.c (ldist_gen): Make sure to apply
21363 builtin transform even when only a single partition with
21364 all reads/writes exists.
21366 2012-05-18 Richard Guenther <rguenther@suse.de>
21368 PR tree-optimization/53390
21369 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Ignore
21372 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21374 * tree-ssa-reassoc.c (bip_map): Remove decl.
21375 (completely_remove_stmt): Remove function.
21376 (remove_def_if_absorbed_call): Remove function.
21377 (remove_visited_stmt_chain): Remove __builtin_powi handling.
21378 (possibly_move_powi): Remove function.
21379 (rewrite_expr_tree): Remove calls to possibly_move_powi.
21380 (rewrite_expr_tree_parallel): Likewise.
21381 (attempt_builtin_powi): Build multiplies explicitly rather than
21382 relying on the ops vector and rank system.
21383 (transform_stmt_to_copy): New function.
21384 (transform_stmt_to_multiply): Likewise.
21385 (reassociate_bb): Handle leftover operations after __builtin_powi
21386 optimization; build a final multiply if necessary.
21388 2012-05-18 Jan Hubicka <jh@suse.cz>
21390 * cgraphunit.c (varpool_finalize_decl): Allow external decls.
21391 (mark_functions_to_output): Fix sanity check.
21392 * ipa.c (function_and_variable_visibility): Remove TREE_STATIC check.
21394 2012-05-18 Richard Guenther <rguenther@suse.de>
21396 * tree-flow.h (mark_symbols_for_renaming): Remove.
21397 * tree-dfa.c (mark_symbols_for_renaming): Likewise.
21398 * tree-inline.c (copy_edges_for_bb): Do not mark symbols for renaming.
21399 (copy_debug_stmt): Likewise.
21400 (expand_call_inline): Likewise.
21401 (declare_return_variable): Mark the return variable for renaming
21404 2012-05-18 Andrew Stubbs <ams@codesourcery.com>
21406 * config/arm/arm-protos.h (arm_emit_coreregs_64bit_shift): New
21408 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): New function.
21409 * config/arm/arm.md (ashldi3): Use arm_emit_coreregs_64bit_shift.
21410 (ashrdi3,lshrdi3): Likewise.
21411 (arm_cond_branch): Remove '*' to enable gen_arm_cond_branch.
21413 2012-05-18 Meador Inge <meadori@codesourcery.com>
21415 PR rtl-optimization/53352
21416 * cse.c (equiv_constant): Ignore paradoxical subregs.
21418 2012-05-17 Steven Bosscher <steven@gcc.gnu.org>
21420 PR rtl-optimization/53125
21421 * regstat.c (regstat_bb_compute_ri): Take new local_live_last_luid
21422 argument. Simplify calculation of REG_LIVE_LENGTH for regnos that
21423 die in the basic block. Correctly top off REG_FREQ and
21424 REG_FREQ_CALLS_CROSSED.
21426 (regstat_compute_ri): Allocate and free local_live_last_luid.
21428 (regstat_bb_compute_calls_crossed): Correctly top off
21429 REG_FREQ_CALLS_CROSSED.
21431 2012-05-17 Jan Hubicka <jh@suse.cz>
21433 * lto-symtab.c (lto_symtab_resolve_symbols): Preffer decl with
21434 constructor over decl without.
21435 * cgraph.c (cgraph_remove_node): Clear also body of unanalyzed nodes.
21436 * cgraph.h (varpool_can_remove_if_no_refs): Handle external correctly.
21437 * cgraphunit.c (process_function_and_variable_attributes): Finalize
21439 (mark_functions_to_output): Also accept bodies for functions with
21441 (output_in_order): Skip external vars.
21442 * lto-cgraph.c (lto_output_node): External functions are never in other
21444 (lto_output_varpool_node): Likewise.
21445 * lto-streamer-out.c (lto_write_tree): Always use error_mark_nodes for
21446 forgotten initializers.
21447 * ipa.c (process_references): Handle external vars.
21448 (symtab_remove_unreachable_nodes): Update to handle external vars.
21449 (varpool_externally_visible_p): External vars are externally visible.
21450 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
21451 * varpool.c (varpool_remove_node): Remove constructor.
21452 (decide_is_variable_needed): Handle externals.
21453 (varpool_remove_unreferenced_decls): Likewise.
21455 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
21457 * opts.c (common_handle_option): -pedantic-errors enables -Wpedantic.
21458 (enable_warning_as_error): Do not special case Wuninitialized.
21459 * optc-gen.awk: Add sanity checks.
21461 2012-05-17 Jan Hubicka <jh@suse.cz>
21463 * ipa-reference.c (is_proper_for_analysis): Do not check flags
21464 that might change as result of global optimization.
21465 (analyze_function): Do not check analyzed and externally_visible
21466 flags; be happy about address dereferences.
21467 (propagate): Prune all_module_statics so it really contains just
21468 statics; prune all the local summaries.
21469 (ipa_reference_write_optimization_summary): Simplify.
21471 2012-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
21473 * config/m68k/m68k-devices.def: Add 51ag, 51je, 51jf, 51jg, 51mm, 51qm.
21474 * config/m68k/m68k-tables.opt: Regenerated.
21475 * doc/invoke.texi (M680x0 Options): Document.
21477 2012-05-16 Dave Boutcher <daveboutcher@gmail.com>
21478 Patrick Marlier <patrick.marlier@gmail.com>
21480 * trans-mem.c (ipa_tm_transform_clone): Transform functions with
21483 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
21485 * configure: Regenerated.
21487 2012-05-16 Andrew Pinski <apinski@cavium.com>
21489 * gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under
21492 2012-05-16 David S. Miller <davem@davemloft.net>
21494 * jump.c (delete_related_insns): If we remove a CALL, make sure
21495 we delete it's NOTE_INSN_CALL_ARG_LOCATION note too.
21497 2012-05-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21499 PR tree-optimization/53217
21500 * tree-ssa-reassoc.c (bip_map): New static variable.
21501 (possibly_move_powi): Move feeding multiplies with __builtin_powi call.
21502 (attempt_builtin_powi): Save feeding multiplies on a stack.
21503 (reassociate_bb): Create and destroy bip_map.
21505 2012-05-16 Olivier Hainque <hainque@adacore.com>
21507 * Makefile.in (install-no-fixedincludes): New target, former toplevel
21508 gcc-no-fixedincludes. Stash "include-fixed" in addition to "include".
21509 Add comments and improve stamp preservation across the whole sequence.
21510 (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h.
21512 2012-05-16 Richard Guenther <rguenther@suse.de>
21514 * tree-inline.c (insert_init_stmt): Do not call
21515 mark_symbols_for_renaming.
21516 (setup_one_parameter): Avoid initializing unused parameters.
21517 (declare_return_variable): Properly handle DECL_BY_REFERENCE
21518 return vars in SSA form.
21520 2012-05-16 Richard Guenther <rguenther@suse.de>
21522 * tree-flow.h (get_virtual_var): Remove.
21523 * tree-dfa.c (get_virtual_var): Likewise.
21525 2012-05-16 Richard Guenther <rguenther@suse.de>
21527 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
21528 Remove set-only bitmap of new names.
21529 (slpeel_tree_peel_loop_to_edge): Likewise. Do not set
21531 * tree-flow.h (ssa_names_to_replace): Remove.
21532 * tree-into-ssa.c (ssa_names_to_replace): Likewise.
21534 2012-05-16 Richard Guenther <rguenther@suse.de>
21536 PR tree-optimization/53364
21537 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
21538 detect a view-conversion of the decl.
21540 2012-05-16 Dodji Seketeli <dodji@redhat.com>
21542 PR preprocessor/7263
21543 * c-tree.h (enum c_declspec_word): Declare new enum.
21544 (struct c_declspecs::locations): New member.
21545 (declspecs_add_qual, declspecs_add_scspec)
21546 (declspecs_add_addrspace, declspecs_add_alignas): Take a new
21547 location parameter.
21548 * c-decl.c (build_null_declspecs): Initialize the new struct
21549 c_declspecs::locations member.
21550 (declspecs_add_addrspace): Take a location parameter for the
21551 address space. Store it onto declaration specifiers.
21552 (declspecs_add_qual): Likewise, take a location parameter for the
21554 (declspecs_add_type): Likewise, take a location parameter for the
21556 (declspecs_add_scspec): Likewise, take a location parameter for
21557 the storage class specifier.
21558 (declspecs_add_attrs): Likewise, take a location parameter for the
21560 (declspecs_add_alignas): Likewise, take a location parameter for
21562 (finish_declspecs): For diagnostics, use the location of the
21563 relevant declspec, instead of the global input_location.
21564 * c-parser.c (c_parser_parameter_declaration): Pass the precise
21565 virtual location of the declspec to the declspecs-setters.
21566 (c_parser_declspecs): Likewise. Avoid calling c_parser_peek_token
21569 2012-05-16 Igor Zamyatin <igor.zamyatin@intel.com>
21571 * configure.ac: Stack protector enabling for Android targets.
21572 * configure: Regenerate.
21574 2012-05-16 Richard Sandiford <r.sandiford@uk.ibm.com>
21576 * ira.c (pseudo_move_insn): Delete.
21577 (find_moveable_pseudos): Don't set it.
21578 (move_unallocated_pseudos): Use DF_REG_DEF_CHAIN to find
21579 the definitions of the original pseudo. Delete all of them.
21581 2012-05-16 Olivier Hainque <hainque@adacore.com>
21583 * config/rs6000/rs6000-opts.h (enum processor_type): Add
21585 * config/rs6000/rs6000-cpus.def: Reference it for cpu="8548".
21586 * config/rs6000/rs6000.md (cpu attribute definition): Add ppc8548.
21587 * config/rs6000/8540.md: indicate that the units/patterns apply to
21590 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
21591 default_cpu into implicit_cpu, conveying what --with-cpu was passed at
21592 configure time. Treat implicit_cpu as have_CPU. Pick defaults for SPE
21593 related flags, check that what is queried is supported by the selected
21594 configuration. Rework the single/double_float and MASK_STRING resets to
21595 hit for all the E500 cores (854x + E500MC variants). Select the ppc8540
21596 costs for PROCESSOR_PPC8548 as well.
21597 (rs6000_issue_rate): case CPU_PPC8548 together with CPU_PPC8540.
21598 (rs6000_use_sched_lookahead): Likewise, rewriting function as a case
21599 statement instead of a sequence of ifs.
21601 * config/rs6000/rs6000.h (TARGET_E500): Remove.
21602 (TARGET_NO_LWSYNC): Adjust accordingly.
21603 * config/rs6000/e500.h (TARGET_E500): Remove.
21604 (CHECK_E500_OPTIONS): Adjust accordingly.
21605 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove.
21606 (TARGET_DEFAULT): Reformat definition to match the one in linuxspe.h.
21607 * config/rs6000/linuxspe.h: Likewise.
21608 * config/rs6000/vxworks.h: Remove bogus TARGET_E500 overrides and
21609 superfluous comments.
21610 * config/rs6000/e500-double.h: Remove.
21612 * config.gcc (pick a default with_cpu): For powerpc*-*-*spe*,
21613 default to with_cpu=8548 if --enable-e500-double, and to 8540
21615 (set misc flags section): For powerpc*|rs6000*, remove inclusion
21616 of e500-double.h for --enable-e500-double.
21618 2012-05-16 Olivier Hainque <hainque@adacore.com>
21620 * Makefile.in (s-header-vars): Resort to -n instead of trailing
21621 -e d in sed invocation.
21623 2012-05-16 Hans-Peter Nilsson <hp@axis.com>
21625 * doc/tm.texi.in (Type Layout) <SIZE_TYPE>: Update reference to
21627 * doc/tm.texi: Regenerate.
21629 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
21631 * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P.
21633 2012-05-15 Jakub Jelinek <jakub@redhat.com>
21636 * config/i386/i386.md (*addqi_2 peephole with QImode addition): Check
21637 that operands[2] is either immediate, or q_regs_operand.
21639 2012-05-15 Richard Guenther <rguenther@suse.de>
21641 * cgraphunit.c (thunk_adjust): Use make_rename_temp.
21642 (assemble_thunk): Likewise. Manually rename and register
21643 function arguments.
21645 2012-05-15 Richard Guenther <rguenther@suse.de>
21647 PR tree-optimization/53355
21648 * tree-vrp.c (extract_range_from_binary_expr_1): Handle LSHIFT_EXPRs
21651 2012-05-15 Tristan Gingold <gingold@adacore.com>
21653 * tree-ssa-strlen.c (get_string_length): Convert lhs if needed.
21655 2012-05-15 Richard Guenther <rguenther@suse.de>
21657 * gimple.c (gimple_set_modified): Move ...
21658 * gimple.h (gimple_set_modified): ... here.
21660 2012-05-15 Tristan Gingold <gingold@adacore.com>
21662 * ira-color.c (move_spill_restore): Add a guard.
21664 2012-05-15 Tristan Gingold <gingold@adacore.com>
21666 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to
21669 2012-05-15 Eric Botcazou <ebotcazou@adacore.com>
21671 * gimplify.c (gimplify_init_constructor): Do a block move for very
21672 small objects as well.
21674 2012-05-15 Bernd Schmidt <bernds@codesourcery.com>
21676 * ira.c (find_moveable_pseudos): Skip registers whose
21677 DF_REG_EQ_USE_COUNT is nonzero.
21679 2012-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
21681 * doc/md.texi (fma): Define to only be applicable for single rounding.
21683 2012-05-14 Uros Bizjak <ubizjak@gmail.com>
21686 * config/i386/i386.c (ix86_expand_special_args_builtin): Always
21687 generate target register for "load" class builtins.
21690 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
21693 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
21694 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
21695 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
21696 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
21697 (<sse>_movu<ssemodesuffix>): New expander.
21698 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
21699 (avx_movdqu<avxmodesuffix>): New expander.
21700 (*sse2_movdqu): Rename from sse2_movdqu.
21701 (sse2_movdqu): New expander.
21703 2012-05-14 Marc Glisse <marc.glisse@inria.fr>
21706 * config/i386/i386.c (ix86_expand_vec_perm_const): Move code to ...
21707 (canonicalize_perm): ... new function.
21708 (expand_vec_perm_2vperm2f128_vshuf): New function.
21709 (ix86_expand_vec_perm_const_1): Call it.
21711 2012-05-14 Andrew Pinski <apinski@cavium.com>
21712 H.J. Lu <hongjiu.lu@intel.com>
21713 Jakub Jelinek <jakub@redhat.com>
21716 * config/i386/i386.md (xbegin_1): Use + in constraint and match_dup.
21719 2012-05-14 Jakub Jelinek <jakub@redhat.com>
21721 * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
21722 lineno 1 the same as lineno 0 before first start file directive.
21723 (optimize_macinfo_range): Likewise.
21725 * dwarf2out.c (have_macinfo): Define.
21726 (dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info
21727 attribute, don't force empty compilation unit and don't emit any
21728 .debug_macinfo/.debug_macro section if macinfo_table is empty.
21730 2012-05-14 Georg-Johann Lay <avr@gjlay.de>
21733 * config/avr/avr.c (avr_const_address_lo16): Remove.
21734 (avr_assemble_integer): Print ".byte lo8(x)",
21735 ".byte hi8(x)", ".byte hh8(x)" instead of emit an assembler
21736 .warning if 3-byte address is assembled.
21737 * doc/extend.texi (AVR Named Address Spaces): Document that
21738 binutils 2.23 is needed to assemble 3-byte addresses.
21740 2012-05-14 Richard Guenther <rguenther@suse.de>
21742 * tree-vect-data-refs.c (vect_setup_realignment): Remove
21743 call to mark_symbols_for_renaming.
21744 (vect_permute_load_chain): Likewise.
21745 * tree-vect-loop.c (vect_is_slp_reduction): Update stmt
21746 instead of calling mark_symbols_for_renaming.
21747 * tree-vect-stmts.c (read_vector_array): Remove call to
21748 mark_symbols_for_renaming.
21749 (write_vector_array): Likewise.
21750 (vectorizable_call): Likewise.
21751 (vectorizable_store): Likewise.
21752 (vectorizable_load): Likewise.
21753 * matrix-reorg.c (transform_allocation_sites): Likewise.
21754 * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
21755 (create_expression_by_pieces): Likewise.
21757 2012-05-14 Richard Guenther <rguenther@suse.de>
21759 * gimplify.c (gimple_regimplify_operands): Only mark the LHS
21760 of statements for renaming.
21761 (force_gimple_operand_1): Likewise, consistently for both
21762 calls to force_gimple_operand and force_gimple_operand_gsi.
21764 2012-05-14 Richard Guenther <rguenther@suse.de>
21766 * tree-dfa.c (make_rename_temp): Be forgiving if not in SSA form.
21767 * omp-low.c (expand_omp_taskreg): Properly conditionalize call
21769 (expand_omp_for): Likewise.
21770 (expand_omp_for_generic): Adjust conditional add to referenced vars.
21771 Use make_rename_temp for temporaries that should be rewritten into
21773 (expand_omp_for_static_nochunk): Likewise.
21774 (expand_omp_atomic_pipeline): Likewise.
21776 2012-05-14 Richard Guenther <rguenther@suse.de>
21778 PR tree-optimization/53331
21779 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Ignore
21781 * tree-vect-stmts.c (vect_model_load_cost): Handle strided loads.
21783 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
21786 * doc/options.texi: (LangEnabledBy): Document it.
21787 * optc-gen.awk: Handle LangEnabledBy.
21788 * opth-gen.awk: Generate declaration for lang-specific functions.
21789 * opt-read.awk: Record lang numbers.
21790 * opt-functions.awk (flag_set_p): Ignore the arguments of flags.
21791 (lang_sanitized_name): New.
21793 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
21795 * attribs.c (decl_attributes): Avoid emitting a warning if
21796 ATTR_FLAG_BUILT_IN.
21797 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Use lowercase for rtx
21798 codes. Document meaning of sets inside CALL_INSN_FUNCTION_USAGE.
21799 * builtin-attrs.def (DEF_ATTR_FOR_STRING): Define. Use it to
21800 define a string "1".
21801 (ATTR_RET1_NOTHROW_NONNULL_LEAF): New attr definition.
21802 * builtins.def (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET,
21803 BUILT_IN_STRCPY): Use it for these functions.
21804 * postreload.c (reload_combine): Deal with SETs inside
21805 CALL_INSN_FUNCTION_USAGE.
21806 * caller-save.c (setup_save_areas, save_call_clobbered_regs):
21807 Look for REG_RETURNED notes and use a cheap restore if possible.
21808 * ira-int.h (struct ira_allocno): New member cheap_calls_crossed_num.
21809 (ALLOCNO_CHEAP_CALLS_CROSSED_NUM): New macro.
21810 * ira-build.c (ira_create_allocno, create_cap_allocno,
21811 propagate_allocno_info, propagate_some_info_from_allocno,
21812 copy_info_to_removed_store_destination, ira_flattening): Handle it.
21813 * ira-lives.c (pseudo_regno_single_word_and_live_p,
21814 find_call_crossed_cheap_reg): New static functions.
21815 (process_bb_node_lives): Look for SETs in CALL_INSN_FUNCTION_USAGE,
21816 and set ALLOCNO_CHEAP_CALLS_CROSSED_NUM if possible. Also make
21817 a REG_RETURNED note in that case.
21818 * ira.c (setup_reg_renumber): Change assert to allow cases where
21819 allocnos only cross calls for which they are cheap to restore.
21820 * ira-costs.c (ira_tune_allocno_costs): Compare
21821 ALLOCNO_CALLS_CROSSED_NUM to ALLOCNO_CHEAP_CALLS_CROSSED_NUM rather
21823 * reg-notes.def (REG_RETURNED): New note.
21824 * cse.c (cse_insn): Likewise.
21825 * sched-deps.c (sched_analyze_insn): Likewise.
21826 * expr.c (init_block_move_fn): Set a "fn spec" attribute.
21827 * calls.c (decl_return_flags): New static function.
21828 (expand_call): Generate a SET in CALL_INSN_FUNCTION_USAGE for
21829 functions that return one of their arguments.
21830 * regcprop.c (struct kill_set_value_data): New.
21831 (kill_set_value): Interpret data as a pointer to such a struct.
21832 Do nothing if the caller wants the register to be ignored.
21833 (copyprop_hardreg_forward_1): Handle SETs in CALL_INSN_FUNCTION_USAGE.
21835 2012-05-14 Richard Guenther <rguenther@suse.de>
21837 PR tree-optimization/53340
21838 * tree-ssa-pre.c (op_valid_in_sets): Fix error in last commit.
21840 2012-05-14 Richard Guenther <rguenther@suse.de>
21842 * gimplify.c (gimplify_expr): Remove odd code.
21844 2012-05-14 Eric Botcazou <ebotcazou@adacore.com>
21846 * stor-layout.c (bit_from_pos): Distribute conversion to bitsizetype
21847 into a PLUS_EXPR byte offset.
21849 * tree-ssa-pre.c (can_value_number_call): Delete.
21850 (compute_avail): Skip all statements with side effects.
21851 <GIMPLE_CALL>: Skip calls to internal functions.
21853 2012-05-13 Steven Bosscher <steven@gcc.gnu.org>
21855 * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv".
21857 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
21859 * common.opt (Wtype-limits): Use EnabledBy.
21861 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
21863 * config/i386/i386.md (*pushtf): Enable for TARGET_SSE.
21864 (pushtf splitter): Ditto.
21866 (*movtf_internal): Ditto. Use V4SFmode for !TARGET_SSE2.
21867 (<code>tf2): Enable for TARGET_SSE.
21868 (*absnegtf2_sse): Ditto.
21869 (copysign<mode>3): Enable TFmode for TARGET_SSE.
21870 (copysign<mode>3_const): Ditto.
21871 (copysign<mode>3_var): Ditto.
21872 * config/i386/sse.md (<code>tf3): Enable for TARGET_SSE.
21873 (*andnottf3): Ditto. Use V4SFmode for !TARGET_SSE2.
21874 (*<code>tf3): Ditto.
21875 * config/i386/i386.c (struct builtin_description bdesc_args)
21876 <IX86_BUILTIN_FABSQ>: Enable for TARGET_SSE.
21877 <IX86_BUILTIN_COPYSIGNQ>: Ditto.
21878 (ix86_expand_builtin) <IX86_BUILTIN_FABSQ, IX86_BUILTIN_COPYSIGNQ>:
21879 Emit a normal call if SSE isn't available.
21881 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
21883 * config/i386/sse.md (<sse>_andnot<mode>3): Handle
21884 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
21885 (<code><mode>3): Ditto.
21886 (*andnot<mode>3): Ditto.
21887 (*andnottf3): Ditto.
21888 (*<code><mode>3): Ditto.
21889 (<code>tf3): Ditto.
21891 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
21893 * optc-gen.awk: Error instead of warning for conflicting help.
21895 2012-05-12 Jason Merrill <jason@redhat.com>
21898 * dwarf2out.c (build_local_stub): Prefer DW_AT_signature for
21901 2012-05-12 Eric Botcazou <ebotcazou@adacore.com>
21903 * function.c (requires_stack_frame_p): If the function can throw
21904 non-call exceptions, return true if the insn can throw internally.
21906 2012-05-12 Paolo Carlini <paolo.carlini@oracle.com>
21908 * doc/generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P.
21910 2012-05-12 Uros Bizjak <ubizjak@gmail.com>
21912 * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
21913 ORDERED and UNORDERED conditions.
21915 2012-05-11 Richard Guenther <rguenther@suse.de>
21917 * tree-flow.h (referenced_var_check_and_insert): Remove.
21918 (find_new_referenced_vars): Likewise.
21919 * tree-dfa.c (referenced_var_check_and_insert): Make static.
21920 (find_new_referenced_vars_1, find_new_referenced_vars): Remove.
21921 * tree-inline.c (copy_bb): Use find_referenced_vars_in
21922 instead of find_new_referenced_vars.
21923 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
21925 2012-05-11 Richard Guenther <rguenther@suse.de>
21927 * tree-pass.h (pass_rest_of_compilation,
21928 pass_all_optimizations, pass_postreload, pass_all_early_optimizations):
21930 * passes.c (pass_all_optimizations, pass_postreload,
21931 pass_all_early_optimizations): Make static.
21932 (pass_rest_of_compilation): Likewise. Make it an RTL_PASS.
21933 * tree-phinodes.c (init_phinodes, fini_phinodes): Remove.
21934 * tree-ssa.c (init_tree_ssa): Do not call init_phinodes.
21935 (delete_tree_ssa): Do not call fini_phinodes.
21936 * tree-flow.h (init_phinodes, fini_phinodes): Remove.
21938 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
21941 * doc/options.texi (EnabledBy): Document
21942 * opts.c: Include opts.h and options.h before tm.h.
21943 (finish_options): Do not handle some sub-options here...
21944 (common_handle_option): ... instead call common_handle_option_auto
21946 * optc-gen.awk: Handle EnabledBy.
21947 * opth-gen.awk: Declare common_handle_option_auto.
21948 * common.opt (Wuninitialized): Use EnabledBy. Delete Init.
21949 (Wmaybe-uninitialized): Likewise.
21950 (Wunused-but-set-variable): Likewise.
21951 (Wunused-function): Likewise.
21952 (Wunused-label): Likewise.
21953 (Wunused-value): Likewise.
21954 (Wunused-variable): Likewise.
21955 * opt-read.awk: Create opt_numbers array.
21957 2012-05-11 Richard Guenther <rguenther@suse.de>
21959 PR tree-optimization/53295
21960 * tree-data-ref.h (stride_of_unit_type_p): Handle non-constant
21962 * tree-data-ref.c (dr_analyze_innermost): Allow non-constant
21963 strides when analyzing data-references in a loop context.
21964 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Reject
21965 non-constant strides for now.
21966 (vect_enhance_data_refs_alignment): Ignore data references
21967 that are strided loads.
21968 (vect_analyze_data_ref_access): Handle non-constant strides.
21969 (vect_check_strided_load): Verify the data-reference is a load.
21970 (vect_analyze_data_refs): Restructure to make strided load
21971 support not dependent on gather support.
21972 * tree-vect-stmts.c (vectorizable_load): Avoid useless work
21973 when doing strided or gather loads.
21974 * tree-vect-loop-manip.c (vect_vfa_segment_size): Use
21975 integer_zerop to compare stride with zero.
21977 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
21979 * config/i386/driver-i386.c (host_detect_local_cpu): Support RTM.
21981 2012-05-11 Jan Hubicka <jh@suse.cz>
21984 * varpool.c (varpool_assemble_decl): Also output constat pool entries
21985 that output_constant_pool missed.
21987 2012-05-11 Mingjie Xing <mingjie.xing@gmail.com>
21989 * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to
21990 MULTILIB_EXTRA_OPTS.
21992 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
21995 * config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc.
21997 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
21999 * config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size
22000 optimization for TARGET_AVX.
22001 (*movti_internal_sse): Ditto.
22002 (*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
22003 (*movdi_internal): Ditto.
22004 (*movsi_internal): Ditto.
22005 (*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX.
22006 (*movdf_internal_rex64): Ditto.
22007 (*movfd_internal): Ditto.
22008 (*movsf_internal): Ditto.
22009 * config/i386/sse.md (mov<mode>): Handle TARGET_SSE_LOAD0_BY_PXOR.
22011 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
22013 * dwarf2out.c (add_byte_size_attribute) <RECORD_TYPE>: Handle variable
22014 reference as size attribute.
22016 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
22017 Tristan Gingold <gingold@adacore.com>
22019 * doc/md.texi (Standard Names): Document probe_stack_address.
22020 * explow.c (emit_stack_probe): Handle probe_stack_address.
22021 * config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant.
22022 (UNSPECV_PROBE_STACK_RANGE): Likewise.
22023 (probe_stack_address): New insn.
22024 (probe_stack_range): Likewise.
22025 * config/ia64/ia64.c: Include common/common-target.h.
22026 (ia64_compute_frame_size): Mark r2 and r3 as used if static stack
22027 checking is enabled.
22028 (ia64_emit_probe_stack_range): New function.
22029 (output_probe_stack_range): Likewise.
22030 (ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static
22031 builtin stack checking is enabled.
22032 (rtx_needs_barrier) <UNSPEC_VOLATILE>: Handle UNSPECV_PROBE_STACK_RANGE
22033 and UNSPECV_PROBE_STACK_ADDRESS.
22034 (unknown_for_bundling_p): New predicate.
22035 (group_barrier_needed): Use important_for_bundling_p.
22036 (ia64_dfa_new_cycle): Use unknown_for_bundling_p.
22037 (issue_nops_and_insn): Likewise.
22038 (bundling): Likewise.
22039 (final_emit_insn_group_barriers): Likewise.
22040 * config/ia64/ia64-protos.h (output_probe_stack_range): Declare.
22041 * config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define.
22042 (STACK_CHECK_PROTECT): Likewise.
22043 * config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
22045 2012-05-10 Jan Hubicka <jh@suse.cz>
22047 * ipa-inline.c (update_all_callee_keys): Remove.
22048 (inline_small_functions): Simplify priority updating.
22050 2012-05-10 Jan Hubicka <jh@suse.cz>
22052 * ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones.
22054 2012-05-10 Jan Hubicka <jh@suse.cz>
22056 * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ...
22057 (symtab_remove_unreachable_nodes): ... this one.
22058 * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes.
22059 * cgraphunit.c (ipa_passes): Update.
22060 * cgraphclones.c (cgraph_materialize_all_clones): Update.
22061 * cgraph.c (cgraph_release_function_body): Only turn initial
22062 into error mark when initial was previously set.
22063 * ipa-inline.c (ipa_inline): Update.
22064 * ipa.c: Include ipa-inline.h
22065 (enqueue_cgraph_node, enqueue_varpool_node): Remove.
22066 (enqueue_node): New function.
22067 (process_references): Update.
22068 (symtab_remove_unreachable_nodes): Cleanup.
22069 * passes.c (execute_todo, execute_one_pass): Update.
22071 2012-05-10 Vladimir Makarov <vmakarov@redhat.com>
22073 PR rtl-optimization/53125
22074 * ira.c (ira): Call find_moveable_pseudos and
22075 move_unallocated_pseudos if only ira_conflicts_p is true.
22077 2012-05-10 Uros Bizjak <ubizjak@gmail.com>
22079 * config/i386/i386.md (*movoi_internal_avx): Handle
22080 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES.
22081 (*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
22082 (*movti_internal_sse): Ditto.
22083 (*movtf_internal): Ditto.
22084 * config/i386/sse.md (ssePSmode): New mode attribute.
22085 (*move<mode>_internal): Use ssePSmode.
22086 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Ditto.
22087 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
22088 * config/i386/i386.c (standard_sse_constant_opcode): Do not handle
22089 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here.
22091 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
22093 * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
22094 DECL_ORIGINAL_TYPE if it is present.
22096 2012-05-10 Nick Clifton <nickc@redhat.com>
22099 * config/m32c/bitops.md (bset_qi): Change operand 2 from having
22100 a "0" constraint to being a (match_dup 0).
22102 2012-05-10 Richard Guenther <rguenther@suse.de>
22104 * stor-layout.c (byte_from_pos): Amend comment.
22106 2012-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22108 * doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init):
22109 Document requirement to call in constructors.
22111 * config/i386/i386.c: Update comments for i386-cpuinfo.c name change.
22113 2012-05-10 Richard Guenther <rguenther@suse.de>
22115 * tree.h (TYPE_IS_SIZETYPE): Remove.
22116 * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use.
22117 (extract_muldiv_1): Likewise.
22118 * gimple.c (gtc_visit): Likewise.
22119 (gimple_types_compatible_p): Likewise.
22120 (iterative_hash_canonical_type): Likewise.
22121 (gimple_canonical_types_compatible_p): Likewise.
22122 * gimplify.c (gimplify_one_sizepos): Likewise.
22123 * print-tree.c (print_node): Likewise.
22124 * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE.
22126 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
22129 * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
22130 xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
22131 (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
22132 instead of xop_mulv2div2di3_low.
22133 (xop_p<macs>dql): Fix vec_select selector.
22134 (xop_p<macs>dqh): Ditto.
22135 (xop_mulv2div2di3_low): Remove insn_and_split pattern.
22136 (xop_mulv2div2di3_high): Ditto.
22138 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
22141 * diagnostic.h (diagnostic_context): Add last_location.
22142 * diagnostic.c (diagnostic_initialize): Initialize it.
22143 (diagnostic_show_locus): Use it.
22145 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
22147 * doc/extend.texi (Function Attributes): Point xref to section
22150 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
22152 * config/i386/i386.c (*movdf_internal_rex64): Remove
22153 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
22154 Calculate "mode" attribute according to
22155 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
22156 (*movdf_internal): Ditto.
22158 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
22161 * config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle
22162 128 bit vectors specially for TARGET_AVX. Emit sse2_movupd and
22163 sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
22164 or when optimizing for size.
22165 * config/i386/sse.md (*mov<mode>_internal): Remove
22166 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
22167 Calculate "mode" attribute according to optimize_function_for_size_p
22168 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
22169 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Choose asm template
22170 depending on the mode of the instruction. Calculate "mode" attribute
22171 according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES
22172 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags.
22173 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
22175 2012-05-09 Georg-Johann Lay <avr@gjlay.de>
22178 * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
22179 * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
22180 * config/avr/avr.h (struct machine_function): Add attributes_checked_p.
22181 * config/avr/avr.c (avr_asm_declare_function_name): Remove.
22182 (expand_prologue): Move initialization of cfun->machine->is_naked,
22183 is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
22184 (avr_set_current_function): ...this new static function.
22185 (TARGET_SET_CURRENT_FUNCTION): New define.
22186 (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
22187 checking attributes of current_function_decl.
22188 (avr_regs_to_save): Ditto.
22189 (signal_function_p): Rename to avr_signal_function_p.
22190 (interrupt_function_p): Rename to avr_interrupt_function_p.
22192 * doc/extend.texi (Function Attributes): Better explanation of
22193 'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
22194 alphabetical order.
22196 2012-05-09 Michael Matz <matz@suse.de>
22198 PR tree-optimization/53185
22199 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable
22200 peeling when we see strided loads.
22202 2012-05-09 Matthias Klose <doko@ubuntu.com>
22204 * gcc-ar.c (main): Don't check for execute bits for the plugin.
22206 2012-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
22208 * tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost):
22209 Replace use of HAVE_{POST/PRE}_{INCREMENT/DECREMENT} with
22210 USE_{LOAD/STORE}_{PRE/POST}_{INCREMENT/DECREMENT} appropriately.
22211 * config/arm/arm.h (ARM_AUTOINC_VALID_FOR_MODE_P): New.
22212 (USE_LOAD_POST_INCREMENT): Define.
22213 (USE_LOAD_PRE_INCREMENT): Define.
22214 (USE_LOAD_POST_DECREMENT): Define.
22215 (USE_LOAD_PRE_DECREMENT): Define.
22216 (USE_STORE_PRE_DECREMENT): Define.
22217 (USE_STORE_PRE_INCREMENT): Define.
22218 (USE_STORE_POST_DECREMENT): Define.
22219 (USE_STORE_POST_INCREMENT): Define.
22220 (arm_auto_incmodes): Add enumeration.
22221 * config/arm/arm-protos.h (arm_autoinc_modes_ok_p): Declare.
22222 * config/arm/arm.c (arm_autoinc_modes_ok_p): Define.
22224 2012-05-09 Jakub Jelinek <jakub@redhat.com>
22226 PR tree-optimization/53226
22227 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Remove
22228 prev and prev_initialized vars, gimple_set_plf (stmt, GF_PLF_1, false)
22229 before processing it and gimple_set_plf (stmt, GF_PLF_1, true) if it
22230 doesn't need to be revisited, look for earliest stmt with
22231 !gimple_plf (stmt, GF_PLF_1) if something changed.
22233 2012-05-09 Terry Guo <terry.guo@arm.com>
22235 * genmultilib: Update copyright dates.
22236 * doc/fragments.texi: Ditto.
22238 2012-05-09 Terry Guo <terry.guo@arm.com>
22240 * Makefile.in (s-mlib): Add new argument MULTILIB_REQUIRED.
22241 * genmultilib (MULTILIB_REQUIRED): New.
22242 * doc/fragments.texi: Document the MULTILIB_REQUIRED.
22244 2012-05-09 Richard Guenther <rguenther@suse.de>
22246 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
22247 (vect_do_peeling_for_loop_bound): Likewise.
22248 (vect_do_peeling_for_alignment): Likewise.
22249 * tree-vect-loop-manip.c (conservative_cost_threshold): Remove.
22250 (vect_do_peeling_for_loop_bound): Get check_profitability and
22251 threshold as parameters.
22252 (vect_do_peeling_for_alignment): Likewise.
22253 (vect_loop_versioning): Likewise.
22254 * tree-vect-loop.c (vect_transform_loop): Compute check_profitability
22255 and threshold here. Control where to put the check here.
22257 2012-05-09 Richard Sandiford <rdsandiford@googlemail.com>
22259 PR middle-end/53249
22260 * dwarf2out.h (get_address_mode): Move declaration to...
22262 * dwarf2out.c (get_address_mode): Move definition to...
22263 * rtlanal.c: ...here.
22264 * var-tracking.c (get_address_mode): Delete.
22265 * combine.c (find_split_point): Use get_address_mode instead of
22266 targetm.addr_space.address_mode.
22267 * cselib.c (cselib_record_sets): Likewise.
22268 * dse.c (canon_address, record_store): Likewise.
22269 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
22270 * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces)
22271 (store_by_pieces_1, expand_assignment, store_expr, store_constructor)
22272 (expand_expr_real_1): Likewise.
22273 * ifcvt.c (noce_try_cmove_arith): Likewise.
22274 * optabs.c (maybe_legitimize_operand_same_code): Likewise.
22275 * reload.c (find_reloads): Likewise.
22276 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
22277 * sel-sched-dump.c (debug_mem_addr_value): Likewise.
22279 2012-05-09 Maciej W. Rozycki <macro@codesourcery.com>
22281 * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line
22282 information from the instruction produced.
22284 2012-05-09 Richard Guenther <rguenther@suse.de>
22286 * stor-layout.c (bit_from_pos): Document.
22287 (byte_from_pos): Likewise. Optimize.
22288 (pos_from_bit): Likewise.
22289 (normalize_offset): Use pos_from_bit instead of replicating it.
22291 2012-05-09 Alan Modra <amodra@gmail.com>
22294 * config/rs6000/rs6000.c (gen_frame_set): New function.
22295 (gen_frame_load, gen_frame_store): New functions.
22296 (rs6000_savres_rtx): Use the above.
22297 (rs6000_emit_epilogue, rs6000_emit_prologue): Here too.
22298 Correct mode used for CR2 in save/restore_world patterns.
22299 Don't emit instructions for eh_return frame unwind reg info.
22301 2012-05-08 Jan Hubicka <jh@suse.cz>
22303 * cgraphbuild.c (build_cgraph_edges): Do not finalize vars
22305 * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR
22307 * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR
22309 (compile_file): Do not output variables.
22310 * cgraphbuild.c (varpool_finalize_decl): When var is finalized late,
22312 * langhooks.c: Include timevar.h
22313 (write_global_declarations): Finalize compilation unit after wrapup;
22314 set timevars correctly.
22315 * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs
22316 not to be added to varpool.
22317 * varpool.c (varpool_assemble_decl): Sanity check that we are called
22318 only on cases where it makes sense; skip constant pool and value expr
22321 2012-05-08 David S. Miller <davem@davemloft.net>
22323 * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option.
22324 * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise.
22325 * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise.
22327 2012-05-08 Richard Sandiford <rdsandiford@googlemail.com>
22329 PR rtl-optimization/53278
22330 * lower-subreg.c (decompose_multiword_subregs): Remove left-over
22331 speed_p code from earlier patch.
22333 2012-05-08 Oleg Endo <olegendo@gcc.gnu.org>
22336 * config/sh/sh.md (*branch_true, *branch_false): New insns.
22338 2012-05-08 Teresa Johnson <tejohnson@google.com>
22340 * gcov-io.h (__gcov_reset, __gcov_dump): Declare.
22341 * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump.
22343 2012-05-08 Jan Hubicka <jh@suse.cz>
22345 * cgraph.c (cgraph_call_edge_duplication_hooks): Export.
22346 (cgraph_create_node_1): Rename to ...
22347 (cgraph_create_empty_node): ... this one; export.
22348 (cgraph_create_node): Update.
22349 (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c
22350 (cgraph_create_edge_including_clones): Likewise.
22351 (cgraph_find_replacement_node): Likewise.
22352 (cgraph_clone_edge): Likewise.
22353 (cgraph_clone_node): Likewise.
22354 (clone_function_name): Likewise.
22355 (cgraph_create_virtual_clone): Likewise.
22356 (cgraph_remove_node_and_inline_clones): Likewise.
22357 (cgraph_redirect_edge_call_stmt_to_callee): Move here from cgraphunit.c
22358 * cgraph.h: Reorder declarations so they match file of origin.
22359 (cgraph_create_empty_node): Declare.
22360 * cgraphunit.c (update_call_expr): Move to cgraphclones.c
22361 (cgraph_copy_node_for_versioning): Likewise.
22362 (cgraph_function_versioning): Likewise.
22363 (cgraph_materialize_clone): Likewise.
22364 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
22365 (cgraph_materialize_all_clones): Likewise.
22366 * cgraphclones.c: New file.
22367 * Makefile.in: Update for cgraphclones.
22369 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
22372 * config/i386/i386.c (ix86_set_reg_reg_cost): New function.
22373 (ix86_rtx_costs): Handle SET.
22375 2012-05-08 Michael Matz <matz@suse.de>
22377 * basic-block.h (struct rtl_bb_info): Remove visited member and
22378 move head_ member to ...
22379 (struct basic_block_def.basic_block_il_dependent): ... the new
22380 member x, replacing but containing old member rtl.
22381 (enum bb_flags): New BB_VISITED flag.
22382 (BB_HEADER, BB_FOOTER): New macros.
22384 * jump.c (mark_all_labels): Adjust.
22385 * cfgcleanup.c (try_optimize_cfg): Adjust.
22386 * cfglayout.c (record_effective_endpoints): Adjust.
22387 (relink_block_chain): Ditto (and don't fiddle with visited).
22388 (fixup_reorder_chain): Adjust.
22389 (fixup_fallthru_exit_predecessor): Ditto.
22390 (cfg_layout_duplicate_bb): Ditto.
22391 * combine.c (update_cfg_for_uncondjump): Adjust.
22392 * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member.
22393 (bb_visited_trace): New accessor.
22394 (mark_bb_visited): Move in front.
22395 (rotate_loop): Use bb_visited_trace.
22396 (find_traces_1_round): Ditto.
22397 (emit_barrier_after): Ditto.
22398 (copy_bb): Ditto, and initialize visited on resize.
22399 (reorder_basic_blocks): Initize visited member.
22400 (duplicate_computed_gotos): Clear bb flags at start, use
22403 * cfgrtl.c (try_redirect_by_replacing_jump): Adjust.
22404 (rtl_verify_flow_info_1): Ditto.
22405 (cfg_layout_split_block): Ditto.
22406 (cfg_layout_delete_block): Ditto.
22407 (cfg_layout_merge_blocks): Ditto.
22408 (init_rtl_bb_info): Adjust and initialize il.x.head_ member.
22410 2012-05-08 Hans-Peter Nilsson <hp@axis.com>
22413 * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
22414 when a constant source operand matches an "I" constraint, the "no
22415 CC0 change" applies to a register-destination only, not a
22416 strict_low_part-destination.
22418 2012-05-08 Richard Guenther <rguenther@suse.de>
22420 * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2
22421 to zero or to (X * CST1) & CST2' when CST1 has trailing zeros.
22423 2012-05-08 Georg-Johann Lay <avr@gjlay.de>
22425 * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi.
22427 * doc/avr-mmcu.texi: New auto-generated file.
22428 * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order
22429 to document all valid -mmcu= arguments.
22431 * config/avr/avr.h (arch_info_s): New struct definition.
22432 * config/avr/avr-devices.c (avr_texinfo): New variable.
22433 * config/avr/gen-avr-mmcu-texi.c: New file.
22434 * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi.
22436 2012-05-08 Dehao Chen <dehao@google.com>
22438 * predict.c (find_qualified_ssa_name): New.
22439 (find_ssa_name_in_expr): New.
22440 (find_ssa_name_in_assign_stmt): New.
22441 (is_comparison_with_loop_invariant_p): New.
22442 (is_bound_expr_similar): New.
22443 (predict_iv_comparison): New.
22444 (predict_loops): Add heuristic for loop-nested branches that compare an
22445 induction variable to a loop bound variable.
22446 * predict.def (PRED_LOOP_IV_COMPARE): New macro.
22448 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
22450 * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and
22451 TARGET_BDVER2 defines where appropriate.
22453 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
22455 * configure.ac (PLUGIN_LD): Rename into...
22456 (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet.
22457 * config.in: Regenerate.
22458 * configure: Likewise.
22459 * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX.
22461 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
22463 * tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
22464 computation using the precision of the index type.
22465 * gimple-fold.c (fold_const_aggregate_ref_1) <ARRAY_REF>: Likewise.
22466 (fold_array_ctor_reference): Do index computations in the index type.
22468 2012-05-07 Georg-Johann Lay <avr@gjlay.de>
22470 * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
22471 down to plus_constant.
22472 (expand_epilogue): Ditto.
22474 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
22476 * postreload.c (reload_cse_regs): Make static.
22477 * reload.h (reload_cse_regs): Remove prototype.
22479 2012-05-07 Richard Henderson <rth@redhat.com>
22481 * config/alpha/alpha.md (clear_cache): New pattern.
22483 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
22485 PR middle-end/53245
22486 * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high
22487 is folded to a type boundary value, verify that the resulting case
22488 label is still a care range.
22490 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
22492 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf
22493 only for TARGET_GENERIC, when not optimizing for size.
22494 (*ffs<mode>_1): Ditto.
22496 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
22498 * tree-cfg.c (verify_gimple_switch): Tighten checks.
22500 2012-05-07 Jakub Jelinek <jakub@redhat.com>
22502 PR tree-optimization/53239
22503 * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF
22504 of DECL_BY_REFERENCE RESULT_DECL to nonnull.
22506 2012-05-07 Richard Guenther <rguenther@suse.de>
22508 PR tree-optimization/53195
22509 * tree-inline.c (setup_one_parameter): Properly add referenced
22510 vars from the parameters new known value.
22512 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
22514 * config/m68k/m68k.c (m68k_sched_branch_type): Remove.
22515 (sched_branch_type): Remove.
22516 (m68k_sched_md_init_global): Don't allocate it.
22517 (m68k_sched_md_finish_global): Don't free it.
22518 * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype.
22519 * config/m68k/m68k.md: Set the type of insns using
22520 m68k_sched_branch_type to bcc directly.
22522 2012-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22524 * config/sol2.c (solaris_override_options): New function.
22525 * config/sol2-protos.h (solaris_override_options): Declare.
22526 * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
22528 2012-05-07 Richard Guenther <rguenther@suse.de>
22530 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return
22531 whether we failed to compute data dependences.
22532 (loop_prefetch_arrays): Fail if we failed.
22534 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
22535 Paolo Bonzini <bonzini@gnu.org>
22537 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf even for !TARGET_BMI.
22538 Emit bsf when optimizing for size.
22539 (*ffs<mode>_1): Ditto.
22541 2012-05-07 Oleg Endo <olegendo@gcc.gnu.org>
22544 * config/sh/sh.c (sh_rtx_costs): Handle SET.
22546 2012-05-06 Uros Bizjak <ubizjak@gmail.com>
22549 * config/i386/i386.md (swap<mode>): Rename from *swap<mode>.
22550 (bswapdi2): Split from bswap<mode>2. Use nonnimediate_operand
22551 predicate for operand 1. Force operand 1 to register for TARGET_BSWAP.
22553 (*bswapdi2_doubleword): New insn pattern.
22554 (*bswap<mode>2): Rename from *bswap<mode>2_1.
22556 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
22558 * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function.
22559 (mips_set_reg_reg_cost): Likewise.
22560 (mips_rtx_costs): Handle SET.
22562 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
22564 * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET.
22565 (compute_costs): Likewise for the zero extension. Use set_rtx_cost
22566 to compute the cost of moves. Set the mode of the target register.
22568 2012-05-05 Richard Sandiford <rdsandiford@googlemail.com>
22570 * rtl.h (plus_constant, plus_constant_mode): Merge into a single
22571 plus_constant function.
22572 * explow.c (plus_constant, plus_constant_mode): Likewise. Assert
22573 that the mode is sensible.
22574 (use_anchored_address, round_push, allocate_dynamic_stack_space)
22575 (probe_stack_range, anti_adjust_stack_and_probe): Update calls to
22578 * alias.c (canon_rtx): Likewise.
22579 (init_alias_analysis): Likewise.
22580 * builtins.c (expand_builtin_return_addr)
22581 (expand_builtin_setjmp_setup, expand_builtin_longjmp)
22582 (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf)
22583 (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr)
22584 (expand_builtin_stpcpy): Likewise.
22585 * calls.c (save_fixed_argument_area, restore_fixed_argument_area)
22586 (compute_argument_addresses, internal_arg_pointer_based_exp)
22587 (expand_call, emit_library_call_value_1): Likewise.
22588 * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise.
22589 * combine-stack-adj.c (try_apply_stack_adjustment): Likewise.
22590 * combine.c (combine_simplify_rtx, force_to_mode): Likewise.
22591 * cse.c (insert_const_anchor, find_reg_offset_for_const)
22592 (use_related_value, fold_rtx): Likewise.
22593 * cselib.c (cselib_subst_to_values): Likewise.
22594 * dse.c (record_store, check_mem_read_rtx): Likewise.
22595 * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise.
22596 * emit-rtl.c (adjust_address_1): Likewise.
22597 * except.c (sjlj_emit_function_enter)
22598 (expand_builtin_extract_return_addr)
22599 (expand_builtin_frob_return_addr): Likewise.
22600 * expmed.c (expand_divmod): Likewise.
22601 * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1)
22602 (emit_move_resolve_push, push_block, emit_push_insn, store_expr)
22603 (expand_expr_addr_expr_1, expand_expr_real_1): Likewise.
22604 * function.c (assign_stack_local_1)
22605 (instantiate_virtual_regs_in_rtx): Likewise.
22606 * optabs.c (prepare_cmp_insn): Likewise.
22607 * recog.c (offsettable_address_addr_space_p): Likewise.
22608 * reload.c (find_reloads_address, form_sum)
22609 (find_reloads_subreg_address): Likewise.
22610 * reload1.c (init_reload, eliminate_regs_1)
22611 (eliminate_regs_in_insn): Likewise.
22612 * simplify-rtx.c (simplify_unary_operation_1)
22613 (simplify_binary_operation_1, simplify_plus_minus): Likewise.
22614 * var-tracking.c (compute_cfa_pointer, prepare_call_arguments)
22615 (vt_add_function_parameter): Likewise.
22617 * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise.
22618 * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise.
22619 * config/alpha/alpha.c (alpha_legitimize_address_1)
22620 (get_unaligned_address, alpha_expand_unaligned_load)
22621 (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words)
22622 (alpha_expand_unaligned_store_words, alpha_expand_block_clear)
22623 (alpha_expand_builtin_establish_vms_condition_handler)
22624 (alpha_setup_incoming_varargs, emit_frame_store_1)
22625 (alpha_expand_prologue, alpha_expand_epilogue)
22626 (alpha_use_linkage): Likewise.
22627 * config/alpha/alpha.md: Likewise.
22629 * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address)
22630 (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address)
22631 (thumb_legitimize_address, arm_gen_load_multiple_1)
22632 (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq)
22633 (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight)
22634 (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi)
22635 (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push)
22636 (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue)
22637 (thumb1_emit_multi_reg_push, thumb1_expand_prologue)
22638 (thumb_expand_movmemqi, arm_set_return_address)
22639 (thumb_set_return_address): Likewise.
22640 * config/arm/arm.md: Likewise.
22642 * config/avr/avr.c (avr_incoming_return_addr_rtx)
22643 (avr_prologue_setup_frame, expand_epilogue)
22644 (avr_const_address_lo16): Likewise.
22646 * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise.
22647 * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg)
22648 (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call)
22649 (bfin_output_mi_thunk): Likewise.
22651 * config/c6x/c6x.c (c6x_initialize_trampoline)
22652 (c6x_output_mi_thunk): Likewise.
22654 * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise.
22655 * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise.
22657 * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx)
22658 (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load)
22659 (cris_emit_movem_store, cris_trampoline_init): Likewise.
22660 * config/cris/cris.md: Likewise.
22662 * config/darwin.c (machopic_indirect_data_reference)
22663 (machopic_legitimize_pic_address): Likewise.
22665 * config/epiphany/epiphany.c (epiphany_emit_save_restore)
22666 (epiphany_expand_prologue, epiphany_expand_epilogue)
22667 (epiphany_trampoline_init): Likewise.
22668 * config/epiphany/epiphany.md: Likewise.
22670 * config/fr30/fr30.c (fr30_move_double): Likewise.
22672 * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue)
22673 (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx)
22674 (frv_index_memory, unspec_got_name, frv_find_base_term)
22675 (frv_output_dwarf_dtprel): Likewise.
22677 * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx)
22678 (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise.
22680 * config/i386/i386.h (RETURN_ADDR_RTX): Likewise.
22681 * config/i386/i386.c (setup_incoming_varargs_64)
22682 (setup_incoming_varargs_ms_64, choose_baseaddr)
22683 (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe)
22684 (ix86_emit_probe_stack_range, ix86_expand_prologue)
22685 (ix86_emit_restore_reg_using_pop, ix86_emit_leave)
22686 (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address)
22687 (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem)
22688 (ix86_static_chain, ix86_trampoline_init, x86_this_parameter)
22689 (x86_output_mi_thunk): Likewise.
22690 * config/i386/i386.md: Likewise.
22692 * config/ia64/ia64.c (ia64_expand_load_address)
22693 (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode)
22694 (do_spill, ia64_trampoline_init): Likewise.
22696 * config/iq2000/iq2000.c (iq2000_va_start)
22697 (iq2000_emit_frame_related_store, iq2000_expand_prologue)
22698 (iq2000_expand_eh_return, iq2000_setup_incoming_varargs)
22699 (iq2000_print_operand, iq2000_legitimize_address): Likewise.
22701 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
22703 * config/m32c/m32c.c (m32c_return_addr_rtx)
22704 (m32c_expand_insv): Likewise.
22706 * config/m32r/m32r.c (m32r_setup_incoming_varargs)
22707 (m32r_legitimize_pic_address, m32r_print_operand)
22708 (m32r_print_operand_address): Likewise.
22710 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
22711 * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise.
22712 (EH_RETURN_HANDLER_RTX): Likewise.
22713 * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue)
22714 (m68k_expand_epilogue, legitimize_pic_address)
22715 (m68k_output_mi_thunk): Likewise.
22716 * config/m68k/m68k.md: Likewise.
22718 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
22719 (mcore_expand_epilog): Likewise.
22720 * config/mcore/mcore.md: Likewise.
22722 * config/mep/mep.c (mep_allocate_initial_value)
22723 (mep_expand_prologue, mep_expand_epilogue): Likewise.
22725 * config/microblaze/microblaze.c (double_memory_operand)
22726 (microblaze_block_move_loop): Likewise.
22728 * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset)
22729 (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop)
22730 (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg)
22731 (mips_expand_prologue, mips_epilogue_set_cfa)
22732 (mips_expand_epilogue): Likewise.
22733 * config/mips/mips.md: Likewise.
22735 * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx)
22736 (mmix_expand_prologue, mmix_expand_epilogue): Likewise.
22738 * config/mn10300/mn10300.c (mn10300_gen_multiple_store)
22739 (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise.
22741 * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise.
22742 (EH_RETURN_HANDLER_RTX): Likewise.
22743 * config/moxie/moxie.c (moxie_static_chain): Likewise.
22745 * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address)
22746 (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg)
22747 (pa_return_addr_rtx, hppa_builtin_saveregs)
22748 (pa_trampoline_init): Likewise.
22749 * config/pa/pa.md: Likewise.
22751 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
22753 * config/picochip/picochip.c (picochip_static_chain): Likewise.
22755 * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise.
22756 * config/rs6000/rs6000.c (rs6000_legitimize_address)
22757 (setup_incoming_varargs, print_operand, rs6000_return_addr)
22758 (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range)
22759 (rs6000_emit_epilogue)
22760 (rs6000_machopic_legitimize_pic_address): Likewise.
22762 * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
22764 * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise.
22765 (DYNAMIC_CHAIN_ADDRESS): Likewise.
22766 * config/s390/s390.c (s390_decompose_address, legitimize_pic_address)
22767 (s390_delegitimize_address, print_operand, annotate_constant_pool_refs)
22768 (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx)
22769 (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue)
22770 (s390_emit_epilogue, s390_function_profiler): Likewise.
22771 * config/s390/s390.md: Likewise.
22773 * config/score/score.c (score_add_offset, score_prologue): Likewise.
22775 * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs)
22776 (sh_output_mi_thunk): Likewise.
22777 * config/sh/sh.md: Likewise.
22779 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX)
22780 (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise.
22781 * config/sparc/sparc.c (sparc_legitimize_pic_address)
22782 (sparc_emit_probe_stack_range, emit_save_or_restore_regs)
22783 (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx)
22784 (emit_and_preserve): Likewise.
22785 * config/sparc/sparc.md: Likewise.
22787 * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
22788 * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg)
22789 (spu_setup_incoming_varargs, ea_load_store_inline)
22790 (spu_expand_load): Likewise.
22792 * config/stormy16/stormy16.c (xstormy16_expand_prologue)
22793 (combine_bnp): Likewise.
22795 * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
22796 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs)
22797 (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise.
22799 * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
22800 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs)
22801 (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise.
22803 * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise.
22804 * config/v850/v850.md: Likewise.
22806 * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise.
22807 (EH_RETURN_HANDLER_RTX): Likewise.
22808 * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise.
22809 * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue)
22810 (print_operand_address, vax_trampoline_init): Likewise.
22812 * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr)
22813 (xtensa_function_value_regno_p): Likewise.
22815 2012-05-04 Andrew Pinski <apinski@cavium.com>
22817 * expr.c (get_def_for_expr_class): New function.
22818 (convert_tree_comp_to_rtx): New function.
22819 (expand_cond_expr_using_cmove): New function.
22820 (expand_expr_real_2 <case COND_EXPR>): Call
22821 expand_cond_expr_using_cmove first and return if it succeeds.
22822 Remove the check for HAVE_conditional_move since we should have
22823 already converted it to a conditional move.
22824 * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison
22825 modes of DImode for 32bits and TImode.
22827 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
22830 * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions.
22831 (print_md_ptr_loc, print_c_condition): Use them.
22832 * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes.
22833 * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name,
22834 attr_file, dfa_file, latency_file): New global variables.
22835 (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value,
22836 write_upcase, write_indent, write_length_unit_log, write_test_expr,
22837 write_attr_get, write_insn_cases, write_eligible_delay,
22838 write_const_num_delay_slots): Accept FILE pointer and toss it around.
22839 Update all callers.
22840 (write_header, open_outfile, handle_arg): New funcions.
22841 (make_automaton_attrs): Write prototypes as extern to the output
22843 (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file
22844 names from the command line. Open the output files and write out
22845 internal functions for DFA functions to dfa_file_name, insn latency
22846 functions to latency_file_name, and everything else to attr_file.
22847 * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o.
22848 (BACKEND): Build libbackend first.
22849 (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c.
22850 (.PRECIOUS): Likewise.
22851 (insn-dfatab.o): New rule.
22852 (insn-latencytab.o): New rule.
22853 (simple_rtl_generated_c): Do not include insn-attrtab.c.
22854 (s-attrtab): New rule.
22856 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
22858 * rtl.def (ATTR_FLAG): Remove probability indicating flags.
22859 * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely,
22860 ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely.
22861 * reorg.c (get_jump_flags): Do not set the removed flags.
22863 * doc/md.texi (attr_flag): Update for abovementioned changes.
22865 2012-05-04 Uros Bizjak <ubizjak@gmail.com>
22868 * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
22869 (TARGET_CMOV): Rename from TARGET_CMOVE.
22870 (TARGET_CMOVE): New define.
22871 * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
22872 Do not set TARGET_CMOVE here.
22874 2012-05-04 Dodji Seketeli <dodji@redhat.com>
22876 Enable -Wunused-local-typedefs when -Wall or -Wunused is on
22877 * opts.c (finish_options): Activate -Wunused-local-typedefs if
22878 -Wunused is activated.
22879 * doc/invoke.texi: Update blurb of -Wunused-local-typedefs.
22881 2012-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22883 * config/s390/s390.md (*movmem_short, *clrmem_short)
22884 (*cmpmem_short): Move the mode check from the insn condition to
22887 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
22889 PR tree-optimization/52633
22890 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
22891 vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
22892 (vect_recog_over_widening_pattern): Remove handling of code that was
22893 already detected as over-widening pattern. Remove special handling
22894 of "unsigned" cases. Instead, support general case of conversion
22895 of the shift result to another type.
22897 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
22899 * tree-vect-patterns.c (vect_single_imm_use): New function.
22900 (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
22901 (vect_recog_over_widening_pattern): Likewise.
22902 (vect_recog_widen_shift_pattern): Likewise.
22904 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
22906 * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function.
22907 (vect_handle_widen_op_by_const): Use it instead of open-coding test.
22908 (vect_recog_widen_mult_pattern): Likewise.
22909 (vect_operation_fits_smaller_type): Likewise.
22910 (vect_recog_over_widening_pattern): Likewise.
22911 (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test.
22913 2012-05-04 Richard Guenther <rguenther@suse.de>
22916 * lto-wrapper.c (merge_and_complain): Complain about mismatches
22917 of -freg-struct-return and -fpcc-struct-return.
22918 (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return
22919 from the input file options and ignore those from the link
22922 2012-05-04 Richard Guenther <rguenther@suse.de>
22924 PR tree-optimization/53168
22925 * tree-ssa-pre.c (phi_translate_1): Only handle type-punned
22926 memory reads when the result is a constant we can pun.
22928 2012-05-04 Richard Guenther <rguenther@suse.de>
22930 * common.opt (flto-report): Do not mark as Optimization.
22932 2012-05-04 Eric Botcazou <ebotcazou@adacore.com>
22935 * recog.c (constrain_operands): If extra constraints are present, also
22936 accept pseudo-registers with equivalent memory locations during reload.
22938 2012-05-04 Olivier Hainque <hainque@adacore.com>
22940 * collect2.c (may_unlink_output_file): New global.
22941 (maybe_unlink): Honor it.
22942 * collect2.h: Add extern for it.
22943 * tlink.c (do_tlink): Set it to true if the link succeeded.
22945 2012-05-04 Olivier Hainque <hainque@adacore.com>
22947 * gcc.c (eval_spec_function): Finalize/restore the current string
22948 obstack state as part of the context push/pop operations.
22950 2012-05-04 Bin Cheng <bin.cheng@arm.com>
22952 PR rtl-optimization/52804
22953 * reload1.c (reload_reg_reaches_end_p): Check whether successor
22954 reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
22955 of current one with type RELOAD_FOR_INPADDR_ADDRESS.
22956 Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
22957 RELOAD_FOR_OUTADDR_ADDRESS.
22959 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
22962 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret
22963 for macro expansion.
22965 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
22967 * flags.h (flag_permissive): Do not declare.
22968 * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive
22970 * toplev.c (flag_permissive): Do not define.
22971 * c-tree.h (system_header_p): Delete unused.
22973 2012-05-03 David S. Miller <davem@davemloft.net>
22976 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
22977 MEM directly into a libcall, mark it's MEM_EXPR as addressable.
22978 (sparc_emit_float_lib_cmp): Likewise.
22980 2012-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
22983 * config/rs6000/rs6000.md (bswapdi splitters): If
22984 -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
22985 default) is used, generate an alternate sequence that does not
22986 depend on using indexed addressing.
22988 2012-05-03 Jason Merrill <jason@redhat.com>
22990 * gengtype.c (write_types): Fix warning message.
22991 (write_local): Likewise.
22993 2012-05-02 Jason Merrill <jason@redhat.com>
22995 * dwarf2out.c (struct external_ref, build_local_stub): New.
22996 (hash_external_ref, external_ref_eq, lookup_external_ref): New.
22997 (optimize_external_refs, optimize_external_refs_1): New.
22998 (change_AT_die_ref): New.
22999 (clone_as_declaration): Add DW_AT_signature when cloning a declaration.
23000 (build_abbrev_table): Take the external refs hashtable.
23001 (output_comp_unit): Get it from optimize_external_refs and pass it in.
23003 2012-05-03 Jan Hubicka <jh@suse.cz>
23005 PR middle-end/53093
23006 * tree-emutls.c (new_emutls_decl): Fix handling of aliases.
23008 2012-05-03 Jan Hubicka <jh@suse.cz>
23010 PR middle-end/53106
23011 * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
23013 2012-05-03 Jason Merrill <jason@redhat.com>
23015 * dwarf2out.c (die_struct): Add comdat_type_p flag. Use it instead of
23016 use_debug_types to discriminate the die_id union.
23017 (print_die, assign_symbol_names, copy_decls_walk): Likewise.
23018 (build_abbrev_table, output_die): Likewise.
23019 (prune_unused_types_walk_attribs): Likewise.
23020 (generate_type_signature, copy_declaration_context): Set it.
23021 (remove_child_or_replace_with_skeleton): Set it.
23022 (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't
23023 check use_debug_types.
23024 (dwarf2out_finish): Do break_out_includes after .debug_types.
23026 2012-05-03 Jason Merrill <jason@redhat.com>
23028 * dwarf2out.c (modified_type_die): Use scope_die_for.
23029 (gen_type_die_with_usage, dwarf2out_finish): Likewise.
23030 (uses_local_type_r, uses_local_type): New.
23031 (scope_die_for): Keep a type that uses a local type in local scope.
23032 Use get_context_die for namespace and type scope.
23034 2012-05-03 Jason Merrill <jason@redhat.com>
23036 * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the
23038 * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions.
23039 (dwarf2out_finish): Likewise.
23041 2012-05-03 Martin Jambor <mjambor@suse.cz>
23043 * builtins.c (get_object_alignment_1): Return whether we can determine
23044 the alignment or conservatively assume byte alignment. Return the
23045 alignment by reference. Use get_pointer_alignment_1 for dereference
23047 (get_pointer_alignment_1): Return whether we can determine the
23048 alignment or conservatively assume byte alignment. Return the
23049 alignment by reference. Use get_ptr_info_alignment to get SSA name
23051 (get_object_alignment): Update call to get_object_alignment_1.
23052 (get_object_or_type_alignment): Likewise, fall back to type alignment
23053 only when it returned false.
23054 (get_pointer_alignment): Update call to get_pointer_alignment_1.
23055 * fold-const.c (get_pointer_modulus_and_residue): Update call to
23056 get_object_alignment_1.
23057 * ipa-prop.c (ipa_modify_call_arguments): Update call to
23058 get_pointer_alignment_1.
23059 * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type
23060 of MEM_REF or TARGET_MEM_REF only when it returns false.
23061 * tree-ssa-ccp.c (get_value_from_alignment): Update call to
23062 get_object_alignment_1.
23063 (ccp_finalize): Use set_ptr_info_alignment.
23064 * tree.h (get_object_alignment_1): Update declaration.
23065 (get_pointer_alignment_1): Likewise.
23066 * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment.
23067 (dump_gimple_stmt): Likewise.
23068 * tree-flow.h (ptr_info_def): Updated comments of fields align and
23070 (get_ptr_info_alignment): Declared.
23071 (mark_ptr_info_alignment_unknown): Likewise.
23072 (set_ptr_info_alignment): Likewise.
23073 (adjust_ptr_info_misalignment): Likewise.
23074 * tree-ssa-address.c (copy_ref_info): Use new access functions to get
23075 and set alignment of SSA names.
23076 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call
23077 mark_ptr_info_alignment_unknown.
23078 * tree-ssanames.c (get_ptr_info_alignment): New function.
23079 (mark_ptr_info_alignment_unknown): Likewise.
23080 (set_ptr_info_alignment): Likewise.
23081 (adjust_ptr_info_misalignment): Likewise.
23082 (get_ptr_info): Call mark_ptr_info_alignment_unknown.
23083 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
23085 (bump_vector_ptr): Likewise.
23086 * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment.
23087 (vectorizable_store): Likewise.
23088 (vectorizable_load): Likewise.
23090 2012-05-03 Michael Matz <matz@suse.de>
23092 * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move
23093 in front of basic_block_def.
23094 (struct basic_block_def): Make il.gimple the full struct, not a
23096 (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef.
23098 * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members.
23099 * gimple-iterator.c (gimple_stmt_iterator): Don't special case
23100 NULL il.gimple, which can't happen anymore.
23101 * gimple.h (bb_seq): il.gimple can't be NULL.
23102 (bb_seq_add): Ditto.
23103 (set_bb_seq): Adjust.
23104 (gsi_start_bb, gsi_last_bb): Tidy.
23105 * lto-streamer-in.c (make_new_block): Don't zero members that
23106 are zeroed already, don't allocate a gimple_bb_info.
23107 * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info.
23108 (remove_bb): Clear all il.gimple members.
23109 (gimple_verify_flow_info): Adjust for flat il.gimple.
23110 * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust.
23112 * coretypes.h (const_gimple_seq): Remove typedef.
23113 * gimple.h (gimple_seq_first): Take gimple_seq.
23114 (gimple_seq_first_stmt): Ditto.
23115 (gimple_seq_last): Ditto.
23116 (gimple_seq_last_stmt): Ditto.
23117 (gimple_seq_empty_p): Ditto.
23119 2012-05-03 Richard Guenther <rguenther@suse.de>
23121 * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping
23123 (prune_clobbered_mems): Do it here. Do not uselessly sort expressions.
23124 (compute_avail): Do not add possibly trapping operations to
23125 EXP_GEN if they might not be executed in the block.
23127 2012-05-03 Uros Bizjak <ubizjak@gmail.com>
23129 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove.
23131 2012-05-03 Steven Bosscher <steven@gcc.gnu.org>
23133 * tree-switch-conversion.c (gen_inbound_check): Free post-dominance
23134 information as early as possible. Update dominance info instead of
23137 2012-05-03 Richard Guenther <rguenther@suse.de>
23139 * tree-ssa-pre.c (debug_bitmap_sets_for): New function.
23140 (union_contains_value): Remove.
23141 (vro_valid_in_sets): Likewise.
23142 (op_valid_in_sets): New function.
23143 (valid_in_sets): Use op_valid_in_sets.
23144 (insert_into_preds_of_block): Move dumping ...
23145 (do_regular_insertion): ... here.
23146 (do_partial_partial_insertion): ... and here. Dump that
23147 we've found a partial partial redundancy.
23148 (insert): Dump the current insert iteration.
23150 2012-05-03 Jakub Jelinek <jakub@redhat.com>
23153 * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
23154 append program name to it and pass that as first argument
23155 to make_relative_prefix. Always pass standard_libexec_prefix
23156 as last argument to make_relative_prefix. If
23157 make_relative_prefix returns NULL, fall back to
23158 standard_libexec_prefix.
23161 * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
23165 * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
23166 mode, return that mode.
23169 * config/i386/i386-c.c (ix86_target_macros_internal): Don't
23170 define __ATOMIC_HLE_* macros here.
23171 (ix86_target_macros): But here, using cpp_define_formatted.
23173 2012-05-03 Richard Guenther <rguenther@suse.de>
23175 PR tree-optimization/53144
23176 * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
23178 (vn_reference_lookup_or_insert_for_pieces): ... this. Properly deal
23179 with SSA name values.
23180 (vn_reference_lookup_3): Adjust callers.
23182 2012-05-03 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
23184 * config/i386/driver-i386.c (host_detect_local_cpu): Reset
23185 has_fma4 for AMD processors with both fma3 and fma4 support.
23187 2012-05-03 Kirill Yukhin <kirill.yukhin@intel.com>
23190 * config/i386/driver-i386.c (host_detect_local_cpu): Add space to
23193 2012-05-03 Michael Matz <matz@suse.de>
23196 * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator.
23197 (dse_enter_block): Properly iterate the whole sequence even
23198 if the last statement was removed.
23200 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
23202 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code,
23203 unset flag_jump_tables.
23204 * stmt.c (expand_case): Remove special flag_pic case conditional
23205 on ASM_OUTPUT_ADDR_DIFF_ELT not being defined.
23207 2012-05-02 Ulrich Weigand <ulrich.weigand@linaro.org>
23209 * common/config/s390/s390-common.c (s390_option_optimization_table):
23210 Enable -fsched-pressure using -fsched-pressure-algorithm=model by
23211 default when optimizing.
23213 2012-05-02 Martin Jambor <mjambor@suse.cz>
23216 * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
23217 of a variable when the contect is a function.
23219 2012-05-02 Michael Matz <matz@suse.de>
23221 * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
23222 * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
23223 (const_gimple_seq_node): Remove.
23224 (gimple_seq_node): Typedef as gimple.
23225 (struct gimple_statement_base): Add next and prev members,
23226 adjust all WORD markers in using structs.
23227 (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
23228 (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
23229 gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
23230 gimple are the same.
23231 (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
23232 gimple_seq, adjust.
23233 (gimple_init_singleton): New function.
23234 (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
23235 (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
23236 (gsi_stmt): Adjust.
23237 (gsi_stmt_ptr): Remove.
23238 (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
23240 * gimple-iterator.c (update_bb_for_stmts): Take last parameter
23241 again, adjust for above changes.
23242 (update_call_edge_frequencies): Adjust for above changes.
23243 (gsi_insert_seq_nodes_before): Rewrite for new data structure.
23244 (gsi_insert_seq_nodes_after): Ditto.
23245 (gsi_split_seq_after): Ditto.
23246 (gsi_set_stmt): Ditto.
23247 (gsi_split_seq_before): Ditto.
23248 (gsi_remove): Ditto.
23249 (gsi_insert_seq_before_without_update): Don't free sequence.
23250 (gsi_insert_seq_after_without_update): Ditto.
23251 (gsi_replace): Assert some more invariants.
23252 (gsi_insert_before_without_update, gsi_insert_after_without_update):
23254 (gsi_for_stmt): Don't search for stmt.
23255 (gsi_insert_on_edge_immediate): Tidy.
23257 * gimple.c (gimple_alloc_k): Remove "sequences".
23258 (gimple_seq_cache): Remove.
23259 (gimple_alloc_stat): Make stmt a singleton sequence.
23260 (gimple_seq_alloc, gimple_seq_free): Remove.
23261 (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
23262 (gimple_copy): Ditto.
23263 * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
23264 create iterator from correct sequence.
23265 * tree-phinodes.c (make_phi_node): Make stmt a singleton.
23267 2012-05-02 Michael Matz <matz@suse.de>
23269 * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
23271 (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
23272 sequence, lazily allocate it.
23273 (bb_seq_addr): New function.
23274 (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
23275 (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
23276 (gsi_none): New function.
23277 (gsi_start_bb): Adjust.
23278 (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
23279 (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
23280 (gsi_last_bb): Adjust.
23282 * tree-flow-inline.h (phi_nodes_ptr): New function.
23284 * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
23285 datastructure and interface change.
23286 (gsi_insert_seq_before_without_update): Ditto.
23287 (gsi_insert_seq_nodes_after): Ditto.
23288 (gsi_insert_seq_after_without_update): Ditto.
23289 (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
23290 (gsi_split_seq_before): Ditto.
23291 (gsi_start_phis): Adjust.
23292 * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none.
23293 (vect_transform_loop): Ditto.
23294 * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
23295 gimple_seq_copy): Don't use gimple_seq_alloc.
23296 * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
23297 (gimplify_seq_add_seq): Ditto.
23298 * lto-streamer-in.c (make_new_block): Ditto.
23299 * tree-cfg.c (create_bb): Ditto.
23300 * tree-sra.c (initialize_parameter_reductions): Ditto.
23302 2012-05-02 Michael Matz <matz@suse.de>
23304 * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
23305 gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
23306 gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
23307 set_bb_seq): Move down to after gimple_statement_d definition.
23309 2012-05-02 Michael Matz <matz@suse.de>
23311 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
23312 gsi_replace_with_seq, instead of inserting itself.
23313 * gimple-iterator.c (gsi_replace_with_seq): New function.
23314 * tree-ssa-forwprop.c (forward_propagate_comparison): Take
23315 iterator instead of statement, advance it.
23316 (ssa_forward_propagate_and_combine): Adjust call to above.
23318 2012-05-02 Michael Matz <matz@suse.de>
23320 * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
23322 * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
23323 * tree-nested.c (walk_gimple_omp_for): Ditto.
23324 * trans-mem.c (lower_transaction): Ditto.
23325 * tree-eh.c (do_return_redirection): Ditto.
23326 (do_goto_redirection): Ditto.
23327 (lower_try_finally_switch): Ditto.
23328 * gimplify.c (gimplify_stmt): Ditto.
23329 (gimplify_scan_omp_clauses): Ditto.
23330 (gimplify_omp_for): Ditto.
23331 (gimplify_function_tree): Ditto.
23332 * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
23333 * tree-mudflap.c (mf_decl_cache_locals): Ditto.
23334 (mf_build_check_statement_for): Ditto.
23335 (mx_register_decls): Ditto.
23336 * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
23337 and don't use itertors to append.
23338 (insert_stmts): Ditto.
23339 (insert_out_of_ssa_copy): Ditto.
23340 (insert_out_of_ssa_copy_on_edge): Ditto.
23342 2012-05-02 Michael Matz <matz@suse.de>
23344 * gimple.h (gimple_bind_body_ptr): New function.
23345 (gimple_bind_body): Use it.
23346 (gimple_catch_handler): Use gimple_catch_handler_ptr.
23347 (gimple_eh_filter_failure_ptr): New function.
23348 (gimple_eh_filter_failure): Use it.
23349 (gimple_eh_else_n_body_ptr): New function.
23350 (gimple_eh_else_n_body): Use it.
23351 (gimple_eh_else_e_body_ptr): New function.
23352 (gimple_eh_else_e_body): Use it.
23353 (gimple_try_eval_ptr): New function.
23354 (gimple_try_eval): Use it.
23355 (gimple_try_cleanup_ptr): New function.
23356 (gimple_try_cleanup): Use it.
23357 (gimple_wce_cleanup_ptr): New function.
23358 (gimple_wce_cleanup): Use it.
23359 (gimple_omp_body_ptr): New function.
23360 (gimple_omp_body): Use it.
23361 (gimple_omp_for_pre_body_ptr): New function.
23362 (gimple_omp_for_pre_body): Use it.
23363 (gimple_transaction_body_ptr): New function.
23364 (gimple_transaction_body): Use it.
23365 (gsi_split_seq_before): Adjust to return nothing and take pointer
23367 (gsi_set_stmt): Declare.
23368 (gsi_replace_with_seq): Declare.
23369 (walk_gimple_seq_mod): Declare.
23370 * function.h (struct function <gimple_body>): Use typedef gimple_seq.
23372 * gimple-iterator.c (gsi_set_stmt): New function.
23373 (gsi_split_seq_before): Return new sequence via pointer argument.
23374 (gsi_replace): Use gsi_set_stmt.
23376 * tree-ssa-loop-im.c (move_computations_stmt): First remove
23378 * tree-complex.c (update_complex_components_on_edge): Don't copy gsi.
23379 * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
23381 (reserve_phi_args_for_new_edge): Change call to above,
23384 * omp-low.c (lower_omp): Change prototype to take pointer to sequence.
23385 (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
23386 iterators. Adjust call to lower_omp.
23387 (lower_lastprivate_clauses): Adjust call to lower_omp.
23388 (lower_reduction_clauses): Ditto.
23389 (expand_omp_taskreg): Nullify non-cfg body of child_fn.
23390 (lower_omp_sections): Don't explicitely count sequence length,
23391 nullify lowered bodies earlier, ensure stmts are part of only
23392 one sequence, adjust call to lower_omp.
23393 (lower_omp_single): Ensure stmts are part of only one sequence,
23394 adjust call to lower_omp.
23395 (lower_omp_master): Ditto.
23396 (lower_omp_ordered): Ditto.
23397 (lower_omp_critical): Ditto.
23398 (lower_omp_for): Ditto.
23399 (lower_omp_taskreg): Ditto, tidy.
23400 (lower_omp_1): Adjust calls to lower_omp.
23401 (execute_lower_omp): Ditto.
23402 (lower_omp): Adjust to take pointer to sequence.
23403 (diagnose_sb_2): Use walk_gimple_seq_mod.
23404 (diagnose_omp_structured_block_errors): Ditto and set possibly
23405 changed function body.
23406 * gimple-low.c (lower_function_body): Set function body after
23408 (lower_sequence): Adjust to take pointer to sequence.
23409 (lower_omp_directive): Ensure stmt isn't put twice into the
23410 sequence, adjust call to lower_sequence.
23411 (lower_stmt): Adjust calls to lower_sequence.
23412 (lower_gimple_bind): Ditto.
23413 (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
23414 * tree-nested.c (walk_body): Take pointer to sequence, use
23415 walk_gimple_seq_mod.
23416 (walk_function): Adjust call to walk_body, set possibly changed body.
23417 (walk_gimple_omp_for): Adjust calls to walk_body.
23418 (convert_nonlocal_omp_clauses): Ditto.
23419 (convert_nonlocal_reference_stmt): Ditto.
23420 (convert_local_omp_clauses): Ditto.
23421 (convert_local_reference_stmt): Ditto.
23422 (convert_tramp_reference_stmt): Ditto.
23423 (convert_gimple_call): Ditto.
23424 (convert_nl_goto_reference): Use local iterator copy.
23425 * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
23426 but taking pointer to sequence, ensure gsi_start is called with
23428 (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
23429 asserting that the sequence head didn't change.
23430 (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
23431 walk_gimple_seq_mod.
23432 * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
23433 (execute_lower_tm): Ditto, and set possibly changed body.
23434 * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
23435 call gsi_start with that lvalue.
23436 (replace_goto_queue_stmt_list): Ditto.
23437 (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
23438 (replace_goto_queue): Ditto.
23439 (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
23440 (lower_try_finally_onedest): Ditto.
23441 (lower_try_finally_copy): Ditto.
23442 (lower_try_finally_switch): Ditto.
23443 (lower_try_finally): Ditto.
23444 (lower_eh_filter): Ditto.
23445 (lower_eh_must_not_throw): Ditto.
23446 (lower_cleanup): Ditto.
23447 (lower_eh_constructs_2): Ditto.
23448 (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
23449 (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
23450 set possibly changed body.
23451 (optimize_double_finally): Call gsi_start with lvalue.
23453 * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
23454 (gimple_split_block): Ditto.
23455 (gimple_merge_blocks): Use gsi_start_phis.
23456 (move_stmt_r): Use walk_gimple_seq_mod.
23457 * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
23458 * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
23459 (rebuild_cgraph_edges): Ditto.
23460 (cgraph_rebuild_references): Ditto.
23461 * ipa-prop.c (ipa_analyze_params_uses): Ditto.
23462 * tree-inline.c (copy_phis_for_bb): Ditto.
23463 * tree-ssa-dce.c: Ditto.
23465 * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
23467 2012-05-02 Kirill Yukhin <kirill.yukhin@intel.com>
23468 Andi Kleen <ak@linux.intel.com>
23470 * coretypes.h (MEMMODEL_MASK): New.
23471 * builtins.c (get_memmodel): Add val. Call target.memmodel_check
23472 and return new variable.
23473 (expand_builtin_atomic_exchange): Mask memmodel values.
23474 (expand_builtin_atomic_compare_exchange): Ditto.
23475 (expand_builtin_atomic_load): Ditto.
23476 (expand_builtin_atomic_store): Ditto.
23477 (expand_builtin_atomic_clear): Ditto.
23478 * doc/extend.texi: Mention port-dependent memory model flags.
23479 * config/i386/cpuid.h (bit_HLE): New.
23480 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23482 * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
23483 * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines.
23484 (ix86_target_string)<-mhle>: New.
23485 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
23486 * config/i386/i386.c (ix86_target_string) <OPTION_MASK_ISA_HLE>: New.
23487 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
23488 (ix86_option_override_internal) <PTA_HLE>: New switch, set it
23489 enabled for generic, generic64 and core-avx2.
23490 (ix86_print_operand): Generate HLE lock prefixes.
23491 (ix86_memmodel_check): New.
23492 (TARGET_MEMMODEL_CHECK): Ditto.
23493 * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
23494 (IX86_HLE_ACQUIRE): Ditto.
23495 (IX86_HLE_RELEASE): Ditto.
23496 * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
23497 * config/i386/i386.opt (mhle): Ditto.
23498 * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
23499 success model to instruction emitter.
23500 (atomic_fetch_add<mode>): Ditto.
23501 (atomic_exchange<mode>): Ditto.
23502 (atomic_add<mode>): Ditto.
23503 (atomic_sub<mode>): Ditto.
23504 (atomic_<code><mode>): Ditto.
23505 (*atomic_compare_and_swap_doubledi_pic): Ditto.
23506 (atomic_compare_and_swap_single<mode>): Define and use argument
23508 (atomic_compare_and_swap_double<mode>): Ditto.
23509 * configure.ac: Check if assembler support HLE prefixes.
23510 * configure: Regenerate.
23511 * config.in: Ditto.
23513 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
23515 PR middle-end/53153
23516 * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
23518 (gimplify_switch_expr): ... here.
23519 * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
23520 * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
23521 to clean up case labels with values outside the index type range.
23522 (simplify_gimple_switch): Call it if something changed.
23523 Remove strange and unnecessary assert.
23525 2012-05-02 Richard Guenther <rguenther@suse.de>
23527 * fold-const.c (div_if_zero_remainder): sizetypes no longer
23529 (int_const_binop_1): New worker for int_const_binop with
23530 overflowable parameter. Pass it through to force_fit_type_double.
23531 (int_const_binop): Wrap around int_const_binop_1 with overflowable
23533 (size_binop_loc): Call int_const_binop_1 with overflowable equal
23534 to minus one, forcing overflow detection for even unsigned types.
23535 (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
23536 (fold_binary_loc): Call try_move_mult_to_index with signed offset.
23537 * stor-layout.c (initialize_sizetypes): sizetypes no longer
23539 (layout_type): For zero-sized arrays ignore overflow on the
23541 * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
23542 (bit_value_binop_1): Likewise.
23543 * tree.c (double_int_to_tree): Likewise.
23544 (double_int_fits_to_tree_p): Likewise.
23545 (force_fit_type_double): Likewise.
23546 (host_integerp): Likewise.
23547 (int_fits_type_p): Likewise.
23548 * varasm.c (output_constructor_regular_field): Sign-extend the
23549 field-offset to cater for negative offsets produced by the Ada
23551 * omp-low.c (extract_omp_for_data): Convert the loop step to
23552 signed for pointer adjustments.
23554 2012-05-02 Richard Guenther <rguenther@suse.de>
23556 * tree.c (valid_constant_size_p): New function.
23557 * tree.h (valid_constant_size_p): Declare.
23558 * cfgexpand.c (expand_one_var): Adjust check for too large
23559 variables by using valid_constant_size_p.
23560 * varasm.c (assemble_variable): Likewise.
23562 * c-decl.c (grokdeclarator): Properly check for sizes that
23563 cover more than half of the address-space.
23565 2012-05-02 Jakub Jelinek <jakub@redhat.com>
23567 PR tree-optimization/53163
23568 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
23569 return value from compute_all_dependences.
23571 PR rtl-optimization/53160
23572 * ree.c (combine_reaching_defs): Handle the case where cand->insn
23573 has been modified by ree pass already.
23575 2012-05-01 Ian Lance Taylor <iant@google.com>
23578 * c-decl.c (build_compound_literal): Make the decl readonly if it
23579 an array of a readonly type.
23580 * gimplify.c (gimplify_compound_literal_expr): Add fallback
23581 parameter. Change all callers. If the decl is not addressable
23582 and is not an l-value, make it readonly.
23584 2012-05-01 Bernd Schmidt <bernds@codesourcery.com>
23586 * ira.c (allocated_reg_info_size): New static variable.
23587 (expand_reg_info): Manage it. Call
23588 setup_preferred_alternate_classes_for_new_pseudos.
23589 (ira): Don't do it here. Remove local allocated_reg_info_size,
23590 set the global before calling find_moveable_pseudos.
23591 (find_moveable_pseudos): Call expand_reg_info rather than
23594 2012-05-01 Richard Henderson <rth@redhat.com>
23596 * common.opt (fsync-libcalls): New.
23597 * doc/invoke.texi: Document it.
23598 * optabs.c (init_sync_libfuncs): Honor it.
23600 2012-05-01 Kenneth Zadeck <zadeck@naturalbridge.com>
23601 Richard Sandiford <r.sandiford@uk.ibm.com>
23603 PR rtl-optimization/52543
23604 * Makefile.in (lower-subreg.o, target-globals.o): Depend on
23606 * lower-subreg.h: New file.
23607 * target-globals.h (this_target_lower_subreg): Declare.
23608 (target_globals): Add lower_subreg;
23609 (restore_target_globals): Restore this_target_lower_subreg.
23610 * target-globals.c: Include it.
23611 (default_target_globals): Add default_target_lower_subreg.
23612 (save_target_globals): Initialize target_lower_subreg.
23613 * rtl.h (init_lower_subreg): Added declaration.
23614 * toplev.c (backend_init_target): Call initializer for lower-subreg
23616 * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
23617 (default_target_lower_subreg): New variable.
23618 (this_target_lower_subreg): Likewise.
23619 (twice_word_mode, choices): New macros.
23620 (shift_cost, compute_splitting_shift, compute_costs)
23621 (init_lower_subreg): New functions.
23622 (resolve_simple_move): Add speed_p argument. Check choices.
23623 (find_pseudo_copy): Don't check the mode size here.
23624 (resolve_simple_move): Assert the mode size.
23625 (find_decomposable_shift_zext): Add speed_p argument and return
23626 a bool. Check choices.
23627 (resolve_shift_zext): Add comment.
23628 (dump_shift_choices, dump_choices): New functions.
23629 (decompose_multiword_subregs): Dump list of profitable
23630 transformations. Add code to skip non profitable transformations.
23631 Update calls to simple_move and find_decomposable_shift_zext.
23633 2012-05-01 Ian Bolton <ian.bolton@arm.com>
23634 Sameera Deshpande <sameera.deshpande@arm.com>
23635 Greta Yorsh <greta.yorsh@arm.com>
23637 * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
23638 (thumb1_unexpanded_epilogue): ...this.
23639 * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
23640 (thumb1_unexpanded_epilogue): ...this.
23641 * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
23642 (thumb1_unexpanded_epilogue): ...this.
23644 2012-05-01 Richard Earnshaw <rearnsha@arm.com>
23646 * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
23647 comparing enumeration values. Update comments.
23649 2012-05-01 Alan Modra <amodra@gmail.com>
23652 * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
23653 load_cr_save, add_crlr_cfa_restore): New functions.
23654 (rs6000_restore_saved_cr): Rename to..
23655 (restore_saved_cr): ..this. Add cfa_restore notes for cr.
23656 (rs6000_emit_epilogue): Use new functions. Adjust condition
23657 for emitting lr and cr cfa_restore. Emit cfa_restores for fp
23658 regs when using out-of-line restore only when shrink wrapping.
23660 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
23662 PR middle-end/53136
23663 * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
23664 calls to cgraph_node_name in xstrdup.
23665 (ipa_make_edge_direct_to_target): Ditto.
23666 * cgraph.c (dump_cgraph_node): Ditto.
23667 * tree-sra.c (convert_callers_for_node): Ditto.
23668 * lto-symtab.c (lto_cgraph_replace_node): Ditto.
23669 * ipa-cp.c (perhaps_add_new_callers): Ditto.
23670 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
23671 (cgraph_materialize_all_clones): Ditto.
23672 * ipa-inline.c (report_inline_failed_reason): Ditto.
23673 (want_early_inline_function_p): Ditto.
23674 (edge_badness): Ditto.
23675 (update_edge_key): Ditto.
23676 (flatten_function): Ditto.
23677 (ipa_inline): Ditto.
23678 (inline_always_inline_functions): Ditto.
23679 (early_inline_small_functions): Ditto.
23681 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
23684 * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
23685 constraints 0 and 1.
23687 012-04-30 Jan Hubicka <jh@suse.cz>
23689 * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
23690 (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
23691 (cgraph_add_to_same_comdat_group): Remove.
23692 (cgraph_add_asm_node): Move to cgraphunit.c.
23693 (cgraph_make_decl_local): Move to symtab.c
23694 (cgraph_make_node_local_1): Update.
23695 (cgraph_can_remove_if_no_direct_calls_and): Update.
23696 (used_from_object_file_p): Update.
23697 (resolution_used_from_other_file_p): Move to symtab.c
23698 (cgraph_used_from_object_file_p): move to symtab.c
23699 (verify_cgraph_node): Verify same comdat groups.
23700 * cgraph.h (cgraph_asm_node): Rename to ...
23701 (asm_node): ... this one.
23702 (cgraph_asm_nodes): Rename to ...
23703 (asm_nodes): ... this one.
23704 (symtab_add_to_same_comdat_group): New function.
23705 (symtab_dissolve_same_comdat_group_list): New function.
23706 (symtab_used_from_object_file_p): Declare.
23707 (symtab_make_decl_local): Declare.
23708 (cgraph_add_to_same_comdat_group): Remove.
23709 (cgraph_add_asm_node): Remove.
23710 (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
23712 (cgraph_finalize_compilation_unit): Rename to ...
23713 (finalize_compilation_unit): ... this one.
23714 (cgraph_optimize): Rename to ....
23715 (compile): ... this one.
23716 (add_asm_node): Declare.
23717 (fixup_same_cpp_alias_visibility): Declare.
23718 (cgraph_make_decl_local): Remove.
23719 (varpool_assemble_pending_decls): Rename to ...
23720 (varpool_output_variables): ... this one.
23721 (varpool_remove_unreferenced_decls): Remove.
23722 * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
23723 (preserve_function_body_p): Make static.
23724 * toplev.c (compile_file): Update comments; update.
23725 * cgraphunit.c: Update comments.
23726 (cgraph_expand_all_functions): Rename to ...
23727 (expand_all_functions): ... this one; update.
23728 (cgraph_mark_functions_to_output): Rename to ...
23729 (mark_functions_to_output): ... this one; cleanup.
23730 (cgraph_output_pending_asms): Remove prototype.
23731 (asm_nodes, asm_last_node): New static vars.
23732 (cgraph_process_new_functions): Update.
23733 (cgraph_reset_node): Cleanup; add comment.
23734 (cgraph_add_new_function): Update.
23735 (cgraph_output_pending_asms): Rename to ...
23736 (output_asm_statements): ... this one.
23737 (add_asm_node): New function.
23738 (fixup_same_cpp_alias_visibility): New function based on code
23739 in cgraph_analyze_function.
23740 (cgraph_analyze_function): Use it.
23741 (cgraph_order_sort): Update.
23742 (cgraph_output_in_order): Update.
23743 (cgraph_function_versioning): Update.
23744 (cgraph_optimize): Rename to ...
23745 (compile): ... this one; initialize streamer hooks here.
23746 (cgraph_finalize_compilation_unit): Rename to ...
23747 (finalize_compilation_unit): ... this one; do not initialize streamer
23749 * lto-streamer-out.c (lto_output_toplevel_asms): Update.
23750 * dwarf2out.c: Update ocmment.
23751 * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
23752 * method.c (use_thunk): Likewise.
23753 * semantics.c (maybe_add_lambda_conv_op): Likewise.
23754 * decl2.c (maybe_emit_vtables): Likewise.
23755 (cp_write_global_declarations): Use finalize_compilation_unit.
23756 * parser.c (cp_parser_asm_definition): Use add_asm_node.
23757 * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
23758 * c-decl.c (c_write_global_declarations): Use
23759 finalize_compilation_unit.
23760 * langhooks.c (write_global_declarations): Update.
23761 * ipa.c (cgraph_externally_visible_p): Update.
23762 (dissolve_same_comdat_group_list): Remove.
23763 (function_and_variable_visibility): Update.
23764 * symtab.c: Inlcude lto-streamer.h and rtl.h
23765 (ld_plugin_symbol_resolution_names): New.
23766 (symtab_add_to_same_comdat_group): New.
23767 (symtab_dissolve_same_comdat_group_list): New.
23768 (resolution_used_from_other_file_p): Move here from cgraph.c
23769 (symtab_used_from_object_file_p): New.
23770 (symtab_make_decl_local): New.
23771 * passes.c (register_pass): Update comments.
23772 * c-parser.c (c_parser_asm_definition): Update.
23773 * varpool.c (varpool_analyze_node): Use
23774 fixup_same_cpp_alias_visibility.
23775 (varpool_remove_unreferenced_decls): Make static.
23776 (varpool_assemble_pending_decls): Rename to ...
23777 (varpool_output_variables): ... this one; call
23778 varpool_remove_unreferenced_decls.
23779 (varpool_used_from_object_file_p): Remove.
23781 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
23784 * c-typeck.c (build_array_ref): Call
23785 convert_vector_to_pointer_for_subscript.
23786 * doc/extend.texi (Vector Extensions): Subscripting not just for C.
23788 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
23790 * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
23791 to compile-time "mode == <MODE>mode" checks.
23792 (and splitter): Ditto.
23794 2012-04-30 Richard Henderson <rth@redhat.com>
23796 * config/arm/arm.md (UNSPEC_LL): New.
23797 * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
23798 (arm_load_exclusivedi): Use %H0.
23800 2012-04-30 Jason Merrill <jason@redhat.com>
23802 * dwarf2out.c (comdat_symbol_id): Add const.
23803 (union die_symbol_or_type_node): Add const to die_symbol.
23804 (output_die_symbol, output_die, output_comp_unit): Adjust.
23806 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
23808 * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
23809 * config/arm/neon.md (negdi2_neon): New insn.
23810 Also add splitters for core and NEON registers.
23812 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
23814 * config/arm/arm.c (neon_valid_immediate): Allow const_int.
23815 (arm_print_operand): Add 'x' format.
23816 * config/arm/constraints.md (Dn): Allow const_int.
23817 * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
23818 Use 'x' format to print constants.
23819 * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
23820 * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
23822 (movdi_vfp_cortexa8): Likewise.
23824 2012-04-30 Ian Bolton <ian.bolton@arm.com>
23825 Sameera Deshpande <sameera.deshpande@arm.com>
23826 Greta Yorsh <greta.yorsh@arm.com>
23828 * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
23829 * config/arm/arm.c (ldm_stm_operation_p): New function.
23830 * config/arm/predicates.md (load_multiple_operation): Update predicate.
23831 (store_multiple_operation): Likewise.
23833 * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
23834 * config/arm/arm.c (ldm_stm_operation_p): New parameters.
23835 * config/arm/predicates.md (load_multiple_operation): Add arguments.
23836 (store_multiple_operation): Likewise.
23838 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
23840 * config/i386/i386.md (and<mode>3): Expand masking operations with
23841 0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
23842 (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
23844 2012-04-30 Dodji Seketeli <dodji@redhat.com>
23846 Add -Wvarargs option
23847 * builtins.c (fold_builtin_next_arg): Use OPT_Wvarargs as an
23848 argument for the various warning_at calls.
23849 * docs/invoke.texi: Update the documentation.
23851 2012-04-30 Dodji Seketeli <dodji@redhat.com>
23853 Switch -ftrack-macro-expansion=2 on by default.
23854 * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
23857 Fix va_start related location
23858 * builtins.c (fold_builtin_next_arg): Unwinds to the first
23859 location in real source code.
23861 Make conversion warnings work on NULL with -ftrack-macro-expansion
23862 * input.h (expansion_point_location_if_in_system_header): Declare
23864 * input.c (expansion_point_location_if_in_system_header): Define it.
23866 Fix -Wuninitialized for -ftrack-macro-expansion
23867 * tree-ssa.c (warn_uninit): Use the spelling location of the variable
23868 declaration. Use linemap_location_before_p for source locations.
23870 Strip "<built-in>" loc from displayed expansion context
23871 * input.c (expand_location_1): When expanding to spelling location
23872 in a context of a macro expansion, skip reserved system header
23873 locations. Update comments. * tree-diagnostic.c
23874 (maybe_unwind_expanded_macro_loc): Likewise.
23876 Make expand_location resolve to locus in main source file
23877 * input.c (expand_location_1): New. Takes a parameter to choose
23878 whether to resolve the location to spelling or expansion point.
23879 Was factorized from ...
23880 (expand_location): ... here.
23881 (expand_location_to_spelling_point): New. Implemented in terms of
23883 * diagnostic.c (diagnostic_build_prefix): Use the new
23884 expand_location_to_spelling_point instead of expand_location.
23886 Fix PCH crash on GTYed pointer-to-scalar field of a struct
23887 * gengtype.c (write_types_process_field): Force second argument of
23888 the call to the PCH object hierarchy walker to be 'x'.
23890 2012-04-30 Eric Botcazou <ebotcazou@adacore.com>
23892 * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
23893 predicate to discriminate types.
23895 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
23897 * doc/invoke.texi (Wmissing-format-attribute): Document as an
23898 alias of Wsuggest-attribute=format.
23899 * c-typeck.c (convert_for_assignment): Replace
23900 Wmissing-format-attribute with Wsuggest-attribute=format.
23901 (digest_init): Likewise.
23903 2012-04-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
23905 * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
23906 * common.opt (Wmissing-noreturn): Alias of
23907 -Wsuggest-attribute=noreturn.
23909 2012-04-29 Hans-Peter Nilsson <hp@axis.com>
23912 * config/cris/cris.md (andqu): New peephole2.
23913 (andu): Tweak head comment.
23915 2012-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
23916 Steven Bosscher <steven@gcc.gnu.org>
23917 Maxim Kuvyrkov <maxim@codesourcery.com>
23919 PR tree-optimization/38785
23920 * common.opt (ftree-partial-pre): New option.
23921 * doc/invoke.texi: Document it.
23922 * opts.c (default_options_table): Initialize flag_tree_partial_pre.
23923 * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
23924 benefit speed path.
23925 (execute_pre): Use flag_tree_partial_pre.
23927 2012-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23930 * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
23933 2012-04-27 Ollie Wild <aaw@google.com>
23935 * doc/invoke.texi (Wliteral-suffix): Document new option.
23937 2012-04-27 Tom Tromey <tromey@redhat.com>
23939 * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
23940 (dwarf_tag_name): Use get_DW_TAG_name.
23941 (dwarf_attr_name): Use get_DW_AT_name.
23942 (dwarf_form_name): Use get_DW_FORM_name.
23943 * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
23945 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
23947 * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
23948 arguments are -1 and 0, by negating the result of the conditional.
23950 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
23953 * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
23955 2012-04-27 Richard Guenther <rguenther@suse.de>
23957 * tree-flow.h (is_hidden_global_store): Remove.
23958 * tree-ssa-sink.c (is_hidden_global_store): Likewise.
23959 * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
23960 (stmt_may_clobber_global_p): Likewise.
23961 * tree-ssa-alias.c (ref_may_alias_global_p): New function.
23962 (stmt_may_clobber_global_p): Likewise.
23963 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
23964 stmt_may_clobber_global_p.
23965 * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
23967 2012-04-27 Steven Bosscher <steven@gcc.gnu.org>
23969 * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
23972 * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
23973 reorganize some fields and update comments. Rename bit_test_uniq
23974 and bit_test_count to uniq resp. count. Remove bit_test_bb.
23975 (collect_switch_conv_info): New function, collects info about a
23976 GIMPLE_SWITCH into a struct switch_conv_info.
23977 (check_range): Simplify to use pre-recorded info. Fix think-o in
23978 range-branch ratio check.
23979 (check_process_case): Remove function.
23980 (check_all_empty_except_final): New function, verifies that all
23981 non-final basic blocks are empty.
23982 (process_switch): Simplify to use pre-recorded info. Call
23983 collect_switch_conv_info to do that. Assert that degenerate switch
23984 statements have been cleaned up.
23986 2012-04-27 Marc Glisse <marc.glisse@inria.fr>
23988 PR middle-end/27139
23989 * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
23991 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
23994 * c-typeck.c (pop_init_level): Use %qD instead of %qT.
23996 2012-04-27 Tom de Vries <tom@codesourcery.com>
23998 PR tree-optimization/51879
23999 * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
24000 * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
24002 (defs_to_varying): ... here. Don't set use_processed.
24003 (visit_reference_op_call): Handle gimple_vdef.
24004 Handle case that lhs is NULL_TREE.
24005 (visit_use): Use mark_use_processed. Handle calls with side-effect
24006 using visit_reference_op_call.
24008 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
24010 * sched-deps.c (fixup_sched_groups): Rename to...
24011 (chain_to_prev_insn): ...this.
24012 (chain_to_prev_insn_p): New function.
24013 (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
24015 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
24017 * sched-int.h (_haifa_insn_data): Move priority_status.
24019 (INSN_MODEL_INDEX): New macro.
24020 * haifa-sched.c (insn_delay): New function.
24021 (sched_regno_pressure_class): Update commentary.
24022 (mark_regno_birth_or_death): Pass the liveness bitmap and
24023 pressure array as arguments, instead of using curr_reg_live and
24024 curr_reg_pressure. Only update the pressure if the bit in the
24025 liveness set has changed.
24026 (initiate_reg_pressure_info): Always trust the live-in set for
24027 SCHED_PRESSURE_MODEL.
24028 (initiate_bb_reg_pressure_info): Update call to
24029 mark_regno_birth_or_death.
24030 (dep_list_size): Take the list as argument.
24031 (calculate_reg_deaths): New function, extracted from...
24032 (setup_insn_reg_pressure_info): ...here.
24033 (MODEL_BAR): New macro.
24034 (model_pressure_data, model_insn_info, model_pressure_limit)
24035 (model_pressure_group): New structures.
24036 (model_schedule, model_worklist, model_insns, model_num_insns)
24037 (model_curr_point, model_before_pressure, model_next_priority):
24039 (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
24040 (MODEL_INSN_INFO, MODEL_INSN): New macros.
24041 (model_index, model_update_limit_points_in_group): New functions.
24042 (model_update_limit_points, model_last_use_except): Likewise.
24043 (model_start_update_pressure, model_update_pressure): Likewise.
24044 (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
24045 (model_excess_cost, model_dump_pressure_points): Likewise.
24046 (model_set_excess_costs): Likewise.
24047 (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
24048 SCHED_PRIORITY_MODEL. Use insn_delay. Use the order in the model
24049 schedule as an alternative tie-breaker. Update the call to
24051 (ready_sort): Call model_set_excess_costs.
24052 (update_register_pressure): Update call to mark_regno_birth_or_death.
24053 Rely on that function to check liveness rather than doing it here.
24054 (model_classify_pressure, model_order_p, model_add_to_worklist_at)
24055 (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
24056 (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
24057 (model_record_pressure, model_record_pressures): New functions.
24058 (model_record_final_pressures, model_add_successors_to_worklist)
24059 (model_promote_predecessors, model_choose_insn): Likewise.
24060 (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
24061 (model_start_schedule, model_finalize_pressure_group): Likewise.
24062 (model_end_schedule): Likewise.
24063 (schedule_insn): Say when we're scheduling the next instruction
24064 in the model schedule.
24065 (schedule_insn): Handle SCHED_PRESSURE_MODEL.
24066 (queue_to_ready): Do not add instructions that are
24067 MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
24068 Always allow the next instruction in the model schedule to be added.
24069 (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
24070 and delay for SCHED_PRESSURE_MODEL too.
24071 (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
24072 SCHED_PRIORITY_MODEL, but also take the DFA into account.
24073 (schedule_block): Call model_start_schedule and model_end_schedule.
24074 Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
24075 (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
24076 to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
24078 (sched_finish): Update accordingly.
24079 (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
24080 to SCHED_PRESSURE_MODEL.
24081 (add_jump_dependencies): Update call to dep_list_size.
24082 (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
24083 (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
24084 to SCHED_PRESSURE_MODEL.
24085 * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
24086 allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
24087 (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
24088 handling to SCHED_PRESSURE_MODEL.
24090 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
24092 * common.opt (fsched-pressure-algorithm=): New option.
24093 * flag-types.h (sched_pressure_algorithm): New enum.
24094 * sched-int.h (sched_pressure_p): Replace with...
24095 (sched_pressure): ...this new variable.
24096 * haifa-sched.c (sched_pressure_p): Replace with...
24097 (sched_pressure): ...this new variable.
24098 (sched_regno_pressure_class, rank_for_schedule, ready_sort)
24099 (update_reg_and_insn_max_reg_pressure, schedule_insn)
24100 (debug_ready_list, prune_ready_list, schedule_block, sched_init)
24101 (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
24102 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
24103 (sched_analyze_insn): Likewise.
24104 * sched-rgn.c (schedule_region): Likewise.
24105 * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
24107 2012-04-26 Bernd Schmidt <bernds@codesourcery.com>
24109 PR middle-end/52997
24110 * ira.c (find_moveable_pseudos): Call resize_reg_info.
24112 PR middle-end/52940
24113 * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
24114 * expr.c (convert_move): Honor unsignedp when extending partial int
24116 * genmodes.c (complete_mode): Don't clear component field of partial
24118 (emit_mode_inner): Don't emit it however.
24119 (calc_wider_mode): Partial int modes widen to their component.
24121 2012-04-26 David S. Miller <davem@davemloft.net>
24123 * config/sparc/niagara4.md: New file.
24124 * config/sparc/sparc.md: Include it.
24125 * config/sparc/sparc.c (niagara4_costs): New processor costs.
24126 (sparc_option_override): Use it.
24127 (sparc_use_sched_lookahead): Return 2 for niagara4.
24128 (sparc_issue_rate): Likewise.
24130 * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
24131 (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
24132 (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
24133 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
24134 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
24135 alignaddrldi_vis): Set type to gsr.
24136 (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
24137 (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
24138 cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
24139 v<vis3_shift_patname><mode>3, fmean16_vis,
24140 fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
24141 fucmp<code>8<P:mode>_vis): Set type to fga.
24142 * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
24143 * config/sparc/niagara.md: Likewise.
24144 * config/sparc/niagara2.md: Likewise.
24145 * config/sparc/ultra3.md: Likewise, and fix type matching for
24146 us3_ialuX reservation.
24148 2012-04-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24150 * reload.c (find_reloads): Change the loop nesting when trying an
24151 alternative with swapped operands.
24153 2012-04-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
24155 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
24156 comment. Delete unused parameter first_exp_point_map.
24157 (virt_loc_aware_diagnostic_finalizer): Update call.
24159 2012-04-26 Michael Hope <michael.hope@linaro.org>
24160 Richard Earnshaw <rearnsha@arm.com>
24162 * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
24163 (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
24164 (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
24165 (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
24167 2012-04-25 Sriraman Tallam <tmsriram@google.com>
24169 * doc/extend.texi: Document avx2 support.
24170 * config/i386/i386.c (fold_builtin_cpu): Add avx2.
24172 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
24175 * config/cris/cris.md ("*andhi_lowpart_v32")
24176 ("*andqi_lowpart_v32"): Change first input-only operand from
24177 a (match_operand ...) to (match_dup 0). Drop alternatives with
24178 const_int-matching constraints for redundancy.
24179 ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto. Drop
24180 three-operand alternative.
24182 2012-04-25 Jakub Jelinek <jakub@redhat.com>
24185 * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
24186 instead expand it as zero extension.
24188 2012-04-25 H.J. Lu <hongjiu.lu@intel.com>
24191 * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
24193 2012-04-25 Jakub Jelinek <jakub@redhat.com>
24195 * common.opt (flag_debug_types_section): Default to 0.
24196 (dwarf_version): Default to 4.
24197 (dwarf_record_gcc_switches): Default to 1.
24198 (dwarf_strict): Default to 0.
24199 * toplev.c (process_options): Don't handle dwarf_strict
24200 or dwarf_version here.
24201 * config/vxworks.c (vxworks_override_options): Don't
24202 test whether dwarf_strict or dwarf_version are negative,
24203 instead test !global_options_set.x_dwarf_*.
24204 * config/darwin.c (darwin_override_options): Default to
24206 * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
24207 and -fno-debug-types-section are now the default.
24209 2012-04-25 Jan Hubicka <jh@suse.cz>
24211 * cgraphunit.c: Update toplevel comment.
24212 (tree_rest_of_compilation): Merge into cgraph_expand_function.
24213 (cgraph_analyze_function): Make static.
24214 (cgraph_decide_is_function_needed): Make static.
24215 (cgraph_add_new_function): Use expand_function instead of
24216 rest_of_compilation.
24217 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
24218 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
24220 (cgraph_inline_p): Remove.
24221 (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
24222 (init_cgraph): Add comment.
24223 * cgraphbuild.c (record_reference, mark_address, mark_load,
24224 mark_store): Do not call analyze_expr hook.
24225 * cgraph.c: Update toplevel comment.
24226 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
24227 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
24228 Move fere from cgraphunit.c
24229 (cgraph_mark_force_output_node): Move to cgraph.h
24230 * cgraph.h: Reorder so the comments match the function placement.
24231 (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
24232 (cgraph_mark_force_output_node): Move here from cgraph.c
24233 * tree.c (free_lang_data): Do not clear analyze_expr hook.
24234 * ipa-inline-transform.c (preserve_function_body_p): New function.
24235 (inline_transform): Update.
24236 * langhooks.c (lhd_callgraph_analyze_expr): Remove.
24237 * langhooks.h (lang_hooks_for_callgraph): Remove.
24238 (lang_hooks): Remove callgraph.
24239 * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
24240 * varpool.c: Remove out of date comment.
24241 * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
24242 (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
24244 2012-04-25 Jan Hubicka <jh@suse.cz>
24246 PR middle-end/53089
24247 * cgraphunit.c (referred_to_p): Move ahead in file to avoid
24248 forward declaration.
24249 (cgraph_finalize_function): Finalize them here.
24250 * symtab.c (dump_symtab): Dump ctors and dtors.
24252 2012-04-25 Jakub Jelinek <jakub@redhat.com>
24254 PR middle-end/52979
24255 * stor-layout.c (get_best_mode): Don't return mode with bitsize
24256 larger than maxbits. Don't compute maxbits modulo align.
24257 Also check that unit bytes long store at bitpos / unit * unit
24258 doesn't affect bits beyond bitregion_end.
24259 * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
24260 would not fit into bitregion_start ... bitregion_end + 1 bit region.
24261 (store_split_bit_field): Decrease unit close to end of bitregion_end
24262 if access is restricted in order to avoid mutual recursion.
24264 PR tree-optimization/53058
24265 * double-int.h (double_int_max_value, double_int_min_value): New
24267 * double-int.c (double_int_max_value, double_int_min_value): New
24269 * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
24270 or GT_EXPR with double_int_max_value instead of double_int_mask.
24272 2012-04-25 Richard Guenther <rguenther@suse.de>
24274 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
24275 * tree-vect-loop.c (vect_transform_loop): Adjust.
24276 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
24277 the maximum number of iterations for the epilogue loop.
24278 (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
24280 2012-04-25 Jakub Jelinek <jakub@redhat.com>
24283 * c-typeck.c (set_nonincremental_init,
24284 set_nonincremental_init_from_string): Pass true instead of false
24285 as IMPLICIT to add_pending_init.
24287 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
24289 * c-typeck.c (pop_init_level): Improve diagnostics.
24291 2012-04-25 Uros Bizjak <ubizjak@gmail.com>
24293 * compare-elim.c (try_eliminate_compare): Also handle operands with
24294 implicit extensions.
24296 2012-04-25 Alan Modra <amodra@gmail.com>
24298 * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
24299 V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
24300 SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
24301 (no_global_regs_above): Delete.
24302 (no_global_regs): New function.
24303 (rs6000_savres_strategy): Handle vector regs. Use proper lr_save_p
24304 value for load multiple test.
24305 (savres_routine_syms): Increase size.
24306 (rs6000_savres_routine_name, rs6000_savres_routine_sym,
24307 ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
24308 rather than a number of boolean flags. Update all callers.
24309 (rs6000_savres_routine_name): Generate vector save/restore names.
24310 (rs6000_savres_routine_sym): Handle vector regs. Delete forward decl.
24311 (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
24312 (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
24313 and using_store_multiple. Expand uses. Don't always use r11 as
24314 frame reg when needed for out-of-line saves. Set up initial offset
24315 for out-of-line vector saves when buying stack frame. Handle pointer
24316 reg setup for out-of-line fp save. Emit call to out-of-line vector
24317 save function. Choose r11 or r12 for vrsave reg when available for
24319 (rs6000_output_function_prologue): Don't emit .extern for ELF.
24320 (rs6000_emit_epilogue): Choose a better frame reg when restoring
24321 from back-chain to suit out-of-line vector restore functions. Emit
24322 call to out-of-line vector restore function. Adjust register used
24323 for cr restore. Tweak pointer register setup for gpr restore.
24324 * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
24326 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
24327 (V_SAVE_INLINE): Define.
24328 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
24330 2012-04-25 Alan Modra <amodra@gmail.com>
24332 * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
24333 out-of-line save/restore for large frames. Don't disable
24334 out-of-line saves on ABI_AIX when using static chain reg.
24335 (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
24336 clobber static chain reg, and tweak for out-of-line gpr saves
24339 2012-04-25 Alan Modra <amodra@gmail.com>
24341 * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
24342 (rs6000_emit_prologue): Use the above to catch register overlap.
24344 2012-04-25 Alan Modra <amodra@gmail.com>
24346 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
24347 decl. Move logic selecting update reg to callers. Update all callers.
24348 (rs6000_emit_allocate_stack): Add copy_off param.
24349 (emit_frame_save): Don't handle reg+reg addressing.
24350 (ptr_regno_for_savres): New function, extracted from..
24351 (rs6000_emit_savres_rtx): ..here. Add lr_offset param.
24352 (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
24353 Set frame_reg_rtx to r11 whenever r11 is needed, and merge
24354 frame offset adjustment for out-of-line save with copy from sp.
24355 Simplify condition controlling whether cr is saved early or
24356 late. Use ptr_regno_for_savres to verify correct reg is set
24357 up for out-of-line saves. Pass the actual pointer reg used to
24358 rs6000_emit_savres_rtx so rtl matches insns in out-of-line
24359 function. Rearrange spe vars so code is similar to that
24360 elsewhere in this function. Don't update frame_off when spe
24361 save code will restore r11. Use emit_frame_save for spe and
24362 gpr saves. Consolidate darwin out-of-line gpr setup with that
24363 for other abis. Don't assume frame_offset is zero and frame
24364 reg is sp when setting up altivec reg saves, and calculate
24365 exact offset requirement.
24366 (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off. Tidy
24367 spe restore code. Consolidate darwin out-of-line gpr setup
24368 with that for other abis.
24370 2012-04-25 Alan Modra <amodra@gmail.com>
24372 * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
24373 REG_FRAME_RELATED_EXPR note when the instruction exactly matches
24375 (emit_frame_save): Delete frame_ptr param. Rename total_size to
24377 (rs6000_emit_prologue): Add sp_off. Update rs6000_frame_related
24378 and emit_frame_save calls. Cope with possibly missing note.
24380 2012-04-24 Sriraman Tallam <tmsriram@google.com>
24382 * config/i386/i386.c (build_processor_model_struct): New function.
24383 (make_var_decl): New function.
24384 (fold_builtin_cpu): New function.
24385 (ix86_fold_builtin): New function.
24386 (make_cpu_type_builtin): New function.
24387 (ix86_init_platform_type_builtins): New function.
24388 (ix86_expand_builtin): Expand new builtins by folding them.
24389 (ix86_init_builtins): Make new builtins to detect CPU type.
24390 (TARGET_FOLD_BUILTIN): New macro.
24391 (IX86_BUILTIN_CPU_INIT): New enum value.
24392 (IX86_BUILTIN_CPU_IS): New enum value.
24393 (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
24394 * config/i386/i386-builtin-types.def: New function type.
24395 * doc/extend.texi: Document builtins.
24397 2012-04-24 Olivier Hainque <hainque@adacore.com>
24399 * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
24400 * toplev.c (process_options): Default to dwarf_version 2.
24401 * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
24402 and dwarf_version 2.
24404 2012-04-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
24406 * tree-pretty-print.h (default_tree_printer): Do not declare.
24407 * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
24409 (default_tree_diagnostic_starter): Make static.
24410 (default_tree_printer): Move to here. Make static.
24411 (tree_diagnostics_defaults): New.
24412 * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
24413 * tree.c (free_lang_data): Use tree_diagnostics_defaults.
24414 * toplev.c: Do not include tree-pass.h.
24415 (default_tree_printer): Move from here.
24416 (general_init): Use tree_diagnostics_defaults.
24418 2012-04-24 Chao-ying Fu <fu@mips.com>
24420 * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
24421 (mips*-*-linux*): Append mips/linux-common.h to tm_file.
24422 * config/mips/gnu-user.h
24423 (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
24424 (GNU_USER_TARGET_LINK_SPEC): New define.
24425 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
24426 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
24427 (GNU_USER_TARGET_MATHFILE_SPEC): New define.
24428 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
24429 GNU_USER_TARGET_ENDFILE_SPEC.
24430 * config/mips/gnu-user64.h (LIB_SPEC): Remove.
24431 (GNU_USER_TARGET_LINK_SPEC): New define.
24432 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
24433 * config/mips/linux-common.h: New file.
24435 2012-04-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24438 * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
24439 (altivec_build_resolved_builtin): Call fully_fold_convert.
24441 2012-04-24 Georg-Johann Lay <avr@gjlay.de>
24444 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
24446 2012-04-24 Richard Guenther <rguenther@suse.de>
24448 PR tree-optimization/53085
24449 * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
24452 2012-04-24 Richard Guenther <rguenther@suse.de>
24454 * tree-if-conv.c (main_tree_if_conversion): Move bb under
24457 2012-04-24 Jim Meyering <meyering@redhat.com>
24459 * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
24460 absence of an define_enum call.
24462 2012-04-24 Richard Guenther <rguenther@suse.de>
24464 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
24465 the epilogue loop is not re-used as unvectorized version
24466 record the its maximum number of iterations.
24468 2012-04-24 Andrew Pinski <apinski@cavium.com>
24470 * tree-ssa-forwprop.c (simplify_bitwise_binary):
24471 Don't directly use def1/def2.
24473 2012-04-24 Richard Guenther <rguenther@suse.de>
24475 PR tree-optimization/53098
24476 * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
24479 2012-04-24 Andrew Pinski <apinski@cavium.com>
24482 * tree-ssa-forwprop.c (defcodefor_name): New function.
24483 (simplify_bitwise_binary): Use defcodefor_name instead of manually
24484 Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
24485 Simplify "(~X | Y) & X" to "X & Y" and
24486 "(~X & Y) | X" to "X | Y".
24488 2012-04-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24490 * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
24491 validate_change to add clobbers if IN_GROUP is nonzero.
24492 (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
24493 * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
24495 * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
24497 * config/s390/s390.c (insn_invalid_p): Likewise.
24499 2012-04-24 Jakub Jelinek <jakub@redhat.com>
24501 PR middle-end/53084
24502 * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
24503 (output_addressed_constants): Likewise.
24505 PR middle-end/52999
24506 * varasm.c (get_section): Don't ICE for section conflicts with
24507 built-in section kinds.
24509 2012-04-23 DJ Delorie <dj@redhat.com>
24511 * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
24512 (LIBSTDCXX): Change to CPP2.
24514 2012-04-23 H.J. Lu <hongjiu.lu@intel.com>
24517 * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
24520 2012-04-23 Uros Bizjak <ubizjak@gmail.com>
24522 * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
24523 (*addsi_2_zext): Ditto.
24524 (*add<mode>_3): Ditto.
24525 (*addsi_3_zext): Ditto.
24526 (*add<mode>_5): Ditto.
24528 2012-04-23 Andrew Pinski <apinski@cavium.com>
24530 * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
24531 (C & B) to (A OP0) & B.
24533 2012-04-23 Martin Jambor <mjambor@suse.cz>
24535 * expr.c (expand_expr_real_1): Remove setting parent's alias set for
24536 temporaries created for a bitfield (reverting revision 122014).
24538 2012-04-23 Richard Guenther <rguenther@suse.de>
24540 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
24541 the condition using is_gimple_condexpr and avoid the not necessary
24543 (set_prologue_iterations): Likewise.
24544 (vect_loop_versioning): Likewise.
24546 2012-04-23 Richard Guenther <rguenther@suse.de>
24548 PR tree-optimization/53070
24549 * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
24550 (main_tree_if_conversion): Verify we succeeded in that.
24552 2012-04-23 Jan Hubicka <jh@suse.cz>
24554 * lto-symtab.c (lto_cgraph_replace_node): Do not call
24555 mark_reahcable_node.
24556 * cgraph.c (cgraph_remove_node): Do not clear reachable.
24557 (cgraph_mark_reachable_node): Remove.
24558 (cgraph_mark_force_output_node): Do not set reachable.
24559 (dump_cgraph_node): Do not dump reachable.
24560 (cgraph_create_virtual_clone): Do not set reachable.
24561 * cgraph.h (cgraph_node): Remove reachable flag.
24562 (varpool_node): Remove reachable flag.
24563 (cgraph_mark_if_needed): Remove.
24564 (cgraph_mark_reachable_node): Remove.
24565 * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
24566 * cgraphunit.c (cgraph_finalize_function): Do not mark node as
24568 (cgraph_add_new_function): Likewise.
24569 (cgraph_mark_if_needed): Remove.
24570 (cgraph_analyze_function): Do not set target as reachable.
24571 (process_function_and_variable_attributes): Do not care about
24573 (cgraph_analyze_functions): Do not set reachable flags.
24574 (cgraph_mark_functions_to_output): Do not check reachability.
24575 (cgraph_copy_node_for_versioning): Do not set reachable flag.
24576 (dbxout_expand_expr): Update.
24577 * c-decl.c (merge_decls): Do not track changed externs.
24578 * ipa.c: Include pointer-set.h
24579 (enqueue_cgraph_node): Use reachable pointer set.
24580 (process_references): Likewise.
24581 (cgraph_remove_unreachable_nodes): Likewise.
24582 (whole_program_function_and_variable_visibility): Do not recompute
24584 * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
24586 2012-04-23 Georg-Johann Lay <avr@gjlay.de>
24588 * doc/extend.texi (AVR Named Address Spaces): Fix typos.
24590 2012-04-23 Richard Guenther <rguenther@suse.de>
24593 * c-typeck.c (build_binary_op): Fix typo.
24595 2012-04-23 Jakub Jelinek <jakub@redhat.com>
24597 PR tree-optimizations/52891
24598 * tree-vect-patterns.c (adjust_bool_pattern): Use
24599 build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
24600 but with non-standard precision.
24602 2012-04-22 Jan Hubicka <jh@suse.cz>
24604 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
24607 2012-04-22 Jan Hubicka <jh@suse.cz>
24609 * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
24610 * cgraphbuild.c (record_reference, record_type_list, mark_address,
24611 mark_load, mark_store): Do not mark varpool nodes as needed.
24612 * cgraph.c (cgraph_new_nodes): Remove.
24613 (cgraph_create_function_alias): Do not mark nodes as reachable.
24614 (cgraph_add_thunk): Likewise.
24615 (cgraph_mark_reachable_node): Do not manage the queue.
24616 * cgraph.h (cgraph_node): Remove next_needed.
24617 (varpool_nodes_queue): Remove next_needed and prev_needed.
24618 (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
24619 (cgraph_new_nodes): Declare.
24620 (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
24621 (varpool_analyze_pending_decls): Remove.
24622 (varpool_analyze_node): New.
24623 (varpool_mark_needed_node): Remove.
24624 (varpool_first_variable, varpool_next_variable): New inlines.
24625 (varpool_first_static_initializer, varpool_next_static_initializer):
24627 (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
24628 (varpool_first_defined_variable): New inline.
24629 (varpool_next_defined_variable): New inline
24630 (FOR_EACH_VARIABLE): Reimplement.
24631 (FOR_EACH_DEFINED_VARIABLE): Reimplement.
24632 * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
24634 * cgraphunit.c (cgraph_new_nodes): Declare here.
24635 (enqueue_node): New function.
24636 (cgraph_process_new_functions): update for new
24637 node set; when constructing cgraph enqueue node for processing.
24638 (cgraph_add_new_function): Use new node set.
24639 (process_function_and_variable_attributes): Do not set varpool needed
24641 (referred_to_p): New function.
24642 (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
24643 when varpool is in construction.
24644 (cgraph_analyze_functions): Rewrite.
24645 (cgraph_expand_all_functions): Update.
24646 (cgraph_output_in_order): Do not analyze pending decls; do not set
24648 (cgraph_optimize): Do not analyze pending decls.
24649 * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
24650 in other partition; do not mark node as needed.
24651 * dwarf2out.c (reference_to_unused): Use analyzed flag.
24652 (premark_types_used_by_global_vars_helper): Likewise.
24653 * ipa.c (process_references): Do not call varpool_mark_needed_node.
24654 (cgraph_remove_unreachable_nodes): Do not rely on varpool and
24656 (function_and_variable_visibility): Do not mark node as needed.
24657 (whole_program_function_and_variable_visibility): Likewise.
24658 * Makefile.in (gt-varpool.h): No longer needed.
24659 * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
24660 (ipa_write_summaries): Do not use needed flag.
24661 * varpool.c: Do not include gt-varpool.h
24662 (x_varpool_nodes_queue, x_varpool_last_needed_node,
24663 x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
24664 x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
24666 (varpool_remove_node): Do not update the lists.
24667 (dump_varpool_node): Do not dump needed flag.
24668 (varpool_enqueue_needed_node): Remove.
24669 (varpool_mark_needed_node): Remove.
24670 (varpool_reset_queue): Remove.
24671 (varpool_finalize_decl): Move to cgraphunit.c
24672 (varpool_analyze_node): New functions based on former
24673 varpool_analyze_pending_decls.
24674 (varpool_analyze_pending_decls): Remove.
24675 (varpool_assemble_decl): Do not update the lists.
24676 (enqueue_node): New function.
24677 (varpool_remove_unreferenced_decls): Rewrite.
24678 (varpool_empty_needed_queue): Remove.
24679 (add_new_static_var): Do not mark node as needed.
24680 (varpool_create_variable_alias): Handle expansion state
24682 * except.c (output_ttype): Do not mark node as needed.
24683 * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
24684 * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
24686 * tree-switch-conversion.c (build_one_array): Likewise.
24688 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
24691 * doc/invoke.texi (pedantic): Rename to Wpedantic.
24692 * common.opt (Wpedantic): New.
24693 (pedantic): Alias Wpedantic.
24694 * diagnostic.c (warning_at): Likewise.
24695 * c-decl.c (diagnose_mismatched_decls): Likewise.
24696 (build_array_declarator): Likewise.
24697 (mark_forward_parm_decls):
24698 (check_bitfield_type_and_width): Likewise.
24699 (grokdeclarator): Likewise.
24700 (grokfield): Likewise.
24701 (finish_struct): Likewise.
24702 (build_enumerator): Likewise.
24703 (store_parm_decls_oldstyle): Likewise.
24704 (declspecs_add_qual): Likewise.
24705 (declspecs_add_type): Likewise.
24706 (finish_declspecs): Likewise.
24707 * c-typeck.c (composite_type): Likewise.
24708 (comp_target_types): Likewise.
24709 (build_array_ref): Likewise.
24710 (pointer_diff): Likewise.
24711 (build_unary_op): Likewise.
24712 (build_conditional_expr): Likewise.
24713 (build_c_cast): Likewise.
24714 (convert_for_assignment): Likewise.
24715 (maybe_warn_string_init): Likewise.
24716 (digest_init): Likewise.
24717 (pop_init_level): Likewise.
24718 (set_init_index): Likewise.
24719 (c_finish_goto_label): Likewise.
24720 (c_finish_return): Likewise.
24721 (do_case): Likewise.
24722 (build_binary_op): Likewise.
24723 * c-parser.c (static): Likewise.
24724 (c_parser_external_declaration): Likewise.
24725 (c_parser_declaration_or_fndef): Likewise.
24726 (c_parser_static_assert_declaration_no_se): Likewise.
24727 (c_parser_enum_specifier): Likewise.
24728 (c_parser_struct_or_union_specifier): Likewise.
24729 (c_parser_struct_declaration): Likewise.
24730 (c_parser_alignas_specifier): Likewise.
24731 (c_parser_braced_init): Likewise.
24732 (c_parser_initelt): Likewise.
24733 (c_parser_compound_statement_nostart): Likewise.
24734 (c_parser_conditional_expression): Likewise.
24735 (c_parser_alignof_expression): Likewise.
24736 (c_parser_postfix_expression): Likewise.
24737 (c_parser_postfix_expression_after_paren_): Likewise.
24738 (c_parser_objc_class_instance_variables): Likewise.
24739 (c_parser_objc_method_definition): Likewise.
24740 (c_parser_objc_methodprotolist): Likewise.
24742 2012-04-22 Ian Lance Taylor <iant@google.com>
24744 * godump.c (go_output_typedef): Dump size of structs.
24746 2012-04-22 Razya Ladelsky <razya@il.ibm.com>
24748 Correcting transform_to_exit_first_loop + fix to PR46886
24749 * tree-parloops.c (transform_to_exit_first_loop): Remove
24750 setting of number of iterations according to the loop pattern.
24751 Duplicate from entry to exit->src instead of loop->latch.
24752 (pallelize_loops): Remove the condition preventing do-while loops.
24753 * tree-cfg.c (bool bb_in_region_p): New.
24754 (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
24755 Adjust redirection of the duplicated iteration.
24757 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
24760 * rtl.def (ADDRESS): Use "i" rather than "w".
24761 * rtl.h (find_base_term): Delete.
24762 (may_be_sp_based_p): Declare.
24763 * rtl.c (rtx_code_size): Remove ADDRESS special case.
24764 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
24765 (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
24766 * alias.c: ...here.
24767 (find_base_term): Make static.
24768 (may_be_sp_based_p): New function.
24769 * dse.c (record_store): Use it.
24770 * store-motion.c (store_killed_in_insn): Likewise.
24772 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
24774 * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
24776 2012-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
24779 * c-typeck.c (inform_declaration): New.
24780 (build_function_call_vec): Do not pretty-print
24781 expressions when caret is enabled.
24782 (convert_arguments): Use inform_declaration.
24784 2012-04-20 Jim Meyering <meyering@redhat.com>
24786 * genmodes.c (make_complex_modes): Don't truncate a mode name of
24787 length 7 or more when prepending a "C". Suggested by Richard Guenther.
24789 2012-04-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24791 PR rtl-optimization/44214
24792 * fold-const.c (exact_inverse): New function.
24793 (fold_binary_loc): Fold vector and complex division by constant into
24794 multiply by recripocal with flag_reciprocal_math; fold vector division
24795 by constant into multiply by reciprocal with exact inverse.
24797 2012-04-20 Jan Hubicka <jh@suse.cz>
24799 * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
24801 * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
24802 (cgraph_remove_node): Update.
24803 (cgraph_mark_needed_node): Remove.
24804 (cgraph_mark_force_output_node): New.
24805 (dump_cgraph_node): Do not dump needed flag.
24806 (cgraph_node_cannot_be_local_p_1): Update.
24807 (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
24808 * cgraph.h (symtab_node_base): Add force_output flag.
24809 (cgraph_node): Remove needed flag.
24810 (varpool_node): Remove force_output flag.
24811 (cgraph_mark_needed_node): Remove.
24812 (cgraph_mark_force_output_node): New.
24813 (cgraph_only_called_directly_or_aliased_p,
24814 varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
24815 * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
24816 * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
24817 (cgraph_add_new_function): Update.
24818 (cgraph_mark_if_needed): Update.
24819 (verify_cgraph_node): Update.
24820 (cgraph_analyze_function): Alias target is reachable.
24821 (process_function_and_variable_attributes): Update: externally_visible
24822 flag makes function reachable.
24823 (cgraph_analyze_functions): Update dumping.
24824 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
24825 input_overwrite_node, input_varpool_node): Update streaming.
24826 * lto-streamer-out.c (produce_symtab): Use force_output.
24827 * ipa.c (process_references): Weakrefs must be processed.
24828 (cgraph_remove_unreachable_nodes): Likewise; update for new
24830 (varpool_externally_visible_p): Weakrefs are externally visible
24831 even if they are not.
24832 (function_and_variable_visibility): Update; when processing alias
24833 pair force the targets to be output.
24834 (whole_program_function_and_variable_visility): Use
24835 mark_reachable_node.
24836 * trans-mem.c (ipa_tm_mark_needed_node): Remove
24837 (ipa_tm_mark_force_output_node): New function.
24838 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
24839 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
24841 * varasm.c (mark_decl_referenced): Update.
24842 (find_decl_and_mark_needed): Remove.
24843 (find_decl): New function.
24844 (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
24845 alias targets as needed.
24846 (dump_tm_clone_pairs): Update.
24847 * tree-inline.c (copy_bb): Update check.
24848 * symtab.c (dump_symtab_base): Dump force_output.
24849 * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
24850 * passes.c (execute_todo): Fix dumping.
24851 * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
24852 (varpool_analyze_pending_decls): Alias target is reachable.
24853 (varpool_create_variable_alias): Finalize weakrefs.
24855 2012-04-20 Jakub Jelinek <jakub@redhat.com>
24858 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
24859 UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
24860 * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
24861 macros instead of constants.
24862 * dse.c (record_store): Check for SP ADDRESS by comparing
24863 XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
24864 XEXP to be stack_pointer_rtx.
24866 2012-04-20 Richard Guenther <rguenther@suse.de>
24868 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
24869 update_call_from_tree when propagating into a call.
24871 2012-04-20 Alan Modra <amodra@gmail.com>
24873 * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
24874 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise. Rename
24875 sp_offset to frame_off. Move world save code earlier.
24877 2012-04-20 Richard Guenther <rguenther@suse.de>
24879 PR tree-optimization/53050
24880 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
24881 Do only one transform on COND_EXPRs at the same time.
24883 2012-04-19 Jan Hubicka <jh@suse.cz>
24885 * symtab.c (dump_symtab_base): Revert accidental checkin.
24887 2012-04-20 Alan Modra <amodra@gmail.com>
24890 * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
24891 static chain, set REST_INLINE_FPRS too.
24893 2012-04-20 Thomas Schwinge <thomas@codesourcery.com>
24895 * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
24898 2012-04-20 Richard Guenther <rguenther@suse.de>
24900 * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
24901 loops that can never run more often than the vectorization factor.
24903 2012-04-19 Jan Hubicka <jh@suse.cz>
24905 * symtab.c (dump_symtab_base): Fix dumping of asm lists.
24907 2012-04-19 David Edelsohn <dje.gcc@gmail.com>
24909 * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
24911 2012-04-19 Jim Meyering <meyering@redhat.com>
24913 * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
24914 We verified above that the string(including trailing NUL) fits in buf,
24915 so just use memcpy.
24917 2012-04-19 Richard Guenther <rguenther@suse.de>
24919 * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
24920 for dumping DECL_SECTION_NAME.
24922 2012-04-19 Michael Matz <matz@suse.de>
24924 PR middle-end/52977
24925 * tree.h (VECTOR_CST_NELTS): Use part number of types again.
24926 (struct tree_vector): Adjust GTY length.
24927 * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
24929 * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
24931 (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
24932 caller emitted the length calulation already.
24933 (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
24934 before handling any of the fields for structs.
24936 2012-04-19 Richard Guenther <rguenther@suse.de>
24938 PR tree-optimization/53031
24939 * tree-vrp.c (adjust_range_with_scev): Revert back to
24940 using max_loop_iterations.
24942 2012-04-19 Michael Matz <matz@suse.de>
24944 * diagnostic.c (emit_diagnostic): Move va_end call after user
24946 (warning, warning_at, pedwarn, permerror): Ditto.
24948 2012-04-19 Richard Guenther <rguenther@suse.de>
24950 * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
24953 2012-04-19 Georg-Johann Lay <avr@gjlay.de>
24956 * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
24957 the case *(X+const).
24959 2012-04-19 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
24961 * config/arm/sync.md (sync_optab): Change ior attribute to "or".
24963 2012-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
24966 * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
24967 * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
24969 2012-04-19 Richard Guenther <rguenther@suse.de>
24971 PR rtl-optimization/44688
24972 * loop-iv.c (determine_max_iter): Only return max_iter.
24973 (iv_number_of_iterations): Also use the recorded loop bound
24974 on the maximum number of iterations.
24975 * loop-unroll.c (decide_unroll_runtime_iterations): Use
24976 max_iter to avoid unrolling loops that do not roll.
24977 (decide_unroll_stupid): Likewise.
24979 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
24981 * targhooks.c (default_case_values_threshold): Fix code style nit.
24983 * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
24984 case range and type folding from here...
24985 * gimplify.c (gimplify_switch_expr): ... to here. Expect NULL_TREE
24986 type, as documented in tree.def.
24988 2012-04-18 Jan Hubicka <jh@suse.cz>
24990 * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
24992 * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
24993 cgraph hash and same comdat groups.
24994 (cgraph_optimize): Verify symbol table.
24995 * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
24996 (dissolve_same_comdat_group_list): Work on symtab nodes.
24997 (function_and_variable_visibility): Dissolve variable same comdat group
24999 * symtab.c: Include timevar.h
25000 (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
25002 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
25004 * tree-switch-conversion.c (info): Remove global pass info.
25005 (check_range, check_process_case, check_final_bb, create_temp_arrays,
25006 free_temp_arrays, gather_default_values, build_constructors,
25007 array_value_type, build_one_array, build_arrays, gen_def_assigns,
25008 fix_phi_nodes, gen_inbound_check): Pass info around from ...
25009 (process_switch): ... here. Unify message format. Return a const
25010 char pointer to the failure reason message.
25011 (do_switchconv): Unify message format. Update process_switch usage.
25013 * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
25014 * tree-cfg.c (edge_to_cases): Fix documentation.
25016 2012-04-18 Uros Bizjak <ubizjak@gmail.com>
25018 * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
25020 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25022 PR tree-optimization/52976
25023 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
25024 (possibly_move_powi): New function.
25025 (rewrite_expr_tree): Call possibly_move_powi.
25026 (rewrite_expr_tree_parallel): Likewise.
25027 (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
25028 call add_to_ops_vec instead.
25030 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25032 PR tree-optimization/52976
25033 * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
25034 (decrement_power): Likewise.
25035 (propagate_op_to_single_use): Likewise.
25036 (zero_one_operation): Handle __builtin_pow* calls in linearized
25037 expression trees; factor logic into propagate_op_to_single_use.
25038 (undistribute_ops_list): Allow operands with repeat counts > 1.
25040 2012-04-18 Richard Guenther <rguenther@suse.de>
25042 PR tree-optimization/44688
25043 * cfgloop.h (record_niter_bound): Declare.
25044 * tree-ssa-loop-niter.c (record_niter_bound): Export.
25045 Update the estimation with the upper bound here...
25046 (estimate_numbers_of_iterations_loop): ... instead of here.
25047 Do not forcefully reset a recorded upper bound.
25048 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
25049 Record the maximum number of loop iterations of the prologue loop.
25051 2012-04-18 Jan Hubicka <jh@suse.cz>
25053 * lto-symtab.c (lto_cgraph_replace_node): Update.
25054 * cgraphbuild.c (record_reference, record_type_list,
25055 record_eh_tables, mark_address, mark_load, mark_store): Update.
25056 * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
25057 cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
25059 * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
25060 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
25061 * reload.c: Fix typo in comment.
25062 * rtlanal.c: Likewise.
25063 * tree-emultls.c (gen_emutls_addr): Update.
25064 * ipa-reference.c (analyze_function): Update.
25065 * cgraphunit.c (cgraph_analyze_function,
25066 cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
25068 * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
25069 (ipa_remove_reference): Likewise.
25070 (ipa_remove_all_refering): Rename to ...
25071 (ipa_remove_all_referring): ... this one; update.
25072 (ipa_dump_references): Update.
25073 (ipa_dump_referring): Update.
25074 (ipa_clone_references): Update.
25075 (ipa_clone_refering): Rename to ...
25076 (ipa_clone_referring): ... this one; update.
25077 (ipa_ref_cannot_lead_to_return): Update.
25078 (ipa_ref_has_aliases_p): Update.
25079 * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
25081 (ipa_ref_type): Remove.
25082 (ipa_ref_ptr_u): Remove.
25083 (ipa_ref): Remove referencing, refered, refered_index, refering_type
25084 and refered_type; add referring, referred and referred_index.
25085 (ipa_ref_list): Rename refering to referring.
25086 (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
25087 ipa_clone_references, ipa_clone_referring): Update prototypes.
25088 * lto-cgraph.c (referenced_from_other_partition_p): Update.
25089 (lto_output_ref): Update.
25090 (add_references): Update.
25091 (input_varpool_node): Update.
25092 (input_refs): Update.
25093 * ipa-ref-inline.h (ipa_ref_node): Update.
25094 (ipa_ref_varpool_node): Update.
25095 (ipa_ref_referring_node): Update.
25096 (ipa_ref_referring_varpool_node): Update.
25097 (ipa_ref_referring_ref_list): Update.
25098 (ipa_ref_referred_ref_list): Update.
25099 (ipa_ref_list_first_referring): Update.
25100 (ipa_empty_ref_list): Update.
25101 (ipa_ref_list_refering_iterate): Rename to ...
25102 (ipa_ref_list_referring_iterate): ... this one.
25103 * cse.c: Update comment.
25104 * ipa-utils.c (ipa_reverse_postorder): Update.
25105 * tree-ssa-alias.c: Update.
25106 * ipa-inline.c (reset_edge_caches): Update.
25107 (update_caller_keys): Update.
25108 * ipa-inline.h: Update comments.
25109 * jump.c: Update comment.
25110 * alias.c: Likewise.
25111 * ipa.c (process_references): Update.
25112 (cgraph_remove_unreachable_nodes): Likewise.
25113 (ipa_discover_readonly_nonaddressable_var): Likewise.
25114 (cgraph_address_taken_from_non_vtable_p): Likewise.
25115 * trans-mem.c (ipa_tm_execute): Update.
25116 * simplify-rtx.c: Fix comment.
25117 * rtl.c: Fix comment.
25118 * symtab.c (symtab_unregister_node): Update.
25119 * varpool.c (dump_varpool_node): Update.
25120 (varpool_analyze_pending_decls): Update.
25121 (assemble_aliases): Update.
25122 (varpool_for_node_and_aliases): Update.
25124 2012-04-18 Richard Guenther <rguenther@suse.de>
25126 * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
25127 use_undefined_p parameter.
25128 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
25129 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
25131 (estimate_numbers_of_iterations): Likewise.
25132 (estimated_loop_iterations): Adjust.
25133 (max_loop_iterations): Likewise.
25134 (scev_probably_wraps_p): Likewise.
25135 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
25136 * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
25137 not max_loop_iterations.
25138 (execute_vrp): Remove explicit number of iterations estimation.
25140 2012-04-18 Enkovich Ilya <ilya.enkovich@intel.com>
25142 * config/i386/linux-common.h: New.
25144 * config.gcc: Add i386/linux-common.h before
25145 all i386/linux.h and i386/linux64.h usages.
25147 * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
25148 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
25149 * config/i386/gnu-user64.h: Likewise.
25151 * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
25152 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
25153 (GNU_USER_TARGET_MATHFILE_SPEC): New.
25154 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
25156 2012-04-18 Jan Hubicka <jh@suse.cz>
25158 * cgraph.c (cgraph_node_name): Remove.
25159 (dump_cgraph_node): Use dump_symtab_base; reformat.
25160 * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
25161 debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
25163 (cgraph_node_name, varpool_node_name): Remove.
25164 (cgraph_node_asm_name, varpool_node_asm_name,
25165 cgraph_node_name, varpool_node_name): New.
25166 * tree-pass.h (TODO_dump_cgraph): Rename to ...
25167 (TODO_dump_symtab): ... this one.
25168 * ipa-cp (pass_ipa_cp): Update.
25169 * ia-reference.c (generate_summary, read_write_all_from_decl,
25170 propagate, ipa_reference_read_optimization_summary): Update.
25171 * cgraphunit.c (cgraph_analyze_functions): Update.
25172 (cgraph_optimize): Update.
25173 * ipa-ref.c (ipa_dump_references): Update.
25174 (ipa_dump_refering): Update.
25175 * ipa-inline.c (pass_ipa_inline): Update.
25176 * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
25177 * ipa.c (pass_ipa_function_visibility,
25178 pass_ipa_whole_program_visibility): Update.
25179 * tree-sra.c (pass_early_ipa_sra): Update.
25180 * symtab.c: Include langhooks.h
25181 (symtab_node_asm_name): New.
25182 (symtab_node_name): New.
25183 (symtab_type_names): New static var.
25184 (dump_symtab_base): New.
25185 (dump_symtab_node, dump_symtab): New.
25186 (debug_symtab_node, debug_symtab): New.
25187 * tree-ssa-structalias.c: Dump symbol table.
25188 * pases.c (execute_todo): Handle TODO_dump_symtab instead
25189 of TODO_dump_cgraph.
25190 * varpoo.c (varpool_node_name): Remove.
25191 (dump_varpool_node): Use dump_symtab_base; reformat.
25193 2012-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
25195 * doc/invoke.texi (Language Independent Options): @item should be
25198 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
25201 * rtl.c (rtx_code_size): Handle ADDRESS.
25203 2012-04-17 Tom de Vries <tom@codesourcery.com>
25205 * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
25206 is not a STMT_LIST.
25208 2012-04-17 Uros Bizjak <ubizjak@gmail.com>
25211 * config/i386/sync.md (atomic_<code><mode>): Rename to
25212 atomic_<logic><mode>.
25214 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
25216 * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
25217 * alias.c (reg_base_value): Expand and update comment.
25218 (arg_base_value): New variable.
25219 (unique_id): Move up file.
25220 (unique_base_value, unique_base_value_p, known_base_value_p): New.
25221 (find_base_value): Use arg_base_value and known_base_value_p.
25222 (record_set): Document REG_NOALIAS handling. Use unique_base_value.
25223 (find_base_term): Use known_base_value_p.
25224 (base_alias_check): Use unique_base_value_p.
25225 (init_alias_target): Initialize arg_base_value. Use unique_base_value.
25226 (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
25228 2012-04-17 Pat Haugen <pthaugen@us.ibm.com>
25230 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
25232 2012-04-17 Michael Matz <matz@suse.de>
25234 PR tree-optimization/18437
25235 * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
25236 (STMT_VINFO_STRIDE_LOAD_P): New accessor.
25237 (vect_check_strided_load): Declare.
25238 * tree-vect-data-refs.c (vect_check_strided_load): New function.
25239 (vect_analyze_data_refs): Use it to accept strided loads.
25240 * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
25242 2012-04-17 Richard Guenther <rguenther@suse.de>
25244 PR middle-end/53011
25245 * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
25246 loops when redirecting an entry or latch edge.
25248 2012-04-17 Bernd Schmidt <bernds@codesourcery.com>
25250 * sel-sched.c (sel_global_init): Revert previous change.
25252 2012-04-17 Richard Guenther <rguenther@suse.de>
25254 * tree-flow.h (array_at_struct_end_p): Move declaration ...
25255 * tree.h (array_at_struct_end_p): ... here.
25256 * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
25257 * expr.c (array_at_struct_end_p): ... here. Rewrite.
25259 2012-04-17 Steven Bosscher <steven@gcc.gnu.org>
25261 * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
25262 COST_TABLE): Remove.
25263 (estimate_case_costs): Remove.
25264 (expand_case): Do not call estimate_case_costs
25265 to set use_cost_table.
25266 (balance_case_nodes): Do not use use_cost_table.
25268 2012-04-16 Jan Hubicka <jh@suse.cz>
25270 * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
25271 (hash_node, eq_node): Remove.
25272 (cgraph_create_node): Do not handle hashtable.
25273 (cgraph_get_node): Remove.
25274 (cgraph_insert_node_to_hashtable): Remove.
25275 (hash_node_by_assembler_name): Remove.
25276 (eq_assembler_name): Remove.
25277 (cgraph_node_for_asm): Rewrite.
25278 (cgraph_find_replacement_node): Break out from ...
25279 (cgraph_remove_node): ... here; do not maintain hashtables.
25280 (change_decl_assembler_name): Remove.
25281 (cgraph_clone_node): Do not maintain hashtables.
25282 * cgraph.h (const_symtab_node): New typedef.
25283 (cgraph_insert_node_to_hashtable): Remove.
25284 (symtab_get_node, symtab_node_for_asm,
25285 symtab_insert_node_to_hashtable): Declare.
25286 (cgraph_find_replacement_node): Declare.
25287 (cgraph_get_node, varpool_get_node): Turn into inlines.
25288 (cgraph, varpool): Work sanely on NULL pointers.
25289 (FOR_EACH_SYMBOL): New walker.
25290 * ipa-inline-transform.c (save_inline_function_body): Use
25291 symtab_insert_node_to_hashtable.
25292 * symtab.c: Include ggc.h and diagnostics.h
25293 (symtab_hash, assembler_name_hash): New static vars;
25294 (hash_node, eq_node, hash_node_by_assembler_name,
25295 eq_assembler_name, insert_to_assembler_name_hash,
25296 unlink_from_assembler_name_hash): New.
25297 (symtab_register_node): Update hashtables.
25298 (symtab_insert_node_to_hashtable): New.
25299 (symtab_unregister_node): Update hashtables.
25300 (symtab_get_node): New.
25301 (symtab_node_for_asm): New.
25302 (change_decl_assembler_name): New.
25303 * Makefile.in (symtab.o): Needs GTY.
25304 * varpool.c (varpool_hash): Remove.
25305 (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
25306 (varpool_node): Rewrite using varpool_get_node.
25307 (varpool_remove_node): DO not maintain hashtables.
25308 (varpool_node_for_asm): Rewrite.
25310 2012-04-16 Sandra Loosemore <sandra@codesourcery.com>
25312 * doc/invoke.texi: Copy-edit to put verbs in the present tense
25313 when describing the current behavior of GCC.
25315 2012-04-16 Richard Sandiford <rdsandiford@googlemail.com>
25317 * genemit.c (gen_exp): Remove ADDRESS handling.
25318 * genoutput.c (scan_operands): Likewise.
25319 * genpeep.c (match_rtx): Likewise.
25320 * genrecog.c (add_to_sequence): Likewise.
25322 2012-04-16 David Edelsohn <dje.gcc@gmail.com>
25324 * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
25326 2012-04-16 Martin Jambor <mjambor@suse.cz>
25328 * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
25331 2012-04-16 Ulrich Weigand <ulrich.weigand@linaro.org>
25334 * config/arm/arm.c (arm_print_operand): Fix invalid alignment
25335 hints for 'A' operand types.
25337 2012-04-16 Jan Hubicka <jh@suse.cz>
25339 * cgraph.h (symtab_node_base): Add next and previous pointers.
25340 (cgraph_node): Remove next and preivous pointers.
25341 (varpool_node): Likewise; remove next/previous GTY marker;
25342 it is not type safe.
25343 (symtab_node_def): Update GTY marker
25344 (x_cgraph_nodes, cgraph_nodes): Remove.
25345 (symtab_nodes): New function.
25346 (cgraph_order): Rename to ...
25347 (symtab_order): ... this one.
25348 (symtab_register_node, symtab_unregister_node, symtab_remove_node):
25350 (x_varpool_nodes, varpool_nodes): Remove.
25351 (FOR_EACH_STATIC_VARIABLE): Update.
25352 (symtab_function_p, symtab_variable_p): New function.
25353 (FOR_EACH_VARIABLE): Update.
25354 (varpool_first_variable, varpool_next_variable): New functions.
25355 (FOR_EACH_VARIABLE): Update.
25356 (cgraph_first_defined_function): Update.
25357 (cgraph_next_defined_function, cgraph_next_defined_function): Update.
25358 (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
25359 (cgraph_first_function, cgraph_next_function): New.
25360 (FOR_EACH_FUNCTION): Update.
25361 (cgraph_first_function_with_gimple_body,
25362 cgraph_next_function_with_gimple_body): Update.
25363 * symtab.c: New file.
25364 * cgraph.c: Update copyright dates.
25365 (x_cgraph_nodes, cgraph_order): Remove.
25366 (NEXT_FREE_NODE): Update.
25367 (SET_NEXT_FREE_NODE): New.
25368 (cgraph_create_node_1): Remove common code.
25369 (cgraph_create_node): Remove common code; call symtab_register_node.
25370 (cgraph_remove_node): Remove common code; call symtab_unregister-node.
25371 (cgraph_add_asm_node): Update.
25372 (cgraph_clone_node): Register new node.
25373 * cgraphunit.c (process_function_and_variable_attributes): Update.
25374 (cgraph_analyze_functions): Update.
25375 (cgraph_analyze_functions): Update.
25376 (cgraph_output_in_order): Update.
25377 * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
25379 * ipa-inline.c (recursive_inlining): Update.
25380 * lto-streamer-in.c (lto_input_toplevel_asms): Update.
25381 * ipa.c (cgraph_remove_unreachable_nodes): Update.
25382 * Makefile.in: Add symtab.o
25383 * varpool.c (x_varpool_nodes): Remove
25384 (varpool_node): Remove common code; call symtab_register_node.
25385 (varpool_remove_node): Remove common code; call symtab_unregister_node.
25387 2012-04-16 Richard Guenther <rguenther@suse.de>
25389 PR middle-end/52977
25390 * tree.h (VECTOR_CST_NELTS): Adjust.
25391 (struct tree_vector): Add explicit length field.
25392 (make_vector_stat): Declare.
25393 (make_vector): Define.
25394 * tree.c (make_vector_stat): New function.
25395 (build_vector_stat): Use it.
25396 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
25398 2012-04-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25400 PR tree-optimization/52976
25401 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
25402 (undistribute_ops_list): Ops with repeat counts aren't eligible for
25404 (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
25406 2012-04-16 Jan Hubicka <jh@suse.cz>
25408 * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
25410 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
25411 walkers to walk cgraph and varpool.
25412 * cgraph.c (cgraph_node_for_asm): Likewise.
25413 (dump_cgraph): Likewise.
25414 * value-prof.c (init_node_map): Likewise.
25415 * tree.c (free_lang_data_in_cgraph): Likewise.
25416 * tree-emutls.c: (ipa_lower_emutls): Likewise.
25417 * ipa-reference.c (generate_summary, propagate): Likewise.
25418 * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
25419 cgraph_mark_functions_to_output, cgraph_output_in_order,
25420 output_weakrefs, cgraph_materialize_all_clones,
25421 cgraph_optimize): Likewise.
25422 * lto-cgraph.c (merge_profile_summaries): Likewise.
25423 (input_cgraph): Likewise.
25424 * ipa-pure-const.c (generate_summary): Likewise.
25425 (propagate): Likwise.
25426 * ipa-utils.c (ipa_reduced_postorder): Likewise.
25427 (ipa_free_postorder_info): Likewise.
25428 (ipa_reverse_postorder): Likewise.
25429 * ipa-inline.c (ipa_inline): Likewise.
25430 * matrix-reorg.c (find_matrices_decl): Likewise.
25431 (matrix_reorg): Likewise.
25432 * tree-vectorizer.c (increase_alignment): Likewise.
25433 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
25434 (function_and_variable_visibility): Likewise.
25435 (whole_program_function_and_variable_visibility): Likewise.
25436 (ipa_cdtor_merge): Likewise.
25437 * trans-mem.c (ipa_tm_execute): Likewise.
25438 * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
25439 * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
25440 (ipa_print_all_params): Likewise.
25441 (ipa_update_after_lto_read): Likewise.
25442 * tree-profie.c (tree_profiling): Likewise.
25443 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
25444 * passes.c (dump_passes): Likewise.
25445 (do_per_function): Likewise.
25446 (ipa_write_summaries): Likewise.
25447 * varpool.c (dump_varpool): Likewise.
25448 (varpool_node_for_asm): Likewise.
25449 (varpool_assemble_pending_decls): Likewise.
25451 2012-04-16 Richard Guenther <rguenther@suse.de>
25453 PR tree-optimization/52975
25454 * tree-if-conv.c (predicate_bbs): Do not simplify inverted
25455 condition but always mark it with TRUTH_NOT_EXPR.
25457 2012-04-16 Richard Guenther <rguenther@suse.de>
25459 PR tree-optimization/52975
25460 * tree-ssa-forwprop.c (combine_cond_exprs): New function.
25461 (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
25462 and VEC_COND_EXPRs. Also combine into VEC_COND_EXPRs condition.
25463 * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
25465 2012-04-14 Uros Bizjak <ubizjak@gmail.com>
25467 * config/i386/sse.md (ssse3_plusminus): New code iterator.
25468 (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
25469 avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
25470 (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
25471 ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
25472 (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
25473 ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
25475 (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
25476 avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
25477 (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
25478 ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
25479 (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
25480 ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
25482 (xop_plus): New code iterator.
25483 (macs): New code attribute.
25485 (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
25486 xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
25488 (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
25489 xop_plus code iterator.
25490 (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
25491 xop_plus code iterator.
25492 (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
25493 xop_plus code iterator.
25494 (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
25495 xop_plus code iterator.
25497 (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
25498 any_extend code iterator.
25499 (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
25500 any_extend code iterator.
25501 (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
25502 any_extend code iterator.
25503 (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
25504 any_extend code iterator.
25505 (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
25506 any_extend code iterator.
25507 (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
25508 any_extend code iterator.
25510 2012-04-14 Tom de Vries <tom@codesourcery.com>
25512 * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
25513 call to delete_insn. Remove code to reorder BASIC_BLOCK note and
25514 DELETED_LABEL note, and move it to ...
25515 * cfgrtl.c (delete_insn): ... here. Change return type to void.
25516 (delete_insn_and_edges): Likewise.
25517 (delete_insn_chain): Handle new return type of delete_insn. Delete
25518 chain backwards rather than forwards.
25519 * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
25521 * cfglayout.c (fixup_reorder_chain): Delete unused label.
25523 2012-04-14 Jan Hubicka <jh@suse.cz>
25525 * cgraph.h: Update copyrights;
25526 (symtab_node): Turn to union typedef.
25527 (symtab_node_base): New structure.
25528 (symtab_type): Add SYMTAB_SYMBOL tag.
25529 (cgraph_node): Annotate some pinters with nested_ptr.
25530 (varpool_node): Likewise.
25531 (cgraph_local_info): Remove lto_file_data
25532 and externally_visible.
25533 (cgraph_node): Remove decl; same_comdat_group list;
25534 aux; ref_list; order; address_taken; reachable_from_other_parittion,
25535 in_other_partition; resolution.
25536 (varpool_node): Remove decl; same_comdat_group;
25537 ref_list; lto_file_data; aux; order; resolution; externally_visible;
25538 used_from_other_partition; in_other_partition.
25539 (symtab_node_def): New union.
25540 (cgraph, varpool): Update.
25541 (varpool_first_static_initializer, varpool_next_static_initializer,
25542 cgraph_only_called_directly_or_aliased_p,
25543 varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
25544 varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
25545 varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
25547 * cgraph.c: Likewise.
25548 (cgraph_hash, assembler_name_hash): Turn into symtab_node.
25549 * cgraphbuild.c: Likewise.
25550 * lto-symtab.c: Likewise.
25551 * c-gimplify.c: Likewise.
25552 * value-prof.c: Likewise.
25553 * tree.c: Likewise.
25554 * ipa-cp.c: Likewise.
25555 * tree-emutls.c: Likewise.
25556 * ipa-inline-transform.c: Likwise.
25557 * ipa-reference.c: Likewise.
25558 * cgraphunit.c: Likewise.
25559 * ipa-ref.c: Likewise.
25560 * lto-cgraph.c: Likewise.
25561 * ipa-ref-inline.h: Likewise.
25562 * ipa-pure-const.c: Likewise.
25563 * lto-streamer-out.c: Likewise.
25564 * ipa-utils.c: Likewise.
25565 * ipa-inline.c: Likewise.
25566 * matrix-reorg.c: Likewise.
25567 * tree-eh.c: Likewise.
25568 * tree-vectorizer.c: Likewise.
25569 * ipa-split.c: Likewise.
25571 * trans-mem.c: Likewise.
25572 * ipa-inline-analysis.c: Likewise.
25573 * gimplify.c: Likewise.
25574 * cfgexpand.c: Likewise.
25575 * tree-sra.c: Likewise.
25576 * ipa-prop.c: Likewise.
25577 * varasm.c: Likewise.
25578 * tree-nested.c: Likewise.
25579 * tree-inline.c: Likewise.
25580 * tree-profile.c: Likewise.
25581 * tree-ssa-structalias.c: Likewise.
25582 * passes.c: Likewise.
25583 * varpool.c: Likewise.
25585 2012-04-14 Tom de Vries <tom@codesourcery.com>
25587 * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
25588 same_succ_hash, with local_def inlined. Use SINGLE_SSA_DEF_OPERAND.
25589 Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT. Remove use
25591 (gsi_advance_fw_nondebug_nonlocal): New function.
25592 (local_def): Removed function.
25593 (same_succ_hash): Use stmt_local_def.
25594 (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
25595 (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
25597 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
25599 * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
25600 and __ILP32__ for x32.
25602 2012-04-13 Martin Jambor <mjambor@suse.cz>
25604 PR middle-end/52939
25605 * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
25606 fold_ctor_reference returns a zero constant.
25608 2012-04-13 Enkovich Ilya <ilya.enkovich@intel.com>
25610 * config.gcc: Add i386/gnu-user-common.h before all
25611 i386/gnu-user.h and i386/gnu-user64.h usages.
25613 * config/i386/gnu-user-common.h: New.
25615 * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
25616 (CC1_SPEC): Likewise.
25617 (ENDFILE_SPEC): Likewise.
25618 (DEFAULT_PCC_STRUCT_RETURN): Likewise.
25619 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
25620 (TARGET_OS_CPP_BUILTINS): Likewise.
25621 (LIBGCC2_HAS_TF_MODE): Likewise.
25622 (LIBGCC2_TF_CEXT): Likewise.
25623 (TF_SIZE): Likewise.
25624 (TARGET_ASM_FILE_END): Likewise.
25625 (STACK_CHECK_MOVING_SP): Likewise.
25626 (STACK_CHECK_STATIC_BUILTIN): Likewise.
25627 * config/i386/gnu-user64.h: Likewise.
25629 2012-04-13 Martin Jambor <mjambor@suse.cz>
25631 * expr.c (expand_expr_real_1): Pass type, not the expression, to
25632 set_mem_attributes for a memory temporary. Do not call the function
25633 for the memory temporary created for a bitfield.
25635 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
25638 * df.h (enum debug_temp_where): New.
25639 (dead_debug_init, dead_debug_finish) Declare.
25640 (dead_debug_add, dead_debug_insert_temp): Declare.
25641 (struct dead_debug_use, struct dead_debug): Moved from...
25642 * df-problems.c: ... here.
25643 (df_set_unused_notes_for_mw): Bind debug uses of unused regno
25645 (df_create_unused_note): Likewise.
25646 (df_set_dead_notes_for_mw): Move comment where it belongs.
25647 (dead_debug_init): Export.
25648 (dead_debug_reset_uses): New, factored out of...
25649 (dead_debug_finish): ...this. Export.
25650 (dead_debug_reset): Remove.
25651 (dead_debug_add): Export.
25652 (dead_debug_insert_before): Rename to...
25653 (dead_debug_insert_temp): ... this. Add where argument. Export.
25654 Locate stored value for BEFORE_WITH_VALUE. Avoid repeat inserts.
25655 Return insertion count.
25656 (df_note_bb_compute): Adjust.
25657 * dce.c (word_dce_process_block): Adjust dead debug uses.
25658 (dce_process_block): Likewise.
25660 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
25662 * df-problems.c (df_note_bb_compute): Do not take note of
25663 debug uses for whose REGs we won't emit DEAD or UNUSED notes.
25665 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
25668 * var-tracking.c (expand_depth): New type.
25669 (onepart_aux, expand_loc_callback_data): Change depth type to it.
25670 (loc_exp_dep_alloc): Adjust initializer.
25671 (update_depth): Use new type. Add entryvals.
25672 (vt_expand_var_loc_chain): Take note of expansions with
25673 ENTRY_VALUEs, but don't accept them right away. Run an optional
25674 second pass accepting the minimum ENTRY_VALUE count found in the
25676 (vt_expand_loc_callback, INIT_ELCD): Adjust.
25678 2012-04-13 Tom de Vries <tom@codesourcery.com>
25680 * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
25681 parameters vuse and vuse_escaped.
25682 (find_duplicate): Init vuse1, vuse2 and vuse_escaped. Pass to
25683 gsi_advance_bw_nondebug_nonlocal. Return if vuse_escaped and
25686 2012-04-13 Richard Guenther <rguenther@suse.de>
25688 PR tree-optimization/52969
25689 * tree-if-conv.c (predicate_mem_writes): Properly gimplify
25690 the condition for the COND_EXPR and handle predicate negation
25691 by swapping the COND_EXPR arms.
25693 2012-04-13 Nick Clifton <nickc@redhat.com>
25695 * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
25696 TODO_dump_func flag.
25698 2012-04-13 Andrey Belevantsev <abel@ispras.ru>
25700 PR rtl-optimization/52203
25701 PR rtl-optimization/52715
25703 Revert the 2012-03-07 fix for PR 52203.
25704 * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
25705 the insn does not modify DFA right before issuing, adjust
25706 issue_rate accordingly.
25708 2012-04-13 Richard Guenther <rguenther@suse.de>
25711 * c-typeck.c (pointer_diff): Remove bogus assert.
25713 2012-04-13 Richard Guenther <rguenther@suse.de>
25716 * convert.c (convert_to_pointer): Remove special-casing of zero.
25718 2012-04-13 Joey Ye <joey.ye@arm.com>
25720 * config/arm/constraints.md (Pe): New constraint.
25721 * config/arm/arm.md: New split for imm 256-510.
25723 2012-04-13 Terry Guo <terry.guo@arm.com>
25725 * config/arm/arm-cores.def: Added core cortex-m0plus.
25726 * config/arm/arm-tune.md: Regenerated.
25727 * config/arm/arm-tables.opt: Regenerated.
25728 * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
25730 2012-04-13 Alan Modra <amodra@gmail.com>
25733 * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
25734 tie regs on destination of sets. Delete forward declaration.
25735 (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
25736 (rs6000_emit_prologue): Likewise.
25737 (rs6000_emit_epilogue): Likewise. Use in place of gen_frame_tie
25739 (is_mem_ref): Use tie_operand to recognise stack ties.
25740 * config/rs6000/predicates.md (tie_operand): New.
25741 * config/rs6000/rs6000.md (restore_stack_block): Generate new
25743 (restore_stack_nonlocal): Likewise.
25744 (stack_tie): Update.
25745 (frame_tie): Delete.
25747 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25749 * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
25750 HOST_WIDE_INT_PRINT_DEC in format strings.
25752 2012-04-12 Uros Bizjak <ubizjak@gmail.com>
25755 * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
25756 argument type to __m256i. Update call to __builtin_ia32_permvarsf256.
25757 * config/i386/sse.md (UNSPEC_VPERMVAR): New.
25758 (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
25759 (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
25760 (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
25761 avx2_permvarv8si using VI4F_256 mode iterator.
25762 * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
25763 Update builtin type to V8SF_FTYPE_V8SF_V8SI.
25764 (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
25765 gen_avx2_permvarv8sf.
25766 (expand_vec_perm_pshufb): Ditto.
25768 2012-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
25771 * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
25772 the list of options to enable the FCFID instruction.
25773 (TARGET_EXTRA_BUILTINS): Adjust comment.
25775 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25777 PR tree-optimization/18589
25778 * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
25779 (operand_entry): Add count field.
25780 (add_repeat_to_ops_vec): New function.
25781 (completely_remove_stmt): Likewise.
25782 (remove_def_if_absorbed_call): Likewise.
25783 (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
25784 (acceptable_pow_call): New function.
25785 (linearize_expr_tree): Look for builtin pow/powi calls and add operand
25786 entries with repeat counts when found.
25787 (repeat_factor_d): New struct and associated typedefs.
25788 (repeat_factor_vec): New static vector variable.
25789 (compare_repeat_factors): New function.
25790 (get_reassoc_pow_ssa_name): Likewise.
25791 (attempt_builtin_powi): Likewise.
25792 (reassociate_bb): Call attempt_builtin_powi.
25793 (fini_reassoc): Two new calls to statistics_counter_event.
25795 2012-04-12 Richard Guenther <rguenther@suse.de>
25797 * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
25798 * cgraph.h (tree_rest_of_compilation): Remove.
25799 * cgraph.c (cgraph_add_new_function): Move ...
25800 * cgraphunit.c (cgraph_add_new_function): ... here.
25801 (tree_rest_of_compilation): Make static.
25802 (cgraph_expand_function): Do not set cgraph_function_flags_ready.
25803 * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
25804 gate_all_early_local_passes, execute_all_early_local_passes,
25805 pass_early_local_passes, gate_all_early_optimizations,
25806 pass_all_early_optimizations): Move ...
25807 * passes.c (gate_all_optimizations, pass_all_optimizations,
25808 gate_all_early_local_passes, execute_all_early_local_passes,
25809 pass_early_local_passes, gate_all_early_optimizations,
25810 pass_all_early_optimizations): ... here.
25811 * tree-optimize.c (execute_free_datastructures): Remove.
25812 * tree-flow.h (execute_free_datastructures): Remove.
25813 * tree-optimize.c (execute_init_datastructures,
25814 pass_init_datastructures): Move ...
25815 * tree-ssa.c (execute_init_datastructures,
25816 pass_init_datastructures): ... here.
25817 * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
25818 execute_free_datastructures.
25820 2012-04-12 Bernd Schmidt <bernds@codesourcery.com>
25822 * dbgcnt.def (ira_move): New counter.
25823 * ira-int.h (ira_create_new_reg): Declare function.
25824 (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
25825 * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
25826 no longer static. All callers changed.
25827 * ira.c: Include "dbgcnt.h".
25828 (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
25829 move_unallocated_pseudos): New static functions.
25830 (first_moveable_pseudo, last_moveable_pseudo): New global variables.
25831 (pseudo_replaced_reg, pseudo_move_insn): New static variables.
25832 (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
25833 * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
25834 to the pseudos generated in find_moveable_pseudos.
25835 * Makefile.in (ira.o): Add $(DBGCNT_H).
25837 2012-04-12 Richard Guenther <rguenther@suse.de>
25839 PR tree-optimization/52943
25840 * tree-chrec.h (chrec_is_positive): Remove.
25841 * tree-scalar-evolution.c (chrec_is_positive): Move ...
25842 * tree-data-ref.c (chrec_is_positive): ... here. Make static.
25843 Return false for a constant zero instead of negative.
25844 (analyze_siv_subscript_cst_affine): Handle zero difference
25845 in the initial condition explicitely.
25847 2012-04-12 Richard Guenther <rguenther@suse.de>
25849 * tree-parloops.c (parallelize_loops): Also consult the upper
25850 bound for the number of iterations.
25851 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
25852 (loop_prefetch_arrays): Likewise.
25854 2012-04-12 Richard Guenther <rguenther@suse.de>
25856 * cfgloop.h (estimated_loop_iterations_int): Ditch
25857 'conservative' parameter.
25858 (max_stmt_executions_int): Likewise.
25859 (estimated_loop_iterations): Likewise.
25860 (max_stmt_executions): Likewise.
25861 (max_loop_iterations): Declare.
25862 (max_loop_iterations_int): Likewise.
25863 (estimated_stmt_executions): Likewise.
25864 (estimated_stmt_executions_int): Likewise.
25865 * tree-ssa-loop-niter.c (estimated_loop_iterations):
25867 (max_loop_iterations): ... this.
25868 (estimated_loop_iterations_int): Split parts to ...
25869 (max_loop_iterations_int): ... this.
25870 (max_stmt_executions_int): Split parts to ...
25871 (estimated_stmt_executions_int): ... this.
25872 (max_stmt_executions): Split parts to ...
25873 (estimated_stmt_executions): ... this.
25874 * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
25875 * predict.c (predict_loops): Likewise.
25876 * tree-data-ref.c (max_stmt_executions_tree): Likewise.
25877 (analyze_siv_subscript_cst_affine): Likewise.
25878 (compute_overlap_steps_for_affine_1_2): Likewise.
25879 (analyze_subscript_affine_affine): Likewise.
25880 (init_omega_for_ddr_1): Likewise.
25881 * tree-parloops.c (parallelize_loops): Likewise.
25882 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
25883 (may_eliminate_iv): Likewise.
25884 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
25885 (loop_prefetch_arrays): Likewise.
25886 * tree-vrp.c (adjust_range_with_scev): Likewise.
25888 2012-04-12 Oleg Endo <olegendo@gcc.gnu.org>
25890 * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
25891 * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
25893 (dump_table): Use bool type for need_align and have_df variables.
25894 (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
25895 (regs_used): Remove register modifier.
25896 (barrier_align): Move variables slot, credit, jump_to_next
25897 into if block above for loop. Use bool type for jump_to_next.
25898 (sh_function_arg): Use NULL_RTX instead of 0.
25900 2012-04-11 Andreas Schwab <schwab@linux-m68k.org>
25902 * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
25903 (bswapsi2): New expander.
25905 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
25907 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
25908 0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
25910 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
25912 PR rtl-optimization/52876
25913 * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
25914 Don't call mark_reg_pointer for incompatible pointer sign extension.
25916 * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
25919 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
25921 * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
25922 comparisons against TYPE_PRECISION.
25923 * tree-ssa-forwprop.c (combine_conversions): Likewise.
25925 2012-04-11 Xinliang David Li <davidxl@google.com>
25927 * tree-passes.h: Remove TODO_dump_func.
25928 * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
25929 * trans-mem.c: Remove TODO_dump_func.
25930 * ira.c: Remove TODO_dump_func.
25932 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
25934 * config/i386/i386.c (ix86_option_override_internal): Check
25935 SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
25936 after TARGET_64BIT is updated.
25938 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
25940 * config/sh/sh.h: Remove old secondary reload code.
25942 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
25944 * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
25945 (ready_reorder): ... this function.
25947 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
25949 * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
25952 * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
25953 insns so that no other insn is queued for a time before them.
25955 * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
25958 2012-04-11 Richard Guenther <rguenther@suse.de>
25960 PR middle-end/52621
25961 * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
25962 consider loop nesting.
25963 (evolution_function_is_univariate_p): Properly check the remainder
25966 2012-04-11 Richard Guenther <rguenther@suse.de>
25968 PR middle-end/52918
25969 * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
25971 2012-04-11 Nick Clifton <nickc@redhat.com>
25973 * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
25974 information, if requested.
25976 * config/rx/rx.c (rx_expand_prologue): Likewise.
25978 2012-04-11 Peter Bergner <bergner@vnet.ibm.com>
25979 Michael Matz <matz@suse.de>
25982 * rtlanal.c (unsigned_reg_p): New function.
25983 Update copyright notice dates.
25984 * rtl.h (unsigned_reg_p): Prototype it.
25985 Update copyright notice dates.
25986 * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
25988 * expr.c (expand_expr_real_1): Set register attributes.
25989 * stmt.c (expand_case): Likewise.
25991 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
25994 * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
25995 consider_sh2a and allow_zero.
25996 * config/sh/sh.c (sh_legitimate_index_p): Likewise.
25997 (disp_addr_displacement): New function.
25998 (sh_address_cost): Use disp_addr_displacement function instead
25999 of DISP_ADDR_OFFSET.
26000 (sh_legitimate_address_p): Adapt to changed
26001 sh_legitimate_index_p declaration.
26002 (sh_find_mov_disp_adjust): Remove HImode check.
26003 (sh_secondary_reload): Add HImode case. Use satisfies_constraint_Sdd,
26004 disp_addr_displacement and max_mov_insn_displacement.
26005 (max_mov_insn_displacement): Remove HImode check.
26006 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
26007 DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
26008 * config/sh/constraints.md (K05, K13): New constraints.
26009 (K12): Correct comment.
26010 (Sdd): Do not use DISP_ADDR_P macro.
26011 (Snd, Sbw): Use satisfies_constraint_Sdd.
26012 * config/sh/sh.md (extendhisi2): Remove constraints from expander.
26013 (*extendhisi2_compact, movhi_i): Remove.
26014 (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
26015 *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
26016 *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
26017 *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
26018 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
26019 *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
26020 *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
26022 Add new peepholes for HImode displacement addressing.
26024 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
26026 * config/sh/sh.h (SIDI_OFF): Remove.
26027 * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
26028 DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
26029 or operand_subword.
26031 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
26034 * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
26035 (PowerPC AltiVec/VSX Built-in Functions): Remove it.
26036 * doc/md.texi (Standard Names): Add bswap.
26037 * builtin-types.def (BT_UINT16): New primitive type.
26038 (BT_FN_UINT16_UINT16): New function type.
26039 * builtins.def (BUILT_IN_BSWAP16): New.
26040 * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
26041 (expand_builtin) <BUILT_IN_BSWAP16>: New case. Pass TARGET_MODE to
26042 expand_builtin_bswap.
26043 (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
26044 (fold_builtin_1): Likewise.
26045 (is_inexpensive_builtin): Likewise.
26046 * optabs.c (expand_unop): Deal with bswap in HImode specially. Add
26047 missing bits for bswap to libcall code.
26048 * tree.c (build_common_tree_nodes): Build uint16_type_node.
26049 * tree.h (enum tree_index): Add TI_UINT16_TYPE.
26050 (uint16_type_node): New define.
26051 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
26052 * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
26054 (rs6000_init_builtins): Likewise.
26055 * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
26057 2012-04-11 Tristan Gingold <gingold@adacore.com>
26059 * doc/extend.texi (Type Attributes): Move paragraph.
26061 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
26064 * diagnostic.h (show_caret): Declare.
26065 (caret_max_width): Declare.
26066 (diagnostic_show_locus): Declare.
26067 * diagnostic.c (diagnostic_initialize): Initialize to false.
26068 (diagnostic_show_locus): New.
26069 (diagnostic_report_diagnostic): Call it.
26070 (getenv_columns): New.
26071 (adjust_line): New.
26072 (diagnostic_set_caret_max_width): New.
26073 * input.c (read_line): New.
26074 (location_get_source_line): New.
26075 * input.h (location_get_source_line): Declare.
26076 * toplev.c (general_init): Initialize show_caret from options.
26077 * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
26078 * opts.c (common_handle_option): Likewise.
26079 * pretty-print.h (pp_get_prefix): New.
26080 (pp_base_get_prefix): New.
26081 * common.opt (fdiagnostics-show-caret): New option.
26082 * doc/invoke.texi (fdiagnostics-show-caret): Document it.
26084 2012-04-11 Richard Guenther <rguenther@suse.de>
26086 PR rtl-optimization/52881
26087 * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
26089 2012-04-11 Richard Guenther <rguenther@suse.de>
26091 PR tree-optimization/52912
26092 * tree-ssa-threadupdate.c (thread_block): Tell the cfg
26093 manipulation code we are threading through a loop header
26094 to an exit destination.
26096 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
26098 * tree.h (warn_if_unused_value): Move declaration from here.
26099 * stmt.c (warn_if_unused_value): Move definition from here.
26101 2012-04-10 Michael Matz <matz@suse.de>
26103 * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
26105 (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
26106 (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
26107 (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
26108 (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
26109 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
26110 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
26111 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
26112 (vect_record_strided_load_vectors): Rename to
26113 vect_record_grouped_load_vectors.
26114 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
26115 Rename use of above macros.
26116 (vect_verify_datarefs_alignment): Ditto.
26117 (vector_alignment_reachable_p): Ditto.
26118 (vect_peeling_hash_get_lowest_cost): Ditto.
26119 (vect_enhance_data_refs_alignment): Ditto.
26120 (vect_analyze_group_access): Ditto and rename stride to groupsize.
26121 (vect_analyze_data_ref_access): Rename "strided" to "grouped".
26122 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
26123 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
26124 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
26125 (vect_record_strided_load_vectors): Rename to
26126 vect_record_grouped_load_vectors.
26127 * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
26128 (destroy_loop_vec_info): Ditto.
26129 (vect_transform_loop): Ditto and rename strided_store to grouped_store.
26130 * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
26131 (vect_analyze_slp): Ditto.
26132 (new_bb_vec_info): Ditto.
26133 (destroy_bb_vec_info): Ditto.
26134 (vect_schedule_slp_instance): Ditto and rename strided_store to
26136 * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
26137 vect_cost_group_size.
26138 (vect_model_store_cost): Rename use of above macros and call
26139 to vect_cost_strided_group_size.
26140 (vect_model_load_cost): Ditto.
26141 (vectorizable_store): Ditto, rename strided_store to grouped_store
26142 and calls to renamed tree-vectorizer.h functions.
26143 (vectorizable_load): Ditto.
26144 (vect_transform_stmt): Rename use of above macros and strided_store
26147 2012-04-10 Jan Hubicka <jh@suse.cz>
26149 * cgraph.h: Remove misledaing comment on ipa-ref.h.
26150 (symtab_type): New enum.
26151 (symtab_node): New structure.
26152 (cgraph_node, varpool_node): Add symbol base type.
26153 (cgraph, varpool): New accestor functions.
26154 * cgraph.c (cgraph_create_node_1): Set symbol type.
26155 * varpool.c (varpool_node): Set symbol type.
26157 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
26158 Richard Sandiford <rdsandiford@googlemail.com>
26160 * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
26162 2012-04-10 Richard Guenther <rguenther@suse.de>
26164 PR middle-end/52888
26165 * gimple-low.c (gimple_check_call_args): Properly account for
26166 compatible aggregate types.
26168 2012-04-10 Richard Guenther <rguenther@suse.de>
26170 * toplev.h (tree_rest_of_compilation): Remove.
26171 * tree-optimize.c (tree_rest_of_compilation): Likewise.
26172 * cgraph.h (tree_rest_of_compilation): Declare.
26173 * tree-optimize.c (tree_rest_of_compilation): Move ...
26174 * cgraphunit.c (tree_rest_of_compilation): ... here.
26175 * cgraph.c (cgraph_add_new_function): Adjust.
26176 * Makefile.in (tree-optimize.o): Adjust.
26177 (cgraphunit.o): Likewise.
26179 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
26181 PR tree-optimization/52870
26182 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
26183 presumed pattern statement is within the same loop or basic block.
26185 2012-04-10 Tristan Gingold <gingold@adacore.com>
26187 * gengtype.c (main): Make uintptr_t a known type.
26189 2012-04-10 Richard Guenther <rguenther@suse.de>
26191 * tree-pass.h (tree_lowering_passes): Remove.
26192 * tree-optimize.c (tree_lowering_passes): Remove.
26193 * cgraph.c (cgraph_add_new_function): Inline relevant parts
26194 of tree_lowering_passes, avoid redundant call of early local passes.
26195 * cgraphunit.c (cgraph_lower_function): Fold into ...
26196 (cgraph_analyze_function): ... its single caller. Inline
26197 relevant parts of tree_lowering_passes.
26199 2012-04-09 H.J. Lu <hongjiu.lu@intel.com>
26202 * config/pa/pa.opt: Remove SIO and GNU_LD.
26204 2012-04-09 Jan Hubicka <jh@suse.cz>
26209 * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
26210 boundary, add its target too.
26211 * lto.c (add_references_to_partition): Add also aliased nodes.
26212 (add_cgraph_node_to_partition,
26213 add_varpool_node_to_partition): Work on nodes, not functions/variables;
26214 when adding alias, add also the aliased object.
26216 2012-04-09 Uros Bizjak <ubizjak@gmail.com>
26219 * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
26220 VOIDmode immediate operands.
26221 * config/i386/constraints.md (Wz): New constraint.
26222 * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
26224 2012-04-09 Eric Botcazou <ebotcazou@adacore.com>
26227 * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
26228 the DECL generated for the special GOT helper.
26230 2012-04-09 Oleg Endo <olegendo@gcc.gnu.org>
26232 * config/sh/constraints.md: Update list of constraints in
26234 (Sr0): Remove unused memory constraint.
26236 2012-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
26238 * tree-pretty-print.h: Update comment.
26240 2012-04-08 Oleg Endo <olegendo@gcc.gnu.org>
26242 * config/sh/sh.md: Use braced string notation where applicable.
26243 (*prefetch_i4, prefetch_m2a): Merge into ...
26244 (*prefetch): ... this new insn.
26246 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
26248 * config/sh/sh.h (high_life_started): Remove
26249 * config/sh/predicates.md (general_movdst_operand): Use
26250 'reload_in_progress' instead of 'high_life_started'.
26251 * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
26252 divsi_inv_fp): Likewise.
26254 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
26256 * config/sh/sh-protos.h (prepare_move_operands): Return void
26258 * config/sh/sh.c (prepare_move_operands): Likewise.
26259 * config/sh/sh.md: Remove return value checks of prepare_move_operands.
26261 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
26263 * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
26264 general_movsrc_operand, general_movdst_operand, arith_reg_operand,
26265 fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
26266 logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
26267 commutative_float_operator, noncommutative_float_operator,
26268 sh_handle_pragma): Remove.
26270 2012-04-06 Sandra Loosemore <sandra@codesourcery.com>
26272 * doc/invoke.texi: Clean up Texinfo markup throughout the file.
26273 Use @option markup on command-line options. Use @samp markup on
26274 literal keywords to options. Use @code markup on code fragments.
26275 Use other markup in preference to quotation marks in the text.
26276 Add markup to some passages without any.
26278 2012-04-06 Mike Stump <mikestump@comcast.net>
26280 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
26282 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
26284 * config/sh/sh.c (hi_const): Remove.
26285 (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
26288 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
26290 * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
26292 * config/sh/sh.c (sh_expand_t_scc): Likewise.
26293 * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
26294 calling sh_expand_t_scc.
26296 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
26298 * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
26299 nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
26300 sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
26301 reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
26302 sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
26303 sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
26304 check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
26305 sh2a_is_function_vector_call): Use bool as return type.
26306 (sh_pass_in_reg_p): Remove.
26307 * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
26308 flow_dependent_p, sh2a_function_vector_p, expand_block_move,
26309 expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
26310 sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
26311 sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
26312 sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
26313 fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
26314 sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
26315 sh_loads_bankedreg_p): Use bool as return type.
26316 (nonpic_symbol_mentioned_p): Use bool as return type. Remove
26317 'register' modifier.
26319 2012-04-06 Matt Turner <mattst88@gmail.com>
26321 * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
26323 2012-04-06 Eric Botcazou <ebotcazou@adacore.com>
26325 * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
26326 of the destination isn't also a FP_REGS register.
26328 2012-04-05 Teresa Johnson <tejohnson@google.com>
26329 H.J. Lu <hongjiu.lu@intel.com>
26331 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
26332 * config/i386/i386.md (move immediate to memory peephole2):
26333 Add cases for HImode move when LCP stall avoidance is needed.
26334 * config/i386/i386.c (initial_ix86_tune_features): Initialize
26335 X86_TUNE_LCP_STALL entry.
26337 2012-04-05 Uros Bizjak <ubizjak@gmail.com>
26340 * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
26341 CONST_INT operands, zero-extended with AND.
26343 2012-04-05 Oleg Endo <olegendo@gcc.gnu.org>
26346 * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
26347 first argument instead of mode size. Move displacement calculations
26349 (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
26350 ... these new functions.
26351 (disp_adjust): Remove max_mov_disp field.
26352 (sh_legitimate_index_p): Use max_mov_insn_displacement and
26353 mov_insn_alignment_mask.
26354 (sh_address_cost): Use max_mov_insn_displacement.
26356 2012-04-05 Andrew Stubbs <ams@codesourcery.com>
26358 * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
26359 (arch_enabled): Handle new arch types.
26360 (one_cmpldi2): Add NEON support.
26362 2012-04-05 Richard Guenther <rguenther@suse.de>
26364 * gimple.c (walk_gimple_op): Compute val_only for the LHS
26365 of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
26366 (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
26367 * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
26368 ... here and make static.
26369 * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
26372 2012-04-05 Richard Guenther <rguenther@suse.de>
26374 * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
26375 basic-block before removing it.
26377 2012-04-05 Richard Guenther <rguenther@suse.de>
26379 * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
26380 version namespace as we release the freelist.
26382 2012-04-05 Richard Guenther <rguenther@suse.de>
26384 * tree-nrv.c (tree_nrv): Release VDEFs.
26385 * tree-sra.c (sra_modify_constructor_assign): Likewise.
26386 (sra_modify_assign): Likewise.
26387 * tree-vect-stmts.c (vect_remove_stores): Likewise.
26388 * tree-vect-loop.c (vect_transform_loop): Likewise.
26389 * tree-ssa-dom.c (optimize_stmt): Likewise.
26390 * tree-vect-slp.c (vect_schedule_slp): Likewise.
26391 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
26393 2012-04-05 Richard Guenther <rguenther@suse.de>
26395 * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
26397 * gimple.h (gsi_remove): Adjust.
26398 * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
26399 * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
26400 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
26401 * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
26402 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
26403 * tree-ssa-pre.c (eliminate): Likewise.
26405 2012-04-04 Mike Stump <mikestump@comcast.net>
26407 * doc/rtl.texi (const_double): Document as sign-extending.
26408 * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
26409 * emit-rtl.c (immed_double_int_const): Refine to state the
26411 * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
26412 CONST_DOUBLE integers.
26413 (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
26414 negative values are converted. Fix conversions bigger than
26415 HOST_BITS_PER_WIDE_INT.
26416 (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
26417 (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
26418 * explow.c (plus_constant_mode): Add.
26419 (plus_constant): Implement with plus_constant_mode.
26420 * rtl.h (plus_constant_mode): Add.
26422 2012-04-04 Richard Guenther <rguenther@suse.de>
26424 PR tree-optimization/52808
26425 * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
26426 * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
26428 2012-04-04 Tristan Gingold <gingold@adacore.com>
26430 * expr.c (expand_expr_real_2): Handle larger sizetype in
26433 2012-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
26435 * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
26436 to m2a-single instead of m2e.
26438 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
26440 * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
26441 Change type of BITOFFSET to signed. Make sure the lower bound of
26442 the computed range is non-negative by adjusting OFFSET and BITPOS.
26443 (expand_assignment): Adjust call to get_bit_range.
26445 2012-04-03 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
26447 * h8300/h8300.c (h8300_current_function_monitor_function_p):
26448 New function. Added to check monitor functions.
26449 (h8300_option_override): Modified to generate error/warning
26450 messages for invalid combinations of different command line
26452 * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
26453 save EXR on stack for monitor function in case of H8S target
26454 when "-mno-exr" is passed.
26455 * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
26457 * doc/invoke.texi: Document H8S options.
26459 2012-04-03 Tristan Gingold <gingold@adacore.com>
26461 * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
26462 of gcc_AC_FUNC_MMAP_BLACKLIST.
26463 * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
26464 * Makefile.in (aclocal_deps): Add mmap.m4.
26465 * configure: Regenerate.
26466 * aclocal.m4: Regenerate.
26468 2012-04-03 Richard Guenther <rguenther@suse.de>
26470 PR tree-optimization/52808
26471 * tracer.c (tail_duplicate): Return whether we have duplicated
26473 (tracer): If we have duplicated any block, cleanup the CFG.
26474 * cfghooks.c (duplicate_block): If we duplicated a loop
26475 header but not its loop, destroy the loop because it now has
26477 * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
26478 the cfg manipulation routines we are not creating a multiple
26481 2012-04-03 Tristan Gingold <gingold@adacore.com>
26483 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
26485 (vms_c_common_override_options): Allow parameterless variadic
26488 2012-04-03 Jakub Jelinek <jakub@redhat.com>
26490 PR tree-optimization/52835
26491 * tree-data-ref.c (build_rdg): Return NULL if
26492 compute_data_dependences_for_loop failed.
26494 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
26496 * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
26497 for REAL_CST as well.
26498 (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
26499 In the bitfield case, if the value is a REAL_CST, convert it first to
26502 2012-04-02 H.J. Lu <hongjiu.lu@intel.com>
26504 * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
26505 for --with-abi={x32|mx32} or --with-multilib-list=mx32.
26506 (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
26508 * config/i386/biarchx32.h: New.
26510 2012-04-02 Anatoly Sokolov <aesok@post.ru>
26512 * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
26513 * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
26514 (arm_preferred_reload_class): New function.
26516 2012-04-02 Richard Guenther <rguenther@suse.de>
26518 PR tree-optimization/52756
26519 * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
26520 (thread_through_loop_header): After threading through the loop latch
26521 remove the split part from the loop and clear further threading
26522 opportunities that would create a multiple entry loop.
26524 2012-04-02 Richard Guenther <rguenther@suse.de>
26526 PR rtl-optimization/52800
26527 * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
26528 CLEANUP_CFG_CHANGED.
26530 2012-04-02 Richard Guenther <rguenther@suse.de>
26532 PR middle-end/52803
26533 * loop-init.c (gate_handle_loop2): Destroy loops here if
26534 we don't enter RTL loop optimizers.
26536 2012-04-02 Uros Bizjak <ubizjak@gmail.com>
26539 2012-03-29 Richard Guenther <rguenther@suse.de>
26541 * rtl.h (extended_count): Remove.
26542 * combine.c (extended_count): Remove.
26544 2012-04-02 Dodji Seketeli <dodji@redhat.com>
26547 * pt.c (more_specialized_fn): Don't apply decay conversion to
26548 types of function parameters.
26550 2012-04-02 Tristan Gingold <gingold@adacore.com>
26552 * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
26553 (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
26554 (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
26555 (ggc_pch_this_base): Use uintptr_t instead of size_t.
26557 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
26560 * config/i386/i386.c (ix86_option_override_internal): Don't
26561 check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
26563 2012-03-31 Eric Botcazou <ebotcazou@adacore.com>
26565 * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
26566 (stmt_can_make_abnormal_goto): Use it.
26567 (is_ctrl_altering_stmt): Likewise.
26569 2012-03-30 Naveen H.S <naveen.S@kpitcummins.com>
26570 Kaz Kojima <kkojima@gcc.gnu.org>
26572 * config/sh/sh.c (push_regs): Skip banked registers when
26573 resbank attribute is specified.
26574 (sh_expand_epilogue): Likewise.
26576 2012-03-30 Richard Henderson <rth@redhat.com>
26579 * combine-stack-adj.c (prev_active_insn_bb): New.
26580 (next_active_insn_bb): New.
26581 (force_move_args_size_note): New.
26582 (combine_stack_adjustments_for_block): Use it.
26584 2012-03-30 Richard Henderson <rth@redhat.com>
26586 * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
26587 (ix86_expand_vector_init_duplicate): Initialize it.
26588 (expand_vec_perm_palignr): Likewise.
26589 (ix86_expand_vec_perm_const): Likewise.
26590 (ix86_vectorize_vec_perm_const_ok): Likewise.
26591 (expand_vec_perm_blend): Use it.
26592 (expand_vec_perm_vpermil): Likewise.
26593 (expand_vec_perm_pshufb): Likewise.
26594 (expand_vec_perm_1): Likewise.
26595 (expand_vec_perm_pshuflw_pshufhw): Likewise.
26596 (expand_vec_perm_interleave2): Likewise.
26597 (expand_vec_perm_vpermq_perm_1): Likewise.
26598 (expand_vec_perm_vperm2f128): Likewise.
26599 (expand_vec_perm_interleave3): Likewise.
26600 (expand_vec_perm_vperm2f128_vblend): Likewise.
26601 (expand_vec_perm_vpshufb2_vpermq): Likewise.
26602 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
26603 (expand_vec_perm_broadcast): Likewise.
26604 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
26606 2012-03-30 Richard Henderson <rth@redhat.com>
26608 * dwarf2out.c (gen_variable_die): Initialize off.
26610 2012-03-30 Tristan Gingold <gingold@adacore.com>
26612 * config/vms/vms-f.c: New file.
26613 * config/vms/t-vms (vms-f.o): New rule.
26614 * config.gcc (*-*-*vms*): Define fortran_target_objs.
26616 2012-03-30 Richard Guenther <rguenther@suse.de>
26618 PR tree-optimization/52754
26619 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
26620 propagate arbitrary addresses into really plain dereferences.
26622 2012-03-30 Richard Guenther <rguenther@suse.de>
26624 PR middle-end/52772
26625 * except.c (emit_to_new_bb_before): Move loop updating ...
26626 (dw2_build_landing_pads): ... here. Use a proper block for
26627 querying the loop father.
26629 2012-03-30 Tristan Gingold <gingold@adacore.com>
26631 * config/ia64/ia64.c (ia64_section_type_flags): Remove
26632 common_object attribute handling.
26633 (SECTION_VMS_OVERLAY): Remove
26634 (ia64_vms_common_object_attribute): Replace abort with an assert.
26635 Do not set DECL_SECTION_NAME.
26636 (ia64_vms_output_aligned_decl_common): Handle common_object
26638 (ia64_vms_elf_asm_named_section): Remove.
26639 * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
26641 2012-03-30 Richard Guenther <rguenther@suse.de>
26643 PR middle-end/52786
26644 * double-int.c (rshift_double): Remove not needed cast.
26646 2012-03-30 Richard Guenther <rguenther@suse.de>
26648 * tree-affine.h (print_aff): Remove.
26649 * tree-affine.c (print_aff): Make static.
26650 * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
26651 (get_references_in_stmt): Likewise.
26652 (print_direction_vector): Likewise.
26653 (print_dir_vectors): Likewise.
26654 (print_dist_vectors): Likewise.
26655 (dump_subscript): Likewise.
26656 (dump_ddrs): Likewise.
26657 (dump_dist_dir_vectors): Likewise.
26658 (dump_data_references): Likewise.
26659 (dump_data_dependence_relation): Likewise.
26660 (dump_data_dependence_direction): Likewise.
26661 (dump_rdg_vertex): Likewise.
26662 (dump_rdg_component): Likewise.
26663 (debug_ddrs): Declare.
26664 (struct data_ref_loc_d): Move ...
26665 * tree-data-ref.c (struct data_ref_loc_d): ... here.
26666 (get_references_in_stmt): Make static.
26667 (dump_data_references): Likewise.
26668 (dump_subscript): Likewise.
26669 (print_direction_vector): Likewise.
26670 (print_dir_vectors): Likewise.
26671 (print_dist_vectors): Likewise.
26672 (dump_data_dependence_relation): Likewise.
26673 (dump_dist_dir_vectors): Likewise.
26674 (dump_ddrs): Likewise.
26675 (dump_rdg_vertex): Likewise.
26676 (dump_rdg_component): Likewise.
26677 (debug_ddrs): New function.
26678 (access_matrix_get_index_for_parameter): Remove.
26680 2012-03-30 Tristan Gingold <gingold@adacore.com>
26682 * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
26683 (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
26684 (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
26685 (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
26686 (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
26687 (vms_patch_builtins): Handle new flags
26688 * config/vms/vms-crtlmap.map: Completed using nm on
26689 c and math system libraries.
26690 * config/vms/make-crtlmap.awk: Handle any number of flags.
26692 2012-03-30 Martin Jambor <mjambor@suse.cz>
26694 * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
26695 is a builtin_stack_save in a dominating BB.
26697 2012-03-29 Uros Bizjak <ubizjak@gmail.com>
26699 * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
26700 crossing 128bit lane boundary.
26702 2012-03-29 Vladimir Makarov <vmakarov@redhat.com>
26704 * ira-color.c (setup_left_conflict_sizes_p): Process all
26705 conflicting objects.
26707 2012-03-29 Jakub Jelinek <jakub@redhat.com>
26709 PR tree-optimization/52760
26710 * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
26711 shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
26713 2012-03-29 Richard Guenther <rguenther@suse.de>
26715 * cgraph.h (cgraph_materialize_all_clones): Remove.
26716 (reset_inline_failed): Likewise.
26717 * cgraphunit.c (cgraph_materialize_all_clones): Make static.
26718 * cgraphbuild.c (reset_inline_failed): Remove.
26719 * rtl.h (cse_main): Remove.
26720 (extended_count): Likewise.
26721 * cse.c (dump_class): Mark as DEBUG_FUNCTION.
26722 (cse_main): Make static.
26723 * combine.c (extended_count): Remove.
26724 (dump_combine_stats): Mark as DEBUG_FUNCTION.
26725 * basic-block.h (reorder_basic_blocks): Remove.
26726 * bb-reorder.c (reorder_basic_blocks): Make static.
26727 * Makefile.in (dse.o): Remove dse.h dependency.
26729 * dse.c (gate_dse): Remove.
26730 (clear_alias_mode_eq): Likewise.
26731 (clear_alias_mode_hash): Likewise.
26732 (dse_record_singleton_alias_set): Likewise.
26733 (dse_invalidate_singleton_alias_set): Likewise.
26735 2012-03-29 H.J. Lu <hongjiu.lu@intel.com>
26737 * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
26738 crtbegin_so%O%s for -shared.
26739 (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
26741 2012-03-29 Richard Guenther <rguenther@suse.de>
26743 * tree-flow.h (struct pre_expr_d): Remove forward declaration.
26744 (add_to_value): Remove.
26745 (print_value_expressions): Likewise.
26746 * tree-ssa-pre.c (add_to_value): Make static.
26747 (print_value_expressions): Likewise.
26748 * gimple.h (gimple_adjust_this_by_delta): Remove.
26749 * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
26751 2012-03-29 Richard Guenther <rguenther@suse.de>
26753 PR middle-end/50708
26754 * double-int.h (rshift_double): Remove.
26755 * double-int.c (lshift_double): Use absu_hwi to make count positive.
26756 (rshift_double): Make static, take unsigned count argument,
26757 remove handling of negative count argument.
26758 (double_int_rshift): Dispatch to lshift_double.
26760 2012-03-28 H.J. Lu <hongjiu.lu@intel.com>
26762 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
26763 OPTION_MASK_ABI_64.
26765 * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
26766 (SPEC_X32): Likewise.
26767 (MULTILIB_DEFAULTS): Likewise.
26769 * config/i386/i386.c (isa_opts): Remove -m64.
26770 (ix86_target_string): Properly handle -m32/-m64/-mx32.
26771 (ix86_option_override_internal): Properly
26772 set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
26773 handle -m32, -m64 and -mx32.
26775 * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
26776 with OPTION_ABI_X32. Moved after TARGET_LP64.
26777 (TARGET_LP64): Changed to OPTION_ABI_64.
26779 * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
26780 (mx32): Replace ISA_X32 with ABI_X32.
26782 2012-03-28 Eric Botcazou <ebotcazou@adacore.com>
26784 * tree.c (tree_size) <VECTOR_CST>: New case.
26786 2012-03-28 Uros Bizjak <ubizjak@gmail.com>
26788 * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
26789 (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
26791 2012-03-28 Jakub Jelinek <jakub@redhat.com>
26793 PR middle-end/52691
26794 * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
26795 __builtin_va_start to __builtin_next_arg if the latter is
26796 builtin_decl_explicit_p rather than when it is not.
26798 PR middle-end/52750
26799 * tree-vect-generic.c (vector_element): Perform multiplication
26800 for pos in bitsizetype type instead of idx type.
26802 2012-03-28 Richard Guenther <rguenther@suse.de>
26804 * loop-init.c (loop_optimizer_init): If loops are preserved
26805 perform incremental initialization of required loop features.
26806 (loop_optimizer_finalize): If loops are to be preserved only
26807 clean up optional loop features.
26808 (rtl_loop_done): Forcefully free loops here.
26809 * cgraph.c (cgraph_release_function_body): Forcefully free loops.
26810 * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
26812 (construct_init_block): Likewise.
26813 (construct_exit_block): Likewise.
26814 (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state. Cleanup
26815 the CFG after expanding.
26816 * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
26817 If we needed to calculate them, free them afterwards.
26818 * tree-pass.h (PROP_loops): New define.
26819 * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
26820 * basic-block.h (CLEANUP_CFG_CHANGED): New.
26821 * cfgcleanup.c (merge_blocks_move): Protect loop latches.
26822 (cleanup_cfg): If we did something and have loops around, fix them up.
26823 * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
26824 with CLEANUP_CFG_CHANGED.
26825 * cfghooks.c (merge_blocks): If we merge a loop header into
26826 its predecessor, update the loop structure.
26827 (duplicate_block): If we copy a loop latch, adjust loop state
26828 to note we may have multiple latches.
26829 (delete_basic_block): Mark loops for fixup if we remove a loop.
26830 * cfganal.c (forwarder_block_p): Protect loop latches, headers
26832 * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
26833 (cfg_layout_can_merge_blocks_p): Likewise.
26834 * cprop.c (bypass_block): If we create a loop with multiple
26835 entries, mark it for removal.
26836 * except.c (emit_to_new_bb_before): Add the new basic-block
26838 * tree-eh.c (lower_resx): Likewise.
26839 * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
26840 (expand_omp_taskreg): Likewise.
26841 * tree-inline.c (initialize_cfun): Likewise.
26842 * tree-mudflap.c (add_bb_to_loop): Prototype.
26843 (mf_build_check_statement_for): Properly add new basic-blocks
26845 * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
26846 if we remove a loop.
26847 (thread_through_loop_header): Likewise.
26848 * trans-mem.c (tm_log_emit_save_or_restores): Properly add
26849 new basic-blocks to existing loops.
26850 (expand_transaction): Likewise.
26851 * Makefile.in (except.o): Add $(CFGLOOP_H).
26852 (expr.o): Likewise.
26853 (cgraph.o): Likewise.
26854 (cprop.o): Likewise.
26855 (cfgexpand.o): Likewise.
26856 (cfganal.o): Likewise.
26857 (trans-mem.o): Likewise.
26858 (tree-eh.o): Likewise.
26860 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
26863 * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
26864 (avr_builtin_decl): New static function.
26865 (struct avr_builtin_description, avr_bdesc): Move up.
26866 Add GTY marker. Add field fndecl. Remove redundant field id.
26867 (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
26868 (avr_expand_builtin): Code cleanup because .id is removed.
26870 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
26873 * config.gcc (tm_file): Remove avr/multilib.h.
26875 * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
26877 * config/avr/genmultilib.awk: Remove code to generate multilib.h.
26878 (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
26879 * config/avr/t-avr: Remove generation of multilib.h.
26880 * config/avr/t-multilib: Regenerate.
26881 * config/avr/multilib.h: Remove.
26882 * config/avr/avr.opt (-msp8): New option.
26883 (avr_sp8): New variable.
26884 * config/avr/driver-avr.c (avr_device_to_sp8): New function.
26885 * config/avr/avr.h (AVR_HAVE_SPH): New define.
26886 (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
26887 (avr_device_to_sp8): New prototype.
26888 (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
26889 (DRIVER_SELF_SPECS): New define.
26890 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
26891 __AVR_SP8__, __AVR_HAVE_SPH__.
26892 * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
26893 AVR_HAVE_8BIT_SP to decide if SP_H is present.
26894 (avr_file_start): Ditto.
26896 2012-03-28 Jakub Jelinek <jakub@redhat.com>
26899 * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
26900 instead of 8 in adjust_address.
26902 2012-03-27 Aurelien Buhrig <aurelien.buhrig.gcc@gmail.com>
26904 PR middle-end/51893
26905 * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
26908 2012-03-27 Oleg Endo <olegendo@gcc.gnu.org>
26911 * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
26912 Rearrange conditional logic. Move displacement address calculations
26914 (sh_find_mov_disp_adjust): ... this new function.
26916 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
26918 * config/arm/arm.opt (mapcs): Remove MaskExists.
26919 * config/cris/linux.opt (mno-gotplt): Likewise.
26920 * config/i386/i386.opt (mhard-float): Likewise.
26922 (mno-sse4): Likewise.
26923 * config/m68k/m68k.opt (mhard-float): Likewise.
26924 * config/mep/mep.op (mcop32): Likewise.
26925 * config/pa/pa-hpux.opt (msio): Likewise.
26926 * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
26927 * config/picochip/picochip.opt (mlittle): Likewise.
26928 * config/sh/sh.opt (mrenesas): Likewise.
26929 * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
26930 * config/sparc/sparc.opt (mhard-float): Likewise.
26931 * config/v850/v850.opt (mv850es): Likewise.
26932 * config/vax/vax.opt (mg-float): Likewise.
26934 2012-03-27 Martin Jambor <mjambor@suse.cz>
26936 PR middle-end/52693
26937 * tree-sra.c (sra_modify_assign): Do not call
26938 load_assign_lhs_subreplacements when working with an unscalarizable
26941 2012-03-27 Uros Bizjak <ubizjak@gmail.com>
26944 * config/i386/i386-protos.h (ix86_legitimize_reload_address):
26946 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
26947 * config/i386/i386.c: Include reload.h.
26948 (ix86_legitimize_reload_address): New function.
26950 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
26952 * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
26953 hasn't been allocated. Define a target macro for Mask and
26954 InverseMask if it hasn't been defined. Remove MaskExists handling.
26956 * doc/options.texi: Remove MaskExists.
26958 2012-03-27 Chung-Lin Tang <cltang@codesourcery.com>
26961 * config/sh/sh.c (find_barrier): Add equality check of last_got
26962 to avoid going above orig insn. Update comments.
26964 2012-03-27 Richard Guenther <rguenther@suse.de>
26966 PR middle-end/52720
26967 * fold-const.c (try_move_mult_to_index): Handle &x.array more
26970 2012-03-27 Eric Botcazou <ebotcazou@adacore.com>
26972 * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
26973 of a unit before computing the offset in units.
26974 * expr.c (get_bit_range): Return the null range if the enclosing record
26975 is part of a larger bit field.
26977 2012-03-27 Tristan Gingold <gingold@adacore.com>
26979 * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
26980 * config/ia64/ia64.md: Remove mode in template.
26981 Sign extend operand in expand_simple_binop.
26982 * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
26983 CASE_VECTOR_MODE instead of TARGET_ILP32.
26984 (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
26986 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
26988 * varasm.c (assemble_external): #if 0 out the new assert from the
26989 previous commit, it breaks the Java and Go front ends.
26991 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
26993 * toplev.c (check_global_declaration_1): Do not call assemble_external.
26994 * expr.c (emit_block_move_libcall_fn): Likewise.
26995 (clear_storage_libcall_fn): Likewise.
26996 (expand_expr_addr_expr_1): Likewise.
26997 (expand_expr_real_1): Likewise.
26998 * calls.c (rtx_for_function_call): Likewise.
27000 * varasm.c (assemble_external): Assert this function is only called
27001 during or after expanding to RTL.
27003 2012-03-26 Martin Jambor <mjambor@suse.cz>
27005 PR tree-optimization/50052
27006 * tree-sra.c (tree_non_aligned_mem_p): Removed.
27007 (tree_non_aligned_mem_for_access_p): Likewise.
27008 (build_accesses_from_assign): Removed strict alignment requirements
27010 (access_precludes_ipa_sra_p): Likewise.
27012 2012-03-26 Richard Guenther <rguenther@suse.de>
27014 PR tree-optimization/52701
27015 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
27016 compute and set the evolution part of PHI nodes.
27018 2012-03-26 Richard Guenther <rguenther@suse.de>
27020 PR tree-optimization/52721
27021 * tree-vect-stmts.c (vect_init_vector): Handle scalars.
27023 2012-03-26 Ulrich Weigand <ulrich.weigand@linaro.org>
27025 PR tree-optimization/52686
27026 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
27029 2012-03-26 Tristan Gingold <gingold@adacore.com>
27031 * config/alpha/vms.h (LINK_SPEC): Simplify.
27032 (STARTFILE_SPEC): Remove -mvms-return-codes handling.
27033 (NAME__MAIN, SYMBOL__MAIN): Remove.
27034 (VMS_DEBUG_MAIN_POINTER): Remove.
27035 * config/ia64/vms.h: Likewise.
27036 * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
27037 code to vms.c. Call vms_start_function.
27038 * config/ia64/ia64.c (ia64_start_function): Likewise.
27039 * config/vms/vms-protos.h (vms_start_function): Declare.
27040 * config/vms/vms.c (vms_start_function): New function.
27041 * config/vms/vms.h (MATH_LIBRARY): Define.
27042 (VMS_DEBUG_MAIN_POINTER): Define.
27044 2012-03-26 Eric Botcazou <ebotcazou@adacore.com>
27046 PR rtl-optimization/52629
27047 * reload1.c (count_pseudo): Short-circuit common case.
27048 (count_spilled_pseudo): Return early for pseudos without hard regs.
27049 Assert that the pseudo has got a hard reg before manipulating it.
27051 2012-03-24 Jan Hubicka <jh@suse.cz>
27054 * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
27055 (decide_is_variable_needed): Do not handle toplevel reorder here.
27056 * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
27057 * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
27060 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
27062 * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
27063 and str_bitsize instead of more convoluted expressions.
27065 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
27068 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
27070 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
27073 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
27075 2012-03-23 Martin Jambor <mjambor@suse.cz>
27077 * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
27079 2012-03-23 Richard Guenther <rguenther@suse.de>
27081 PR tree-optimization/52678
27082 * tree-vectorizer.h (struct _stmt_vec_info): Add
27083 loop_phi_evolution_part member.
27084 (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
27085 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
27086 STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
27087 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
27088 Use the cached evolution part and the PHI nodes value from
27089 the loop preheader edge instead of re-analyzing the evolution.
27091 2012-03-22 Maxim Kuvyrkov <maxim@codesourcery.com>
27093 * config/mips/mips-tables.opt: Update.
27094 * config/mips/mips.md (processor): Add xlp.
27095 * config/mips/mips-cpus.def: Add xlp.
27096 * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
27098 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
27099 * doc/invoke.texi: Mention XLP.
27101 2012-03-22 Jakub Jelinek <jakub@redhat.com>
27103 PR middle-end/52547
27104 * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
27105 on any new_local_var_chain vars declared during recursing on
27106 GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
27108 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
27110 * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
27111 (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
27112 (ASM_OUTPUT_LOCAL): Ditto.
27113 (ASM_OUTPUT_COMMON): Remove.
27114 * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
27115 * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
27117 2012-03-22 Jan Hubicka <jh@suse.cz>
27119 PR middle-end/51737
27120 * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
27122 * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
27123 * ipa-inline-transform.c (save_inline_function_body): Remove
27124 copied clone if needed.
27125 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
27127 2012-03-22 Richard Guenther <rguenther@suse.de>
27129 PR middle-end/52666
27130 * fold-const.c (fold_ternary_loc): Fix typo.
27132 2012-03-22 Georg-Johann Lay <avr@gjlay.de>
27135 * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
27136 (unspecv): Add UNSPECV_MEMORY_BARRIER.
27137 (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
27138 (delay_cycles_1, delay_cycles_2): Ditto.
27139 (delay_cycles_3, delay_cycles_4): Ditto.
27140 (nopv, *nopv): Ditto.
27141 (sleep, *sleep): Ditto.
27142 (wdr, *wdr): Ditto.
27144 2012-03-22 Richard Guenther <rguenther@suse.de>
27146 PR tree-optimization/52548
27147 * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
27148 because of clobbers.
27149 (prune_clobbered_mems): New function.
27150 (compute_antic_aux): Use it to prune ANTIC_OUT.
27151 (compute_partial_antic_aux): Use it to prune PA_IN.
27152 (compute_avail): Only insert expressions into EXP_GEN that are not
27153 invalidated when translated up to the beginning of the block.
27155 2012-03-22 Richard Guenther <rguenther@suse.de>
27157 PR tree-optimization/52638
27158 * tree-vect-stmts.c (vect_init_vector_1): New function, split
27160 (vect_init_vector): ... here. Handle scalar vector inits.
27161 (vect_get_vec_def_for_operand): Adjust.
27162 (vectorizable_load): Likewise.
27164 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
27166 * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
27167 (alpha*-*-freebsd*): Ditto.
27168 (alpha*-*-netbsd*): Ditto.
27169 (alpha*-*-openbsd*): Ditto.
27170 * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
27171 (DWARF2_DEBUGGING_INFO): Remove.
27172 (PREFERRED_DEBUGGING_TYPE): Remove.
27173 (ASM_FINAL_SPEC): Remove.
27174 (IDENT_ASM_OP): Remove.
27175 (ASM_OUTPUT_IDENT): Remove.
27176 (SKIP_ASM_OP): Remove.
27177 (ASM_OUTPUT_SKIP): Remove.
27178 (ALIGN_ASM_OP): Remove.
27179 (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
27180 (ASM_OUTPUT_CASE_LABEL): Remove.
27181 (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
27182 (COMMON_ASM_OP): Remove.
27183 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
27184 (ASCII_DATA_ASM_OP): Remove.
27185 (READONLY_DATA_SECTION_ASM_OP): Remove.
27186 (INIT_SECTION_ASM_OP): Remove.
27187 (FINI_SECTION_ASM_OP): Remove.
27188 (ASM_SECTION_START_OP): Remove.
27189 (ASM_OUTPUT_SECTION_START_FILE): Remove.
27190 (TARGET_ASM_NAMED_SECTION): Remove.
27191 (TARGET_ASM_SELECT_SECTION): Remove.
27192 (MAKE_DECL_ONE_ONLY): Remove.
27193 (TYPE_ASM_OP): Remove.
27194 (SIZE_ASM_OP): Remove.
27195 (ASM_WEAKEN_LABEL): Remove.
27196 (TYPE_OPERAND_FMT): Remove.
27197 (ASM_DECLARE_RESULT): Remove.
27198 (ASM_DECLARE_OBJECT_NAME): Remove.
27199 (ASM_FINISH_DECLARE_OBJECT): Remove.
27200 (ELF_ASCII_ESCAPES): Remove.
27201 (ELF_STRING_LIMIT): Remove.
27202 (STRING_ASM_OP): Remove.
27203 (ASM_OUTPUT_EXTERNAL): Remove.
27204 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
27205 * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
27207 (ASM_DECLARE_FUNCTION_NAME): Ditto.
27208 (ASM_DECLARE_FUNCTION_SIZE): Ditto.
27209 (ASM_GENERATE_INTERNAL_LABEL): Ditto.
27210 (ASM_OUTPUT_SKIP): Ditto.
27211 (READONLY_DATA_SECTION_ASM_OP): Remove.
27212 (USER_LABEL_PREFIX): Remove.
27213 (ASM_OUTPUT_ASCII): Remove.
27214 (ASM_OUTPUT_CASE_LABEL): Remove.
27215 (NO_DOLLAR_IN_LABEL): Undefine.
27217 2012-03-22 Richard Guenther <rguenther@suse.de>
27219 PR tree-optimization/52459
27220 * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
27221 PHI insertion for calls.
27223 2012-03-21 Steven Bosscher <steven@gcc.gnu.org>
27225 * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
27226 find_sets_in_insn, canonicalize_insn): Split out from ...
27227 (cse_insn): ... here.
27228 (invalidate_from_clobbers): Take an insn instead of the pattern.
27230 2012-03-21 Oleg Endo <olegendo@gcc.gnu.org>
27233 * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
27234 * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
27235 * config/sh/sh.md (sindf2, cosdf2): Remove.
27237 2012-03-21 Kaz Kojima <kkojima@gcc.gnu.org>
27240 * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
27241 prologue for unwinder and profiler.
27243 2012-03-21 Andreas Tobler <andreast@fgznet.ch>
27245 * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
27246 Introduce emul_name to select the right linker emulation for
27247 powerpc64-*-freebsd*.
27248 * configure: Regenerate.
27249 * config.gcc: Add bits to support powerpc64-*-freebsd*.
27250 * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
27251 * config/rs6000/freebsd64.h: New file.
27252 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
27254 (rs6000_savres_strategy): Likewise.
27255 (rs6000_savres_routine_name): Likewise.
27256 (rs6000_elf_file_end): Likewise.
27257 * config/rs6000/t-freebsd64: New file.
27258 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
27259 rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
27261 * config/rs6000/freebsd64.h: Remove duplicated entries from last
27263 * config/rs6000/t-freebsd64: Likewise.
27265 2012-03-21 Georg-Johann Lay <avr@gjlay.de>
27267 PR rtl-optimization/52543
27269 * config/avr/avr-protos.h (avr_load_lpm): New prototype.
27270 * config/avr/avr.c (avr_mode_dependent_address_p): New function.
27271 (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
27272 (avr_load_libgcc_p): Restrict to __flash loads.
27273 (avr_out_lpm): Only handle 1-byte loads from __flash.
27274 (avr_load_lpm): New function.
27275 (avr_find_unused_d_reg): Remove.
27276 (avr_out_lpm_no_lpmx): Remove.
27277 (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
27278 * config/avr/avr.md (unspec): Add UNSPEC_LPM.
27279 (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
27280 (load_<mode>, load_<mode>_clobber): New insns.
27281 (mov<mode>): For multi-byte move from non-generic
27282 16-bit address spaces: Expand to load_<mode> resp.
27283 load_<mode>_clobber.
27284 (load<mode>_libgcc): Remove expander.
27285 (split-lpmx): Remove split.
27287 2012-03-21 Richard Earnshaw <rearnsha@arm.com>
27289 * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
27290 * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
27291 All callers changed.
27292 (Fixed_core_reg): New feature.
27293 (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg. Allow fmrrd in
27295 * neon-testgen.ml: Handle Fixed_core_reg.
27297 2012-03-21 Andrew Stubbs <ams@codesourcery.com>
27299 * config/arm/arm.c (thumb2_reorg): Add complete support
27300 for 16-bit instructions.
27301 * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
27303 2012-03-21 Richard Guenther <rguenther@suse.de>
27305 PR tree-optimizer/52636
27306 * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
27307 to the appropriate type.
27309 2012-03-21 Richard Guenther <rguenther@suse.de>
27311 * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
27313 * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
27314 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
27315 * passes.c (init_optimization_passes): Remove pass_init_function,
27316 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
27317 * tree-pass.h (pass_init_function): Remove.
27318 (pass_jump): Remove.
27319 (pass_initial_value_sets): Remove.
27320 (pass_unshare_all_rtl): Remove.
27321 * integrate.c (pass_initial_value_sets): Remove.
27322 * emit-rtl.c (pass_unshare_all_rtl): Remove.
27323 * tree.h (init_function_for_compilation): Remove.
27324 * function.c (init_function_for_compilation): Remove.
27325 (pass_init_function): Remove.
27326 * cfgcleanup.c (rest_of_handle_jump): Remove.
27327 (pass_jump): Remove.
27329 2012-03-20 Jason Merrill <jason@redhat.com>
27331 * tree-streamer-in.c (streamer_alloc_tree): Call
27332 ggc_alloc_zone_cleared_tree_node instead of
27333 ggc_alloc_zone_cleared_tree_node_stat.
27335 2012-03-20 Jonathan Wakely <jwakely.gcc@gmail.com>
27337 * doc/extend.texi (Template Instantiation): Remove anachronisms.
27339 2012-03-20 Jakub Jelinek <jakub@redhat.com>
27342 * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
27343 (ix86_expand_vec_perm_const_1): Call it.
27345 * config/i386/i386.c (vselect_insn): New variable.
27346 (init_vselect_insn): New function.
27347 (expand_vselect, expand_vselect_insn): Add testing_p argument.
27348 Call init_vselect_insn if vselect_insn is NULL. Adjust
27349 PATTERN (vselect_insn), instead of creating a new insn each time,
27350 only emit a copy of it if not testing and recog has been successful.
27351 (expand_vec_perm_pshufb, expand_vec_perm_1,
27352 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
27356 * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
27357 ("enabled" attribute): Handle avx2 and noavx2 isas.
27358 * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
27360 (vec_dup<mode>): Add avx2 =x,x alternative.
27361 (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
27362 (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
27363 For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
27364 * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
27366 (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
27367 if possible, handle also V8SFmode.
27369 2012-03-20 Richard Earnshaw <rearnsha@arm.com>
27371 * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
27372 * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
27373 reg_or_zero_operand predicate.
27374 (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
27376 2012-03-20 Jakub Jelinek <jakub@redhat.com>
27378 * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
27379 If operand isn't UNSPEC, return 0.
27381 2012-03-20 Richard Guenther <rguenther@suse.de>
27383 * tree-pass.h (pass_rtl_eh): Remove.
27384 * except.c (gate_handle_eh): Likewise.
27385 (rest_of_handle_eh): Likewise.
27386 (pass_rtl_eh): Likewise.
27387 (finish_eh_generation): Export.
27388 * except.h (finish_eh_generation): Declare.
27389 * passes.c (init_optimization_passes): Remove pass_rtl_eh.
27390 * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
27391 after expanding stack alignment. Instead of compacting blocks
27394 2012-03-20 Richard Guenther <rguenther@suse.de>
27396 * stor-layout.c (finish_bitfield_representative): Fallback
27397 to conservative maximum size if the padding up to the next
27398 field cannot be computed as a constant.
27399 (finish_bitfield_layout): If we cannot compute the distance
27400 between the start of the bitfield representative and the
27401 bitfield member start a new representative.
27402 * expr.c (get_bit_range): The distance between the start of
27403 the bitfield representative and the bitfield member is zero
27404 if the field offsets are not constants.
27406 2012-03-20 Tristan Gingold <gingold@adacore.com>
27408 * tree.h (enum size_type_kind): Add stk_ prefix to constants,
27409 convert in lowercase.
27410 (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
27411 (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
27412 * stor-layout.c (sizetype_tab): Adjust.
27413 (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
27414 * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
27415 instead of type_kind_last.
27416 * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
27417 instead of size_int_kind.
27418 * doc/tm.texi.in (Type Layout): Document SIZETYPE.
27419 * doc/tm.texi: Regenerate.
27420 * defaults.h (SIZETYPE): Provide a default value.
27421 * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
27422 (SIZETYPE): Define.
27424 2012-03-20 Oleg Endo <olegendo@gcc.gnu.org>
27426 * config/sh/sh.md: Use braced string notation where applicable.
27428 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
27430 * config/i386/i386.md (allocate_stack): Simplify.
27432 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
27434 * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
27435 copy_to_mode_reg (Pmode, ...).
27436 (expand_builtin_frame_address): Ditto.
27437 * expr.c (emit_block_move_via_libcall): Ditto.
27438 (set_storage_via_libcall): Ditto.
27440 * config/i386/i386.c (ix86_expand_movmem): Ditto.
27441 (ix86_expand_setmem): Ditto.
27442 (ix86_trampoline_init): DItto.
27443 * config/i386/i386.md (cmpstrnsi): Ditto.
27445 2012-03-19 Sandra Loosemore <sandra@codesourcery.com>
27447 * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
27448 * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
27449 * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
27450 (SH Options): Likewise.
27452 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
27454 * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
27455 Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
27456 (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
27457 DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
27458 (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
27461 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
27463 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
27464 * config/i386/i386.c (ix86_decompose_address): Use
27465 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
27466 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
27467 thread pointer to a register.
27470 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
27472 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
27473 if Pmode != word_mode.
27474 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
27475 Pmode == SImode for TARGET_X32.
27477 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
27478 (tls_initial_exec_x32): Likewise.
27480 2012-03-19 Oleg Endo <olegendo@gcc.gnu.org>
27483 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
27484 DISP_ADDR_OFFSET): New macros.
27485 * config/sh/sh.c (sh_address_cost): Add SH2A special case.
27486 (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
27487 (sh_legitimize_address): Add QImode displacement handling.
27488 (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
27490 (sh_secondary_reload): Add QImode displacement handling.
27491 * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
27492 * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
27493 * config/sh/sh.md (extendqisi2): Remove constraints from expander.
27494 (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
27495 to register operands only.
27496 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
27497 (extendqihi2): Change insn to expander.
27498 (*extendqihi2_compact_reg): New insn.
27499 (movqi_i, movqi): Replace with ...
27500 (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
27501 *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
27502 Add new peepholes for QImode displacement addressing.
27504 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
27507 * doc/invoke.texi: Document -Wuseless-cast.
27509 2012-03-19 Eric Botcazou <ebotcazou@adacore.com>
27511 * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
27512 * tree.h (handled_component_p): Reorder cases.
27513 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
27514 not initialize unsignedp.
27515 (loc_list_from_tree): Likewise.
27516 (fortran_common): Likewise.
27517 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
27519 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
27521 * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
27522 mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode.
27523 (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
27524 (ix86_split_long_move): Ditto.
27525 (legitimize_tls_address): Use ix86_gen_sub3.
27526 (construct_plt_address): Assert that Pmode == DImode.
27528 2012-03-18 Uros Bizjak <ubizjak@gmail.com>
27530 * config/i386/i386.md: Remove empty predicates and/or constraints.
27531 * config/i386/sync.md: Ditto.
27532 * config/i386/sse.md: Ditto.
27533 * config/i386/mmx.md: Ditto.
27534 * config/i386/pentium.md: Ditto.
27535 * config/i386/athlon.md: Ditto.
27537 2012-03-16 Richard Guenther <rguenther@suse.de>
27539 PR tree-optimization/52603
27540 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
27544 2012-03-14 Richard Guenther <rguenther@suse.de>
27546 PR tree-optimization/52571
27547 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
27548 flag_section_anchors check ...
27549 (vect_can_force_dr_alignment_p): ... here.
27551 2012-03-16 Martin Jambor <mjambor@suse.cz>
27553 * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
27554 memory through MEM_REFs by calling extract_bit_field.
27556 2012-03-16 Richard Guenther <rguenther@suse.de>
27558 * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
27559 and REFERENCE_TYPE interpretations.
27560 (can_native_interpret_type_p): New function.
27561 (fold_ternary_loc): Use native encode/interpret to fold
27562 BIT_FIELD_REFs of constants.
27564 2012-03-16 Richard Guenther <rguenther@suse.de>
27566 PR middle-end/52584
27567 * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
27568 of vector constants and constructors.
27570 2012-03-16 Richard Guenther <rguenther@suse.de>
27572 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
27573 VIEW_CONVERT_EXPR to convert constants.
27574 (vect_is_simple_use): Treat all constants as vec_constant_def.
27576 2012-03-16 Richard Guenther <rguenther@suse.de>
27577 Kai Tietz <ktietz@redhat.com>
27579 PR middle-end/48814
27580 * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
27581 side-effects completely in the pre-queue and use a temporary
27584 2012-03-16 Richard Guenther <rguenther@suse.de>
27586 * stor-layout.c (finish_bitfield_representative): Fall back
27587 to the conservative maximum size if we cannot compute the
27588 size of the tail padding.
27590 2012-03-16 Tristan Gingold <gingold@adacore.com>
27592 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
27593 __CRTL_VER and __VMS_VER.
27594 * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
27595 and vms_c_get_vms_ver.
27596 * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
27598 * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
27599 (VMS_DEFAULT_VMS_VER): Define.
27600 * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
27601 (VMS_DEFAULT_VMS_VER): Define.
27603 2012-03-16 Richard Guenther <rguenther@suse.de>
27605 * tree-vect-loop.c (get_initial_def_for_induction): Use
27606 build_constructor directly.
27607 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
27608 build_vector_from_val.
27609 * tree.c (build_vector_from_val): Avoid creating a constructor
27610 first when we want a constant vector.
27612 2012-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27614 * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
27616 2012-03-16 Richard Guenther <rguenther@suse.de>
27618 * tree.h (TREE_VECTOR_CST_ELTS): Remove.
27619 (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
27620 (struct tree_vector): Remove elements member, add variable size
27622 (build_vector_stat): Declare.
27623 (build_vector): Define in terms of build_vector_stat.
27624 * tree.c (build_vector): Rename to ...
27625 (build_vector_stat): ... this. Take array of trees as parameter.
27626 (build_vector_from_ctor): Adjust.
27627 (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
27628 initializer_zerop): Adjust.
27629 * cfgexpand.c (expand_debug_expr): Likewise.
27630 * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
27631 const_vector_from_tree): Likewise.
27632 * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
27633 native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
27634 fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
27635 * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
27636 (lto_input_ts_vector_tree_pointers): Adjust.
27637 * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
27638 (write_ts_vector_tree_pointers): Adjust.
27639 * varasm.c (const_hash_1, compare_constant, copy_constant,
27640 output_constant): Adjust.
27641 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
27642 * print-tree.c (print_node): Adjust.
27643 * tree-pretty-print.c (dump_generic_node): Adjust.
27644 * tree-vect-generic.c (uniform_vector_p, vector_element,
27645 lower_vec_perm): Adjust.
27646 * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
27647 * tree-vect-slp.c (vect_get_constant_vectors,
27648 vect_transform_slp_perm_load): Adjust.
27649 * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
27650 * expmed.c (make_tree): Adjust.
27651 * config/i386/i386.c (ix86_expand_builtin): Adjust.
27652 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
27653 and implementation.
27654 (sparc_fold_builtin): Adjust.
27656 2012-03-16 Tristan Gingold <gingold@adacore.com>
27658 * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
27659 * config/vms/vms-stdint.h: New file.
27661 2012-03-16 Tristan Gingold <gingold@adacore.com>
27663 * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
27664 (ia64-hp-*vms*): Replaced by ...
27665 (*-*-*vms*): ... This new entry.
27667 2012-03-15 Jakub Jelinek <jakub@redhat.com>
27670 * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
27671 (ix86_expand_vec_perm_const_1): Use it.
27674 * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
27675 (avx2_permv4df): Remove.
27676 (avx2_permv4di): Macroize into...
27677 (avx2_perm<mode>): ... this using VI8F_256 iterator.
27678 (avx2_permv4di_1): Macroize into...
27679 (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
27681 2012-03-15 Ulrich Weigand <ulrich.weigand@linaro.org>
27683 * combine.c (apply_distributive_law): Do not distribute SUBREG.
27685 2012-03-15 Ira Rosen <irar@il.ibm.com>
27686 Ulrich Weigand <ulrich.weigand@linaro.org>
27688 * tree-vect-patterns.c (widened_name_p): Rename to ...
27689 (type_conversion_p): ... this. Add new argument to determine
27690 if it's a promotion or demotion operation. Check for
27691 CONVERT_EXPR_CODE_P instead of NOP_EXPR.
27692 (vect_recog_dot_prod_pattern): Call type_conversion_p instead
27694 (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
27695 vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
27697 (vect_recog_mixed_size_cond_pattern): Likewise and allow
27698 non-constant then and else clauses.
27700 2012-03-15 Ira Rosen <irar@il.ibm.com>
27701 Ulrich Weigand <ulrich.weigand@linaro.org>
27703 * tree-vectorizer.h (vect_pattern_recog): Add new argument.
27704 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
27705 vect_pattern_recog.
27706 * tree-vect-patterns.c (widened_name_p): Pass basic block
27707 info to vect_is_simple_use.
27708 (vect_recog_dot_prod_pattern): Fail for basic blocks.
27709 (vect_recog_widen_sum_pattern): Likewise.
27710 (vect_handle_widen_op_by_const): Support basic blocks.
27711 (vect_operation_fits_smaller_type,
27712 vect_recog_over_widening_pattern): Likewise.
27713 (vect_recog_vector_vector_shift_pattern): Support basic blocks.
27714 Update call to vect_is_simple_use.
27715 (vect_recog_mixed_size_cond_pattern): Support basic blocks.
27717 (check_bool_pattern): Add an argument, update call to
27718 vect_is_simple_use and the recursive calls.
27719 (vect_recog_bool_pattern): Update relevant function calls.
27721 (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
27722 (vect_pattern_recog_1): Check for reduction only in loops.
27723 (vect_pattern_recog): Add new argument. Support basic blocks.
27724 * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
27725 info to vect_is_simple_use_1.
27726 * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
27727 (vect_slp_analyze_bb_1): Call vect_pattern_recog.
27729 2012-03-15 Jakub Jelinek <jakub@redhat.com>
27730 Andrew Pinski <apinski@cavium.com>
27732 PR middle-end/52592
27733 * builtins.c (expand_builtin_int_roundingfn_2): If expanding
27734 BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
27735 calls instead of __builtin_ir{int,ound}*.
27737 2012-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27739 * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
27742 2012-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
27744 * config.gcc (target_type_format_char): New. Document it. Set it for
27746 * configure.ac (gnu_unique_option): Use target_type_format_char
27747 in test. Comment rationale.
27748 * configure: Regenerate .
27750 2012-03-15 Jakub Jelinek <jakub@redhat.com>
27752 PR tree-optimization/52267
27753 * tree-vrp.c (masked_increment): New function.
27754 (register_edge_assert_for_2): Derive ASSERT_EXPRs
27755 from (X & CST1) cmp CST2 tests.
27757 2012-03-15 Richard Guenther <rguenther@suse.de>
27759 PR middle-end/52580
27760 * tree-data-ref.c (subscript_dependence_tester_1): Check
27761 all dimensions for non-conflicting access functions.
27763 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
27766 * doc/invoke.texi [C++ Language Options]: Document
27767 -ftemplate-backtrace-limit.
27769 2012-03-15 Tristan Gingold <gingold@adacore.com>
27771 * c-parser.c (c_parser_parameter_declaration): Handle #pragma
27772 before a parameter.
27774 2012-03-15 Tristan Gingold <gingold@adacore.com>
27776 * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
27777 use DW_OP_call_frame_cfa.
27779 2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
27782 * config/i386/i386-opts.h (pmode): New.
27784 * config/i386/i386.c (ix86_option_override_internal): Properly
27785 check and set ix86_pmode.
27787 * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
27789 * config/i386/i386.opt (maddress-mode=): New.
27791 * doc/invoke.texi: Document -maddress-mode=short|long for x86.
27793 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27795 * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
27796 (dwarf2out_do_cfi_asm): Likewise.
27797 * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
27799 (add_data_member_location_attribute): Likewise.
27800 (gen_array_type_die): Likewise.
27801 (gen_subprogram_die): Likewise.
27802 (gen_producer_string): Likewise.
27803 * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
27804 Remove MIPS_DEBUGGING_INFO handling.
27805 (sdb_debug_hooks): Likewise.
27806 (sdbout_begin_block): Likewise.
27807 (sdbout_end_block): Likewise.
27808 (sdbout_begin_prologue): Likewise.
27809 (sdbout_start_source_file): Likewise.
27810 (sdbout_end_source_file): Likewise.
27811 (sdbout_init): Likewise.
27812 * system.h (MIPS_DEBUGGING_INFO): Poison.
27814 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27816 * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
27817 (alpha_file_start) [MS_STAMP]: Remove.
27819 * config/alpha/elf.h (TARGET_GAS): Remove.
27820 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
27821 * config/alpha/linux.h (TARGET_DEFAULT): Remove.
27822 * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
27823 * config/alpha/vms.h (TARGET_DEFAULT): Remove.
27824 * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
27825 (alpha*-*-freebsd*): Likewise.
27826 (alpha*-*-netbsd*): Likewise.
27827 (alpha*-*-openbsd*): Likewise.
27828 (alpha*-*-*): Remove target_cpu_default2.
27829 * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
27831 * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
27832 (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
27833 * config/alpha/alpha.c (print_operand): Always assume
27834 TARGET_AS_SLASH_BEFORE_SUFFIX.
27835 * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
27836 Remove TARGET_AS_CAN_SUBTRACT_LABELS.
27837 ("*builtin_setjmp_receiver_er_1"): Remove.
27838 * config/alpha/alpha.opt (malpha-as): Remove.
27840 * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
27842 Remove DEC Unix reference.
27844 * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
27845 (EXTENDED_COFF): Remove.
27846 * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
27847 (EXTENDED_COFF): Don't undef.
27848 * config/alpha/alpha.c (alpha_file_start): Always assume
27850 Don't set targetm.asm_file_start_file_directive.
27851 [!OBJECT_FORMAT_ELF]: Remove.
27852 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
27854 * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
27855 (DBX_DEBUGGING_INFO): Remove.
27856 (MIPS_DEBUGGING_INFO): Remove.
27857 (PREFERRED_DEBUGGING_TYPE): Remove.
27858 (DBX_OUTPUT_SOURCE_LINE): Remove.
27859 (SDB_OUTPUT_SOURCE_LINE): Remove.
27860 (DBX_CONTIN_LENGTH): Remove.
27861 (NO_DBX_FUNCTION_END): Remove.
27862 (ASM_STABS_OP): Remove.
27863 (ASM_STABN_OP): Remove.
27864 (ASM_STABD_OP): Remove.
27865 (SDB_ALLOW_FORWARD_REFERENCES): Remove.
27866 (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
27867 (PUT_SDB_DEF): Remove.
27868 (PUT_SDB_PLAIN_DEF): Remove.
27869 (PUT_SDB_TYPE): Remove.
27870 (sdb_label_count): Remove.
27871 (PUT_SDB_BLOCK_START): Remove.
27872 (PUT_SDB_BLOCK_END): Remove.
27873 (PUT_SDB_FUNCTION_START): Remove.
27874 (PUT_SDB_FUNCTION_END): Remove.
27875 (PUT_SDB_EPILOGUE_END): Remove.
27876 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
27877 (MIPS_DEBUGGING_INFO): Don't undef.
27878 (DBX_DEBUGGING_INFO): Don't undef.
27879 * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
27880 (MIPS_DEBUGGING_INFO): Don't undef.
27881 (DBX_DEBUGGING_INFO): Don't undef.
27882 * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
27883 * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
27885 (alpha_start_function): Likewise.
27886 (sdb_label_count): Remove.
27887 (alpha_output_filename): Remove DBX_DEBUG handling.
27888 (alpha_file_start): Likewise.
27890 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27892 * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
27893 (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
27894 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
27896 * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
27897 (ld_tls_support): Remove Solaris 8 references.
27898 (lwp_dir, lwp_spec): Remove support for alternate thread library.
27899 * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
27900 * configure: Regenerate.
27901 * config.in: Regenerate.
27903 * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
27904 * config/i386/sol2.h: Remove Solaris 8 references.
27906 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
27907 (i?86-*-solaris2.9): ... this.
27908 Remove Solaris 8 references.
27909 (Specific, *-*-solaris2*): Document Solaris 8 removal.
27910 Remove Solaris 8 references.
27912 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27914 * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
27915 (mips-sgi-irix6.5*): Remove.
27916 * config.host (mips-sgi-irix*): Remove.
27917 * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
27918 (set_have_as_tls): Remove *-*-irix6*.
27919 (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
27920 * configure: Regenerate.
27922 * config/mips/iris6.h: Remove.
27923 * config/mips/iris6.opt: Remove.
27924 * config/mips/t-irix6: Remove.
27926 * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
27927 (TARGET_IRIX6): Remove.
27928 (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
27929 Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
27930 * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
27932 (mips_file_start): Likewise.
27933 * config/mips/mips-protos.h (irix_asm_output_align): Remove.
27935 * config/mips/driver-native.c [__sgi__]: Remove.
27936 (host_detect_local_cpu) [__sgi__]: Remove.
27938 * config/mips/gnu-user.h: Remove iris5.h reference.
27940 * config/mips/mips-modes.def: Remove IRIX 6 reference.
27941 * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
27942 * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
27945 * gcc.c (main): Move asm_debug initialization ...
27946 (asm_debug): ... here.
27948 * ginclude/stddef.h (__STDDEF_H__): Don't define.
27950 * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
27951 * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
27952 * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
27953 (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
27954 [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
27955 * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
27957 * doc/tm.texi: Regenerate.
27959 * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
27961 (MIPS Options, -march): Remove IRIX reference.
27962 * doc/install.texi (Binaries, SGI IRIX): Remove.
27963 (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
27965 * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
27967 2012-03-14 Martin Jambor <mjambor@suse.cz>
27969 * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
27970 when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
27971 (expand_expr_real_1): Do not handle misalignment if modifier is
27974 2012-03-14 Richard Guenther <rguenther@suse.de>
27976 PR middle-end/52584
27977 * tree-vect-generic.c (type_for_widest_vector_mode): Take
27978 element type instead of mode, use build_vector_type_for_mode
27979 instead of the langhook, build a vector of proper signedness.
27980 (expand_vector_operations_1): Adjust.
27982 2012-03-14 Richard Guenther <rguenther@suse.de>
27984 PR middle-end/52582
27985 * gimple-fold.c (canonicalize_constructor_val): Make sure we have
27986 a cgraph node for a FUNCTION_DECL that comes from a constructor.
27987 (gimple_get_virt_method_for_binfo): Likewise.
27989 2012-03-14 Richard Guenther <rguenther@suse.de>
27991 PR tree-optimization/52571
27992 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
27993 flag_section_anchors check ...
27994 (vect_can_force_dr_alignment_p): ... here. Do not re-align
27995 DECL_COMMON variables.
27997 2012-03-14 Richard Guenther <rguenther@suse.de>
27999 * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
28000 * stor-layout.c (start_bitfield_representative): New function.
28001 (finish_bitfield_representative): Likewise.
28002 (finish_bitfield_layout): Likewise.
28003 (finish_record_layout): Call finish_bitfield_layout.
28004 * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
28005 for QUAL_UNION_TYPE fields.
28006 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
28007 Stream DECL_BIT_FIELD_REPRESENTATIVE.
28008 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
28010 PR middle-end/52080
28011 PR middle-end/52097
28012 PR middle-end/48124
28013 * expr.c (get_bit_range): Unconditionally extract bitrange
28014 from DECL_BIT_FIELD_REPRESENTATIVE.
28015 (expand_assignment): Adjust call to get_bit_range.
28017 2012-03-14 Richard Guenther <rguenther@suse.de>
28019 PR middle-end/52578
28020 * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
28021 the outermost conversion is a sign-change only.
28022 (fold_binary_loc): Disregard widening and sign-changing
28023 conversions when we determine if two variables are equal
28025 * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
28026 (T1)x if the outermost conversion is a sign-change only.
28028 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
28031 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
28033 * config/i386/predicates.md (constant_call_address_operand): Declare
28034 as special predicate. Update all uses.
28036 2012-03-13 Jakub Jelinek <jakub@redhat.com>
28039 * c-parser.c (c_parser_postfix_expression)
28040 <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
28042 * config/i386/smmintrin.h: Avoid /* within a comment.
28043 * config/i386/nmmintrin.h: Likewise.
28045 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
28047 * config/i386/i386.md (xbegin): Remove constraint from expander.
28049 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
28051 * config/i386/predicates.md (constant_call_address_operand): Declare
28052 as special predicate. Update all uses.
28053 * config/i386/i386.md: Remove mode from constant_call_address_operand
28055 * config/i386/i386.c (ix86_output_call_insn): Call
28056 constant_call_address_operand with VOIDmode.
28058 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
28060 * config/i386/i386.c (ix86_decompose_address): Handle subregs of
28061 AND zero extended address correctly.
28063 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
28065 * config/i386/predicates.md (tls_symbolic_operand): Declare as
28067 (tls_modbase_operand): Ditto.
28068 * config/i386/i386.md: Remove mode from tls_symbolic_operand and
28069 tls_modbase_operand predicates.
28071 2012-03-13 Martin Jambor <mjambor@suse.cz>
28073 * expr.c (expand_assignment): Handle misaligned scalar writes to
28074 memory through top-level MEM_REFs by calling store_bit_field.
28076 2012-03-13 Richard Guenther <rguenther@suse.de>
28078 PR middle-end/52134
28079 * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
28080 if Y is a constant multiple of 1 << CST.
28082 2012-03-13 Georg-Johann Lay <avr@gjlay.de>
28085 * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
28086 offset (size) to a value the insns can deal with.
28087 (expand_epilogue): Ditto.
28089 2012-03-13 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
28091 * config/arm/neon.ml (ops): Fixup expected instructions for
28092 unsigned vector compares.
28094 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
28096 * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
28097 addresses only when %reg is not in word mode.
28099 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28101 * config/microblaze/microblaze.md: Fix typo.
28102 * tree-if-conv.c: Likewise.
28103 * tree-vect-patterns.c: Likewise.
28105 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28107 * config.gcc (extra_passes): Remove.
28108 * configure.ac (extra_passes): Don't substitute.
28109 * configure: Regenerate.
28110 * Makefile.in (EXTRA_PASSES): Remove.
28111 (GCC_PASSES): Remove $(EXTRA_PASSES).
28112 (MOSTLYCLEANFILES): Likewise.
28113 (native): Likewise.
28114 (install-common): Likewise.
28116 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
28118 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
28119 * config/i386/i386.c (ix86_decompose_address): Use
28120 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
28121 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
28122 thread pointer to a register.
28124 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
28126 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
28127 on tls_symbolic_operand.
28128 (tls_global_dynamic_64_<mode>): Likewise.
28130 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
28133 * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
28134 SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
28136 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
28139 * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
28140 type from reg_class_t to enum reg_class.
28141 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
28143 2012-03-12 Andrew Pinski <apinski@cavium.com>
28145 * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
28146 (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
28147 (value_replacement): Likewise.
28148 (empty_block_p): Check also if the PHIs for the block are empty.
28150 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
28153 * config/avr/avr.c (avr_out_movmem): Fix typo in output template
28154 for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
28155 r184615 from 2012-02-28.
28157 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
28159 * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
28160 (ix86_gen_tls_local_dynamic_base_64): Likewise.
28161 (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
28162 and ix86_gen_tls_local_dynamic_base_64.
28163 (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
28164 ix86_gen_tls_local_dynamic_base_64.
28166 * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
28167 (*tls_global_dynamic_64_<mode>): This.
28168 (tls_global_dynamic_64): Renamed to ...
28169 (tls_global_dynamic_64_<mode>): This.
28170 (*tls_local_dynamic_base_64): Renamed to ...
28171 (*tls_local_dynamic_base_64_<mode>): This.
28172 (tls_local_dynamic_base_64): Renamed to ...
28173 (tls_local_dynamic_base_64_<mode>): This.
28175 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
28177 * config/i386/i386.c (ix86_option_override_internal): Properly
28178 set ix86_gen_leave and ix86_gen_monitor. Check Pmode == DImode,
28179 instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
28180 ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
28181 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
28183 * config/i386/sse.md (sse3_monitor64): Renamed to ...
28184 (sse3_monitor64_<mode>): This.
28186 2012-03-12 Tristan Gingold <gingold@adacore.com>
28188 * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
28189 (ia64_function_arg_advance): Ditto.
28191 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28193 * config.gcc (mips*-*-openbsd*): Remove.
28194 * config/mips/openbsd.h: Remove.
28195 * config/mips/sdb.h: Remove.
28197 * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
28198 * config/mips/mips.c (sdb_label_count): Remove.
28199 (mips_debugger_offset): Remove #if 0 code.
28200 (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
28201 * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
28203 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28205 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
28206 binutils reference.
28207 (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
28208 Update binutils references.
28209 (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
28210 Update binutils reference.
28211 Update Sun as/GNU ld caveat.
28212 Document binutils largefile requirement for LTO plugin.
28213 Remove reference to alternate libpthread.
28215 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28217 * config.gcc (alpha*-dec-osf5.1*): Remove.
28218 * config.host (alpha*-dec-osf*): Remove.
28219 * configure.ac (*-*-osf*): Remove.
28220 (alpha*-dec-osf*): Remove.
28221 * configure: Regenerate.
28223 * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
28224 config/alpha/va_list.h, config/alpha/x-osf: Remove.
28226 * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
28227 * config/alpha/alpha.c (struct machine_function): Update comment.
28228 (alpha_start_function): Remove Tru64 UNIX as handling for
28230 * config/alpha/alpha.md ("exception_receiver"): Remove
28231 TARGET_LD_BUGGY_LDGP.
28232 ("*exception_receiver_2"): Likewise.
28233 * except.c (finish_eh_generation): Remove Tru64 reference.
28234 * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
28235 * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
28236 * target.def (handle_pragma_extern_prefix): Remove.
28238 * Makefile.in (mips-tfile.o-warn): Remove.
28239 (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
28240 (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
28241 * mips-tdump.c, mips-tfile.c: Remove.
28243 * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
28245 * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
28246 (Specific, alpha*-dec-osf5.1): Note removal.
28247 * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
28249 * doc/tm.texi: Regenerate.
28250 * doc/trouble.texi (Cross-Compiler Problems): Remove.
28252 2012-03-12 Richard Guenther <rguenther@suse.de>
28254 * config/arm/arm.c (neon_dereference_pointer): Do not call
28255 covert during RTL expansion.
28257 2012-03-12 Tristan Gingold <gingold@adacore.com>
28259 * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
28260 Options. Mention -mpointer-size.
28262 2012-03-12 Richard Guenther <rguenther@suse.de>
28264 * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
28265 build_nonstandard_integer_type.
28267 2012-03-12 Richard Guenther <rguenther@suse.de>
28269 * tree.c (signed_or_unsigned_type_for): Use
28270 build_nonstandard_integer_type.
28271 (signed_type_for): Adjust documentation.
28272 (unsigned_type_for): Likewise.
28273 * tree-pretty-print.c (dump_generic_node): Use standard names
28274 for non-standard integer types if available.
28276 2012-03-12 Tristan Gingold <gingold@adacore.com>
28278 * config/vms/vms.opt: Add vms-opts.h header.
28279 (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
28281 (-mvms-return-codes): Document.
28282 (-mpointer-size): New option.
28283 (vms_pointer_size): Add enumeration.
28284 * config/vms/vms-opts.h: New file.
28285 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
28286 __INITIAL_POINTER_SIZE.
28287 (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
28288 (C_COMMON_OVERRIDE_OPTIONS): Define.
28289 (DWARF2_ADDR_SIZE): Define.
28290 * config/vms/vms.c (vms_patch_builtins): Adjust condition.
28291 * config/vms/vms-protos.h (vms_c_common_override_options):
28293 * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
28294 if -mno-pointer-size.
28295 (vms_c_common_override_options): New function.
28296 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
28297 * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
28298 (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
28299 and flag_vms_pointer_size.
28300 (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
28301 * config.gcc (*-*-*vms*): Define xm_file.
28302 (alpha*-dec-*vms*): Do not define xm_file.
28303 (alpha64-dec-*vms*): Remove.
28304 (ia64-hp-*vms*): Do not define xm_file. Simplify tm_file
28307 2012-03-12 Jakub Jelinek <jakub@redhat.com>
28309 PR tree-optimization/51721
28310 * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
28311 if (int) unsvar cmp CST.
28313 2012-03-12 Richard Guenther <rguenther@suse.de>
28315 * tree-sra.c (create_access_replacement): Only rename the replacement
28316 if we can rewrite it into SSA form. Properly mark register typed
28317 replacements that we cannot rewrite with TREE_ADDRESSABLE.
28318 * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
28319 for aggregate or BLKmode results.
28321 2012-03-12 Jakub Jelinek <jakub@redhat.com>
28323 PR tree-optimization/52533
28324 * tree-vrp.c (register_edge_assert_for_2): Use double_int
28325 type for mask, only handle shifts by non-zero in-range
28326 shift count, for LE_EXPR and GT_EXPR if new_val is
28327 maximum, don't add the assertion.
28329 2012-02-12 Kirill Yukhin <kirill.yukhin@intel.com>
28331 * doc/invoke.texi: Document -mrtm option.
28332 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
28333 (OPTION_MASK_ISA_RTM_UNSET): Ditto.
28334 (ix86_handle_option): Handle OPT_mrtm.
28335 * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
28337 (x86_64-*-*): Ditto.
28338 * i386-builtin-types.def (INT_FTYPE_VOID): New.
28339 * config/i386/i386-c.c (ix86_target_macros_internal): Define
28341 (ix86_target_string): Define -mrtm option.
28343 (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
28345 (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
28346 (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
28347 IX86_BUILTIN_XTEST.
28348 (bdesc_special_args): Ditto.
28349 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
28350 (ix86_expand_special_args_builtin): Handle new built-in type.
28351 (ix86_expand_builtin): Handle XABORT instruction.
28352 * config/i386/i386.h (TARGET_RTM): New.
28353 * config/i386/i386.md (UNSPECV_XBEGIN): New.
28354 (UNSPECV_XEND): Ditto.
28355 (UNSPECV_XABORT): Ditto.
28356 (UNSPECV_XTEST): Ditto.
28363 * config/i386/i386.opt (mrtm): New.
28364 * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
28365 * config/i386/rtmintrin.h: New header.
28366 * config/i386/xtestintrin.h: Ditto.
28368 2012-03-12 Tristan Gingold <gingold@adacore.com>
28370 * ginclude/stddef.h: Adjust previous patch.
28371 Use __VMS__ instead of VMS.
28373 2012-03-12 Uros Bizjak <ubizjak@gmail.com>
28375 * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
28376 Also convert sequences with CC setting arithmetic instruction.
28378 2012-03-11 Sandra Loosemore <sandra@codesourcery.com>
28380 * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
28381 from C Language Options to Preprocessor Options.
28382 (C Dialect Options): Move -no-integrated-cpp documentation
28384 (Preprocessor Options): ...to here. Rewrite the description
28385 so it makes more sense, and remove discussion of merging front ends.
28387 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
28389 * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
28391 (ix86_expand_setmem): Likewise.
28393 2012-03-11 Uros Bizjak <ubizjak@gmail.com>
28395 * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
28398 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
28400 * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
28401 ptr_mode == SImode. Replace DImode with Pmode or ptr_mode.
28403 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
28405 * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
28407 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
28409 * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
28412 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
28413 Uros Bizjak <ubizjak@gmail.com>
28415 * config/i386/predicates.md (call_insn_operand): Allow
28416 constant_call_address_operand in Pmode only.
28417 (sibcall_insn_operand): Ditto.
28418 * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
28419 (*call_vzeroupper): Ditto.
28421 (*sibcall_vzeroupper): Ditto.
28422 (*call_value): Ditto.
28423 (*call_value_vzeroupper): Ditto.
28424 (*sibcall_value): Ditto.
28425 (*sibcall_value_vzeroupper): Ditto.
28426 (*indirect_jump): Ditto.
28427 (*tablejump_1): Ditto.
28428 (indirect_jump): Convert memory address to word mode for TARGET_X32.
28429 (tablejump): Ditto.
28430 * config/i386/i386.c (ix86_expand_call): Convert indirect operands
28433 2012-03-11 Oleg Endo <olegendo@gcc.gnu.org>
28436 * config/sh/sh.md (movnegt): Expand into respective insns immediately.
28437 Use movrt_negc instead of negc pattern for non-SH2A.
28438 (*movnegt): Remove.
28439 (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
28441 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
28443 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
28444 if Pmode != word_mode.
28445 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
28446 Pmode == SImode for TARGET_X32.
28448 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
28449 (tls_initial_exec_x32): Likewise.
28451 2012-03-10 Chung-Lin Tang <cltang@codesourcery.com>
28453 PR rtl-optimization/52528
28454 * combine.c (can_combine_p): Add setting of subst_low_luid
28455 before call to expand_field_assignment().
28457 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
28459 * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
28460 and related program names.
28462 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
28464 * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
28466 2012-03-09 Uros Bizjak <ubizjak@gmail.com>
28469 * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
28470 (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
28471 to set code to 'q'.
28472 * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
28473 (*movdi_internal_rex64): Use %E operand modifier for lea.
28474 (*movsi_internal): Ditto.
28476 (*lea<mode>_2): Ditto.
28477 (*lea_{3,4,5,6}_zext): Ditto.
28478 (*tls_global_dynamic_32_gnu): Ditto.
28479 (*tls_global_dynamic_64): Ditto.
28480 (*tls_dynamic_gnu2_lea_32): Ditto.
28481 (*tls_dynamic_gnu2_lea_64): Ditto.
28482 (pro_epilogue_adjust_stack_<mode>_add): Ditto.
28484 2012-03-09 Michael Meissner <meissner@linux.vnet.ibm.com>
28486 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
28487 redefine to be NULL if the current bit-size is different from the
28488 configured bit-size.
28490 * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
28491 cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
28492 set the default tuning. Add asserts to make sure the cpu and tune
28493 indexes are defined. Fix tests for cpu/tune index to use >= 0 to
28494 test whether the index is set, instead of > 0.
28495 (rs6000_file_start): Do not reset the default cpu if the current
28496 bit-size is different from the configured bit-size.
28498 2012-03-09 Tristan Gingold <gingold@adacore.com>
28500 * config/vms/vms-crtlmap.map: Add comments.
28501 Add entries needed to build Ada RTS.
28503 2012-03-09 Tristan Gingold <gingold@adacore.com>
28505 * ginclude/stddef.h: Do not define __size_t on VMS.
28507 2012-03-09 Tristan Gingold <gingold@adacore.com>
28509 * c-tree.h (c_default_pointer_mode): New variable.
28510 * c-decl.c (c_default_pointer_mode): New variable.
28511 (c_build_pointer_type): New function.
28512 (grokdeclarator): Call c_build_pointer_type instead
28513 of build_pointer_type.
28515 * config/vms/vms-c.c: Include c-tree.h
28516 (saved_pointer_mode): New variable.
28517 (handle_pragma_pointer_size): New function.
28518 (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
28519 (vms_c_register_pragma): Register __pointer_size and
28520 __required_pointer_size pragmas.
28522 2012-03-09 Tristan Gingold <gingold@adacore.com>
28524 * config/vms/vms-c.c (vms_construct_include_filename): New function.
28525 (vms_c_register_includes): Reference it.
28527 2012-03-09 Andrew Pinski <apinski@cavium.com>
28529 PR middle-end/51988
28530 * tree-ssa-phiopt.c: Include tree-pretty-print.h for
28531 print_generic_expr.
28532 (tree_ssa_phiopt_worker): Go through all the PHIs for
28533 value_replacement instead of just the singleton one.
28534 (value_replacement): Change return type to int. Return 0 instead of
28536 Allow the middle basic block to contain more than just the defining
28538 Handle non empty middle basic blocks.
28539 * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
28541 2012-03-09 Jiangning Liu <jiangning.liu@arm.com>
28543 * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
28544 array reference and component reference.
28545 (analyze_scalar_evolution_for_address_of): New.
28547 2012-03-08 Jie Zhang <jzhang918@gmail.com>
28550 * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
28551 (hwloop_pattern_reg): Fix set but not used warning.
28552 (bfin_reorg_loops): Remove unused parameter.
28553 (bfin_reorg): Update use of bfin_reorg_loops.
28555 2012-03-08 H.J. Lu <hongjiu.lu@intel.com>
28557 * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
28558 with integer parameters in registers.
28559 (gen_push): Push register in word_mode instead of Pmode.
28560 (ix86_emit_save_regs): Likewise.
28561 (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
28562 (gen_pop): Pop register in word_mode instead of Pmode.
28563 (ix86_emit_restore_regs_using_pop): Likewise.
28564 (ix86_expand_prologue): Replace Pmode with word_mode for push
28565 immediate. Use ix86_gen_pro_epilogue_adjust_stack. Save and
28566 restore RAX and R10 in word_mode.
28567 (ix86_emit_restore_regs_using_mov): Restore integer registers
28569 (ix86_expand_split_stack_prologue): Save R10_REG and restore in
28571 (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
28572 (ix86_split_long_move): Likewise.
28574 * config/i386/i386.md (W): New.
28575 (*push<mode>2_prologue): Replace :P with :W.
28576 (*pop<mode>1): Likewise.
28577 (*pop<mode>1_epilogue): Likewise.
28578 (push/pop peephole2): Use word_mode scratch registers.
28580 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
28582 * config/i386/predicates.md (indirect_branch_operand): Simplify.
28584 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
28586 * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
28587 for constants in [-63,63].
28589 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
28593 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
28595 * config/i386/i386.c (ix86_print_operand_address): Only handle
28596 zero-extended DImode addresses.
28598 2012-03-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28600 * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
28601 * configure: Regenerate.
28603 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
28606 * config/avr/avr.c (avr_mem_clobber): New static function.
28607 (avr_expand_delay_cycles): Add memory clobber operand to
28608 delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
28609 * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
28610 (enable_interrupt, disable_interrupt): New expander.
28611 (nopv, sleep, wdr): New expanders.
28612 (delay_cycles_1): Add memory clobber.
28613 (delay_cycles_2): Add memory clobber.
28614 (delay_cycles_3): Add memory clobber.
28615 (delay_cycles_4): Add memory clobber.
28616 (cli_sei): New insn from former "enable_interrupt",
28617 "disable_interrupt" with memory clobber.
28618 (*wdt): New insn from former "wdt" with memory clobber.
28619 (*nopv): Similar, but for "nopv".
28620 (*sleep): Similar, but for "sleep".
28622 2012-03-07 Oleg Endo <olegendo@gcc.gnu.org>
28623 Kaz Kojima <kkojima@gcc.gnu.org>
28626 * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
28627 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
28628 (SUBTARGET_OVERRIDE_OPTIONS): Define.
28630 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
28632 * config/i386/predicates.md (x86_64_zext_general_operand): New.
28633 * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
28634 predicate to x86_64_zext_general_operand. Accept "Z" constraint.
28636 2012-03-07 Walter Lee <walt@tilera.com>
28638 * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
28639 REG_CFA_* notes for the stack pointer.
28640 (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
28641 EH_RETURN_STACKADJ_RTX.
28642 * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
28643 generate REG_CFA_* notes for the stack pointer.
28644 (tilepro_expand_epilogue): Restore stack pointer by adjusting it
28645 by EH_RETURN_STACKADJ_RTX.
28647 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
28649 * doc/invoke.texi (AVR Built-in Macros): Correct condition for
28650 when __AVR_3_BYTE_PC__ is defined.
28652 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
28654 * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
28655 (ix86_print_operand): Handle '^'.
28656 * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
28657 using P mode iterator. Add %^ to asm template to conditionally emit
28659 (*rep_movdi_rex64): Ditto.
28660 (*strsetdi_rex_1): Ditto.
28661 (*rep_stosdi_rex64): Ditto.
28662 (*strmov{si,hi,qi}_1): Add %^ to asm template to
28663 conditionally emit addr32 prefix.
28664 (*rep_mov{si,qi}): Ditto.
28665 (*strset{si,hi,qi}): Ditto.
28666 (*rep_stos{si,qi}): Ditto.
28667 (*cmpstrnqi_nz_1): Ditto.
28668 (*cmpstrnqi_1): Ditto.
28669 (*strlenqi_1): Ditto.
28671 2012-03-07 H.J. Lu <hongjiu.lu@intel.com>
28673 * config/i386/i386.c (function_value_64): Return pointers in
28674 word_mode instead of Pmode.
28675 (ix86_promote_function_mode): Likewise.
28677 2012-03-07 Richard Guenther <rguenther@suse.de>
28679 * coverage.c (get_gcov_type): Use type_for_mode.
28680 (get_gcov_unsigned_t): Likewise.
28681 * expr.c (store_constructor): Use type_for_mode.
28682 (try_casesi): Likewise.
28683 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
28684 (add_standard_iv_candidates): Use standard type trees.
28685 * dojump.c (do_jump): Remove dead code.
28687 2012-03-07 Richard Guenther <rguenther@suse.de>
28689 * c-typeck.c (pointer_diff): Use c_common_type_for_size.
28691 2012-03-07 Richard Guenther <rguenther@suse.de>
28693 * convert.c (strip_float_extensions): Move ...
28694 * tree.c (strip_float_extensions): ... here.
28696 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
28699 * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
28701 2012-03-07 Richard Guenther <rguenther@suse.de>
28703 * omp-low.c (extract_omp_for_data): Use signed_type_for.
28704 (expand_omp_for_generic): Likewise.
28705 (expand_omp_for_static_nochunk): Likewise.
28706 (expand_omp_for_static_chunk): Likewise.
28707 * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
28708 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
28709 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
28710 Use unsigned_type_for.
28711 (vect_create_cond_for_align_checks): Use signed_type_for.
28713 2012-03-07 Andrey Belevantsev <abel@ispras.ru>
28715 PR rtl-optimization/52203
28716 * sel-sched.c (estimate_insn_cost): New parameter pempty. Adjust
28717 all callers to pass NULL except ...
28718 (reset_sched_cycles_in_current_ebb): ... here, save the value
28719 in new variable 'empty'. Increase issue_rate only for
28722 2012-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
28725 * Makefile.in: Let install-gcc-ar depend on installdirs,
28726 gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
28727 Don't double canonicalize if cross-compiling.
28729 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
28732 * config/avr/avr.c (expand_epilogue): Fix order of restoration
28733 to: RAMPZ, RAMPY, RAMPX, RAMPD.
28734 (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
28736 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
28739 * config/avr/avr.c (avr_out_xload): Don't read unintentionally
28741 * config/avr/avr.md (xload_8): Adjust insn length.
28743 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
28746 * config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
28747 if RAMPZ affects reading from RAM.
28749 2012-03-07 Richard Guenther <rguenther@suse.de>
28753 * doc/invoke.texi (Precompiled Headers): Remove sentence that
28754 suggests you can include PCHs from inside another header.
28756 2012-03-07 Richard Sandiford <rdsandiford@googlemail.com>
28758 PR middle-end/52515
28759 * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
28761 2012-03-07 Kai Tietz <ktietz@redhat.com>
28763 * doc/invoke.texi (fwritable-relocated-rdata): Document
28764 new Cygwin/MinGW target option.
28765 * config/i386/winnt.c (i386_pe_unique_section): Ignore
28766 reloc if flag -fwritable-relocated-rdata is not set.
28767 (i386_pe_section_type_flags): Likewise.
28768 * config/i386/cygming.opt (fwritable-relocated-rdata):
28769 Add new flag variable flag_writable_rel_rdata.
28771 2012-03-07 Richard Guenther <rguenther@suse.de>
28773 * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
28774 precision against gimple constraints.
28776 2012-03-06 Richard Sandiford <rdsandiford@googlemail.com>
28778 PR middle-end/52372
28779 * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
28781 (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
28782 * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
28784 (init_emit_regs): Move associated initialization to...
28785 (init_emit_once): ...here.
28787 2012-03-06 Richard Henderson <rth@redhat.com>
28789 * config/m68k/m68k.h (ISA_HAS_TAS): New.
28790 * config/m68k/sync.md (atomic_test_and_set): Use it.
28791 (atomic_test_and_set_1): Likewise.
28793 2012-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
28796 * config/rs6000/vector.md (vector_uneq<mode>): Add support for
28797 UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
28798 (vector_ltgt<mode>): Likewise.
28799 (vector_ordered<mode>): Likewise.
28800 (vector_unordered<mode>): Likewise.
28801 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
28803 2012-03-06 Aldy Hernandez <aldyh@redhat.com>
28805 * trans-mem.c: New typedef for tm_region_p.
28806 Define vector types for tm_region_p.
28807 (tm_region_init): Replace region_worklist to a vector called
28810 2012-03-06 Richard Guenther <rguenther@suse.de>
28812 * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
28813 MEM_REF with constant pointer operand.
28815 2012-03-06 Richard Guenther <rguenther@suse.de>
28817 PR middle-end/52493
28818 * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
28820 2012-03-06 Tristan Gingold <gingold@adacore.com>
28822 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
28823 (external_model_kind): Improve documentation.
28824 (vms_pragma_extern_model): Handle relaxed_redef.
28825 (vms_c_register_pragma): Allow expansion for nomember_alignment.
28827 2012-03-06 Georg-Johann Lay <avr@gjlay.de>
28829 * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
28830 Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
28831 Some more notes on EIND usage and reorder EIND subsection.
28833 2012-03-06 Tristan Gingold <gingold@adacore.com>
28835 * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
28836 * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
28838 2012-03-06 Tristan Gingold <gingold@adacore.com>
28840 * config/vms/t-vmsnative (version): Define.
28841 * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
28843 2012-03-06 Andrey Belevantsev <abel@ispras.ru>
28845 PR rtl-optimization/52250
28846 * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
28847 to put note list into. Unconditionally call move_bb_info.
28848 (move_bb_info): Do not assert the blocks being in the same region,
28849 just drop the note list if they are not.
28851 2012-03-06 Oleg Endo <olegendo@gcc.gnu.org>
28854 * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
28855 and use unified expansion logic.
28856 * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move
28857 closer to the existing movt insn.
28858 (negc): Rename insn to *negc. Add new expander.
28859 (movnegt): Use xor pattern for T bit negation. Reserve helper
28860 constant for negc pattern.
28861 (*movnegt): New insn and splitter.
28863 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
28865 * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
28868 2012-03-05 Richard Henderson <rth@redhat.com>
28870 * genemit.c (main): Include "target.h" in insn-emit.c.
28871 * Makefile.in (insn-emit.o): Depend on TARGET_H.
28872 * config/sh/sync.md (atomic_test_and_set): Reference
28873 targetm.atomic_test_and_set_trueval instead of
28874 TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
28876 2012-03-05 Joern Rennecke <joern.rennecke@embecosm.com>
28878 * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
28881 2012-03-05 Steven Bosscher <steven@gcc.gnu.org>
28883 * langhooks.c (add_builtin_type): New function.
28884 * langhooks.h (add_builtin_type): Export it.
28885 * config/mep/mep.c (mep_init_builtins): Use it.
28886 * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
28888 2012-03-05 Jakub Jelinek <jakub@redhat.com>
28891 * tree.h (BLOCK_SAME_RANGE): Define.
28892 * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
28893 if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
28894 Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
28895 isn't equal to supercontext fragment's fragment chain.
28896 Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
28898 (blocks_nreverse_all): Likewise.
28899 (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set
28900 BLOCK_SUPERCONTEXT to supercontext fragment instead of
28901 supercontext fragment's fragment origin.
28902 * dwarf2out.c (add_high_low_attributes): If stmt has the same
28903 range as its parent (or parents thereof etc.), use the parent's
28904 DW_AT_ranges value instead of creating a new .debug_ranges range.
28906 2012-03-05 Richard Henderson <rth@redhat.com>
28909 Revert: 2011-11-26 Richard Henderson <rth@redhat.com>
28910 * omp-low.c (expand_omp_atomic): Assume anything aligned to
28911 BIGGEST_ALIGNMENT is aligned.
28913 2012-03-05 Richard Henderson <rth@redhat.com>
28915 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
28916 * config/sh/sh.c: ... here.
28918 2012-03-05 Richard Henderson <rth@redhat.com>
28921 * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
28922 instead of calling negqi2 directly.
28924 2012-03-05 Aldy Hernandez <aldyh@redhat.com>
28926 PR middle-end/52463
28927 * trans-mem.c (tm_region_init): Use last_basic_block.
28929 2012-03-05 Oleg Endo <olegendo@gcc.gnu.org>
28931 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
28932 * config/sh/sync.md (atomic_test_and_set): New expander.
28933 (tasb, atomic_test_and_set_soft): New insns.
28934 * config/sh/sh.opt (menable-tas): New option.
28935 * doc/invoke.texi (SH Options): Document it.
28937 2012-03-05 Richard Guenther <rguenther@suse.de>
28939 * cfgloop.c (verify_loop_structure): Verify dominators before
28941 * graphite-clast-to-gimple.c (graphite_verify): Do not verify
28942 dominators from here.
28943 * graphite-scop-detection.c (create_sese_edges): Likewise.
28944 * loop-doloop.c (doloop_optimize_loops): Likewise.
28945 * loop-init.c (loop_optimizer_init): Likewise.
28946 * loop-unroll.c (unroll_and_peel_loops): Likewise.
28947 * loop-unswitch.c (unswitch_loops): Likewise.
28948 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
28949 * tree-parloops.c (parallelize_loops): Likewise. Verify
28950 only when checking is enabled.
28951 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
28953 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
28955 * genautomata.c (parse_automata_opt): New static function.
28956 (initiate_automaton_gen): Remove all option handling code. Remove
28957 argc argument. All callers changed.
28958 (main): Call init_rtx_reader_args_cb with the new function as argument.
28960 2012-03-05 Richard Guenther <rguenther@suse.de>
28962 * cfgexpand.c (gimple_expand_cfg): Free dominator info.
28963 * tree-if-conv.c (combine_blocks): Free post-dominator info
28965 * tree-parloops.c (create_parallel_loop): Free and re-compute
28966 dominator info after breaking it.
28968 2012-03-05 Richard Guenther <rguenther@suse.de>
28970 PR middle-end/52353
28971 * optabs.h (trapv_unoptab_p): New function.
28972 (trapv_binoptab_p): Likewise.
28973 * optabs.c (expand_binop): Use emit_libcall_block_1 with
28974 a proper equiv_may_trap argument.
28975 (expand_unop): Likewise.
28976 (emit_libcall_block_1): Take extra argument whether the
28977 instruction may trap. Renamed from ...
28978 (emit_libcall_block): ... this. New wrapper.
28980 2012-03-05 Jakub Jelinek <jakub@redhat.com>
28982 PR tree-optimization/51721
28983 * tree-vrp.c (register_edge_assert_for_2): If comparing
28984 lhs of right shift by constant with an integer constant,
28985 add ASSERT_EXPRs for the rhs1 of the right shift.
28987 * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
28989 2012-03-05 Richard Guenther <rguenther@suse.de>
28991 * tree.c (integer_zerop): Handle VECTOR_CSTs.
28992 (integer_onep): Likewise.
28993 (integer_all_onesp): Likewise.
28995 2012-03-05 Georg-Johann Lay <avr@gjlay.de>
28997 * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
28999 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
29001 * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
29002 instead of TARGET_64BIT.
29004 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
29006 * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
29009 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
29011 * config/i386/i386.c (ix86_print_operand_address): Only handle
29012 zero-extended DImode addresses.
29014 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
29016 * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
29017 taken and cputaken as bool.
29019 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
29021 * config/i386/constraints.md (Ya): New internal constraint.
29022 * config/i386/i386.md (zero_extendsidi2): Remove expansion.
29023 (*zero_extendsidi2_rex64): Add x,x alternative.
29024 (*zero_extendsidi2): Ditto. Add o,0 alternative.
29025 Remove flags reg clobber. Adjust corresponding splits.
29026 (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
29027 zero_extendqisi2 expanders using SWI12 mode iterator.
29028 (zero_extend<mode>si2_and): Macroize insn from
29029 zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding
29031 (*zero_extend<mode>si2): Macroize insn from
29032 *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
29033 (*zero_extend*2_movzbl_and): Remove insn patterns.
29034 (zero_extendqihi2_and): Merge corresponding splitter.
29035 (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
29036 (*zero_extend*2_movzbl_and): Remove insn patterns.
29037 (*anddi_1): Split TYPE_IMOVX instructions.
29038 (*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions.
29040 (and->zext splitter): Add splitter pattern.
29041 (zero extend with andsi3 splitter): Adjust zero_extend pattern.
29043 2012-03-04 Sandra Loosemore <sandra@codesourcery.com>
29045 * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
29047 (Debugging Options): Likewise.
29048 (Optimize Options): Likewise.
29049 (i386 and x86-64 Options): Discuss -march before -mtune, consistently
29050 with other architectures. Use official processor names with correct
29051 spelling/capitalization. Fix formatting and grammar issues.
29052 (i386 and x86-64 Windows Options): Similar cleanup here.
29054 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
29056 * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
29058 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
29060 * config/sh/sh.c (sh_dwarf_register_span): Don't apply
29061 DBX_REGISTER_NUMBER.
29063 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
29065 * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
29066 operand is CONST_INT. Take COSTS_N_INSNS into account.
29067 (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
29070 2012-03-02 Richard Henderson <rth@redhat.com>
29072 * optabs.c (expand_atomic_test_and_set): Honor
29073 atomic_test_and_set_trueval even when atomic_test_and_set
29074 optab is not in use.
29076 2012-03-02 Kaz Kojima <kkojima@gcc.gnu.org>
29080 * config/sh/sh.c (sh_register_move_cost): Increase cost between
29081 GENERAL_REGS and FP_REGS for SImode.
29083 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
29086 * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
29087 (absdi2): New expander.
29088 (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
29090 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
29092 * config/sh/sync.md (atomic_exchange<mode>): New expander.
29093 (atomic_exchange<mode>_soft): New insn.
29095 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
29097 * config/sh/sync.md: Update copyright notice dates.
29098 (atomic_compare_and_swap<mode>): Use SImode for return value instead
29100 (atomic_compare_and_swap<mode>_soft): Likewise.
29102 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
29105 * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
29106 * config/sh/sh.c: Update copyright notice dates.
29107 (sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop
29108 alignment for TARGET_HARD_SH4.
29109 (sh_option_override): Reduce default function alignment. Set
29110 loop alignment to 4 bytes when not optimizing for size.
29112 2012-03-02 Maxim Kuvyrkov <maxim@codesourcery.com>
29114 PR middle-end/50335
29115 * doc/invoke.texi (floop-flatten): Remove.
29116 * toplev.c (process_options): Remove references to flag_loop_flatten.
29117 * tree-ssa-loop.c (gate_graphite_transform): Same.
29118 * common.opt (floop-flatten): Obsolete.
29119 * graphite-poly.c (apply_poly_transforms): Remove reference to
29121 * Makefile.in (graphite-flattening.o): Remove.
29122 * graphite-flattening.c: Remove.
29124 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
29126 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
29127 having mode compatible with the mode of previous compare. Substitute
29128 compare mode of previous compare with the mode, compatible
29129 with eliminated and previous compare.
29131 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
29133 * config/rs6000/dfp.md (floatdidd2): New define_insn.
29135 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
29137 * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
29138 compatible with CCGOCmode and CCGCmode.
29140 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
29142 * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
29144 2012-03-02 Ulrich Weigand <ulrich.weigand@linaro.org>
29146 * config/arm/arm.c (arm_sat_operator_match): New function.
29147 * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
29148 * config/arm/arm.md ("insn" attribute): Add "sat" value.
29149 ("SAT", "SATrev"): New code iterators.
29150 ("SATlo", "SAThi"): New code iterator attributes.
29151 ("*satsi_<SAT:code>"): New pattern.
29152 ("*satsi_<SAT:code>_shift"): Likewise.
29153 * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
29154 and "shift" attributes.
29155 ("arm_usatsihi"): Add "insn" attribute.
29156 * config/arm/predicates.md (sat_shift_operator): Allow multiplication
29157 by powers of two. Do not allow shift by 32.
29159 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
29162 * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
29163 to pass the argument in the register of "natural" mode.
29165 2012-03-02 Richard Guenther <rguenther@suse.de>
29167 PR tree-optimization/52406
29168 * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
29169 (struct indices): Add unconstrained_base member.
29170 (struct dr_alias): Remove unused vops member.
29171 (DR_UNCONSTRAINED_BASE): New define.
29172 * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
29173 add indices to allow their disambiguation. Make DR_BASE_OBJECT
29174 be an artificial access that covers the whole indexed object,
29175 or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize
29176 plain decl base-objects to their MEM_REF variant.
29177 (dr_may_alias_p): When the base-object of either data reference
29178 has unknown size use only points-to information.
29179 (compute_affine_dependence): Make dumps easier to read and
29181 * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
29182 DR_REF when looking for packed references.
29183 (vect_supportable_dr_alignment): Likewise.
29185 2012-03-02 Greta Yorsh <Greta.Yorsh@arm.com>
29187 * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
29188 Improve conditions for peepholes of loads followed by commutative
29190 * config/arm/ldmstm.md: Regenerated.
29192 2012-03-02 Richard Guenther <rguenther@suse.de>
29194 * BASE-VER: Set to 4.8.0.
29196 2012-03-01 Richard Earnshaw <rearnsha@arm.com>
29198 * config.gcc (obsolete): Add all ARM targets using the FPA.
29199 (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
29200 * doc/install.texi: Avoid references to obsolete ARM ports.
29202 2012-03-01 Joern Rennecke <joern.rennecke@embecosm.com>
29204 * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
29206 2012-03-01 Jeremy Bennett <jeremy.bennett@embecosm.com>
29207 Joern Rennecke <joern.rennecke@embecosm.com>
29209 * doc/extend.texi: Expand and update information on interrupt
29210 attribute for Epiphany.
29212 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
29214 * config/sh/sh-protos.h: Update copyright notice dates.
29215 * config/sh/sh.h: Likewise.
29216 * config/sh/sh.md: Likewise.
29217 * config/sh/constraints.md: Likewise.
29218 * config/sh/predicates.md: Likewise.
29220 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
29222 * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
29223 * config/sh/sh.c (tertiary_reload_operand): Likewise.
29225 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
29227 * config/sh/constraints.md: Fix comment typo.
29229 2012-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29232 * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
29233 unsigned HOST_WIDE_INT.
29234 (zvdep_imm64): Likewise.
29235 (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
29236 (vdepi_and): Likewise.
29237 Likewise for unamed 64-bit patterns.
29238 * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
29240 2012-03-01 Alexandre Oliva <aoliva@redhat.com>
29243 PR rtl-optimization/52417
29244 * cselib.c (cselib_any_perm_equivs): New variable.
29245 (cselib_reset_table): Check that it's not set when not
29246 preserving constants.
29247 (cselib_add_permanent_equiv): Set it.
29248 (cselib_have_permanent_equivalences): New.
29249 (cselib_init, cselib_finish): Reset it.
29250 * cselib.h (cselib_have_permanent_equivalences): Declare.
29251 * alias.c (get_addr): Restore earlier behavior when there
29252 aren't permanent equivalences.
29254 2012-03-01 Steven Bosscher <steven@gcc.gnu.org>
29256 * config/mn10300/mn10300-modes.def: Fix copyright notice.
29257 * config/v850/v850-modes.def: Fix copyright notice.
29259 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
29261 * doc/extend.texi (AVR Built-in Functions): Document
29262 __builtin_avr_flash_segment.
29264 * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
29265 * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
29266 (*split.flash_segment): New insn-and-split.
29267 * config/avr/avr.c (avr_init_builtins): Add local variables:
29268 const_memx_void_node, const_memx_ptr_type_node,
29269 char_ftype_const_memx_ptr.
29271 2012-03-01 Jakub Jelinek <jakub@redhat.com>
29273 PR tree-optimization/52445
29274 * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
29275 add ssa_name_ver, offset and size fields and change store field
29277 (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
29278 (add_or_mark_expr): Likewise. Only consider previous stores
29279 with the same size and offset.
29280 (nt_init_block): Only look at gimple_assign_single_p stmts,
29281 doesn't look at rhs2.
29283 2012-03-01 Richard Guenther <rguenther@suse.de>
29285 PR middle-end/52443
29286 * tree-cfg.c (verify_gimple_assign_unary): Allow any
29287 conversions from integral types to pointer types.
29289 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
29291 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
29292 defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
29293 unintentionally removed in r184616.
29295 2012-03-01 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29297 * doc/invoke.texi: Document AMD bdver2 and remove mentioning
29300 2012-02-29 Jakub Jelinek <jakub@redhat.com>
29301 Uros Bizjak <ubizjak@gmail.com>
29304 * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
29305 alternatives, add "e" constraint to the new last alternative
29306 and ! to last 3 alternatives.
29308 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
29310 * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
29311 DW_AT_artificial attributes at the end of the processing.
29312 (gen_array_type_die): Likewise.
29313 (gen_enumeration_type_die): Likewise.
29314 (gen_struct_or_union_type_die): Likewise.
29315 (add_gnat_descriptive_type_attribute): Do not suppress debug info for
29318 2012-02-29 Jakub Jelinek <jakub@redhat.com>
29320 PR middle-end/52419
29321 * expr.c (expand_assignment): If doing misaligned store that doesn't
29322 cover all mode bits, perform a RMW cycle.
29324 PR tree-optimization/52429
29325 * tree-parloops.c (separate_decls_in_region_debug): Return early
29326 if var is LABEL_DECL.
29328 2012-02-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29330 PR tree-optimization/52424
29331 * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
29332 calling dom_thread_across_edge.
29334 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
29336 * config/avr/avr.c: Move definition of TARGET macros to end of file.
29338 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
29340 * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
29341 * config/avr/avr.c (avr_output_bld): Remove unused function.
29342 (avr_out_sbxx_branch): Use "%T" to print bit position.
29344 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
29346 * config/avr/avr.md: Untabify.
29348 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
29350 * config/avr/avr.md (eqne): New code iterator.
29351 (*dec-and-branchsi): Use it in text peephole's condition.
29352 (*dec-and-branchhi): Ditto.
29353 (*dec-and-branchqi): Ditto.
29355 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
29358 * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
29359 the device does not have the skip-bug.
29361 2012-02-29 Oleg Endo <olegendo@gcc.gnu.org>
29363 * doc/invoke.texi (-msoft-atomic): Add more detailed description.
29364 (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
29365 -mpretend-cmove): New.
29367 2012-02-29 Jakub Jelinek <jakub@redhat.com>
29370 * df.h (struct df_d): Adjust comment that hard_regs_live_count
29371 doesn't count DEBUG_INSN refs.
29372 * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
29373 for DEBUG_INSN refs.
29375 2012-02-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29379 2012-02-20 Richard Guenther <rguenther@suse.de>
29380 PR tree-optimization/52298
29381 * tree-vect-stmts.c (vectorizable_load): Properly use
29382 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
29384 2012-02-28 Aldy Hernandez <aldyh@redhat.com>
29386 PR middle-end/51752
29387 * gimple.h (gimple_in_transaction): New.
29388 (gimple_set_in_transaction): New.
29389 (struct gimple_statement_base): Add in_transaction field.
29390 * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
29392 (tree_ssa_lim_initialize): Compute transaction bits.
29393 * tree.h (compute_transaction_bits): Protoize.
29394 * trans-mem.c (tm_region_init): Use the heap to store BB
29396 (compute_transaction_bits): New.
29398 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29400 * gcc.c (display_help): Document --help=common and sort entries
29403 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29405 * doc/install.texi: Document check-$LANG specific shortcuts
29407 2012-02-28 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
29410 * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
29412 * config/arm/arm_neon.h: Regenerate.
29413 * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
29414 (neon_vcgeu): New insn.
29415 (neon_vcgtu): Likewise.
29416 * config/arm/neon.ml (s_8_32, u_8_32): New lists.
29417 (ops): Unsigned comparison intrinsics call a different builtin.
29419 2012-02-28 Richard Guenther <rguenther@suse.de>
29422 * config/i386/i386.c (ix86_expand_vector_set): Fix element
29423 ordering for the VEC_CONCAT for two element vectors for
29424 V2SFmode, V2SImode and V2DImode.
29426 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
29429 * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
29430 detecting big-endian triplets.
29432 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
29434 * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
29435 mode if there is no type information available.
29437 2012-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
29439 PR tree-optimization/53207
29440 * doc/invoke.texi: Document as experimental and relying on graphite.
29442 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
29444 * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
29445 of initializer to changes from r184614.
29447 2012-02-28 Richard Guenther <rguenther@suse.de>
29449 PR tree-optimization/52395
29450 * tree-sra.c (build_ref_for_offset): Also look at the base
29451 TYPE_ALIGN when figuring out the alignment of the replacement.
29453 2012-02-28 Richard Guenther <rguenther@suse.de>
29455 PR tree-optimization/52402
29456 * ipa-prop.c (ipa_modify_call_arguments): Properly use
29457 mis-aligned types when creating the accesses at the call site.
29459 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
29461 * config/avr/builtins.def: New file.
29462 * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
29463 * config/avr/avr.c (enum avr_builtin_id): Use it.
29464 (avr_init_builtins): Use it. And use avr_bdesc.
29465 (bdesc_1arg): Remove.
29466 (bdesc_2arg): Remove.
29467 (bdesc_3arg): Remove.
29468 (struct avr_builtin_description): Add field n_args.
29469 (avr_bdesc): New static variable using builtins.def.
29470 (avr_expand_builtin): Use it.
29471 Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
29472 (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
29473 Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
29475 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
29478 * config/avr/avr.md (movmem_<mode>): Replace match_operand that
29479 match only one single hard register with respective hard reg rtx.
29480 (movmemx_<mode>): Ditto.
29481 * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
29482 insn anatomy of movmem[x]_<mode>.
29483 (avr_out_movmem): Same for printing assembler and operand usage.
29485 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
29489 * doc/extend.texi (AVR Named Address Spaces): No more try to fix
29490 address spaces located outside of device flash.
29492 * config/avr/avr.h (base_arch_s): Remove field n_segments.
29493 (mcu_type_s): Add field n_flash.
29494 * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
29495 Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
29496 (AVR_MCU): Add N_FLASH argument.
29497 * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
29498 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
29499 macro __FLASH<n> if that address space makes sense for the device.
29500 * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
29501 outside of target flash.
29502 (avr_asm_named_section): Ditto.
29503 (avr_asm_select_section): Ditto.
29504 (avr_addr_space_convert): Ditto.
29505 (avr_emit_movmemhi): Ditto.
29506 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
29507 address space is outside of device flash.
29508 (avr_insert_attributes): Ditto.
29509 (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
29510 avr_current_arch->n_segments.
29512 2012-02-27 H.J. Lu <hongjiu.lu@intel.com>
29515 * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
29516 (*movabs<mode>_2): Likewise.
29518 2012-02-27 Jakub Jelinek <jakub@redhat.com>
29521 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
29522 s_register_operand in the test instead of REG_P. Don't call
29523 gen_reg_rtx if it won't be used.
29525 PR tree-optimization/52376
29526 * ipa-split.c (split_function): Ignore CLOBBER stmts.
29528 2012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
29530 * ifcvt.c (noce_get_condition): Check condition variable is not
29531 small_register_classes_for_mode_p before accepting.
29533 2012-02-27 Uros Bizjak <ubizjak@gmail.com>
29535 * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
29537 2012-02-27 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
29540 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
29541 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
29543 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
29545 2012-02-27 Oleg Endo <olegendo@gcc.gnu.org>
29547 * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
29549 2012-02-26 Oleg Endo <olegendo@gcc.gnu.org>
29551 * config/sh/predicates.md: Remove blank lines.
29552 * config/sh/sh.c: Fix typos in comments.
29553 * config/sh/constraints.md: Likewise.
29554 * config/sh/sh.md: Remove blank lines.
29555 Fix typos in comments. Use ;; as comment characters.
29557 2012-02-26 Walter Lee <walt@tilera.com>
29559 * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
29560 (replace_mov_pcrel_step2): Ditto.
29562 2012-02-25 Alexandre Oliva <aoliva@redhat.com>
29565 * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
29566 (get_addr): Walk canonical value's locs. Avoid returning VALUEs
29567 and locs that reference values newer than the non-canonical value
29568 at hand. Return the canonical value as a worst case.
29569 (memrefs_conflict_p): Walk canonical value's locs.
29572 * cselib.c (preserve_only_constants): Rename to...
29573 (preserve_constants_and_equivs): ... this. Split out...
29574 (invariant_or_equiv_p): ... this. Preserve plus expressions
29575 of other preserved expressions too.
29576 (cselib_reset_table): Adjust.
29577 * var-tracking.c (reverse_op): Use canonical value to build
29580 2012-02-23 Kai Tietz <ktietz@redhat.com>
29582 * config/i386/i386.c (ix86_delegitimize_address): Handle
29583 UNSPEC_PCREL plus displacement.
29585 2012-02-24 Georg-Johann Lay <avr@gjlay.de>
29588 * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
29589 to test for unusedness in st X addressing.
29591 2012-02-24 Richard Guenther <rguenther@suse.de>
29593 PR middle-end/52361
29594 * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
29595 (is_gimple_reg_type): Move inline ...
29596 * gimple.h (is_gimple_reg_type): ... here.
29598 2012-02-24 Richard Guenther <rguenther@suse.de>
29600 PR middle-end/52361
29601 * passes.c (execute_function_todo): When verifying SSA form
29602 verify gimple form first.
29603 * tree-ssa.c (verify_ssa): Do not verify gimple form here.
29605 2012-02-24 Richard Guenther <rguenther@suse.de>
29607 PR middle-end/52355
29608 * fold-const.c (fold_addr_of_array_ref_difference): New function.
29609 (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
29611 2012-02-13 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29613 * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
29615 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29617 * tree-phinodes.c (make_phi_node): Mark static.
29618 * tree-flow.h (make_phi_node): Remove extern decl.
29619 * doc/gimple.texi (make_phi_node): Remove documentation.
29621 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29623 * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
29624 * tree-ssa-sccvn.c (print_scc): Ditto.
29626 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29628 * doc/passes.texi (Full redundancy elimination): Fix typo.
29630 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29632 * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
29634 2012-02-23 Eric Botcazou <ebotcazou@adacore.com>
29637 * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
29639 2012-02-23 Uros Bizjak <ubizjak@gmail.com>
29642 * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
29644 2012-02-23 Georg-Johann Lay <avr@gjlay.de>
29646 * config/avr/avr.md (code_stdname): Add ior, xor.
29647 (xior): New code iterator.
29648 (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
29649 (*<code_stdname><mode>qi.byte1-3): Ditto.
29651 2012-02-23 Jakub Jelinek <jakub@redhat.com>
29653 PR tree-optimization/52019
29654 * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
29657 2012-02-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29659 * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
29660 HAVE_INITFINI_ARRAY to work around namespace pollution in
29661 certain versions of newlib system headers.
29662 * config.in: Regenerate.
29663 * configure: Regenerate.
29664 * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
29665 instead of HAVE_INITFINI_ARRAY.
29667 2012-02-22 Uros Bizjak <ubizjak@gmail.com>
29670 * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
29671 is not offsettable memory reference.
29673 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
29676 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
29677 setting avr_need_clear_bss_p for __gnu_lto* symbols.
29679 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
29681 * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
29682 * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
29684 2012-02-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29686 * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
29687 library on Solaris 8 even without TLS support.
29688 * configure: Regenerate.
29690 2012-02-22 Richard Guenther <rguenther@suse.de>
29692 PR middle-end/52329
29693 * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
29694 for GIMPLE_DEBUG stmts.
29696 2012-02-22 Martin Jambor <mjambor@suse.cz>
29698 PR middle-end/51782
29699 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
29700 according to the base object.
29702 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
29704 PR rtl-optimization/50063
29705 * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
29706 and 2 (8-bit SP) in operand 2.
29707 * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
29708 setup to use movhi_sp_r instead of vanilla move to write SP.
29709 Adjust REG_CFA notes to superseed unspec.
29710 (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
29712 As function body might contain CLI or SEI: Use irq_state 0 (IRQ
29713 known to be off) only with TARGET_NO_INTERRUPTS. Never use
29714 irq_state 1 (IRQ known to be on) here.
29716 2012-02-21 Bernd Schmidt <bernds@codesourcery.com>
29718 * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
29720 * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
29721 assign_hard_reg): Likewise.
29723 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
29725 * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
29727 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
29729 * config/avr/avr.md
29730 (*dec-and-branchhi!=-1.d.clobber): New text peephole.
29731 (*dec-and-branchhi!=-1.l.clobber): New text peephole.
29733 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
29735 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
29736 prototype from here to...
29737 * config/avr/avr.h: ...here.
29739 2012-02-21 Richard Earnshaw <rearnsha@arm.com>
29742 * thumb2.md (thumb2_shiftsi3_short): Split register and
29743 immediate shifts. For register shifts tie operands 0 and 1.
29744 (peephole2 for above): Check that register-controlled shifts
29745 have suitably tied operands.
29747 2012-02-21 Quentin Neill <quentin.neill@amd.com>
29750 * config/i386/bdver1.md (bdver1_call, bdver1_push,
29751 bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
29752 bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
29753 bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
29754 bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
29755 bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
29756 bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
29757 bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
29758 bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
29759 bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
29760 bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
29761 bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
29762 bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
29763 bdver1_ssevector_avx256_unaligned_load,
29764 bdver1_ssevector_sse128_unaligned_load,
29765 bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
29766 bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
29767 bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
29768 bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
29769 bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
29770 bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
29771 bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
29772 bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
29773 bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
29774 bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
29775 bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
29776 bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
29777 bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
29778 bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
29779 bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
29780 bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
29781 bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
29782 bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
29783 bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
29784 bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
29785 bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
29786 bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
29787 bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
29788 bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
29789 bdver1_ssediv_double_load, bdver1_ssediv_double,
29790 bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
29791 Add "bdver2" attribute.
29793 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29795 * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
29796 default if possible and not specified otherwise.
29798 2012-02-21 Richard Guenther <rguenther@suse.de>
29800 PR middle-end/52314
29801 * gimplify.c (create_tmp_from_val): Use the main variant type
29802 for the type of the temporary we create.
29804 2012-02-21 Richard Guenther <rguenther@suse.de>
29806 PR tree-optimization/52324
29807 * gimplify.c (gimplify_expr): When re-gimplifying expressions
29808 do not gimplify a MEM_REF address operand if it is already
29811 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29813 * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
29814 TARGET_HARD_FLOAT with TARGET_HARD_DFP.
29816 2012-02-21 Richard Guenther <rguenther@suse.de>
29818 * tree-vect-stmts.c (vectorizable_load): Use pre-computed
29819 nested_in_vect_loop.
29821 2012-02-21 Jakub Jelinek <jakub@redhat.com>
29823 PR tree-optimization/52318
29824 * gimple-fold.c (gimplify_and_update_call_from_tree): Add
29825 vdef also to non-pure/const call stmts in the sequence.
29827 2012-02-21 Tristan Gingold <gingold@adacore.com>
29829 * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
29831 2012-02-20 David S. Miller <davem@davemloft.net>
29833 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
29834 don't use the "rd %pc" instruction on v9 for PIC register loads.
29836 2012-02-20 Aldy Hernandez <aldyh@redhat.com>
29838 PR middle-end/52141
29839 * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
29840 in a transaction safe function.
29842 2012-02-20 Kai Tietz <ktietz@redhat.com>
29845 * stor-layout.c (place_field): Handle desired_align for
29848 2012-02-20 Richard Guenther <rguenther@suse.de>
29850 PR tree-optimization/52298
29851 * tree-vect-stmts.c (vectorizable_store): Properly use
29852 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
29854 (vectorizable_load): Likewise.
29855 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
29856 Access DR_STEP after ensuring it is not NULL.
29858 2012-02-20 Jakub Jelinek <jakub@redhat.com>
29860 PR tree-optimization/52286
29861 * fold-const.c (fold_binary_loc): For (X & C1) | C2
29862 optimization use double_int_to_tree instead of build_int_cst_wide,
29863 rewrite to use double_int vars.
29865 2012-02-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29868 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
29870 Remove -e 0 from $gcc_cv_ld invocation.
29871 Only use __GLIBC_PREREQ if defined.
29872 Enable on Solaris since Solaris 8 patch.
29873 (gcc_SUN_LD_VERSION): New macro.
29874 * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
29875 gcc_SUN_LD_VERSION for version number format.
29876 * configure: Regenerate.
29877 * varasm.c (get_elf_initfini_array_priority_section): Set
29878 SECTION_NOTYPE for non-default priority.
29879 Use get_section instead of get_unnamed_section to emit
29880 .init_array/.fini_array with default priority.
29882 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
29884 * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
29885 (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally.
29886 (mips_start_unique_function, mips_output_mips16_rdhwr)
29887 (mips_code_end): New functions.
29888 (TARGET_ASM_CODE_END): Define.
29890 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
29892 * config/mips/mips.c (mips16_build_call_stub): Add CFI information
29893 to stubs with non-sibling calls.
29895 2012-02-18 Sandra Loosemore <sandra@codesourcery.com>
29897 * doc/invoke.texi (-fira-* options): Copy-edit.
29898 (ira-* parameters): Copy-edit.
29900 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
29902 * doc/invoke.texi: Minor copy-edits to bring into conformance with
29903 GCC coding conventions.
29905 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
29907 * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
29908 when used as adjectives.
29910 2012-02-16 Sandra Loosemore <sandra@codesourcery.com>
29912 * doc/invoke.texi: Clean up "that"/"which" confusion.
29914 2012-02-17 Steven Bosscher <steven@gcc.gnu.org>
29916 * system.h: Poison SMALL_REGISTER_CLASSES
29917 * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
29918 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
29920 2012-02-16 Jakub Jelinek <jakub@redhat.com>
29922 PR tree-optimization/52285
29923 * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
29924 when deciding if a call is a tail call or tail recursion.
29926 2012-02-16 Kai Tietz <ktietz@redhat.com>
29928 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
29929 interger-constant displacement for UNSPEC_PCREL.
29931 2012-02-16 Jakub Jelinek <jakub@redhat.com>
29933 PR rtl-optimization/52208
29934 * ira-costs.c (scan_one_insn): Don't decrease mem_cost
29935 for MEMs with REG_EQUIV, if the MEM isn't general_operand.
29937 PR tree-optimization/52255
29938 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
29939 loop->header has virtual PHI, but exit_e->dest doesn't, add
29940 virtual PHI to exit_e->dest and adjust all uses after the loop.
29943 * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
29944 children with clone_tree_hash, not after it.
29946 2012-02-16 Iain Sandoe <iains@gcc.gnu.org>
29948 * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
29949 extended identifiers.
29951 2012-02-16 Jakub Jelinek <jakub@redhat.com>
29953 PR middle-end/51929
29954 * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
29955 a same_body_alias, also test whether e->callee isn't a former
29956 or current clone of the decl this is a same body alias of.
29958 PR translation/52264
29959 * cgraphunit.c (verify_cgraph_node): Fix a typo.
29961 2012-02-15 Sandra Loosemore <sandra@codesourcery.com>
29963 * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
29965 2012-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
29968 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
29969 force_reg instead of copy_to_reg for better optimization. Force
29970 non-register or memory operands into a register.
29972 2012-02-15 Andrew MacLeod <amacleod@redhat.com>
29974 * extend.texi: Reserve upper bits of memory model for future use.
29976 2012-01-15 Georg-Johann Lay <avr@gjlay.de>
29977 Anatoly Sokolov <aesok@post.ru>
29978 Eric Weddington <eric.weddington@atmel.com>
29981 * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
29982 avrxmega4, avrxmega5, avrxmega6, avrxmega7.
29983 Rewrite initializers for .macro.
29984 * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
29985 avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
29986 atxmega32d4, atxmega32x1.
29987 avrxmega4: atxmega64a3, atxmega64d3.
29988 avrxmega5: atxmega64a1, atxmega64a1u.
29989 avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
29990 atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
29991 avrxmega7: atxmega128a1, atxmega128a1u.
29992 * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
29993 ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
29994 (struct base_arch_s): Rename reserved to xmega_p.
29995 Rename reserved2 to have_rampd.
29996 (AVR_XMEGA): New define.
29997 (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
29998 (AVR_HAVE_RAMPZ): Change definition to fit xmega.
29999 * config/avr/predicates.md (io_address_operand): Take into
30000 account SFR offset.
30001 (low_io_address_operand): Ditto.
30002 (high_io_address_operand): Ditto.
30003 * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
30004 (enabled, movhi_sp_r): Use them.
30005 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
30006 cpp_define_formatted to built-in define __AVR_ARCH__.
30007 (__AVR_XMEGA__): New built-in define.
30008 (__AVR_HAVE_RAMPD__): New built-in define.
30009 (__AVR_HAVE_RAMPX__): New built-in define.
30010 (__AVR_HAVE_RAMPY__): New built-in define.
30011 (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
30013 * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
30014 (avr_option_override): Initialize them.
30015 (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
30016 (avr_init_expanders): Initialize them. No more block several calls.
30017 (emit_push_sfr): New static function.
30018 (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
30020 (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
30021 (avr_print_operand): Print addreeses as symbols for
30022 RAMPX, RAMPY, RAMPD, CCP.
30023 (output_movhi): Handle AVR_XMEGA when writing to SP.
30024 (avr_out_movhi_mr_r_xmega): New static function.
30025 (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
30026 (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
30027 __RAMPD__, __CCP__ as needed.
30029 * config/avr/multilib.h: Regenerate.
30030 * config/avr/t-multilib: Regenerate.
30031 * config/avr/avr-tables.opt: Regenerate.
30033 2012-02-15 Tobias Grosser <grosser@fim.uni-passau.de>
30035 PR tree-optimization/50561
30036 * graphite-flattening.c (lst_project_loop): Do not
30037 remove old scattering dimensions after flattening.
30038 (lst_do_flatten): Likewise.
30040 2012-02-15 Georg-Johann Lay <avr@gjlay.de>
30042 * doc/extend.texi (AVR Built-in Functions): Remove doc for
30043 __builtin_avr_map8, __builtin_avr_map16.
30044 Document __builtin_avr_insert_bits.
30046 * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
30047 (insert_bits): New insn.
30048 (adjust_len.map_bits): Rename to insert_bits.
30049 (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
30050 * avr-protos.h (avr_out_map_bits): Remove.
30051 (avr_out_insert_bits, avr_has_nibble_0xf): New.
30052 * config/avr/constraints.md (Cxf,C0f): New.
30053 * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
30054 defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
30055 New built-in define __BUILTIN_AVR_INSERT_BITS.
30056 * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
30057 (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
30058 (avr_move_bits): Rewrite.
30059 (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
30061 (avr_map_op_t): New typedef.
30062 (avr_map_op): New static variable.
30063 (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
30064 (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
30065 (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
30066 (bdesc_3arg, avr_expand_triop_builtin): New.
30067 (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
30068 (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
30069 (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
30070 (avr_map_equal_p, avr_map_sig_p): Remove.
30071 (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
30072 (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
30073 (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
30074 (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
30075 (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
30076 (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
30078 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
30080 * config/c6x/c6x.md (reserve_cycles): New attribute.
30081 * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
30082 don't reserve functional units after the branch occurs.
30084 2012-02-14 Aldy Hernandez <aldyh@redhat.com>
30086 PR middle-end/52142
30087 * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
30088 functions into non-tm_pure functions.
30090 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
30093 * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
30094 (iterative_hash_canonical_type): Likewise.
30095 * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
30098 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
30100 * haifa-sched.c (prune_ready_list): Ensure that if there is a
30101 sched-group insn, it either remains alone or the entire list is pruned.
30103 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
30105 * doc/install.texi (Prerequisites): Fix grammar.
30106 (Configuration): Likewise.
30108 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
30110 * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
30111 MPC as part of GCC before describing configuring with --with-gmp etc.
30112 (Installing GCC: Configuration): --with-gmp etc. aren't needed if
30113 sources are present.
30115 2012-02-14 Jakub Jelinek <jakub@redhat.com>
30118 * dwarf2out.c (clone_tree_hash): New function.
30119 (copy_decls_walk): Use it instead of clone_tree.
30121 2012-02-14 Richard Guenther <rguenther@suse.de>
30123 PR tree-optimization/52244
30124 PR tree-optimization/51528
30125 * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
30126 replacements for integral types.
30128 2012-02-14 Walter Lee <walt@tilera.com>
30130 * config.gcc: Handle tilegx and tilepro.
30131 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
30132 tilegx and tilepro.
30133 Add HAVE_AS_TLS check for tilegx and tilepro.
30134 * configure: Regenerate.
30135 * doc/contrib.texi: Add Mat Hostetter and self.
30136 * doc/extend.texi (TILE-Gx Built-in Functions): New node.
30137 Document instruction intrinsics and network accessing intrinsics.
30138 (TILEPro Built-in Functions): New node. Document instruction
30139 intrinsics and network accessing intrinsics.
30140 * doc/install.texi (Specific, tilegx-*-linux*): Document it.
30141 (Specific, tilepro-*-linux*): Likewise.
30142 * doc/invoke.texi (TILE-Gx Options): New section.
30143 (TILEPro Options): New section.
30144 * doc/md.texi (TILE-Gx): New section.
30145 (TILEPro): New section.
30146 * common/config/tilegx/tilegx-common.c: New file.
30147 * common/config/tilepro/tilepro-common.c: New file.
30148 * config/tilegx/constraints.md: New file.
30149 * config/tilegx/linux.h: New file.
30150 * config/tilegx/mul-tables.c: New file.
30151 * config/tilegx/predicates.md: New file.
30152 * config/tilegx/sync.md: New file.
30153 * config/tilegx/t-tilegx: New file.
30154 * config/tilegx/tilegx-builtins.h: New file.
30155 * config/tilegx/tilegx-c.c: New file.
30156 * config/tilegx/tilegx-generic.md: New file.
30157 * config/tilegx/tilegx-modes.def: New file.
30158 * config/tilegx/tilegx-multiply.h: New file.
30159 * config/tilegx/tilegx-protos.h: New file.
30160 * config/tilegx/tilegx.c: New file.
30161 * config/tilegx/tilegx.h: New file.
30162 * config/tilegx/tilegx.md: New file.
30163 * config/tilegx/tilegx.opt: New file.
30164 * config/tilepro/constraints.md: New file.
30165 * config/tilepro/gen-mul-tables.cc: New file.
30166 * config/tilepro/linux.h: New file.
30167 * config/tilepro/mul-tables.c: New file.
30168 * config/tilepro/predicates.md: New file.
30169 * config/tilepro/t-tilepro: New file.
30170 * config/tilepro/tilepro-builtins.h: New file.
30171 * config/tilepro/tilepro-c.c: New file.
30172 * config/tilepro/tilepro-generic.md: New file.
30173 * config/tilepro/tilepro-modes.def: New file.
30174 * config/tilepro/tilepro-multiply.h: New file.
30175 * config/tilepro/tilepro-protos.h: New file.
30176 * config/tilepro/tilepro.c: New file.
30177 * config/tilepro/tilepro.h: New file.
30178 * config/tilepro/tilepro.md: New file.
30179 * config/tilepro/tilepro.opt: New file.
30181 2012-02-14 Jakub Jelinek <jakub@redhat.com>
30183 PR tree-optimization/52210
30184 * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
30185 vect_model_simple_cost with two entry vect_def_type array instead
30186 of an address of dt.
30188 2012-02-14 Richard Guenther <rguenther@suse.de>
30191 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
30192 Do not stream DECL_QUALIFIER.
30193 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
30194 * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
30195 (find_decls_types_r): Do not walk DECL_QUALIFIER.
30197 2012-02-14 Jakub Jelinek <jakub@redhat.com>
30200 * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
30203 2012-02-13 Jakub Jelinek <jakub@redhat.com>
30206 * cselib.h (cselib_subst_to_values_from_insn): New prototype.
30207 * cselib.c (cselib_subst_to_values_from_insn): New function.
30208 * sched-deps.c (add_insn_mem_dependence,
30209 sched_analyze_1, sched_analyze_2): Use it.
30211 2012-02-13 Jan Hubicka <jh@suse.cz>
30213 PR middle-end/52214
30214 * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
30216 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
30218 * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
30219 (GTM_SELF_SPECS): Define if not already defined.
30220 (driver_self_specs): Add GTM_SELF_SPECS.
30221 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
30222 (GTM_SELF_SPECS): Define.
30223 * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
30224 * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
30226 2012-02-13 Jakub Jelinek <jakub@redhat.com>
30228 * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
30231 * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
30233 PR middle-end/52230
30234 * omp-low.c (expand_omp_for): If a static schedule without chunk size
30235 has NULL region->cont, force fd.chunk_size to be integer_zero_node.
30237 2012-02-13 Andrew MacLeod <amacleod@redhat.com>
30240 * doc/extend.texi : Fix another __atomic_compare_exchange typo.
30242 2012-02-13 Richard Guenther <rguenther@suse.de>
30244 PR translation/52211
30245 * passes.c (enable_disable_pass): Fix typo.
30247 2012-02-13 Jakub Jelinek <jakub@redhat.com>
30249 PR middle-end/52209
30250 * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
30251 XOR for reduce_bit_field if type is unsigned.
30253 2012-02-12 Eric Botcazou <ebotcazou@adacore.com>
30255 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
30256 disallow changes from SFmode to mode with different size in FP regs.
30258 2012-02-12 Robert Millan <rmh@gnu.org>
30259 Gerald Pfeifer <gerald@pfeifer.com>
30261 * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
30264 2012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
30266 PR rtl-optimization/52175
30267 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
30268 to frame-related instructions.
30270 2012-02-10 Jason Merrill <jason@redhat.com>
30273 * tlink.c (demangled_hash_entry): Change mangled to a VEC.
30274 (demangle_new_symbols): Fill it.
30275 (scan_linker_output): Walk it.
30276 (start_tweaking): Split out from scan_linker_output.
30277 (maybe_tweak): Update sym->chosen.
30278 * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
30280 2012-02-11 Jakub Jelinek <jakub@redhat.com>
30283 * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
30285 2012-02-11 Uros Bizjak <ubizjak@gmail.com>
30287 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
30288 having the same mode as previous compare.
30290 2012-02-10 Eric Botcazou <ebotcazou@adacore.com>
30292 * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
30293 * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
30294 (nonlocal_goto_internal): Likewise.
30295 (nonlocal_goto): Emit a use and an indirect jump directly.
30297 2012-02-10 Andrew MacLeod <amacleod@redhat.com>
30300 * doc/extend.texi : Update comments for __atomic_compare_exchange and
30301 __atomic_{is,always}_lock_free.
30303 2012-02-10 Uros Bizjak <ubizjak@gmail.com>
30306 * config/i386/i386.c (ix86_legitimate_address_p): Disallow
30307 negative constant address for TARGET_X32.
30309 2012-02-10 Richard Henderson <rth@redhat.com>
30311 * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
30312 * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
30313 for GIMPLE_TRANSACTION. Tidy if's into a switch.
30315 2012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30316 Ira Rosen <irar@il.ibm.com>
30318 PR tree-optimization/50031
30319 * targhooks.c (default_builtin_vectorization_cost): Handle
30320 vec_promote_demote.
30321 * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
30322 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
30323 all types of reduction and pattern statements.
30324 (vect_estimate_min_profitable_iters): Likewise.
30325 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
30326 (vect_get_load_cost): Use vec_perm for permutations; add dump logic
30327 for explicit realigns.
30328 (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
30329 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
30330 vec_promote_demote.
30331 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
30332 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
30333 vec_perm for VSX and handle vec_promote_demote.
30335 2012-02-10 Jakub Jelinek <jakub@redhat.com>
30337 PR middle-end/52177
30338 * builtins.c (fold_builtin_atomic_always_lock_free,
30339 expand_builtin_atomic_always_lock_free,
30340 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
30341 Return and/or test boolean_true_node/boolean_false_node instead of
30342 integer_one_node/integer_zero_node.
30344 2012-02-10 Jan Hubicka <jh@suse.cz>
30346 PR middle-end/48600
30347 * predict.c (predict_paths_for_bb): Prevent looping.
30348 (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
30350 2012-02-10 Roman Zhuykov <zhroma@ispras.ru>
30352 * config/arm/arm.c (output_move_double): In one case properly
30353 count number of instructions that will be emitted.
30355 2012-02-10 Richard Guenther <rguenther@suse.de>
30357 PR translation/52193
30358 * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
30360 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
30362 PR middle-end/52140
30363 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
30365 2012-02-09 Jakub Jelinek <jakub@redhat.com>
30368 * var-tracking.c (emit_note_insn_var_location): If
30369 EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
30370 emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
30371 non-NOTE_DURING_CALL_P insn.
30373 2012-02-09 Bin Cheng <bin.cheng@arm.com>
30375 PR middle-end/51867
30376 * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
30378 2012-02-08 Magnus Granberg <zorry@gentoo.org>
30381 * gcc.c (switch_matches) Support switches with separated form,
30384 2012-02-08 Georg-Johann Lay <avr@gjlay.de>
30386 * config/avr/avr.md (SREG_ADDR): Remove constant definition.
30388 (RAMPZ_ADDR): Ditto.
30389 * config/avr/avr.c (avr_addr_t): New typedef.
30390 (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
30391 (avr_init_expanders): Initialize it.
30392 (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
30394 (expand_epilogue): Ditto.
30395 (avr_print_operand): Ditto.
30396 (avr_file_start): Ditto.
30397 (avr_emit_movmemhi): Ditto.
30399 2012-02-08 Richard Guenther <rguenther@suse.de>
30401 PR tree-optimization/46886
30402 * tree-flow.h (do_while_loop_p): Declare.
30403 * tree-ssa-loop-ch.c (do_while_loop_p): Export.
30404 * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
30406 2012-02-08 Andrew MacLeod <amacleod@redhat.com>
30408 * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
30409 always succeed for integers larger than a native word.
30411 2012-02-08 Richard Guenther <rguenther@suse.de>
30413 PR rtl-optimization/52170
30414 * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
30415 properly handle integer vector modes.
30417 2012-02-08 Jakub Jelinek <jakub@redhat.com>
30419 PR gcov-profile/52150
30420 * coverage.c: Include target.h.
30421 (build_var): Call targetm.strip_name_encoding on the assembler name.
30422 Change one _ into . or $ if the target allows it.
30423 * Makefile.in (coverage.o): Depend on $(TARGET_H).
30425 PR rtl-optimization/52139
30426 * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
30427 is a BARRIER after emit_insn_after_noloc, move BB_END
30428 to the last non-BARRIER insn before it.
30430 2012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
30432 PR middle-end/24306
30433 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
30434 (mips_gimplify_va_arg_expr): Call it instead of
30435 std_gimplify_va_arg_expr.
30437 2012-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
30439 * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
30440 message for -mno-pointers-to-nested-function.
30442 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
30444 PR middle-end/51994
30445 * expr.c (get_inner_reference): If there is an offset, add a negative
30446 bit position to it (if any).
30448 2012-02-07 Jakub Jelinek <jakub@redhat.com>
30450 PR rtl-optimization/52060
30451 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
30452 copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
30453 before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
30454 and/or i0src_copy2 when needed.
30456 2012-02-07 Jakub Jelinek <jakub@redhat.com>
30458 * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
30459 or LTOPLUGINSONAME if have_c.
30461 * config/freebsd-spec.h: Add comment about what macros can be defined
30463 (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
30464 * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
30467 2012-02-07 Richard Guenther <rguenther@suse.de>
30469 * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
30470 newline in -alias dumps.
30472 2012-02-07 Kai Tietz <ktietz@redhat.com>
30473 Dave Korn <dave.korn.cygwin@gmail.com>
30476 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
30477 Take care that typinfo gets dllexport-attribute.
30479 2012-02-07 Jakub Jelinek <jakub@redhat.com>
30481 PR middle-end/52074
30482 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
30483 if modifier < EXPAND_SUM call force_operand on the result.
30485 2012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
30487 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
30488 adding __forwarder_dst__ prefix if a forwarder_section attribute is
30490 (epiphany_function_type): Replace types for specific interrupts with
30491 EPIPHANY_FUNCTION_INTERRUPT.
30492 (EPIPHANY_INTERRUPT_P): Update.
30493 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
30494 New static function.
30495 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
30496 <disinterrupt>: Affects type identity.
30497 (epiphany_handle_interrupt_attribute): Handle variable number of
30499 (epiphany_compute_function_type): Update for new
30500 epiphany_function_type definition.
30501 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
30502 handlers with a longcall forwarder.
30503 (epiphany_start_function): Handle multiple interrupt arguments and/or
30504 forwarder_section attribute.
30506 * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
30509 2012-02-07 Alan Modra <amodra@gmail.com>
30512 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
30515 2012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30517 PR tree-optimization/50969
30518 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
30519 use vec_perm rather than vector_stmt.
30520 (vect_model_load_cost): Likewise.
30521 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
30522 vec_perm to be the same as other vector statements.
30523 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
30524 cost of vec_perm for TARGET_VSX.
30526 2012-02-06 Richard Guenther <rguenther@suse.de>
30528 PR tree-optimization/52115
30529 * tree-sra.c (access_has_replacements_p): New function.
30530 (sra_modify_assign): Use it to decide whether a use is uninitialized.
30532 2012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
30534 PR middle-end/52047
30535 * trans-mem.c (expand_call_tm): Add an assertion.
30536 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
30539 2012-02-06 Richard Guenther <rguenther@suse.de>
30541 PR tree-optimization/50955
30542 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
30543 raise cost of expressions that replace an address with an
30544 expression based on a different pointer.
30546 2012-02-06 Jakub Jelinek <jakub@redhat.com>
30549 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
30550 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
30552 2012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
30555 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
30556 -Weffc++ and specify guidelines come from second edition.
30558 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
30560 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
30561 (sibcall_value_multiple_internal, call_split, call_internal_direct)
30562 (call_direct_split, call_value_split, call_value_internal_direct)
30563 (call_value_direct_split, call_value_multiple_split): Use jal and
30564 jal_macro attributes.
30566 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
30568 * reload1.c (reload_regs_reach_end_p): Replace with...
30569 (reload_reg_rtx_reaches_end_p): ...this function.
30570 (new_spill_reg_store): Update commentary.
30571 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
30572 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
30573 before setting new_spill_reg_store.
30574 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
30575 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
30576 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
30577 for non-spill reload registers.
30579 2012-02-05 Ira Rosen <irar@il.ibm.com>
30581 PR tree-optimization/52091
30582 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
30583 (vect_is_simple_use_1): Likewise.
30584 * tree-vect-loop.c (vectorizable_reduction): Update calls
30585 to vect_is_simple_use_1 and vect_is_simple_use.
30586 (vectorizable_live_operation): Likewise.
30587 * tree-vect-patterns.c (widened_name_p,
30588 vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
30589 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
30590 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
30591 vectorizable_shift,vectorizable_operation, vectorizable_store,
30592 vectorizable_load): Likewise.
30593 (vect_is_simple_cond): Add an argument, pass it to
30594 vect_is_simple_use_1.
30595 (vectorizable_condition): Update calls to vect_is_simple_cond,
30596 vect_is_simple_use.
30597 (vect_is_simple_use): Add an argument, the statement in which
30598 OPERAND is used. Check that if OPERAND's def stmt is a double
30599 reduction phi node, the use is a phi node too.
30600 (vect_is_simple_use_1): Add an argument, pass it to
30601 vect_is_simple_use.
30602 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
30603 to vect_is_simple_use.
30605 2012-02-04 Jakub Jelinek <jakub@redhat.com>
30607 PR rtl-optimization/52095
30608 * modulo-sched.c (dump_insn_locator): New function.
30609 (loop_canon_p, sms_schedule): Use it.
30611 PR rtl-optimization/52113
30612 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
30613 even for decomposable shift/zext insns.
30615 2012-02-03 Jakub Jelinek <jakub@redhat.com>
30616 Zdenek Dvorak <ook@ucw.cz>
30618 PR rtl-optimization/52092
30619 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
30620 on get_iv_value result.
30622 2012-02-02 Andrew Pinski <apinski@cavium.com>
30624 PR middle-end/47982
30625 PR middle-end/43967
30626 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
30628 2012-02-02 Jakub Jelinek <jakub@redhat.com>
30630 PR middle-end/48071
30631 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
30633 2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
30635 PR rtl-optimization/49800
30636 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
30637 (sched_finish): Call regstat_free_n_sets_and_refs.
30639 2012-02-02 Jia Liu <proljc@gmail.com>
30641 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
30644 2012-02-02 Jan Hubicka <jh@suse.cz>
30645 Tom de Vries <tom@codesourcery.com>
30647 PR middle-end/51998
30648 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
30649 * varpool.c (varpool_analyze_pending_decls): Likewise.
30651 2012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
30652 Jayant R Sonar <jayant.sonar@kpitcummins.com>
30654 * config.gcc: Add cr16-* support.
30656 * doc/extend.texi: Document cr16 extensions.
30657 * doc/install.texi: Document cr16 install.
30658 * doc/invoke.texi: Document cr16 options.
30659 * doc/md.texi: Document cr16 constraints.
30661 * common/config/cr16/cr16-common.c: New file.
30662 * config/cr16/cr16.c: New file.
30663 * config/cr16/cr16.h: New file.
30664 * config/cr16/cr16.md: New file.
30665 * config/cr16/cr16.opt: New file.
30666 * config/cr16/cr16-protos.h: New file.
30667 * config/cr16/predicates.md: New file.
30668 * config/cr16/constraints.md: New file.
30669 * config/cr16/t-cr16: New file.
30671 2012-02-02 Jakub Jelinek <jakub@redhat.com>
30674 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
30675 that operands[2] is either immediate, or q_regs_operand.
30677 PR tree-optimization/52073
30678 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
30679 a pattern stmt for pattern uses, ignore uses outside of the loop.
30681 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
30683 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
30684 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
30685 (OUT_AS1, OUT_AS2): Remove.
30687 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
30689 PR rtl-optimization/51374
30690 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
30691 to cross other volatile_refs_p insns.
30693 2012-02-01 Richard Guenther <rguenther@suse.de>
30695 * doc/invoke.texi (fno-inline): Clarify documentation.
30696 (finline-small-functions): Likewise.
30697 (finline-functions): Likewise.
30698 * common.opt (finline): Adjust comment and documentation.
30699 (finline-small-functions): Clarify documentation.
30700 (finline-functions): Likewise.
30701 (finline-functions-called-once): Likewise.
30703 2012-02-01 Tristan Gingold <gingold@adacore.com>
30705 * c-typeck.c (composite_type): Keep mode for pointers.
30707 2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
30709 * function.h (regno_reg_rtx): Adjust comment.
30710 * reginfo.c (init_reg_modes_target): Only use the previous mode
30711 if it fits within one register. Remove MIPS comment.
30713 2012-01-31 Jakub Jelinek <jakub@redhat.com>
30716 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
30718 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30720 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
30721 to srak instruction.
30723 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
30725 * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
30727 2012-01-31 Jakub Jelinek <jakub@redhat.com>
30732 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
30734 2012-01-31 Richard Guenther <rguenther@suse.de>
30736 PR tree-optimization/51528
30737 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
30740 2012-01-31 Jakub Jelinek <jakub@redhat.com>
30745 * ree.c (add_removable_extension): Change def_map argument
30746 to unsigned *, store in def_map 1 + offset into *insn_list vector
30747 instead of pointers into the vector.
30748 (find_removable_extensions): Adjust caller.
30750 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
30752 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
30753 Transform all "* quoted-c-code" to { c-code }.
30754 Remove redundant test for "optimize" in combine patterns.
30755 Move (include "avr-dimode.md") to end of file.
30757 2012-01-30 Bin Cheng <bin.cheng@arm.com>
30760 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
30761 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
30763 2012-01-30 Richard Guenther <rguenther@suse.de>
30765 PR tree-optimization/52028
30766 * tree-loop-distribution.c (ldist_gen): Properly update
30769 2012-01-30 Jakub Jelinek <jakub@redhat.com>
30772 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
30773 set_cur_line_info_table if not emitting debug info.
30775 PR tree-optimization/52046
30776 * tree-vect-patterns.c (check_bool_pattern): Give up if
30777 a comparison could throw.
30780 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
30782 2012-01-30 Richard Guenther <rguenther@suse.de>
30784 PR tree-optimization/52045
30785 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
30786 SSA form if cfgcleanup did anything.
30788 2012-01-30 Richard Guenther <rguenther@suse.de>
30790 PR tree-optimization/52045
30791 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
30792 before computing final todo.
30794 2012-01-30 Richard Guenther <rguenther@suse.de>
30796 PR tree-optimization/51528
30797 * tree-sra.c (sra_modify_assign): Re-factor in preparation
30800 2012-01-30 Paolo Bonzini <bonzini@gnu.org>
30802 * df-problems.c (df_kill_notes): Check that the use refers
30803 to the note under examination.
30805 2012-01-30 Eric Botcazou <ebotcazou@adacore.com>
30808 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
30809 parameter and use short-lived pseudos.
30810 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
30811 (sparc_expand_vector_init): Const-ify local variables and adjust
30812 calls to above functions.
30814 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
30816 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
30818 2012-01-29 Sandra Loosemore <sandra@codesourcery.com>
30820 * doc/invoke.texi: Make usage of "compile time" and
30821 "run time"/"runtime" consistent throughout the file.
30823 2012-01-29 Uros Bizjak <ubizjak@gmail.com>
30825 * config/alpha/alpha.c (alpha_option_override): Default to
30826 full IEEE compliance mode for Go language.
30828 2012-01-29 Tijl Coosemans <tijl@coosemans.org>
30830 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
30831 (LINK_SSP_SPEC): Define.
30833 2012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30836 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
30839 2012-01-28 Sandra Loosemore <sandra@codesourcery.com>
30841 * doc/invoke.texi: Correct hyphenation of "floating point",
30842 "double precision", and related terminology throughout the file.
30844 2012-01-28 Jakub Jelinek <jakub@redhat.com>
30847 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
30848 arm_general_register_operand predicate for operand 2 instead of
30851 2012-01-27 Ian Lance Taylor <iant@google.com>
30854 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
30855 * builtins.c (expand_builtin_init_trampoline): Add onstack
30856 parameter. Change caller.
30857 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
30858 * tree.c (build_common_builtin_nodes): Declare
30859 __builtin_init_heap_trampoline.
30861 2012-01-27 Georg-Johann Lay <avr@gjlay.de>
30863 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
30864 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
30865 * config/avr/avr.c: Ditto.
30866 (avr_regnames): Remove because unused.
30867 * config/avr/avr.md (*cpse.ne): New peephole.
30868 (*cpse.eq): New peephole from former cpse peepholes.
30870 2012-01-27 Michael Eager <eager@eagercon.com>
30872 * config/microblaze.c (microblaze_emit_compare): Correct
30873 test after pcmp instruction.
30875 2012-01-27 Richard Guenther <rguenther@suse.de>
30877 PR tree-optimization/52020
30878 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
30880 2012-01-27 Richard Guenther <rguenther@suse.de>
30882 * ipa-pure-const.c (check_stmt): Clobbers do not make a
30883 function non-const/pure.
30885 2012-01-27 Richard Guenther <rguenther@suse.de>
30887 PR tree-optimization/50444
30888 * tree-sra.c (build_ref_for_offset): Properly adjust the
30889 MEM_REF type for unaligned accesses.
30891 2012-01-27 Richard Guenther <rguenther@suse.de>
30893 PR tree-optimization/50444
30894 * expr.c (mem_ref_refers_to_non_mem_p): New function.
30895 (expand_assignment): Use it. Properly handle misaligned
30896 bases when expanding stores to component references.
30897 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
30898 refactor that case.
30900 2012-01-27 Andrey Belevantsev <abel@ispras.ru>
30902 PR middle-end/51389
30903 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
30904 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
30905 * tree-data-ref.c (find_data_references_in_loop): Make static.
30906 (compute_all_dependences): Change return type to bool. Bail out
30907 for too many datarefs in a loop. Move the hunk resetting the data
30908 dependences vector from ...
30909 (compute_data_dependences_for_loop): ... here. Account for
30910 compute_all_dependences returning false.
30911 (compute_data_dependences_for_bb): Likewise.
30912 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
30913 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
30915 2012-01-27 Richard Guenther <rguenther@suse.de>
30917 PR middle-end/51959
30918 * expr.c (store_field): Use the alias-set of the scratch memory
30921 2012-01-27 Tom de Vries <tom@codesourcery.com>
30923 PR tree-optimization/51990
30924 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
30926 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
30928 2012-01-27 Jakub Jelinek <jakub@redhat.com>
30931 * var-tracking.c (reverse_op): Don't add any reverse operation
30932 if V already has any constant locations.
30934 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
30936 * doc/invoke.texi: Correct usage of "command line" (noun)
30937 vs "command-line" (adjective) throughout.
30939 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
30941 * doc/invoke.texi (Language Independent Options): Move
30942 -Wcoverage-mismatch blurb from here....
30943 (Warning Options): ...to here.
30945 2012-01-27 Peter Bergner <bergner@vnet.ibm.com>
30947 * config/rs6000/rs6000.c (rs6000_option_override_internal):
30948 Set rs6000_always_hint to false for 476.
30950 2012-01-27 Matthias Klose <doko@ubuntu.com>
30952 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
30954 * incpath.c (add_standard_paths): Likewise.
30956 2012-01-27 Richard Henderson <rth@redhat.com>
30958 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
30959 * config/m68k/sync.md (atomic_test_and_set): Rename from
30960 sync_test_and_setqi and adjust the operands.
30961 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
30962 and unconditionally enable.
30964 2012-01-27 Richard Henderson <rth@redhat.com>
30966 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
30967 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
30968 (ldstub): Rename from ldstubqi.
30969 (ldstub<I24MODE>): Remove.
30971 2012-01-27 Richard Henderson <rth@redhat.com>
30973 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
30974 * c-cppbuiltin.c (cpp_atomic_builtins): Define
30975 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
30976 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
30977 * doc/tm.texi: Rebuild.
30979 2012-01-27 Richard Henderson <rth@redhat.com>
30981 * optabs.c (gen_atomic_test_and_set): Remove default.
30982 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
30984 2012-01-26 Jakub Jelinek <jakub@redhat.com>
30986 PR rtl-optimization/51978
30987 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
30988 (combine_reaching_defs): Likewise.
30989 (struct re_info): Remove.
30990 (add_removable_extension): Remove x and data arguments,
30991 add insn, insn_list and def_map. Use the arguments directly
30992 instead of using struct re_info.
30993 (find_removable_extensions): Don't call add_removable_extension
30994 through note_stores, instead just call it with single_set
30995 result if non-NULL.
30996 (find_and_remove_re): Pass curr_cand->expr instead of
30997 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
30999 2012-01-26 Michael Matz <matz@suse.de>
31001 PR tree-optimization/46590
31002 * cfgexpand.c: Revert last change (r183305).
31003 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
31005 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
31006 checking for emptiness.
31008 2012-01-26 Jakub Jelinek <jakub@redhat.com>
31010 PR middle-end/51895
31011 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
31012 non-addressable non-BLKmode base correctly.
31014 2012-01-26 Michael Matz <matz@suse.de>
31016 PR tree-optimization/48794
31017 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
31018 regions referenced from RESX/EH_DISPATCH.
31020 2012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31022 * config/s390/s390.h: Make BRANCH_COST an option.
31023 * config/s390/s390.opt: New option -mbranch-cost.
31025 2012-01-26 Richard Henderson <rth@redhat.com>
31027 Revert 2012-01-24 change:
31028 * trans-mem.c (requires_barrier): Do not instrument thread local
31029 variables and emit save/restore for them.
31031 2012-01-25 Jakub Jelinek <jakub@redhat.com>
31033 PR middle-end/51986
31034 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
31037 2012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
31039 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
31042 2012-01-25 Georg-Johann Lay <avr@gjlay.de>
31045 Rename __pgm to __flash.
31046 Rename __pgm1 to __flash1.
31047 Rename __pgm2 to __flash2.
31048 Rename __pgm3 to __flash3.
31049 Rename __pgm4 to __flash4.
31050 Rename __pgm5 to __flash5.
31051 Rename __pgmx to __memx.
31052 * doc/extend.texi (AVR Named Address Spaces)
31053 Rename address space names as indicated above.
31054 * config/avr/avr.c (avr_addrspace): Ditto.
31056 * config/avr/avr-protos.h
31057 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
31058 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
31059 * config/avr/predicates.md: Ditto.
31060 * config/avr/avr.c Ditto, and
31061 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
31062 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
31064 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
31065 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
31066 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
31067 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
31068 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
31069 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
31070 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
31071 * config/avr/avr.c: Ditto.
31072 * config/avr/avr.md: Ditto.
31074 2012-01-25 Jason Merrill <jason@redhat.com>
31077 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
31079 2012-01-25 Jakub Jelinek <jakub@redhat.com>
31081 PR tree-optimization/51987
31082 * tree-data-ref.c (get_references_in_stmt): Handle references in
31083 non-volatile GIMPLE_ASM.
31085 2012-01-25 Richard Guenther <rguenther@suse.de>
31087 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
31088 bases are dereferenced.
31090 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
31092 PR rtl-optimization/48374
31093 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
31095 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
31097 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
31098 compute_data_dependences_for_loop returns false.
31099 * tree-parloops.c (loop_parallel_p): Likewise.
31101 2012-01-25 Richard Guenther <rguenther@suse.de>
31103 * tree.h (get_pointer_alignment_1): Declare.
31104 * builtins.c (get_pointer_alignment_1): New function.
31105 (get_pointer_alignment): Use it.
31107 2012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
31109 PR rtl-optimization/48308
31110 * combine.c (enum undo_kind): Add UNDO_LINKS.
31111 (struct undo): Add member l to other_contents and where.
31112 (do_SUBST_LINK): New.
31114 (try_combine): Handle LOG_LINKS for the dummy i1 case.
31115 (undo_all): Handle UNDO_LINKS.
31117 2012-01-25 Richard Henderson <rth@redhat.com>
31119 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
31122 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
31124 * optabs.c (gen_atomic_test_and_set): Use each argument.
31126 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
31128 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
31129 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
31130 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
31131 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
31132 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
31133 TARGET_PAIRED_SINGLE_FLOAT.
31135 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
31137 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
31138 (in_struct, return_val): Remove MEM documentation.
31139 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
31140 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
31141 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
31143 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
31144 * cfgexpand.c (add_alias_set_conflicts): Likewise.
31145 * expr.c (store_field): Likewise.
31146 * function.c (assign_stack_temp_for_type): Likewise.
31147 * ifcvt.c (noce_try_cmove_arith): Likewise.
31148 * reload1.c (reload): Likewise.
31149 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
31150 (alpha_set_memflags): Likewise.
31151 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
31153 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
31155 * rtl.h (true_dependence, canon_true_dependence): Remove varies
31157 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
31158 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
31159 (true_dependence_1, true_dependence, canon_true_dependence): Remove
31161 * cselib.c (cselib_rtx_varies_p): Delete.
31162 (cselib_invalidate_mem): Update call to canon_true_dependence.
31163 * dse.c (record_store, check_mem_read_rtx): Likewise.
31164 (scan_reads_nospill): Likewise.
31165 * cse.c (check_dependence): Likewise.
31166 (cse_rtx_varies_p): Delete.
31167 * expr.c (safe_from_p): Update call to true_dependence.
31168 * ira.c (validate_equiv_mem_from_store): Likewise.
31169 (memref_referenced_p): Likewise.
31170 * postreload-gcse.c (find_mem_conflicts): Likewise.
31171 * sched-deps.c (sched_analyze_2): Likewise.
31172 * store-motion.c (load_kills_store): Likewise.
31173 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
31174 * gcse.c (mems_conflict_for_gcse_p): Likewise.
31175 (compute_transp): Update call to canon_true_dependence.
31177 2012-01-25 Richard Henderson <rth@redhat.com>
31179 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
31180 (maybe_emit_atomic_test_and_set): New.
31181 (expand_sync_lock_test_and_set): Use it.
31182 (expand_atomic_test_and_set): Likewise.
31183 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
31184 the implementation; clarify implementation defined details.
31185 * doc/md.texi (atomic_test_and_set): Document.
31187 2012-01-25 Richard Henderson <rth@redhat.com>
31189 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
31191 2012-01-25 Richard Henderson <rth@redhat.com>
31194 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
31195 to effect no-op split.
31197 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
31200 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
31201 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
31202 (BT_FN_VOID_PTR_INT_SIZE): New.
31203 (BT_FN_UINT_UINT_VAR): Remove.
31204 (BT_FN_UINT32_UINT32_VAR): New.
31205 (BT_FN_DOUBLE_VPTR): Remove.
31206 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
31208 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
31209 (_ITM_changeTransactionMode): Same.
31210 (_ITM_memmoveRtWt): Change return type to void.
31211 (_ITM_memcpyRtWt): Same.
31212 (_ITM_memsetW): Same.
31213 (_ITM_RaRD): Change types to double.
31218 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
31220 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
31221 Patrick Marlier <patrick.marlier@gmail.com>
31223 * trans-mem.c (requires_barrier): Do not instrument thread local
31224 variables and emit save/restore for them.
31226 2012-01-24 Jason Merrill <jason@redhat.com>
31229 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
31230 output static aliases.
31232 2012-01-24 Jakub Jelinek <jakub@redhat.com>
31235 * common.opt (-pie, -shared, pie, shared): Change from Common to
31237 * gcc.c (display_help): Display help for -pie and -shared.
31239 2012-01-24 Georg-Johann Lay <avr@gjlay.de>
31242 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
31243 Remove note on size/offset limitation.
31244 (AVR Variable Attributes): Add example how to read data located
31245 with progmem. Refer to named address spaces.
31246 * doc/invoke.texi (AVR Options): Fix typo.
31248 2012-01-24 Richard Guenther <rguenther@suse.de>
31250 Forward-port to trunk
31251 2010-09-21 Jakub Jelinek <jakub@redhat.com>
31253 PR middle-end/45678
31254 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
31255 op0 isn't sufficiently aligned and there is movmisalignM
31256 insn for mode, use it to load op0 into a temporary register.
31258 2012-01-24 Jakub Jelinek <jakub@redhat.com>
31261 * target.def (const_not_ok_for_debug_p): New hook.
31262 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
31264 * doc/tm.texi: Regenerated.
31265 * dwarf2out.c (const_ok_for_output_1): If
31266 targetm.const_not_ok_for_debug_p returns true, fail.
31267 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
31269 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
31271 2012-01-23 Kai Tietz <ktietz@redhat.com>
31274 * config/i386/predicates.md (symbolic_operand): Allow
31275 UNSPEC_PCREL as PIC expression for lea.
31276 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
31277 * config/i386/i386.c (ix86_delegitimize_address): Handle
31278 UNSPEC_PCREL for none-MEM, too.
31280 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
31282 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
31283 (ipa_tm_create_version_alias): Same.
31285 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
31288 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
31289 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
31291 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
31292 Patrick Marlier <patrick.marlier@gmail.com>
31293 Iain Sandoe <developer@sandoe-acoustics.co.uk>
31296 * lto-wrapper.c (run_gcc): Pass the LTO section name to
31297 simple_object_start_read.
31299 2012-01-23 Richard Guenther <rguenther@suse.de>
31302 PR tree-optimization/51895
31303 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
31304 parameter decomposition into BLKmode components.
31306 2012-01-23 Eric Botcazou <ebotcazou@adacore.com>
31308 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
31309 fake variables for restrict-qualified pointers whose pointed-to type
31310 contains a placeholder.
31312 2012-01-23 Richard Guenther <rguenther@suse.de>
31314 PR tree-optimization/51949
31315 * ipa-split.c (execute_split_functions): Do not split malloc functions.
31317 2012-01-23 Jakub Jelinek <jakub@redhat.com>
31319 PR rtl-optimization/51933
31320 * ree.c (transform_ifelse): Return true right away if dstreg is
31321 already wider or equal to cand->mode.
31322 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
31323 (make_defs_and_copies_lists): Remove defs_list and copies_list
31324 arguments, add state argument, just truncate state->work_list
31325 instead of always allocating and freeing the vector. Assert that
31326 get_defs succeeds instead of returning 2. Changed return type to bool.
31327 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
31328 have ext_src_mode, see if it has been modified already with the
31329 right kind of extension and has been extended before from the
31330 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
31331 just return true. Remember the original mode in state->modified array.
31332 (combine_reaching_defs): Add state argument. Don't allocate and
31333 free here def_list, copied_list and vec vectors, instead just
31334 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
31335 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
31336 Add state variable, clear vectors in it, initialize state.modified
31337 if needed. Free all the vectors at the end and state.modified too.
31338 Don't skip a candidate if the extension expression has been modified.
31340 2012-01-22 Douglas B Rupp <rupp@gnat.com>
31343 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
31344 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
31345 (extra_options) interix.opt -> i386/interix.opt"
31346 (extra_objs):Add winnt-stubs.o
31347 * configure.ac: Add interix to target_os .comm on PE check.
31348 * configure: Regenerate.
31349 * config/interix3.h: Delete and move bits to..
31350 * config/interix.h: Delete and move bits to..
31351 * config/i386/i386-interix3.h: Delete and move bits to..
31352 * config/i386/i386-interix.h: ..here.
31353 (TARGET_CPU_DEFAULT): Remove redefinition.
31354 (TARGET_ASM_CONSTRUCTOR): Undefine.
31355 (SUBTARGET_SWITCHES): Define for ms-bitfields.
31356 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
31357 (PTRDIFF_TYPE): Define.
31358 (LONG_DOUBLE_TYPE_SIZE): Define.
31359 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
31360 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
31361 (TARGET_SECTION_TYPE_FLAGS): Define.
31362 (ASM_DECLARE_FUNCTION_NAME): Define.
31363 (ASM_OUTPUT_EXTERNAL): Define.
31364 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
31365 (ASM_OUTPUT_ALIGNED_BSS): Define.
31366 (PCC_BITFIELD_TYPE_MATTERS): Define.
31367 (USE_CONST_SECTION): Define.
31368 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
31369 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
31370 (SUPPORTS_ONE_ONLY): Remove.
31371 (I386_PE_STRIP_ENCODING): Define.
31372 * config/interix.opt: Delete and move bits to..
31373 * config/i386/interix.opt: ..here. New.
31374 (mpe-aligned-commons): Add.
31375 * config/i386/t-interix: Add copyright header.
31376 (winnt-stubs.o): Add rule.
31378 2012-01-22 Jason Merrill <jason@redhat.com>
31381 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
31382 for extra name aliases.
31384 2012-01-22 Eric Botcazou <ebotcazou@adacore.com>
31386 PR rtl-optimization/51924
31387 * ree.c (combine_set_extension): Improve debugging message.
31388 (combine_reaching_defs): Likewise.
31389 (get_defs): Rename confusingly named variable.
31390 (find_and_remove_re): Skip a candidate if the extension expression has
31393 2012-01-21 Robert Millan <rmh@gnu.org>
31394 Gerald Pfeifer <gerald@pfeifer.com>
31396 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
31397 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
31399 2012-01-20 Jakub Jelinek <jakub@redhat.com>
31401 PR tree-optimization/51914
31402 * tree-vect-stmts.c (vectorizable_conversion): For
31403 cvt_type && modifier == WIDEN, put temporary with cvt_type
31404 at the beginning of vec_dsts and set vec_dest to temporary
31407 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
31409 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
31411 2012-01-20 Tijl Coosemans <tijl@coosemans.org>
31413 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
31414 * config/rs6000/rs6000.c: Likewise.
31416 2012-01-20 Jakub Jelinek <jakub@redhat.com>
31419 * config/arm/arm.c (arm_count_output_move_double_insns): Call
31420 output_move_double on a copy of operands array.
31422 2012-01-20 Cary Coutant <ccoutant@google.com>
31423 Dodji Seketeli <dodji@redhat.com>
31426 * dwarf2out.c (copy_declaration_context): Return ref to parent
31427 of declaration DIE, if necessary.
31428 (remove_child_or_replace_with_skeleton): Add new parameter; update
31429 caller. Place skeleton DIE under parent DIE of original declaration.
31430 Move call to copy_declaration_context to here ...
31431 (break_out_comdat_types): ... from here.
31433 2012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31435 PR rtl-optimization/51856
31436 * reload.c (find_reloads_subreg_address): Set the address_reloaded
31439 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
31442 * config/arm/arm.c (arm_print_operand): Correct output of alignment
31443 hints for neon loads and stores.
31445 2012-01-20 Georg-Johann Lay <avr@gjlay.de>
31449 * doc/extend.texi (Named Address Spaces): Split into subsections.
31450 (AVR Named Address Spaces): New subsection.
31451 (M32C Named Address Spaces): New subsection.
31452 (RL78 Named Address Spaces): New subsection.
31453 (SPU Named Address Spaces): New subsection.
31454 (Variable Attributes): New anchor "AVR Variable Attributes".
31455 (AVR Variable Attributes): Rewrite and avoid wording
31456 "address space" in this context.
31457 * doc/invoke.texi (AVR Options): Rewrite and add documentation
31458 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
31459 (AVR Built-in Macros): New subsubsection therein.
31460 * doc/md.texi (AVR constraints): Remove "C04", "R".
31462 2012-01-20 Richard Guenther <rguenther@suse.de>
31464 PR tree-optimization/51903
31465 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
31466 when removing stmts.
31468 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
31471 * config/arm/arm.c (arm_load_pic_register): Use
31472 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
31473 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
31474 (arm_pic_static_addr): Likewise.
31475 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
31476 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
31477 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
31478 (pic_load_addr_unified): New.
31480 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
31483 * function.c (instantiate_virtual_regs_in_insn): Use
31484 delete_insn_and_edges when removing a wrong asm insn.
31486 2012-01-19 Vladimir Makarov <vmakarov@redhat.com>
31488 PR rtl-optimization/40761
31489 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
31490 Add new member loop_num.
31491 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
31492 (ira_build): Remove the parameter.
31494 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
31495 (ira.c): Do not build CFG loops for one region allocation. Remove
31496 argument from ira_build call.
31498 * ira-build.c (init_loop_tree_node): New function.
31499 (create_loop_tree_nodes): Use it. Separate the case when CFG
31500 loops are not built.
31501 (more_one_region_p): Check current_loops.
31502 (finish_loop_tree_nodes): Separate the case when CFG loops are not
31504 (add_loop_to_tree): Process loop equal to NULL too.
31505 (form_loop_tree): Separate the case when CFG loops are not built.
31506 Use explicitly number for the root.
31507 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
31509 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
31510 instead of loop->num.
31511 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
31512 (mark_all_loops_for_removal): Ditto.
31513 (remove_unnecessary_regions): Separate the case when CFG loops
31515 (ira_build): Remove the parameter. Use explicit number of regions
31516 when CFG loops are not built.
31518 * ira-color.c (print_loop_title): Separate the case for the root node.
31519 Use loop_num instead of loop->num.
31520 (move_spill_restore): Use loop_num instead of loop->num.
31522 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
31523 (change_loop): Ditto.
31524 (change_loop): Use loop_num instead of loop->num.
31526 * ira-lives.c (process_bb_node_lives): Ditto.
31528 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
31530 * ira-conflicts.c (print_allocno_conflicts): Ditto.
31532 2012-01-19 Jakub Jelinek <jakub@redhat.com>
31534 PR libmudflap/40778
31535 * tree-mudflap.c (mf_artificial): New function.
31536 (execute_mudflap_function_ops, execute_mudflap_function_decls,
31537 mx_register_decls, mudflap_enqueue_decl): Use it.
31540 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
31541 numbers in the insn pattern.
31543 2012-01-19 Michael Matz <matz@suse.de>
31545 PR tree-optimization/46590
31546 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
31547 use it in remembering which conflicts we already created.
31548 (add_scope_conflicts): Adjust call to above, (de)allocate helper
31551 2012-01-19 Aldy Hernandez <aldyh@redhat.com>
31554 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
31555 (merge_and_complain): Same.
31557 2012-01-19 Jakub Jelinek <jakub@redhat.com>
31560 * config/initfini-array.h: Guard content of the header
31561 with #ifdef HAVE_INITFINI_ARRAY.
31562 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
31563 Add initfini-array.h to tm_file here.
31564 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
31565 * config.gcc: Don't add initfini-array.h to tm_file here.
31566 * configure: Regenerated.
31568 2012-01-19 Andrey Belevantsev <abel@ispras.ru>
31570 PR rtl-optimization/51505
31571 * df-problems.c (df_kill_notes): New parameter live. Update comment.
31572 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
31573 (df_note_bb_compute): Update the call to df_kill_notes.
31575 2012-01-18 Aldy Hernandez <aldyh@redhat.com>
31577 * trans-mem.c (requires_barrier): Remove call to is_global_var.
31579 2012-01-18 Richard Guenther <rguenther@suse.de>
31581 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
31582 of conversions to void *.
31584 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31585 Richard Sandiford <rdsandiford@googlemail.com>
31587 PR middle-end/50325
31588 PR middle-end/51192
31589 * optabs.h (simplify_expand_binop): Declare.
31590 * optabs.c (simplify_expand_binop): Make global.
31591 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
31592 endian targets if the source cannot be exactly covered by word
31595 2012-01-17 Jakub Jelinek <jakub@redhat.com>
31598 * hard-reg-set.h (struct hard_reg_set_container): New type.
31599 * target.h (struct hard_reg_set_container): Forward declare.
31600 * target.def (set_up_by_prologue): New target hook.
31601 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
31602 * doc/tm.texi: Regenerated.
31603 * function.c (thread_prologue_and_epilogue_insns): Change
31604 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
31605 Call targetm.set_up_by_prologue on it.
31606 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
31607 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
31609 2012-01-17 Nick Clifton <nickc@redhat.com>
31611 * config/rx/rx.c (rx_can_use_simple_return): New function.
31612 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
31613 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
31615 2012-01-17 Richard Guenther <rguenther@suse.de>
31617 PR middle-end/51782
31618 * expr.c (expand_assignment): Take address-space information
31619 from the address operand of MEM_REF and TARGET_MEM_REF.
31620 (expand_expr_real_1): Likewise.
31622 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31624 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
31625 reload dump is requested.
31627 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
31630 * trans-mem.c (requires_barrier): Call may_be_aliased.
31632 2012-01-17 Jakub Jelinek <jakub@redhat.com>
31634 PR tree-optimization/51877
31635 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
31636 call arguments and fndecls compare equal, instead return false if they
31637 don't. Return true only if lhs1 and lhs2 are either both NULL, or
31638 both SSA_NAMEs that are valueized the same, or they satisfy
31641 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31643 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
31645 * configure: Regenerate.
31647 2012-01-16 Jan Hubicka <jh@suse.cz>
31651 * convert.c (convert_to_integer): Use fold_convert for
31652 converting an INTEGER_CST to integer type.
31654 2012-01-16 Jason Merrill <jason@redhat.com>
31657 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
31659 2012-01-16 Jakub Jelinek <jakub@redhat.com>
31662 * config/s390/s390.c (s390_chunkify_start): Don't skip
31663 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
31664 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
31665 If insn is followed by NOTE_INSN_VAR_LOCATION or
31666 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
31667 Don't use location of note insns.
31669 PR tree-optimization/51865
31670 * tree-inline.c (tree_function_versioning): Call remap_decl
31671 on DECL_RESULT whenever it has VOID_TYPE_P type.
31673 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
31675 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
31676 for calls to locally-binding MIPS16 functions if only the return
31677 type uses float regs.
31679 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
31680 Richard Sandiford <rdsandiford@googlemail.com>
31682 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
31683 (SYMBOL_32_HIGH): Likewise.
31684 (mips_output_tls_reloc_directive): Declare.
31685 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
31686 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
31687 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
31688 (mips_lo_relocs, mips_hi_relocs): Make extern.
31689 (mips16_stub_function): Move up file.
31690 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
31691 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
31692 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
31693 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
31694 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
31695 (mips_get_tp): Add MIPS16 support.
31696 (mips_legitimize_tls_address): Remove MIPS16 sorry().
31697 Generalize DTPREL and TPREL handling.
31698 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
31699 Add MIPS16 TLS support.
31700 (mips_output_tls_reloc_directive): New function.
31701 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
31702 * config/mips/predicates.md (symbolic_operand_with_high)
31703 (tls_reloc_operand): New predicates.
31704 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
31705 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
31706 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
31707 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
31708 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
31709 (*tls_get_tp_mips16_call_<mode>): Likewise.
31711 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
31713 PR rtl-optimization/51821
31714 * recog.c (peep2_find_free_register): Determine clobbered registers
31717 2012-01-14 Denis Chertykov <chertykov@gmail.com>
31720 * config/avr/avr-protos.h: Revert change of 2012-01-09.
31721 * config/avr/avr.c: Likewise.
31722 * config/avr/avr.h: Likewise.
31724 2012-01-13 Ian Lance Taylor <iant@google.com>
31727 * tree.h (TYPE_QUALS): Add cast to int.
31728 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
31730 2012-01-13 Ian Lance Taylor <iant@google.com>
31732 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
31733 comparing param_index to VEC_length result.
31735 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
31737 * c-decl.c: Do not include tree-mudflap.h
31738 * tree-optimize.c: Likewise.
31739 * Makefile.in: Update dependencies.
31741 2012-01-13 Richard Guenther <rguenther@suse.de>
31744 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
31745 variable-sized result always use RSO.
31747 2012-01-12 DJ Delorie <dj@redhat.com>
31749 * cfgexpand.c (convert_debug_memory_address): Allow any valid
31750 pointer type, not just the default pointer type.
31752 2012-01-09 Richard Henderson <rth@redhat.com>
31753 Denis Chertykov <chertykov@gmail.com>
31756 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
31757 * config/avr/avr.c (avr_can_eliminate): Simplify.
31758 (avr_initial_elimination_offset): Likewise.
31759 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
31760 (expand_epilogue): Likewise.
31761 (avr_legitimize_address): Gut.
31762 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
31763 (avr_hard_regno_nregs): New.
31764 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
31765 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
31766 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
31767 add soft frame pointer.
31768 (CALL_USED_REGISTERS): Likewise.
31769 (REG_CLASS_CONTENTS): Likewise.
31770 (REGISTER_NAMES): Likewise.
31771 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
31772 (HARD_FRAME_POINTER_REGNUM): New.
31773 (FRAME_POINTER_REGNUM): Use soft frame pointer.
31774 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
31775 remove the HARD_FRAME_POINTER self-elimination.
31777 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
31780 * config/avr/avr.c (avr_encode_section_info): Test for absence of
31781 DECL_EXTERNAL when checking for initializers of progmem variables.
31783 2012-01-12 Ira Rosen <irar@il.ibm.com>
31785 PR tree-optimization/51799
31786 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
31787 that the last operation is a type demotion.
31789 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
31791 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
31792 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
31794 2012-01-11 Jakub Jelinek <jakub@redhat.com>
31797 * combine.c (distribute_notes): If i3 is a noreturn call,
31798 allow old_size to be equal to args_size and make sure the
31799 noreturn call gets REG_ARGS_SIZE note.
31800 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
31801 on noreturn calls even when the delta is 0.
31803 2012-01-11 Nathan Sidwell <nathan@acm.org>
31805 * gcov.c (STRING_SIZE): Remove.
31806 (generate_results): Erase annotations for source files with no
31807 coverage information.
31809 (output_lines): Use it.
31811 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
31813 * gimple.h (gimplify_body): Remove first argument.
31814 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
31815 pointer set here, instead just pass DATA to walk_tree.
31816 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
31817 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
31818 (unvisit_body): Likewise, but with unmark_visited.
31819 (gimplify_body): Remove BODY_P argument and adjust.
31820 (gimplify_function_tree): Adjust call to gimplify_body.
31821 * omp-low.c (finalize_task_copyfn): Likewise.
31823 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
31825 * tree.h (build_function_decl_skip_args): Add boolean parameter.
31826 (build_function_type_skip_args): Delete.
31827 * tree.c (build_function_type_skip_args): Make static and add
31828 SKIP_RETURN parameter. Fix thinko in the handling of variants.
31829 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
31830 pass it to build_function_type_skip_args.
31831 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
31832 (tree_function_versioning): Likewise.
31833 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
31834 build_function_decl_skip_args.
31835 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
31836 and pass it to build_function_decl_skip_args/tree_function_versioning.
31837 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
31838 * ipa-inline-transform.c (save_inline_function_body): Likewise.
31839 * trans-mem.c (ipa_tm_create_version): Likewise.
31840 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
31841 * tree-inline.c (declare_return_variable): Remove always-true test.
31842 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
31843 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
31844 * ipa-split.c (split_function): Skip the return value for the split
31845 part if it doesn't return.
31847 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31849 PR tree-optimization/49642
31850 * ipa-split.c (forbidden_dominators): New variable.
31851 (check_forbidden_calls): New function.
31852 (dominated_by_forbidden): Likewise.
31853 (consider_split): Check for forbidden dominators.
31854 (execute_split_functions): Initialize and free forbidden
31855 dominators info; call check_forbidden_calls.
31857 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
31859 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
31861 2012-01-11 Nick Clifton <nickc@redhat.com>
31863 * config/rx/rx.md (return): Define pattern.
31865 2012-01-11 Richard Guenther <rguenther@suse.de>
31867 * doc/extend.texi (malloc attribute): Adjust according to
31870 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
31871 Patrick Marlier <patrick.marlier@gmail.com>
31873 PR middle-end/51516
31874 * trans-mem.c (get_cg_data): Traverse aliases if requested.
31875 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
31876 (ipa_tm_note_irrevocable): Same.
31877 (ipa_tm_scan_irr_block): Same.
31878 (ipa_tm_decrement_clone_counts): Same.
31879 (ipa_tm_scan_irr_function): Same.
31880 (ipa_tm_create_version_alias): Same.
31881 (ipa_tm_create_version): Same.
31882 (ipa_tm_transform_calls_redirect): Same.
31883 (ipa_tm_transform_calls): Same.
31884 (ipa_tm_transform_transaction): Same.
31885 (ipa_tm_execute): Same.
31887 2012-01-10 Richard Guenther <rguenther@suse.de>
31889 PR middle-end/51806
31890 * opts.c (common_handle_option): Handle -Werror.
31892 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
31894 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
31897 2012-01-10 Jason Merrill <jason@redhat.com>
31899 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
31902 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31904 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
31905 supports R_386_TLS_GD_PLT reloc.
31906 (gcc_cv_as_ix86_tlsldmplt): Check if linker
31907 supports R_386_TLS_LDM_PLT reloc.
31908 * configure: Regenerate.
31909 * config.in: Regenerate.
31911 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
31914 Extend __pgmx semantics to linearize memory.
31915 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
31916 determine if code comes inline or from libgcc.
31917 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
31918 (movmem_qi, movmem_qi): Set constraint #2 to "n".
31919 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
31920 (movmemx_qi, movmemx_hi): New insns.
31921 (xload_<mode>_libgcc): Rewrite to new insn condition.
31922 (xload_<mode>): Remove insns.
31923 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
31924 cases that don't satisfy avr_xload_libgcc_p().
31925 (avr_addr_space_convert): Allow converting in any direction.
31926 (avr_addr_space_subset_p): Return always true.
31927 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
31928 (avr_emit_movmemhi): Ditto.
31929 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
31930 (avr_out_movmem): Ditto.
31931 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
31932 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
31933 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
31934 (avr_encode_section_info): Encode 'progmem' in symbol flags.
31935 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
31937 2012-01-10 Richard Guenther <rguenther@suse.de>
31939 PR tree-optimization/50913
31940 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
31941 Require data-refs to be representable by Graphite with respect
31944 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
31946 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
31947 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
31949 2012-01-10 Tom de Vries <tom@codesourcery.com>
31951 PR rtl-optimization/51271
31952 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
31953 handling annulled branch.
31955 2012-01-10 Richard Henderson <rth@redhat.com>
31957 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
31958 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
31959 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
31960 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
31961 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
31962 arm_expand_vec_perm_const): New.
31963 * config/arm/arm-protos.h: Update.
31964 * config/arm/neon.md (UNSPEC_VCONCAT): New.
31965 (*neon_vswp<VDQX>): New.
31966 (neon_vcombine<VDX>): Use neon_split_vcombine.
31967 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
31968 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
31969 (vec_perm<VE>): New.
31971 2012-01-10 Richard Henderson <rth@redhat.com>
31973 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
31974 use it if reload_completed.
31975 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
31976 arm_output_asm_insn, arm_process_output_memory_barrier,
31977 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
31978 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
31979 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
31980 arm_process_output_sync_insn, arm_output_sync_insn,
31981 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
31982 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
31983 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
31984 (emit_unlikely_jump): New.
31985 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
31986 (arm_split_atomic_op): New.
31987 * config/arm/arm-protos.h: Update.
31988 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
31989 (struct arm_sync_generator): Remove.
31990 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
31991 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
31992 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
31993 (VUNSPEC_LL, VUNSPEC_SC): New.
31994 (sync_result, sync_memory, sync_required_value, sync_new_value,
31995 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
31996 (attr length): Don't use arm_sync_loop_insns.
31997 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
31998 (movsfcc, movdfcc): Likewise.
31999 * config/arm/constraints.md (Ua): New.
32000 * config/arm/prediates.md (mem_noofs_operand): New.
32001 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
32002 (sync_clobber, sync_t2_reqd): Remove.
32003 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
32004 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
32005 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
32006 (arm_sync_compare_and_swap<SIDI>): Remove.
32007 (arm_sync_compare_and_swap<NARROW>): Remove.
32008 (arm_sync_lock_test_and_set<SIDI>): Remove.
32009 (arm_sync_lock_test_and_set<NARROW>): Remove.
32010 (arm_sync_new_<syncop><SIDI>): Remove.
32011 (arm_sync_new_<syncop><NARROW>): Remove.
32012 (arm_sync_new_nand<SIDI>): Remove.
32013 (arm_sync_new_nand<NARROW>): Remove.
32014 (arm_sync_old_<syncop><SIDI>): Remove.
32015 (arm_sync_old_<syncop><NARROW>): Remove.
32016 (arm_sync_old_nand<SIDI>): Remove.
32017 (arm_sync_old_nand<NARROW>): Remove.
32018 (*memory_barrier): Merge arm_output_memory_barrier.
32019 (atomic_compare_and_swap<QHSD>): New.
32020 (atomic_compare_and_swap<NARROW>_1): New.
32021 (atomic_compare_and_swap<SIDI>_1): New.
32022 (atomic_exchange<QHSD>): New.
32023 (cas_cmp_operand, cas_cmp_str): New.
32024 (atomic_op_operand, atomic_op_str): New.
32025 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
32026 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
32027 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
32028 (arm_load_exclusive<NARROW>): New.
32029 (arm_load_exclusivesi, arm_load_exclusivedi): New.
32030 (arm_store_exclusive<QHSD>): New.
32032 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
32034 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
32035 reload patterns if -mvsx-scalar-memory.
32037 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
32038 generated, even -mno-vsx-scalar-double was used.
32039 (vsx_xscvdpsp_scalar): Likewise.
32040 (vsx_xscvspdp_scalar2): Likewise.
32042 2012-01-09 Tom de Vries <tom@codesourcery.com>
32043 Andrew Pinski <apinski@cavium.com>
32046 * reorg.c (fill_slots_from_thread): Don't speculate
32047 frame-related insns.
32049 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
32051 * sched-int.h (bb_note): Move to...
32052 * basic-block.h: ...here.
32053 * haifa-sched.c (bb_note): Move to...
32054 * cfgrtl.c: ...here.
32055 * function.c (next_block_for_reg): New function.
32056 (move_insn_for_shrink_wrap): Likewise.
32057 (prepare_shrink_wrap): Rewrite to use the above.
32059 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
32061 * gimple.c (is_gimple_non_addressable): Remove.
32062 * gimple.h: Remove is_gimple_non_addressable.
32063 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
32064 is_gimple_non_addressable.
32065 * trans-mem.c (expand_assign_tm): Same.
32067 2012-01-09 Richard Guenther <rguenther@suse.de>
32069 PR tree-optimization/51775
32070 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
32071 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
32073 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
32075 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
32077 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
32079 2012-01-09 Richard Guenther <rguenther@suse.de>
32081 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
32083 2012-01-08 Jan Hubicka <jh@suse.cz>
32085 PR tree-optimize/51680
32086 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
32087 on when known_vals needs to be computed; cleanup.
32089 2012-01-08 Jan Hubicka <jh@suse.cz>
32091 PR tree-optimize/51694
32092 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
32094 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
32096 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
32097 for -std=c++98 and -std=c++11 too.
32099 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
32101 * cfgloop.c (cancel_loop): Add free() of bbs array.
32103 2012-01-07 Jan Hubicka <jh@suse.cz>
32105 PR tree-optimization/51600
32106 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
32107 that benefits small functions.
32109 2012-01-07 Jan Hubicka <jh@suse.cz>
32111 * ipa-inline.c (want_inline_small_function_p): Fix formating.
32113 2012-01-07 Jan Hubicka <jh@suse.cz>
32115 PR tree-optimization/51680
32116 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
32117 whose inlining reduce unit size.
32119 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
32122 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
32123 Add canonical node to containing_mem chain after the non-canonical
32124 one, even if there weren't any locs to propagate.
32125 (remove_useless_values): Keep only canonical values.
32126 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
32127 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
32128 canonicalize mem_chain elements that are not discarded.
32130 2012-01-06 Jakub Jelinek <jakub@redhat.com>
32133 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
32134 before emitting functions.
32136 PR gcov-profile/50127
32137 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
32138 clear_aux_for_blocks.
32140 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
32143 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
32145 2012-01-06 Arnaud Charlet <charlet@adacore.com>
32147 * c-decl.c (ext_block): Moved up.
32148 (collect_all_refs, for_each_global_decl): Take ext_block into account.
32150 2012-01-06 Han Shen <shenhan@google.com>
32152 Translate built-in include paths for sysroot.
32153 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
32154 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
32156 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
32157 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
32159 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
32160 control whether sysroot should be prepended to gxx include dir.
32162 * configure: Regenerate.
32164 2012-01-06 Torvald Riegel <triegel@redhat.com>
32166 PR rtl-optimization/51771
32167 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
32168 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
32170 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
32172 PR tree-optimization/51315
32173 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
32174 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
32176 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
32179 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
32180 for shrp pattern. Correctly handle and fixup shift variable.
32181 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
32183 2012-01-05 Jakub Jelinek <jakub@redhat.com>
32186 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
32187 note when !ACCUMULATE_OUTGOING_ARGS.
32189 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
32191 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
32193 (extract_range_from_unary_expr_1): Avoid useless computations.
32195 2012-01-05 Jakub Jelinek <jakub@redhat.com>
32197 PR rtl-optimization/51767
32198 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
32199 of jump_block and add an extra edge for degenerated asm gotos.
32201 PR middle-end/51768
32202 * stmt.c (check_unique_operand_names): Don't ICE during error
32203 reporting if i is from labels chain.
32205 PR middle-end/44777
32206 * profile.c (branch_prob): Split bbs that have exit edge
32207 and need a fake entry edge too.
32209 2012-01-05 Jan Hubicka <jh@suse.cz>
32211 PR middle-end/49710
32212 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
32215 2012-01-05 Richard Guenther <rguenther@suse.de>
32218 * tree-streamer-out.c (write_ts_optimization): New function.
32219 (streamer_write_tree_body): Call it.
32220 * tree-streamer-in.c (lto_input_ts_optimization): New function.
32221 (streamer_read_tree_body): Call it.
32222 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
32224 2012-01-05 Jakub Jelinek <jakub@redhat.com>
32226 PR middle-end/51761
32227 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
32228 * gimplify.c (gimplify_cleanup_point_expr): Save and set
32229 in_cleanup_point_expr before gimplify_stmt call and restore it
32231 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
32232 in_cleanup_point_expr is false.
32234 2012-01-05 Richard Guenther <rguenther@suse.de>
32236 PR middle-end/51764
32237 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
32239 * toplev.c (process_options): Reject combining mudflap and LTO.
32240 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
32242 2012-01-05 Richard Guenther <rguenther@suse.de>
32244 PR tree-optimization/51760
32245 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
32247 (bit_value_unop): Handle UNDEFINED operands.
32248 (bit_value_binop): Likewise.
32250 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
32252 * config/avr/avr.c (avr_replace_prefix): Remove.
32253 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
32254 (avr_asm_function_rodata_section): Ditto.
32255 (avr_asm_select_section): Ditto.
32257 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
32259 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
32262 2012-01-05 Jakub Jelinek <jakub@redhat.com>
32265 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
32266 calls that have any non-fake successor edges.
32269 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
32271 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
32273 PR tree-optimization/51624
32274 * tree-sra.c (build_ref_for_model): When replicating a chain of
32275 COMPONENT_REFs, stop as soon as the offset would become negative.
32277 2012-01-04 Jakub Jelinek <jakub@redhat.com>
32280 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
32281 in .debug_loc on the floor.
32283 2012-01-04 Andrew Pinski <apinski@cavium.com>
32285 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
32287 2012-01-04 Andrew Pinski <apinski@cavium.com>
32288 Adam Nemet <anemet@caviumnetworks.com>
32290 * config/mips/mips.md (size): Add SI and DI.
32291 (SIZE): New mode attribute.
32292 (U): New code attribute.
32293 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
32294 (mips_lbux_<mode>): Delete.
32295 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
32296 (mips_lhx): Use gen_mips_lhx_extsi.
32297 (mips_lhx_<mode>): Delete.
32298 (mips_lwx): Delete.
32299 (mips_l<size>x): New expand.
32300 (mips_lwx_<mode>): Delete.
32301 (mips_l<GPR:size>x_<P:mode>): New pattern.
32302 (*mips_lw<u>x_<P:mode>_ext): Likewise.
32303 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
32304 * config/mips/mips.c (mips_lx_address_p): New function.
32305 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
32306 (dsp64): New availability predicate.
32307 (mips_builtins): Add an entry for __builtin_mips_ldx.
32308 * config/mips/mips.h (ISA_HAS_LBX): New define.
32309 (ISA_HAS_LBUX): Likewise.
32310 (ISA_HAS_LHX): Likewise.
32311 (ISA_HAS_LHUX): Likewise.
32312 (ISA_HAS_LWX): Likewise.
32313 (ISA_HAS_LWUX): Likewise.
32314 (ISA_HAS_LDX): Likewise.
32315 * doc/extend.texi (__builtin_mips_ldx): Document.
32317 2012-01-04 Tristan Gingold <gingold@adacore.com>
32319 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
32320 when long pointers are used.
32321 * config.build (*-*-*vms*): Handle all OpenVMS targets.
32322 (alpha64-dec-*vms*, alpha*-dec-*vms*)
32323 (ia64-hp-*vms*): Remove.
32324 * config/vms/xm-vms64.h: Delete.
32326 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
32328 PR middle-end/51472
32329 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
32331 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
32333 * opts.c (finish_options): Remove duplicate sorry.
32335 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
32337 PR middle-end/51696
32338 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
32341 2012-01-04 Richard Guenther <rguenther@suse.de>
32343 PR middle-end/51750
32344 * tree.c (size_low_cst): New function.
32345 * tree.h (size_low_cst): Declare.
32346 * fold-const.c (fold_comparison): Use it to extract the low
32347 part of the POINTER_PLUS_EXPR offset.
32349 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
32351 Fix clearing ZERO_REG
32352 * config/avr/avr.md (cc): Add alternative "ldi".
32353 (movqi_insn): Use it in cc attribute.
32354 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
32355 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
32356 (output_reload_insisf): Use ZERO_REG to pre-clear register.
32358 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32360 * configure: Regenerate.
32362 2012-01-04 Richard Guenther <rguenther@suse.de>
32364 PR tree-optimization/49651
32365 * tree-ssa-structalias.c (type_can_have_subvars): New function.
32366 (var_can_have_subvars): Use it.
32367 (get_constraint_for_1): Only consider subfields if there can be any.
32369 2012-01-03 Jakub Jelinek <jakub@redhat.com>
32372 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
32373 to its new canonical_cselib_val and the cselib_val was in
32374 first_containing_mem chain, but the canonical_cselib_val was not,
32375 add the latter into the chain.
32376 (cselib_invalidate_mem): Compare canonical_cselib_val of
32377 addr_list chain elt with v.
32380 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
32381 dwarf2out_undef): Allocate e.info using ggc_strdup instead
32383 (output_macinfo_op): Don't ggc_strdup fd->filename.
32384 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
32385 then ggc_strdup it. Don't free inc->info or cur->info.
32386 (output_macinfo): Don't free ref->info or file->info.
32388 2012-01-03 Ira Rosen <irar@il.ibm.com>
32390 PR tree-optimization/51269
32391 * tree-vect-loop-manip.c (set_prologue_iterations): Make
32392 first_niters a pointer.
32393 (slpeel_tree_peel_loop_to_edge): Likewise.
32394 (vect_do_peeling_for_loop_bound): Update call to
32395 slpeel_tree_peel_loop_to_edge.
32396 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
32397 here. Remove it from the parameters list.
32398 (vect_do_peeling_for_alignment): Update calls and compute
32399 wide_prolog_niters.
32401 2012-01-03 Richard Guenther <rguenther@suse.de>
32403 PR tree-optimization/51070
32404 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
32405 Properly handle calls.
32407 2012-01-03 Richard Guenther <rguenther@suse.de>
32409 PR tree-optimization/51692
32410 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
32411 the LHS of allocation stmts.
32413 2012-01-03 Olivier Hainque <hainque@adacore.com>
32415 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
32417 2012-01-03 Olivier Hainque <hainque@adacore.com>
32419 * collect2.c (main): In AIX specific computations for vector
32420 insertions, use CONST_CAST2 to cast from char ** to const char **.
32422 2012-01-03 Richard Guenther <rguenther@suse.de>
32425 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
32426 the context of a limbo DIE when it does not already exist.
32428 2012-01-03 Jakub Jelinek <jakub@redhat.com>
32430 PR tree-optimization/51719
32431 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
32432 but direct call is, clear direct call's lhs and don't add fallthrough
32433 edge from dcall_bb to join_bb and PHIs.
32435 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32437 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
32438 the instructions emitted by the pattern.
32439 ("*TDC_insn_<mode>"): Add comment.
32441 2012-01-03 Richard Guenther <rguenther@suse.de>
32443 PR middle-end/51730
32444 * fold-const.c (fold_comparison): Properly canonicalize
32445 tree offset and HOST_WIDE_INT bit position.
32447 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
32449 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
32450 operands for extzv pattern.
32452 2012-01-02 Jakub Jelinek <jakub@redhat.com>
32455 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
32458 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
32460 * doc/invoke.texi (-flto and related options): Copy-edit.
32462 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
32464 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
32466 2012-01-02 Jakub Jelinek <jakub@redhat.com>
32468 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
32471 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
32473 * expr.h (move_by_pieces_ninsns): Declare.
32474 * expr.c (move_by_pieces_ninsns): Make external.
32475 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
32476 (mips_store_by_pieces_p): Likewise.
32477 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
32478 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
32479 * config/mips/mips.c (mips_move_by_pieces_p): New function.
32480 (mips_store_by_pieces_p): Likewise.
32482 2012-01-02 Jakub Jelinek <jakub@redhat.com>
32484 * passes.c (register_one_dump_file): Free full_name.
32486 * reload1.c (reload): Don't allocate reg_max_ref_width here.
32487 (calculate_elim_costs_all_insns): Free offsets_at and
32488 offsets_known_at at the end and clear the pointers.
32490 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
32492 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
32493 this option introduced in r180739.
32495 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
32498 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
32499 (tmake_file target=avr): Add avr/t-multilib.
32501 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
32502 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
32503 * config/avr/genmultilib.awk: New file.
32504 * config/avr/t-multilib: New auto-generated file.
32505 * config/avr/multilib.h: New auto-generated file.
32506 * config/avr/t-avr (AVR_MCUS): New variable.
32507 (genopt.sh): Use it.
32508 (s-mlib): Depend on t-multilib.
32509 (t-multilib, multilib.h): New dependencies.
32510 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
32511 (MULTILIB_OPTIONS): Remove.
32512 (MULTILIB_MATCHES): Remove.
32513 (MULTILIB_DIRNAMES): Remove.
32514 (MULTILIB_EXCEPTIONS): Remove:
32515 * config/avr/genopt.sh: Don't use hard coded file name;
32516 pass AVR_MCUS from t-avr instead.
32518 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
32520 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
32522 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
32524 Implement light-weight DImode support.
32525 * config/avr/avr-dimode.md: New file.
32526 * config/avr/avr.md: Include it.
32527 (adjust_len): Add plus64, compare64.
32528 (HIDI): Remove code iterator.
32529 (code_stdname): New code attribute.
32530 (rotx, rotsmode): Remove DI.
32531 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
32533 * config/avr/avr-protos.h (avr_have_dimode): New.
32534 (avr_out_plus64, avr_out_compare64): New.
32535 * config/avr/avr.c (avr_out_compare): Handle DImode.
32536 (avr_have_dimode): New variable definition and initialization.
32537 (avr_out_compare64, avr_out_plus64): New functions.
32538 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
32539 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
32540 (avr_compare_pattern): Skip DImode comparisons.
32542 2012-01-02 Revital Eres <revital.eres@linaro.org>
32544 * ddg.c (def_has_ccmode_p): New function.
32545 (add_cross_iteration_register_deps,
32546 create_ddg_dep_from_intra_loop_link): Call it.
32548 2012-01-02 Richard Guenther <rguenther@suse.de>
32551 * invoke.texi (fassociative-math): Remove spurious paranthesis.
32553 2012-01-01 Jakub Jelinek <jakub@redhat.com>
32555 * gcc.c (process_command): Update copyright notice dates.
32556 * gcov.c (print_version): Likewise.
32557 * gcov-dump.c (print_version): Likewise.
32558 * mips-tfile.c (main): Likewise.
32559 * mips-tdump.c (main): Likewise.
32561 2012-01-01 Ira Rosen <irar@il.ibm.com>
32563 PR tree-optimization/51704
32564 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
32565 a use is inside the basic block or loop before accessing its vect info.
32567 2012-01-01 Jan Hubicka <jhjh@suse.cz>
32569 PR rtl-optimization/51069
32570 * cfgloopmanip.c (remove_path): Removing path making irreducible
32571 region unconditional makes BB part of the region.
32573 2012-01-01 Jakub Jelinek <jakub@redhat.com>
32575 PR tree-optimization/51683
32576 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
32577 calls with side-effects.
32578 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
32580 Copyright (C) 2012 Free Software Foundation, Inc.
32582 Copying and distribution of this file, with or without modification,
32583 are permitted in any medium without royalty provided the copyright
32584 notice and this notice are preserved.